X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/8332bcab36bd62b4b7bcdda44dcf87a4009d2d8f..f1ab8bcb3d0102fe44d2baad1de229f3edce4048:/.mutt/sendmail-checks.d/ack-recipients 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