HELP. How to read unread message from Gmail?
845850Mar 8 2011 — edited Mar 8 2011Folder inbox = store.getFolder("INBOX");
inbox.open(Folder.READ_ONLY);
FetchProfile profile = new FetchProfile();
profile.add(FetchProfile.Item.ENVELOPE);
System.out.println(inbox.getUnreadMessageCount());
It print out the number of all messages. I just want to get it number of unread message.
I have bean searching for a long time. Is there any one can help me. I just want to make a Gmail notifier. Ring me when I get unread email.