[Dovecot] Index corruption with squirrelmail.
"Fábio M. Catunda"
fcatunda at contactnet.com.br
Mon Mar 3 16:57:31 EET 2008
It might help somebody with that squirrelmail error, so I will post
here, maybe google find it someday.
That "Query: EXPUNGE" message occurs becouse an index corruption error,
but dovecot can handle it and rebuild the index. So why squirrelmail
show the error message? Lets fix it:
in
SM_PATH/functions/imap_mailbox.php
go to line 260 and replace
$tmp = sqimap_run_command($imap_stream, 'EXPUNGE', false, $a, $b);
by
$tmp = sqimap_run_command($imap_stream, 'EXPUNGE', true, $a, $b);
I hope it helps!
[]'s, Catunda!
Fábio M. Catunda escreveu:
> Timo,
>
> That's true, the message arrived in INBOX, then I moved it to Spam and
> did it one more time.
>
> What I did to solve the problem without the need to expunge that
> specific message is just rename the file to some other name and then
> logged in again.
>
> # mv 1191941480.M342094P9293V0000000000000903I003B9713_0.cronos teste123
>
> Thanks!
>
> Timo Sirainen escreveu:
>> 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,)
>>
>>
>
More information about the dovecot
mailing list