From dd561c38344f065ea81b10813d86f23e1d1f168a Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 6 Jan 2013 20:29:19 +0000 Subject: [PATCH] imap: Introduced the continue response in imap_endofresp() --- lib/imap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/imap.c b/lib/imap.c index 388af0496..75fe3d4a4 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? */