add:   if(newFolder) { newFolder.biffState = Components.interfaces.nsIMsgFolder.nsMsgBiffState_NoMail; }  
context: function RerootFolder(uri, newFolder, isThreaded, sortID, sortDirection){  dump('In reroot folder\n');  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 && oldFolder.hasNewMessages())		oldFolder.clearNewMessages();  }    //Clear out the thread pane so that we can sort it with the new sort id without taking any time.  folder.setAttribute('ref', "");  var column = FindThreadPaneColumnBySortResource(sortID);  if(column)	SortThreadPane(column, sortID, "http://home.netscape.com/NC-rdf#Date", false, sortDirection);  else	SortThreadPane("DateColumn", "http://home.netscape.com/NC-rdf#Date", "", false, null);  SetSentFolderColumns(IsSpecialFolder(newFolder, "Sent"));  // Since SetSentFolderColumns() may alter the template's structure,  // we need to explicitly force the builder to recompile its rules.  folder.builder.rebuild();  folder.setAttribute('ref', uri);    msgNavigationService.EnsureDocumentIsLoaded(document);  UpdateStatusMessageCounts(newFolder);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/dfd928ee8d73a853a2eee08c5f546036114b976e/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js