Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2008-01-04 Thread Timo Sirainen
On Fri, 2008-01-04 at 12:27 -0500, Mikhail Teterin wrote:
 Jan  3 18:08:28 bonkers dovecot: IMAP(mi): FETCH for mailbox INBOX UID 40703 
 got too little data: 4916 vs 4918
..
 If you'd like, I can upload a sample mbox for your testing -- there is
 nothing particularly private in it, and it is all in Russian anyway :)

I can't reproduce it myself anymore, so sure a sample mbox would help,
and maybe its index files. Or does it help if you just delete the
dovecot.index.cache files? Could you also show your dovecot -n output?



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2008-01-04 Thread Timo Sirainen
On Fri, 2008-01-04 at 15:46 -0500, Mikhail Teterin wrote:
 п'ятниця 04 січень 2008 03:37 по, Timo Sirainen Ви написали:
  I can't reproduce it myself anymore, so sure a sample mbox would help,
 
 Where can I upload it?

You could send it to [EMAIL PROTECTED] It accepts max. 100MB mails
(temporarily).

  and maybe its index files. Or does it help if you just delete the
  dovecot.index.cache files?
 
 I don't think, I have any... Do they exist with mbox-type mailboxes? Where 
 would they be?

~/mail/.imap/mailbox/

It's possible that those are just broken cached values from older
versions and deleting the cache files would fix the problem.

Of course some day I should have Dovecot fix those itself automatically.

 mbox:~/Mail/:INBOX=/var/mail/%u:mbox:/home/smirnov/Mail/mks/INBOX

:mbox:/home/smirnov/Mail/mks/INBOX looks broken, but I think it's just
ignored.

 mmap_disable: yes

Why? Do you use NFS?


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2007-12-28 Thread Timo Sirainen
With these changes I can't break it anymore:

http://hg.dovecot.org/dovecot-1.0/rev/0713de760c5f
http://hg.dovecot.org/dovecot-1.0/rev/fc5f6bbbf4c0
http://hg.dovecot.org/dovecot-1.0/rev/0a4f86976f50



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2007-12-28 Thread Sergey Ivanov

Timo Sirainen wrote:

With these changes I can't break it anymore:

http://hg.dovecot.org/dovecot-1.0/rev/0713de760c5f
http://hg.dovecot.org/dovecot-1.0/rev/fc5f6bbbf4c0
http://hg.dovecot.org/dovecot-1.0/rev/0a4f86976f50

  

Yes, thanks Timo, it seems to be fixed!
--
   Sergey Ivanov.


Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2007-12-27 Thread sergey ivanov
Mark Adams wrote:
 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 [EMAIL PROTECTED]
 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
I have dovecot-1.0.9, with recent patches up to hg changeset
5498:fc5f6bbbf4c0.
Dovecot configuration is the following:
---
# dovecot -n
# 1.0.9: /etc/dovecot/dovecot.conf
protocols: imap imaps pop3 pop3s
ssl_cert_file: /var/lib/ssl/certs/dovecot.pem
ssl_key_file: /var/lib/ssl/private/dovecot.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_extra_groups: mail
mbox_write_locks: fcntl
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
---
And I have the same problem with 'got too little data' in logs, and mail
client ([EMAIL PROTECTED]) can not fetch messages.
I have tried to remove all dovecot.index* files in .imap directory,
seems it helped to open first messages, but then the problem reappears.
snippet from the log:
---
Dec 27 23:05:17 dovecot dovecot: IMAP(seriv): FETCH for mailbox
xen-discuss-opensolaris-org UID 3 got too little data: 4427 vs 4430
Dec 27 23:05:17 dovecot dovecot: IMAP(seriv): Disconnected:
DisconnectedDec 27 23:05:17 dovecot dovecot: imap-login: Login:
user=seriv, method=PLAIN, rip=192.168.10.10,
 lip=192.168.10.110, TLS
---
This does not happen for INBOX.
These 3 lines appears repeating about 5-10 times in a second in the log.
About the numbers:
---
grep 'got too litt' /var/log/maillog  | sed 's/.*got too little data:
//' | sort -u -n
1688 vs 1693
4427 vs 4430
4552 vs 4558
5119 vs 5120
8567 vs 8570
9527 vs 9543
54605 vs 54608
---

-- 
   Sergey Ivanov.





Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2007-12-21 Thread Timo Sirainen
On Sat, 2007-12-22 at 06:55 +0200, Timo Sirainen wrote:
 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 
  4825
 
 See if this helps: http://hg.dovecot.org/dovecot-1.0/rev/0713de760c5f

No, sorry, I was accidentally testing it with maildir. That seems to
just make it break more easily. I'll continue tomorrow.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2007-12-20 Thread Timo Sirainen
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+2

Do 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.cThu Dec 20 23:01:04 2007 +0200
+++ b/src/lib-storage/index/mbox/mbox-mail.cThu 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);



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] FETCH for mailbox INBOX UID 39641 got too little data: 4823 vs 4825

2007-12-20 Thread Mark Adams
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 [EMAIL PROTECTED]  
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