How to get unread messages
843830Nov 12 2003 — edited Dec 6 2007Hi,
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.