From 848826fbe39eace8f4851b401934271456d413ea Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 13 Jul 2010 13:41:10 +0200 Subject: [PATCH 1/1] do not check quoted text for attachments --- .mutt/sendmail-checks.d/check-attachments | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mutt/sendmail-checks.d/check-attachments b/.mutt/sendmail-checks.d/check-attachments index 81ff561..b24f860 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" \ - && egrep -ziq "($RE_ENGLISH|$RE_GERMAN|$RE_FRENCH)" "$1"; then + && grep -v '^> ' | 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)') -- 2.39.5