public function subscribeMailbox($mailbox, $subscribe = true)
    {
        $this->login();
        $this->_subscribeMailbox(Horde_Imap_Client_Mailbox::get($mailbox), (bool)$subscribe);
    }
public function subscribeMailbox($mailbox, $subscribe = true)
    {
        $this->login();
        $this->_subscribeMailbox(Horde_Imap_Client_Mailbox::get($mailbox), (bool)$subscribe);
    }
public function subscribeMailbox ( $ mailbox , $ subscribe = true ) { $ this -> login ( ) ; $ this -> _subscribeMailbox ( Horde_Imap_Client_Mailbox :: get ( $ mailbox ) , ( bool ) $ subscribe ) ; }
Manage subscription status for a mailbox.

@param mixed $mailbox      The mailbox to [un]subscribe to. Either a
Horde_Imap_Client_Mailbox object or a string
(UTF-8).
@param boolean $subscribe  True to subscribe, false to unsubscribe.

@throws Horde_Imap_Client_Exception
Manage subscription status for a mailbox .