Skip to content

Commit

Permalink
Bugfix: Attempt to read property "smimeSigned" on null
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Aug 12, 2024
1 parent 55d7d52 commit 486bbba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ public function DoMessage() : array
try
{
$oMessage = $this->MailClient()->Message($sFolder, $iUid, true, $this->Cacher($oAccount));
if (!$oMessage) {
throw new \RuntimeException('Message not found');
}

$bAutoVerify = $this->Config()->Get('security', 'auto_verify_signatures', false);

Expand Down Expand Up @@ -572,13 +575,10 @@ public function DoMessage() : array
throw new ClientException(Notifications::CantGetMessage, $oException);
}

if ($oMessage) {
$ETag = $oMessage->ETag($this->getAccountFromToken()->ImapUser());
$this->verifyCacheByKey($ETag);
$this->Plugins()->RunHook('filter.result-message', array($oMessage));
$this->cacheByKey($ETag);
}

$ETag = $oMessage->ETag($this->getAccountFromToken()->ImapUser());
$this->verifyCacheByKey($ETag);
$this->Plugins()->RunHook('filter.result-message', array($oMessage));
$this->cacheByKey($ETag);
return $this->DefaultResponse($oMessage);
}

Expand Down

0 comments on commit 486bbba

Please sign in to comment.