Take a look at the program that runs news.perl.org
--the mailing list message is created by some Perl code
that produces an output quite similar to lynx -dump.
Specifically, look towards the bottom of the file for
the HTML::FormatText::AddRefs package; then look at the
get_mail_text routine.