From: Baptiste Daroussin Date: Sat, 14 Oct 2023 21:30:17 +0000 (+0200) Subject: VERP: fix sending multiple batches X-Git-Tag: RELEASE_1_4_0rc2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8184971b809e3f261a8cb338322cf2fef65c6908;p=thirdparty%2Fmlmmj.git VERP: fix sending multiple batches Always rewind the mail pointer before actually sending the email to make sure between 2 batches, we always send the entire email --- diff --git a/src/mlmmj-send.c b/src/mlmmj-send.c index 8bf32136..e8a1007b 100644 --- a/src/mlmmj-send.c +++ b/src/mlmmj-send.c @@ -137,6 +137,7 @@ int send_mail_verp(int sockfd, strlist *addrs, struct mail *mail, return MLMMJ_DATA; } + rewind(mail->fp); write_mailbody(sockfd, mail->fp, NULL); retval = write_dot(sockfd);