From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` Date: Fri, 07 Jan 2011 18:34:59 +0900 Message-ID: References: <874o9lehkl.fsf@gismo.pca.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1294394056 28234 80.91.229.12 (7 Jan 2011 09:54:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 09:54:16 +0000 (UTC) Cc: 7797-done@debbugs.gnu.org, rfrancoise@debian.org To: Luca Capello Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 07 10:54:11 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb91N-00008e-RN for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 10:54:10 +0100 Original-Received: from localhost ([127.0.0.1]:51494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pb91N-0006w5-BH for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 04:54:09 -0500 Original-Received: from [140.186.70.92] (port=40307 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pb91C-0006tn-Oq for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 04:53:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pb91B-0002ka-90 for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 04:53:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pb91B-0002kW-60 for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 04:53:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pb8c6-0003K2-6W; Fri, 07 Jan 2011 04:28:02 -0500 Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 07 Jan 2011 09:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Mail-Followup-To: 7797@debbugs.gnu.org, ueno@unixuser.org Original-Received: via spool by 7797-done@debbugs.gnu.org id=D7797.129439247912759 (code D ref 7797); Fri, 07 Jan 2011 09:28:01 +0000 Original-Received: (at 7797-done) by debbugs.gnu.org; 7 Jan 2011 09:27:59 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb8c2-0003Jk-EY for submit@debbugs.gnu.org; Fri, 07 Jan 2011 04:27:58 -0500 Original-Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Pb8bz-0003JU-6S for 7797-done@debbugs.gnu.org; Fri, 07 Jan 2011 04:27:56 -0500 Original-Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 7 Jan 2011 18:35:08 +0900 Original-Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p079Z7wN020016; Fri, 7 Jan 2011 18:35:08 +0900 In-Reply-To: (Daiki Ueno's message of "Fri, 07 Jan 2011 11:04:03 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Jan 2011 04:28:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43176 Archived-At: Daiki Ueno writes: > Luca Capello writes: > >> gpg: skipped "8D3867D89DDB992B": unusable secret key >> gpg: signing failed: unusable secret key > > You may want to try the patch I posted last month: > http://lists.gnu.org/archive/html/emacs-devel/2010-12/msg00624.html > > Although this patch is a workaround, I'm going to push it for the time > being. OK, I fixed this in a better way (r102771). My test case is: $ mv .gnupg .gnupg.bak $ gpg --gen-key # create a key foo@example.com $ gpg --gen-key # create a key bar@example.com $ gpg --gen-key # create a key baz@example.com $ gpg --edit-key foo@example.com # revoke foo@example.com $ gpg --delete-secret-key bar@example.com (mml2015-epg-find-usable-secret-key (epg-make-context 'OpenPGP) "foo@example.com" 'sign) => nil (mml2015-epg-find-usable-secret-key (epg-make-context 'OpenPGP) "bar@example.com" 'sign) => nil (mml2015-epg-find-usable-secret-key (epg-make-context 'OpenPGP) "baz@example.com" 'sign) => (epg-key . ...) Regards, -- Daiki Ueno