Hi, I compressed many files using bzip2, but in some cases it crashes. I believe that it is related to dovecot indexes. How to reproduce: Inside a Maildir folder without any indexes yet, compress a message with bzip2 and tryes to access it. At my server is showed the error: Jun 24 00:18:20 maildev dovecot: IMAP(xxx at xxx): FETCH for mailbox Trash UID 1 failed to read message input: No such file or directory Jun 24 00:18:20 maildev dovecot: IMAP(xxx at xxx): Disconnected: BUG: Unknown internal error bytes=329/1050 When I did the same with gzip compression it works as expected (opening the message and creating dovecot indexes). (version, 1.1.16) Best Regards, Fernando
On Wed, 24 Jun 2009 23:08:43 -0300 (BRT) fernando at dfcom.com.br wrote:> Hi, > > I compressed many files using bzip2, but in some cases it crashes. I > believe that it is related to dovecot indexes. > > How to reproduce: > > Inside a Maildir folder without any indexes yet, compress a message with > bzip2 and tryes to access it. > > At my server is showed the error: > > Jun 24 00:18:20 maildev dovecot: IMAP(xxx at xxx): FETCH for mailbox Trash > UID 1 failed to read message input: No such file or directory > Jun 24 00:18:20 maildev dovecot: IMAP(xxx at xxx): Disconnected: BUG: Unknown > internal error bytes=329/1050 > > When I did the same with gzip compression it works as expected (opening > the message and creating dovecot indexes). > > (version, 1.1.16) >Compression bzlib/bzip2 supported since version v1.1.2+, as wiki say: Zlib plugin can be used to read compressed mbox and maildir files. Zlib plugin supports compression using zlib/gzip and bzlib/bzip2 (v1.1.2+).> Best Regards, > Fernando >
On Wed, 2009-06-24 at 23:08 -0300, fernando at dfcom.com.br wrote:> I compressed many files using bzip2, but in some cases it crashes. I > believe that it is related to dovecot indexes.I can't think of any reason why it would be related to indexes.> How to reproduce: > > Inside a Maildir folder without any indexes yet, compress a message with > bzip2 and tryes to access it. > > At my server is showed the error: > > Jun 24 00:18:20 maildev dovecot: IMAP(xxx at xxx): FETCH for mailbox Trash > UID 1 failed to read message input: No such file or directoryLooks like the error handling wasn't done correctly. Try with this patch what it logs then: http://hg.dovecot.org/dovecot-1.1/rev/2f9d957332b6 Anyway my guess is that it'll report the file as being corrupted. -------------- 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/20090627/8e3f9550/attachment-0002.bin>