Skip to content

Commit

Permalink
Merge pull request #39607 from FedericoHeichou/fix-double-dots-with-p…
Browse files Browse the repository at this point in the history
…ipe-sendmail
  • Loading branch information
skjnldsv authored Feb 23, 2024
2 parents a88c1bd + 609e751 commit 6c837fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/settings/templates/settings/admin/additional-mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

$mail_sendmailmode = [
'smtp' => 'smtp (-bs)',
'pipe' => 'pipe (-t)'
'pipe' => 'pipe (-t -i)'
];

?>
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Mail/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function getSendMailInstance(): SendmailTransport {
}

$binaryParam = match ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) {
'pipe' => ' -t',
'pipe' => ' -t -i',
default => ' -bs',
};

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Mail/MailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function setUp(): void {
public function sendmailModeProvider(): array {
return [
'smtp' => ['smtp', ' -bs'],
'pipe' => ['pipe', ' -t'],
'pipe' => ['pipe', ' -t -i'],
];
}

Expand Down

0 comments on commit 6c837fd

Please sign in to comment.