It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes Problem with JavaMail API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem with JavaMail API" Watch "Problem with JavaMail API" New topic

Problem with JavaMail API

Deepak Kamboj

Joined: Jun 19, 2000
Posts: 7
Hi Everybody!
I have developed mail client using JavaMail API. It shows only one folder that is Inbox while retreiving messages from POP3 Server.
I want to show all other folders like OUTBOX, Deleted Item, Sent Items and Trash also.
Please suggest me a solution for my problem.
Thanks in advance.
Deepak Kamboj

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
That's how POP3 behaves. If you need to see other folders on the server, you need to use the IMAP protocol. IMAP is included free with JavaMail, and is quite common on servers. If other mail software can see multiple folders, I would guess that IMAP is already running on that server, so just change your JavaMail config to use IMAP and have a go.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Problem with JavaMail API
It's not a secret anymore!