rem: try { SetBusyCursor(window, true); gCurrentFolderToReroot = uri; gCurrentLoadingFolderViewFlags = viewFlags; gCurrentLoadingFolderViewType = viewType; gCurrentLoadingFolderSortType = sortType; gCurrentLoadingFolderSortOrder = sortOrder; msgfolder.startFolderLoading(); msgfolder.updateFolder(msgWindow); } catch(ex) { 
add: try { SetBusyCursor(window, true); gCurrentFolderToReroot = uri; gCurrentLoadingFolderViewFlags = viewFlags; gCurrentLoadingFolderViewType = viewType; gCurrentLoadingFolderSortType = sortType; gCurrentLoadingFolderSortOrder = sortOrder; msgfolder.startFolderLoading(); msgfolder.updateFolder(msgWindow); } catch(ex) { 
context: function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){  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();    // Load AccountCentral page here.    ShowAccountCentral(); 	return;  }  else  {    if (msgfolder.server.displayStartupPage)    {      gDisplayStartupPage = true;      msgfolder.server.displayStartupPage = false;    }   }  // If the user clicks on msgfolder, time to display thread pane and message pane.  // Hide AccountCentral page  if (gAccountCentralLoaded)  {      HideAccountCentral();  }     if (showPerformance) {     gBeforeFolderLoadTime = new Date();  }  gCurrentLoadingFolderURI = uri;  gNextMessageAfterDelete = null; // forget what message to select, if any  if(msgfolder.manyHeadersToDownload())  {	try	{		SetBusyCursor(window, true);		gCurrentFolderToReroot = uri;		gCurrentLoadingFolderViewFlags = viewFlags;		gCurrentLoadingFolderViewType = viewType;		gCurrentLoadingFolderSortType = sortType;		gCurrentLoadingFolderSortOrder = sortOrder;		msgfolder.startFolderLoading();		msgfolder.updateFolder(msgWindow);	}	catch(ex)	{        SetBusyCursor(window, false);        dump("Error loading with many headers to download: " + ex + "\n");	}  }  else  {    SetBusyCursor(window, true);	gCurrentFolderToReroot = "";	gCurrentLoadingFolderViewFlags = 0;  // is this correct?	gCurrentLoadingFolderSortType = 0;  // is this correct?	gCurrentLoadingFolderSortOrder = 0;  // is this correct?    gCurrentLoadingFolderViewType = 0;  // is this correct?	RerootFolder(uri, msgfolder, viewType, viewFlags, sortType, sortOrder);	//Need to do this after rerooting folder.  Otherwise possibility of receiving folder loaded	//notification before folder has actually changed.	msgfolder.updateFolder(msgWindow);  }  document.commandDispatcher.updateCommands('mail-toolbar');}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/commandglue.js/clean/mailnews/base/resources/content/commandglue.js