rem: accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); 
add: accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); 
context: function CreateMailWindowGlobals(){  // get the messenger instance  messenger = Components.classes[messengerContractID].createInstance();  messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger);  pref = Components.classes[prefContractID].getService(Components.interfaces.nsIPref);  //Create windows status feedback  // set the JS implementation of status feedback before creating the c++ one..  window.MsgStatusFeedback = new nsMsgStatusFeedback();  // double register the status feedback object as the xul browser window implementation   window.XULBrowserWindow = window.MsgStatusFeedback;  statusFeedback           = Components.classes[statusFeedbackContractID].createInstance();  statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);  // try to create and register ourselves with a security icon...  var securityIcon = document.getElementById("security-button");  if (securityIcon)  {    // if the client isn't built with psm enabled then we won't have a secure UI to monitor the lock icon    // so be sure to wrap this in a try / catch clause...    try     {      var secureUI = Components.classes[secureUIContractID].createInstance();      // we may not have a secure UI if psm isn't installed!      if (secureUI)      {        secureUI = secureUI.QueryInterface(Components.interfaces.nsSecureBrowserUI);        secureUI.init(_content, securityIcon);      }    }    catch (ex) {}  }	window.MsgWindowCommands = new nsMsgWindowCommands();	//Create message window object	msgWindow = Components.classes[msgWindowContractID].createInstance();	msgWindow = msgWindow.QueryInterface(Components.interfaces.nsIMsgWindow);	msgComposeService = Components.classes['@mozilla.org/messengercompose;1'].getService();	msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);	mailSession = Components.classes["@mozilla.org/messenger/services/session;1"].getService(Components.interfaces.nsIMsgMailSession); 	accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);	RDF = Components.classes['@mozilla.org/rdf/rdf-service;1'].getService();	RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService);	msgComposeType = Components.interfaces.nsIMsgCompType;	msgComposeFormat = Components.interfaces.nsIMsgCompFormat;	gMessengerBundle = document.getElementById("bundle_messenger");  gBrandBundle = document.getElementById("bundle_brand");	//Create datasources	accountManagerDataSource = Components.classes[accountManagerDSContractID].createInstance();	folderDataSource         = Components.classes[folderDSContractID].createInstance();  messagesBox       = document.getElementById("messagesBox");  accountCentralBox = document.getElementById("accountCentralBox");  gPaneConfig = pref.GetIntPref("mail.pane_config");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/mailWindow.js/buggy/mailnews/base/resources/content/mailWindow.js