bin/mutt-html2txt@0e927f9c141a
bin/mutt-html2txt
Sat, 10 Jun 2017 19:48:39 -0400
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Sat, 10 Jun 2017 19:48:39 -0400
- changeset 600
- 0e927f9c141a
- parent 564
-
81f1da7a57e1
- permissions
- -rwxr-xr-x
Sadly, this is hg >= 4.2 only
#!/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