From db13fabef4016b65602264e263ac23ae332ec660 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 10 Mar 2020 20:06:46 +0100 Subject: [PATCH] sendmail: single-line recipients list --- .mutt/sendmail | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.mutt/sendmail b/.mutt/sendmail index 881935d..b125941 100755 --- a/.mutt/sendmail +++ b/.mutt/sendmail @@ -41,6 +41,8 @@ fi args=$(for i in $recipients; do echo "--arg=$i"; done) run-parts --exit-on-error --umask=0077 --arg="$TMPFILE" $args -- "$CHECKSDIR" +recipients=$(echo "$recipients" | xargs) + formail $remove_headers < "$TMPFILE" \ | eval $SENDMAIL "$sendmail_args" -- "$recipients" -- 2.39.5