nsCOMPtr<nsIMsgHeaderParser>  pHeader;
nsresult res; nsCOMPtr<nsIMsgHeaderParser> pHeader = do_GetService(NS_MAILNEWS_MIME_HEADER_PARSER_CONTRACTID, &res);
ExtractRFC822AddressMailboxes (const char *line){  char                *retVal = NULL;  nsCOMPtr<nsIMsgHeaderParser>  pHeader;  nsresult res = nsComponentManager::CreateInstance(kMsgHeaderParserCID,                                                     NULL, NS_GET_IID(nsIMsgHeaderParser),                                                     (void **) getter_AddRefs(pHeader));   if (NS_SUCCEEDED(res) && pHeader)    pHeader->ExtractHeaderAddressMailboxes(NULL, line, &retVal);  return retVal;}