[Enigmail] enigmail and pgp-agent

arno arenevier at fdn.fr
Thu Aug 9 00:31:44 PDT 2007


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.

arno.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mozdev.org/pipermail/enigmail/attachments/20070809/feec0fe2/attachment.bin 


More information about the Enigmail mailing list