rem: var numTerms = filter.numTerms; 
add: var searchTerms = filter.searchTerms; var numTerms = searchTerms.Count(); 
context: function initializeDialog(filter){    var filterName = document.getElementById("filterName");    filterName.value = filter.filterName;    var actionElement = document.getElementById("actionMenu");    actionElement.selectedItem=actionElement.getElementsByAttribute("data", filter.action)[0];        // now test by initializing the psuedo <searchterm>    var scope = getScope(filter);    var filterRowContainer = document.getElementById("filterTermList");    var numTerms = filter.numTerms;    for (var i=0; i<numTerms; i++) {      var filterRow = createFilterRow(i);      filterRowContainer.appendChild(filterRow);      // now that it's been added to the document, we can initialize it.      var filterTermObject = document.getElementById("searchTerm" + i);      if (filterTermObject) {          filterTermObject.searchScope = scope;          var searchTerm =              filter.searchTerms.QueryElementAt(i, Components.interfaces.nsIMsgSearchTerm);          if (searchTerm)              filterTermObject.searchTerm = searchTerm;      }      else {          dump("Ack! Can't find searchTerm" + i + "!\n");      }    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/922e4e59b6e33d2ff22e54cb27be356f461c0d04/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js