From: martin f. krafft Date: Mon, 14 Jun 2010 11:37:35 +0000 (+0200) Subject: only pass email addresses to check scripts X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/9a429ea7cf3cab8d57192d41d1ba94fa1365267d?ds=sidebyside only pass email addresses to check scripts --- 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"