mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Remove unused MailClient::InboxUnreadCount()
This commit is contained in:
parent
a426330dca
commit
d9268773db
1 changed files with 0 additions and 16 deletions
|
|
@ -588,22 +588,6 @@ class MailClient
|
||||||
return $this->GenerateFolderHash($sFolderName, $iCount, $iUidNext, $iHighestModSeq);
|
return $this->GenerateFolderHash($sFolderName, $iCount, $iUidNext, $iHighestModSeq);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @throws \MailSo\Net\Exceptions\Exception
|
|
||||||
* @throws \MailSo\Imap\Exceptions\Exception
|
|
||||||
*/
|
|
||||||
public function InboxUnreadCount() : int
|
|
||||||
{
|
|
||||||
$aFolderStatus = $this->oImapClient->FolderStatus('INBOX', array(
|
|
||||||
FolderResponseStatus::UNSEEN
|
|
||||||
));
|
|
||||||
|
|
||||||
$iResult = isset($aFolderStatus[FolderResponseStatus::UNSEEN]) ?
|
|
||||||
(int) $aFolderStatus[FolderResponseStatus::UNSEEN] : 0;
|
|
||||||
|
|
||||||
return 0 < $iResult ? $iResult : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws \MailSo\Base\Exceptions\InvalidArgumentException
|
* @throws \MailSo\Base\Exceptions\InvalidArgumentException
|
||||||
* @throws \MailSo\Net\Exceptions\Exception
|
* @throws \MailSo\Net\Exceptions\Exception
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue