rem: showMessagesAfterLoading = gPrefs.getBoolPref(prefString); 
add: showMessagesAfterLoading = gPrefBranch.getBoolPref(prefString); 
context: function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){  //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n");  if (uri == gCurrentLoadingFolderURI)    return;  // hook for extra toolbar items  var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);  observerService.notifyObservers(window, "mail:setupToolbarItems", uri);  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) {    msgWindow.openFolder = null;    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 (gFakeAccountPageLoaded)  {      HideFakeAccountPage();  }  gCurrentLoadingFolderURI = uri;  gNextMessageAfterDelete = null; // forget what message to select, if any  gCurrentFolderToReroot = uri;  gCurrentLoadingFolderViewFlags = viewFlags;  gCurrentLoadingFolderViewType = viewType;  gCurrentLoadingFolderSortType = sortType;  gCurrentLoadingFolderSortOrder = sortOrder;  var showMessagesAfterLoading;  try {    var server = msgfolder.server;    if (gPrefs.getBoolPref("mail.password_protect_local_cache"))    {      showMessagesAfterLoading = server.passwordPromptRequired;      // servers w/o passwords (like local mail) will always be non-authenticated.      // So we need to use the account manager for that case.    }    else if (server.redirectorType) {      var prefString = server.type + "." + server.redirectorType + ".showMessagesAfterLoading";      showMessagesAfterLoading = gPrefs.getBoolPref(prefString);    }    else      showMessagesAfterLoading = false;  }  catch (ex) {    showMessagesAfterLoading = false;  }  if (msgfolder.manyHeadersToDownload || showMessagesAfterLoading)  {    gRerootOnFolderLoad = true;    try    {      ClearThreadPane();      SetBusyCursor(window, true);      msgfolder.startFolderLoading();      msgfolder.updateFolder(msgWindow);    }    catch(ex)    {      SetBusyCursor(window, false);      dump("Error loading with many headers to download: " + ex + "\n");    }  }  else  {    SetBusyCursor(window, true);    RerootFolder(uri, msgfolder, viewType, viewFlags, sortType, sortOrder);    gRerootOnFolderLoad = false;    msgfolder.startFolderLoading();    //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/944dbeea99783f32c08eddb7e3d124ea7c165a5e/commandglue.js/clean/mailnews/base/resources/content/commandglue.js