X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/8332bcab36bd62b4b7bcdda44dcf87a4009d2d8f..a83d50d5a64488deb3796bbd0ca0a03b0516cc77:/.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