rem: var eventType = event.GetUnicode(); 
add: var eventType = event.toString(); 
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 uri = folder.URI;        if (uri == gCurrentFolderToRerootForStandAlone) {          gCurrentFolderToRerootForStandAlone = null;          var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);          if (msgFolder) {            msgFolder.endFolderLoading();            if (gRerootOnFolderLoadForStandAlone) {              RerootFolderForStandAlone(uri);            }          }           }      }    }    else if (eventType == "JunkStatusChanged") {      HandleJunkStatusChanged(folder);    }  }   
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ecf24a2b786c6839fa640210ff9337b4da39d454/messageWindow.js/buggy/mailnews/base/resources/content/messageWindow.js