X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/b2f281d78c0fa6ff0a92901a603098df6a5e57b2..f1ab8bcb3d0102fe44d2baad1de229f3edce4048:/.mutt/sendmail?ds=sidebyside diff --git a/.mutt/sendmail b/.mutt/sendmail index b125941..80fd4a1 100755 --- a/.mutt/sendmail +++ b/.mutt/sendmail @@ -10,12 +10,12 @@ # Copyright © 2010 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -set -eu +set -eux CHECKSDIR="$HOME/.mutt/sendmail-checks.d" SENDMAIL="/usr/sbin/sendmail -oem -oi" -TMPFILE=$(tempfile -p mutt-sendmail -s .msg) +TMPFILE=$(mktemp --tmpdir mutt-sendmail.XXXXXXXXXX.msg) settrap () { trap "$@" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15; } cleanup () { rm -f "$TMPFILE"; settrap -; } settrap cleanup