making mutt play nice with gpg-agent
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm testing out gpg-agent and am having some difficulty getting mutt to
cooperate (or so I think). Here's what I'm trying to do and why I'm testing
gpg-agent instead of just using mutt's caching...
I have a few macros that I use to clear sign messages which have attachments
and I'm sending to folks without proper PGP/MIME support. The macro will
simply pipe the message body to gpg and then unset the pgp sign flags in
mutt. Doing this, I then need to type the passphrase for my key, even
though I might have just typed it in mutt a minute before.
Using gpg-agent, I think I should be able to type the passphrase and have
the agent remember it so that using gpg direct from the command line (or in
a mutt macro) and using it from within mutt will both use the passphrase
from the same cache, thus saving me some typing.
In mutt I have set pgp_use_gpg_agent. I have set the gpg-agent cache
timeout to 30 seconds for my tests. I open a message and sign it, mutt
prompts for the passphrase as usual. Then I try using my macro to clear
sign another message. Now gpg-agent puts up the pinentry box to enter my
passphrase, which makes me believe mutt has not used the agent for the
passphrase, else it would already be remembered.
Working in the opposite order is similar. If I use the macro to sign first,
I get the agent's pinentry prompt and enter the passphrase. Then if I try
to sign directly using mutt before the agent's timeout, I still get a prompt
from mutt for the passphrase.
I must be missing something obvious, but I can't figure out what that is.
Anyone have some hints?
I'm using mutt-1.5.4 and gpg-agent from newpg-0.9.4.
- --
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
Instead of giving a politician the keys to the city, it might be better to
change the locks.
-- Doug Larson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
iD8DBQE/XgRbuv+09NZUB1oRAiQxAKD9VBKzI3dHZL6EUbWdskw0AiWsKwCbBQrL
DCQsMM9DivdINz4WFP0E3/I=
=2YR/
-----END PGP SIGNATURE-----