From: martin f. krafft Date: Tue, 10 Mar 2020 19:06:46 +0000 (+0100) Subject: sendmail: single-line recipients list X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/db13fabef4016b65602264e263ac23ae332ec660?ds=sidebyside sendmail: single-line recipients list --- 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"