mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
Resolve #155 Office365 lacks IMAP features
This commit is contained in:
parent
9db640c6c5
commit
d4117dc723
1 changed files with 12 additions and 9 deletions
|
|
@ -418,16 +418,19 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
{
|
||||
$oFolderInfo = $this->oCurrentFolderInfo;
|
||||
if ($oFolderInfo && $sFolderName === $oFolderInfo->FolderName) {
|
||||
$aResult = $oFolderInfo->getStatusItems();
|
||||
// SELECT or EXAMINE command then UNSEEN is the message sequence number of the first unseen message
|
||||
$aResult['UNSEEN'] = $this->simpleESearchOrESortHelper(false, 'UNSEEN', ['COUNT'])['COUNT'];
|
||||
} else {
|
||||
$aResult = \count($aStatusItems)
|
||||
? $this->SendRequestGetResponse('STATUS', array($this->EscapeString($sFolderName), $aStatusItems))
|
||||
->getStatusFolderInformationResult()
|
||||
: null;
|
||||
// Not supported by Outlook/Hotmail/Office365
|
||||
if ($this->IsSupported('ESEARCH')) {
|
||||
$aResult = $oFolderInfo->getStatusItems();
|
||||
// SELECT or EXAMINE command then UNSEEN is the message sequence number of the first unseen message
|
||||
$aResult['UNSEEN'] = $this->simpleESearchOrESortHelper(false, 'UNSEEN', ['COUNT'])['COUNT'];
|
||||
return $aResult;
|
||||
}
|
||||
// $this->FolderUnSelect();
|
||||
}
|
||||
return $aResult;
|
||||
return \count($aStatusItems)
|
||||
? $this->SendRequestGetResponse('STATUS', array($this->EscapeString($sFolderName), $aStatusItems))
|
||||
->getStatusFolderInformationResult()
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue