From: martin f. krafft Date: Fri, 30 Jan 2015 05:34:28 +0000 (+0100) Subject: exit on error in any sendmail check X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/6f1685ce591af0b875541378c38e8aaa2d09e048?ds=sidebyside;hp=d8eff45675fca78a8e49f5ce334caf5ada316390 exit on error in any sendmail check --- diff --git a/.mutt/sendmail b/.mutt/sendmail index 132a417..635ff3e 100755 --- a/.mutt/sendmail +++ b/.mutt/sendmail @@ -33,7 +33,7 @@ done cat > $TMPFILE recipients="$recipients $(formail -czx X-Bcc-Spool: < "$TMPFILE" | tr -d ',')" args=$(for i in $recipients; do echo "--arg=$i"; done) -run-parts --umask=0077 --arg="$TMPFILE" $args -- "$CHECKSDIR" +run-parts --exit-on-error --umask=0077 --arg="$TMPFILE" $args -- "$CHECKSDIR" formail -I X-Bcc-Spool: < "$TMPFILE" | eval $SENDMAIL "$sendmail_args" -- "$recipients" cleanup