From 77e8248c69861ace83bcac5a6ffa37e2da31bf67 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 15 Jun 2010 12:57:04 +0200 Subject: [PATCH 1/1] better removal of leading -- from sendmail args --- .mutt/sendmail | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5