Merge pull request #125 from benr77/imap-separator

Added method to access mailbox properties - including IMAP separator character
This commit is contained in:
Robert Hafner 2015-06-06 22:44:26 -07:00
commit 6baf7fe404

View File

@ -443,7 +443,19 @@ class Server
*/
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->getServerString(),
$this->getServerSpecification() . $mailbox