posted 12 years ago
Folder folder = store.getFolder("inbox");
folder.open(Folder.READ_WRITE);
Messages[] messages = folder.search(new FlagTerm(new Flags(Flags.Flag.SEEN), false));
using this logic i am able to get all unread messages in my gmail account, but the same logic i tried with yahoo account. it is giving all mails in my inbox.
how to get unread mails in yahoo using javamail API???
Thanks.