*aMessageService = msgService; NS_IF_ADDREF(*aMessageService);
NS_IF_ADDREF(*aMessageService = msgService);
nsresult GetMessageServiceFromURI(const char *uri, nsIMsgMessageService **aMessageService){	nsCAutoString contractID;	nsresult rv;	rv = GetMessageServiceContractIDForURI(uri, contractID);  NS_ENSURE_SUCCESS(rv,rv);  nsCOMPtr <nsIMsgMessageService> msgService = do_GetService(contractID.get(), &rv);  NS_ENSURE_SUCCESS(rv,rv);  *aMessageService = msgService;  NS_IF_ADDREF(*aMessageService);	return rv;}