Chris Wilson
2011-Jan-12 15:02 UTC
[Dovecot] Error: FETCH [1] for mailbox badbox UID 1 got too little data: 2 vs 4
Hi all, I can send myself a test message that causes Dovecot to crash when I open it in Alpine, with the following error: Jan 12 14:52:52 one-mail dovecot: imap(chris): Error: FETCH [1] for mailbox badbox UID 1 got too little data: 2 vs 4 Jan 12 14:52:52 one-mail dovecot: imap(chris): Error: Corrupted index cache file /home/chris/mail/.imap/badbox/dovecot.index.cache: Broken MIME parts for mail UID 1 Jan 12 14:52:52 one-mail dovecot: imap(chris): Disconnected: FETCH failed bytes=485/1394 I can do this as follows: $ touch ~/mail/badbox $ echo test | /usr/libexec/dovecot/dovecot-lda -m badbox $ cat ~/mail/badbox>From MAILER-DAEMON Wed Jan 12 14:52:29 2011test X-IMAPbase: 1294843949 0000000001 X-UID: 1 Status: X-Keywords: Content-Length: 1 And then when I try to open badbox in Alpine (over IMAP), and then open this email, I get the error above, and the connection is aborted. I expect that the "test" line is not a valid header, but dovecot should not crash when opening it. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791.
Timo Sirainen
2011-Feb-10 00:51 UTC
[Dovecot] Error: FETCH [1] for mailbox badbox UID 1 got too little data: 2 vs 4
On Wed, 2011-01-12 at 15:02 +0000, Chris Wilson wrote:> $ touch ~/mail/badbox > $ echo test | /usr/libexec/dovecot/dovecot-lda -m badboxFixed finally: http://hg.dovecot.org/dovecot-2.0/rev/079a81fb5117