rem: } 
context: function createAccount(hash) {    try {        var am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager);    // workaround for lame-ass combo box bug    var serverType = hash["server.type"];    if (!serverType  || serverType == "")        serverType = "pop3";    var server = am.createIncomingServer(serverType);        var identity = am.createIdentity();    for (var i in hash) {        var vals = i.split(".");        var type = vals[0];        var slot = vals[1];        if (type == "identity")            identity[slot] = hash[i];        else if (type == "server")            server[slot] = hash[i];        else if (type == "smtp")            smtpService.defaultServer.hostname = hash[i];    }        /* new nntp identities should use plain text by default     * we wan't that GNKSA (The Good Net-Keeping Seal of Approval) */    if (type == "nntp") {	identity.composeHtml = false;    }    var account = am.createAccount();    account.incomingServer = server;    account.addIdentity(identity);    // if we are creating an IMAP account,    // check if there already is a "none" account. (aka "Local Mail")    // if not, create it.    if (serverType == "imap") {	var localMailServer = null;	try {		// look for anything that is of type "none".		// "none" is the type for "Local Mail"		localMailServer = am.findServer("","","none");	}	catch (ex) {		localMailServer = null;	}	if (!localMailServer) {		// creates a copy of the identity you pass in		am.createLocalMailAccount(identity);        }    }    return true;        } catch (ex) {        // return false (meaning we did not create the account)        // on any error        dump("Error creating account: ex\n");        return false;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/43e4bc8ae987cf4ff8eeccba00fa862b90d354e0/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js