Hi, we occasionally see this error message from maildir_mail_set_cache_corrupted(): "Maildir filename has wrong W value: %s/%s" but the path it prints is missing a component, specifically, the new/cur/tmp component. For example: /Volumes/Spool/user/maildir/12345.M123P123.example.com.... should be /Volumes/Spool/user/maildir/cur/12345.M123P123.example.com.... This is using dovecot-1.1.10. Now I just have to figure out why the file is corrupted in the first place.
Timo Sirainen
2009-Feb-12 23:39 UTC
[Dovecot] file name missing component in error message
On Thu, 2009-02-12 at 17:05 -0600, Mike Abbott wrote:> Hi, we occasionally see this error message from > maildir_mail_set_cache_corrupted(): "Maildir filename has wrong W > value: %s/%s" but the path it prints is missing a component, > specifically, the new/cur/tmp component. For example: > /Volumes/Spool/user/maildir/12345.M123P123.example.com.... > should be > /Volumes/Spool/user/maildir/cur/12345.M123P123.example.com....Fixed: http://hg.dovecot.org/dovecot-1.1/rev/c08c602ca0dc> Now I just have to figure out why the file is corrupted in the first > place.Are you using deliver? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090212/4b95e60f/attachment-0002.bin>
> Fixed: http://hg.dovecot.org/dovecot-1.1/rev/c08c602ca0dcCool, thanks.> Are you using deliver?Yup. The corrupted files actually contain dot-lock data (pid:hostname) followed by a bunch of nulls. For instance, a mail file with an S=3368 flag in the file name contains "12345:mail.example.com" (22 bytes) followed by 3346 nulls. I'm unfamiliar with how dovecot uses dot-lock files; is this more likely to be dovecot's fault or a disk corruption?