rem: messenger.SetWindow(window, msgWindow); 
add: messenger.setWindow(window, msgWindow); 
context: function delayedOnLoadMessageWindow(){  HideMenus();  HideToolbarButtons();  ShowMenus();  MailOfflineMgr.init();  CreateMailWindowGlobals();  CreateMessageWindowGlobals();  verifyAccounts(null);  InitMsgWindow();  messenger.SetWindow(window, msgWindow);  InitializeDataSources();  // FIX ME - later we will be able to use onload from the overlay  OnLoadMsgHeaderPane();  try {    var nsIFolderListener = Components.interfaces.nsIFolderListener;    var notifyFlags = nsIFolderListener.removed | nsIFolderListener.event | nsIFolderListener.intPropertyChanged;    mailSession.AddFolderListener(folderListener, notifyFlags);  } catch (ex) {    dump("Error adding to session: " +ex + "\n");  }  var originalView = null;  var folder = null;  var messageUri;  var loadCustomMessage = false;       //set to true when either loading a message/rfc822 attachment or a .eml file  if (window.arguments)  {    if (window.arguments[0])    {      try      {        messageUri = window.arguments[0];        if (messageUri instanceof Components.interfaces.nsIURI)        {          loadCustomMessage = /type=application\/x-message-display/.test(messageUri.spec);          gCurrentMessageUri = messageUri.spec;          if (messageUri instanceof Components.interfaces.nsIMsgMailNewsUrl)            folder = messageUri.folder;        }      }       catch(ex)       {        folder = null;        dump("## ex=" + ex + "\n");      }      if (!gCurrentMessageUri)        gCurrentMessageUri = window.arguments[0];    }    else      gCurrentMessageUri = null;    if (window.arguments[1])      gCurrentFolderUri = window.arguments[1];    else      gCurrentFolderUri = folder ? folder.URI : null;    if (window.arguments[2])      originalView = window.arguments[2];        }	  CreateView(originalView);    gPhishingDetector.init();  // initialize the customizeDone method on the customizeable toolbar  var toolbox = document.getElementById("mail-toolbox");  toolbox.customizeDone = MailToolboxCustomizeDone;  var toolbarset = document.getElementById('customToolbars');  toolbox.toolbarset = toolbarset;  setTimeout(OnLoadMessageWindowDelayed, 0, loadCustomMessage);    SetupCommandUpdateHandlers();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/0d4059c32bb899b0b564e88da3b2dd8cd4e4a21e/messageWindow.js/clean/mail/base/content/messageWindow.js