OSSP CVS Repository

ossp - Check-in [323]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 323
Date: 2001-Jan-19 15:53:23 (local)
2001-Jan-19 14:53:23 (UTC)
User:simons
Branch:
Comment: Incorporated the cookie into the end-of-mail-marker used in the ack-script, so that the whole mechanism doesn't break when somebody has the words '[end-of-mail-marker]' in the mail body itself.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/queue_command.c      1.4 -> 1.5     3 inserted, 3 deleted
ossp-pkg/petidomo/queue_posting.c      1.4 -> 1.5     3 inserted, 3 deleted

ossp-pkg/petidomo/queue_command.c 1.4 -> 1.5

--- queue_command.c      2001/01/19 12:49:44     1.4
+++ queue_command.c      2001/01/19 14:53:23     1.5
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/queue_command.c,v $
-   $Revision: 1.4 $
+   $Revision: 1.5 $
 
    Copyright (C) 2000 by Peter Simons <simons@computer.org>.
 
@@ -39,7 +39,7 @@
         }
     fprintf(fh, "#! /bin/sh\n");
     fprintf(fh, "\n");
-    fprintf(fh, "%s --mode=listserv --approved <<[end-of-mail-marker]\n", who_am_i);
+    fprintf(fh, "%s --mode=listserv --approved <<[end-of-%s-marker]\n", who_am_i, cookie);
     fprintf(fh, "Sender: %s\n", mail->Envelope);
     fprintf(fh, "From: %s\n", mail->From);
     if (mail->Reply_To)
@@ -50,7 +50,7 @@
         fprintf(fh, "Approve: %s\n", mail->Approve);
     fprintf(fh, "\n");
     fprintf(fh, "%s\n", command);
-    fprintf(fh, "[end-of-mail-marker]\n");
+    fprintf(fh, "[end-of-%s-marker]\n", cookie);
     fclose(fh);
     chmod(buffer, 0755);
     free(buffer);


ossp-pkg/petidomo/queue_posting.c 1.4 -> 1.5

--- queue_posting.c      2001/01/19 12:49:44     1.4
+++ queue_posting.c      2001/01/19 14:53:23     1.5
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/queue_posting.c,v $
-   $Revision: 1.4 $
+   $Revision: 1.5 $
 
    Copyright (C) 2000 by Peter Simons <simons@computer.org>.
 
@@ -39,10 +39,10 @@
         }
     fprintf(fh, "#! /bin/sh\n");
     fprintf(fh, "\n");
-    fprintf(fh, "%s --mode=deliver --listname=%s --approved <<[end-of-mail-marker]\n", who_am_i, listname);
+    fprintf(fh, "%s --mode=deliver --listname=%s --approved <<[end-of-%s-marker]\n", who_am_i, listname, cookie);
     fprintf(fh, "%s\n", mail->Header);
     fprintf(fh, "%s", mail->Body);
-    fprintf(fh, "[end-of-mail-marker]\n");
+    fprintf(fh, "[end-of-%s-marker]\n", cookie);
     fclose(fh);
     chmod(buffer, 0755);
     free(buffer);

CVSTrac 2.0.1