[Dovecot] 2.1: Error: Maildir filename has wrong S value, renamed the file from

Timo Sirainen tss at iki.fi
Wed Mar 21 18:00:18 EET 2012


On 21.3.2012, at 17.52, Ralf Hildebrandt wrote:

> * Timo Sirainen <tss at iki.fi>:
> 
>>> It's renaming itself to itself again?
>> 
>> Hmm. Yeah, this is a bit problematic for compressed mails. If the
>> S=size isn't correct, Dovecot fixes it by stat()ing the file and using
>> it as the size. And that's of course wrong. Also Dovecot can't simply
>> remove the S=size, because the current Maildir code assumes that it
>> always exists for compressed mails. There's no easy and efficient way
>> to fix this.. Maybe you could just manually rename the files to have
>> correct S=size? :) zcat file | wc should give the right size.
> 
> Right now the whole system is down because nobody can acces his/her
> mails due to this. 

All of your mails are compressed and have wrong S=size in the filename? You can disable the check with the attached patch, but I'm not sure if there are other places where it fails. At least quota calculations won't be correct.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 385 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120321/1a3ca75e/attachment.obj>


More information about the dovecot mailing list