public function login()
    {
        if (!$this->_isAuthenticated && $this->_login()) {
            if ($this->getParam('id')) {
                try {
                    $this->sendID();
                    /* ID is queued - force sending the queued command. */
                    $this->_sendCmd($this->_pipeline());
                } catch (Horde_Imap_Client_Exception_NoSupportExtension $e) {
                    // Ignore if server doesn't support ID extension.
                }
            }

            if ($this->getParam('comparator')) {
                try {
                    $this->setComparator();
                } catch (Horde_Imap_Client_Exception_NoSupportExtension $e) {
                    // Ignore if server doesn't support I18NLEVEL=2
                }
            }
        }

        $this->_isAuthenticated = true;
    }
public function login()
    {
        if (!$this->_isAuthenticated && $this->_login()) {
            if ($this->getParam('id')) {
                try {
                    $this->sendID();
                    /* ID is queued - force sending the queued command. */
                    $this->_sendCmd($this->_pipeline());
                } catch (Horde_Imap_Client_Exception_NoSupportExtension $e) {
                    // Ignore if server doesn't support ID extension.
                }
            }

            if ($this->getParam('comparator')) {
                try {
                    $this->setComparator();
                } catch (Horde_Imap_Client_Exception_NoSupportExtension $e) {
                    // Ignore if server doesn't support I18NLEVEL=2
                }
            }
        }

        $this->_isAuthenticated = true;
    }
public function login ( ) { if ( ! $ this -> _isAuthenticated && $ this -> _login ( ) ) { if ( $ this -> getParam ( 'id' ) ) { try { $ this -> sendID ( ) ; /* ID is queued - force sending the queued command. */ $ this -> _sendCmd ( $ this -> _pipeline ( ) ) ; } catch ( Horde_Imap_Client_Exception_NoSupportExtension $ e ) { // Ignore if server doesn't support ID extension. } } if ( $ this -> getParam ( 'comparator' ) ) { try { $ this -> setComparator ( ) ; } catch ( Horde_Imap_Client_Exception_NoSupportExtension $ e ) { // Ignore if server doesn't support I18NLEVEL=2 } } } $ this -> _isAuthenticated = true ; }
Login to the IMAP server.

@throws Horde_Imap_Client_Exception
Login to the IMAP server .