Andreas Krennmair:
[apps/madmutt.git] / contrib / pgp5.rc
1 # -*-muttrc-*-
2 #
3 # PGP command formats for PGP 5.
4 #
5 # $Id: pgp5.rc,v 3.0 2002/01/24 12:11:17 roessler Exp $
6 #
7
8 # decode application/pgp
9 set pgp_decode_command="%?p?PGPPASSFD=0; export PGPPASSFD;? cat %?p?-? %f | pgpv +language=mutt +verbose=0 +batchmode -f --OutputInformationFD=0"
10
11 # verify a pgp/mime signature
12 set pgp_verify_command="pgpv +language=mutt +verbose=0 +batchmode --OutputInformationFD=1 %f %s"
13
14 # string that the verify command outputs if the signature is good
15 set pgp_good_sign = "Good signature"
16
17 # decrypt a pgp/mime attachment
18 set pgp_decrypt_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgpv +language=mutt +verbose=0 +batchmode --OutputInformationFD=2 -f"
19
20 # create a pgp/mime signed attachment
21 set pgp_sign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgps +language=mutt +verbose=0 +batchmode -abft %?a? -u %a?"
22
23 # create a pgp/mime encrypted attachment
24 set pgp_encrypt_only_command="pgpewrapng pgpe +language=mutt +verbose=0 +batchmode +nobatchinvalidkeys=off -aft -- -r %r < %f"
25
26 # create a pgp/mime encrypted and signed attachment
27 set pgp_encrypt_sign_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgpewrapng pgpe +language=mutt +verbose=0 +batchmode +nobatchinvalidkeys=off -afts %?a? -u %a? -- -r %r"
28
29 # import a key into the public key ring
30 set pgp_import_command="pgpk -a +language=mutt --OutputInformationFD=1 %f"
31
32 # export a key from the public key ring
33 set pgp_export_command="pgpk -xa +language=mutt --OutputInformationFD=1 %r"
34
35 # verify a key
36 set pgp_verify_key_command="pgpk -c +batchmode +language=mutt --OutputInformationFD=1 %r"
37
38 # read in the public key ring
39 set pgp_list_pubring_command="pgpringng -5 %r" 
40
41 # read in the secret key ring
42 set pgp_list_secring_command="pgpringng -5 -s %r"
43
44