mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-12-18 21:19:05 +08:00
Bugfix: Attempt to read property "smimeSigned" on null
This commit is contained in:
parent
55d7d52e35
commit
486bbba4ca
1 changed files with 7 additions and 7 deletions
|
|
@ -480,6 +480,9 @@ trait Messages
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$oMessage = $this->MailClient()->Message($sFolder, $iUid, true, $this->Cacher($oAccount));
|
$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);
|
$bAutoVerify = $this->Config()->Get('security', 'auto_verify_signatures', false);
|
||||||
|
|
||||||
|
|
@ -572,13 +575,10 @@ trait Messages
|
||||||
throw new ClientException(Notifications::CantGetMessage, $oException);
|
throw new ClientException(Notifications::CantGetMessage, $oException);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oMessage) {
|
|
||||||
$ETag = $oMessage->ETag($this->getAccountFromToken()->ImapUser());
|
$ETag = $oMessage->ETag($this->getAccountFromToken()->ImapUser());
|
||||||
$this->verifyCacheByKey($ETag);
|
$this->verifyCacheByKey($ETag);
|
||||||
$this->Plugins()->RunHook('filter.result-message', array($oMessage));
|
$this->Plugins()->RunHook('filter.result-message', array($oMessage));
|
||||||
$this->cacheByKey($ETag);
|
$this->cacheByKey($ETag);
|
||||||
}
|
|
||||||
|
|
||||||
return $this->DefaultResponse($oMessage);
|
return $this->DefaultResponse($oMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue