aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorJustin Ehlert <ehlertjd@gmail.com>2015-10-13 08:55:05 -0500
committerSteve Holme <steve_holme@hotmail.com>2015-11-08 12:12:33 +0000
commit23b8fc15c8653133b2ea664b8f894c74d8862a3c (patch)
treefc4318da78b5cbcfd2190e8edcf887aa15657996 /lib/imap.c
parente3c85405d09c32f19c902e7050210ebbb7f6878c (diff)
imap: Don't check for continuation when executing a CUSTOMREQUEST
Bug: https://github.com/bagder/curl/issues/486 Closes https://github.com/bagder/curl/pull/487
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 1157d8fc1..b0809e320 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -360,8 +360,8 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
a space and optionally some text as per RFC-3501 for the AUTHENTICATE and
APPEND commands and as outlined in Section 4. Examples of RFC-4959 but
some e-mail servers ignore this and only send a single + instead. */
- if((len == 3 && !memcmp("+", line, 1)) ||
- (len >= 2 && !memcmp("+ ", line, 2))) {
+ if(!imap->custom && ((len == 3 && !memcmp("+", line, 1)) ||
+ (len >= 2 && !memcmp("+ ", line, 2)))) {
switch(imapc->state) {
/* States which are interested in continuation responses */
case IMAP_AUTHENTICATE: