Horde_Imap_Client_Base::logout PHP Method

logout() public method

Logout from the IMAP server (see RFC 3501 [6.1.3]).
public logout ( )
    public function logout()
    {
        if ($this->_isAuthenticated && $this->_connection->connected) {
            $this->_logout();
            $this->_connection->close();
        }
        $this->_connection = $this->_selected = null;
        $this->_isAuthenticated = false;
        $this->_mode = 0;
    }