add: } 
context: function createSearchTermsWithList(aTermsArray){  var nsMsgSearchScope = Components.interfaces.nsMsgSearchScope;  var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib;  var nsMsgSearchOp = Components.interfaces.nsMsgSearchOp;  gSearchSession.clearScopes();  var searchTerms = gSearchSession.searchTerms;  var searchTermsArray = searchTerms.QueryInterface(Components.interfaces.nsISupportsArray);  searchTermsArray.Clear();  var selectedFolder = GetThreadPaneFolder();  var ioService = Components.classes["@mozilla.org/network/io-service;1"]                  .getService(Components.interfaces.nsIIOService);  if (gXFVirtualFolderTerms)  {    var msgDatabase = selectedFolder.getMsgDatabase(msgWindow);    if (msgDatabase)    {      var dbFolderInfo = msgDatabase.dBFolderInfo;      var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri");      var srchFolderUriArray = srchFolderUri.split('|');      for (var i in srchFolderUriArray)       {        var realFolderRes = GetResourceFromUri(srchFolderUriArray[i]);        var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder);        if (!realFolder.isServer)          gSearchSession.addScopeTerm(gSearchInput.searchMode == kQuickSearchBody &&                               !ioService.offline &&                               realFolder.server.type == 'imap' ? nsMsgSearchScope.onlineMail : nsMsgSearchScope.offlineMail,                               realFolder);      }    }  }  else    gSearchSession.addScopeTerm(gSearchInput.searchMode == kQuickSearchBody &&                               !ioService.offline &&                               selectedFolder.server.type == 'imap' ? nsMsgSearchScope.onlineMail : nsMsgSearchScope.offlineMail,                               selectedFolder);  // add each item in termsArray to the search session  var termsArray = aTermsArray.QueryInterface(Components.interfaces.nsISupportsArray);  for (var i = 0; i < termsArray.Count(); i++)    gSearchSession.appendTerm(termsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5f6cba07f192e8b7997e0704cfd65393bd8619c1/searchBar.js/buggy/mail/base/content/searchBar.js