rem: if (msgfolder.isServer) window.title = msgfolder.name; else if (msgfolder.server) window.title = msgfolder.name + " on " + msgfolder.server.prettyName; else window.title = msgfolder.name; 
context: function ChangeFolderByURI(uri, isThreaded, sortID){  dump('In ChangeFolderByURI\n');  var resource = RDF.GetResource(uri);  var msgfolder =      resource.QueryInterface(Components.interfaces.nsIMsgFolder);  if (msgfolder.isServer)      window.title = msgfolder.name;  else if (msgfolder.server)      window.title = msgfolder.name + " on " +          msgfolder.server.prettyName;  else      window.title = msgfolder.name;  gBeforeFolderLoadTime = new Date();  gCurrentLoadingFolderURI = uri;  if(msgfolder.manyHeadersToDownload())  {	try	{		gCurrentFolderToReroot = uri;		gCurrentLoadingFolderIsThreaded = isThreaded;		gCurrentLoadingFolderSortID = sortID;		msgfolder.startFolderLoading();		msgfolder.updateFolder(msgWindow);	}	catch(ex)	{        dump("Error loading with many headers to download\n");	}  }  else  {	gCurrentFolderToReroot = "";	gCurrentLoadingFolderIsThreaded = false;	gCurrentLoadingFolderSortID = "";	RerootFolder(uri, msgfolder, isThreaded, sortID);	//Need to do this after rerooting folder.  Otherwise possibility of receiving folder loaded	//notification before folder has actually changed.	msgfolder.updateFolder(msgWindow);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/40cd55e1931b7b87469a3816502fc9ffe96e3439/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js