]> granicus.if.org Git - curl/commitdiff
pop3: Added debug information to assist with test864 failure
authorSteve Holme <steve_holme@hotmail.com>
Sat, 21 Dec 2013 11:15:00 +0000 (11:15 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 21 Dec 2013 11:17:30 +0000 (11:17 +0000)
lib/pop3.c

index 782458ada5b3e2379bf80620a01b312465f9ac55..aad02b9df164be61509dc5ec5ab5551cdc81b752 100644 (file)
@@ -653,6 +653,8 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,
 
   (void)instate; /* no use for this yet */
 
+  DEBUGF(infof(data, "Server Greeting: %s\n", line));
+
   if(pop3code != '+') {
     failf(data, "Got unexpected pop3-server response");
     result = CURLE_FTP_WEIRD_SERVER_REPLY;
@@ -676,6 +678,7 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,
           /* Copy the timestamp */
           memcpy(pop3c->apoptimestamp, line + i, timestamplen);
           pop3c->apoptimestamp[timestamplen] = '\0';
+          DEBUGF(infof(data, "APOP Timestamp: %s\n", pop3c->apoptimestamp));
           break;
         }
       }