context: function verifyLocalFoldersAccount(account) {        dump("Looking for local mail..\n");	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) {        // dump("exception in findserver: " + ex + "\n");		localMailServer = null;	}    try {    var server = account.incomingServer;    var identity = account.identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity);	// use server type to get the protocol info	var protocolinfo = Components.classes["component://netscape/messenger/protocol/info;type=" + server.type].getService(Components.interfaces.nsIMsgProtocolInfo);	// for this protocol, do we default the folder prefs to this server, or to the "Local Folders" server	defaultCopiesAndFoldersPrefsToServer = protocolinfo.defaultCopiesAndFoldersPrefsToServer;	if (!localMailServer) {        // dump("Creating local mail account\n");		// creates a copy of the identity you pass in        messengerMigrator = Components.classes["component://netscape/messenger/migrator"].getService(Components.interfaces.nsIMessengerMigrator);		messengerMigrator.createLocalMailAccount(false /* false, since we are not migrating */);    }	var copiesAndFoldersServer = null;	if (defaultCopiesAndFoldersPrefsToServer) {		copiesAndFoldersServer = server;	}	else {		if (!localMailServer) {			dump("error!  we should have a local mail server at this point");			return;		}		copiesAndFoldersServer = localMailServer;	}		setDefaultCopiesAndFoldersPrefs(identity, copiesAndFoldersServer);    } catch (ex) {        // return false (meaning we did not create the account)        // on any error        dump("Error creating local mail: " + ex + "\n");        return false;    }    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/faec12c3ea87c27ec14405d8b5db76c737e48576/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js