From: Daiki Ueno <ueno@unixuser.org>
To: Daniel Dehennin <daniel.dehennin@baby-gnu.org>
Cc: ding@gnus.org
Subject: Re: [PATCH] mml2015-epg-sign does not use from header.
Date: Mon, 02 Mar 2009 02:13:12 +0900 [thread overview]
Message-ID: <8fbade90-fdaa-4dc9-8661-16fedbd91c9a@broken.deisui.org> (raw)
In-Reply-To: <87wscf3al8.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Wed, 28 Jan 2009 12:59:31 +0100")
>>>>> In <87wscf3al8.fsf@hati.baby-gnu.org>
>>>>> Daniel Dehennin <daniel.dehennin@baby-gnu.org> wrote:
> * lisp/mml2015.el (mml2015-epg-sign): New variable 'sender'
> is (message-options-get 'message-sender). Use it in place of
> mml2015-signers.
Sorry for late response, and thanks for splitting your patch.
> --- lisp/mml2015.el 2009-01-22 07:02:15 +0000
> +++ lisp/mml2015.el 2009-01-27 18:44:28 +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)
Unfortunatelly, this patch looks unacceptable since it breaks the
compatibility of the user setting. Although I agree with that the
typical user would expect his From: line be used as the keygrip of the
signing key, existing users (including I) may have a setting of
mml2015-signers.
Why not adjust mml2015-signers to include the From: address instead of
entirely overwriting it? Like this:
(defun mml2015-epg-uniquify-keys (keys)
(let (key-id key-ids)
(delq nil (mapcar
(lambda (key)
(setq key-id (car (epg-key-sub-key-list key)))
(unless (member key-id key-ids)
(setq key-ids (cons key-id key-ids))
key))
keys))))
In mml2015-epg-sign:
- mml2015-signers)))))))
+ (append mml2015-signers (list sender)))))))))
...
+ (setq signers (mml2015-epg-uniquify-keys signers))
Regards,
--
Daiki Ueno
next prev parent reply other threads:[~2009-03-01 17:13 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-25 20:11 mml2015-epg-sign do " Daniel Dehennin
2009-01-25 20:37 ` Reiner Steib
2009-01-25 20:43 ` Daniel Dehennin
2009-01-26 1:34 ` Daiki Ueno
2009-02-28 11:25 ` Reiner Steib
2009-03-01 3:27 ` Daiki Ueno
2009-01-28 11:57 ` Daniel Dehennin
2009-01-28 11:59 ` [PATCH] mml2015-epg-sign does " Daniel Dehennin
2009-03-01 17:13 ` Daiki Ueno [this message]
2009-03-03 18:59 ` Daniel Dehennin
2009-04-13 20:31 ` Daniel Dehennin
2009-04-13 20:32 ` [PATCH] mml2015-epg-encrypt do not use from header to sign Daniel Dehennin
2009-01-28 12:00 ` [PATCH] Factor spliting mail addresses Daniel Dehennin
2009-04-13 20:32 ` Daniel Dehennin
2009-01-28 12:01 ` [PATCH] Cleanup selecting a key for sign and encryption Daniel Dehennin
2009-04-13 20:32 ` Daniel Dehennin
2009-01-28 12:02 ` [PATCH] Only one sender Daniel Dehennin
2009-04-13 20:32 ` Daniel Dehennin
2009-01-28 12:02 ` Daniel Dehennin
2009-04-13 20:32 ` Daniel Dehennin
2009-01-28 12:02 ` [PATCH] Factorize choosing a key Daniel Dehennin
2009-04-13 20:33 ` Daniel Dehennin
2009-01-28 12:02 ` [PATCH] mml2015-epg-choose-keys handle the verbose selection of keys Daniel Dehennin
2009-04-13 20:33 ` Daniel Dehennin
2009-01-28 12:02 ` [PATCH] Fix variable name, only one sender Daniel Dehennin
2009-01-28 12:02 ` [PATCH] Remove useless variables Daniel Dehennin
2009-04-13 20:33 ` Daniel Dehennin
2009-01-28 12:03 ` [PATCH] Permit to select a key if more than one match a mail address Daniel Dehennin
2009-04-13 20:33 ` Daniel Dehennin
2009-04-13 20:31 ` mml2015-epg-sign do not use from header Daniel Dehennin
2009-04-13 22:48 ` Daiki Ueno
2010-11-15 23:11 ` Daniel Dehennin
2010-11-15 23:13 ` mml2015-epg-sign does not use From header Daniel Dehennin
2010-11-15 23:23 ` Daniel Dehennin
2010-11-16 18:21 ` mml2015-epg-sign do not use from header Lars Magne Ingebrigtsen
2010-11-16 20:23 ` Daniel Dehennin
2010-11-16 20:27 ` Lars Magne Ingebrigtsen
2010-11-16 20:45 ` Daniel Dehennin
2010-11-17 7:34 ` Katsumi Yamaoka
2010-11-17 17:06 ` Daniel Dehennin
2010-11-17 17:13 ` Lars Magne Ingebrigtsen
2010-11-17 17:37 ` Merging ChangeLogs (was: mml2015-epg-sign do not use from header) Sven Joachim
2010-11-21 4:51 ` Merging ChangeLogs Lars Magne Ingebrigtsen
2010-11-21 7:38 ` Sven Joachim
2010-11-21 7:43 ` Lars Magne Ingebrigtsen
2010-11-21 8:12 ` Sven Joachim
2010-11-21 8:19 ` Sven Joachim
2010-11-22 19:42 ` Ted Zlatanov
2010-11-24 21:13 ` Lars Magne Ingebrigtsen
2010-11-17 18:07 ` mml2015-epg-sign do not use from header Julien Danjou
2010-11-21 4:49 ` Lars Magne Ingebrigtsen
2010-11-17 23:08 ` Daniel Dehennin
2010-11-21 4:47 ` Lars Magne Ingebrigtsen
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=8fbade90-fdaa-4dc9-8661-16fedbd91c9a@broken.deisui.org \
--to=ueno@unixuser.org \
--cc=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).