On 19.9.2013, at 23.59, Richard Platel <[email protected]> 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([email protected]): Error: Cached > message size smaller than expected (615 < 971) > Sep 19 20:34:25 imap01 dovecot: imap([email protected]): Error: > Corrupted index cache file > /mail/index01/434/860/[email protected]/.Bup/dovecot.index.cache: Broken > physical size for mail UID 0 > Sep 19 20:34:25 imap01 dovecot: imap([email protected]): 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.
