Hello all, I'm having problems with setting custom flags on a dovecot imap setup, with mbox mail store. I was running v1.0rc15 on a Debian Etch box, upgraded recently to v1.0.15, but nothing changed. The problem : I read my mail using IMAP. In Thunderbird (various versions, current one being v2.0.0.19), I can set various message flags (Important, Personal, Work, ... mapped to IMAP as $Label4,$ $Label3, $Label2, ...). I read my mail from several machines, but all changes made on the message flags from one machine won't appear on the others !? Still I've read that those flags are supported in Dovecot. Actually, I logged the IMAP traffic, and saw that Dovecot claims to "handle" them. For instance, I added a flag to a message : Thunderbird > 621 uid store 35150 +FLAGS ($label4) Dovecot > * 6716 FETCH (UID 35150 FLAGS (\Seen \Recent $Label4)) Now, if I close TB, so that changes are written to the mbox file, and if I open that file on a the server with any text editor, the 'X-Keywords' line doesn't appear !? And as a matter of a fact, if I read my mail from any other machine, the flag isn't set ! Anyone knows where the problem can be ? Do I need to upgrade to v1.1 ? Or are custom flags actually supported in v1.0 (which I believe is the case) ? I browsed through the internet and searched the archives of this mailing list but didn't find any clue ... Any help would be much appreciated Thank you very much in advance Pascal Mouret -- Pascal Mouret Responsable du Service Informatique Polytech' Marseille, Universit? de Provence 60, rue Joliot-Curie / 13453 Marseille cedex 13 Mel : pascal.mouret at polytech.univ-mrs.fr Tel : 04 91 11 38 04 / Fax : 04 91 11 38 54
On Thu, 2009-02-26 at 13:03 +0100, Pascal Mouret wrote:> Thunderbird > 621 uid store 35150 +FLAGS ($label4) > Dovecot > * 6716 FETCH (UID 35150 FLAGS (\Seen \Recent $Label4)) > > Now, if I close TB, so that changes are written to the mbox file, and if > I open that file on a the server with any text editor, the 'X-Keywords' > line doesn't appear !? And as a matter of a fact, if I read my mail from > any other machine, the flag isn't set !That's a bit weird, but looks like I can reproduce it. Actually it doesn't look like any flags get written to the mbox file..> Anyone knows where the problem can be ? Do I need to upgrade to v1.1 ? > Or are custom flags actually supported in v1.0 (which I believe is the > case) ?See if setting mbox_lazy_writes=no helps. -------------- 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/20090226/1a6dac66/attachment-0002.bin>
Hi Timo, Thank you very much for the reply. Timo Sirainen a ?crit :> On Thu, 2009-02-26 at 13:03 +0100, Pascal Mouret wrote: > >> Thunderbird > 621 uid store 35150 +FLAGS ($label4) >> Dovecot > * 6716 FETCH (UID 35150 FLAGS (\Seen \Recent $Label4)) >> >> Now, if I close TB, so that changes are written to the mbox file, and if >> I open that file on a the server with any text editor, the 'X-Keywords' >> line doesn't appear !? And as a matter of a fact, if I read my mail from >> any other machine, the flag isn't set ! >> > > That's a bit weird, but looks like I can reproduce it. Actually it > doesn't look like any flags get written to the mbox file.. > > >> Anyone knows where the problem can be ? Do I need to upgrade to v1.1 ? >> Or are custom flags actually supported in v1.0 (which I believe is the >> case) ? >> > > See if setting mbox_lazy_writes=no helps. >That's it !!! I changed the line and it did the trick !! (To be more accurate, on my debian box, I had then to issue a /etc/init.d/dovecot restart. A simple /etc/init.d/dovecot force-reload was not enough) Thank you very much So it may be a problem when the flags are copied from the index file onto the main mbox file, right ? Is there a performance penalty of setting mbox_lazy_writes to no by the way ? I did a very basic test on a 500MB mbox (setting and unsetting flags on the second message of the mailbox, and grep'ing at the same time the file to see the changes : no noticeable delay. A ls -l even showed the file remained the same size, which explains it all !) Now, on a busy server, with a lot of flag changes (or rather a lot of flag additions), would that make a noticeable difference ? Anyway, thank you very much for your help, and thank you very much for the great job ! -- Pascal Mouret Responsable du Service Informatique Polytech' Marseille, Universit? de Provence 60, rue Joliot-Curie / 13453 Marseille cedex 13 Mel : pascal.mouret at polytech.univ-mrs.fr Tel : 04 91 11 38 04 / Fax : 04 91 11 38 54