bin/mutt-html2txt@8aea1e8c4aa6
bin/mutt-html2txt
Fri, 28 Jan 2022 14:42:14 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Fri, 28 Jan 2022 14:42:14 -0600
- changeset 975
- 8aea1e8c4aa6
- parent 564
-
81f1da7a57e1
- permissions
- -rwxr-xr-x
better hlsearch toggle
#!/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