From f9fe680478f7caee7c42baffb5ba724490dc0d91 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 13 Nov 2024 19:58:29 +0100 Subject: [PATCH] fix indention and newlines --- api/src/Mail/Script.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Mail/Script.php b/api/src/Mail/Script.php index 0923bce476..32b5ab83c6 100644 --- a/api/src/Mail/Script.php +++ b/api/src/Mail/Script.php @@ -410,10 +410,10 @@ class Script } // we need to delete From header, to be able to overwrite it! $newruletext .= "\t".'deleteheader "from";'."\n"; - $newruletext .= "\t".'addheader "From" "\'${from}\' <${user_email}>";'."\n\n"; + $newruletext .= "\t".'addheader "From" "\'${from}\' <${user_email}>";'."\n"; // we need to delete the DKIM-Signature header, as we change the from - $newruletext .= 'if header :matches "DKIM-Signature" "*" { set "dkim_signature" "${1}"; }'."\n"; - $newruletext .= "\t".'deleteheader "dkim-signature";'."\n"; + $newruletext .= "\t".'if header :matches "DKIM-Signature" "*" { set "dkim_signature" "${1}"; }'."\n"; + $newruletext .= "\t".'deleteheader "dkim-signature";'."\n\n"; } foreach(preg_split('/, ?/',$rule['action_arg']) as $addr)