X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/e4fe59c8eda1095f1ac6c3b67e809e035fb21e6d..7a2362cccd490f567bbacf77018e7db34453e99f:/.mutt/sendmail-checks.d/prevent-draft?ds=sidebyside 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