From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54751 Path: main.gmane.org!not-for-mail From: "Satyaki Das" Newsgroups: gmane.emacs.gnus.general Subject: Re: PGG with multiple GnuPG keys Date: Sun, 09 Nov 2003 18:20:54 -0800 Sender: ding-owner@lists.math.uh.edu Message-ID: <23315.1068430854@chicory.stanford.edu> References: <13408.1068408992@chicory.stanford.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1068430916 18485 80.91.224.253 (10 Nov 2003 02:21:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2003 02:21:56 +0000 (UTC) Cc: ding Original-X-From: ding-owner+M3292@lists.math.uh.edu Mon Nov 10 03:21:53 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJ1gf-0001Rl-00 for ; Mon, 10 Nov 2003 03:21:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AJ1g6-0007p9-00; Sun, 09 Nov 2003 20:21:18 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AJ1fz-0007p3-00 for ding@lists.math.uh.edu; Sun, 09 Nov 2003 20:21:11 -0600 Original-Received: from smtp2.Stanford.EDU (smtp2.Stanford.EDU [171.64.14.116]) by justine.libertine.org (Postfix) with ESMTP id A74713A004C for ; Sun, 9 Nov 2003 20:21:09 -0600 (CST) Original-Received: from cs3.Stanford.EDU (cs3.Stanford.EDU [172.24.64.17]) by smtp2.Stanford.EDU (8.12.10/8.12.10) with ESMTP id hAA2L5PO017226 for ; Sun, 9 Nov 2003 18:21:06 -0800 (PST) Original-Received: from mail by cs3.Stanford.EDU with spam-scanned (Exim 4.24) id 1AJ1fq-0007eX-90 for ding@gnus.org; Sun, 09 Nov 2003 18:21:05 -0800 Original-Received: from dnab4046e4.stanford.edu ([171.64.70.228] helo=troodon.stanford.edu) by cs3.Stanford.EDU with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AJ1fl-0007eJ-8W; Sun, 09 Nov 2003 18:20:57 -0800 Original-Received: from [127.0.0.1] (helo=chicory.stanford.edu) by troodon.stanford.edu with esmtp (Exim 4.12) id 1AJ1fi-000644-00; Sun, 09 Nov 2003 18:20:54 -0800 Original-To: Simon Josefsson In-Reply-To: X-Mailer: MH-E 7.4.2+cvs; nmh 1.1; GNU Emacs 21.3.50.2 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54751 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54751 Simon Josefsson writes: > The problem is that pgg-gpg.el doesn't know, during > decryption, that 7C06BDD9 is the same key as the key that eventually > gets used by the OpenPGP implementation when you request the "satyaki" > key when signing a message. So it can't use the cached passphrase for > "satyaki" that it knows for the 7C06BDD9 key. > > I think the best solution would be to change `pgg-gpg-sign-region' to > parse gpg's output (GOOD_PASSPHRASE) and find out what the key id was, > and then cache your passphrase under that hex key id (and under the > "satyaki" name). Then the cache will work if you receive a message > for the 7C06BDD9 key id. I have installed the patch below. Does it > work? Yes, it does. It caches both "satyaki" and "7C06BDD9" and that is the right way. > > So I have now customized pgg-default-user-id to 7C06BDD9 and that > > avoids the repeated queries for my passphrase. Is this the right > > solution? > > It is "right" in the sense that it may work for you. My goal is that > only very few people will need to configure PGG; the default behaviour > should be Right. Yes, that is a worthy goal. I have removed the customization for pgg-default-user-id now, thanks! Satyaki