add:   view.doCommand(nsMsgViewCommandType.expandAll);  
context: function analyzeFolderForJunk(){  var view = GetDBView();  var treeView = view.QueryInterface(Components.interfaces.nsITreeView);  var count = treeView.rowCount;  if (!count)    return;  var messages = new Array(count)  for (var i = 0; i < count; i++) {    messages[i] = view.getURIForViewIndex(i);  }  analyzeMessages(messages);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/4d7927289c1ef058477127d82fd88814301fac25/mailCommands.js/clean/mailnews/base/resources/content/mailCommands.js