rem: try { var flatSort = pref.getBoolPref("mailnews.thread_pane_column_unthreads"); if (flatSort) dbview.viewFlags &= ~nsMsgViewFlagsType.kThreadedDisplay; 
add: if (!simpleColumns && (dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay)) { dbview.viewFlags &= ~nsMsgViewFlagsType.kThreadedDisplay; MsgSortThreadPane(sortType); 
context: function HandleColumnClick(columnID){  var sortType = ConvertColumnIDToSortType(columnID);  // if sortType is 0, this is an unsupported sort type  // return, since we can't sort by that column.  if (sortType == 0)    return;  var dbview = GetDBView();  // if we're already threaded, clicking the thread icon does a reverse sort by id.  if (sortType == nsMsgViewSortType.byThread && (dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay))    sortType = nsMsgViewSortType.byId;  if (sortType == nsMsgViewSortType.byThread && !dbview.supportsThreading)      return;  if (dbview.sortType == sortType) {    MsgReverseSortThreadPane();  }  else {    try {      var flatSort = pref.getBoolPref("mailnews.thread_pane_column_unthreads");       if (flatSort)        dbview.viewFlags &= ~nsMsgViewFlagsType.kThreadedDisplay;    }    catch (ex) {    }    MsgSortThreadPane(sortType);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b176a0c98a4bf5df422392f11c7b000a066a0872/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js