POP3:Cannot distinguish between the Sent mail and Received mails

N

Nikhil

Hi,

I am downloading the mails from a gmail account using POP3.
I am specifying the folder name as "INBOX" but it is downloading all
the sent as well as received mails.
Why is this happening?
This is my program:


Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
Message[] msg = folder.getMessages();

Thanks....
 
L

Lew

Nikhil said:
Hi,

I am downloading the mails from a gmail account using POP3.
I am specifying the folder name as "INBOX" but it is downloading all
the sent as well as received mails.
Why is this happening?
This is my program:


Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
Message[] msg = folder.getMessages();

I tried to compile your program but couldn't.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top