nsresult res = nsComponentManager::CreateInstance(kMsgHeaderParserCID, NULL, NS_GET_IID(nsIMsgHeaderParser), (void **) getter_AddRefs(pHeader));
ReformatRFC822Addresses (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->ReformatHeaderAddresses(NULL, line, &retVal);  return retVal;}