Gnus development mailing list
 help / color / mirror / Atom feed
From: Daniel Dehennin <daniel.dehennin@baby-gnu.org>
To: ding@gnus.org
Subject: [PATCH] mml2015-epg-encrypt do not use from header to sign.
Date: Wed, 28 Jan 2009 13:00:20 +0100	[thread overview]
Message-ID: <87tz7j3ajv.fsf@hati.baby-gnu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 417 bytes --]



------------------------------------------------------------
revno: 114
committer: Daniel Dehennin <daniel.dehennin@baby-gnu.org>
branch nick: gnus.mml2015
timestamp: Tue 2009-01-27 20:19:24 +0100
message:
  mml2015-epg-encrypt do not use from header to sign.
  
  * lisp/mml2015.el (mml2015-epg-encrypt): New variable 'sender'
    is (message-options-get 'message-sender). Use it in place of
    mml2015-signers.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Gnus114.patch --]
[-- Type: text/x-patch, Size: 2642 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: daniel.dehennin@baby-gnu.org-20090127191924-\
#   xrtiwg7rjz2olu7y
# target_branch: ../../gnus.head
# testament_sha1: 62dd1afb29c7b53edee25d53506df79de095c9a7
# timestamp: 2009-01-28 12:59:33 +0100
# source_branch: .
# base_revision_id: daniel.dehennin@baby-gnu.org-20090126152327-\
#   ccpvwbbxys1zto9f
# 
# Begin patch
=== modified file 'lisp/mml2015.el'
--- lisp/mml2015.el	2009-01-22 07:02:15 +0000
+++ lisp/mml2015.el	2009-01-27 19:19:24 +0000
@@ -1182,6 +1182,7 @@
   (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)
@@ -1191,8 +1192,8 @@
 		   (epa-select-keys context "\
 Select keys for signing.
 If no one is selected, default secret key is used.  "
-				    mml2015-signers t)
-		 (if mml2015-signers
+				    sender t)
+		 (if sender
 		     (delq nil
 			   (mapcar
 			    (lambda (signer)
@@ -1206,7 +1207,7 @@
 					    signer)))
 				(error "No secret key for %s" signer))
 			      signer-key)
-			    mml2015-signers)))))))
+			    (list sender))))))))
 	 signature micalg)
     (epg-context-set-armor context t)
     (epg-context-set-textmode context t)
@@ -1249,6 +1250,7 @@
   (let ((inhibit-redisplay t)
 	(context (epg-make-context))
 	(config (epg-configuration))
+	(sender (message-options-get 'message-sender))
 	(recipients (message-options-get 'mml2015-epg-recipients))
 	cipher signers
 	(boundary (mml-compute-boundary cont))
@@ -1266,9 +1268,9 @@
 					      (read-string "Recipients: ")))
 		     "[ \f\t\n\r\v,]+"))))
       (when mml2015-encrypt-to-self
-	(unless mml2015-signers
-	  (error "mml2015-signers not set"))
-	(setq recipients (nconc recipients mml2015-signers)))
+	(unless sender
+	  (error "Message sender not set"))
+	(setq recipients (nconc recipients (list sender))))
       (if mml2015-verbose
 	  (setq recipients
 		(epa-select-keys context "\
@@ -1301,8 +1303,8 @@
 		     (epa-select-keys context "\
 Select keys for signing.
 If no one is selected, default secret key is used.  "
-				      mml2015-signers t)
-		   (if mml2015-signers
+				      sender t)
+		   (if sender
 		       (delq nil
 			     (mapcar
 			      (lambda (signer)
@@ -1316,7 +1318,7 @@
 					      signer)))
 				  (error "No secret key for %s" signer))
 				signer-key)
-			      mml2015-signers)))))))
+			      (list sender))))))))
       (epg-context-set-signers context signers))
     (epg-context-set-armor context t)
     (epg-context-set-textmode context t)


             reply	other threads:[~2009-01-28 12:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-28 12:00 Daniel Dehennin [this message]
2010-08-29 22:44 ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2009-01-28 11:59 [PATCH] mml2015-epg-sign does not use from header Daniel Dehennin
2009-04-13 20:32 ` [PATCH] mml2015-epg-encrypt do not use from header to sign Daniel Dehennin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tz7j3ajv.fsf@hati.baby-gnu.org \
    --to=daniel.dehennin@baby-gnu.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).