From 579b176e686d1b30cc8ecde55c5a8a31310c5938 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 25 Nov 2019 16:45:51 -0500 Subject: email-print-mime-structure: handle one-part PKCS#7 signature objects PKCS#7 offers a signed-only mode which is distinct from multipart/signed. This mode is more robust to breakage by transforming MTAs, but it is also unreadable *unless* the receiver knows how to cope with S/MIME. See https://tools.ietf.org/html/rfc8551#section-3.5 for more details about the different formats. email-print-mime-structure should now be able to handle these messages and display the structure of their content as well. Signed-off-by: Daniel Kahn Gillmor Acked-by: Sean Whitton --- tests/email-print-mime-structure/smime-signed.out | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/email-print-mime-structure/smime-signed.out (limited to 'tests/email-print-mime-structure/smime-signed.out') diff --git a/tests/email-print-mime-structure/smime-signed.out b/tests/email-print-mime-structure/smime-signed.out new file mode 100644 index 0000000..293a271 --- /dev/null +++ b/tests/email-print-mime-structure/smime-signed.out @@ -0,0 +1,7 @@ +└─╴application/pkcs7-mime 2538 bytes + ⇩ (unwraps to) + └┬╴multipart/mixed 415 bytes + ├┬╴multipart/alternative 234 bytes + │├─╴text/plain 26 bytes + │└─╴text/html 72 bytes + └─╴text/plain attachment [test.txt] 33 bytes -- cgit v1.2.3