POP3::is_ok() WordPress Method

The POP3::is_ok() function checks whether the current POP3 connection is still valid. If the connection has been lost, it tries to reconnect.

POP3::is_ok( $cmd = "" ) #


Source

File: wp-includes/class-pop3.php

    function is_ok ($cmd = "") {
        //  Return true or false on +OK or -ERR

        if( empty($cmd) )
            return false;
        else
            return( stripos($cmd, '+OK') !== false );
    }

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.