How to Differentiate between read mail with not read mail

Hi,

Any one can help me with sample code using javamail API to Differentiate between read mail with not read mail in smtp server,

// get the INBOX folder (All stores usually have this one)

Folder inbox = store.getFolder("INBOX");

// open the INBOX folder

inbox.open(Folder.READ_WRITE);

Message m = inbox.getMessage(1);

Regards

Muthu

[480 byte] By [Muthuraja] at [2007-10-3 2:42:12]
# 1
I assume when you say "SMTP server" you really mean that you'reusing POP3 to access your mail server for reading messages.If so, see the javadocs for the com.sun.mail.pop3 package forhints on how to do this.
bshannona at 2007-7-14 19:40:58 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...