rem: try { 
add: try { 
context: function verifyLocalFoldersAccount(account) {	var localMailServer = null;	try {		localMailServer = am.localFoldersServer;	}	catch (ex) {        // dump("exception in findserver: " + ex + "\n");		localMailServer = null;	}    try {	if (!localMailServer) {        	// dump("Creating local mail account\n");		// creates a copy of the identity you pass in    messengerMigrator = Components.classes["@mozilla.org/messenger/migrator;1"].getService(Components.interfaces.nsIMessengerMigrator);		messengerMigrator.createLocalMailAccount(false /* false, since we are not migrating */);		try {			localMailServer = am.localFoldersServer;		}		catch (ex) {			dump("error!  we should have found the local mail server after we created it.\n");			localMailServer = null;		}	    	}  var server = account.incomingServer;  var identity = account.identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity);	// for this server, do we default the folder prefs to this server, or to the "Local Folders" server	var defaultCopiesAndFoldersPrefsToServer = server.defaultCopiesAndFoldersPrefsToServer;	var copiesAndFoldersServer = null;	if (defaultCopiesAndFoldersPrefsToServer) {		copiesAndFoldersServer = server;	}	else {		if (!localMailServer) {			dump("error!  we should have a local mail server at this point\n");			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/753d159e34083aad567f4952e7e214ab989c0754/AccountWizard.js/clean/mailnews/base/prefs/resources/content/AccountWizard.js