add: if (term.matchAll) { condition = "ALL"; break; } 
context: function getSearchTermString(searchTerms){  var searchIndex;  var condition = "";  var count = searchTerms.Count();  for (searchIndex = 0; searchIndex < count; )  {    var term = searchTerms.QueryElementAt(searchIndex++, Components.interfaces.nsIMsgSearchTerm);        if (condition.length > 1)      condition += ' ';        condition += (term.booleanAnd) ? "AND (" : "OR (";    condition += term.termAsString + ')';  }  return condition;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e612909b94f5ba473e0233f7c14052f1b378ae54/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js