X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/2a17dce6783c810dca5e3648085113002e2bd6ba..8332bcab36bd62b4b7bcdda44dcf87a4009d2d8f:/.mutt/sendmail-checks.d/check-attachments diff --git a/.mutt/sendmail-checks.d/check-attachments b/.mutt/sendmail-checks.d/check-attachments index 760822d..69273b7 100755 --- a/.mutt/sendmail-checks.d/check-attachments +++ b/.mutt/sendmail-checks.d/check-attachments @@ -27,9 +27,11 @@ if ! grep -q "^${OVERRIDE_HEADER}:" "$1" \ egrep -cv '^(multipart/|application/pgp-signature)') if [ $nr_attach -lt 2 ]; then - echo >&2 "E: the mail seems to reference an attachment, but there seems" - echo >&2 "to be no non-PGP MIME part." + echo >&2 "E: the mail message references an attachment," + echo >&2 "E: but there seems to be no non-PGP MIME part." echo >&2 "E: (add the $OVERRIDE_HEADER header to override the check)." exit 1 fi fi + +sed -i -e "/^${OVERRIDE_HEADER}:/d" "$1"