From: craven Date: Mon, 8 Jul 2013 06:45:36 +0000 (+0200) Subject: Re: [PATCH 0/2] Prompting for the GPG password within Emacs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ffe02b7b23bfbd22fb911ef8e1d86b316f8a5c4d;p=notmuch-archives.git Re: [PATCH 0/2] Prompting for the GPG password within Emacs --- diff --git a/2d/0dc757e2ff23c2b3b2f18726d3c8521d9d448a b/2d/0dc757e2ff23c2b3b2f18726d3c8521d9d448a new file mode 100644 index 000000000..f7949eb81 --- /dev/null +++ b/2d/0dc757e2ff23c2b3b2f18726d3c8521d9d448a @@ -0,0 +1,91 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 74863431FAF + for ; Sun, 7 Jul 2013 23:45:50 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.001 +X-Spam-Level: +X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 + tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id STg2LSXJc5og for ; + Sun, 7 Jul 2013 23:45:43 -0700 (PDT) +Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) + by olra.theworths.org (Postfix) with ESMTP id B5A80431FAE + for ; Sun, 7 Jul 2013 23:45:42 -0700 (PDT) +Received: from mail.nexoid.at ([178.79.130.240]) by mail.gmx.com (mrgmx101) + with ESMTPSA (Nemesis) id 0Lxt3Q-1UAqJB19SG-015MV1; + Mon, 08 Jul 2013 08:45:37 +0200 +Received: from nexoid (localhost [127.0.0.1]) + by mail.nexoid.at (Postfix) with ESMTP id 8A3BEE01D; + Mon, 8 Jul 2013 08:45:36 +0200 (CEST) +From: +To: Daniel Kahn Gillmor , + Neil Roberts +Subject: Re: [PATCH 0/2] Prompting for the GPG password within Emacs +In-Reply-To: <51D9F4E6.1030504@fifthhorseman.net> +References: <1373195672-9338-1-git-send-email-neil@linux.intel.com> + <51D9F4E6.1030504@fifthhorseman.net> +User-Agent: Notmuch/0.15.2+182~gd0bd88f (http://notmuchmail.org) + Emacs/24.3.50.1 (i686-pc-linux-gnu) +Date: Mon, 08 Jul 2013 08:45:36 +0200 +Message-ID: <87wqp135yn.fsf@nexoid.at> +MIME-Version: 1.0 +Content-Type: text/plain +X-Provags-ID: V03:K0:IVhD9GfVeOu35ZQSUzLvA+07yWQXir0E5WvR3Ma5BRagVCSKEG/ + X6Aa44gjyAzlq7rE6GVhvG1ErxsnI5M0Oo+qut7Heniad7FsxmbDBbxqLqsg3HEVUNQ7HAD + FG511EG+SdJlCSJVOQ13TEtsksPfBBeTeUp7DXvkRzyLP9oqxPqBtm5ej0lyma/y8V7YD1w + y4QFp8U9Sv33AM/FFeODA== +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 08 Jul 2013 06:45:50 -0000 + +>> I've recently started using notmuch to try and read PGP-encrypted +>> email. However the trouble is I normally access my email remotely via +>> SSH and it's very difficult to get gpg-agent to work in those +>> circumstances. I've therefore made some patches to try and get Emacs +>> to prompt for the password. They are based on the way mml communicates +>> with gpg by having two pipes so that notmuch can notify Emacs that it +>> needs a password and it will reply on the other. + +This is what I have tried too :) My setup is as follows: +I run emacs in non-window mode (-nw) on a server machine under tmux (a +terminal multiplexer, like screen). I connect to this via SSH from +different machines (maybe even across multiple SSH logins). + +> I strongly encourage you to get the gpg-agent model sorted out for your +> use case, instead of moving in the direction of this patch series. +> Can you describe what you've tried in terms of using gpg-agent? where +> are your secret keys stored? are they on your local machine, or on the +> remote machine? + +I have the secret keys on the local machine and the remote machine. +gpg-agent runs fine on the remote machine, however I have found no way +to make it consistently prompt for the password on the right SSH +connection (I don't believe there even is a way to achieve this, as +there may be multiple, or I may leave several connections open and move +between machines). The only thing that mostly works is using the remote +gpg-agent to prompt on the terminal, which messes up the display +temporarily. + +I'd be really happy about any ideas how to solve this :) + +Greetings, + +Peter