• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find the mail is unread in java  RSS feed

 
Muthiah Raja
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can able to find the total number of unread mail in particular inbox.But i unable to find the mail is readed mail or unreaded mail.

My requirement is only extract contents if that particular mail is
unread.

But i unable to find what are all the mails which are unreaded.

Please help me,
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at what the Message.getFlags method returns. The Flags.Flag class defines a flag called "SEEN", which indicates whether a message has been retrieved by a client. That is probably as close as you'll get. There is no way to determine if someone actually read it.
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if your inbox is on a POP3 server, then it doesn't support any flags, and your question is answered in this section of the JavaMail FAQ:

http://java.sun.com/products/javamail/FAQ.html#newmsgs
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!