<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/1025: mutt: GPG/PGP Passphrase stored even when wrong



On Mon, Aug 01, 2005 at 02:43:00PM -0700, Brendan Cully wrote:
> On Monday, 01 August 2005 at 14:38, Will Yardley wrote:
> > On Mon, Aug 01, 2005 at 09:52:24PM +0100, Paul Walker wrote:
> > > On Mon, Aug 01, 2005 at 10:24:55PM +0200, Brendan Cully wrote:

> > > > Synopsis: mutt: GPG/PGP Passphrase stored even when wrong
> > > 
> > > Er... is that a complaint or a request?

> > Yeah - it would be great if this could be fixed - but not sure if it
> > would be easy to do... I guess the password should just never be stored
> > if pgp_XXX_command exits 1?
 
> Sorry for the bad gnats message. It IS fixed now.


Hrm - yeah I saw that after I typed my response.

BUT, I don't see a difference with CVS mutt (updated this afternoon)...
using GnuPG on OpenBSD/sparc64.

if I type in the wrong passphrase, I get:
gpg: /tmp/mutt-mitch-1228-20983-14: sign+encrypt failed: bad passphrase

each time I try to send the message... in other words, the passphrase
doesn't appear to be forgotten if I type it wrong.

If it matters, the relevant bits from my gpg.rc file are:

set pgp_sign_command="/usr/local/bin/gpg    --no-verbose --batch --quiet   
--output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="/usr/local/bin/gpg   --no-verbose --batch --quiet   
--output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap /usr/local/bin/gpg    --batch  --quiet  
--no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- 
%f"
set pgp_encrypt_sign_command="pgpewrap /usr/local/bin/gpg  --passphrase-fd 0  
--batch --quiet  --no-verbose  --textmode --output - --encrypt --sign %?a?-u 
%a? --armor --always-trust -- -r %r -- %f"