mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-04 14:02:17 +08:00
Undeleted count cache fixes
This commit is contained in:
parent
a1cde2c246
commit
9dbed6f929
1 changed files with 26 additions and 20 deletions
|
@ -670,6 +670,12 @@ class MailClient
|
|||
|
||||
if (\MailSo\Config::$MessageListUndeletedFilter)
|
||||
{
|
||||
$oFolder = $this->oImapClient->FolderCurrentInformation();
|
||||
if (!$oFolder || $oFolder->FolderName !== $sFolderName)
|
||||
{
|
||||
$this->oImapClient->FolderExamine($sFolderName);
|
||||
}
|
||||
|
||||
$aUids = $this->getSearchUidsResult('',
|
||||
$sFolderName, false, false, false, $oCacher);
|
||||
|
||||
|
@ -683,7 +689,7 @@ class MailClient
|
|||
|
||||
$iUnseenCount = \count($aUids);
|
||||
}
|
||||
else
|
||||
else if (0 === $iNewCount)
|
||||
{
|
||||
$iCount = 0;
|
||||
$iUnseenCount = 0;
|
||||
|
|
Loading…
Reference in a new issue