rem: var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri"); 
add: var srchFolderUri = dbFolderInfo.getCharProperty("searchFolderUri"); 
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 i;  var selectedFolder = GetThreadPaneFolder();  if (gXFVirtualFolderTerms)  {    var msgDatabase = selectedFolder.getMsgDatabase(msgWindow);    if (msgDatabase)    {      var dbFolderInfo = msgDatabase.dBFolderInfo;      var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri");      viewDebug("createSearchTermsWithList xf vf scope = " + srchFolderUri + "\n");      var srchFolderUriArray = srchFolderUri.split('|');      for (i in srchFolderUriArray)       {        var realFolderRes = GetResourceFromUri(srchFolderUriArray[i]);        var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder);        if (!realFolder.isServer)          gSearchSession.addScopeTerm(nsMsgSearchScope.offlineMail, realFolder);      }    }  }  else  {    viewDebug ("in createSearchTermsWithList, adding scope term for selected folder\n");    gSearchSession.addScopeTerm(nsMsgSearchScope.offlineMail, selectedFolder);  }  // add each item in termsArray to the search session  var termsArray = aTermsArray.QueryInterface(Components.interfaces.nsISupportsArray);  for (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/2007_temp/2007/9421/07721d21511126bc7aeb5044ef636d87feca098c/searchBar.js/buggy/mailnews/base/resources/content/searchBar.js