POP3::reset()publicWP 1.0

Метод класса: POP3{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$POP3 = new POP3();
$POP3->reset ();

Код POP3::reset() WP 6.6.2

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;
}