From: Steve Holme Date: Sun, 6 Jan 2013 20:29:19 +0000 (+0000) Subject: imap: Introduced the continue response in imap_endofresp() X-Git-Tag: curl-7_29_0~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd561c38344f065ea81b10813d86f23e1d1f168a;p=thirdparty%2Fcurl.git imap: Introduced the continue response in imap_endofresp() --- diff --git a/lib/imap.c b/lib/imap.c index 388af04965..75fe3d4a47 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -340,6 +340,13 @@ static int imap_endofresp(struct pingpong *pp, int *resp) } } + /* Do we have a generic continuation response? */ + if((len == 3 && !memcmp("+", line, 1)) || + (len >= 2 && !memcmp("+ ", line, 2))) { + *resp = '+'; + return TRUE; + } + /* Are we processing CAPABILITY command responses? */ if(imapc->state == IMAP_CAPABILITY) { /* Do we have a valid response? */