Subject: | decrypt from entities nested in security multipart |
Date: | Fri, 18 Jul 2014 16:28:44 +0200 |
To: | bug-Mail-GnuPG [...] rt.cpan.org |
From: | Robert Sachunsky <robert.schubert [...] mathint.com> |
Dear maintainer,
I often get messages with nested multipart/encrypted inside a
multipart/signed entity. With respect to MIME, RFC 1847 details no
preferred ordering between the two. But as for OpenPGP, RFC 4880 demands
first signing, then encrypting the signed message. So yes, this is
non-conforming. But some MUAs apparently still prefer to do so.
Now since is_encrypted() does not look at MIME structure, it positively
attests these messages. But decrypt() so far only knows about either
multipart/encrypted, or non-multipart (with bodyhandle), thus failing to
decrypt them.
Please find attached below a patch that covers this case. What do you think?
Regards,
Robert
Message body is not shown because sender requested not to inline it.