OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/msg.c 1.4 -> 1.5

--- msg.c        2001/08/14 14:42:41     1.4
+++ msg.c        2001/08/16 15:00:50     1.5
@@ -74,9 +74,9 @@
      * msg->azHeaders, msg->asHeaders contains the headers in argz format, one
      * logical '\0'-terminated line per header which might be wrapped into
      * multiple '\n'-ended physical lines. The "From " envelope, "Received:",
-     * "To:" and "Cc:" headers are removed silently. The "Newsgroups:" and
-     * "Message-ID" headers are removed and their values are stored in
-     * separate structures (see below).
+     * "Path:", "To:" and "Cc:" headers are removed silently. The
+     * "Newsgroups:" and "Message-ID" headers are removed and their values are
+     * stored in separate structures (see below).
      *
      * msg->cpBody
      * contains the unmodified body of the message, '\0'-terminated, no
@@ -132,6 +132,11 @@
             argz_delete(&msg->azHeaders, &msg->asHeaders, cp);             /* del  value */
             continue;
         }
+        if (strcasecmp("Path:", cp) == 0) {
+            argz_delete(&msg->azHeaders, &msg->asHeaders, cp);             /* del  name  */
+            argz_delete(&msg->azHeaders, &msg->asHeaders, cp);             /* del  value */
+            continue;
+        }
         if (strcasecmp("Received:", cp) == 0) {
             argz_delete(&msg->azHeaders, &msg->asHeaders, cp);             /* del  name  */
             argz_delete(&msg->azHeaders, &msg->asHeaders, cp);             /* del  value */
@@ -180,6 +185,8 @@
         if (argz_create_sep(msg->azNewsgroups, ',', &msg->azNewsgroups, &msg->asNewsgroups) != 0)
             return MSG_ERR_MEM;
     }
+    argz_add(&msg->azHeaders, &msg->asHeaders, "Path:");
+    argz_add(&msg->azHeaders, &msg->asHeaders, "not-for-mail"); //FIXME
 
     return MSG_OK;
 }

CVSTrac 2.0.1