bin/mutt-html2txt@a4f19f325dea
bin/mutt-html2txt
Fri, 06 May 2022 06:33:41 -0400
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Fri, 06 May 2022 06:33:41 -0400
- changeset 990
- a4f19f325dea
- parent 564
-
81f1da7a57e1
- permissions
- -rwxr-xr-x
Switch to stubexec, handle user_dir install
#!/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