\Recent flag in IMAP
"Robert Mitchell" <[email protected]>
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
If I read in a message via IMAP that has its \Recent flag set, and then try to change other flags via Message.setFlags (or Message.setFlag), I get a MessagingException which complains about trying to set the \Recent flag. The problem appears to be that after merging in the new flag values, gnu.mail.profiders.imap.IMAPMessage.setFlags does not ignore the \Recent flag when sending the updated flags to the IMAP server. Note that according to the IMAP specification, the \Recent flag is not a legal argument to the STORE or APPEND commands (section 2.3.2 of RFC 3501). Thanks, Bob Mitchell.