From 72a841c80ca15c443eccf8e437c16da487f7e3e4 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 14 Mar 2017 10:56:04 +0000 Subject: [PATCH] mutt: don't sign messages to jira and bitbucket --- mutt/muttrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mutt/muttrc b/mutt/muttrc index 6b6fd8d..9c19c86 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -87,7 +87,6 @@ set sendmail = /usr/bin/msmtp # use msmtp set send_charset="utf-8" # only utf8 # GnuPG -set crypt_autosign = yes # autosign messages set crypt_replyencrypt = yes # encrypt replies to encrypted messages set crypt_replysign = yes # sign replies to signed messages set crypt_replysignencrypted = yes # you get the idea @@ -97,6 +96,11 @@ set pgp_mime_auto = no # don't fallback to inline mime set pgp_use_gpg_agent = yes # don't ask for passwords source /usr/share/doc/mutt/samples/gpg.rc +group -group nosign -rx .*@bitbucket.org +group -group nosign -rx jira@.*atlassian.net +send-hook . "set crypt_autosign = yes" +send-hook "%t nosign" "set crypt_autosign = no" + source ~/.mutt/hooks source ~/.mutt/bindings source ~/.mutt/colors/badfox # color theme -- 2.48.1