X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/3f09e8595602999bcee9494ec4e94d60a04b2920..2b4cc3c838b15cc48791d372a785471dd5113619:/.mutt/sendmail-checks.d/check-attachments?ds=inline diff --git a/.mutt/sendmail-checks.d/check-attachments b/.mutt/sendmail-checks.d/check-attachments index 5632f2e..8f01f85 100755 --- a/.mutt/sendmail-checks.d/check-attachments +++ b/.mutt/sendmail-checks.d/check-attachments @@ -23,8 +23,8 @@ OVERRIDE_HEADER=X-No-Attach if ! grep -qi "^${OVERRIDE_HEADER}:" "$1" \ && grep -v '^> ' "$1" | egrep -ziq "($RE_ENGLISH|$RE_GERMAN|$RE_FRENCH)"; then - nr_attach=$(sed -rne 's/^Content-Type:[[:space:]]+//p' "$1" | - egrep -cv '^(multipart/|application/pgp-signature)') + nr_attach=$(sed -rne 's/^Content-Type:[[:space:]]+//pi' "$1" | + egrep -civ '^(multipart/|application/pgp-signature)') if [ $nr_attach -lt 2 ]; then echo >&2 "E: the mail message likely references an attachment,"