aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Sjøgren2014-11-13 04:22:36 +0000
committerKatsumi Yamaoka2014-11-13 04:22:36 +0000
commite18c2a53a9813617cfe4862dc03ddd7666133b58 (patch)
treef920d460e0d05e8032ba8e9584d1389fc3ed33df
parentac03795dc46ec150e2cabda756f31f6d10055c86 (diff)
downloademacs-e18c2a53a9813617cfe4862dc03ddd7666133b58.tar.gz
emacs-e18c2a53a9813617cfe4862dc03ddd7666133b58.zip
[Backport] lisp/gnus/mml2015.el (mml2015-display-key-image): New variable
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/mml2015.el9
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index e659e983392..6713df85819 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12014-11-10 Adam Sjøgren <asjo@koldfront.dk>
2
3 * mml2015.el (mml2015-display-key-image): New variable.
4
12014-10-27 Katsumi Yamaoka <yamaoka@jpl.org> 52014-10-27 Katsumi Yamaoka <yamaoka@jpl.org>
2 6
3 * gnus.el (gnus-mode-line-buffer-identification): 7 * gnus.el (gnus-mode-line-buffer-identification):
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el
index 9fc8f6e8c0c..a1e38261b97 100644
--- a/lisp/gnus/mml2015.el
+++ b/lisp/gnus/mml2015.el
@@ -152,6 +152,12 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
152 :group 'mime-security 152 :group 'mime-security
153 :type 'integer) 153 :type 'integer)
154 154
155(defcustom mml2015-display-key-image t
156 "If t, try to display key images."
157 :version "24.5"
158 :group 'mime-security
159 :type 'boolean)
160
155;; Extract plaintext from cleartext signature. IMO, this kind of task 161;; Extract plaintext from cleartext signature. IMO, this kind of task
156;; should be done by GnuPG rather than Elisp, but older PGP backends 162;; should be done by GnuPG rather than Elisp, but older PGP backends
157;; (such as Mailcrypt, and PGG) discard the output from GnuPG. 163;; (such as Mailcrypt, and PGG) discard the output from GnuPG.
@@ -903,7 +909,8 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
903 909
904(defun mml2015-epg-signature-to-string (signature) 910(defun mml2015-epg-signature-to-string (signature)
905 (concat (epg-signature-to-string signature) 911 (concat (epg-signature-to-string signature)
906 (mml2015-epg-key-image-to-string (epg-signature-key-id signature)))) 912 (when mml2015-display-key-image
913 (mml2015-epg-key-image-to-string (epg-signature-key-id signature)))))
907 914
908(defun mml2015-epg-verify-result-to-string (verify-result) 915(defun mml2015-epg-verify-result-to-string (verify-result)
909 (mapconcat #'mml2015-epg-signature-to-string verify-result "\n")) 916 (mapconcat #'mml2015-epg-signature-to-string verify-result "\n"))