mirror of https://github.com/nextcloud/server
Merge pull request #39607 from FedericoHeichou/fix-double-dots-with-pipe-sendmail
This commit is contained in:
commit
6c837fd51e
|
@ -45,7 +45,7 @@ if ($_['mail_smtpmode'] === 'qmail') {
|
|||
|
||||
$mail_sendmailmode = [
|
||||
'smtp' => 'smtp (-bs)',
|
||||
'pipe' => 'pipe (-t)'
|
||||
'pipe' => 'pipe (-t -i)'
|
||||
];
|
||||
|
||||
?>
|
||||
|
|
|
@ -331,7 +331,7 @@ class Mailer implements IMailer {
|
|||
}
|
||||
|
||||
$binaryParam = match ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) {
|
||||
'pipe' => ' -t',
|
||||
'pipe' => ' -t -i',
|
||||
default => ' -bs',
|
||||
};
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ class MailerTest extends TestCase {
|
|||
public function sendmailModeProvider(): array {
|
||||
return [
|
||||
'smtp' => ['smtp', ' -bs'],
|
||||
'pipe' => ['pipe', ' -t'],
|
||||
'pipe' => ['pipe', ' -t -i'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue