Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get unread messages

843830Nov 12 2003 — edited Dec 6 2007
Hi,
I have the following code
Folder folder=store.getFolder("INBOX");
Message[] message=folder.getMessages();
The getMessages method is supposed to return all the messages from inbox,but I only get new messages.I can read the new message but,how can I mark the message that I already read.When I run my program,it always reads all the new messages.What I mean is,in outlook,all the new messages are highlighted,my program can always read those.How can I make the message without highlight.I am using POP3 for incoming mail.
Thanks
Ravi.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2008
Added on Nov 12 2003
14 comments
668 views