aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno2010-07-21 14:56:18 +0900
committerDaiki Ueno2010-07-21 14:56:18 +0900
commita0abd4d6329f67b698180834e75335fe7eca52c4 (patch)
treed92c64f1f17f71cdcf8945ab604f84f00f5ec349
parent10e739941705b705bfd1e336b538a3a45aaa4fff (diff)
downloademacs-a0abd4d6329f67b698180834e75335fe7eca52c4.tar.gz
emacs-a0abd4d6329f67b698180834e75335fe7eca52c4.zip
Fix multiple-recipient handling of Gnus S/MIME.
* mml.el (mml-parse-1): Collect "certfile" attributes in "<#secure>" tag (Bug#6654).
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mml.el11
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 4abcd9824e2..2a2011e8843 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12010-07-21 Daiki Ueno <ueno@unixuser.org>
2
3 * mml.el (mml-parse-1): Collect "certfile" attributes in "<#secure>"
4 tag (Bug#6654).
5
12010-07-20 Katsumi Yamaoka <yamaoka@jpl.org> 62010-07-20 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * gnus-sum.el (gnus-summary-bookmark-make-record): Bookmark position in 8 * gnus-sum.el (gnus-summary-bookmark-make-record): Bookmark position in
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 170bc69fe3a..2ebd7996d77 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -228,7 +228,10 @@ part. This is for the internal use, you should never modify the value.")
228 (let* (secure-mode 228 (let* (secure-mode
229 (taginfo (mml-read-tag)) 229 (taginfo (mml-read-tag))
230 (keyfile (cdr (assq 'keyfile taginfo))) 230 (keyfile (cdr (assq 'keyfile taginfo)))
231 (certfile (cdr (assq 'certfile taginfo))) 231 (certfiles (delq nil (mapcar (lambda (tag)
232 (if (eq (car-safe tag) 'certfile)
233 (cdr tag)))
234 taginfo)))
232 (recipients (cdr (assq 'recipients taginfo))) 235 (recipients (cdr (assq 'recipients taginfo)))
233 (sender (cdr (assq 'sender taginfo))) 236 (sender (cdr (assq 'sender taginfo)))
234 (location (cdr (assq 'tag-location taginfo))) 237 (location (cdr (assq 'tag-location taginfo)))
@@ -254,8 +257,10 @@ part. This is for the internal use, you should never modify the value.")
254 ,@tags 257 ,@tags
255 ,(if keyfile "keyfile") 258 ,(if keyfile "keyfile")
256 ,keyfile 259 ,keyfile
257 ,(if certfile "certfile") 260 ,@(apply #'append
258 ,certfile 261 (mapcar (lambda (certfile)
262 (list "certfile" certfile))
263 certfiles))
259 ,(if recipients "recipients") 264 ,(if recipients "recipients")
260 ,recipients 265 ,recipients
261 ,(if sender "sender") 266 ,(if sender "sender")