rem: if (folder.hasSubFolders) { var subFolderEnumerator = folder.GetSubFolders(); var done = false; while (!done) { var next = subFolderEnumerator.currentItem(); if (next) { var nextFolder = next.QueryInterface(Components.interfaces.nsIMsgFolder); if (nextFolder) { gSearchSession.addScopeTerm(GetScopeForFolder(nextFolder), nextFolder); AddSubFolders(nextFolder); } } try { subFolderEnumerator.next(); } catch (ex) { done = true; } } } 
add: if (folder.hasSubFolders) { var subFolderEnumerator = folder.GetSubFolders(); var done = false; while (!done) { var next = subFolderEnumerator.currentItem(); if (next) { var nextFolder = next.QueryInterface(Components.interfaces.nsIMsgFolder); if (nextFolder) { gSearchSession.addScopeTerm(GetScopeForFolder(nextFolder), nextFolder); AddSubFolders(nextFolder); } } try { subFolderEnumerator.next(); } catch (ex) { done = true; } } } 
context: function AddSubFolders(folder) {	if (folder.hasSubFolders)	{		var subFolderEnumerator = folder.GetSubFolders();		var done = false;		while (!done)		{			var next = subFolderEnumerator.currentItem();			if (next)			{				var nextFolder = next.QueryInterface(Components.interfaces.nsIMsgFolder);				if (nextFolder)				{					gSearchSession.addScopeTerm(GetScopeForFolder(nextFolder), nextFolder);					AddSubFolders(nextFolder);				}			}			try 			{				subFolderEnumerator.next();			 } 			 catch (ex) 			 {				  done = true;			 }		}	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js