X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/9e920b012f5458174ddc96e0b015b93215234fb3..2f2dbb16f3788978fee78cf718e8660e6a249a5d:/.mutt/sendmail?ds=sidebyside diff --git a/.mutt/sendmail b/.mutt/sendmail index a927bfc..e002a5e 100755 --- a/.mutt/sendmail +++ b/.mutt/sendmail @@ -23,6 +23,7 @@ settrap cleanup cat > $TMPFILE args=$(for a in $@; do case "$a" in (*@*) echo "--arg=$a";; esac; done) run-parts --umask=0077 --arg="$TMPFILE" $args -- "$CHECKSDIR" -$SENDMAIL -- "${@#-- }" < "$TMPFILE" +[ "$1" = -- ] && shift +$SENDMAIL -- "$@" < "$TMPFILE" cleanup