From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63451 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: Difficulties using EasyPG in gnus Date: Tue, 04 Jul 2006 14:28:51 +0900 Message-ID: References: <873bdjrn22.fsf@denkblock.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Tue_Jul__4_14:28:50_2006-1" X-Trace: sea.gmane.org 1151991308 13305 80.91.229.2 (4 Jul 2006 05:35:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 05:35:08 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11978@lists.math.uh.edu Tue Jul 04 07:35:07 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FxdYt-0005CK-PB for ding-account@gmane.org; Tue, 04 Jul 2006 07:35:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FxdYN-00036s-00; Tue, 04 Jul 2006 00:34:32 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FxdT8-00036m-00 for ding@lists.math.uh.edu; Tue, 04 Jul 2006 00:29:06 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FxdT5-0003wc-Iy for ding@lists.math.uh.edu; Tue, 04 Jul 2006 00:29:06 -0500 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69] helo=well-done.deisui.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FxdT4-0007RM-00 for ; Tue, 04 Jul 2006 07:29:02 +0200 Original-Received: from [150.82.173.221] (helo=well-done.deisui.org) by well-done.deisui.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.62) (envelope-from ) id 1FxdQz-0005LX-Cb; Tue, 04 Jul 2006 14:26:53 +0900 Original-To: Elias Oltmanns X-Attribution: DU In-Reply-To: <873bdjrn22.fsf@denkblock.local> (Elias Oltmanns's message of "Mon, 03 Jul 2006 12:37:57 +0200") User-Agent: T-gnus/6.17.2 (based on No Gnus v0.2) EMIKO/1.14.1 (Choanoflagellata) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 EasyPG/0.0.3 MULE XEmacs/21.4 (patch 17) (Jumbo Shrimp) (i686-pc-linux) X-Spam-Score: -1.9 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63451 Archived-At: --Multipart_Tue_Jul__4_14:28:50_2006-1 Content-Type: text/plain; charset=US-ASCII Hi, >>>>> In <873bdjrn22.fsf@denkblock.local> >>>>> Elias Oltmanns 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. --Multipart_Tue_Jul__4_14:28:50_2006-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="pgg-epg.el.diff" Content-Transfer-Encoding: 7bit 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) --Multipart_Tue_Jul__4_14:28:50_2006-1 Content-Type: text/plain; charset=US-ASCII Regards, -- Daiki Ueno --Multipart_Tue_Jul__4_14:28:50_2006-1--