rem: var email = document.getElementById("identity.email").value; accountNameInput.value = email; 
add: var type = document.getElementById("server.type").value; var protocolinfo = Components.classes["component: if (protocolinfo.preflightPrettyNameWithEmailAddress) { var email = document.getElementById("identity.email").value; accountNameInput.value = email; } else { var hostname = document.getElementById("server.hostName").value; accountNameInput.value = hostname; } 
context: function onInit() {    var accountNameInput = document.getElementById("server.prettyName");    if (accountNameInput.value=="") {        var email = document.getElementById("identity.email").value;        accountNameInput.value = email;    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/c40113f7f6459b8b1f2aa0f66f22930d443c4be2/aw-accname.js/clean/mailnews/base/prefs/resources/content/aw-accname.js