summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-02-29 10:37:00 +0100
committerGitHub <noreply@github.com>2024-02-29 10:37:00 +0100
commit477c020db8e27daa625fda3c1391623742b3a812 (patch)
tree47c4625cab025bc2cbbc5e18903295f8b56db340 /lib/private
parente61f0b82c71e8b50c9de3ee39c5393bdfec7dc90 (diff)
downloadnextcloud-server-477c020db8e27daa625fda3c1391623742b3a812.tar.gz
nextcloud-server-477c020db8e27daa625fda3c1391623742b3a812.zip
Fix backport
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Mail/Mailer.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index 7d249338bdc..60f6c4580ca 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -350,14 +350,10 @@ class Mailer implements IMailer {
break;
}
- switch ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) {
- case 'pipe':
- $binaryParam = ' -t';
- break;
- default:
- $binaryParam = ' -bs';
- break;
- }
+ $binaryParam = match ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) {
+ 'pipe' => ' -t -i',
+ default => ' -bs',
+ };
return new SendmailTransport($binaryPath . $binaryParam, null, $this->logger);
}