Gnus development mailing list
 help / color / mirror / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
Cc: ding@gnus.org
Subject: Re: Difficulties using EasyPG in gnus
Date: Tue, 04 Jul 2006 14:28:51 +0900	[thread overview]
Message-ID: <a5ed3717-c241-4adf-99d0-25b2603c6173@well-done.deisui.org> (raw)
In-Reply-To: <873bdjrn22.fsf@denkblock.local> (Elias Oltmanns's message of "Mon, 03 Jul 2006 12:37:57 +0200")

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

Hi,

>>>>> In <873bdjrn22.fsf@denkblock.local> 
>>>>>	Elias Oltmanns <oltmanns@uni-bonn.de> wrote:
> Since I use multiple email addresses, I added the following to my
> message-send-hook:
>   (setq pgg-default-user-id (message-field-value "From"))

> With EasyPG, however, pgg-default-user-id doesn't seem to have any
> effect at all. On the contrary, it seems that always the first
> private key available in the key ring is chosen.

This is a bug of pgg-epg.el.  I fixed it as follows.


[-- Attachment #2: pgg-epg.el.diff --]
[-- Type: application/octet-stream, Size: 692 bytes --]

Index: pgg-epg.el
===================================================================
RCS file: /cvs/root/epg/pgg-epg.el,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- pgg-epg.el	1 May 2006 03:42:56 -0000	1.22
+++ pgg-epg.el	4 Jul 2006 02:49:44 -0000	1.23
@@ -152,6 +152,9 @@
     (epg-context-set-armor context t)
     (epg-context-set-textmode context pgg-text-mode)
     (epg-context-set-passphrase-callback context #'pgg-epg-passphrase-callback)
+    (epg-context-set-signers
+     context
+     (list (car (epg-list-keys context pgg-default-user-id t))))
     (save-excursion
       (set-buffer (get-buffer-create pgg-output-buffer))
       (erase-buffer)

[-- Attachment #3: Type: text/plain, Size: 25 bytes --]


Regards,
-- 
Daiki Ueno

  parent reply	other threads:[~2006-07-04  5:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-03 10:37 Elias Oltmanns
2006-07-03 11:01 ` Elias Oltmanns
2006-07-04  5:28 ` Daiki Ueno [this message]
2006-07-05 14:39   ` Elias Oltmanns

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=a5ed3717-c241-4adf-99d0-25b2603c6173@well-done.deisui.org \
    --to=ueno@unixuser.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).