From: martin f. krafft Date: Wed, 13 Oct 2010 07:32:50 +0000 (+0200) Subject: fix attachment check X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/46f71f0d0278a7e6fe3d9fb630577ad266d4af71?ds=inline;hp=ea02419da6516d3e4ad458f998e08ccc8ae73425 fix attachment check --- diff --git a/.mutt/sendmail-checks.d/check-attachments b/.mutt/sendmail-checks.d/check-attachments index b24f860..e8e5b7c 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)" "$1"; then nr_attach=$(sed -rne 's/^Content-Type:[[:space:]]+//p' "$1" | egrep -cv '^(multipart/|application/pgp-signature)')