.mutt/gpg2.rc

Sat, 21 May 2016 00:43:21 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 21 May 2016 00:43:21 -0400
changeset 318
4ddeb168692b
parent 315
4f39f5f13418
child 319
c8183f797981
permissions
-rw-r--r--

link pgpewrap too

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

mercurial