]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
VERP: fix sending multiple batches
authorBaptiste Daroussin <bapt@FreeBSD.org>
Sat, 14 Oct 2023 21:30:17 +0000 (23:30 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Sat, 14 Oct 2023 21:30:17 +0000 (23:30 +0200)
Always rewind the mail pointer before actually sending the email
to make sure between 2 batches, we always send the entire email

src/mlmmj-send.c

index 8bf321361b3821ba96e1be01c0e961163f041124..e8a1007b0cd09723cd0d7809aa44c792bddfd44a 100644 (file)
@@ -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);