]> git.notmuchmail.org Git - notmuch/commit
emacs: Invoke gpg with --batch and --no-tty
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 9 Feb 2019 17:34:37 +0000 (12:34 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 10 Feb 2019 13:47:12 +0000 (09:47 -0400)
commit3c752b855f900f5251df9997514b4d27d9f38e83
tree681070cfdaae2fa8b370f20338fa11766ef0009b
parent32fb3c420a408ccfd20301f0c527c4259bf721cc
emacs: Invoke gpg with --batch and --no-tty

When invoking gpg as a backgrounded tool, it's important to let gpg
know that it is backgrounded, to avoid spurious prompts or other
breakage.

In particular, https://bugs.debian.org/913614 was a regression in
GnuPG which causes problems when importing keys without a terminal,
but gpg expects one.

Ensuring that notmuch-emacs always invokes gpg as a background process
should avoid some of these unnecessary failure.

Thanks to Justus Winter for finding this problem.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
emacs/notmuch-crypto.el