]> granicus.if.org Git - curl/commitdiff
imap: Introduced the continue response in imap_endofresp()
authorSteve Holme <steve_holme@hotmail.com>
Sun, 6 Jan 2013 20:29:19 +0000 (20:29 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 6 Jan 2013 20:29:19 +0000 (20:29 +0000)
lib/imap.c

index 388af049653d3afd7daa4135cbcc5a714bff3053..75fe3d4a4760a8b4590d6434ac203d60ff96f8c8 100644 (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? */
   if(imapc->state == IMAP_CAPABILITY) {
     /* Do we have a valid response? */