From 3760fe9f4a2ec6d76f722b22d4881cb50fbc95b2 Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 15 May 2019 03:48:41 +0000 Subject: add pgp support for mutt --- .muttrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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" -- cgit v1.2.3