aboutsummaryrefslogtreecommitdiffhomepage
path: root/unittest/data/parser/input/messages
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/data/parser/input/messages')
-rw-r--r--unittest/data/parser/input/messages/empty-multipart.txt22
-rw-r--r--unittest/data/parser/input/messages/multipart-digest.txt34
-rw-r--r--unittest/data/parser/input/messages/rfc2060.txt74
3 files changed, 130 insertions, 0 deletions
diff --git a/unittest/data/parser/input/messages/empty-multipart.txt b/unittest/data/parser/input/messages/empty-multipart.txt
new file mode 100644
index 00000000..3afda981
--- /dev/null
+++ b/unittest/data/parser/input/messages/empty-multipart.txt
@@ -0,0 +1,22 @@
+From: mimekit@example.com
+To: mimekit@example.com
+Subject: test of empty multipart/alternative
+Date: Tue, 12 Nov 2013 09:12:42 -0500
+MIME-Version: 1.0
+Message-ID: <54AD68C9E3B0184CAC6041320424FD1B5B81E74D@localhost.localdomain>
+X-Mailer: Microsoft Office Outlook 12.0
+Content-Type: multipart/mixed;
+ boundary="----=_NextPart_000_003F_01CE98CE.6E826F90"
+
+
+------=_NextPart_000_003F_01CE98CE.6E826F90
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_001_0040_01CE98CE.6E826F90"
+
+
+------=_NextPart_000_003F_01CE98CE.6E826F90
+Content-Type: text/plain
+
+This part should be on the same level as the multipart/alternative and not a child.
+
+------=_NextPart_000_003F_01CE98CE.6E826F90--
diff --git a/unittest/data/parser/input/messages/multipart-digest.txt b/unittest/data/parser/input/messages/multipart-digest.txt
new file mode 100644
index 00000000..53905fcc
--- /dev/null
+++ b/unittest/data/parser/input/messages/multipart-digest.txt
@@ -0,0 +1,34 @@
+From user@domain Fri Feb 22 17:06:23 2008
+From: user@domain.org
+Date: Sat, 24 Mar 2007 23:00:00 +0200
+Mime-Version: 1.0
+Content-Type: message/rfc822
+
+From: sub@domain.org
+Date: Sun, 12 Aug 2012 12:34:56 +0300
+Subject: submsg
+Content-Type: multipart/digest; boundary="foo"
+
+prologue
+
+--foo
+Content-Type: message/rfc822
+
+From: m1@example.com
+Subject: m1
+
+m1 body
+
+--foo
+Content-Type: message/rfc822
+X-Mime: m2 header
+
+From: m2@example.com
+Subject: m2
+
+m2 body
+
+--foo--
+
+epilogue
+
diff --git a/unittest/data/parser/input/messages/rfc2060.txt b/unittest/data/parser/input/messages/rfc2060.txt
new file mode 100644
index 00000000..84579220
--- /dev/null
+++ b/unittest/data/parser/input/messages/rfc2060.txt
@@ -0,0 +1,74 @@
+From: me@myself.com
+To: me@myself.com
+Subject: Sample message structure for IMAP part specifiers
+MIME-Version: 1.0
+Content-Type: MULTIPART/MIXED; boundary="x"
+
+--x
+Content-Type: TEXT/PLAIN
+
+This part specifier should be: 1
+
+--x
+Content-Type: APPLICATION/OCTET-STREAM
+
+This part specifier should be: 2
+
+--x
+Content-Type: MESSAGE/RFC822
+
+From: me@myself.com
+To: me@myself.com
+Subject: This part specifier should be: 3
+MIME-Version: 1.0
+Content-Type: MULTIPART/MIXED; boundary="3.x"
+
+--3.x
+Content-Type: TEXT/PLAIN
+
+This part specifier should be: 3.1
+
+--3.x
+Content-Type: APPLICATION/OCTET-STREAM
+
+This part specifier should be: 3.2
+
+--3.x--
+--x
+Content-Type: MULTIPART/MIXED; boundary="4.x"
+
+--4.x
+Content-Type: IMAGE/GIF
+
+This part specifier should be: 4.1
+
+--4.x
+Content-Type: MESSAGE/RFC822
+
+From: me@myself.com
+To: me@myself.com
+Subject: This part specifier should be: 4.2
+MIME-Version: 1.0
+Content-Type: MULTIPART/MIXED; boundary="4.2.x"
+
+--4.2.x
+Content-Type: TEXT/PLAIN
+
+This part specifier should be: 4.2.1
+
+--4.2.x
+Content-Type: MULTIPART/ALTERNATIVE; boundary="4.2.2.x"
+
+--4.2.2.x
+Content-Type: TEXT/PLAIN
+
+This part specifier should be: 4.2.2.1
+
+--4.2.2.x
+Content-Type: TEXT/RICHTEXT
+
+This part specifier should be: 4.2.2.2
+
+--4.2.2.x--
+--4.2.x--
+--x--