mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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)
|
if (\MailSo\Config::$MessageListUndeletedFilter)
|
||||||
{
|
{
|
||||||
|
$oFolder = $this->oImapClient->FolderCurrentInformation();
|
||||||
|
if (!$oFolder || $oFolder->FolderName !== $sFolderName)
|
||||||
|
{
|
||||||
|
$this->oImapClient->FolderExamine($sFolderName);
|
||||||
|
}
|
||||||
|
|
||||||
$aUids = $this->getSearchUidsResult('',
|
$aUids = $this->getSearchUidsResult('',
|
||||||
$sFolderName, false, false, false, $oCacher);
|
$sFolderName, false, false, false, $oCacher);
|
||||||
|
|
||||||
|
|
@ -683,7 +689,7 @@ class MailClient
|
||||||
|
|
||||||
$iUnseenCount = \count($aUids);
|
$iUnseenCount = \count($aUids);
|
||||||
}
|
}
|
||||||
else
|
else if (0 === $iNewCount)
|
||||||
{
|
{
|
||||||
$iCount = 0;
|
$iCount = 0;
|
||||||
$iUnseenCount = 0;
|
$iUnseenCount = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue