[Dovecot] Index corruption with squirrelmail.

Timo Sirainen tss at iki.fi
Sun Mar 2 07:15:10 EET 2008


On Wed, 2008-02-27 at 20:36 -0300, "Fábio M. Catunda" wrote:
> Some addional information that I found:
> 
> This problem started on 02/21/2008 when I moved a message that has id 
> 1191941480.M342094P9293V0000000000000903I003B9713_0.cronos from .Spam 
> folder to INBOX and then moved the message back to .Spam folder.
..
> Maildir /var/virtual/contactnet.com.br/fcatunda/Maildir sync: UID 
> inserted in the middle of mailbox (8055 > 8042, file = 
> 1191941480.M342094P9293V0000000000000903I003B9713_0.cronos,S=3129:2,ST)
> dovecot: 2008-02-27 17:57:46 Error: IMAP(fcatunda at contactnet.com.br): 
> Corrupted index cache file 

You say you moved Spam -> INBOX -> Spam, but is it possible that this
was originally also in INBOX? So INBOX -> Spam -> INBOX -> Spam? That's
what this looks like.

Anyway this kind of moving back and forth without changing filename
isn't a good idea. It causes Dovecot to think that a message got
"unexpunged" which gives the above error. v1.1 handles this a bit more
nicely by renaming the new file, although it still logs a warning:

imap(tss): Warning: Maildir /home/tss/Maildir: Expunged message
reappeared, giving a new UID (old uid=365234, file=foo:2,)

-------------- 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/20080302/92476192/attachment.bin 


More information about the dovecot mailing list