public function status( &$numMessages, &$sizeMessages )
    {
        if ( $this->state != self::STATE_TRANSACTION )
        {
            throw new ezcMailTransportException( "Can't call status() on the POP3 transport when not successfully logged in." );
        }

        $this->connection->sendData( "STAT" );
        $response = $this->connection->getLine();
        if ( $this->isPositiveResponse( $response ) )
        {
            // get the single response line from the server
            list( $dummy, $numMessages, $sizeMessages ) = explode( ' ', $response );
            $numMessages = (int)$numMessages;
            $sizeMessages = (int)$sizeMessages;
        }
        else
        {
            throw new ezcMailTransportException( "The POP3 server did not respond with a status message: {$response}." );
        }
    }
public function status( &$numMessages, &$sizeMessages )
    {
        if ( $this->state != self::STATE_TRANSACTION )
        {
            throw new ezcMailTransportException( "Can't call status() on the POP3 transport when not successfully logged in." );
        }

        $this->connection->sendData( "STAT" );
        $response = $this->connection->getLine();
        if ( $this->isPositiveResponse( $response ) )
        {
            // get the single response line from the server
            list( $dummy, $numMessages, $sizeMessages ) = explode( ' ', $response );
            $numMessages = (int)$numMessages;
            $sizeMessages = (int)$sizeMessages;
        }
        else
        {
            throw new ezcMailTransportException( "The POP3 server did not respond with a status message: {$response}." );
        }
    }
public function status ( & $ numMessages , & $ sizeMessages ) { if ( $ this -> state != self :: STATE_TRANSACTION ) { throw new ezcMailTransportException ( "Can't call status() on the POP3 transport when not successfully logged in." ) ; } $ this -> connection -> sendData ( "STAT" ) ; $ response = $ this -> connection -> getLine ( ) ; if ( $ this -> isPositiveResponse ( $ response ) ) { // get the single response line from the server list ( $ dummy , $ numMessages , $ sizeMessages ) = explode ( ' ' , $ response ) ; $ numMessages = ( int ) $ numMessages ; $ sizeMessages = ( int ) $ sizeMessages ; } else { throw new ezcMailTransportException ( "The POP3 server did not respond with a status message: {$response}." ) ; } }
Returns information about the messages on the server.

The information returned through the parameters is:
- $numMessages = number of messages
- $sizeMessages = sum of the messages sizes

Before calling this method, a connection to the POP3 server must be
established and a user must be authenticated successfully.

Example of returning the status of messages on the server:
<code>
$pop3 = new ezcMailPop3Transport( 'pop3.example.com' );
$pop3->authenticate( 'username', 'password' );

$pop3->status( $numMessages, $sizeMessages );
</code>

After running the above code, $numMessages and $sizeMessages will be
populated with values.

@throws ezcMailTransportException
if there was no connection to the server
or if not authenticated
or if the server sent a negative response
@param int &$numMessages
@param int &$sizeMessages
Returns information about the messages on the server .