From 9a429ea7cf3cab8d57192d41d1ba94fa1365267d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 14 Jun 2010 13:37:35 +0200 Subject: [PATCH] only pass email addresses to check scripts --- .mutt/sendmail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mutt/sendmail b/.mutt/sendmail index 2745814..ff3a4c1 100755 --- a/.mutt/sendmail +++ b/.mutt/sendmail @@ -21,7 +21,7 @@ cleanup () { rm -f "$TMPFILE"; settrap -; } settrap cleanup cat > $TMPFILE -args=$(for a in $@; do [ $a = -- ] || echo "--arg=$a"; done) +args=$(for a in $@; do case "$a" in (*@*) echo "--arg=$a";; esac; done) run-parts --umask=0077 --arg="$TMPFILE" $args -- "$CHECKSDIR" $SENDMAIL -- "$@" < "$TMPFILE" -- 2.39.5