[Dovecot] Corrupted index cache file and Maildir filename has wrong W value

Timo Sirainen tss at iki.fi
Tue May 25 18:26:15 EEST 2010


On Tue, 2010-05-04 at 18:21 +0100, Barry Scott wrote:
> May  4 15:25:03 f12barry dovecot: IMAP(bscott): Maildir filename has wrong W value: /home/bscott/Maildir/._NewMail-com/cur/1271683097.M615087P3538.f12barry.office.onelan.co.uk,S=3154,W=3278:2,S

S=3154 means the file's size should be 3154 bytes.
W=3278 means the file's "virtual size" = size if linefeeds were CRLF
should be 3278 bytes.

Easy way to check these values is with e.g.:

# wc 1274725794.M935807P27627.kurkku,S=1901,W=1951:2,
  50  212 1901 1274725794.M935807P27627.kurkku,S=1901,W=1951:2,
# echo 1901+50|bc 
1951

If W value is wrong, it's not currently fixed automatically. Because it
just shouldn't happen. How are you delivering new mails? That file looks
like it's created by Dovecot. So the only possibilities are:

a) Something modified the file after it was already written.

b) The program writing the maildir file is buggy (I'm not aware of any
Dovecot bugs related to this.)

c) Filesystem corrupted the mail file.



More information about the dovecot mailing list