#3770: mutt marks armored GPG signed text as encrypted.
----------------------+-------------------------------------------
Reporter: sudoman | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: crypto | Version: 1.5.23
Resolution: | Keywords: gpg signed encrypted pgp mime
----------------------+-------------------------------------------
Comment (by kevin8t8):
Looks like we could be doing a couple things better here in
pgp_decrypt_part().
First, we're only looking at the exit code for signature checking. That
doesn't affect this ticket, since it looks like gpg happily "decrypts" a
signed file, even if --decrypt is passed to it, but it might be good to
check this anyway.
Second, if there is output we assume it was decrypted. Perhaps we could
check the stderr for
{{{
[GNUPG:] DECRYPTION_OKAY
}}}
like pgp_copy_checksig() does. We could add a $pgp_good_decrypt option
for this.
If it doesn't find this, then the easiest thing to do would be return
NULL, aborting the whole process.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3770#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent