From 78252ef5b20d8237d5c1814546f120ac0a1b52ab Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 8 Sep 2014 21:14:14 +0200 Subject: [PATCH] hide grep output in attachment checker --- .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 6ecbb24..fe80dc0 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 -v '^(> |Content-Disposition:)' "$1" | egrep -zi "($RE_ENGLISH|$RE_GERMAN|$RE_FRENCH)"; then + && egrep -v '^(> |Content-Disposition:)' "$1" | egrep -qzi "($RE_ENGLISH|$RE_GERMAN|$RE_FRENCH)"; then nr_attach=$(sed -rne 's/^Content-Type:[[:space:]]+//pi' "$1" | egrep -civ '^(multipart/|application/pgp-signature)') -- 2.39.5