From: martin f. krafft Date: Thu, 29 Jan 2015 21:00:04 +0000 (+0100) Subject: use sed instead of formail X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/8549170f2638a95890cacc2919054b5fd69c6241 use sed instead of formail --- diff --git a/.mutt/sendmail-checks.d/zzz_add-spool-bcc b/.mutt/sendmail-checks.d/zzz_add-spool-bcc index 96c8e7b..33d9254 100755 --- a/.mutt/sendmail-checks.d/zzz_add-spool-bcc +++ b/.mutt/sendmail-checks.d/zzz_add-spool-bcc @@ -20,5 +20,5 @@ if ! cp -n "$INPUT" "$DEST"; then echo >&1 "W: leaving a copy in '$TMPFILE'…" else RECIPIENTS=$(for i in "$@"; do echo " $i,"; done) - formail -I"X-Sendmail-Recipients:${RECIPIENTS%,}" < "$INPUT" > "$DEST" + sed -e "1iX-Sendmail-Recipients:${RECIPIENTS%,}" < "$INPUT" > "$DEST" fi