gpg.rc 3.07 KB
Newer Older
1 2 3
# -*-muttrc-*-
#
# Command formats for gpg.
4 5 6
# 
# This version uses gpg-2comp from 
#   http://muppet.faveve.uni-stuttgart.de/~gero/gpg-2comp.tar.gz
7 8 9
#
# $Id$
#
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# %p    The empty string when no passphrase is needed,
#       the string "PGPPASSFD=0" if one is needed.
#
#       This is mostly used in conditional % sequences.
#
# %f    Most PGP commands operate on a single file or a file
#       containing a message.  %f expands to this file's name.
#
# %s    When verifying signatures, there is another temporary file
#       containing the detached signature.  %s expands to this
#       file's name.
#
# %a    In "signing" contexts, this expands to the value of the
#       configuration variable $pgp_sign_as.  You probably need to
#       use this within a conditional % sequence.
#
# %r    In many contexts, mutt passes key IDs to pgp.  %r expands to
#       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 40
# set pgp_sign_command="gpg-2comp --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
41 42

# create a application/pgp signed (old-style) message
43 44
# set pgp_clearsign_command="gpg-2comp --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
45 46

# create a pgp/mime encrypted attachment
47 48
# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_only_command="pgpewrap gpg -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
49 50

# create a pgp/mime encrypted and signed attachment
51
# 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"
52
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 -v --batch --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
53 54

# import a key into the public key ring
55
set pgp_import_command="gpg --no-verbose --import -v %f"
56 57

# export a key from the public key ring
58
set pgp_export_command="gpg --no-verbose --export --armor %r"
59 60

# verify a key
61
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
62 63

# read in the public key ring
64
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" 
65 66

# read in the secret key ring
67
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" 
68

69 70 71
# receive key from keyserver:
#set pgp_getkeys_command="wrap.sh -g %r"
set pgp_getkeys_command=""