summaryrefslogtreecommitdiff
path: root/tests/email-print-mime-structure/smime-signed.out
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-25 16:45:51 -0500
committerSean Whitton <spwhitton@spwhitton.name>2019-11-28 11:09:01 -0700
commit579b176e686d1b30cc8ecde55c5a8a31310c5938 (patch)
tree1f0110a0091c09ac1fbcc9bd12e489a5744789f4 /tests/email-print-mime-structure/smime-signed.out
parent229f295232e3abd3679bbb4ed258b81fc68a1931 (diff)
downloadmailscripts-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.out7
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