Fwd: \Recent flag in IMAP

"Robert Mitchell" <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
One further note:  It seems to me that it would be more appropriate to
use the +FLAGS and -FLAGS items to do the updates, rather than trying to
use FLAGS and passing all of the resulting flags.  Among other things,
this would (at least in my mind) give more reasonable results if
multiple clients were updating the flags at the same time.
 
Bob M.

>>> Robert Mitchell 4/18/2005 3:32:13 PM >>>

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.