bin/mutt-html2txt@ede01ab376a7
bin/mutt-html2txt
Mon, 22 Feb 2021 15:55:25 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 22 Feb 2021 15:55:25 -0600
- changeset 892
- ede01ab376a7
- parent 564
-
81f1da7a57e1
- permissions
- -rwxr-xr-x
switch to py3/pip3
#!/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