mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 01:17:04 +03:00
Bugfix: ask/send readReceipt was broken
This commit is contained in:
parent
61c533a1a6
commit
5e35e39012
4 changed files with 27 additions and 28 deletions
|
|
@ -368,14 +368,15 @@ trait Messages
|
|||
$sFolderFullName = $this->GetActionParam('messageFolder', '');
|
||||
$iUid = (int) $this->GetActionParam('messageUid', 0);
|
||||
|
||||
$this->Cacher($oAccount)->Set(\RainLoop\KeyPathHelper::ReadReceiptCache($oAccount->Email(), $sFolderFullName, $iUid), '1');
|
||||
|
||||
if (\strlen($sFolderFullName) && 0 < $iUid) {
|
||||
try
|
||||
{
|
||||
$this->MailClient()->MessageSetFlag($sFolderFullName, new SequenceSet($iUid), MessageFlag::MDNSENT, true, true);
|
||||
}
|
||||
catch (\Throwable $oException) {}
|
||||
catch (\Throwable $oException)
|
||||
{
|
||||
$this->Cacher($oAccount)->Set(\RainLoop\KeyPathHelper::ReadReceiptCache($oAccount->Email(), $sFolderFullName, $iUid), '1');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue