X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/848826fbe39eace8f4851b401934271456d413ea..92bf8bd7a4263f16086052bc4812a7fef66f1099:/.mutt/sendmail-checks.d/check-attachments?ds=sidebyside diff --git a/.mutt/sendmail-checks.d/check-attachments b/.mutt/sendmail-checks.d/check-attachments index b24f860..5632f2e 100755 --- a/.mutt/sendmail-checks.d/check-attachments +++ b/.mutt/sendmail-checks.d/check-attachments @@ -21,7 +21,7 @@ RE_FRENCH='attach(e|er|(é|=E9|=C3=A9)e?s?|ement|ant)' OVERRIDE_HEADER=X-No-Attach if ! grep -qi "^${OVERRIDE_HEADER}:" "$1" \ - && grep -v '^> ' | egrep -ziq "($RE_ENGLISH|$RE_GERMAN|$RE_FRENCH)"; then + && 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)')