library/src/network/email/BP-Email.cc
/** Print folders and sub-folders on the standard output.
  *
  * @param folder current folder
  */
Print folders and sub-folders on the standard output.
@param folder current folder
Print folders and sub - folders on the standard output . @param folder current folder
static void printFolders(vmime::ref <vmime::net::folder> folder, const int level = 0)
{
	for (int j = 0 ; j < level * 2 ; ++j)
		std::cout << " ";
	std::cout << getFolderPathString(folder) << std::endl;
	std::vector <vmime::ref <vmime::net::folder> > subFolders = folder->getFolders(false);
	for (size_t i = 0 ; i < subFolders.size() ; ++i)
		printFolders(subFolders[i], level + 1);
}
static void printFolders ( vmime :: ref < vmime :: net :: folder > folder , const int level = 0 ) { for ( int j = 0 ; j < level * 2 ; ++ j ) std :: cout << " " ; std :: cout << getFolderPathString ( folder ) << std :: endl ; std :: vector < vmime :: ref < vmime :: net :: folder > > subFolders = folder -> getFolders ( false ) ; for ( size_t i = 0 ; i < subFolders . size ( ) ; ++ i ) printFolders ( subFolders [ i ] , level + 1 ) ; }
Print folders and sub-folders on the standard output.
Print folders and sub - folders on the standard output .