[Dovecot] Seen flag getting lost

Timo Sirainen tss at iki.fi
Fri Nov 25 19:47:22 EET 2011


On 25.11.2011, at 14.49, Edgar Fuß wrote:

>> That shouldn't happen because of Dovecot's indexes.
> Hm, also if the indexes are local? Fine.

Yep. It just means that indexes then aren't fully up to date. Hmm. I guess possibly one potential problem is if 

1. dovecot.index.log says that "set flags to ()" but then it doesn't actually finish that
2. Next time indexes are accessed from second server, and flags are set to (\Seen)
3. And then finally user logs in back to original server, which sees that "aha, flags should be set to ()" and does that.

But the problem is the first step. It shouldn't normally do it only halfway through, unless it crashes or something.. Also typically flags aren't replaced, they're added/removed, but this completely depends on the client and I don't remember what Apple Mail does.

>> Then the 'S' flag is added to the current Maildir filename without
>> losing any other changes.
> And this is supposed to work even over NFS? Great.
> 
> So, what can I do to track down the problem as, according to what I read from your answer, it's probably a Dovecot bug?

You could try enabling mail_log plugin with flag_change event to see when it actually changes. http://wiki.dovecot.org/Plugins/MailLog



More information about the dovecot mailing list