OSSP CVS Repository

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

Check-in Number: 275
Date: 2001-Jan-15 17:58:58 (local)
2001-Jan-15 16:58:58 (UTC)
User:simons
Branch:
Comment: queue_command() and queue_posting() will now return the cookie used as filename, so that the calling code can mail back the request for confirmation.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/petidomo.h      1.10 -> 1.11     3 inserted, 3 deleted
ossp-pkg/petidomo/queue_command.c      1.1 -> 1.2     4 inserted, 3 deleted
ossp-pkg/petidomo/queue_posting.c      1.1 -> 1.2     4 inserted, 3 deleted

ossp-pkg/petidomo/petidomo.h 1.10 -> 1.11

--- petidomo.h   2001/01/15 16:55:45     1.10
+++ petidomo.h   2001/01/15 16:58:58     1.11
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/petidomo.h,v $
-   $Revision: 1.10 $
+   $Revision: 1.11 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -236,10 +236,10 @@
 
 /********** queue_posting.c **********/
 
-void queue_posting(const struct Mail* mail, const char* listname);
+char* queue_posting(const struct Mail* mail, const char* listname);
 
 /********** queue_command.c **********/
 
-void queue_command(const struct Mail* mail, const char* command);
+char* queue_command(const struct Mail* mail, const char* command);
 
 #endif /* !defined(__PETIDOMO_H__) */


ossp-pkg/petidomo/queue_command.c 1.1 -> 1.2

--- queue_command.c      2001/01/15 16:29:11     1.1
+++ queue_command.c      2001/01/15 16:58:58     1.2
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/queue_command.c,v $
-   $Revision: 1.1 $
+   $Revision: 1.2 $
 
    Copyright (C) 2000 by Peter Simons <simons@computer.org>.
 
@@ -22,7 +22,7 @@
 #include "libtext/text.h"
 #include "petidomo.h"
 
-void queue_command(const struct Mail* mail, const char* command)
+char* queue_command(const struct Mail* mail, const char* command)
     {
     const struct PD_Config   * MasterConfig = getMasterConfig();
     char*   buffer;
@@ -54,4 +54,5 @@
     fclose(fh);
     chmod(buffer, 0755);
     free(buffer);
+    return cookie;
     }


ossp-pkg/petidomo/queue_posting.c 1.1 -> 1.2

--- queue_posting.c      2001/01/15 16:29:11     1.1
+++ queue_posting.c      2001/01/15 16:58:58     1.2
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/queue_posting.c,v $
-   $Revision: 1.1 $
+   $Revision: 1.2 $
 
    Copyright (C) 2000 by Peter Simons <simons@computer.org>.
 
@@ -22,7 +22,7 @@
 #include "libtext/text.h"
 #include "petidomo.h"
 
-void queue_posting(const struct Mail* mail, const char* listname)
+char* queue_posting(const struct Mail* mail, const char* listname)
     {
     const struct PD_Config   * MasterConfig = getMasterConfig();
     char*   buffer;
@@ -46,4 +46,5 @@
     fclose(fh);
     chmod(buffer, 0755);
     free(buffer);
+    return cookie;
     }

CVSTrac 2.0.1