diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-11-25 16:45:51 -0500 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-28 11:09:01 -0700 |
commit | 579b176e686d1b30cc8ecde55c5a8a31310c5938 (patch) | |
tree | 1f0110a0091c09ac1fbcc9bd12e489a5744789f4 /tests/email-print-mime-structure/smime-signed.out | |
parent | 229f295232e3abd3679bbb4ed258b81fc68a1931 (diff) | |
download | mailscripts-579b176e686d1b30cc8ecde55c5a8a31310c5938.tar.gz |
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 <dkg@fifthhorseman.net>
Acked-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'tests/email-print-mime-structure/smime-signed.out')
-rw-r--r-- | tests/email-print-mime-structure/smime-signed.out | 7 |
1 files changed, 7 insertions, 0 deletions
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 |