aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-01-06 20:29:19 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-01-06 20:29:19 +0000
commitdd561c38344f065ea81b10813d86f23e1d1f168a (patch)
tree2a7ed1eb0fa1145c6c1a6b7e6a9058a5239c377d /lib
parentdb205177961218ebd8e358351dc9dd94490c79e6 (diff)
imap: Introduced the continue response in imap_endofresp()
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c7
1 files changed, 7 insertions, 0 deletions
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? */