rem: SetSentFolderColumns(IsSpecialFolder(newFolder, "Sent")); 
add: SetSentFolderColumns(IsSpecialFolder(newFolder, [ "Sent", "Drafts", "Unsent Messages" ])); 
context: function RerootFolder(uri, newFolder, isThreaded, sortID, sortDirection){  dump('In reroot folder\n');	  // workaround for #39655  gFolderJustSwitched = true;  var folder = GetThreadTreeFolder();  ClearThreadTreeSelection();  //Set the window's new open folder.  msgWindow.openFolder = newFolder;  //Set threaded state  ShowThreads(isThreaded);    //Clear the new messages of the old folder  var oldFolderURI = folder.getAttribute("ref");  if(oldFolderURI && (oldFolderURI != "null") && (oldFolderURI !=""))  {   var oldFolder = GetMsgFolderFromURI(oldFolderURI);   if(oldFolder)   {       if (oldFolder.hasNewMessages)           oldFolder.clearNewMessages();   }  }  //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', "");   if (isNewsURI(uri))       SetNewsFolderColumns(true);   else       SetNewsFolderColumns(false);  var column = FindThreadPaneColumnBySortResource(sortID);  if(column)	SortThreadPane(column, sortID, "http://home.netscape.com/NC-rdf#Date", false, sortDirection, false);  else	SortThreadPane("DateColumn", "http://home.netscape.com/NC-rdf#Date", "", false, null, false);  SetSentFolderColumns(IsSpecialFolder(newFolder, "Sent"));  // Since SetSentFolderColumns() may alter the template's structure,  // we need to explicitly force the builder to recompile its rules.  //when switching folders, switch back to closing threads  SetTemplateTreeItemOpen(false);  folder.builder.rebuild();  folder.setAttribute('ref', uri);    msgNavigationService.EnsureDocumentIsLoaded(document);  UpdateStatusMessageCounts(newFolder); }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2d9fd5717a02dec9756b58bd9d2f383ea0c7edf7/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js