[Dovecot] "doveadm mailbox status" destroys compressed messages without W= attribute

Artur Zaprzała zybi at talex.pl
Thu Apr 12 14:47:49 EEST 2012


I still have some old messages from previous mail server. This messages have no 
W= attribute either in file name or dovecot-uidlist and are compressed with 
gzip. Running "doveadm mailbox status -A vsize \*" will result in the following 
messages:

doveadm(foo at domain): Error: Cached message size larger than expected (2580 > 1451)
doveadm(foo at domain): Error: Maildir filename has wrong S value, renamed the file 
from 
/vmail/domain/foo/Maildir/.Sent/cur/1206550323.M125837P13306V0000000000000812I0000809E.oldname,S=2580:2,SZ 
to 
/vmail/domain/foo/Maildir/.Sent/cur/1206550323.M125837P13306V0000000000000812I0000809E.oldname,S=1451:2,SZ
doveadm(foo at domain): Error: Corrupted index cache file 
/vmail/domain/foo/Maildir/.Sent/dovecot.index.cache: Broken physical size for 
mail UID 2
doveadm(foo at domain): Error: Cached message size larger than expected (2580 > 1451)
doveadm(foo at domain): Error: Corrupted index cache file 
/vmail/domain/foo/Maildir/.Sent/dovecot.index.cache: Broken physical size for 
mail UID 2
doveadm(foo at domain): Error: 
read(/vmail/domain/foo/Maildir/.Sent/cur/1206550323.M125837P13306V0000000000000812I0000809E.oldname,S=2580:2,SZ) 
failed: Input/output error (uid=2)

(Size of uncompressed message is 2580 and compressed size is 1451)

I have enabled zlib plugin for imap, pop3, lda and lmtp. But how to enable it 
for doveadm?


-- 
Best regards,
Artur Zaprzała



More information about the dovecot mailing list