.mutt/gpg2.rc

Wed, 21 Sep 2016 17:34:19 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 21 Sep 2016 17:34:19 -0400
changeset 394
fd0577ad3e32
parent 319
c8183f797981
permissions
-rw-r--r--

improve style

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

mercurial