]> granicus.if.org Git - curl/commitdiff
pop3: Added clarity on some server response codes
authorSteve Holme <steve_holme@hotmail.com>
Fri, 20 Nov 2015 06:41:53 +0000 (06:41 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 20 Nov 2015 06:41:53 +0000 (06:41 +0000)
lib/pop3.c

index 53510a21044e49595e71c2cc1b26c8310e7b6c8a..dd4a32b2fb8f61e4b5e89428fc325ad560aba7b6 100644 (file)
@@ -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))