From 6f1685ce591af0b875541378c38e8aaa2d09e048 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 30 Jan 2015 06:34:28 +0100 Subject: [PATCH 1/1] exit on error in any sendmail check --- .mutt/sendmail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5