Re: mutt/2041: pgp-inline failure mode should detect incorrect password
The following reply was made to PR mutt/2041; it has been noted by GNATS.
From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
To: GNATS <bug-any@xxxxxxxxxxxxx>
Cc:
Subject: Re: mutt/2041: pgp-inline failure mode should detect incorrect password
Date: Wed, 17 Aug 2005 12:47:31 +0900
> >Class: sw-bug
> >Description:
> When attempting to send a mail encrypted "inline", if you type in the wrong
> pgp passphrase, mutt will ask if you would like to fall back to sending it
> via pgp-MIME. This is a silly question if all you did was type in the wrong
> password. Mutt should be able to tell that the passphrase was incorrect and
> it wasn't a case of pgp-inline being incapable of signing the mail. I think
> this is a bug and not a change request, but I may be wrong.
Yes, we can do it in theory.
But your request is almost hopeless.
Too much code is involved and PGP-inline is deprecated.
Workaround: You can "set pgp_mime_auto=no"
The manual reads:
6.3.156. pgp_mime_auto
Type: quadoption
Default: ask-yes
This option controls whether Mutt will prompt you for automatically
sending a (signed/encrypted) message using PGP/MIME when inline
(traditional) fails (for any reason).
^^^^^^^^^^^^^^
"Any reason" includes wrong passphrases.
So this is not a bug.
--
tamo