Search code examples
javajakarta-mailimap

How to do a IMAP UID SEARCH with JavaMail?


I am using JavaMail 1.5.1 and i want to do a UID SEARCH. Is this supported or do i have to issue a low level IMAP command via ((IMAPFolder) folder).doCommand(...)?


Solution

  • ((UIDFolder)folder).getMessageByUID(uid)