rem: function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection) 
add: function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection, viewType) 
context: function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection){  dump('In ChangeFolderByURI uri = ' + uri + "\n");  if (uri == gCurrentLoadingFolderURI)    return;  var resource = RDF.GetResource(uri);  var msgfolder =      resource.QueryInterface(Components.interfaces.nsIMsgFolder);  try {      setTitleFromFolder(msgfolder, null);  } catch (ex) {      dump("error setting title: " + ex + "\n");  }    //if it's a server, clear the threadpane and don't bother trying to load.  if(msgfolder.isServer)  {	ClearThreadPane();	return;  }      gBeforeFolderLoadTime = new Date();  gCurrentLoadingFolderURI = uri;  gNextMessageAfterDelete = null; // forget what message to select, if any  if(msgfolder.manyHeadersToDownload())  {	try	{		SetBusyCursor(window, true);		gCurrentFolderToReroot = uri;		gCurrentLoadingFolderIsThreaded = isThreaded;		gCurrentLoadingFolderSortID = sortID;		gCurrentLoadingFolderSortDirection = sortDirection;		msgfolder.startFolderLoading();		msgfolder.updateFolder(msgWindow);	}	catch(ex)	{        dump("Error loading with many headers to download: " + ex + "\n");	}  }  else  {    SetBusyCursor(window, true);	gCurrentFolderToReroot = "";	gCurrentLoadingFolderIsThreaded = false;	gCurrentLoadingFolderSortID = "";	RerootFolder(uri, msgfolder, isThreaded, sortID, sortDirection);	//Need to do this after rerooting folder.  Otherwise possibility of receiving folder loaded	//notification before folder has actually changed.	msgfolder.updateFolder(msgWindow);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e2955b1ba881bdab390012def159afb4caff27f1/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js