From 76c41d5156ee17f0d0b42f595ab9f9882c34b1fd Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 20 May 2022 16:40:06 +0200 Subject: [PATCH] Bugfix: hide_x_mailer_header option was missing for ReadReceiptMessage --- .../app/libraries/RainLoop/Actions/Messages.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php index 6dfd55aa0..83989d264 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php @@ -986,8 +986,9 @@ trait Messages $oMessage = new \MailSo\Mime\Message(); - if (!$this->Config()->Get('security', 'hide_x_mailer_header', true)) - { + if ($this->Config()->Get('security', 'hide_x_mailer_header', true)) { + $oMessage->DoesNotAddDefaultXMailer(); + } else { $oMessage->SetXMailer('SnappyMail/'.APP_VERSION); } @@ -1034,11 +1035,10 @@ trait Messages { $oMessage = new \MailSo\Mime\Message(); - if (!$this->Config()->Get('security', 'hide_x_mailer_header', true)) - { - $oMessage->SetXMailer('SnappyMail/'.APP_VERSION); - } else { + if ($this->Config()->Get('security', 'hide_x_mailer_header', true)) { $oMessage->DoesNotAddDefaultXMailer(); + } else { + $oMessage->SetXMailer('SnappyMail/'.APP_VERSION); } $sFrom = $this->GetActionParam('From', '');