From cb9b31096bcb954a0876fd03b610217765a245f5 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 20 Apr 2016 12:46:42 +0200 Subject: [PATCH 1/1] exclude subject from prevent-draft check --- .mutt/sendmail-checks.d/prevent-draft | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mutt/sendmail-checks.d/prevent-draft b/.mutt/sendmail-checks.d/prevent-draft index a775a38..314dfd3 100755 --- a/.mutt/sendmail-checks.d/prevent-draft +++ b/.mutt/sendmail-checks.d/prevent-draft @@ -7,7 +7,7 @@ # set -eu -draft_headers=$(sed -ne '1,/^$/p' "$1" | egrep -i '^(X-Draft:|Subject:.*[[(]?(Draft|Entwurf)[])]?|(To|Cc):.*[-_]DRAFT)' || :) +draft_headers=$(sed -ne '1,/^$/p' "$1" | egrep -i '^(X-Draft:|(To|Cc):.*[-_]DRAFT)' || :) if [ -n "$draft_headers" ]; then echo "$draft_headers" | egrep -iq '^X-Draft: (ok|no)' && exit 0 -- 2.39.5