Using gpg with emacs mu4e and mbsync

Werner Koch wk at gnupg.org
Fri May 15 10:10:04 CEST 2026


> gpg -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg

--for-your-eyes-only does nothin but setting "_CONSOLE" as embedded
filename - it is a useless option and is a PGP 2 legacy.

Do not use --no-tty but use

  gpg -v --batch -d -o -  ~/.authinfo.gpg

assuming that you want to see the output on stdout (it is actually the
default with -d but better better make it explicit).

> For this, I put a 'pinentry loopback' in the conf file of gpg (config

Don't.  Put --pinentry-mode=loopback on the command line.  Otherwiese
you break other use cases of gpg.

gpg.conf:
> use-agent

That is a no-op for many many years.

> pinentry-mode loopback

see above.

> gpg-agent.conf:
>
> ```
> pinentry-program /usr/bin/pinentry-curses
> allow-emacs-pinentry
> allow-loopback-pinentry

okay.   There is also an emacs pinentry but I am not aware of the
current state of things.  I use Emacs on X with the GTK pinentry


Salam-Shalom,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20260515/9c839fbf/attachment.sig>


More information about the Gnupg-users mailing list