src/Net/IMAP/Box.php
public function getFolders( $folder = "*" )
	{
		$list		= array();
		$address	= $this->connection->getAddress();
		$folders	= imap_getmailboxes( $this->connection->getStream(), $address, "*" );
		foreach( $folders as $folder )
			$list[]	= str_replace( $address, "", imap_utf7_decode( $folder->name ) );
		return $list;
	}
public function getFolders( $folder = "*" )
	{
		$list		= array();
		$address	= $this->connection->getAddress();
		$folders	= imap_getmailboxes( $this->connection->getStream(), $address, "*" );
		foreach( $folders as $folder )
			$list[]	= str_replace( $address, "", imap_utf7_decode( $folder->name ) );
		return $list;
	}
public function getFolders ( $ folder = "*" ) { $ list = array ( ) ; $ address = $ this -> connection -> getAddress ( ) ; $ folders = imap_getmailboxes ( $ this -> connection -> getStream ( ) , $ address , "*" ) ; foreach ( $ folders as $ folder ) $ list [ ] = str_replace ( $ address , "" , imap_utf7_decode ( $ folder -> name ) ) ; return $ list ; }
Returns Array of Folders within Mail Box.
@access		public
@param		string		$folder			Folder to index
@return		array
Returns Array of Folders within Mail Box .