mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-26 04:36:03 +03:00
Added method to access mailbox properties
This commit is contained in:
parent
b5b790ea75
commit
545489ee10
@ -443,13 +443,25 @@ class Server
|
||||
*/
|
||||
public function hasMailBox($mailbox)
|
||||
{
|
||||
return (boolean) imap_getmailboxes(
|
||||
$this->getImapStream(),
|
||||
$this->getServerString(),
|
||||
$this->getServerSpecification() . $mailbox
|
||||
);
|
||||
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->getServerString(),
|
||||
$this->getServerSpecification() . $mailbox
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the given mailbox.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user