Setting message flags |
You can set the flags for one or more messages using the Imap#store methods.
Flags
Example
// add \Answered flag to messages 1 thru 10 to existing flags imap.store(1,10,Imap.FLAG_MODE_ADD,Imap.FLAG_ANSWERED);
Example
// overwrite all flags with \Answered flag on messages 1 thru 10 imap.store(1,10,Imap.FLAG_MODE_REPLACE,Imap.FLAG_ANSWERED);
Example
// remove \Answered flag to messages 1 thru 10 to existing flags imap.store(1,10,Imap.FLAG_MODE_DELETE,Imap.FLAG_ANSWERED);
|