rem: var accountData = AccountToAccountData(firstInvalidAccount); 
add:      var identity = firstInvalidAccount.identities.QueryElementAt(0, nsIMsgIdentity);  dump("Invalid account: trying to get ISP data for " + identity.email + "\n"); var accountData = getIspDefaultsForEmail(identity.email); dump("Invalid account: Got " + accountData + "\n"); 
context: function checkForInvalidAccounts(){    am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager);    var invalidAccounts = getInvalidAccounts(am.accounts);    var firstInvalidAccount;       if (invalidAccounts.length > 0)        firstInvalidAccount = invalidAccounts[0];    else        return null;    if (firstInvalidAccount) {        var pageData = GetPageData();        dump("We have an invalid account, " + firstInvalidAccount + ", let's use that!\n");        currentAccount = firstInvalidAccount;        var accountData = AccountToAccountData(firstInvalidAccount);                AccountDataToPageData(accountData, pageData);        dump(parent.wizardManager.WSM);    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/61db214a4b1c4847867257274ca9e2fe9db924ea/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js