aboutsummaryrefslogtreecommitdiff
path: root/tests/emails/malformed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/emails/malformed')
-rw-r--r--tests/emails/malformed/000.eml11
-rw-r--r--tests/emails/malformed/001.eml11
-rw-r--r--tests/emails/malformed/002.eml4
-rw-r--r--tests/emails/malformed/003.eml10
-rw-r--r--tests/emails/malformed/004.eml10
-rw-r--r--tests/emails/malformed/005.eml14
-rw-r--r--tests/emails/malformed/006.eml10
-rw-r--r--tests/emails/malformed/007.eml12
-rw-r--r--tests/emails/malformed/008.eml14
-rw-r--r--tests/emails/malformed/009.eml18
-rw-r--r--tests/emails/malformed/010.eml8
-rw-r--r--tests/emails/malformed/011.eml18
-rw-r--r--tests/emails/malformed/012.eml24
-rw-r--r--tests/emails/malformed/013.eml33
-rw-r--r--tests/emails/malformed/014.eml8
-rw-r--r--tests/emails/malformed/015.eml26
-rw-r--r--tests/emails/malformed/016.eml25
-rw-r--r--tests/emails/malformed/COPYING2
18 files changed, 258 insertions, 0 deletions
diff --git a/tests/emails/malformed/000.eml b/tests/emails/malformed/000.eml
new file mode 100644
index 0000000..20bb0ab
--- /dev/null
+++ b/tests/emails/malformed/000.eml
@@ -0,0 +1,11 @@
+Content-Type: multipart/mixed; boundary=":foo"
+
+--:foo
+--:foo
+Content-Type: text/plain
+--:foo
+Content-Type: text/plain
+--:foo
+Content-Type: text/html
+--:foo--
+
diff --git a/tests/emails/malformed/001.eml b/tests/emails/malformed/001.eml
new file mode 100644
index 0000000..102baa5
--- /dev/null
+++ b/tests/emails/malformed/001.eml
@@ -0,0 +1,11 @@
+Content-Type: multipart/mixed; boundary="ab"
+
+--ab
+Content-Type: multipart/mixed; boundary="a"
+
+--ab
+Content-Type: text/plain
+
+--a
+
+
diff --git a/tests/emails/malformed/002.eml b/tests/emails/malformed/002.eml
new file mode 100644
index 0000000..9d49a29
--- /dev/null
+++ b/tests/emails/malformed/002.eml
@@ -0,0 +1,4 @@
+Content-Type: multipart/mixed; boundary="ab"
+
+body
+
diff --git a/tests/emails/malformed/003.eml b/tests/emails/malformed/003.eml
new file mode 100644
index 0000000..bedfa79
--- /dev/null
+++ b/tests/emails/malformed/003.eml
@@ -0,0 +1,10 @@
+Content-Type: multipart/mixed; boundary="a"
+
+--a
+Content-Type: multipart/mixed; boundary="a"
+
+--a
+Content-Type: text/plain
+
+body
+
diff --git a/tests/emails/malformed/004.eml b/tests/emails/malformed/004.eml
new file mode 100644
index 0000000..f81e999
--- /dev/null
+++ b/tests/emails/malformed/004.eml
@@ -0,0 +1,10 @@
+Content-Type: multipart/mixed; boundary="a"
+
+--ab
+Content-Type: multipart/mixed; boundary="a"
+
+--ac
+Content-Type: text/plain
+
+body
+
diff --git a/tests/emails/malformed/005.eml b/tests/emails/malformed/005.eml
new file mode 100644
index 0000000..03d7e6e
--- /dev/null
+++ b/tests/emails/malformed/005.eml
@@ -0,0 +1,14 @@
+Content-Type: multipart/mixed; boundary="a--"
+
+--a--
+Content-Type: multipart/mixed; boundary="a----"
+
+--a----
+Content-Type: text/plain
+
+body
+--a------
+Content-Type: text/html
+
+body2
+--a----
diff --git a/tests/emails/malformed/006.eml b/tests/emails/malformed/006.eml
new file mode 100644
index 0000000..248300d
--- /dev/null
+++ b/tests/emails/malformed/006.eml
@@ -0,0 +1,10 @@
+Content-Type: multipart/mixed; boundary="a"
+
+--a
+Content-Type: multipart/mixed; boundary="ab"
+
+--ab
+Content-Type: text/plain
+
+body
+
diff --git a/tests/emails/malformed/007.eml b/tests/emails/malformed/007.eml
new file mode 100644
index 0000000..4baec0f
--- /dev/null
+++ b/tests/emails/malformed/007.eml
@@ -0,0 +1,12 @@
+Content-Type: multipart/mixed; boundary="a"
+
+--a
+Content-Type: multipart/mixed; boundary="ab"
+MIME-Version: 1.0
+--ab
+Content-Type: text/plain
+
+--ab--
+--a--
+
+
diff --git a/tests/emails/malformed/008.eml b/tests/emails/malformed/008.eml
new file mode 100644
index 0000000..c43b393
--- /dev/null
+++ b/tests/emails/malformed/008.eml
@@ -0,0 +1,14 @@
+Content-Type: multipart/mixed; boundary="ab"
+
+--ab
+Content-Type: multipart/mixed; boundary="a"
+
+--a
+Content-Type: text/plain
+
+body
+--ab
+Content-Type: text/html
+
+body2
+
diff --git a/tests/emails/malformed/009.eml b/tests/emails/malformed/009.eml
new file mode 100644
index 0000000..d55fcba
--- /dev/null
+++ b/tests/emails/malformed/009.eml
@@ -0,0 +1,18 @@
+Content-Type: multipart/mixed; boundary="1"
+
+--1
+Content-Type: multipart/mixed; boundary="2"
+
+--2
+Content-Type: text/plain
+
+1
+--2
+Content-Type: text/plain
+
+22
+--1
+Content-Type: text/plain
+
+333
+
diff --git a/tests/emails/malformed/010.eml b/tests/emails/malformed/010.eml
new file mode 100644
index 0000000..ff0f22b
--- /dev/null
+++ b/tests/emails/malformed/010.eml
@@ -0,0 +1,8 @@
+Content-Type: message/rfc822
+
+Content-Type: message/rfc822
+
+Content-Type: text/plain
+
+1
+
diff --git a/tests/emails/malformed/011.eml b/tests/emails/malformed/011.eml
new file mode 100644
index 0000000..d55fcba
--- /dev/null
+++ b/tests/emails/malformed/011.eml
@@ -0,0 +1,18 @@
+Content-Type: multipart/mixed; boundary="1"
+
+--1
+Content-Type: multipart/mixed; boundary="2"
+
+--2
+Content-Type: text/plain
+
+1
+--2
+Content-Type: text/plain
+
+22
+--1
+Content-Type: text/plain
+
+333
+
diff --git a/tests/emails/malformed/012.eml b/tests/emails/malformed/012.eml
new file mode 100644
index 0000000..b82ac2e
--- /dev/null
+++ b/tests/emails/malformed/012.eml
@@ -0,0 +1,24 @@
+Content-Type: multipart/mixed; boundary="1"
+
+--1
+Content-Type: multipart/mixed; boundary="2"
+
+--2
+Content-Type: message/rfc822
+
+Content-Type: text/plain
+
+1
+--2
+Content-Type: message/rfc822
+
+Content-Type: text/plain
+
+22
+--1
+Content-Type: message/rfc822
+
+Content-Type: text/plain
+
+333
+
diff --git a/tests/emails/malformed/013.eml b/tests/emails/malformed/013.eml
new file mode 100644
index 0000000..6eb6e06
--- /dev/null
+++ b/tests/emails/malformed/013.eml
@@ -0,0 +1,33 @@
+Content-Type: multipart/mixed; boundary="1"
+MIME-Version: 1.0
+
+--1
+Content-Type: text/plain
+
+hello, world
+--1
+Content-Type: multipart/mixed; boundary="1"
+MIME-Version: 2.0
+
+--1
+Content-Type: text/plain
+
+hello, world
+--1
+Content-Type: multipart/mixed; boundary="1"
+MIME-Version: abc
+
+--1
+Content-Type: text/plain
+
+hello, world
+--1
+Content-Type: multipart/mixed; boundary="1"
+MIME-Version:
+
+--1
+Content-Type: text/plain
+
+hello, world
+--1
+
diff --git a/tests/emails/malformed/014.eml b/tests/emails/malformed/014.eml
new file mode 100644
index 0000000..b05edba
--- /dev/null
+++ b/tests/emails/malformed/014.eml
@@ -0,0 +1,8 @@
+Content-Type: multipart/mixed; boundary="1"
+
+--1
+Content-Type: text/plain
+
+hello, world
+--1
+
diff --git a/tests/emails/malformed/015.eml b/tests/emails/malformed/015.eml
new file mode 100644
index 0000000..dc9669f
--- /dev/null
+++ b/tests/emails/malformed/015.eml
@@ -0,0 +1,26 @@
+Return-Path: <test@example.org>
+Subject: Hello world
+From: Test User <test@example.org>
+To: Another User <test2@example.org>
+Message-Id: <1.2.3.4@example>
+Mime-Version: 1.0
+Date: Sun, 23 May 2007 04:58:08 +0300
+Content-Type: multipart/signed; micalg=pgp-sha1;
+ protocol="application/pgp-signature";
+ boundary="=-GNQXLhuj24Pl1aCkk4/d"
+
+--=-GNQXLhuj24Pl1aCkk4/d
+Content-Type: text/plain
+Content-Transfer-Encoding: quoted-printable
+
+There was a day=20
+a happy=20day
+
+--=-GNQXLhuj24Pl1aCkk4/d
+Content-Type: application/pgp-signature; name=signature.asc
+
+invalid
+
+--=-GNQXLhuj24Pl1aCkk4/d--
+
+
diff --git a/tests/emails/malformed/016.eml b/tests/emails/malformed/016.eml
new file mode 100644
index 0000000..420dada
--- /dev/null
+++ b/tests/emails/malformed/016.eml
@@ -0,0 +1,25 @@
+Content-Type: multipart/mixed; boundary="1234567890123456789012345678901234567890123456789012345678901234567890123456789012"
+
+--1234567890123456789012345678901234567890123456789012345678901234567890123456789012
+Content-Type: multipart/mixed; boundary="123456789012345678901234567890123456789012345678901234567890123456789012345678901"
+
+--123456789012345678901234567890123456789012345678901234567890123456789012345678901
+Content-Type: multipart/mixed; boundary="12345678901234567890123456789012345678901234567890123456789012345678901234567890"
+
+--12345678901234567890123456789012345678901234567890123456789012345678901234567890
+Content-Type: text/plain
+
+1
+--1234567890123456789012345678901234567890123456789012345678901234567890123456789012
+Content-Type: text/plain
+
+22
+--123456789012345678901234567890123456789012345678901234567890123456789012345678901
+Content-Type: text/plain
+
+333
+--12345678901234567890123456789012345678901234567890123456789012345678901234567890
+Content-Type: text/plain
+
+4444
+
diff --git a/tests/emails/malformed/COPYING b/tests/emails/malformed/COPYING
new file mode 100644
index 0000000..e081952
--- /dev/null
+++ b/tests/emails/malformed/COPYING
@@ -0,0 +1,2 @@
+These test files are Copyright (c) 2003-2018 Dovecot authors, licensed under MIT.
+See the COPYING file at https://github.com/dovecot/core/blob/master/COPYING