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

Reply via email to