tags:

views:

392

answers:

3

Hi, I am facing a problem regarding getting the drafts and sent mail folder programmaticaly in Java. Although I am able to get the inbox using pop3 and able to send mail via smtp, I am not able to get it done by pop3. Thanks in advance for your reply.

A: 

When I look at this I would say that the standard POP3 protocol implementation provided with JavaMail does not support this.

Jeroen van Bergen
ya thats fine but can u give me any other way to access the drafts,sent item folder?
Neither the JavaMail implementation nor the POP3 protocol does not support folders
furtelwart
so can we get the mails of these folders by any other protocol?
+5  A: 

The POP3 Protocol doesn't support folders at all, so the only one you can get is the INBOX.

All the other folders are stored locally within each POP3 client, so if you are writing one, you are free to do that in whatever way you like.

There might be POP3 servers that allow use of folders through extensions, but in that case they are not following the standard protocol and you will most likely implement something own or try to find some package specific for that mailserver.

If you want to use server-side folders in a standardized way, I suggest you look at IMAP. Most mail-providers do support both POP3 and IMAP and it supports storing folders on the server (including Drafts, Sent mail, and other customized folders).

Jimmy Stenke
okay thanks alot for the answer i will try to do the same, nd will feel greatful if can solve any of ur query:)
A: 

POP3 does not supports the notion of differents folder. If the mail server supports IMAP then you'd be able to access all folders. The IMAP support in JavaMail is decent and easy to use.

ordnungswidrig