mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Bugfix: Attempt to read property "smimeSigned" on null
This commit is contained in:
parent
55d7d52e35
commit
486bbba4ca
|
@ -480,6 +480,9 @@ trait Messages
|
|||
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);
|
||||
|
||||
|
@ -572,13 +575,10 @@ trait Messages
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue