From 302f89a7560305cf5c7946c805398a98cb7d7621 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 8 Sep 2019 12:17:02 +0200 Subject: .mutt/gpg.rc: Using pgp_default_key, instead of pgp_sign_as (the latter will use data from the former anyways). Specifically enforcing pgp_self_encrypt, to be able to read messages sent encrypted. Setting crypt_protected_headers_write, so e.g. the subject will be obfuscated. --- .mutt/gpg.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.mutt/gpg.rc b/.mutt/gpg.rc index 002730d..5b7d7b6 100644 --- a/.mutt/gpg.rc +++ b/.mutt/gpg.rc @@ -1,11 +1,13 @@ set pgp_good_sign="^gpg: Good signature from " set pgp_use_gpg_agent = yes -set pgp_sign_as = 0xF5A1A949 +set pgp_self_encrypt = yes +set pgp_default_key = '0xF5A1A949' set pgp_timeout = 60 set crypt_use_gpgme = yes set crypt_autosign = yes set crypt_replyencrypt = yes set crypt_replysignencrypted = yes +set crypt_protected_headers_write = yes # add message-hook for non standard-compliant (old) gnupg style messages message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp" -- cgit v1.2.3-70-g09d2