Get UID of a message from IMAP.
843830Jan 17 2002 — edited Jan 17 2002I need the UID's of messages from IMAP. I know there is the javax.mail.Message.getMessageNumber() Method, but it returns not the ID I need. It returns the Id the message has within the IMAP-Folder.
Casting of my Message-Objects stored in IMAP to MimeMessage-Objects does not work.
Please tell me if there is a way to get the UID via JavaMail.