From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62387 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: Small patch to enable use of gpg-agent with pgg Date: Thu, 23 Mar 2006 13:52:32 +0100 Message-ID: References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <2cd46e7f0510061541w73bb6a92wb6d22829b6e804ae@mail.gmail.com> <20051007100014.GB4850@kenny.sha-bang.local> <2cd46e7f0510071106k3d4d3e6agc36f16a37d8b6bc6@mail.gmail.com> <20051007214952.GA30235@kenny.sha-bang.local> <20051008103627.GA1218@kenny.sha-bang.local> <2cd46e7f0510081131h14e2bbeaga7f1a33ebd6347c8@mail.gmail.com> <2cd46e7f0510101415t76825ea7u9749fe23da54ce@mail.gmail.com> <2cd46e7f0510121647x3c51fb65pc883ed61f4e864ab@mail.gmail.com> <2cd46e7f0510200708x4640d1c2t50743cf439e52dd4@mail.gmail.com> <87pskfq361.fsf@latte.josefsson.org> <877j6mg2af.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143118401 8594 80.91.229.2 (23 Mar 2006 12:53:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2006 12:53:21 +0000 (UTC) Cc: Simon Josefsson , ding@gnus.org, emacs-devel@gnu.org Original-X-From: ding-owner+m10914@lists.math.uh.edu Thu Mar 23 13:53:11 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 1FMPJG-0002hu-Vg for ding-account@gmane.org; Thu, 23 Mar 2006 13:53:03 +0100 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 1FMPJ9-0002yL-00; Thu, 23 Mar 2006 06:52:55 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FMPIu-0002wn-00 for ding@lists.math.uh.edu; Thu, 23 Mar 2006 06:52:40 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FMPIs-0004QQ-4y for ding@lists.math.uh.edu; Thu, 23 Mar 2006 06:52:39 -0600 Original-Received: from ns.km1136.keymachine.de ([62.141.58.119] helo=km1136.keymachine.de) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FMPIr-0005GS-00 for ; Thu, 23 Mar 2006 13:52:37 +0100 Original-Received: from kenny.sha-bang.de (xdsln052.osnanet.de [212.95.113.52]) (authenticated bits=0) by km1136.keymachine.de (8.12.11/8.12.10) with ESMTP id k2NCqU4v030044; Thu, 23 Mar 2006 13:52:30 +0100 Original-Received: from wilde by kenny.sha-bang.de with local (Kenny MUA v.0409034.42) ID 1FMPIm-0001iD-H7; Thu, 23 Mar 2006 13:52:32 +0100 Original-To: Daiki Ueno In-Reply-To: (Daiki Ueno's message of "Thu, 23 Mar 2006 19:40:08 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62387 gmane.emacs.devel:52004 Archived-At: Daiki Ueno wrote: >>>>>> In >>>>>> Daiki Ueno wrote: >> > Right now, pgg assume that gpg will need a passphrase so it asks the >> > user for one. It may be better if pgg postpone the passphrase query >> > until gpg tell pgg that it needs a passphrase. Then it is only >> > queried for when it is needed. This should be more reliable, but >> > slightly more complicated to implement (asynchronous code). > >> Anyway, I'll try to implement this. Hello Daiki, In a first, very quick test your code doesn't work for me (the agent asks for the passphrase but decryption fails. But after having a look at the status output from --status-fd with --use-agent and --no-use-agent I'm starting to doubt that your idea can work at all. The status output is in both cases identical... :-( Hopefully I'm missing something. I'm using gpg (GnuPG) 1.4.2.2 and gpg-agent (GnuPG) 1.9.20 cheers sascha -- Sascha Wilde : VI is to EMACS as masturbation is to making love: : effective and always available but probably not your : first choice...