1
0
mirror of https://github.com/moparisthebest/curl synced 2024-10-31 15:45:12 -04:00

imap: Introduced the continue response in imap_endofresp()

This commit is contained in:
Steve Holme 2013-01-06 20:29:19 +00:00
parent db20517796
commit dd561c3834

View File

@ -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? */ /* Are we processing CAPABILITY command responses? */
if(imapc->state == IMAP_CAPABILITY) { if(imapc->state == IMAP_CAPABILITY) {
/* Do we have a valid response? */ /* Do we have a valid response? */