summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-09-24 20:49:19 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-09-25 17:44:51 +0100
commit09a13a1c0109c799abe66e4f89ad1a9d642a64de (patch)
treec69bcc406970f869b55857214c975725b37bcfef
parent30a09783b2f912a0fbb9aa19d7374da8539f38f1 (diff)
downloadgnurl-09a13a1c0109c799abe66e4f89ad1a9d642a64de.tar.gz
gnurl-09a13a1c0109c799abe66e4f89ad1a9d642a64de.tar.bz2
gnurl-09a13a1c0109c799abe66e4f89ad1a9d642a64de.zip
imap: Added clarification to the code about odd continuation responses
-rw-r--r--lib/imap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 5d3a1a17e..9a845102a 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -336,7 +336,10 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
return TRUE;
}
- /* Do we have a continuation response? */
+ /* Do we have a continuation response? This should be a + symbol followed by
+ 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))) {
switch(imapc->state) {