Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail/spam): fix replace raw message header
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Aug 23, 2021
1 parent 8fcdc1f commit def9a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Felamimail/Controller/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ protected function _replaceHeaderInRawMessage($mailAsString, $header, $newValue)
{
return preg_replace(
// find header (also replaces multiline headers!)
'/(\n' . ucfirst($header) . ':) .*\n( .*\n)*/',
'/(' . ucfirst($header) . ':) .*\n( .*\n)*/',
'${1} ' . mb_encode_mimeheader($newValue) . "\n",
$mailAsString);
}
Expand Down

0 comments on commit def9a4e

Please sign in to comment.