nsCOMPtr<nsIMsgHeaderParser> parser (do_GetService(kHeaderParserCID));
nsCOMPtr<nsIMsgHeaderParser> parser (do_GetService(NS_MAILNEWS_MIME_HEADER_PARSER_CONTRACTID));
static nsresult RemoveDuplicateAddresses(const char * addresses, const char * anothersAddresses, PRBool removeAliasesToMe, char** newAddress){  nsresult rv;  nsCOMPtr<nsIMsgHeaderParser> parser (do_GetService(kHeaderParserCID));  if (parser)    rv= parser->RemoveDuplicateAddresses("UTF-8", addresses, anothersAddresses, removeAliasesToMe, newAddress);  else    rv = NS_ERROR_FAILURE;  return rv;}