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.
This commit is contained in:
Peter Simons 2001-01-15 16:58:58 +00:00
parent fd3bf06a8a
commit 228e6c443c
3 changed files with 6 additions and 4 deletions

View File

@ -236,10 +236,10 @@ char* generate_cookie(const char*);
/********** 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__) */

View File

@ -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 @@ void queue_command(const struct Mail* mail, const char* command)
fclose(fh);
chmod(buffer, 0755);
free(buffer);
return cookie;
}

View File

@ -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 @@ void queue_posting(const struct Mail* mail, const char* listname)
fclose(fh);
chmod(buffer, 0755);
free(buffer);
return cookie;
}