The following IMAP Command list the message numbers of unseen mails :(syntax)
<machinename> search unseen
3 8 9
I want to do the same using java mail api.
I don't know how to use the search method in IMAPProtocol to get the above result.