diff --git a/petidomo.h b/petidomo.h index 9f7e542..0b5d6e0 100644 --- a/petidomo.h +++ b/petidomo.h @@ -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__) */ diff --git a/queue_command.c b/queue_command.c index b727104..0db76c8 100644 --- a/queue_command.c +++ b/queue_command.c @@ -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; } diff --git a/queue_posting.c b/queue_posting.c index bf15ff1..136bc35 100644 --- a/queue_posting.c +++ b/queue_posting.c @@ -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; }