Re: [Dovecot] "too little data" error still occurring in 1.0.10
Timo Sirainen wrote: > On Tue, 2008-02-12 at 20:28 -0700, Mike Brown wrote: > > Timo Sirainen wrote: > > > On Feb 12, 2008, at 1:14 AM, Mike Brown wrote: > > > > > > > Timo Sirainen wrote: > > > >> On Sat, 2008-02-09 at 02:53 -0700, Mike Brown wrote: > > > >>> I'm running dovecot 1.0.10, but am seeing the "too little data" > > > >>> error > > > >>> that was supposedly fixed in 1.0.9. Not sure how long it's been > > > >>> going on. > > > >> > > > >> Did you try deleting dovecot.index.cache files from those mailboxes > > > >> and > > > >> see if it comes back? > > > > > > > > I tried that just now, and so far, things are back to normal. Thanks! > > > > I guess I don't need the patch. Do you want me to try it anyway? > > > > > > Try the patch if the problem comes back. > > > > > > > The problem came back, so I will apply the patch. :( > > Did the patch fix it? > As far as I can tell. The problem hasn't returned since I applied the patch 2 weeks ago. Thanks!
Re: [Dovecot] "too little data" error still occurring in 1.0.10
On Tue, 2008-02-12 at 20:28 -0700, Mike Brown wrote: > Timo Sirainen wrote: > > On Feb 12, 2008, at 1:14 AM, Mike Brown wrote: > > > > > Timo Sirainen wrote: > > >> On Sat, 2008-02-09 at 02:53 -0700, Mike Brown wrote: > > >>> I'm running dovecot 1.0.10, but am seeing the "too little data" > > >>> error > > >>> that was supposedly fixed in 1.0.9. Not sure how long it's been > > >>> going on. > > >> > > >> Did you try deleting dovecot.index.cache files from those mailboxes > > >> and > > >> see if it comes back? > > > > > > I tried that just now, and so far, things are back to normal. Thanks! > > > I guess I don't need the patch. Do you want me to try it anyway? > > > > Try the patch if the problem comes back. > > > > The problem came back, so I will apply the patch. :( Did the patch fix it? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] "too little data" error still occurring in 1.0.10
Timo Sirainen wrote: > On Feb 12, 2008, at 1:14 AM, Mike Brown wrote: > > > Timo Sirainen wrote: > >> On Sat, 2008-02-09 at 02:53 -0700, Mike Brown wrote: > >>> I'm running dovecot 1.0.10, but am seeing the "too little data" > >>> error > >>> that was supposedly fixed in 1.0.9. Not sure how long it's been > >>> going on. > >> > >> Did you try deleting dovecot.index.cache files from those mailboxes > >> and > >> see if it comes back? > > > > I tried that just now, and so far, things are back to normal. Thanks! > > I guess I don't need the patch. Do you want me to try it anyway? > > Try the patch if the problem comes back. > The problem came back, so I will apply the patch. :( Thanks!
Re: [Dovecot] "too little data" error still occurring in 1.0.10
On Feb 12, 2008, at 1:14 AM, Mike Brown wrote: Timo Sirainen wrote: On Sat, 2008-02-09 at 02:53 -0700, Mike Brown wrote: I'm running dovecot 1.0.10, but am seeing the "too little data" error that was supposedly fixed in 1.0.9. Not sure how long it's been going on. Did you try deleting dovecot.index.cache files from those mailboxes and see if it comes back? I tried that just now, and so far, things are back to normal. Thanks! I guess I don't need the patch. Do you want me to try it anyway? Try the patch if the problem comes back. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] "too little data" error still occurring in 1.0.10
Timo Sirainen wrote: > On Sat, 2008-02-09 at 02:53 -0700, Mike Brown wrote: > > I'm running dovecot 1.0.10, but am seeing the "too little data" error > > that was supposedly fixed in 1.0.9. Not sure how long it's been going on. > > Did you try deleting dovecot.index.cache files from those mailboxes and > see if it comes back? I tried that just now, and so far, things are back to normal. Thanks! I guess I don't need the patch. Do you want me to try it anyway? Mike
Re: [Dovecot] "too little data" error still occurring in 1.0.10
On Sat, 2008-02-09 at 02:53 -0700, Mike Brown wrote: > Greetings- > > I'm running dovecot 1.0.10, but am seeing the "too little data" error > that was supposedly fixed in 1.0.9. Not sure how long it's been going on. Did you try deleting dovecot.index.cache files from those mailboxes and see if it comes back? If it just keeps happening, does the attached patch fix it? (it also requires that cache files get deleted, because it can't fix already broken cached data) If the patch fixes it, I guess I'll release 1.0.11 with it. It'll make the performance worse in some situations but at least it works then. v1.1 should have it properly fixed. diff -r 05b7ea05c426 src/lib-storage/index/mbox/mbox-mail.c --- a/src/lib-storage/index/mbox/mbox-mail.c Sat Jan 19 08:29:04 2008 +0200 +++ b/src/lib-storage/index/mbox/mbox-mail.c Sun Feb 10 22:18:19 2008 +0200 @@ -172,13 +172,14 @@ static uoff_t mbox_mail_get_physical_siz input = mail_get_stream(_mail, &hdr_size, NULL); if (input == NULL) return (uoff_t)-1; - i_stream_sync(mbox->mbox_stream); + /*i_stream_sync(mbox->mbox_stream);*/ /* our header size varies, so don't do any caching */ body_offset = istream_raw_mbox_get_body_offset(mbox->mbox_stream); if (body_offset == (uoff_t)-1) return (uoff_t)-1; +#if 0 /* use the next message's offset to avoid reading through the entire message body to find out its size */ hdr = mail_index_get_header(mail->trans->trans_view); @@ -194,7 +195,9 @@ static uoff_t mbox_mail_get_physical_siz _mail->seq + 1, &next_offset, &deleted) > 0) { body_size = next_offset - body_offset; - } else { + } else +#endif + { body_size = (uoff_t)-1; } @@ -203,8 +206,8 @@ static uoff_t mbox_mail_get_physical_siz body_size); data->physical_size = hdr_size.physical_size + body_size; - i_stream_seek(data->stream, old_offset); - i_stream_sync(mbox->mbox_stream); + /*i_stream_seek(data->stream, old_offset); + i_stream_sync(mbox->mbox_stream);*/ return data->physical_size; } signature.asc Description: This is a digitally signed message part
[Dovecot] "too little data" error still occurring in 1.0.10
Greetings- I'm running dovecot 1.0.10, but am seeing the "too little data" error that was supposedly fixed in 1.0.9. Not sure how long it's been going on. I have a straightforward mbox setup, and am using Thunderbird to check my inbox. It can't read the box. The log fills up with these messages: Feb 8 23:24:43 chilled dovecot: imap-login: Login: user=, method=PLAIN, rip=##.##.##.##, lip=##.##.##.##, TLS Feb 8 23:24:43 chilled dovecot: IMAP(mike): FETCH for mailbox INBOX UID 1644 got too little data: 4254 vs 4262 Feb 8 23:24:43 chilled dovecot: IMAP(mike): Disconnected: Disconnected Let me know if there's more info needed. -Mike