OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/nntp.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/nntp.c 1.6 -> 1.7

--- nntp.c       2001/08/14 08:15:25     1.6
+++ nntp.c       2001/08/14 14:42:41     1.7
@@ -231,12 +231,14 @@
      *  
      *  In other words, INN *requires* the use of "MODE READER".
      */
+    //fprintf(stderr, "DEBUG: before MODE READER\n");
     *line = '\0';
     strcat(line, "MODE READER");
     if ((rc = nntp_writeline(nntp, line)) != NNTP_OK)
         return rc;
     if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
         return rc;
+    //fprintf(stderr, "DEBUG: after MODE READER\n");
 
     /*  A 200 response means posting ok, 201 means posting not allowed. We
      *  don't care about 5xx errors, they simply mean the server doesn't know
@@ -255,7 +257,6 @@
      *  < 223 yes, article already known
      *  < 430 no, i don't know the article, yet
      */
-#if 0
     *line = '\0';
     strcat(line, "STAT ");
     strcat(line, msg->cpMsgid);
@@ -267,7 +268,6 @@
         return NNTP_OK;
     if (strncmp(line, "430", 3) != 0)
         return NNTP_ERR_POST;
-#endif
 
     /*  post the article
      *  > POST
@@ -293,6 +293,7 @@
      *  441 437 Too old
      *  441 Duplicate "Newsgroups" header
      *  441 Required "Subject" header is missing
+     *  441 Obsolete "Received" header
      *  
      *  In other words, INN uses 441 for other status messages as well.
      */
@@ -312,7 +313,7 @@
 
     if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
         return rc;
-    //fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(nntp, rc));
+    //fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc));
     if (   (strncmp(line, "240", 3) == 0)
         || (strncmp(line, "441", 3) == 0)
           )
@@ -329,7 +330,7 @@
 #endif
 }
 
-char *nntp_error(nntp_t *nntp, nntp_rc_t rc)
+char *nntp_error(nntp_rc_t rc)
 {
     char *str;
                                       str = "NNTP: errorcode has no description";

CVSTrac 2.0.1