Mikhail Teterin
2007-Dec-17 21:24 UTC
[Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825
Whenever I try to access an e-mail in the middle (rather than at the end) of the mailbox, my mail-client (KMail) gets an error a message like this is logged in the maillog: IMAP(mi): FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825 IMAP(mi): Disconnected: Disconnected The actual numbers vary, but it is always X vs X+2 The problem started when I upgraded to 1.0.8. Unfortunately, it is still here with 1.0.9. The mailbox in question is the standard Unix mbox (/var/mail/mi in my case). The server runs FreeBSD/amd64. Please, advise. Thanks! -mi
Timo Sirainen
2007-Dec-20 21:12 UTC
[Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825
On Mon, 2007-12-17 at 16:24 -0500, Mikhail Teterin wrote:> Whenever I try to access an e-mail in the middle (rather than at the end) of > the mailbox, my mail-client (KMail) gets an error a message like this is > logged in the maillog: > > IMAP(mi): FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825 > IMAP(mi): Disconnected: Disconnected > > The actual numbers vary, but it is always X vs X+2Do you have CR characters in the mbox file? Does the patch below fix it? It makes it work the same way as before 1.0.8, but it's slower.. diff -r 2cedab21cd6d src/lib-storage/index/mbox/mbox-mail.c --- a/src/lib-storage/index/mbox/mbox-mail.c Thu Dec 20 23:01:04 2007 +0200 +++ b/src/lib-storage/index/mbox/mbox-mail.c Thu Dec 20 23:11:39 2007 +0200 @@ -191,6 +191,7 @@ static uoff_t mbox_mail_get_physical_siz } else { body_size = (uoff_t)-1; } + body_size = (uoff_t)-1; /* verify that the calculated body size is correct */ body_size = istream_raw_mbox_get_body_size(stream, body_size); -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071220/3dbe6547/attachment-0002.bin>
Mark Adams
2007-Dec-20 23:33 UTC
[Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825
Have you tried to clear your index and cache files for this mailbox? (dovecot. Files) Mark. On 17 Dec 2007, at 21:24, Mikhail Teterin <mi+mill at aldan.algebra.com> wrote:> Whenever I try to access an e-mail in the middle (rather than at the > end) of > the mailbox, my mail-client (KMail) gets an error a message like > this is > logged in the maillog: > > IMAP(mi): FETCH for mailbox INBOX UID 39641 got too little data: > 4823 vs 4825 > IMAP(mi): Disconnected: Disconnected > > The actual numbers vary, but it is always X vs X+2 > > The problem started when I upgraded to 1.0.8. Unfortunately, it is > still here > with 1.0.9. The mailbox in question is the standard Unix mbox (/var/ > mail/mi > in my case). > > The server runs FreeBSD/amd64. Please, advise. Thanks! > > -mi
Timo Sirainen
2007-Dec-22 04:55 UTC
[Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825
On Mon, 2007-12-17 at 16:24 -0500, Mikhail Teterin wrote:> IMAP(mi): FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825See if this helps: http://hg.dovecot.org/dovecot-1.0/rev/0713de760c5f -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071222/40078de9/attachment-0002.bin>