rem: messengerMigrator = Components.classes[messengerMigratorContractID].getService(Components.interfaces.nsIMessengerMigrator); 
add: var messengerMigrator = Components.classes[messengerMigratorContractID].getService(Components.interfaces.nsIMessengerMigrator); 
context: function verifyAccounts(wizardcallback) {//check to see if the function is called with the callback and if so set the global variable returnmycall to true    if(wizardcallback)		returnmycall = true;	var openWizard = false;    var prefillAccount;	var state=true;	var ret = true;        try {        var am = Components.classes[accountManagerContractID].getService(Components.interfaces.nsIMsgAccountManager);        var accounts = am.accounts;        // as long as we have some accounts, we're fine.        var accountCount = accounts.Count();        var invalidAccounts = getInvalidAccounts(accounts);        if (invalidAccounts.length > 0) {            prefillAccount = invalidAccounts[0];            dump("prefillAccount = " + prefillAccount + "\n");        } else {        }        // if there are no accounts, or all accounts are "invalid"        // then kick off the account migration        if (accountCount == invalidAccounts.length) {            try {                  messengerMigrator = Components.classes[messengerMigratorContractID].getService(Components.interfaces.nsIMessengerMigrator);                    dump("attempt to UpgradePrefs.  If that fails, open the account wizard.\n");                  messengerMigrator.UpgradePrefs();                  // if there is a callback mechanism then inform parent window to shut itself down                  if (wizardcallback){                      state = false;                      WizCallback(state);                  }                  ret = false;            }            catch (ex) {                  // upgrade prefs failed, so open account wizard                  openWizard = true;            }        }        if (openWizard || prefillAccount) {            MsgAccountWizard(prefillAccount);		        ret = false;        }		return ret;    }    catch (ex) {        dump("error verifying accounts " + ex + "\n");        return false;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/badfe0f9a97b52b9c7f6b92fe6234fe832f7af96/accountUtils.js/buggy/mailnews/base/prefs/resources/content/accountUtils.js