POP3::reset()

In this article

Source

function reset () {
    //  Resets the status of the remote server. This includes
    //  resetting the status of ALL msgs to not be deleted.
    //  This method automatically closes the connection to the server.

    if(!isset($this->FP))
    {
        $this->ERROR = "POP3 reset: " . _("No connection to server");
        return false;
    }
    $reply = $this->send_cmd("RSET");
    if(!$this->is_ok($reply))
    {
        //  The POP3 RSET command -never- gives a -ERR
        //  response - if it ever does, something truly
        //  wild is going on.

        $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]";
        @error_log("POP3 reset: ERROR [$reply]",0);
    }
    $this->quit();
    return true;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.