rem:  SetNewsFolderColumns(isNewsURI(uri)); 
context: function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder){  // workaround for #39655  gFolderJustSwitched = true;  ClearThreadPaneSelection();  //Clear the new messages of the old folder  var oldFolder = msgWindow.openFolder;  if (oldFolder) {    if (oldFolder.hasNewMessages) {      oldFolder.clearNewMessages();    }  }  //Set the window's new open folder.  msgWindow.openFolder = newFolder;  //the new folder being selected should have its biff state get cleared.  if(newFolder)  {    newFolder.biffState =          Components.interfaces.nsIMsgFolder.nsMsgBiffState_NoMail;  }  //Clear out the thread pane so that we can sort it with the new sort id without taking any time.  // folder.setAttribute('ref', "");  // show "Lines" for news, "Size" for mail  SetNewsFolderColumns(isNewsURI(uri));  // null this out, so we don't try sort.  if (gDBView) {    gDBView.close();    gDBView = null;  }  // cancel the pending mark as read timer  ClearPendingReadTimer();  // if this is the drafts, sent, or send later folder,  // we show "Recipient" instead of "Author"  SetSentFolderColumns(IsSpecialFolder(newFolder, MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE));  // now create the db view, which will sort it.  CreateDBView(newFolder, viewType, viewFlags, sortType, sortOrder);  if (oldFolder)  {    /*disable quick search clear button if we were in the search view on folder switching*/    disableQuickSearchClearButton();     /*we don't null out the db reference for inbox because inbox is like the "main" folder       and performance outweighs footprint */    if (!IsSpecialFolder(oldFolder, MSG_FOLDER_FLAG_INBOX))      if (oldFolder.URI != newFolder.URI)        oldFolder.setMsgDatabase(null);  }  // that should have initialized gDBView, now re-root the thread pane  RerootThreadPane();  SetUpToolbarButtons(uri);  UpdateStatusMessageCounts(newFolder);    UpdateMailToolbar("reroot folder in 3 pane");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9decad2c3d3eb4369cb7ccd03434bf0a57d38560/commandglue.js/clean/mailnews/base/resources/content/commandglue.js