Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2009 18:44:54 -0400 (EDT)
From:      vogelke+unix@pobox.com (Karl Vogel)
To:        freebsd-questions@freebsd.org
Subject:   Re: Interesting tool
Message-ID:  <20090718224455.0A9ACB7D9@kev.msw.wpafb.af.mil>
In-Reply-To: <20090718093019.GA3278@current.Sisis.de> (message from Matthias Apitz on Sat, 18 Jul 2009 11:30:19 %2B0200)

next in thread | previous in thread | raw e-mail | index | archive | help
>> In an earlier message, someone said:
S> It looks like a text dump of HTML, created with w3m or elinks.

>> On Sat, 18 Jul 2009 11:30:19 +0200, Matthias Apitz <guru@unixarea.de> said:
M> I wasn't aware of these tools and will check them; the text dump of lynx
M> does not produce such output, even with placeholders for images.

   w3m produces great output for things like tables.  For HTML mail that
   I want to keep in plain-text format, I use something like this:

     qp < mail-message | w3m -no-graph -dump -T text/html -cols 75

   "qp" is a perl script I use to handle quoted-printable stuff:

     #!/usr/bin/perl
     #<qp: decode quoted-printable crap from mailing lists.
     use MIME::Decoder;
     $decoder = new MIME::Decoder 'quoted-printable' or die "unsupported";
     $decoder->decode(\*STDIN, \*STDOUT);
     exit(0);

-- 
Karl Vogel                      I don't speak for the USAF or my company
My name is not "Dr. Death".         --written on blackboard by Bart Simpson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090718224455.0A9ACB7D9>