[PATCH 0/2] Prompting for the GPG password within Emacs

Tomi Ollila tomi.ollila at iki.fi
Sat Jul 13 01:37:03 PDT 2013


On Wed, Jul 10 2013, Peter Feigl <craven at gmx.net> 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


More information about the notmuch mailing list