aboutsummaryrefslogtreecommitdiffstats
path: root/.config/mutt/gpg.rc
diff options
context:
space:
mode:
Diffstat (limited to '.config/mutt/gpg.rc')
-rw-r--r--.config/mutt/gpg.rc17
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/mutt/gpg.rc b/.config/mutt/gpg.rc
new file mode 100644
index 0000000..502de7b
--- /dev/null
+++ b/.config/mutt/gpg.rc
@@ -0,0 +1,17 @@
+set pgp_good_sign="^gpg: Good signature from "
+set pgp_use_gpg_agent = yes
+set pgp_self_encrypt = yes
+set pgp_default_key = '1793DAD5D803A8FFD7451697BB992F9864FAD168'
+set pgp_timeout = 60
+set pgp_verify_command = "gpg --batch --output - --verify %s %f"
+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"
+
+send-hook . 'reset crypt_autoencrypt'
+source "~/.mutt/gpg-auto.rc"