From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.devel Subject: Re: Gnus + GPG integration broken after revision 102412. Date: Wed, 22 Dec 2010 14:21:45 +0900 Message-ID: References: <868vzkbz8n.fsf@chateau.d.if> <86ei9bmlkm.fsf@chateau.d.if> <86hbe679gs.fsf@chateau.d.if> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1292995068 13651 80.91.229.12 (22 Dec 2010 05:17:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2010 05:17:48 +0000 (UTC) Cc: Daniel Dehennin , emacs-devel@gnu.org To: wahjava.ml@gmail.com (Ashish SHUKLA) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 22 06:17:43 2010 Return-path: Envelope-to: ged-emacs-devel@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 1PVH55-0002oo-8T for ged-emacs-devel@m.gmane.org; Wed, 22 Dec 2010 06:17:43 +0100 Original-Received: from localhost ([127.0.0.1]:46070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVH4b-0003Uz-9u for ged-emacs-devel@m.gmane.org; Wed, 22 Dec 2010 00:17:13 -0500 Original-Received: from [140.186.70.92] (port=51790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVH4W-0003Uu-9P for emacs-devel@gnu.org; Wed, 22 Dec 2010 00:17:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVH4V-00083f-5C for emacs-devel@gnu.org; Wed, 22 Dec 2010 00:17:08 -0500 Original-Received: from ivory4.scn-net.ne.jp ([219.117.176.192]:46201) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PVH4U-00083T-Kj for emacs-devel@gnu.org; Wed, 22 Dec 2010 00:17:07 -0500 Original-Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Wed, 22 Dec 2010 14:17:00 +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 oBM5GxEj027775; Wed, 22 Dec 2010 14:17:00 +0900 In-Reply-To: <86hbe679gs.fsf@chateau.d.if> (Ashish SHUKLA's message of "Wed, 22 Dec 2010 09:19:39 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133889 Archived-At: --=-=-= wahjava.ml@gmail.com (Ashish SHUKLA) writes: >> It looks strange that mml2015 passes the expired key to gpg, since >> `mml2015-epg-sign' is expected to reject such a key through >> `mml2015-epg-find-usable-key'. > >> Do you see 1F2F8410762E5E74 key with: > >> (mml2015-epg-find-usable-key >> (epg-list-keys (epg-make-context 'OpenPGP) "1F2F8410762E5E74" t) >> 'sign) > > Yes, I see that key. And, please note that it's not expired, it's revoked. Aha, then it's indeed a bug of mml2015-epg-*. Please try the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=mml2015-revoked.patch === modified file 'lisp/gnus/mml2015.el' --- lisp/gnus/mml2015.el 2010-11-17 22:15:24 +0000 +++ lisp/gnus/mml2015.el 2010-12-22 05:16:41 +0000 @@ -957,7 +957,7 @@ (mapcar (lambda (signer) (setq signer-key (mml2015-epg-find-usable-key - (epg-list-keys context signer t) + (epg-list-keys context signer) 'sign)) (unless (or signer-key (y-or-n-p @@ -1068,7 +1068,7 @@ (mapcar (lambda (signer) (setq signer-key (mml2015-epg-find-usable-key - (epg-list-keys context signer t) + (epg-list-keys context signer) 'sign)) (unless (or signer-key (y-or-n-p --=-=-= Since I'm personally not confident if the fix is the right way, the actual fix will be done after asking the gpg list. Regards, -- Daiki Ueno --=-=-=--