From: martin f. krafft Date: Wed, 26 May 2010 16:45:25 +0000 (+0200) Subject: refuse sending if notyet is a recipient X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/ea36eed7af5f5e0e28b8d60f55abda2997cb1a08?ds=inline refuse sending if notyet is a recipient --- diff --git a/.mutt/error b/.mutt/error new file mode 100755 index 0000000..ea81cf1 --- /dev/null +++ b/.mutt/error @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +ret=$1; shift +msg="$@"; msg="${msg%% --*}" +echo "$msg" +exit $ret diff --git a/.mutt/hooks b/.mutt/hooks index 8ca1610..0856dc8 100644 --- a/.mutt/hooks +++ b/.mutt/hooks @@ -1,5 +1,8 @@ save-hook . =store +send2-hook . 'reset sendmail' +send2-hook '~L notyet' "set sendmail='~/.mutt/error 1 I will not send this draft yet!'" + #send-hook '~C @bugs\.debian\.org' 'my_hdr X-Debbugs-No-Ack: please spare me' send2-hook '~C @packages\.qa\.debian\.org' 'my_hdr X-PTS-Approved: please' #send-hook '~C -request@' 'my_hdr X-Record: discard'