Gnus development mailing list
 help / color / mirror / Atom feed
* Difficulties using EasyPG in gnus
@ 2006-07-03 10:37 Elias Oltmanns
  2006-07-03 11:01 ` Elias Oltmanns
  2006-07-04  5:28 ` Daiki Ueno
  0 siblings, 2 replies; 4+ messages in thread
From: Elias Oltmanns @ 2006-07-03 10:37 UTC (permalink / raw)


Hi all, hi Daiki Ueno in particular,

as stated in the subject line I have some difficulties to get EasyPG
and gnus working together. Specifically, the problem I encounter is
the following:

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.

Additionally, I noticed that epg-user-id-alist only contains this very
first identity, so I'm wondering how to make epg aware of my other
private keys and use them appropriately.

Kind regards,

Elias




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Difficulties using EasyPG in gnus
  2006-07-03 10:37 Difficulties using EasyPG in gnus Elias Oltmanns
@ 2006-07-03 11:01 ` Elias Oltmanns
  2006-07-04  5:28 ` Daiki Ueno
  1 sibling, 0 replies; 4+ messages in thread
From: Elias Oltmanns @ 2006-07-03 11:01 UTC (permalink / raw)


Elias Oltmanns <oltmanns@uni-bonn.de> wrote:
> Hi all, hi Daiki Ueno in particular,
>
> as stated in the subject line I have some difficulties to get EasyPG
> and gnus working together. Specifically, the problem I encounter is
> the following:
>
> 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.
>
> Additionally, I noticed that epg-user-id-alist only contains this very
> first identity, so I'm wondering how to make epg aware of my other
> private keys and use them appropriately.

Sorry, I've forgotten to add the whole lot of supplementary
information:

No Gnus v0.6 + EasyPG 0.0.3
In my emacs startup files:
(require 'epa-setup)
...
(setq pgg-scheme 'epg)
(require pgg)
...

Of course, pgg-epg.elc is in the load path.

Kind regards,

Elias




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Difficulties using EasyPG in gnus
  2006-07-03 10:37 Difficulties using EasyPG in gnus Elias Oltmanns
  2006-07-03 11:01 ` Elias Oltmanns
@ 2006-07-04  5:28 ` Daiki Ueno
  2006-07-05 14:39   ` Elias Oltmanns
  1 sibling, 1 reply; 4+ messages in thread
From: Daiki Ueno @ 2006-07-04  5:28 UTC (permalink / raw)
  Cc: ding

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Difficulties using EasyPG in gnus
  2006-07-04  5:28 ` Daiki Ueno
@ 2006-07-05 14:39   ` Elias Oltmanns
  0 siblings, 0 replies; 4+ messages in thread
From: Elias Oltmanns @ 2006-07-05 14:39 UTC (permalink / raw)


Daiki Ueno <ueno@unixuser.org> wrote:
> 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.

Thanks, that worked.

Regards,

Elias




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-05 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-03 10:37 Difficulties using EasyPG in gnus Elias Oltmanns
2006-07-03 11:01 ` Elias Oltmanns
2006-07-04  5:28 ` Daiki Ueno
2006-07-05 14:39   ` Elias Oltmanns

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).