I'm using Evolution and Dovecot (on the localhost) and receiving these errors trying to move a message into the IMAP folder: C00095 APPEND INBOX (\Answered \Seen NotJunk "Junk" "NotJunk" "receipt-handled") {1022} C00095 BAD Error in IMAP command APPEND: Flags list contains non-atoms. Is this a Dovecot or Evolution bug? Thanks, Richard $ dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-11-generic i686 Ubuntu 9.04 log_timestamp: %Y-%m-%d %H:%M:%S login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mail mail_location: mbox:~/Private/mail auth default: passdb: driver: pam userdb: driver: passwd -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090426/e14f0f7d/attachment-0002.bin>
On Apr 26, 2009, at 2:12 AM, Richard Laager wrote:> I'm using Evolution and Dovecot (on the localhost) and receiving these > errors trying to move a message into the IMAP folder: > > C00095 APPEND INBOX (\Answered \Seen NotJunk "Junk" "NotJunk" > "receipt-handled") {1022} > C00095 BAD Error in IMAP command APPEND: Flags list contains non- > atoms. > > Is this a Dovecot or Evolution bug?Evolution bug. It really shouldn't be sending them in "strings". I doubt Dovecot is the only server that doesn't accept them. Although it is strange that it's sending both NotJunk and "NotJunk". Perhaps the message for some reason has those two different flags set, and Evolution just tries to preserve them? In any case it's against RFC so it shouldn't be doing that..
Richard Laager wrote, On 4/26/09 2:12 AM:> I'm using Evolution and Dovecot (on the localhost) and receiving these > errors trying to move a message into the IMAP folder: > > C00095 APPEND INBOX (\Answered \Seen NotJunk "Junk" "NotJunk" "receipt-handled") {1022} > C00095 BAD Error in IMAP command APPEND: Flags list contains non-atoms. > > Is this a Dovecot or Evolution bug?Looks like Evolution. RFC3501 says that APPEND optionally takes a "flag parenthesized list" which is a space-delimited list of tokens inside () which can include standard and extension flags which start with '\' and keywords which are defined as "atom" types. The relevant ABNF there (in top-down order) is: atom = 1*ATOM-CHAR ATOM-CHAR = <any CHAR except atom-specials> atom-specials = "(" / ")" / "{" / SP / CTL / list-wildcards / quoted-specials / resp-specials list-wildcards = "%" / "*" quoted-specials = DQUOTE / "\" resp-specials = "]" ('DQUOTE' is ABNF for the double-quote character: ascii 0x22) This means that an APPEND command *CANNOT* put "" around flag keywords, as does the one you quote. If Evolution is doing that, it is wrong. The fact that there is both an unquoted NotJunk and a quoted NotJunk in that list implies that there's something strange going on in what Evolution thinks it is doing. What is in the relevant dovecot-keywords file?