rem: CreateDBView(msgWindow.openFolder, nsMsgViewType.eShowThreadsWithUnread, nsMsgViewFlagsType.kThreadedDisplay, 
add: CreateDBView(msgWindow.openFolder, nsMsgViewType.eShowThreadsWithUnread, nsMsgViewFlagsType.kThreadedDisplay, 
context: function SwitchView(command){  gDBView = null; // close existing view.  var viewFlags = gCurViewFlags;  switch(command)  {    case "cmd_viewUnreadMsgs":      viewFlags = viewFlags | nsMsgViewFlagsType.kUnreadOnly;      CreateDBView(msgWindow.openFolder, nsMsgViewType.eShowAllThreads, viewFlags,             nsMsgViewSortType.byThread, nsMsgViewSortOrder.ascending);    break;    case "cmd_viewAllMsgs":      viewFlags = viewFlags & ~nsMsgViewFlagsType.kUnreadOnly;      CreateDBView(msgWindow.openFolder, nsMsgViewType.eShowAllThreads, viewFlags,             nsMsgViewSortType.byThread, nsMsgViewSortOrder.ascending);    break;    case "cmd_viewThreadsWithUnread":      CreateDBView(msgWindow.openFolder, nsMsgViewType.eShowThreadsWithUnread, nsMsgViewFlagsType.kThreadedDisplay,             nsMsgViewSortType.byThread, nsMsgViewSortOrder.ascending);    break;    case "cmd_viewWatchedThreadsWithUnread":      CreateDBView(msgWindow.openFolder, nsMsgViewType.eShowWatchedThreadsWithUnread, nsMsgViewFlagsType.kThreadedDisplay,             nsMsgViewSortType.byThread, nsMsgViewSortOrder.ascending);   break;    case "cmd_viewKilledThreads":    break;  }  // that should have initialized gDBView, now re-root the thread pane  var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);  if (outlinerView)  {         var outliner = GetThreadOutliner();    outliner.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject).view = outlinerView;     dump('set outliner view\n');  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/commandglue.js/clean/mailnews/base/resources/content/commandglue.js