public function createMailbox($mailbox, array $opts = array())
    {
        $this->login();

        if (!$this->_capability('CREATE-SPECIAL-USE')) {
            unset($opts['special_use']);
        }

        $this->_createMailbox(Horde_Imap_Client_Mailbox::get($mailbox), $opts);
    }
public function createMailbox($mailbox, array $opts = array())
    {
        $this->login();

        if (!$this->_capability('CREATE-SPECIAL-USE')) {
            unset($opts['special_use']);
        }

        $this->_createMailbox(Horde_Imap_Client_Mailbox::get($mailbox), $opts);
    }
public function createMailbox ( $ mailbox , array $ opts = array ( ) ) { $ this -> login ( ) ; if ( ! $ this -> _capability ( 'CREATE-SPECIAL-USE' ) ) { unset ( $ opts [ 'special_use' ] ) ; } $ this -> _createMailbox ( Horde_Imap_Client_Mailbox :: get ( $ mailbox ) , $ opts ) ; }
Create a mailbox.

@param mixed $mailbox  The mailbox to create. Either a
Horde_Imap_Client_Mailbox object or a string
(UTF-8).
@param array $opts     Additional options:
- special_use: (array) An array of special-use flags to mark the
mailbox with. The server MUST support RFC 6154.

@throws Horde_Imap_Client_Exception
Create a mailbox .