rem: 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; smtp.hostname = pageData.server.smtphostname.value; 
add: if (pageData.login) { 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.server) { if (pageData.server.smtphostname) smtp.hostname = pageData.server.smtphostname.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;        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 (serverIsNntp(pageData)) {        // this stuff probably not relevant        dump("not setting username/password/rememberpassword/etc\n");    } else {        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;        smtp.hostname = pageData.server.smtphostname.value;    }        server.prettyName = pageData.accname.prettyName.value;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/083fedbb1c0649b946181fe320292ea8edca8974/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js