From 19ddab892db5b6054197e4d639e6f766438a88aa Mon Sep 17 00:00:00 2001 From: Daniel Lerch Date: Mon, 14 Sep 2020 10:40:29 +0200 Subject: [PATCH] Fix duplicate MIME header Sender --- mailing.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailing.php b/mailing.php index baba969..9746483 100644 --- a/mailing.php +++ b/mailing.php @@ -1118,8 +1118,9 @@ function ko_mailing_store_moderation($imap, $mail, $login, $modifyRcpts = true, $header = preg_replace('/(\n|^)X-Spam-Report:(.*)(\n\s+(.*))*\n/i', '$1', $header); $header = preg_replace('/(\n|^)DKIM-Signature:(.*)(\n\s+(.*))*\n/i', '$1', $header); - // Delete any existing Reply-To headers to avoid duplicates + // Delete any existing Reply-To and Sender headers to avoid duplicates $header = preg_replace('/(\n|^)Reply-To:(.*)(\n\s+(.*))*\n/i', '$1', $header); + $header = preg_replace('/(\n|^)Sender:(.*)(\n\s+(.*))*\n/i', '$1', $header); $replyTo = NULL; if($mail['_reply_to']) {