context: function setupXFVirtualFolderSearch(folderUrisToSearch, searchTerms){    var count = new Object;    gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);    gMailSession = Components.classes[mailSessionContractID].getService(Components.interfaces.nsIMsgMailSession);    for (var i in folderUrisToSearch)     {      var realFolderRes = GetResourceFromUri(folderUrisToSearch[i]);      var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder);      if (!realFolder.isServer)        gSearchSession.addScopeTerm(GetScopeForFolder(realFolder), realFolder);    }    var termsArray = searchTerms.QueryInterface(Components.interfaces.nsISupportsArray);    for (var i = 0; i < termsArray.Count(); i++)      gSearchSession.appendTerm(termsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f38fadfb590160f5c9bb31183868c8850643901a/commandglue.js/clean/mail/base/content/commandglue.js