From: Tomi Ollila Date: Sat, 13 Jul 2013 08:37:03 +0000 (+0300) Subject: Re: [PATCH 0/2] Prompting for the GPG password within Emacs X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b59ee3179a9b1dc78a96a8c5c985ce42400b339e;p=notmuch-archives.git Re: [PATCH 0/2] Prompting for the GPG password within Emacs --- diff --git a/8f/181219f11e3658c7f880a23a96902720d9fd92 b/8f/181219f11e3658c7f880a23a96902720d9fd92 new file mode 100644 index 000000000..feaae8249 --- /dev/null +++ b/8f/181219f11e3658c7f880a23a96902720d9fd92 @@ -0,0 +1,84 @@ +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 6714D431FB6 + for ; Sat, 13 Jul 2013 01:37:15 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 EZ6QC3O5zX4y for ; + Sat, 13 Jul 2013 01:37:08 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 11607431FAF + for ; Sat, 13 Jul 2013 01:37:08 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 77DDC100086; + Sat, 13 Jul 2013 11:37:03 +0300 (EEST) +From: Tomi Ollila +To: Peter Feigl , notmuch@notmuchmail.org +Subject: Re: [PATCH 0/2] Prompting for the GPG password within Emacs +In-Reply-To: <87ppuqdgdw.fsf@nexoid.at> +References: <1373195672-9338-1-git-send-email-neil@linux.intel.com> + <51D9F4E6.1030504@fifthhorseman.net> <87wqp135yn.fsf@nexoid.at> + <51DA9A8A.5070405@fifthhorseman.net> <87ip0kenoy.fsf@nexoid.at> + <877ggzeufg.fsf@nexoid.at> <87ppuqdgdw.fsf@nexoid.at> +User-Agent: Notmuch/0.15.2+193~g7350bd4 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +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: Sat, 13 Jul 2013 08:37:15 -0000 + +On Wed, Jul 10 2013, Peter Feigl wrote: + +> Just in case anyone is interested, I wrote a simple pinentry-emacs +> script, that uses emacsclient to ask inside emacs for the password. +> +> Probably not secure, but I'm the only one accessing this host. +> +> https://github.com/ecraven/pinentry-emacs +> +> Finally things seem to work reliably :) + +Hoo, using emacsclient is a pretty novel idea to work around the +"problem". + +The TERM=dumb is not the only problem with pinentry-curses: +/dev/tty is set up by emacs and it doesn't passthrough input +to the pinentry program. The orignal tty (like /dev/pts/2) emacs +is running is available in TTY environment variable but emacs would +compete with the input... + +... these are my recollections of the problems -- In one +Scientific Linux 6 system I am using has gpg2 installed -- running +`emacs foo.org.gpg` fails miserably due to these problems. I'll wait +until gpg2 comes into more widespread use and align to the methods +that prevail there... + +> Greetings, +> +> Peter + +Tomi