From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74107 Path: news.gmane.org!not-for-mail From: Daniel Dehennin Newsgroups: gmane.emacs.gnus.general Subject: mml2015-epg-sign does not use From header. Date: Tue, 16 Nov 2010 00:13:38 +0100 Message-ID: <87vd3ymb8d.fsf@hati.baby-gnu.org> References: <87pqu6uqr7.fsf@hati.baby-gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1289862831 7458 80.91.229.12 (15 Nov 2010 23:13:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2010 23:13:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22472@lists.math.uh.edu Tue Nov 16 00:13:48 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PI8F9-0007LT-54 for ding-account@gmane.org; Tue, 16 Nov 2010 00:13:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PI8F6-0006LX-Rw; Mon, 15 Nov 2010 17:13:44 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PI8F5-0006LH-Jc for ding@lists.math.uh.edu; Mon, 15 Nov 2010 17:13:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PI8F4-0000Zg-CB for ding@lists.math.uh.edu; Mon, 15 Nov 2010 17:13:43 -0600 Original-Received: from zion.baby-gnu.org ([82.233.222.74]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PI8F3-00041W-00 for ; Tue, 16 Nov 2010 00:13:41 +0100 Original-Received: from hati.asgardr.info ([192.168.1.2] helo=hati.baby-gnu.org) by zion.baby-gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1PI8F0-0007KT-Mp for ding@gnus.org; Tue, 16 Nov 2010 00:13:38 +0100 Organisation: Dark Church of Emacs User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74107 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable * lisp/mml2015.el (mml2015-epg-sign): New variable 'sender' is (message-options-get 'message-sender) and append it to mml2015-signers. If mm-sign-option is not 'guided, mml2015-signers and sender sign the mail. =2D-- lisp/mml2015.el | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/mml2015.el b/lisp/mml2015.el index 55ebf8c..71329f0 100644 =2D-- a/lisp/mml2015.el +++ b/lisp/mml2015.el @@ -941,6 +941,7 @@ 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)) signer-key (signers (or (message-options-get 'mml2015-epg-signers) @@ -950,8 +951,8 @@ Whether the passphrase is cached at all is controlled by (epa-select-keys context "\ Select keys for signing. If no one is selected, default secret key is used. " =2D mml2015-signers t) =2D (if mml2015-signers + (append mml2015-signers (list sender)) t) + (if (or sender mml2015-signers) (delq nil (mapcar (lambda (signer) @@ -965,7 +966,7 @@ If no one is selected, default secret key is used. " signer))) (error "No secret key for %s" signer)) signer-key) =2D mml2015-signers))))))) + (append mml2015-signers (list sender))))))))) signature micalg) (epg-context-set-armor context t) (epg-context-set-textmode context t) =2D-=20 1.7.2.3 =2D-=20 Daniel Dehennin R=C3=A9cup=C3=A9rer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEAREKAAYFAkzhvqIACgkQb97L6l6P4Fv3ygCfVuy9fv2PLCjune04J3GBpNWa TMwAnAmVoWkT5XsK9Q4nF35jCVSjB502 =v7mN -----END PGP SIGNATURE----- --=-=-=--