bin/mutt-html2txt

Wed, 22 May 2024 18:38:53 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 22 May 2024 18:38:53 -0500
changeset 1171
12363689e67e
parent 564
81f1da7a57e1
permissions
-rwxr-xr-x

Drop LuaSnip for vim.snippet

#!/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

mercurial