imclient >4k literal error
Patrick Welche
prlw1 at newn.cam.ac.uk
Mon Apr 7 15:34:04 EDT 2003
On Mon, Apr 07, 2003 at 02:38:56PM -0400, Lawrence Greenfield wrote:
> Date: Sun, 6 Apr 2003 21:58:30 +0100
> From: Patrick Welche <prlw1 at newn.cam.ac.uk>
>
> The following fixes this bug. The bug report also mentions
> "we need to fix it so that literals that don't end lines are still handled
> correctly." however RFC 2060 states that:
>
> The protocol receiver of an IMAP4rev1 client or server is either
> reading a line, or is reading a sequence of octets with a known
> count followed by a line.
>
> so it seems that literals must be followed by a line according to the
> protocol specification.
>
> I think the bug is referring to the fact that literals can occur in
> the middle of a FETCH response (where a single fetch response can be
> thought of as one "line") and, at least at the time, I thought that
> imclient wouldn't deal with that correctly.
>
> I'd have to spend some time looking at it to refresh my memory.
Well, the patch I sent works if what we want is
FETCH... {literal length} CRLF
The literal
over several
4k blocks
CRLF
so I think that wraps it up then :-)
Cheers,
Patrick
More information about the Info-cyrus
mailing list