.vimrc: +<Esc>1
[nethome.git] / .muttrc-gpg.rc
1 # -*-muttrc-*-
2 #
3 # Command formats for gpg.
4
5 # This version uses gpg-2comp from 
6 #   http://muppet.faveve.uni-stuttgart.de/~gero/gpg-2comp.tar.gz
7 #
8 # $Id$
9 #
10 # %p    The empty string when no passphrase is needed,
11 #       the string "PGPPASSFD=0" if one is needed.
12 #
13 #       This is mostly used in conditional % sequences.
14 #
15 # %f    Most PGP commands operate on a single file or a file
16 #       containing a message.  %f expands to this file's name.
17 #
18 # %s    When verifying signatures, there is another temporary file
19 #       containing the detached signature.  %s expands to this
20 #       file's name.
21 #
22 # %a    In "signing" contexts, this expands to the value of the
23 #       configuration variable $pgp_sign_as.  You probably need to
24 #       use this within a conditional % sequence.
25 #
26 # %r    In many contexts, mutt passes key IDs to pgp.  %r expands to
27 #       a list of key IDs.
28
29 # decode application/pgp
30 set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
31
32 # verify a pgp/mime signature
33 set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
34
35 # decrypt a pgp/mime attachment
36 set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
37
38 # create a pgp/mime signed attachment
39 # set pgp_sign_command="gpg-2comp --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
40 set pgp_sign_command="gpg --no-verbose --compress-algo 1 --cipher-algo cast5 --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
41
42 # create a application/pgp signed (old-style) message
43 # set pgp_clearsign_command="gpg-2comp --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
44 set pgp_clearsign_command="gpg --no-verbose --compress-algo 1 --cipher-algo cast5 --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
45
46 # create a pgp/mime encrypted attachment
47 # set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
48 set pgp_encrypt_only_command="pgpewrap gpg -v --compress-algo 1 --cipher-algo cast5 --batch --output - --encrypt --textmode --armor -- -r %r -- %f"
49 # --always-trust
50
51 # create a pgp/mime encrypted and signed attachment
52 # set pgp_encrypt_sign_command="pgpewrap gpg-2comp --passphrase-fd 0 -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
53 set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 -v --compress-algo 1 --cipher-algo cast5 --batch --textmode --output - --encrypt --sign %?a?-u %a? --armor -- -r %r -- %f"
54 # --always-trust
55
56 # import a key into the public key ring
57 set pgp_import_command="gpg --no-verbose --import -v %f"
58
59 # export a key from the public key ring
60 set pgp_export_command="gpg --no-verbose --export --armor %r"
61
62 # verify a key
63 set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
64
65 # read in the public key ring
66 set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" 
67
68 # read in the secret key ring
69 set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" 
70
71 # receive key from keyserver:
72 #set pgp_getkeys_command="wrap.sh -g %r"
73 set pgp_getkeys_command=""