src/Net/IMAP/Box.php
public function getBoxInfo( $folder = NULL )
	{
		$address	= $this->connection->getAddress( $this->folder.$folder );
		$info		= imap_mailboxmsginfo( $this->connection->getStream() );
		if( !$info )
			throw new Exception( "imap_mailboxmsginfo() failed: ". imap_lasterror() );
		return array(
			"date"		=> $info->Date,
			"driver"	=> $info->Driver,
			"mailbox"	=> $info->Mailbox,
			"messages"	=> $info->Nmsgs,
			"recent"	=> $info->Recent,
			"size"		=> $info->Size,
		);
	}
public function getBoxInfo( $folder = NULL )
	{
		$address	= $this->connection->getAddress( $this->folder.$folder );
		$info		= imap_mailboxmsginfo( $this->connection->getStream() );
		if( !$info )
			throw new Exception( "imap_mailboxmsginfo() failed: ". imap_lasterror() );
		return array(
			"date"		=> $info->Date,
			"driver"	=> $info->Driver,
			"mailbox"	=> $info->Mailbox,
			"messages"	=> $info->Nmsgs,
			"recent"	=> $info->Recent,
			"size"		=> $info->Size,
		);
	}
public function getBoxInfo ( $ folder = NULL ) { $ address = $ this -> connection -> getAddress ( $ this -> folder . $ folder ) ; $ info = imap_mailboxmsginfo ( $ this -> connection -> getStream ( ) ) ; if ( ! $ info ) throw new Exception ( "imap_mailboxmsginfo() failed: " . imap_lasterror ( ) ) ; return array ( "date" => $ info -> Date , "driver" => $ info -> Driver , "mailbox" => $ info -> Mailbox , "messages" => $ info -> Nmsgs , "recent" => $ info -> Recent , "size" => $ info -> Size , ) ; }
Returns Information Array of Mail Box.
@access		public
@param		string		$folder			Folder within Mail Box
@return		array
Returns Information Array of Mail Box .