[Dovecot] UID inserted in the middle of mailbox errors

Timo Sirainen tss at iki.fi
Sun May 4 22:14:19 EEST 2008


On Fri, 2008-03-28 at 10:53 -0400, Dean Brooks wrote:
>    Mar 28 10:43:57 tm2 dovecot: [ID 107833 mail.error] IMAP(kss021):
>    mbox sync: UID inserted in the middle of mailbox
>    /home/kss021/Mail/Trash (3137 > 536, seq=2, idx_msgs=76)
..
> I guess what I don't understand is why Dovecot cant just mark the index
> invalid and purge it instead of failing over and over.  I thought the
> whole point behind Dovecot's indexing is that it was able to detect
> index inconsistencies and mark the index invalid.

It wasn't actually failing at all from user's point of view. It just
kept logging the same error over and over again because it always
delayed writing fixes to the mbox file.

I changed the code to now always write pending changes to mbox if
syncing had errors. This still causes errors to be written twice, but
that can't be fixed easily.
http://hg.dovecot.org/dovecot-1.1/rev/591145eaaf87

As for why these happen in the first place when copying, I've really no
idea.. I tried to reproduce this with imaptest, but couldn't. Does
imaptest show any errors with you? http://imapwiki.org/ImapTest

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080504/9704a984/attachment.bin 


More information about the dovecot mailing list