roundcubemail/program/lib/Roundcube/rcube_imap.php
public function get_capability($cap)
    {
        $cap      = strtoupper($cap);
        $sess_key = "STORAGE_$cap";

        if (!isset($_SESSION[$sess_key])) {
            if (!$this->check_connection()) {
                return false;
            }

            $_SESSION[$sess_key] = $this->conn->getCapability($cap);
        }

        return $_SESSION[$sess_key];
    }
public function get_capability($cap)
    {
        $cap      = strtoupper($cap);
        $sess_key = "STORAGE_$cap";

        if (!isset($_SESSION[$sess_key])) {
            if (!$this->check_connection()) {
                return false;
            }

            $_SESSION[$sess_key] = $this->conn->getCapability($cap);
        }

        return $_SESSION[$sess_key];
    }
public function get_capability ( $ cap ) { $ cap = strtoupper ( $ cap ) ; $ sess_key = "STORAGE_$cap" ; if ( ! isset ( $ _SESSION [ $ sess_key ] ) ) { if ( ! $ this -> check_connection ( ) ) { return false ; } $ _SESSION [ $ sess_key ] = $ this -> conn -> getCapability ( $ cap ) ; } return $ _SESSION [ $ sess_key ] ; }
Returns the IMAP server's capability.

@param   string  $cap Capability name

@return  mixed   Capability value or TRUE if supported, FALSE if not
Returns the IMAP server s capability .