Horde_Imap_Client_Socket::_processCmdContinuation PHP Method

_processCmdContinuation() protected method

Process a command continuation response.
protected _processCmdContinuation ( Horde_Imap_Client_Interaction_Pipeline $pipeline, boolean $noexception = false ) : mixed
$pipeline Horde_Imap_Client_Interaction_Pipeline The pipeline object.
$noexception boolean Don't throw exception if continuation does not occur.
return mixed A Horde_Imap_Client_Interaction_Server_Continuation object or false.
    protected function _processCmdContinuation($pipeline, $noexception = false)
    {
        do {
            $ob = $this->_getLine($pipeline);
        } while ($ob instanceof Horde_Imap_Client_Interaction_Server_Untagged);
        if ($ob instanceof Horde_Imap_Client_Interaction_Server_Continuation) {
            return $ob;
        } elseif ($noexception) {
            return false;
        }
        $this->_debug->info('ERROR: Unexpected response from server while waiting for a continuation request.');
        $e = new Horde_Imap_Client_Exception(Horde_Imap_Client_Translation::r("Error when communicating with the mail server."), Horde_Imap_Client_Exception::SERVER_READERROR);
        $e->details = strval($ob);
        throw $e;
    }