bin/mutt-html2txt

changeset 564
81f1da7a57e1
equal deleted inserted replaced
563:c1949730cc74 564:81f1da7a57e1
1 #!/bin/sh
2 set -eu
3
4 LINKS="links -html-tables 0 -html-image-names 0 -html-margin 0"
5 FILE=${1:--}
6
7 [ "$FILE" != '-' ] &&
8 exec $LINKS -dump $FILE
9
10 TMPHTML="$(mktemp).html"
11 cat > $TMPHTML
12 $LINKS -dump $TMPHTML
13 rm -f $TMPHTML

mercurial