Bugfix: ask/send readReceipt was broken

This commit is contained in:
the-djmaze 2024-01-23 10:20:54 +01:00
parent 61c533a1a6
commit 5e35e39012
4 changed files with 27 additions and 28 deletions

View file

@ -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');
}
}
}
}