rem: var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if (resource) { var uri = resource.Value; if (uri == gCurrentFolderToRerootForStandAlone) { gCurrentFolderToRerootForStandAlone = null; var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (msgFolder) { msgFolder.endFolderLoading(); if (gRerootOnFolderLoadForStandAlone) { RerootFolderForStandAlone(uri); } } } 
add: var uri = folder.URI; if (uri == gCurrentFolderToRerootForStandAlone) { gCurrentFolderToRerootForStandAlone = null; var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (msgFolder) { msgFolder.endFolderLoading(); if (gRerootOnFolderLoadForStandAlone) { RerootFolderForStandAlone(uri); } } 
context:   OnItemEvent: function(folder, event) {    var eventType = event.GetUnicode();    if (eventType == "DeleteOrMoveMsgCompleted")      HandleDeleteOrMoveMsgCompleted(folder);    else if (eventType == "DeleteOrMoveMsgFailed")      HandleDeleteOrMoveMsgFailed(folder);    else if (eventType == "FolderLoaded") {      if (folder) {        var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource);        if (resource) {          var uri = resource.Value;          if (uri == gCurrentFolderToRerootForStandAlone) {            gCurrentFolderToRerootForStandAlone = null;            var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);            if (msgFolder) {              msgFolder.endFolderLoading();              if (gRerootOnFolderLoadForStandAlone) {                RerootFolderForStandAlone(uri);              }            }             }        }      }    }  }   
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ea96c7e10e3ad3c14b1cc001efe5860ee7dfe936/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js