src/Net/IMAP/Box.php
public function getStatusInfo( $folder = NULL )
	{
		$address	= $this->connection->getAddress( $folder );
		$info		= imap_status( $this->connection->getStream(), $address, SA_ALL );
		if( !$info )
			throw new Exception( "imap_status() failed: ". imap_lasterror() );
		return array(
			"messages"	=> $info->messages,
			"recent"	=> $info->recent,
			"unseen"	=> $info->unseen,
		);
	}
public function getStatusInfo( $folder = NULL )
	{
		$address	= $this->connection->getAddress( $folder );
		$info		= imap_status( $this->connection->getStream(), $address, SA_ALL );
		if( !$info )
			throw new Exception( "imap_status() failed: ". imap_lasterror() );
		return array(
			"messages"	=> $info->messages,
			"recent"	=> $info->recent,
			"unseen"	=> $info->unseen,
		);
	}
public function getStatusInfo ( $ folder = NULL ) { $ address = $ this -> connection -> getAddress ( $ folder ) ; $ info = imap_status ( $ this -> connection -> getStream ( ) , $ address , SA_ALL ) ; if ( ! $ info ) throw new Exception ( "imap_status() failed: " . imap_lasterror ( ) ) ; return array ( "messages" => $ info -> messages , "recent" => $ info -> recent , "unseen" => $ info -> unseen , ) ; }
Returns Status Information of Mail Box.
@access		public
@param		string		$folder			Folder in Mail Box
@return		array
Returns Status Information of Mail Box .