public function capability()
    {
        $response = $this->requestAndResponse('CAPABILITY');

        if (!$response) {
            return $response;
        }

        $capabilities = array();
        foreach ($response as $line) {
            $capabilities = array_merge($capabilities, $line);
        }
        return $capabilities;
    }
public function capability()
    {
        $response = $this->requestAndResponse('CAPABILITY');

        if (!$response) {
            return $response;
        }

        $capabilities = array();
        foreach ($response as $line) {
            $capabilities = array_merge($capabilities, $line);
        }
        return $capabilities;
    }
public function capability ( ) { $ response = $ this -> requestAndResponse ( 'CAPABILITY' ) ; if ( ! $ response ) { return $ response ; } $ capabilities = array ( ) ; foreach ( $ response as $ line ) { $ capabilities = array_merge ( $ capabilities , $ line ) ; } return $ capabilities ; }
Get capabilities from IMAP server

@return array list of capabilities
@throws Zend_Mail_Protocol_Exception
Get capabilities from IMAP server