Bug#674676: enigmail: tries to use gpg-agent regardless of preference settings

2013-02-18 Thread Marcel Svitalský
Damien,

I've filed the same bug with Enigmail and received an answer saying
basically: “It's not bug, it's a feature!” More specifically:


The problem is that GPG_AGENT_INFO is set by your distribution, i.e.
your distribution starts an instance of gpg-agent during the login
process.If the environment variable is set, then Enigmail will always
usegpg-agent - that's how I intend Enigmail to work. In other words,
gpg-agent is only not used, if no GPG_AGENT_INFO variable is set and
ifyou use gpg 1.x.

The option is only there to force the use of gpg-agent for gpg 1.4.x
installations.


(I do use 1.4.x version of GnuPG, btw, but GnuPG 2.x is available on the
system and apparently that's enough.)


The fix is simple, find components/enigmail.js under the Enigmail
extension directory and change line:
useAgent = (this.gpgAgentInfo.envStr.length0 ||
this.prefBranch.getBoolPref(useGpgAgent));
to:
useAgent = (this.gpgAgentInfo.envStr.length0 
this.prefBranch.getBoolPref(useGpgAgent));

and unchecking the appropriate option in Enigmail preferences will work
as sane user would expect.

Cheers,
Marcel



signature.asc
Description: OpenPGP digital signature


Bug#674676: enigmail: tries to use gpg-agent regardless of preference settings

2012-05-26 Thread Damien Couroussé
Package: enigmail
Version: 2:1.4.1-2
Severity: normal


hello,

I have installed gpg-agent on my system, with pinentry for password
popups.

In enigmail logs, I can see that enigmail correctly finds the running
instance of gpg-agent :

2012-05-26 17:40:59.892 [DEBUG] enigmail.js: detected GnuPG version '1.4.10'
2012-05-26 17:40:59.892 [DEBUG] enigmail.js: detectGpgAgent
2012-05-26 17:40:59.893 [DEBUG] enigmail.js: detectGpgAgent: GPG_AGENT_INFO 
variable available
2012-05-26 17:40:59.893 [DEBUG] enigmail.js: detectGpgAgent: 
GPG_AGENT_INFO='/tmp/gpg-wjPfhv/S.gpg-agent:2663:1'

However, if I disable the use of gpg-agent in enigmail preferences, it
still tries to reach gpg-agent for querying the gpg password.


regards,
Damien



-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable'), (450, 'testing'), (300, 
'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages enigmail depends on:
ii  gnupg 1.4.10-4   GNU privacy guard - a free PGP rep
ii  icedove   11.0-1 mail/news client with RSS and inte
ii  libc6 2.13-32Embedded GNU C Library: Shared lib
ii  libgcc1   1:4.7.0-7  GCC support library
ii  libnspr4-0d   4.8.6-1NetScape Portable Runtime Library
ii  libstdc++64.7.0-7GNU Standard C++ Library v3

enigmail recommends no packages.

enigmail suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org