summaryrefslogtreecommitdiff
path: root/tests/email-print-mime-structure/attachment.eml
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-25 01:53:54 -0500
committerSean Whitton <spwhitton@spwhitton.name>2019-11-25 07:46:31 -0700
commite9e26fa3d84b9d38c4a33fb33f890b21b482ef13 (patch)
treea978cd678bebf751ca72c29ac3bfc626ba6f6895 /tests/email-print-mime-structure/attachment.eml
parent0f4661cde91646c0481d00413d1188cf538829d5 (diff)
downloadmailscripts-e9e26fa3d84b9d38c4a33fb33f890b21b482ef13.tar.gz
email-print-mime-structure: simple baseline test suite
I want to ensure that any changes don't ultimately break the behavior of email-print-mime-structure. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'tests/email-print-mime-structure/attachment.eml')
-rw-r--r--tests/email-print-mime-structure/attachment.eml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/email-print-mime-structure/attachment.eml b/tests/email-print-mime-structure/attachment.eml
new file mode 100644
index 0000000..31baa7c
--- /dev/null
+++ b/tests/email-print-mime-structure/attachment.eml
@@ -0,0 +1,26 @@
+Date: Sun, 24 Nov 2019 21:13:45 -0500
+Subject: test message
+Message-ID: <attachment@mailscripts.example>
+From: Alice <alice@mailscripts.example>
+To: Bob <bob@mailscripts.example>
+Content-Type: multipart/mixed; boundary="xyz"
+
+--xyz
+Content-Type: multipart/alternative; boundary="abc123"
+
+--abc123
+Content-Type: text/plain
+
+This is a simple message
+
+--abc123
+Content-Type: text/html
+
+<html><head></head><body><p>This is a simple message</p></body></html>
+
+--abc123--
+--xyz
+Content-Type: text/plain
+Content-Disposition: attachment; filename="test.txt"
+
+This is a simple attachment file.