From: Siva Mahadevan Date: Tue, 11 Jun 2024 15:05:46 +0000 (-0400) Subject: mlmmj-process: fix duplicate queued moderation notification email X-Git-Tag: RELEASE_1_4_7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=686d586f95c35d561c2241a788323c13dbbcbeb3;p=thirdparty%2Fmlmmj.git mlmmj-process: fix duplicate queued moderation notification email --- diff --git a/src/mlmmj-process.c b/src/mlmmj-process.c index 2727cfe4..a169bd9e 100644 --- a/src/mlmmj-process.c +++ b/src/mlmmj-process.c @@ -209,8 +209,6 @@ static void newmoderated(struct ml *ml, const char *mailfilename, mail.to = efromsender; mail.fp = fopen(qfname, "r"); if (send_single_mail(&mail, ml, false)) - save_queue(qfname, &mail); - else unlink(qfname); fclose(mail.fp); } @@ -221,8 +219,6 @@ static void newmoderated(struct ml *ml, const char *mailfilename, mail.to = efromsender; mail.fp = fopen(queuefilename, "r"); if (send_single_mail(&mail, ml, false)) - save_queue(queuefilename, &mail); - else unlink(queuefilename); fclose(mail.fp); exit(EXIT_SUCCESS);