On Wed, Nov 12, 2025 at 05:04:02PM +0000, Crystal Kolipe wrote:
> 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
>
Thanks.
I need to accomplish two purposes. I need to be able to read it myself
easier. I also have some software that can take text emails and post it
into some old forum software that I can use in private. It worked
perfectly for years. I have no idea about the security of it, so I will
have it in a private spot. Far too many organizations feel that
unencrypted text or email messages are worthy of calling "useful" for
logins.
The above looks like a great start. I can then use the perl to mail a
copy to a different email address. I just has a big blast of coffee, so
I am thinking more clearly. Thanks!
> But the real solution is to tell the sender to supply a plain text version.
If only I could. But even finding access to IT in a major outfit is
next to impossible. However, for this particular organization, I may
just give it the effort.
--
Regards,
Chris Bennett