On Mon, Mar 02, 2015 at 11:13:37PM -0800, Will Yardley wrote: > I've been having some problems since switching from gpg to gpg2 (I had > installed gnupg2 earlier, but a dependency had reinstalled gpg1 into the > 'gpg' slot). > > I keep getting: > "gpg: decryption failed: No secret key" > even though gpg -K shows the secret key, and I'm typing my passphrase > correctly. However, if I save the encrypted / signed message to a file > and run 'gpg --decrypt' on it, then open mutt and open a signed message, > it works fine. > > My config has: > set pgp_decrypt_command="/usr/local/bin/gpg --passphrase-fd 0 --no-verbose > --quiet --batch --output - %f" > > Any thoughts on what might be causing this, and could it be related to > gpg-agent? > > FWIW, $pgp_use_gpg_agent is unset. > > % gpg --version > gpg (GnuPG) 2.1.2 > libgcrypt 1.6.2 > Copyright (C) 2015 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > % mutt -v > Mutt 1.5.23 (2014-03-12) > Copyright (C) 1996-2009 Michael R. Elkins and others. > Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. > Mutt is free software, and you are welcome to redistribute it > under certain conditions; type `mutt -vv' for details. > > System: FreeBSD 9.3-RELEASE-p10 (amd64) > ncurses: ncurses 5.7.20081102 (compiled with 5.7) > libiconv: 1.14 > hcache backend: tokyocabinet 1.4.48 > > w >
It is unset, but it is still set. In gpg2 the "--use-agent" is a dummy option. Read it in the `man gpg' (I can't check it now, but it was so before). > > FWIW, $pgp_use_gpg_agent is unset. > So they don't honor your desire nor you attitude. And neither was my bug report taken seriously: https://bugs.gentoo.org/527338 Read there and in the links to the Gentoo Forums topic therefrom. They want to bind the use of gpg, from gpg2 it is a must, to the gpgme library, which is completely unnecessary, IMO, for simple workstation (the most of users), but I'm not an expert... Try and go back to gpg1, if you can (with your distro), or go and live with the bloat... Cheers! -- Miroslav Rovis Zagreb, Croatia http://www.CroatiaFidelis.hr
pgpLjEixsdTZz.pgp
Description: PGP signature