bin/mutt-html2txt

Thu, 28 Oct 2021 21:46:26 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 28 Oct 2021 21:46:26 -0500
changeset 953
e033f9ce0d8c
parent 564
81f1da7a57e1
permissions
-rwxr-xr-x

Simplify ag/grep setup

#!/bin/sh
set -eu

LINKS="links -html-tables 0 -html-image-names 0 -html-margin 0"
FILE=${1:--}

[ "$FILE" != '-' ] &&
  exec $LINKS -dump $FILE

TMPHTML="$(mktemp).html"
cat > $TMPHTML
$LINKS -dump $TMPHTML
rm -f $TMPHTML

mercurial