aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2019-09-08 12:17:02 +0200
committerDavid Runge <dave@sleepmap.de>2019-09-08 12:17:02 +0200
commit302f89a7560305cf5c7946c805398a98cb7d7621 (patch)
treed5292eb79100092b950e5f0e4e000cd003fd0572
parent8166e979926270e00e5de6847e9e60b120e0418d (diff)
downloaddotfiles-302f89a7560305cf5c7946c805398a98cb7d7621.tar.gz
dotfiles-302f89a7560305cf5c7946c805398a98cb7d7621.tar.bz2
dotfiles-302f89a7560305cf5c7946c805398a98cb7d7621.tar.xz
dotfiles-302f89a7560305cf5c7946c805398a98cb7d7621.zip
.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.
-rw-r--r--.mutt/gpg.rc4
1 files changed, 3 insertions, 1 deletions
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"