[Dovecot] permanent flags (are very permanent)

Oliver Eales jester at arcor.de
Thu Mar 25 23:32:25 EET 2010


Hello,

first of all i am not sure wheter this is a correct behavior according to the RFC or not...

Problem is, when i set a new custom permanent flag (e.g. testflag) and remove it afterwards, the flag still stays in the list of the permanent flags of this drawer even if there are no messages left with this flag set.
So the keyword list gets "polluted" with unused flags.

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN] uc.vodafone.de Mailservices ready.
AA login user notmypass
AA OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in
A0 SELECT inbox
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk \*)] Flags permitted.
* 3805 EXISTS
* 0 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1260979519] UIDs valid
* OK [UIDNEXT 4465] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
A0 OK [READ-WRITE] Select completed.
A1 STORE 1 +FLAGS (testflag)
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk testflag)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk testflag \*)] Flags permitted.
* 1 FETCH (FLAGS (Junk testflag))
A1 OK Store completed.
A2 SEARCH KEYWORD  testflag
* SEARCH 1
A2 OK Search completed (0.043 secs).
A3 STORE 1 -FLAGS (testflag)
* 1 FETCH (FLAGS (Junk))
A3 OK Store completed.
A4 select inbox
* OK [CLOSED] Previous mailbox closed.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk testflag)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk testflag \*)] Flags permitted.
* 3805 EXISTS
* 0 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1260979519] UIDs valid
* OK [UIDNEXT 4465] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
A4 OK [READ-WRITE] Select completed.

So the new testflag keyword is now in the list even across logins. 

Regards,
Oliver Eales




More information about the dovecot mailing list