aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2019-05-15 03:48:41 +0000
committerkatherine <shmibs@shmibbles.me>2019-05-15 03:48:41 +0000
commit3760fe9f4a2ec6d76f722b22d4881cb50fbc95b2 (patch)
tree6fa5a7742883616f91fccc1fa9b347af21b852b4
parent7b74b920e28c55391f3d4c3ec4da7930bbf23341 (diff)
downloaddotfiles-3760fe9f4a2ec6d76f722b22d4881cb50fbc95b2.tar.gz
add pgp support for mutt
-rw-r--r--.muttrc25
1 files changed, 25 insertions, 0 deletions
diff --git a/.muttrc b/.muttrc
index dc72854..9967369 100644
--- a/.muttrc
+++ b/.muttrc
@@ -64,3 +64,28 @@ color status white brightblack
color tilde magenta default
color tree blue default
+
+#######
+# pgp #
+#######
+
+set crypt_replyencrypt
+set crypt_replysign
+set crypt_replysignencrypted
+
+set pgp_show_unusable=no
+
+set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
+set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
+set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
+set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
+set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
+set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
+set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
+set pgp_import_command="gpg --no-verbose --import %f"
+set pgp_export_command="gpg --no-verbose --export --armor %r"
+set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
+set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
+set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r"
+set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
+set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY"