Skip to content

Commit

Permalink
Fix duplicate MIME header Sender
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lerch committed Sep 14, 2020
1 parent 5729e01 commit 19ddab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit 19ddab8

Please sign in to comment.