On Tue, 2007-06-26 at 14:09 +0200, Dirk Müller wrote:
when i use cyrus as source and destination imap server everything is fine. when i use dovecot as destination server occasionally exceptions occur when appending the mails. i was not able to see what's really going wrong so i used wireshark to get the imap command that fails:
A23 APPEND INBOX.MYSUBFOLDER () "14-Mar-2007 14:20:45 +0100" {0+} A23 NO Append aborted.
this is easy to check via telnet, always the same error. i'm not sure why the javax.mail API uses the "{0+}" but somehow it occurs every now and then.
It means that you're trying to save a mail that's zero bytes. There is a bug in handling that, but probably doesn't help with your actual problem: http://hg.dovecot.org/dovecot-1.0/rev/ba3c6dc3126c
sending this command to a cyrus imap server does not fail.
With Cyrus 2.2.13 I see:
1 APPEND INBOX () "14-Mar-2007 14:20:45 +0100" {0+}
1 NO System I/O error
You should anyway figure out why you're trying to save a zero byte mail.