From 846d21ed13fb4eb2eddb912695fa02d07c8d2002 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 19 Jul 2022 10:06:04 +0200 Subject: [PATCH] Resolve #459 --- .../v/0.0.0/app/libraries/RainLoop/Actions/Messages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 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 05e2dbc2a..04038a688 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 @@ -155,7 +155,6 @@ trait Messages $sSentFolder = $this->GetActionParam('SaveFolder', ''); $aDraftInfo = $this->GetActionParam('DraftInfo', null); - $bDsn = '1' === (string) $this->GetActionParam('Dsn', '0'); $oMessage = $this->buildMessage($oAccount, false); @@ -173,6 +172,7 @@ trait Messages if (false !== $iMessageStreamSize) { + $bDsn = !empty($this->GetActionParam('Dsn', 0)); $this->smtpSendMessage($oAccount, $oMessage, $rMessageStream, $iMessageStreamSize, $bDsn, true); if (\is_array($aDraftInfo) && 3 === \count($aDraftInfo)) @@ -1055,13 +1055,13 @@ trait Messages $oMessage->SetReplyTo($oReplyTo); } - if ('1' === $this->GetActionParam('ReadReceiptRequest', '0')) { + if (!empty($this->GetActionParam('ReadReceiptRequest', 0))) { // Read Receipts Reference Main Account Email, Not Identities #147 // $oMessage->SetReadReceipt(($oFromIdentity ?: $oAccount)->Email()); $oMessage->SetReadReceipt($oFrom->GetEmail()); } - if ('1' === $this->GetActionParam('MarkAsImportant', '0')) { + if (!empty($this->GetActionParam('MarkAsImportant', 0))) { $oMessage->SetPriority(\MailSo\Mime\Enumerations\MessagePriority::HIGH); }