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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b5370ca327f1d982bdb86f57d86bb4b3d2d91519/mailCommands.js/clean/mailnews/base/resources/content/mailCommands.js