rem: dump("Setting identity for " + pageData.identity.email.value + "\n"); identity.email = pageData.identity.email.value; identity.fullName = pageData.identity.fullName.value; 
add: if (pageData.identity.email) identity.email = pageData.identity.email.value; if (pageData.identity.fullName) identity.fullName = pageData.identity.fullName.value; 
context: function PageDataToAccountData(pageData, accountData){    if (!accountData.identity)        accountData.identity = new Object;    if (!accountData.incomingServer)        accountData.incomingServer = new Object;    if (!accountData.smtp)        accountData.smtp = new Object;    if (!accountData.pop3)        accountData.pop3 = new Object;        var identity = accountData.identity;    var server = accountData.incomingServer;    var smtp = accountData.smtp;    dump("Setting identity for " + pageData.identity.email.value + "\n");    identity.email = pageData.identity.email.value;    identity.fullName = pageData.identity.fullName.value;    server.type = getCurrentServerType(pageData);    server.hostName = getCurrentHostname(pageData);    if (getCurrentServerIsDeferred(pageData))    {      try      {        var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);        var localFoldersServer = accountManager.localFoldersServer;        var localFoldersAccount = accountManager.FindAccountForServer(localFoldersServer);        accountData.pop3.deferredToAccount = localFoldersAccount.key;        accountData.pop3.deferGetNewMail = true;        server["ServerType-pop3"] = accountData.pop3;      }      catch (ex) {dump ("exception setting up deferred account" + ex);}    }    if (serverIsNntp(pageData)) {        // this stuff probably not relevant        dump("not setting username/password/rememberpassword/etc\n");    } else {        if (pageData.login) {            if (pageData.login.username)                server.username = pageData.login.username.value;            if (pageData.login.password)                server.password = pageData.login.password.value;            if (pageData.login.rememberPassword)                server.rememberPassword = pageData.login.rememberPassword.value;            if (pageData.login.smtpusername)                smtp.username = pageData.login.smtpusername.value;        }        dump("pageData.server = " + pageData.server + "\n");        if (pageData.server) {            dump("pageData.server.smtphostname.value = " + pageData.server.smtphostname + "\n");            if (pageData.server.smtphostname &&                pageData.server.smtphostname.value)                smtp.hostname = pageData.server.smtphostname.value;        }        if (pageData.identity.smtpServerKey)            identity.smtpServerKey = pageData.identity.smtpServerKey.value;    }    if (pageData.accname) {        if (pageData.accname.prettyName)            server.prettyName = pageData.accname.prettyName.value;    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e55f07390afffe469cd26f1907e6b81d01f26b88/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js