On Wed, Nov 12, 2025 at 08:22:11AM -0800, Chris Bennett wrote:
> This:

If you just want to read the textual content, some combination of sed, awk,
perl, and other command line tools will extract it from the html and css with
minimal effort, (depending on the degree of trimming and formatting that you
desire).

For example:

#!/usr/bin/perl
$line = <>;
$line =~ s/<.*?>/\n/g;
$line =~ s/{.*?}/\n/g;
$line =~ s/\s+/ /g;
$line =~ s/\. /\n/g;
print $line;

$ cat input_file | tr -d '^J' | ./above_perl_script

But the real solution is to tell the sender to supply a plain text version.

Reply via email to