mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-29 14:06:03 +03:00
Added method to access mailbox properties
This commit is contained in:
parent
b5b790ea75
commit
545489ee10
@ -443,7 +443,19 @@ class Server
|
|||||||
*/
|
*/
|
||||||
public function hasMailBox($mailbox)
|
public function hasMailBox($mailbox)
|
||||||
{
|
{
|
||||||
return (boolean) imap_getmailboxes(
|
return (boolean) $this->getMailBoxDetails($mailbox);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return information about the mailbox or mailboxes
|
||||||
|
*
|
||||||
|
* @param $mailbox
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function getMailBoxDetails($mailbox)
|
||||||
|
{
|
||||||
|
return imap_getmailboxes(
|
||||||
$this->getImapStream(),
|
$this->getImapStream(),
|
||||||
$this->getServerString(),
|
$this->getServerString(),
|
||||||
$this->getServerSpecification() . $mailbox
|
$this->getServerSpecification() . $mailbox
|
||||||
|
Loading…
Reference in New Issue
Block a user