On 2013-09-22, at 12:35 AM, Timo Sirainen <t...@iki.fi> wrote:

> On 19.9.2013, at 23.59, Richard Platel <rpla...@tucows.com> wrote:
> 
>> Dovecot 2.2, with the zlib plugin, I think we're getting bad index entries 
>> on IMAP COPY.
>> 
>> On copying a message to an empty folder, in the dovecot error log I see:
>> 
>> Sep 19 20:34:25 imap01 dovecot: imap(gr...@rp-auth-test.com): Error: Cached 
>> message size smaller than expected (615 < 971)
>> Sep 19 20:34:25 imap01 dovecot: imap(gr...@rp-auth-test.com): Error: 
>> Corrupted index cache file 
>> /mail/index01/434/860/gr...@rp-auth-test.com/.Bup/dovecot.index.cache: 
>> Broken physical size for mail UID 0
>> Sep 19 20:34:25 imap01 dovecot: imap(gr...@rp-auth-test.com): Error: read() 
>> failed: Invalid argument (uid=0)
>> 
>> (Note this happens from the copy operation, not a subsequent access.  Also 
>> note the UID is always 0).
> 
> UID=0 means that it's trying to get the size for the mail that is still being 
> saved (so not the copy source mail). You mean you can easily reproduce this 
> simply by copying a mail to a newly created folder? I couldn't. Try if you 
> can still reproduce it with a smaller config, especially removing non-zlib 
> plugins.
> 

This was indeed a plugin configuration problem, thanks.

Reply via email to