bin/mutt-html2txt@4a0d4c07b49e
bin/mutt-html2txt
Sun, 01 Oct 2017 16:40:58 -0400
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Sun, 01 Oct 2017 16:40:58 -0400
- changeset 651
- 4a0d4c07b49e
- parent 564
-
81f1da7a57e1
- permissions
- -rwxr-xr-x
use perltidy for equalprg if present
#!/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