mml2015: add an option to use sender address to sign
authorJulien Danjou <julien@danjou.info>
Thu, 27 Jan 2011 16:18:19 +0000 (17:18 +0100)
committerJulien Danjou <julien@danjou.info>
Thu, 27 Jan 2011 16:20:01 +0000 (17:20 +0100)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/mml2015.el

index dd00120..1d33174 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-27  Julien Danjou  <julien@danjou.info>
+
+       * mml2015.el (mml2015-epg-sign): Add and use mml2015-sign-with-sender.
+
 2011-01-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * shr.el (shr-expand-newlines, shr-previous-newline-padding-width):
index 0ac6208..00d69e9 100644 (file)
@@ -120,6 +120,12 @@ Whether the passphrase is cached at all is controlled by
   :group 'mime-security
   :type '(repeat (string :tag "Key ID")))
 
+(defcustom mml2015-sign-with-sender nil
+  "If t, use message sender so find a key to sign with."
+  :group 'mime-security
+  :type 'boolean
+  :version "24.1")
+
 (defcustom mml2015-encrypt-to-self nil
   "If t, add your own key ID to recipient list when encryption."
   :group 'mime-security
@@ -959,7 +965,8 @@ Whether the passphrase is cached at all is controlled by
   (let* ((inhibit-redisplay t)
         (context (epg-make-context))
         (boundary (mml-compute-boundary cont))
-        (sender (message-options-get 'message-sender))
+        (sender (when mml2015-sign-with-sender
+                   message-options-get 'message-sender))
         signer-key
         (signers
          (or (message-options-get 'mml2015-epg-signers)