mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-03-12 20:16:11 +03:00
Merge pull request #125 from benr77/imap-separator
Added method to access mailbox properties - including IMAP separator character
This commit is contained in:
commit
6baf7fe404
@ -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…
x
Reference in New Issue
Block a user