[Enigmail] GPG-AGENT preferences
Patrick Brunschwig
patrick at mozilla-enigmail.org
Fri Oct 26 03:14:41 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dirk Wetter wrote:
> Hi all,
>
> the logic -- if I understand everything correctly --
> behind when to use gpg-agent and when not doesn't
> make sense to me. This seems to be one of the cases
> where a program wants to be smarter than me, a human. :-)
>
> A real world case: I have a Suse 10.3 system here
> where through some magic I do not understand -- and
> I do not care -- the GPG_AGENT_INFO environment variable is set.
> However there's no gpg-agent started/it died/whatsoever. Besides:
> Also if there would be one: heck, I don't want to use
> it. Also the config in TB/EM say "please don't use it, I
> don't want it". Why is that overridden?
>
> My suggestion is to give the power of decision whether to use
> the agent or not the switch "use gpg-agent for passphrase
> handling" --- as people would expect -- and not the existence
> of an environment variable.
The problem is not so easy than you think. It's true, it currently looks
like Enigmail refuses to accept what the user wants (which is basically
true). The reason for to implement it this way is because with GnuPG v2,
the use of gpg-agent is mandatory, i.e. GnuPG v2 does not work properly
if the gpg-agent doesn't work. Given this, I have decided to start to
adopt to GnuPG v2, and make use of gpg-agent whenever either
GPG_AGENT_INFO is set, or if GnuPG v2 is detected.
In addition to the above, the use of gpg-agent has another advantage: it
solves the problem of having several keys with different passwords.
If you don't want to use gpg-agent, then you must unset GPG_AGENT_INFO.
- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBRyG+EHcOpHodsOiwAQIvCwgAisC3BqyG2SxCr5dCjxbtMCbd2tWstvER
Eyv2k3fC9BrHWEsd2ReUi38WkpoXxxmnvbcUP2PY2Xka1D0+qqGuoK9KBISLGtA3
/1I5a4lUvSLR9E5mk5BkXyPnmGoeRr6CcDhAke9xUbVFQ9RA+SOSGnAHo8VdMTNX
a28H6KnsidKVLFRhwmzNzJDfryvagLXX164UvLGFXQPSCK72CwuV/r6NO4FEnAUd
7D5h8l3BfBq6CWmSno4wuGhp7dGbmK5gEI6NhrBRVaiz68/wRjLZFe34SlgrqUGs
U/Ro+HUSQryBG7WLQrp2tFOOUbhXeEIEsVVLT/+dZZVb30jido2VbQ==
=Yzy3
-----END PGP SIGNATURE-----
More information about the Enigmail
mailing list