openeclass/modules/auth/methods/pop3.php
/* Statistics method - pass references to variables to hold the number of
     messages in the mail box and the size that they take in bytes.  */
Statistics method - pass references to variables to hold the number of
messages in the mail box and the size that they take in bytes.
Statistics method - pass references to variables to hold the number of messages in the mail box and the size that they take in bytes .
Function Statistics(&$messages,&$size)
	{
		if($this->state!="TRANSACTION")
			return($this->SetError("connection is not in TRANSACTION state"));
		if($this->PutLine("STAT")==0)
			return($this->SetError("Could not send the STAT command"));
		$response=$this->GetLine();
		if(GetType($response)!="string")
			return($this->SetError("Could not get the statistics command response"));
		if($this->Tokenize($response," ")!="+OK")
			return($this->SetError("Could not get the statistics: ".$this->Tokenize("\r\n")));
		$messages=$this->Tokenize(" ");
		$size=$this->Tokenize(" ");
		return("");
	}
Function Statistics ( & $ messages , & $ size ) { if ( $ this -> state != " TRANSACTION " ) return ( $ this -> SetError ( " connection is not in TRANSACTION state " ) ) ; if ( $ this -> PutLine ( " STAT " ) == 0 ) return ( $ this -> SetError ( " Could not send the STAT command " ) ) ; $ response = $ this -> GetLine ( ) ; if ( GetType ( $ response ) != " string " ) return ( $ this -> SetError ( " Could not get the statistics command response " ) ) ; if ( $ this -> Tokenize ( $ response , " " ) != " +OK " ) return ( $ this -> SetError ( " Could not get the statistics:  " . $ this -> Tokenize ( " \r \n " ) ) ) ; $ messages = $ this -> Tokenize ( " " ) ; $ size = $ this -> Tokenize ( " " ) ; return ( " " ) ; }
Statistics method - pass references to variables to hold the number of
messages in the mail box and the size that they take in bytes.
Statistics method - pass references to variables to hold the number of messages in the mail box and the size that they take in bytes .