[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102710: Make GPG-sign-by-sender code
From: |
Daiki Ueno |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102710: Make GPG-sign-by-sender code robuster. |
Date: |
Mon, 27 Dec 2010 18:46:02 +0900 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102710
committer: Daiki Ueno <address@hidden>
branch nick: trunk
timestamp: Mon 2010-12-27 18:46:02 +0900
message:
Make GPG-sign-by-sender code robuster.
* mml2015.el (mml2015-epg-sign, mml2015-epg-encrypt): Take care the
case when sender is not given.
modified:
lisp/gnus/ChangeLog
lisp/gnus/mml2015.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog 2010-12-23 22:24:24 +0000
+++ b/lisp/gnus/ChangeLog 2010-12-27 09:46:02 +0000
@@ -1,3 +1,8 @@
+2010-12-27 Daiki Ueno <address@hidden>
+
+ * mml2015.el (mml2015-epg-sign, mml2015-epg-encrypt): Take care the
+ case when sender is not given.
+
2010-12-23 Julien Danjou <address@hidden>
* gnus-gravatar.el (gnus-gravatar-transform-address): Set
=== modified file 'lisp/gnus/mml2015.el'
--- a/lisp/gnus/mml2015.el 2010-11-17 22:15:24 +0000
+++ b/lisp/gnus/mml2015.el 2010-12-27 09:46:02 +0000
@@ -951,7 +951,11 @@
(epa-select-keys context "\
Select keys for signing.
If no one is selected, default secret key is used. "
- (cons sender mml2015-signers) t)
+ (if sender
+ (cons (concat "<" sender ">")
+ mml2015-signers)
+ mml2015-signers)
+ t)
(if (or sender mml2015-signers)
(delq nil
(mapcar
@@ -966,7 +970,10 @@
signer)))
(error "No secret key for %s" signer))
signer-key)
- (cons sender mml2015-signers))))))))
+ (if sender
+ (cons (concat "<" sender ">")
+ mml2015-signers)
+ mml2015-signers))))))))
signature micalg)
(epg-context-set-armor context t)
(epg-context-set-textmode context t)
@@ -1029,7 +1036,10 @@
(when mml2015-encrypt-to-self
(unless (or sender mml2015-signers)
(error "Message sender and mml2015-signers not set"))
- (setq recipients (nconc recipients (cons sender mml2015-signers))))
+ (setq recipients (nconc recipients (if sender
+ (cons (concat "<" sender ">")
+ mml2015-signers)
+ mml2015-signers))))
(if (eq mm-encrypt-option 'guided)
(setq recipients
(epa-select-keys context "\
@@ -1062,7 +1072,11 @@
(epa-select-keys context "\
Select keys for signing.
If no one is selected, default secret key is used. "
- (cons sender mml2015-signers) t)
+ (if sender
+ (cons (concat "<" sender ">")
+ mml2015-signers)
+ mml2015-signers)
+ t)
(if (or sender mml2015-signers)
(delq nil
(mapcar
@@ -1077,7 +1091,9 @@
signer)))
(error "No secret key for %s" signer))
signer-key)
- (cons sender mml2015-signers))))))))
+ (if sender
+ (cons (concat "<" sender ">") mml2015-signers)
+ mml2015-signers))))))))
(epg-context-set-signers context signers))
(epg-context-set-armor context t)
(epg-context-set-textmode context t)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102710: Make GPG-sign-by-sender code robuster.,
Daiki Ueno <=