[Enigmail] enigmail and pgp-agent

Patrick Brunschwig patrick at mozilla-enigmail.org
Thu Aug 9 04:41:02 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

arno wrote:
> Hi,
> I have a pgp-agent running on my computer. But I'd like not use 
> pgp-agent in thunderbird.
> 
> So I left preference extensions.enigmail.useGpgAgent to false.
> But I cannot send signed mails anymore (Enigmail does not prompt me for 
> my passphrase, but I still get the error "bad passphrase")
> 
> In Enigmail.prototype.useGpgAgent, there is:
> try {
>     useAgent= (this.gpgAgentInfo.envStr.length>0 || this.prefBranch.getBoolPref("useGpgAgent"));
> }
> 
> 
> So it looks like enigmail tries to use gpg-agent if there is an agent 
> running *or* if useGpgAgent is true. I think it's a bug (it should be 
> *and*, but I'm not totally sure (may be there is something I 
> misunderstood in Enigmail).
> 
> Anyway, I changed those lines to:
> 
> try { 
>     useAgent= (this.gpgAgentInfo.envStr.length>0 && this.prefBranch.getBoolPref("useGpgAgent"));
> }   
> 
> and it suits my needs.

That's actually a feature, not a bug (i.e. it is intended like this).
Latest if you want to use gpg2, gpg-agent will be mandatory (required by
gpg2). If you don't want gpg-agent to be used, then I'd suggest you
unset GPG_AGENT_INFO before starting thunderbird.

- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRrr9THcOpHodsOiwAQIxIgf/VvKnjBhagrFAt2eZUZlfnIpK/KNmEBVu
nljOxb9mCBXteamNWXgamOojT85fEpFNh1gcBqxkg5QxyqkeXs+x7aTB2DwxISKd
YI5U7qbAjHj6AQTgJWjvd1aykO/pJXOvkthNDP8UDdnjYamvjPTOZ63Sher5XnMK
97cb/gfZAsw7nrR8tw6+L4wZ9GNDC4QePnrooqeErcgXqaY3KsoBgrJ+LHmQ+mbL
MiSsLcWniAhC/S/+klFs1rlyFu3jxB11lw5PdSrnhnzb7G20FxRRz7ADfYu/4COy
p3Joju3xj1ZJJB/Y1yM2MN01S2x9hZacFvghm6T+wPF/0MGokuk8VQ==
=dBl/
-----END PGP SIGNATURE-----


More information about the Enigmail mailing list