in reply to Extracting a list of email addresses from a mail header

Take a look at the MailTools package from Graham Barr. In particular, Mail::Internet, Mail::Header and Mail::Address may be what you are looking for. Also, doing a search for Mail:: on CPAN yields some results that may be interesting.

--ZZamboni

  • Comment on Re: Extracting a list of email addresses from a mail header