rem: var treatRecipientAsAuthor = IsSpecialFolder(msgFolder, MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE); gDBView.open(msgFolder, gCurSortType, sortOrder, viewFlags, treatRecipientAsAuthor, count); 
add: gDBView.open(msgFolder, gCurSortType, sortOrder, viewFlags, count); 
context: function CreateBareDBView(originalView, msgFolder, viewType, viewFlags, sortType, sortOrder){  var dbviewContractId = "@mozilla.org/messenger/msgdbview;1?type=";  // hack to turn this into an integer, if it was a string  // it would be a string if it came from localStore.rdf  viewType = viewType - 0;  switch (viewType) {      case nsMsgViewType.eShowQuickSearchResults:          dbviewContractId += "quicksearch";          break;      case nsMsgViewType.eShowThreadsWithUnread:          dbviewContractId += "threadswithunread";          break;      case nsMsgViewType.eShowWatchedThreadsWithUnread:          dbviewContractId += "watchedthreadswithunread";          break;      case nsMsgViewType.eShowAllThreads:      default:          dbviewContractId += "threaded";          break;  }  if (!originalView)    gDBView = Components.classes[dbviewContractId].createInstance(Components.interfaces.nsIMsgDBView);  gCurViewFlags = viewFlags;  var count = new Object;  if (!gThreadPaneCommandUpdater)    gThreadPaneCommandUpdater = new nsMsgDBViewCommandUpdater();  if ((sortType == nsMsgViewSortType.byAuthor) && IsSpecialFolder(msgFolder, MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE)) {    gCurSortType = nsMsgViewSortType.byRecipient;  }  else {    gCurSortType = sortType;  }  if (!originalView) {    gDBView.init(messenger, msgWindow, gThreadPaneCommandUpdater);    var treatRecipientAsAuthor = IsSpecialFolder(msgFolder, MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE);    gDBView.open(msgFolder, gCurSortType, sortOrder, viewFlags, treatRecipientAsAuthor, count);  }   else {    gDBView = originalView.cloneDBView(messenger, msgWindow, gThreadPaneCommandUpdater);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3237c558cc9bc8a859ab732416895a9a21c1ae75/commandglue.js/clean/mail/base/content/commandglue.js