aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-11-20 06:41:53 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-11-20 06:41:53 +0000
commit6af80afe49c18bef8c34e043e6183b9339ce353b (patch)
tree3c0c7e79c383186174c194c2dfebdf416097e0d9
parent80562083da0b51d594fe9765b079eefdd3ba87b7 (diff)
pop3: Added clarity on some server response codes
-rw-r--r--lib/pop3.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index 53510a210..dd4a32b2f 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -256,14 +256,16 @@ static bool pop3_endofresp(struct connectdata *conn, char *line, size_t len,
if(pop3c->state == POP3_CAPA) {
/* Do we have the terminating line? */
if(len >= 1 && !memcmp(line, ".", 1))
+ /* Treat the response as a success */
*resp = '+';
else
+ /* Treat the response as an untagged continuation */
*resp = '*';
return TRUE;
}
- /* Do we have a command or continuation response? */
+ /* Do we have a success or continuation response? */
if((len >= 3 && !memcmp("+OK", line, 3)) ||
(len >= 1 && !memcmp("+", line, 1))) {
*resp = '+';
@@ -700,7 +702,7 @@ static CURLcode pop3_state_capa_resp(struct connectdata *conn, int pop3code,
(void)instate; /* no use for this yet */
- /* Do we have a untagged response? */
+ /* Do we have a untagged continuation response? */
if(pop3code == '*') {
/* Does the server support the STLS capability? */
if(len >= 4 && !memcmp(line, "STLS", 4))