Bugfix: Howto turn off gpg-agent usage in Enigmail in Thunderbird

There is some bug in Enigmail v0.95.7 for Thunderbird. If you untick the checkbox “Use gpg-agent for passphrases” in Advanced tab of Advanced settings menu, Thunderbird in anyway will try to use gpg-agent if GPG_AGENT_INFO environment variable is set. The reason is some little bug in Enigmail source code. To fix it, first close Thunderbird, then just open .thunderbird folder in your home directory, search for enigmail.js file. It have to be in extensions folder in one of the random name folders. When you have found the enigmail.js file open it with your favorite text editor and find line number 1368. It have to be this:

useAgent= (this.gpgAgentInfo.envStr.length>0 || this.prefBranch.getBoolPref("useGpgAgent"));

Change the || sign to &&. After change this line have to look like this:

useAgent= (this.gpgAgentInfo.envStr.length>0 && this.prefBranch.getBoolPref("useGpgAgent"));

Save file. Now open Thunderbird and enjoy.

Be Sociable, Share!

, , , , ,

  1. #1 by mikayel at November 26th, 2011

    Thanks. It works, now.

  2. #2 by Tarik Demirci at March 28th, 2012

    This bug applies to Enigmail 1.4 (20120301-1650) too. It’s pity that this bug isn’t fixed after two years.Thanks for the bugfix.It worked like a charm!

  3. #3 by sillyxone at August 6th, 2013

    the bug is still there in Engimail 1.5.2, and the above fix still works like a charm!

  4. #4 by Hugo at August 29th, 2013

    Its 2013, and the bug still is here (version 1.5.2). But your fix works! But the line in my enigmail.js is 782.

(will not be published)

  1. No trackbacks yet.