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:
parent
fd3bf06a8a
commit
228e6c443c
@ -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__) */
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user