mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 06:28:28 +03:00
Support for Delivery Status Notifications (DSN) #325
This commit is contained in:
parent
4eaef23cc7
commit
78219ec00d
3 changed files with 10 additions and 4 deletions
|
|
@ -5752,7 +5752,7 @@ class Actions
|
|||
* @param \RainLoop\Model\Account $oAccount
|
||||
* @param \MailSo\Mime\Message $oMessage
|
||||
* @param resource $rMessageStream
|
||||
* @param bool $bDsn = true
|
||||
* @param bool $bDsn = false
|
||||
* @param bool $bAddHiddenRcpt = true
|
||||
*
|
||||
* @throws \RainLoop\Exceptions\ClientException
|
||||
|
|
@ -5826,8 +5826,6 @@ class Actions
|
|||
}
|
||||
else if ($oSmtpClient->IsConnected())
|
||||
{
|
||||
$bDsn = false;
|
||||
|
||||
if (!empty($sFrom))
|
||||
{
|
||||
$oSmtpClient->MailFrom($sFrom, '', $bDsn);
|
||||
|
|
@ -5906,7 +5904,7 @@ class Actions
|
|||
$sDraftUid = $this->GetActionParam('MessageUid', '');
|
||||
$sSentFolder = $this->GetActionParam('SentFolder', '');
|
||||
$aDraftInfo = $this->GetActionParam('DraftInfo', null);
|
||||
$bDsn = '1' === $this->GetActionParam('Dsn', '0');
|
||||
$bDsn = '1' === (string) $this->GetActionParam('Dsn', '0');
|
||||
|
||||
$oMessage = $this->buildMessage($oAccount, false);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,13 @@
|
|||
<span class="i18n" data-i18n-text="COMPOSE/BUTTON_REQUEST_READ_RECEIPT"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="e-item" data-bind="click: function () { requestDsn(!requestDsn()); }">
|
||||
<a class="e-link">
|
||||
<i class="icon-checkbox-unchecked" data-bind="css: {'icon-checkbox-checked': requestDsn(), 'icon-checkbox-unchecked': !requestDsn() }"></i>
|
||||
|
||||
<span class="i18n" data-i18n-text="COMPOSE/BUTTON_REQUEST_DSN"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="e-item" data-bind="click: function () { markAsImportant(!markAsImportant()); }">
|
||||
<a class="e-link">
|
||||
<i class="icon-checkbox-unchecked" data-bind="css: {'icon-checkbox-checked': markAsImportant(), 'icon-checkbox-unchecked': !markAsImportant() }"></i>
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ ATTACHMENTS_UPLOAD_ERROR_DESC = "Not all attachments have been uploaded yet."
|
|||
BUTTON_REQUEST_READ_RECEIPT = "Request a read receipt"
|
||||
BUTTON_MARK_AS_IMPORTANT = "Mark as important"
|
||||
BUTTON_OPEN_PGP = "OpenPGP (Plain Text Only)"
|
||||
BUTTON_REQUEST_DSN = "Request a delivery receipt"
|
||||
|
||||
[POPUPS_ASK]
|
||||
BUTTON_YES = "Yes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue