Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

checking for new messages  RSS feed

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please how can i implement detecting new messages in my email client?
You know like in outlook "you have 3 new messages"
I havent seen any provision for that in the javamail api.
Please i desperately need an answer to this question in order to move foward in my coding.
Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The methods javax.mail.Folder.getNewMessageCount() or getMessageCount() would seem to do this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!