rem: onSearch(searchTermsArrayForQS); 
add: createSearchTermsWithList(searchTermsArrayForQS); 
context: function LoadCustomMailView(index){  prepareForViewChange();  var searchTermsArray = gMailViewList.getMailViewAt(index).searchTerms;    // create a temporary isupports array to store our search terms  // since we will be modifying the terms so they work with quick search  // and we don't want to write out the modified terms when we save the custom view  // (see bug #189890)  var searchTermsArrayForQS = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);    var numEntries = searchTermsArray.Count();  for (var i = 0; i < numEntries; i++) {    var searchTerm = searchTermsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm);     // clone the term, since we might be modifying it    var searchTermForQS = gSearchSession.createTerm();    searchTermForQS.value = searchTerm.value;    searchTermForQS.attrib = searchTerm.attrib;    searchTermForQS.op = searchTerm.op;    // mark the first node as a group    if (i == 0)      searchTermForQS.beginsGrouping = true;    else if (i == numEntries - 1)      searchTermForQS.endsGrouping = true;    // turn the first term to true to work with quick search...    searchTermForQS.booleanAnd = i ? searchTerm.booleanAnd : true;         searchTermsArrayForQS.AppendElement(searchTermForQS);  }  onSearch(searchTermsArrayForQS);     gDefaultSearchViewTerms = searchTermsArrayForQS;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cb8e852c5bbce0756cb2afd1d40c14ebf1a6f8ae/msgViewPickerOverlay.js/clean/mailnews/extensions/mailviews/resources/content/msgViewPickerOverlay.js