aboutsummaryrefslogtreecommitdiff
path: root/tests/emails/thirdparty
diff options
context:
space:
mode:
Diffstat (limited to 'tests/emails/thirdparty')
-rw-r--r--tests/emails/thirdparty/000.eml20
-rw-r--r--tests/emails/thirdparty/001.eml25
-rw-r--r--tests/emails/thirdparty/002.eml20
-rw-r--r--tests/emails/thirdparty/003.eml35
-rw-r--r--tests/emails/thirdparty/004.eml41
-rw-r--r--tests/emails/thirdparty/005.emlbin0 -> 611 bytes
-rw-r--r--tests/emails/thirdparty/006.eml30
-rw-r--r--tests/emails/thirdparty/007.eml34
-rw-r--r--tests/emails/thirdparty/008.eml57
-rw-r--r--tests/emails/thirdparty/009.eml21
-rw-r--r--tests/emails/thirdparty/010.eml12
-rw-r--r--tests/emails/thirdparty/COPYING2
12 files changed, 297 insertions, 0 deletions
diff --git a/tests/emails/thirdparty/000.eml b/tests/emails/thirdparty/000.eml
new file mode 100644
index 0000000..6c0b9c4
--- /dev/null
+++ b/tests/emails/thirdparty/000.eml
@@ -0,0 +1,20 @@
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="bound"
+
+mime header
+
+--bound
+Content-Transfer-Encoding: base64
+Content-Type: text/plain
+
+d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz
+aWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk
+Z2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=
+--bound
+Content-Type: text/plain
+Content-Transfer-Encoding: base64
+
+ZWg=
+--bound--
+
diff --git a/tests/emails/thirdparty/001.eml b/tests/emails/thirdparty/001.eml
new file mode 100644
index 0000000..cfefd97
--- /dev/null
+++ b/tests/emails/thirdparty/001.eml
@@ -0,0 +1,25 @@
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="bound"
+
+mime header
+
+--bound
+Content-Transfer-Encoding: binary
+Content-Type: text/plain
+
+d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz
+aWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk
+Z2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=
+--bound
+Content-Type: text/plain
+Content-Transfer-Encoding: binary
+
+ZWg=
+--bound
+Content-Type: text/plain
+
+hello world
+
+--bound--
+
diff --git a/tests/emails/thirdparty/002.eml b/tests/emails/thirdparty/002.eml
new file mode 100644
index 0000000..113bcc5
--- /dev/null
+++ b/tests/emails/thirdparty/002.eml
@@ -0,0 +1,20 @@
+Content-Type: multipart/mixed; boundary=foo
+
+--foo
+Content-Transfer-Encoding: quoted-printable
+Content-Type: text/plain; charset=utf-8
+
+p=C3=A4iv=C3=A4=C3=A4
+
+--foo
+Content-Transfer-Encoding: base64
+Content-Type: text/plain; charset=utf-8
+
+ecO2dMOkIHZhYW4uCg== ignored
+--foo
+Content-Transfer-Encoding: base64
+Content-Type: text/plain; charset=utf-8
+
+?garbage
+--foo--
+
diff --git a/tests/emails/thirdparty/003.eml b/tests/emails/thirdparty/003.eml
new file mode 100644
index 0000000..4d832fb
--- /dev/null
+++ b/tests/emails/thirdparty/003.eml
@@ -0,0 +1,35 @@
+Content-Type: multipart/mixed; boundary="1"
+MIME-Version: 1.0
+
+--1
+Content-Transfer-Encoding: 7bit
+Content-Type: text/plain; charset=us-ascii
+
+Move black king to queen's bishop
+
+--1
+Content-Transfer-Encoding: binary
+Content-Type: text/plain; charset=UTF-8
+
+Move ♚ to ♛'s ♝
+
+--1
+Content-Transfer-Encoding: 8bit
+Content-Type: text/plain; charset=UTF-8
+
+Move ♚ to ♛'s ♝
+
+--1
+Content-Transfer-Encoding: quoted-printable
+Content-Type: text/plain; charset=UTF-8
+
+Move =E2=99=9A to =E2=99=9B's =E2=99=9D
+
+--1
+Content-Transfer-Encoding: base64
+Content-Type: text/plain; charset=UTF-8
+
+TW92ZSDimZogdG8g4pmbJ3Mg4pmdCg==
+
+--1--
+
diff --git a/tests/emails/thirdparty/004.eml b/tests/emails/thirdparty/004.eml
new file mode 100644
index 0000000..cf340a0
--- /dev/null
+++ b/tests/emails/thirdparty/004.eml
@@ -0,0 +1,41 @@
+Content-Type: multipart/mixed; boundary="1"
+MIME-Version: 1.0
+
+--1
+Content-Transfer-Encoding: 6bit
+Content-Type: text/plain; charset=UTF-8
+
+Move black king to queen's bishop
+
+--1
+Content-Transfer-Encoding: 7bits
+Content-Type: text/plain; charset=UTF-8
+
+Move ♚ to ♛'s ♝
+
+--1
+Content-Transfer-Encoding: 8 bit
+Content-Type: text/plain; charset=UTF-8
+
+Move ♚ to ♛'s ♝
+
+--1
+Content-Transfer-Encoding: 7-bit
+Content-Type: text/plain; charset=UTF-8
+
+Move ♚ to ♛'s ♝
+
+--1
+Content-Transfer-Encoding: 8-bit
+Content-Type: text/plain; charset=UTF-8
+
+Move ♚ to ♛'s ♝
+
+--1
+Content-Transfer-Encoding:
+Content-Type: text/plain; charset=UTF-8
+
+Move =E2=99=9A to =E2=99=9B's =E2=99=9D
+
+--1--
+
diff --git a/tests/emails/thirdparty/005.eml b/tests/emails/thirdparty/005.eml
new file mode 100644
index 0000000..05fdc79
--- /dev/null
+++ b/tests/emails/thirdparty/005.eml
Binary files differ
diff --git a/tests/emails/thirdparty/006.eml b/tests/emails/thirdparty/006.eml
new file mode 100644
index 0000000..9293548
--- /dev/null
+++ b/tests/emails/thirdparty/006.eml
@@ -0,0 +1,30 @@
+Subject: Hide and seek
+MIME-Version: 1.0
+Content-Type: multipart/mixed; boundary=1
+
+--1
+Content-Type: multipart/signed; protocol="signature/plain"; migalc="pen+paper"; boundary=2
+X-Signature-Type: penmanship
+
+--2
+Content-Type: multipart/alternative; boundary=3
+
+--3
+Content-Type: text/html; charset=us-ascii
+
+<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>
+
+--3
+Content-Type: text/plain
+Content-Transfer-Encoding: binary
+
+Search me, and Find me here
+--3--
+
+--2
+Content-Type: signature/plain; charset=us-ascii
+
+Signed by undersigned
+--2--
+
+--1--
diff --git a/tests/emails/thirdparty/007.eml b/tests/emails/thirdparty/007.eml
new file mode 100644
index 0000000..abbb8e9
--- /dev/null
+++ b/tests/emails/thirdparty/007.eml
@@ -0,0 +1,34 @@
+From: Moderator-Address <moderator>
+Content-Type: multipart/digest; boundary=1;
+
+
+--1
+
+From: someone-else <someone@else>
+Subject: my opinion
+
+This is my opinion
+--1
+
+From: another one <another@one>
+Subject: i disagree
+
+Not agreeing one bit!
+--1
+
+From: attachment <attachment@user>
+Subject: funny hat
+Content-Type: multipart/mixed; boundary=2
+
+--2
+Content-Type: text/plain
+Content-Transfer-Encoding: binary
+
+Lovely attachment for you
+--2
+Content-Type: application/octet-stream; disposition=attachment; name="test.txt"
+Content-Transfer-Encoding: binary
+
+Foobar
+--2--
+--1--
diff --git a/tests/emails/thirdparty/008.eml b/tests/emails/thirdparty/008.eml
new file mode 100644
index 0000000..dc26e96
--- /dev/null
+++ b/tests/emails/thirdparty/008.eml
@@ -0,0 +1,57 @@
+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: multipart/mixed; boundary="foo bar"
+
+Root MIME prologue
+
+--foo bar
+Content-Type: text/x-myown; charset=us-ascii
+
+hello
+
+--foo bar
+Content-Type: message/rfc822
+
+From: sub@domain.org
+Date: Sun, 12 Aug 2012 12:34:56 +0300
+Subject: submsg
+Content-Type: multipart/alternative; boundary="sub1"
+
+Sub MIME prologue
+--sub1
+Content-Type: text/html
+
+<p>Hello world</p>
+
+--sub1
+Content-Type: multipart/alternative; boundary="sub2"
+
+--sub2
+Content-Type: multipart/alternative; boundary="sub3"
+
+--sub3
+
+sub3 text
+--sub3
+
+sub3 text2
+--sub3--
+
+sub2 text
+--sub2
+
+sub2 text2
+--sub2--
+--sub1--
+Sub MIME epilogue
+
+--foo bar
+Content-Type: text/plain
+
+Another part
+--foo bar--
+Root MIME epilogue
+
+
diff --git a/tests/emails/thirdparty/009.eml b/tests/emails/thirdparty/009.eml
new file mode 100644
index 0000000..2b87d27
--- /dev/null
+++ b/tests/emails/thirdparty/009.eml
@@ -0,0 +1,21 @@
+Subject: In parts
+MIME-Version: 1.0
+Content-Type: multipart/mixed; boundary=1
+
+--1
+Content-Type: text/plain
+Content-Transfer-Encoding: binary
+
+Hi, this is the fancy thing I was talking about!
+--1
+Content-Type: Message/Partial; number=1; total=5; id="heks68ewe@example.org"
+
+X-Weird-Header-1: Bar
+X-Weird-Header-2: Hello
+Message-ID: <c6cceebc-1dcf-11eb-be8c-f7ca132cbfea@example.org>
+Content-Type: text/plain; charset="us-ascii"
+Content-Transfer-Encoding: base64
+
+dGhpcyBpcyB0aGUgZmlyc3QgcGFydCBvZiB0aGUgbWVzc2FnZQo=
+--1--
+
diff --git a/tests/emails/thirdparty/010.eml b/tests/emails/thirdparty/010.eml
new file mode 100644
index 0000000..12bcdb2
--- /dev/null
+++ b/tests/emails/thirdparty/010.eml
@@ -0,0 +1,12 @@
+Subject: =?UTF-8?B?44GT44KT44Gr44Gh44Gv?=
+MIME-Version: 1.0
+Content-Type: multipart/mixed; boundary=1; comment=""
+ comment="人権の無視及"
+
+--1
+Content-Type: text/plain
+Content-Transfer-Encoding: binary
+Content-Language: ja
+
+人権の無視及
+--1--
diff --git a/tests/emails/thirdparty/COPYING b/tests/emails/thirdparty/COPYING
new file mode 100644
index 0000000..e081952
--- /dev/null
+++ b/tests/emails/thirdparty/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