Used to get specific informations about a Message without dealing with a MimeMessage instance. Demanded information can be requested by binary combining the constants.
I came to the Idea of the MessageResult because there are many possible combinations of different requests (uid, msn, MimeMessage, Flags).
e.g. I want to have all uids, msns and flags of all messages. (a common IMAP operation) Javamail would do it that way:
This means creating a lazy-loading MimeMessage instance. So why don't call getMessages(MessageResult.UID | MessageResult.MSN | MessageResult.FLAGS)? This would leave a lot of room for the implementation to optimize
|
|
|
|
|
|