[arch-general] mutt and gnupg

Leonid Isaev lisaev at umail.iu.edu
Mon Dec 22 19:27:09 UTC 2014


On Sun, Dec 07, 2014 at 10:45:45AM +1300, Jason Ryan wrote:
> Yes, but you do need to move to GPGME (or at least that was the only way I
> restored that functionality).

Why? Where is it written?

> 
> Update your gpg configuration in your mutt files:
>   set crypt_use_gpgme = yes

This variable can certainly be set. However, by itself it doesn't do anything
to help mutt discover the running gpg-agent.

> Then in your shell profile file, set a couple of variables:
>   export GPG_TTY=$(tty)
>   export GPG_AGENT_INFO=$HOME/.gnupg/S.gpg-agent

This is also unnecessary. The first variable should anyway be set in the
.bashrc (or similar). The 2nd one is not needed to be exported globally.

The real solution would be for mutt to look for gpg-agent sockets. Currently,
mutt just seems to check GPG_AGENT_INFO in env and ask for a passwd if it is
not set.

It follows that the simplest workaround is to change mutt invocation as
------
$ env | grep GPG
GPG_TTY=/dev/pts/4
$ GPG_AGENT_INFO="" mutt
------

and leave muttrc alone.

Cheers,
-- 
Leonid Isaev
GPG fingerprints: DA92 034D B4A8 EC51 7EA6  20DF 9291 EE8A 043C B8C4
                  C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20141222/9e9ae669/attachment.bin>


More information about the arch-general mailing list