mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Damn, forgot browser cache while debugging. Now it works
This commit is contained in:
parent
2afb11fd65
commit
68fc40e911
2 changed files with 7 additions and 8 deletions
|
|
@ -433,14 +433,14 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
if ($oFolderInfo && $sFolderName === $oFolderInfo->FolderName) {
|
if ($oFolderInfo && $sFolderName === $oFolderInfo->FolderName) {
|
||||||
$aResult = $oFolderInfo->getStatusItems();
|
$aResult = $oFolderInfo->getStatusItems();
|
||||||
// SELECT or EXAMINE command then UNSEEN is the message sequence number of the first unseen message
|
// SELECT or EXAMINE command then UNSEEN is the message sequence number of the first unseen message
|
||||||
// However, Dovecot does return the amount of unseen messages
|
$aResult['UNSEEN'] = $this->simpleESearchOrESortHelper(false, 'UNSEEN', ['COUNT'])['COUNT'];
|
||||||
// $aResult['UNSEEN'] = $this->simpleESearchOrESortHelper(false, 'UNSEEN', ['COUNT'])['COUNT'];
|
} else {
|
||||||
return $aResult;
|
$aResult = \count($aStatusItems)
|
||||||
|
? $this->SendRequestGetResponse('STATUS', array($this->EscapeString($sFolderName), $aStatusItems))
|
||||||
|
->getStatusFolderInformationResult()
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
return \count($aStatusItems)
|
return $aResult;
|
||||||
? $this->SendRequestGetResponse('STATUS', array($this->EscapeString($sFolderName), $aStatusItems))
|
|
||||||
->getStatusFolderInformationResult()
|
|
||||||
: null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@ trait Status
|
||||||
* The number of messages which do not have the \Seen flag set.
|
* The number of messages which do not have the \Seen flag set.
|
||||||
* This response also occurs as a result of a SELECT or EXAMINE command,
|
* This response also occurs as a result of a SELECT or EXAMINE command,
|
||||||
* but then it is the message sequence number of the first unseen message.
|
* but then it is the message sequence number of the first unseen message.
|
||||||
* However, Dovecot does return the amount of unseen messages
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
$UNSEEN,
|
$UNSEEN,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue