Thu, 09 Feb 2017 15:34:52 -0500
nicer collapsed threads
319 | 1 | # vim: ft=muttrc |
315 | 2 | |
3 | set pgp_use_gpg_agent=yes | |
4 | ||
5 | # decode application/pgp | |
6 | set pgp_decode_command="gpg2 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" | |
7 | ||
8 | # verify a pgp/mime signature | |
9 | set pgp_verify_command="gpg2 --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" | |
10 | ||
11 | # decrypt a pgp/mime attachment | |
12 | set pgp_decrypt_command="gpg2 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" | |
13 | ||
14 | # create a pgp/mime signed attachment | |
15 | set pgp_sign_command="gpg2 --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" | |
16 | ||
17 | # create a application/pgp signed (old-style) message | |
18 | set pgp_clearsign_command="gpg2 --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" | |
19 | ||
20 | # create a pgp/mime encrypted attachment | |
21 | set pgp_encrypt_only_command="pgpewrap gpg2 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" | |
22 | ||
23 | # create a pgp/mime encrypted and signed attachment | |
24 | set pgp_encrypt_sign_command="pgpewrap gpg2 %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" | |
25 | ||
26 | # import a key into the public key ring | |
27 | set pgp_import_command="gpg2 --no-verbose --import %f" | |
28 | ||
29 | # export a key from the public key ring | |
30 | set pgp_export_command="gpg2 --no-verbose --export --armor %r" | |
31 | ||
32 | # verify a key | |
33 | set pgp_verify_key_command="gpg2 --verbose --batch --fingerprint --check-sigs %r" | |
34 | ||
35 | # read in the public key ring | |
36 | set pgp_list_pubring_command="gpg2 --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r" | |
37 | ||
38 | # read in the secret key ring | |
39 | set pgp_list_secring_command="gpg2 --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r" | |
40 | ||
41 | # fetch keys | |
42 | set pgp_getkeys_command="gpg2 --recv-keys %r" | |
43 | ||
44 | # pattern for good signature | |
45 | # This version uses --status-fd messages | |
46 | set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" | |
47 | ||
48 | # pattern to verify a decryption occurred | |
49 | set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY" | |
50 |