X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/b2f281d78c0fa6ff0a92901a603098df6a5e57b2..f1ab8bcb3d0102fe44d2baad1de229f3edce4048:/.mutt/sendmail-checks.d/ack-recipients?ds=sidebyside diff --git a/.mutt/sendmail-checks.d/ack-recipients b/.mutt/sendmail-checks.d/ack-recipients index d341964..749b1d6 100755 --- a/.mutt/sendmail-checks.d/ack-recipients +++ b/.mutt/sendmail-checks.d/ack-recipients @@ -43,7 +43,7 @@ done [ $ret -eq 0 ] || exit $ret # now remove the X-Acked header from the mail -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