rem: var messengerMigrator = Components.classes["component: 
add: var messengerMigrator = Components.classes["@mozilla.org/messenger/migrator;1"].getService(Components.interfaces.nsIMessengerMigrator); 
context: function createAccount() {netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");//IMAP Accounttry { 	dump("********Now we have " + accountManager.accounts.Count() + " accounts\n");	for (var j=0; j<accountManager.allServers.Count(); j++) {		var tserver = accountManager.allServers.GetElementAt(j).QueryInterface(Components.interfaces.nsIMsgIncomingServer);		if (tserver.username == 'parp3')  {			dump("Account parp3 already exists.. Using the existing account...\n");			var account_exists = 1;		}	}	if (account_exists != 1) {		var old_count = accountManager.accounts.Count();		var account = accountManager.createAccount();		accountKey = account.key;		dump("NEW KEY = " + accountKey + "\n");		identity = accountManager.createIdentity();		server = accountManager.createIncomingServer("parp3", "parp.mcom.com", "imap");		server.rememberPassword = true;		account.addIdentity(identity);		account.incomingServer = server;		dump("Created identity " + identity + "\n");		dump("Created server " + server + "\n");		server.prettyName = "parp3";		server.hostName = "parp.mcom.com";		server.username = "parp3";		server.password = "parp3";		identity.identityName = "parp3";		identity.fullName = "parp3";		identity.email = "parp3@parp.mcom.com";		dump("********Now we have " + accountManager.accounts.Count() + " accounts\n");		var new_count = accountManager.accounts.Count();		if (new_count == old_count + 1) {			dump("Sucessfully created an Account\n");			createAccountResult = "Passed";			rv += "createAccount:" + "\t" + "Passed" + "\n";		}		else {			dump("Failed to create an account \n");			createAccountResult = "Failed";			rv += "createAccount:" + "\t" + "Failed" + "\n";			if (final_result == "Passed")				final_result = "Failed";		}	} //if	} //try	catch (e) {		dump("E = " + e + "\n");	}// local folder 	var messengerMigrator = Components.classes["component://netscape/messenger/migrator"].getService(Components.interfaces.nsIMessengerMigrator);	messengerMigrator.createLocalMailAccount(false);	dump("Created local mail account \n");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/imapTest.js/clean/mailnews/base/resources/content/imapTest.js