[dovecot] Re: FETCH BODY[part]<partial>
Timo Sirainen
tss at iki.fi
Wed Mar 26 20:31:45 EET 2003
On Wed, 2003-03-26 at 19:59, Jesse Peterson wrote:
> When the reply to the fetch is given, it seems to be missing a ")" on
> the end:
It's sent after the message text.
> 23 UID FETCH 48 BODY.PEEK[]<8192.1915>
> * 48 FETCH (UID 48 BODY[]<8192> {1915}
>
> How does an IMAP client learn the size of a message? Because the size
> of this particular message is 10107 bytes (header + message, in a
> maildir file).
IMAP requires that linebreaks are CR+LF. In maildir files you have only
LFs. So there's one extra byte per each line.
> If you multiply the simple header returned by this (148) by two, then
> add that to the filesize of the message, you get 12117 (minus a CR
> probably). Is this how RFC822.SIZE is defined?
RFC822.SIZE is just the full size of message, again with CR+LFs.
> Anyway, in conclusion, it now DOES work, it's just that apparently
> Mail.app cached the old file sizes on the broken messages, so those
> didn't work (i think).
OK, good. Now only thing left to fix is SSL proxy.
More information about the dovecot
mailing list