rem: newFolder.biffState = 
add: newFolder.biffState = 
context: function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder){  dump('In reroot folder\n');	  // workaround for #39655  gFolderJustSwitched = true;  ClearThreadTreeSelection();  //Set the window's new open folder.  msgWindow.openFolder = newFolder;  SetViewFlags(viewFlags);  //Clear the new messages of the old folder  dump("some work needed here\n");/*  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);  // null this out, so we don't try sort.  gDBView = null;  // if this is the drafts folder, the sent folder or the send later folder,   // set the columns like it was the sent folder  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);  // that should have initialized gDBView, now re-root the thread pane  var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);  if (outlinerView)  {         var outliner = GetThreadOutliner();    outliner.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject).view = outlinerView;   }  SetUpToolbarButtons(uri);  UpdateStatusMessageCounts(newFolder);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/commandglue.js/clean/mailnews/base/resources/content/commandglue.js