rem: var username=""; if (pageData.login && pageData.login.username) username = pageData.login.username.value; setDivTextFromForm("server.username", username); 
add: var userName=""; if (pageData.login && pageData.login.username) { userName = pageData.login.username.value; } if (!userName && email) { var emailData = email.split('@'); userName = emailData[0]; } setDivTextFromForm("server.username", userName);      if (showMailServerDetails) { var incomingServerName=""; if (pageData.server && pageData.server.hostname) { incomingServerName = pageData.server.hostname.value; if (!incomingServerName && currentAccountData && currentAccountData.incomingServer.hostname) incomingServerName = currentAccountData.incomingServer.hostName; } setDivTextFromForm("server.name", incomingServerName);  var incomingServerType=""; if (pageData.server && pageData.server.servertype) { incomingServerType = pageData.server.servertype.value; if (!incomingServerType && currentAccountData && currentAccountData.incomingServer.type) incomingServerType = currentAccountData.incomingServer.type; } setDivTextFromForm("server.type", incomingServerType.toUpperCase());  var smtpServerName=""; if (pageData.server && pageData.server.smtphostname) { var smtpServer = parent.smtpService.defaultServer; smtpServerName = pageData.server.smtphostname.value; if (!smtpServerName && smtpServer.hostname) smtpServerName = smtpServer.hostname; } setDivTextFromForm("smtpServer.name", smtpServerName); } else { setDivTextFromForm("server.name", null); setDivTextFromForm("server.type", null); setDivTextFromForm("smtpServer.name", null); }  var newsServerName=""; if (pageData.newsserver && pageData.newsserver.hostname) newsServerName = pageData.newsserver.hostname.value; if (newsServerName) {  setDivTextFromForm("server.username", null); } setDivTextFromForm("newsServer.name", newsServerName); 
context: function onInit() {    var pageData = parent.wizardManager.WSM.PageData;    var email = "";    if (pageData.identity && pageData.identity.email) {        // fixup the email        email = pageData.identity.email.value;        if (email.split('@').length < 2 && parent.gCurrentAccountData.domain)            email += "@" + parent.gCurrentAccountData.domain;    }    setDivTextFromForm("identity.email", email);    var username="";    if (pageData.login && pageData.login.username)        username = pageData.login.username.value;    setDivTextFromForm("server.username", username);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3bd146e8d83052ab81b871bfb674681cced9b1d2/aw-done.js/buggy/mailnews/base/prefs/resources/content/aw-done.js