
On 01.05.15 17:24, Craig Sanders wrote:
it would probably be better and more reliable to write a simple perl filter using MIME::Decoder[2], which uses subclasss MIME::QuotedPrint::Perl[3] - the MIME:Decoder docs have an example filter in 3 lines of perl:
use MIME::Decoder;
$decoder = new MIME::Decoder 'quoted-printable' or die "unsupported"; $decoder->decode(\*STDIN, \*STDOUT);
awk and/or sed can probably handle 90+% of cases, or at least make them less ugly to view. a decoder script should handle 100%, and convert them back to 8-bit text.
Many thanks, Craig. I'll read the article, but I can't promise to do battle with perl. Too many years of too intimate familiarity with awk have made the pain of learning perl too much to endure. (Tried about a decade ago, even bought several books. Sold or gave away most of them.) You're right, the html pages were horribly ugly to view, but fixing half a dozen QP-isms renders them apparently flawless. (Perhaps I was lucky) <OT> With encroaching seniority, energy flags, and today it was more fun to put a new phase capacitor in the quarter-century old alternator for the farm, so it again generates 240v, rather than just 190v, which made it hard for fluoro's to light up. </OT> Erik