From afcbe3084d440952177900bd00a37cd27150d77e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 29 Oct 2010 13:16:25 +0200 Subject: [PATCH 1/1] only check for draft tags in main message header --- .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 9924260..4cfe23f 100755 --- a/.mutt/sendmail-checks.d/prevent-draft +++ b/.mutt/sendmail-checks.d/prevent-draft @@ -7,7 +7,7 @@ # set -eu -if egrep -iq '^(X-Draft:|Subject:.*[[(]?(Draft|Entwurf)[])]?)' $1; then +if sed -ne '1,/^$/' "$1" | egrep -iq '^(X-Draft:|Subject:.*[[(]?(Draft|Entwurf)[])]?)'; then echo >&2 "E: will not send this message while the X-Draft header or" echo >&2 "E: a subject draft tag is present." exit 1 -- 2.39.5