imclient >4k literal error

Patrick Welche prlw1 at newn.cam.ac.uk
Mon Apr 7 16:31:10 EDT 2003


On Mon, Apr 07, 2003 at 04:04:13PM -0400, Lawrence Greenfield wrote:
> The question is what it'll do if you get something like:
> 
> * 291 FETCH (ENVELOPE ("Mon, 7 Apr 2003 20:34:04 +0100" 
> "Re: imclient >4k literal error" (("Patrick Welche" NIL "prlw1" 
> "newn.cam.ac.uk")) (({14}
> Patrick Welche NIL "prlw1" "newn.cam.ac.uk")) 
> (("Patrick Welche" NIL "prlw1" "newn.cam.ac.uk")) (("Lawrence Greenfield" 
> NIL "leg+" "andrew.cmu.edu")) (("Rob Siemborski" NIL "rjs3" 
> "andrew.cmu.edu")(NIL NIL "info-cyrus" "lists.andrew.cmu.edu")) NIL 
> "<200304071838.h37Icuff007629 at smtp5.andrew.cmu.edu>" 
> "<20030407203404.A29873 at quartz.newn.cam.ac.uk>"))
> 
> does it correctly resume parsing of the fetch response when there's an
> interior literal? (This is not just theoretical: Cyrus will send
> literals in the middle of envelope responses, though the protocol
> snippet from above was contrived.)

If the first CRLF you have in the above is after the {14}, so imclient_input
then notices the end of the line has a } and reads back to find the literallen,
I don't see why the above is any different to just fetching a BODY[].. Am I
missing something?

(BTW, with libcyrus as it was, I couldn't FETCH a test mail message with a 96k
attachement, now I can, even when I change the buffer size to 400 bytes, and
successfully copied a users mailboxes and messages using it)

Cheers,

Patrick




More information about the Info-cyrus mailing list