Fix hide_x_mailer_header config option behaviour

Remove X-Mailer header if hide_x_mailer_header = Off
This commit is contained in:
Anton Piliugin 2019-05-28 14:32:18 +02:00 committed by GitHub
parent 88439e6e07
commit 6b8c7043af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5892,6 +5892,8 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
if (!$this->Config()->Get('security', 'hide_x_mailer_header', false))
{
$oMessage->SetXMailer('RainLoop/'.APP_VERSION);
} else {
$oMessage->DoesNotAddDefaultXMailer();
}
$oFromIdentity = $this->GetIdentityByID($oAccount, $sIdentityID);