From ea36eed7af5f5e0e28b8d60f55abda2997cb1a08 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 26 May 2010 18:45:25 +0200 Subject: [PATCH 1/1] refuse sending if notyet is a recipient --- .mutt/error | 7 +++++++ .mutt/hooks | 3 +++ 2 files changed, 10 insertions(+) create mode 100755 .mutt/error 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' -- 2.39.5