[Enigmail] and gpg-agent
Patrick Brunschwig
patrick at mozilla-enigmail.org
Thu Aug 9 06:11:42 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Charly Avital wrote:
> Patrick Brunschwig wrote the following on 8/9/07 2:41 PM:
>> 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
>
>
> What is the difference of the above settings, and unmarking 'Use
> gpg-agent for passphrases' in OpenPGP 'Preferences>Advanced'?
>
> Charly
> running gpg2 2.0.4 and gpg-agent
The point is that Enigmail tries to use gpg-agent, not only if 'Use
gpg-agent for passphrases' is enabled, but also if it's disabled and the
environment variable is set.
- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBRrsSjXcOpHodsOiwAQLb7AgAraKzw4oluF42aOd/du/MCuVyWUm49Nl5
KaWp4tgJZWv3g++nLGZdZz9EqVKFSUj/G5Pf0vNiHK55g7XHKOE/k4BKW77+L6Ur
9tLPlzvBVWr7BnHgxDaGfU437A+755O+lkljD1vG++HPphUuYJpZS4ZIou2/GOGf
+B4GFatbjlfYEg8jET1EjwMyGkXL5AlPPte749aud8IpBakotkxUVhDiRGFY8+Vj
UuQQ5Sd60yQE6TDSDcmGkjltAv8/nT1j2SgcKTXVb2YTiTkVnYr1cSToEmFlOVcd
0GN7IU3e02EpEdCb4BlgaIwXz25I1YDUqdeMA85ES2NFj4b+AVXLDw==
=2iJF
-----END PGP SIGNATURE-----
More information about the Enigmail
mailing list