]> granicus.if.org Git - mutt/commitdiff
Add pgp_default_key and smime_sign_as info to contrib rc files.
authorKevin McCarthy <kevin@8t8.us>
Tue, 16 Jan 2018 00:06:30 +0000 (16:06 -0800)
committerKevin McCarthy <kevin@8t8.us>
Tue, 16 Jan 2018 00:06:30 +0000 (16:06 -0800)
Explain $pgp_default_key vs $pgp_sign_as in gpg.rc.

Explain $smime_default_key vs $smime_sign_as in smime.rc.

contrib/gpg.rc
contrib/smime.rc

index 2ef0ae2cf4ef1531f9162a4a7a22e524f3427fdf..452eed2b8e599ad659227cd4b99a93ad0fa57e4d 100644 (file)
@@ -1,11 +1,9 @@
 # -*-muttrc-*-
 #
 # Command formats for gpg.
-# 
-# This version uses gpg-2comp from 
-#   http://70t.de/download/gpg-2comp.tar.gz
 #
-# $Id$
+# Some of the older commented-out versions of the commands use gpg-2comp from:
+#   http://70t.de/download/gpg-2comp.tar.gz
 #
 # %p    The empty string when no passphrase is needed,
 #       the string "PGPPASSFD=0" if one is needed.
 #       file's name.
 #
 # %a    In "signing" contexts, this expands to the value of the
-#       configuration variable $pgp_sign_as.  You probably need to
+#       configuration variable $pgp_sign_as, if set, otherwise
+#       $pgp_default_key.  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.
 
+
+# Section A: Key Management
+
+# The default key for encryption (used by $pgp_self_encrypt and
+# $postpone_encrypt).
+#
+# It will also be used for signing unless $pgp_sign_as is set to a
+# key.
+#
+# Unless your key does not have encryption capability, uncomment this
+# line and replace the keyid with your own.
+#
+# set pgp_default_key="0x12345678"
+
+# If you have a separate signing key, or your key _only_ has signing
+# capability, uncomment this line and replace the keyid with your
+# signing keyid.
+#
+# set pgp_sign_as="0x87654321"
+
+
+# Section B: Commands
+
 # Note that we explicitly set the comment armor header since GnuPG, when used
 # in some localiaztion environments, generates 8bit data in that header, thereby
 # breaking PGP/MIME.
index 58d274f4c41d2c8725fc5c09cddd4d3dad192dcf..e2c298899b30d4236d3fed3c34980b8c58cee5c8 100644 (file)
@@ -19,11 +19,28 @@ set crypt_replysign = yes
 set crypt_replysignencrypted = yes
 set crypt_verify_sig = yes
 
+
 # Section A: Key Management
 
-# The (default) keyfile for signing/decrypting.  Uncomment the following
+# The default keyfile for encryption (used by $smime_self_encrypt and
+# $postpone_encrypt).
+#
+# It will also be used for decryption unless
+# $smime_decrypt_use_default_key is unset.
+#
+# It will additionally be used for signing unless $smime_sign_as is
+# set to a key.
+#
+# Unless your key does not have encryption capability, uncomment this
 # line and replace the keyid with your own.
-set smime_default_key="12345678.0"
+#
+# set smime_default_key="12345678.0"
+
+# If you have a separate signing key, or your key _only_ has signing
+# capability, uncomment this line and replace the keyid with your
+# signing keyid.
+#
+# set smime_sign_as="87654321.0"
 
 # Uncomment to make mutt ask what key to use when trying to decrypt a message.
 # It will use the default key above (if that was set) else.