aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-07-05 10:17:42 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-07-05 10:17:42 +0200
commit744018c967b114f389090a9105d9cafac57d818f (patch)
tree395629fc8ce4d5c9035e5a9c90444165e39039e7
parentaca37b64c841037fce16ebbe63360ed5c9db17c8 (diff)
downloadaerogramme-744018c967b114f389090a9105d9cafac57d818f.tar.gz
aerogramme-744018c967b114f389090a9105d9cafac57d818f.zip
Add some test emails from mail-parser
-rw-r--r--tests/emails/COPYING6
-rw-r--r--tests/emails/legacy/000.eml44
-rw-r--r--tests/emails/legacy/001.eml35
-rw-r--r--tests/emails/legacy/002.eml37
-rw-r--r--tests/emails/legacy/003.eml64
-rw-r--r--tests/emails/legacy/004.eml19
-rw-r--r--tests/emails/legacy/005.eml33
-rw-r--r--tests/emails/legacy/006.eml84
-rw-r--r--tests/emails/legacy/007.eml32
-rw-r--r--tests/emails/legacy/008.eml136
-rw-r--r--tests/emails/legacy/009.eml37
-rw-r--r--tests/emails/legacy/010.eml22
-rw-r--r--tests/emails/legacy/011.eml30
-rw-r--r--tests/emails/legacy/012.eml31
-rw-r--r--tests/emails/legacy/013.eml32
-rw-r--r--tests/emails/legacy/014.eml73
-rw-r--r--tests/emails/legacy/015.eml199
-rw-r--r--tests/emails/legacy/016.eml96
-rw-r--r--tests/emails/legacy/017.eml103
-rw-r--r--tests/emails/legacy/018.eml139
-rw-r--r--tests/emails/legacy/019.eml145
-rw-r--r--tests/emails/legacy/020.eml32
-rw-r--r--tests/emails/legacy/021.eml189
-rw-r--r--tests/emails/legacy/022.eml31
-rw-r--r--tests/emails/legacy/023.eml109
-rw-r--r--tests/emails/legacy/024.eml110
-rw-r--r--tests/emails/legacy/025.eml172
-rw-r--r--tests/emails/legacy/026.eml85
-rw-r--r--tests/emails/legacy/027.eml32
-rw-r--r--tests/emails/legacy/028.eml157
-rw-r--r--tests/emails/legacy/029.eml28
-rw-r--r--tests/emails/legacy/030.eml112
-rw-r--r--tests/emails/legacy/031.eml97
-rw-r--r--tests/emails/legacy/032.eml134
-rw-r--r--tests/emails/legacy/033.eml34
-rw-r--r--tests/emails/legacy/034.eml27
-rw-r--r--tests/emails/legacy/035.eml213
-rw-r--r--tests/emails/legacy/036.eml27
-rw-r--r--tests/emails/legacy/037.eml52
-rw-r--r--tests/emails/legacy/038.eml18
-rw-r--r--tests/emails/legacy/039.eml172
-rw-r--r--tests/emails/legacy/040.eml29
-rw-r--r--tests/emails/legacy/041.eml58
-rw-r--r--tests/emails/legacy/042.eml59
-rw-r--r--tests/emails/legacy/043.eml62
-rw-r--r--tests/emails/legacy/044.eml138
-rw-r--r--tests/emails/legacy/045.eml43
-rw-r--r--tests/emails/legacy/046.eml33
-rw-r--r--tests/emails/legacy/047.eml61
-rw-r--r--tests/emails/legacy/048.eml156
-rw-r--r--tests/emails/legacy/049.eml132
-rw-r--r--tests/emails/legacy/050.eml110
-rw-r--r--tests/emails/legacy/051.eml162
-rw-r--r--tests/emails/legacy/052.eml28
-rw-r--r--tests/emails/legacy/053.eml33
-rw-r--r--tests/emails/legacy/COPYING85
-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
-rw-r--r--tests/emails/rfc/000.eml73
-rw-r--r--tests/emails/rfc/001.eml41
-rw-r--r--tests/emails/rfc/002.eml73
-rw-r--r--tests/emails/rfc/003.eml25
-rw-r--r--tests/emails/rfc/004.eml36
-rw-r--r--tests/emails/rfc/005.eml25
-rw-r--r--tests/emails/rfc/006.eml23
-rw-r--r--tests/emails/rfc/007.eml73
-rw-r--r--tests/emails/rfc/008.eml30
-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
-rw-r--r--tests/rm-mail-parser-expected-struct.py17
96 files changed, 5388 insertions, 0 deletions
diff --git a/tests/emails/COPYING b/tests/emails/COPYING
new file mode 100644
index 0000000..bdb7daa
--- /dev/null
+++ b/tests/emails/COPYING
@@ -0,0 +1,6 @@
+Emails from the rfc/ legacy/ malformed/ and thirdparty/ folders were imported from this repository:
+https://github.com/stalwartlabs/mail-parser
+Specific COPYING files are available in each folder to trace their authors.
+If nothing is stated in these folders, the following copyright applies: Copyright (C) 2020-2022, Stalwart Labs Ltd.
+And the distribution license is either BSD-2, MIT or Apache 2.
+
diff --git a/tests/emails/legacy/000.eml b/tests/emails/legacy/000.eml
new file mode 100644
index 0000000..0035f28
--- /dev/null
+++ b/tests/emails/legacy/000.eml
@@ -0,0 +1,44 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:35:05 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="redball.png"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/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2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+
diff --git a/tests/emails/legacy/001.eml b/tests/emails/legacy/001.eml
new file mode 100644
index 0000000..1ca6368
--- /dev/null
+++ b/tests/emails/legacy/001.eml
@@ -0,0 +1,35 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>,
+ =?utf-7?B?SitBUHctcmdlbiBTY2htK0FQdy1yZ2Vu?= <schmuergen@example.com>
+Subject: =?utf-7?Q?Die_Hasen_und_die_Fr+APY-sche_=28Microsoft_Outlook_00=29?=
+Date: Wed, 17 May 2000 19:18:39 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="utf-7"
+Content-Transfer-Encoding: quoted-printable
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Fr+APY-sche
+
+Die Hasen klagten einst +APw-ber ihre mi+AN8-liche Lage+ADs- +ACI-wir =
+leben+ACI-, sprach ein Redner, +ACI-in steter Furcht vor Menschen und =
+Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere+ACE- =
+Unsere stete Angst ist +AOQ-rger als der Tod selbst. Auf, la+AN8-t uns =
+ein f+APw-r allemal sterben.+ACI-=20
+
+In einem nahen Teich wollten sie sich nun ers+AOQ-ufen+ADs- sie eilten =
+ihm zu+ADs- allein das au+AN8-erordentliche Get+APY-se und ihre =
+wunderbare Gestalt erschreckte eine Menge Fr+APY-sche, die am Ufer =
+sa+AN8-en, so sehr, da+AN8- sie aufs schnellste untertauchten.=20
+
++ACI-Halt+ACI-, rief nun eben dieser Sprecher, +ACI-wir wollen das =
+Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie =
+ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
+m+APw-ssen als wir.+ACI-=20
+
+
diff --git a/tests/emails/legacy/002.eml b/tests/emails/legacy/002.eml
new file mode 100644
index 0000000..099697d
--- /dev/null
+++ b/tests/emails/legacy/002.eml
@@ -0,0 +1,37 @@
+Message-Id: <4.2.0.58.20000519003052.00a89c40@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:31:00 -0400
+To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
+Mime-Version: 1.0
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+</font></html>
+
+
diff --git a/tests/emails/legacy/003.eml b/tests/emails/legacy/003.eml
new file mode 100644
index 0000000..4f7021c
--- /dev/null
+++ b/tests/emails/legacy/003.eml
@@ -0,0 +1,64 @@
+Message-Id: <4.2.0.58.20000519002557.00a88870@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:29:55 -0400
+To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
+Mime-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="=====================_714967308==_.ALT"
+
+--=====================_714967308==_.ALT
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+--=====================_714967308==_.ALT
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+</font></html>
+
+--=====================_714967308==_.ALT--
+
+
diff --git a/tests/emails/legacy/004.eml b/tests/emails/legacy/004.eml
new file mode 100644
index 0000000..81bf415
--- /dev/null
+++ b/tests/emails/legacy/004.eml
@@ -0,0 +1,19 @@
+Message-Id: <4.2.0.58.20000519011207.00a8cd70@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 5 (Lowest)
+Date: Fri, 19 May 2000 01:13:19 -0400
+To: Joe Blow <blow@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: The Hare and the Tortoise
+Mime-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: "Though you be swift as the wind, I will beat you in a race." The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+
+
diff --git a/tests/emails/legacy/005.eml b/tests/emails/legacy/005.eml
new file mode 100644
index 0000000..66988e4
--- /dev/null
+++ b/tests/emails/legacy/005.eml
@@ -0,0 +1,33 @@
+From: "Doug Sauder" <doug@example.com>
+To: =?utf-7?Q?Heinz_M+APw-ller?= <mueller@example.com>
+Subject: =?utf-7?Q?Die_Hasen_und_die_Fr+APY-sche_=28Microsoft_Outlook_00=29?=
+Date: Wed, 17 May 2000 19:20:24 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="utf-7"
+Content-Transfer-Encoding: quoted-printable
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Fr+APY-sche
+
+Die Hasen klagten einst +APw-ber ihre mi+AN8-liche Lage+ADs- +ACI-wir =
+leben+ACI-, sprach ein Redner, +ACI-in steter Furcht vor Menschen und =
+Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere+ACE- =
+Unsere stete Angst ist +AOQ-rger als der Tod selbst. Auf, la+AN8-t uns =
+ein f+APw-r allemal sterben.+ACI-=20
+
+In einem nahen Teich wollten sie sich nun ers+AOQ-ufen+ADs- sie eilten =
+ihm zu+ADs- allein das au+AN8-erordentliche Get+APY-se und ihre =
+wunderbare Gestalt erschreckte eine Menge Fr+APY-sche, die am Ufer =
+sa+AN8-en, so sehr, da+AN8- sie aufs schnellste untertauchten.=20
+
++ACI-Halt+ACI-, rief nun eben dieser Sprecher, +ACI-wir wollen das =
+Ers+AOQ-ufen noch ein wenig aufschieben, denn auch uns f+APw-rchten, wie =
+ihr seht, einige Tiere, welche also wohl noch ungl+APw-cklicher sein =
+m+APw-ssen als wir.+ACI-=20
+
diff --git a/tests/emails/legacy/006.eml b/tests/emails/legacy/006.eml
new file mode 100644
index 0000000..09686c0
--- /dev/null
+++ b/tests/emails/legacy/006.eml
@@ -0,0 +1,84 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:36:13 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="----=_NextPart_000_0004_01BFC037.28F2FA90"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0004_01BFC037.28F2FA90
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+A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a3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+
+------=_NextPart_000_0004_01BFC037.28F2FA90
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbA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tSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+
+------=_NextPart_000_0004_01BFC037.28F2FA90--
+
diff --git a/tests/emails/legacy/007.eml b/tests/emails/legacy/007.eml
new file mode 100644
index 0000000..5d5a6ea
--- /dev/null
+++ b/tests/emails/legacy/007.eml
@@ -0,0 +1,32 @@
+From: "Doug Sauder" <doug@example.com>
+To: =?iso-8859-1?B?SvxyZ2VuIFNjaG38cmdlbg==?= <schmuergen@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche_=28Microsoft_Outlook_00=29?=
+Date: Wed, 17 May 2000 19:15:35 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der =
+Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
+=E4rger als der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt =
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF =
+sie aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch =
+ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
+Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
diff --git a/tests/emails/legacy/008.eml b/tests/emails/legacy/008.eml
new file mode 100644
index 0000000..841d0db
--- /dev/null
+++ b/tests/emails/legacy/008.eml
@@ -0,0 +1,136 @@
+From: "Doug Sauder" <doug@example.com>
+To: =?iso-8859-1?Q?Heinz_M=FCller?= <mueller@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:32:47 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="----=_NextPart_000_0002_01BFC036.AE309650"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0002_01BFC036.AE309650
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+The Hare and the Tortoise=20
+=20
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, =
+who replied, laughing: "Though you be swift as the wind, I will beat =
+you in a race." The Hare, believing her assertion to be simply =
+impossible, assented to the proposal; and they agreed that the Fox =
+should choose the course and fix the goal. On the day appointed for the =
+race the two started together. The Tortoise never for a moment stopped, =
+but went on with a slow but steady pace straight to the end of the =
+course. The Hare, lying down by the wayside, fell fast asleep. At last =
+waking up, and moving as fast as he could, he saw the Tortoise had =
+reached the goal, and was comfortably dozing after her fatigue. =20
+=20
+Slow but steady wins the race. =20
+
+------=_NextPart_000_0002_01BFC036.AE309650
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAA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AAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAADBMg1VAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAGISURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbssceb
+L5xznTsh5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+
+------=_NextPart_000_0002_01BFC036.AE309650
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAAIQAA
+CAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAhrQBCvRhj
+xjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBCzhDO55Te563G
+55SU52NS5yEh3gAYzg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LOSchyIgyOu22mgQSjUcDuNYcoGjLiLK1cHh
+0fHJaTKKOcMItgYxT89OzsfjyTTLC8UF0c2ZNmKquJhczq6ub+YmSVUYRF59GeDastu7+9nD41Nm
+kiJ2jc2J3kAWZ9Pr55fH18XSmRuKUTXUaqHy7O19tfr4NFle/w3YDrWRUIlZrL/W86XJkyJVG9Ea
+EjIx2XyZmZJGioeUaL+2AY8TY8omR6nkLKhu70zjUKVJXsp3quS2DVSJWNh3zzJKCyexI0ZxBP3a
+fE0ElyqOlZJyw8r3BE2SFiJCyxA434SCkg65RhdeQBljQtCg39LWrA90RDDG1EWrYUO23hMANUKR
+Rl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0RVh0Q29tbWVudABj
+bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+
+------=_NextPart_000_0002_01BFC036.AE309650
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AAC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BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+
+------=_NextPart_000_0002_01BFC036.AE309650--
+
diff --git a/tests/emails/legacy/009.eml b/tests/emails/legacy/009.eml
new file mode 100644
index 0000000..12d0575
--- /dev/null
+++ b/tests/emails/legacy/009.eml
@@ -0,0 +1,37 @@
+Message-Id: <4.2.0.58.20000519010441.00a8d140@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+Disposition-Notification-To: <dwsauder@example.com>
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 1 (Highest)
+Date: Fri, 19 May 2000 01:06:18 -0400
+To: =?iso-8859-1?Q?Jrgen?= =?iso-8859-1?Q?_Schmrgen?=
+ <jschmuergen@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: text/plain; charset="iso-8859-1"; format=flowed
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+=20
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=20
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+=20
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=20
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte=20
+eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs=
+ schnellste=20
+untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+=20
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=20
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
+
+
diff --git a/tests/emails/legacy/010.eml b/tests/emails/legacy/010.eml
new file mode 100644
index 0000000..70a060b
--- /dev/null
+++ b/tests/emails/legacy/010.eml
@@ -0,0 +1,22 @@
+Message-Id: <4.2.0.58.20000519010842.00a8c7f0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 1 (Highest)
+Date: Fri, 19 May 2000 01:10:27 -0400
+To: Heinz Mller <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: Die Hasen und die Frsche
+Mime-Version: 1.0
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: 8bit
+
+Die Hasen und die Frsche
+
+Die Hasen klagten einst ber ihre miliche Lage; "wir leben", sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist rger als der Tod selbst. Auf, lat uns ein fr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ersufen; sie eilten ihm zu; allein das auerordentliche Getse und ihre wunderbare Gestalt erschreckte eine Menge Frsche, die am Ufer saen, so sehr, da sie aufs schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersufen noch ein wenig aufschieben, denn auch uns frchten, wie ihr seht, einige Tiere, welche also wohl noch unglcklicher sein mssen als wir."
+
+
+
diff --git a/tests/emails/legacy/011.eml b/tests/emails/legacy/011.eml
new file mode 100644
index 0000000..e99b47e
--- /dev/null
+++ b/tests/emails/legacy/011.eml
@@ -0,0 +1,30 @@
+Message-Id: <4.2.0.58.20000519001217.00a85b60@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+Date: Fri, 19 May 2000 00:17:39 -0400
+To: =?iso-8859-1?Q?J=FCrgen?= =?iso-8859-1?Q?_Schm=FCrgen?=
+ <jschmuergen@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
+Mime-Version: 1.0
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+
diff --git a/tests/emails/legacy/012.eml b/tests/emails/legacy/012.eml
new file mode 100644
index 0000000..9601ddc
--- /dev/null
+++ b/tests/emails/legacy/012.eml
@@ -0,0 +1,31 @@
+From: "Doug Sauder" <doug@example.com>
+To: =?Windows-1252?Q?Heinz_M=FCller?= <mueller@example.com>
+Subject: =?Windows-1252?Q?Die_Hasen_und_die_Fr=F6sche_=28Microsoft_Outlook_00=29?=
+Date: Wed, 17 May 2000 19:30:20 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="Windows-1252"
+Content-Transfer-Encoding: quoted-printable
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der =
+Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
+=E4rger als der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt =
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF =
+sie aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch =
+ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
+Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
diff --git a/tests/emails/legacy/013.eml b/tests/emails/legacy/013.eml
new file mode 100644
index 0000000..b04196e
--- /dev/null
+++ b/tests/emails/legacy/013.eml
@@ -0,0 +1,32 @@
+From: "Doug Sauder" <doug@example.com>
+To: =?iso-8859-1?B?SvxyZ2VuIFNjaG38cmdlbg==?= <schmuergen@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche_=28Microsoft_Outlook_00=29?=
+Date: Wed, 17 May 2000 19:13:51 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: 8bit
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Frsche
+
+Die Hasen klagten einst ber ihre miliche Lage; "wir leben", sprach ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der
+Adler, ja fast aller Raubtiere! Unsere stete Angst ist rger als der Tod
+selbst. Auf, lat uns ein fr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ersufen; sie eilten ihm zu;
+allein das auerordentliche Getse und ihre wunderbare Gestalt erschreckte
+eine Menge Frsche, die am Ufer saen, so sehr, da sie aufs schnellste
+untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersufen noch ein
+wenig aufschieben, denn auch uns frchten, wie ihr seht, einige Tiere,
+welche also wohl noch unglcklicher sein mssen als wir."
+
+
diff --git a/tests/emails/legacy/014.eml b/tests/emails/legacy/014.eml
new file mode 100644
index 0000000..624aa44
--- /dev/null
+++ b/tests/emails/legacy/014.eml
@@ -0,0 +1,73 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:38:28 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_000_0005_01BFC037.799BEF60"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0005_01BFC037.799BEF60
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+The Hare and the Tortoise=20
+=20
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, =
+who replied, laughing: "Though you be swift as the wind, I will beat =
+you in a race." The Hare, believing her assertion to be simply =
+impossible, assented to the proposal; and they agreed that the Fox =
+should choose the course and fix the goal. On the day appointed for the =
+race the two started together. The Tortoise never for a moment stopped, =
+but went on with a slow but steady pace straight to the end of the =
+course. The Hare, lying down by the wayside, fell fast asleep. At last =
+waking up, and moving as fast as he could, he saw the Tortoise had =
+reached the goal, and was comfortably dozing after her fatigue. =20
+=20
+Slow but steady wins the race. =20
+
+
+------=_NextPart_000_0005_01BFC037.799BEF60
+Content-Type: text/html;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD>
+<META content=3D"text/html; charset=3Diso-8859-1" =
+http-equiv=3DContent-Type>
+<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
+<BODY>
+<DIV><FONT face=3DArial size=3D2><BR>The Hare and the Tortoise =
+<BR>&nbsp;<BR>A HARE=20
+one day ridiculed the short feet and slow pace of the Tortoise, who =
+replied,=20
+laughing:&nbsp; "Though you be swift as the wind, I will beat you in a=20
+race."&nbsp; The Hare, believing her assertion to be simply impossible, =
+assented=20
+to the proposal; and they agreed that the Fox should choose the course =
+and fix=20
+the goal.&nbsp; On the day appointed for the race the two started=20
+together.&nbsp; The Tortoise never for a moment stopped, but went on =
+with a slow=20
+but steady pace straight to the end of the course.&nbsp; The Hare, lying =
+down by=20
+the wayside, fell fast asleep.&nbsp; At last waking up, and moving as =
+fast as he=20
+could, he saw the Tortoise had reached the goal, and was comfortably =
+dozing=20
+after her fatigue.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the =
+race.&nbsp;=20
+<BR></FONT></DIV></BODY></HTML>
+
+------=_NextPart_000_0005_01BFC037.799BEF60--
+
diff --git a/tests/emails/legacy/015.eml b/tests/emails/legacy/015.eml
new file mode 100644
index 0000000..caa0178
--- /dev/null
+++ b/tests/emails/legacy/015.eml
@@ -0,0 +1,199 @@
+Message-Id: <4.2.0.58.20000519003556.00a918e0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:36:58 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_715392540==_"
+
+--=====================_715392540==_
+Content-Type: multipart/related;
+ type="multipart/alternative";
+ boundary="=====================_715392540==_.REL"
+
+--=====================_715392540==_.REL
+Content-Type: multipart/alternative;
+ boundary="=====================_715392550==_.ALT"
+
+--=====================_715392550==_.ALT
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+2aa3ed95.png2aa3edd1.png
+--=====================_715392550==_.ALT
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+</font><img src=3D"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.2"=
+ width=3D27 height=3D27 alt=3D"2aa3ed95.png"><img=
+ src=3D"cid:4.2.0.58.20000519003556.00a918e0@pop.example.com.3" width=3D27=
+ height=3D27 alt=3D"2aa3edd1.png"></html>
+
+--=====================_715392550==_.ALT--
+
+--=====================_715392540==_.REL
+Content-Type: image/png; name="2aa3ed95.png"
+Content-ID: <4.2.0.58.20000519003556.00a918e0@pop.example.com.2>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa3ed95.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+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V5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbssceb
+L5xznTsh5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715392540==_.REL
+Content-Type: image/png; name="2aa3edd1.png"
+Content-ID: <4.2.0.58.20000519003556.00a918e0@pop.example.com.3>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa3edd1.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QV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d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--=====================_715392540==_.REL--
+
+--=====================_715392540==_
+Content-Type: image/png; name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAA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acL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715392540==_
+Content-Type: image/png; name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAAIQAA
+CAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAhrQBCvRhj
+xjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBCzhDO55Te563G
+55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY1gAx5wBS7yFr7zlK
+7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AA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UVORK5CYII=
+--=====================_715392540==_--
+
+
diff --git a/tests/emails/legacy/016.eml b/tests/emails/legacy/016.eml
new file mode 100644
index 0000000..d3a6cce
--- /dev/null
+++ b/tests/emails/legacy/016.eml
@@ -0,0 +1,96 @@
+Message-Id: <4.2.0.58.20000519005150.00a85230@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+Date: Fri, 19 May 2000 00:53:25 -0400
+To: =?iso-8859-1?Q?Jrgen?= =?iso-8859-1?Q?_Schmrgen?=
+ <jschmuergen@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_716373961==_"
+
+--=====================_716373961==_
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+--=====================_716373961==_
+Content-Type: application/mac-binhex40; name="blueball.png"
+Content-Disposition: attachment; filename="blueball.png"
+
+
+(This file must be converted with BinHex 4.0)
+:$'*XG@9LB@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!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`6)093!!!!&d8Nj6!%$Qf'B!!!!
+@G%9BG&0[CR4hBA*P!'GTCM*`EQFJ-Li`,M%pAVjS!!!"L%P%394iR(A5E9HE-"J
+'i"*1J#B38T1'c!P-T`8LfUU,fka[fhcjrlmSHp*@l,((QbqFFjdl)H3CMBB%+%3
+SF+1G"$L+)9'#`iq-ai5Q%*+a+%(Ek(*1*hY##M&9+5Q5d!hUNNb,,rYI$mUUPP-
+0L!E%61pp1cckIR`bDeVCk5`bEhX'-ChX(jlfTfIRmkCX&iS`[#QkK'YaFGRhrG@
+2H929`P+@JhN-)M+4ecrlrYI[QeP6eN+"K@X,BlUm[Ekl[hr`Y9BZhXdp&PU8"hr
+qrV[aZp@Ldi5[c)dFCNqLRFfIAaT2FQV6,%i'5jGeeB"83!ZV+BrpGhTl,+L9E9P
+@YcA38QR#r2P@CQ+LTRAG3NQ+$SM$NKX,FjDUT445,MUVp'Y@4'De*&L!Lba9YZZ
+XY5VeK0FeIiJ`"p4++Ce5`SXS'3L+*Kpc3LPp*Cb2JGBVVX`KNmF&ij`cZ(HcD@e
+q0Q#54j!!(#B#EC2(!"Q$M3RIjHeZr@Z!i"R!E3h&EVDRk92jL,[MZ`2r!448c0L
+CD3kr!!!!*A4&@(4$EfeYC@jd!'0XDA!bCfPQ)(BZ-#if)'*j)&PfCA-J8'PRG@9
+d0R-l[!!!!!"*48j%VN*JJYqd!!!!:
+
+--=====================_716373961==_
+Content-Type: application/mac-binhex40; name="HasenundFrsche.txt"
+Content-Disposition: attachment; filename="HasenundFrsche.txt"
+
+
+(This file must be converted with BinHex 4.0)
+:%dKKFf9ZG@jN4R,fFf0SC5jdH(3!9%9B9(4dH(3!!!!!!Z-!!!!!4Pj%D@8J5'&
+cC@iJG@jN)'4TC5"'F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)!d09'8!!!:
+
+--=====================_716373961==_--
+
+
diff --git a/tests/emails/legacy/017.eml b/tests/emails/legacy/017.eml
new file mode 100644
index 0000000..832588d
--- /dev/null
+++ b/tests/emails/legacy/017.eml
@@ -0,0 +1,103 @@
+Message-Id: <4.2.0.58.20000519004755.00a86100@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+Date: Fri, 19 May 2000 00:50:08 -0400
+To: Jrgen Schmrgen <jschmuergen@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: The Hare and the Tortoise
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_716177458==_"
+
+--=====================_716177458==_
+Content-Type: text/plain; charset="us-ascii"
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: "Though you be swift as the wind, I will beat you in a race." The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+
+--=====================_716177458==_
+Content-Type: image/png; name="greenball.png"
+Content-Transfer-Encoding: x-uuencode
+Content-Disposition: attachment; filename="greenball.png"
+
+
+begin 600 greenball.png
+MB5!.1PT*&@H````-24A$4@```!L````;"`,```"Z"@1G```#`%!,5$7___\`
+M````$```&```(0``"```,0``0@``4@``6@``2@`(8P`(<P`(>P`0C``(:P``
+M.0``8P`0E``0G``AI0`0I0`AK0!"O1ACQC%CQCE2QB$IS@`8O0`0K0`8K0`A
+MO0"4UF.MUGN$UE)*WA@AU@`8Q@`8M0``*0!"SA#.YY3>YZW&YY24YV-2YR$A
+MW@`8S@!2WB&<YVO6[YR][XR$[U)"[Q"M[WNEWG-:[RDAYP`8U@`QYP!2[R%K
+M[SE*[Q@IYP`I[P`Q[P`(A``0M0``````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M```````````````````````````````````````````````````````````I
+MU?G9`````7123E,`0.;89@```!9T15AT4V]F='=A<F4`9VEF,G!N9R`R+C`N
+M,3U>OF@```%M241!5'B<==)M5\(@%`=P#VS(@,$$U^-<J=LH*^FYM"RS[_^9
+MB+F'LRSOJYWS._<R^-]>KRU;5>]/60`]SX,0^'\8HC[&`29]Y('?:!&F+.2<
+MAR(@R.NVVF@02C4<#N-8<H&C+B+*U<'AT?'):3**.<,(M@8Q3\].SL?CR33+
+M"\4%T<V9-F*JN)A<SJZN;^8F25481%Y]&>#:LMN[^]G#XU-FDB)VC<V)WD`6
+M9]/KYY?'U\72F1N*4374:J'R[.U]M?KX-%E>_PW8#K614(E9K+_6\Z7)DR)5
+M&]$:$C(QV7R9F9)&BH>4:+^V`8\38\HF1ZGD+*AN[TSC4*5)7LIWJN2V#52)
+M6-AWSS)*"R>Q(T9Q!/W:?$T$ERJ.E9)RP\KW!$V2%B)"RQ`XWX2"D@ZY1A=>
+M0!EC0M"@W]+6K`]T1##&U$6K84.VWA,`-4*11EZU$YV]<1^^#V&Y+*TTV=K_
+MJK<?N]NT5W;QG_7=A1_-8>>-T@@L+````"5T15AT0V]M;65N=`!C;&EP,F=I
+F9B!V+C`N-B!B>2!9=F5S(%!I9W5E=#9S.[P`````245.1*Y"8((`
+`
+end
+
+--=====================_716177458==_
+Content-Type: image/png; name="blueball.png"
+Content-Transfer-Encoding: x-uuencode
+Content-Disposition: attachment; filename="blueball.png"
+
+
+begin 600 blueball.png
+MB5!.1PT*&@H````-24A$4@```!L````;"`,```"Z"@1G```#`%!,5$7___\`
+M``@``!```!@`````""D`$$(`$$H`"#$`$%(((7,(*7L(*80((6L`&%H`"#D(
+M(6,0.9P80J480JT80K40.:40,90`&%(0,8PI4K4Y8\8Y8\XI6LX82LX80LX8
+M0KU":\9[G-:<O=Z,M=YCE.<Q:]XA4MX82M880L80,:4``"'.Y^_G[^^<QN]2
+MA.\I6N<0.:U*>\ZMSMZESN]:C.\0,9Q:A-:MUN?.[^^,O>]*>^\8.:482L:,
+MO>>UY^^4O>\``"E:C.=SI>]KG.\(*8PQ8^\I6N\((7L`````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M``````````````````````````````````````````````````````````#!
+M,@U5`````7123E,`0.;89@```!9T15AT4V]F='=A<F4`9VEF,G!N9R`R+C`N
+M,3U>OF@```&(241!5'B<==)M5YLP&`;@$DZ`)A!2DX;,"4RG!2+:JHO;K&_;
+M?/G_ORA[TE;LL<>;+YQSG3LAY!F-A@0H1"APHYT$.(HA48+#CXS'A*80DK$H
+M0=OH<DXG>T(*,54I*9+0#>J23(LO^U\/RJJ64PV(!L1,[WT[//I^?#)K6MGI
+M+#)O>P8QG>P?GO:G9^?SIFP7BC"\*;J$:W%QV??]U8]Y4]7"4I:#>0PB,I'7
+M/_O^U^^;65/60H&%:PMCNKR]OKN_?_"U5B[>S3T66I0'?_[^N_&[U:+3A*_,
+MC1QF3Z*=S9]?&D]R:M,L3@9+EW75@%1`"ZLIC_UW>GLLJ)5M65:W-=!2:<+\
+M^59F8J*F==U"28H.B,.2&PMSEJJE%%(N.JOT:U9$9K4D6("++%6VZZRU*O6$
+MUS5_B#`'U$HIG5+"BR@9"(HF'W-"*7TEG(^!UBNNS"&3QP7CG#.X=[-I;7XV
+M8))'D!PF`FV3QP`9@XT)W^7M;OUK@.`9P&T-Q6ZVI^E3^8B[X[L#_P$45,S8
+MF6D.OP```"5T15AT0V]M;65N=`!C;&EP,F=I9B!V+C`N-B!B>2!9=F5S(%!I
+49W5E=#9S.[P`````245.1*Y"8((`
+`
+end
+
+--=====================_716177458==_--
+
+
diff --git a/tests/emails/legacy/018.eml b/tests/emails/legacy/018.eml
new file mode 100644
index 0000000..5e3dc03
--- /dev/null
+++ b/tests/emails/legacy/018.eml
@@ -0,0 +1,139 @@
+Message-Id: <4.2.0.58.20000519003143.00a8d550@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:33:01 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/related;
+ type="multipart/alternative";
+ boundary="=====================_715157131==_.REL"
+
+--=====================_715157131==_.REL
+Content-Type: multipart/alternative;
+ boundary="=====================_715157141==_.ALT"
+
+--=====================_715157141==_.ALT
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+blueball.png
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+redball.png
+--=====================_715157141==_.ALT
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<img src=3D"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.0" width=3D27=
+ height=3D27 alt=3D"blueball.png"><br>
+<br>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+<img src=3D"cid:4.2.0.58.20000519003143.00a8d550@pop.example.com.1" width=3D27=
+ height=3D27 alt=3D"redball.png"></font></html>
+
+--=====================_715157141==_.ALT--
+
+--=====================_715157131==_.REL
+Content-Type: image/png; name="blueball.png"
+Content-ID: <4.2.0.58.20000519003143.00a8d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AAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAADBMg1VAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAGISURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbssceb
+L5xznTsh5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715157131==_.REL
+Content-Type: image/png; name="redball.png"
+Content-ID: <4.2.0.58.20000519003143.00a8d550@pop.example.com.1>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/AAByAACAAABcAAA3AAAsAABmAABDAABWAAAgAAAzAAA8AAA6AAAfAAAM
+AAAdAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAD8LtlFAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAIISURBVHicY2CAg/8QwIABmJhZWFnZ2Dk4MaU5uLh5eHn5+LkFBDlQJf8zC/EIi4iK
+iUtI8koJScsgyf5nlpWTV1BUUlZRVVPX4NFk1UJIyghp6+jq6RsYGhmbKJgK85mZW8Dk/rNaSlhZ
+29ja2Ts4Ojkr6Li4urFDNf53N/Ow8vTy9vH18w8IDAoWDQkNC4+ASP5ni4wKio6JjYtPSExKTnFW
+SE1LF4A69n9GZlZ2Tm5efkFhUXFySWlZlEd5RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--=====================_715157131==_.REL--
+
+
diff --git a/tests/emails/legacy/019.eml b/tests/emails/legacy/019.eml
new file mode 100644
index 0000000..0f29cfa
--- /dev/null
+++ b/tests/emails/legacy/019.eml
@@ -0,0 +1,145 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:42:10 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="----=_NextPart_000_0008_01BFC037.FDD8EE90"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0008_01BFC037.FDD8EE90
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_001_0009_01BFC037.FDD8EE90"
+
+
+------=_NextPart_001_0009_01BFC037.FDD8EE90
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+The Hare and the Tortoise=20
+=20
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, =
+who replied, laughing: "Though you be swift as the wind, I will beat =
+you in a race." The Hare, believing her assertion to be simply =
+impossible, assented to the proposal; and they agreed that the Fox =
+should choose the course and fix the goal. On the day appointed for the =
+race the two started together. The Tortoise never for a moment stopped, =
+but went on with a slow but steady pace straight to the end of the =
+course. The Hare, lying down by the wayside, fell fast asleep. At last =
+waking up, and moving as fast as he could, he saw the Tortoise had =
+reached the goal, and was comfortably dozing after her fatigue. =20
+=20
+Slow but steady wins the race. =20
+
+
+------=_NextPart_001_0009_01BFC037.FDD8EE90
+Content-Type: text/html;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD>
+<META content=3D"text/html; charset=3Diso-8859-1" =
+http-equiv=3DContent-Type>
+<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
+<BODY>
+<DIV><BR><FONT face=3DArial size=3D2>The Hare and the Tortoise =
+<BR>&nbsp;<BR>A HARE=20
+one day ridiculed the short feet and slow pace of the Tortoise, who =
+replied,=20
+laughing:&nbsp; "Though you be swift as the wind, I will beat you in a=20
+race."&nbsp; The Hare, believing her assertion to be simply impossible, =
+assented=20
+to the proposal; and they agreed that the Fox should choose the course =
+and fix=20
+the goal.&nbsp; On the day appointed for the race the two started=20
+together.&nbsp; The Tortoise never for a moment stopped, but went on =
+with a slow=20
+but steady pace straight to the end of the course.&nbsp; The Hare, lying =
+down by=20
+the wayside, fell fast asleep.&nbsp; At last waking up, and moving as =
+fast as he=20
+could, he saw the Tortoise had reached the goal, and was comfortably =
+dozing=20
+after her fatigue.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the =
+race.&nbsp;=20
+<BR></FONT></DIV></BODY></HTML>
+
+------=_NextPart_001_0009_01BFC037.FDD8EE90--
+
+------=_NextPart_000_0008_01BFC037.FDD8EE90
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAAIQAA
+CAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAhrQBCvRhj
+xjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBCzhDO55Te563G
+55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY1gAx5wBS7yFr7zlK
+7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAA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
+------=_NextPart_000_0008_01BFC037.FDD8EE90
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/AAByAACAAABcAAA3AAAsAABmAABDAABWAAAgAAAzAAA8AAA6AAAfAAAM
+AAAdAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAD8LtlFAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAIISURBVHicY2CAg/8QwIABmJhZWFnZ2Dk4MaU5uLh5eHn5+LkFBDlQJf8zC/EIi4iK
+iUtI8koJScsgyf5nlpWTV1BUUlZRVVPX4NFk1UJIyghp6+jq6RsYGhmbKJgK85mZW8Dk/rNaSlhZ
+29ja2Ts4Ojkr6Li4urFDNf53N/Ow8vTy9vH18w8IDAoWDQkNC4+ASP5ni4wKio6JjYtPSExKTnFW
+SE1LF4A69n9GZlZ2Tm5efkFhUXFySWlZlEd5RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+
+------=_NextPart_000_0008_01BFC037.FDD8EE90--
+
diff --git a/tests/emails/legacy/020.eml b/tests/emails/legacy/020.eml
new file mode 100644
index 0000000..1150a96
--- /dev/null
+++ b/tests/emails/legacy/020.eml
@@ -0,0 +1,32 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Jrgen Schmrgen" <schmuergen@example.com>
+Subject: Die Hasen und die Frsche (Microsoft Outlook 00)
+Date: Wed, 17 May 2000 19:08:29 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: 8bit
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Frsche
+
+Die Hasen klagten einst ber ihre miliche Lage; "wir leben", sprach ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der
+Adler, ja fast aller Raubtiere! Unsere stete Angst ist rger als der Tod
+selbst. Auf, lat uns ein fr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ersufen; sie eilten ihm zu;
+allein das auerordentliche Getse und ihre wunderbare Gestalt erschreckte
+eine Menge Frsche, die am Ufer saen, so sehr, da sie aufs schnellste
+untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersufen noch ein
+wenig aufschieben, denn auch uns frchten, wie ihr seht, einige Tiere,
+welche also wohl noch unglcklicher sein mssen als wir."
+
+
diff --git a/tests/emails/legacy/021.eml b/tests/emails/legacy/021.eml
new file mode 100644
index 0000000..0bb9478
--- /dev/null
+++ b/tests/emails/legacy/021.eml
@@ -0,0 +1,189 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:47:24 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="----=_NextPart_000_0010_01BFC038.B91BC650"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0010_01BFC038.B91BC650
+Content-Type: multipart/related;
+ boundary="----=_NextPart_001_0011_01BFC038.B91BC650"
+
+
+------=_NextPart_001_0011_01BFC038.B91BC650
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_002_0012_01BFC038.B91BC650"
+
+
+------=_NextPart_002_0012_01BFC038.B91BC650
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+
+The Hare and the Tortoise=20
+=20
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, =
+who replied, laughing: "Though you be swift as the wind, I will beat =
+you in a race." The Hare, believing her assertion to be simply =
+impossible, assented to the proposal; and they agreed that the Fox =
+should choose the course and fix the goal. On the day appointed for the =
+race the two started together. The Tortoise never for a moment stopped, =
+but went on with a slow but steady pace straight to the end of the =
+course. The Hare, lying down by the wayside, fell fast asleep. At last =
+waking up, and moving as fast as he could, he saw the Tortoise had =
+reached the goal, and was comfortably dozing after her fatigue. =20
+=20
+Slow but steady wins the race. =20
+
+
+
+------=_NextPart_002_0012_01BFC038.B91BC650
+Content-Type: text/html;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD>
+<META content=3D"text/html; charset=3Diso-8859-1" =
+http-equiv=3DContent-Type>
+<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
+<BODY>
+<DIV><FONT face=3DArial size=3D2><IMG align=3Dbaseline alt=3D"blue ball" =
+border=3D0=20
+hspace=3D0 src=3D"cid:938014623@17052000-0f9b"></FONT></DIV>
+<DIV><FONT face=3DArial size=3D2><BR>The Hare and the Tortoise =
+<BR>&nbsp;<BR>A HARE=20
+one day ridiculed the short feet and slow pace of the Tortoise, who =
+replied,=20
+laughing:&nbsp; "Though you be swift as the wind, I will beat you in a=20
+race."&nbsp; The Hare, believing her assertion to be simply impossible, =
+assented=20
+to the proposal; and they agreed that the Fox should choose the course =
+and fix=20
+the goal.&nbsp; On the day appointed for the race the two started=20
+together.&nbsp; The Tortoise never for a moment stopped, but went on =
+with a slow=20
+but steady pace straight to the end of the course.&nbsp; The Hare, lying =
+down by=20
+the wayside, fell fast asleep.&nbsp; At last waking up, and moving as =
+fast as he=20
+could, he saw the Tortoise had reached the goal, and was comfortably =
+dozing=20
+after her fatigue.&nbsp; <BR>&nbsp;<BR>Slow but steady wins the =
+race.&nbsp;=20
+</FONT></DIV>
+<DIV><FONT face=3DArial size=3D2><BR>&nbsp;</DIV></FONT></BODY></HTML>
+
+------=_NextPart_002_0012_01BFC038.B91BC650--
+
+------=_NextPart_001_0011_01BFC038.B91BC650
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-ID: <938014623@17052000-0f9b>
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+
+------=_NextPart_001_0011_01BFC038.B91BC650--
+
+------=_NextPart_000_0010_01BFC038.B91BC650
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAAIQAA
+CAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAhrQBCvRhj
+xjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBCzhDO55Te563G
+55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY1gAx5wBS7yFr7zlK
+7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+
+------=_NextPart_000_0010_01BFC038.B91BC650
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/AAByAACAAABcAAA3AAAsAABmAABDAABWAAAgAAAzAAA8AAA6AAAfAAAM
+AAAdAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAD8LtlFAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAIISURBVHicY2CAg/8QwIABmJhZWFnZ2Dk4MaU5uLh5eHn5+LkFBDlQJf8zC/EIi4iK
+iUtI8koJScsgyf5nlpWTV1BUUlZRVVPX4NFk1UJIyghp6+jq6RsYGhmbKJgK85mZW8Dk/rNaSlhZ
+29ja2Ts4Ojkr6Li4urFDNf53N/Ow8vTy9vH18w8IDAoWDQkNC4+ASP5ni4wKio6JjYtPSExKTnFW
+SE1LF4A69n9GZlZ2Tm5efkFhUXFySWlZlEd5RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+
+------=_NextPart_000_0010_01BFC038.B91BC650--
+
diff --git a/tests/emails/legacy/022.eml b/tests/emails/legacy/022.eml
new file mode 100644
index 0000000..0e62d12
--- /dev/null
+++ b/tests/emails/legacy/022.eml
@@ -0,0 +1,31 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Jrgen Schmrgen" <schmuergen@example.com>
+Subject: Die Hasen und die Frsche (Microsoft Outlook 00)
+Date: Wed, 17 May 2000 19:11:50 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: base64
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+RGllIEhhc2VuIHVuZCBkaWUgRnL2c2NoZQ0KDQpEaWUgSGFzZW4ga2xhZ3RlbiBlaW5zdCD8YmVy
+IGlocmUgbWnfbGljaGUgTGFnZTsgIndpciBsZWJlbiIsIHNwcmFjaCBlaW4gUmVkbmVyLCAiaW4g
+c3RldGVyIEZ1cmNodCB2b3IgTWVuc2NoZW4gdW5kIFRpZXJlbiwgZWluZSBCZXV0ZSBkZXIgSHVu
+ZGUsIGRlciBBZGxlciwgamEgZmFzdCBhbGxlciBSYXVidGllcmUhIFVuc2VyZSBzdGV0ZSBBbmdz
+dCBpc3Qg5HJnZXIgYWxzIGRlciBUb2Qgc2VsYnN0LiBBdWYsIGxh33QgdW5zIGVpbiBm/HIgYWxs
+ZW1hbCBzdGVyYmVuLiIgDQoNCkluIGVpbmVtIG5haGVuIFRlaWNoIHdvbGx0ZW4gc2llIHNpY2gg
+bnVuIGVyc+R1ZmVuOyBzaWUgZWlsdGVuIGlobSB6dTsgYWxsZWluIGRhcyBhdd9lcm9yZGVudGxp
+Y2hlIEdldPZzZSB1bmQgaWhyZSB3dW5kZXJiYXJlIEdlc3RhbHQgZXJzY2hyZWNrdGUgZWluZSBN
+ZW5nZSBGcvZzY2hlLCBkaWUgYW0gVWZlciBzYd9lbiwgc28gc2VociwgZGHfIHNpZSBhdWZzIHNj
+aG5lbGxzdGUgdW50ZXJ0YXVjaHRlbi4gDQoNCiJIYWx0IiwgcmllZiBudW4gZWJlbiBkaWVzZXIg
+U3ByZWNoZXIsICJ3aXIgd29sbGVuIGRhcyBFcnPkdWZlbiBub2NoIGVpbiB3ZW5pZyBhdWZzY2hp
+ZWJlbiwgZGVubiBhdWNoIHVucyBm/HJjaHRlbiwgd2llIGlociBzZWh0LCBlaW5pZ2UgVGllcmUs
+IHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNrbGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIu
+IiANCg==
+
+
diff --git a/tests/emails/legacy/023.eml b/tests/emails/legacy/023.eml
new file mode 100644
index 0000000..d116b49
--- /dev/null
+++ b/tests/emails/legacy/023.eml
@@ -0,0 +1,109 @@
+Message-Id: <4.2.0.58.20000519005505.00a853a0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+Date: Fri, 19 May 2000 00:56:13 -0400
+To: =?iso-8859-1?Q?Jrgen?= =?iso-8859-1?Q?_Schmrgen?=
+ <jschmuergen@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_716541962==_"
+
+--=====================_716541962==_
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+--=====================_716541962==_
+Content-Type: image/png; name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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716541962==_
+Content-Type: text/plain; charset="us-ascii"
+Content-Disposition: attachment; filename="farmerandstork.txt"
+
+
+The Farmer and the Stork
+
+A FARMER placed nets on his newly-sown plowlands and caught a
+number of Cranes, which came to pick up his seed. With them he
+trapped a Stork that had fractured his leg in the net and was
+earnestly beseeching the Farmer to spare his life. "Pray save
+me, Master," he said, "and let me go free this once. My broken
+limb should excite your pity. Besides, I am no Crane, I am a
+Stork, a bird of excellent character; and see how I love and
+slave for my father and mother. Look too, at my feathers--
+they are not the least like those of a Crane." The Farmer
+laughed aloud and said, "It may be all as you say, I only know
+this: I have taken you with these robbers, the Cranes, and you
+must die in their company."
+
+Birds of a feather flock together.
+
+--=====================_716541962==_
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+Content-Disposition: attachment; filename="HasenundFrsche.txt"
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+--=====================_716541962==_--
+
+
diff --git a/tests/emails/legacy/024.eml b/tests/emails/legacy/024.eml
new file mode 100644
index 0000000..007221c
--- /dev/null
+++ b/tests/emails/legacy/024.eml
@@ -0,0 +1,110 @@
+Message-Id: <4.2.0.58.20000519003735.00a8d7e0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:37:39 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/related;
+ type="text/html";
+ boundary="=====================_715429112==_.REL"
+
+--=====================_715429112==_.REL
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<img src=3D"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2" width=3D27=
+ height=3D27 alt=3D"2aa48eb6.png"><br>
+<br>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+<img src=3D"cid:4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3" width=3D27=
+ height=3D27 alt=3D"2aa48ec0.png"></font></html>
+
+--=====================_715429112==_.REL
+Content-Type: image/png; name="2aa48eb6.png"
+Content-ID: <4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa48eb6.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAADBMg1VAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAGISURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbssceb
+L5xznTsh5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715429112==_.REL
+Content-Type: image/png; name="2aa48ec0.png"
+Content-ID: <4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa48ec0.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/AAByAACAAABcAAA3AAAsAABmAABDAABWAAAgAAAzAAA8AAA6AAAfAAAM
+AAAdAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAD8LtlFAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAIISURBVHicY2CAg/8QwIABmJhZWFnZ2Dk4MaU5uLh5eHn5+LkFBDlQJf8zC/EIi4iK
+iUtI8koJScsgyf5nlpWTV1BUUlZRVVPX4NFk1UJIyghp6+jq6RsYGhmbKJgK85mZW8Dk/rNaSlhZ
+29ja2Ts4Ojkr6Li4urFDNf53N/Ow8vTy9vH18w8IDAoWDQkNC4+ASP5ni4wKio6JjYtPSExKTnFW
+SE1LF4A69n9GZlZ2Tm5efkFhUXFySWlZlEd5RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--=====================_715429112==_.REL--
+
+
diff --git a/tests/emails/legacy/025.eml b/tests/emails/legacy/025.eml
new file mode 100644
index 0000000..ad7c045
--- /dev/null
+++ b/tests/emails/legacy/025.eml
@@ -0,0 +1,172 @@
+Message-Id: <4.2.0.58.20000519003809.00a85140@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:38:13 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_715462801==_"
+
+--=====================_715462801==_
+Content-Type: multipart/related;
+ type="text/html";
+ boundary="=====================_715462801==_.REL"
+
+--=====================_715462801==_.REL
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+</font><img src=3D"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.2"=
+ width=3D27 height=3D27 alt=3D"2aa51367.png"><img=
+ src=3D"cid:4.2.0.58.20000519003809.00a85140@pop.example.com.3" width=3D27=
+ height=3D27 alt=3D"2aa51371.png"></html>
+
+--=====================_715462801==_.REL
+Content-Type: image/png; name="2aa51367.png"
+Content-ID: <4.2.0.58.20000519003809.00a85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AAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAADBMg1VAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAGISURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbssceb
+L5xznTsh5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715462801==_.REL
+Content-Type: image/png; name="2aa51371.png"
+Content-ID: <4.2.0.58.20000519003809.00a85140@pop.example.com.3>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa51371.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/AAByAACAAABcAAA3AAAsAABmAABDAABWAAAgAAAzAAA8AAA6AAAfAAAM
+AAAdAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAD8LtlFAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAIISURBVHicY2CAg/8QwIABmJhZWFnZ2Dk4MaU5uLh5eHn5+LkFBDlQJf8zC/EIi4iK
+iUtI8koJScsgyf5nlpWTV1BUUlZRVVPX4NFk1UJIyghp6+jq6RsYGhmbKJgK85mZW8Dk/rNaSlhZ
+29ja2Ts4Ojkr6Li4urFDNf53N/Ow8vTy9vH18w8IDAoWDQkNC4+ASP5ni4wKio6JjYtPSExKTnFW
+SE1LF4A69n9GZlZ2Tm5efkFhUXFySWlZlEd5RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--=====================_715462801==_.REL--
+
+--=====================_715462801==_
+Content-Type: image/png; name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9aj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+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715462801==_
+Content-Type: image/png; name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAAIQAA
+CAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAhrQBCvRhj
+xjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBCzhDO55Te563G
+55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY1gAx5wBS7yFr7zlK
+7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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I0ZxBP3a
+fE0ElyqOlZJyw8r3BE2SFiJCyxA434SCkg65RhdeQBljQtCg39LWrA90RDDG1EWrYUO23hMANUKR
+Rl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0RVh0Q29tbWVudABj
+bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--=====================_715462801==_--
+
+
diff --git a/tests/emails/legacy/026.eml b/tests/emails/legacy/026.eml
new file mode 100644
index 0000000..153ac2e
--- /dev/null
+++ b/tests/emails/legacy/026.eml
@@ -0,0 +1,85 @@
+Message-Id: <4.2.0.58.20000519005818.00a86aa0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+Date: Fri, 19 May 2000 00:59:31 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_716740438==_"
+
+--=====================_716740438==_
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+--=====================_716740438==_
+Content-Type: text/plain; name="HasenundFrsche.txt";
+ x-mac-type="54455854"; x-mac-creator="74747874"
+Content-Transfer-Encoding: x-uuencode
+Content-Disposition: attachment; filename="HasenundFrsche.txt"
+
+
+begin 600 HasenundFrsche.txt
+M1&EE($AA<V5N('5N9"!D:64@1G+V<V-H90T*#0I$:64@2&%S96X@:VQA9W1E
+M;B!E:6YS="#\8F5R(&EH<F4@;6G?;&EC:&4@3&%G93L@(G=I<B!L96)E;B(L
+M('-P<F%C:"!E:6X@4F5D;F5R+"`B:6X@<W1E=&5R($9U<F-H="!V;W(@365N
+M<V-H96X@=6YD(%1I97)E;BP@96EN92!"975T92!D97(@2'5N9&4L(&1E<B!!
+M9&QE<BP@:F$@9F%S="!A;&QE<B!2875B=&EE<F4A(%5N<V5R92!S=&5T92!!
+M;F=S="!I<W0@Y')G97(@86QS(&1E<B!4;V0@<V5L8G-T+B!!=68L(&QAWW0@
+M=6YS(&5I;B!F_'(@86QL96UA;"!S=&5R8F5N+B(@#0H-"DEN(&5I;F5M(&YA
+M:&5N(%1E:6-H('=O;&QT96X@<VEE('-I8V@@;G5N(&5R<^1U9F5N.R!S:64@
+M96EL=&5N(&EH;2!Z=3L@86QL96EN(&1A<R!A==]E<F]R9&5N=&QI8VAE($=E
+M=/9S92!U;F0@:6AR92!W=6YD97)B87)E($=E<W1A;'0@97)S8VAR96-K=&4@
+M96EN92!-96YG92!&<O9S8VAE+"!D:64@86T@569E<B!S8=]E;BP@<V\@<V5H
+M<BP@9&'?('-I92!A=69S('-C:&YE;&QS=&4@=6YT97)T875C:'1E;BX@#0H-
+M"B)(86QT(BP@<FEE9B!N=6X@96)E;B!D:65S97(@4W!R96-H97(L(")W:7(@
+M=V]L;&5N(&1A<R!%<G/D=69E;B!N;V-H(&5I;B!W96YI9R!A=69S8VAI96)E
+M;BP@9&5N;B!A=6-H('5N<R!F_')C:'1E;BP@=VEE(&EH<B!S96AT+"!E:6YI
+M9V4@5&EE<F4L('=E;&-H92!A;'-O('=O:&P@;F]C:"!U;F=L_&-K;&EC:&5R
+;('-E:6X@;?QS<V5N(&%L<R!W:7(N(B`-"@T*
+`
+end
+
+--=====================_716740438==_
+Content-Type: text/plain; charset="us-ascii"
+Content-Disposition: attachment; filename="farmerandstork.txt"
+
+
+The Farmer and the Stork
+
+A FARMER placed nets on his newly-sown plowlands and caught a
+number of Cranes, which came to pick up his seed. With them he
+trapped a Stork that had fractured his leg in the net and was
+earnestly beseeching the Farmer to spare his life. "Pray save
+me, Master," he said, "and let me go free this once. My broken
+limb should excite your pity. Besides, I am no Crane, I am a
+Stork, a bird of excellent character; and see how I love and
+slave for my father and mother. Look too, at my feathers--
+they are not the least like those of a Crane." The Farmer
+laughed aloud and said, "It may be all as you say, I only know
+this: I have taken you with these robbers, the Cranes, and you
+must die in their company."
+
+Birds of a feather flock together.
+
+--=====================_716740438==_--
+
+
diff --git a/tests/emails/legacy/027.eml b/tests/emails/legacy/027.eml
new file mode 100644
index 0000000..78b6eaf
--- /dev/null
+++ b/tests/emails/legacy/027.eml
@@ -0,0 +1,32 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Jrgen Schmrgen" <schmuergen@example.com>
+Subject: Die Hasen und die Frsche (Microsoft Outlook 00)
+Date: Wed, 17 May 2000 19:10:31 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGMEKBCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der =
+Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
+=E4rger als der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt =
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF =
+sie aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch =
+ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige =
+Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
diff --git a/tests/emails/legacy/028.eml b/tests/emails/legacy/028.eml
new file mode 100644
index 0000000..01fc733
--- /dev/null
+++ b/tests/emails/legacy/028.eml
@@ -0,0 +1,157 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:44:45 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGKEKFCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: multipart/related;
+ boundary="----=_NextPart_000_000C_01BFC038.5A5C8E60"
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_000C_01BFC038.5A5C8E60
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_001_000D_01BFC038.5A5C8E60"
+
+
+------=_NextPart_001_000D_01BFC038.5A5C8E60
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+
+The Hare and the Tortoise=20
+=20
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, =
+who replied, laughing: "Though you be swift as the wind, I will beat =
+you in a race." The Hare, believing her assertion to be simply =
+impossible, assented to the proposal; and they agreed that the Fox =
+should choose the course and fix the goal. On the day appointed for the =
+race the two started together. The Tortoise never for a moment stopped, =
+but went on with a slow but steady pace straight to the end of the =
+course. The Hare, lying down by the wayside, fell fast asleep. At last =
+waking up, and moving as fast as he could, he saw the Tortoise had =
+reached the goal, and was comfortably dozing after her fatigue. =20
+
+
+=20
+Slow but steady wins the race. =20
+
+
+
+
+------=_NextPart_001_000D_01BFC038.5A5C8E60
+Content-Type: text/html;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD>
+<META content=3D"text/html; charset=3Diso-8859-1" =
+http-equiv=3DContent-Type>
+<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
+<BODY>
+<DIV><FONT face=3DArial size=3D2><BR>The Hare and the Tortoise =
+<BR>&nbsp;<BR>A HARE=20
+one day ridiculed the short feet and slow pace of the Tortoise, who =
+replied,=20
+laughing:&nbsp; "Though you be swift as the wind, I will beat you in a=20
+race."&nbsp; The Hare, believing her assertion to be simply impossible, =
+assented=20
+to the proposal; and they agreed that the Fox should choose the course =
+and fix=20
+the goal.&nbsp; On the day appointed for the race the two started=20
+together.&nbsp; The Tortoise never for a moment stopped, but went on =
+with a slow=20
+but steady pace straight to the end of the course.&nbsp; The Hare, lying =
+down by=20
+the wayside, fell fast asleep.&nbsp; At last waking up, and moving as =
+fast as he=20
+could, he saw the Tortoise had reached the goal, and was comfortably =
+dozing=20
+after her fatigue.&nbsp;&nbsp;</FONT></DIV>
+<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
+<DIV><FONT face=3DArial size=3D2><IMG align=3Dbaseline alt=3D"blue ball" =
+border=3D0=20
+hspace=3D0 src=3D"cid:823504223@17052000-0f8d"><BR>&nbsp;<BR>Slow but =
+steady wins=20
+the race.&nbsp; </FONT></DIV>
+<DIV>&nbsp;</DIV>
+<DIV><FONT face=3DArial size=3D2><IMG align=3Dbaseline alt=3D"red ball" =
+border=3D0=20
+hspace=3D0 =
+src=3D"cid:823504223@17052000-0f94"><BR></DIV></FONT></BODY></HTML>
+
+------=_NextPart_001_000D_01BFC038.5A5C8E60--
+
+------=_NextPart_000_000C_01BFC038.5A5C8E60
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-ID: <823504223@17052000-0f8d>
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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C_01BFC038.5A5C8E60
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-ID: <823504223@17052000-0f94>
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzAACDAABuAAAe
+AAB+AADAAACkAACNAAB/AABpAABQAAAwAACRAACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACs
+AACvAACtAACmAACJAAB6AABrAABaAAA+AAApAABqAACCAACfAACeAACWAACPAAB8AAAZAAAHAABV
+AACOAACKAAA4AAAQAAA/AAByAACAAABcAAA3AAAsAABmAABDAABWAAAgAAAzAAA8AAA6AAAfAAAM
+AAAdAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAD8LtlFAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAIISURBVHicY2CAg/8QwIABmJhZWFnZ2Dk4MaU5uLh5eHn5+LkFBDlQJf8zC/EIi4iK
+iUtI8koJScsgyf5nlpWTV1BUUlZRVVPX4NFk1UJIyghp6+jq6RsYGhmbKJgK85mZW8Dk/rNaSlhZ
+29ja2Ts4Ojkr6Li4urFDNf53N/Ow8vTy9vH18w8IDAoWDQkNC4+ASP5ni4wKio6JjYtPSExKTnFW
+SE1LF4A69n9GZlZ2Tm5efkFhUXFySWlZlEd5RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+
+------=_NextPart_000_000C_01BFC038.5A5C8E60--
+
diff --git a/tests/emails/legacy/029.eml b/tests/emails/legacy/029.eml
new file mode 100644
index 0000000..b3297b7
--- /dev/null
+++ b/tests/emails/legacy/029.eml
@@ -0,0 +1,28 @@
+Message-ID: <392362D8.B650789F@example.com>
+Date: Wed, 17 May 2000 23:26:16 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+X-Priority: 1 (Highest)
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise,
+who replied, laughing: "Though you be swift as the wind, I will beat
+you in a race." The Hare, believing her assertion to be simply
+impossible, assented to the proposal; and they agreed that the Fox
+should choose the course and fix the goal. On the day appointed for the
+race the two started together. The Tortoise never for a moment stopped,
+but went on with a slow but steady pace straight to the end of the
+course. The Hare, lying down by the wayside, fell fast asleep. At last
+waking up, and moving as fast as he could, he saw the Tortoise had
+reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+
diff --git a/tests/emails/legacy/030.eml b/tests/emails/legacy/030.eml
new file mode 100644
index 0000000..eb286c1
--- /dev/null
+++ b/tests/emails/legacy/030.eml
@@ -0,0 +1,112 @@
+Message-ID: <3923635B.85C58444@example.com>
+Date: Wed, 17 May 2000 23:28:27 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------0BBC657DDC74A0B8454627FD"
+
+This is a multi-part message in MIME format.
+--------------0BBC657DDC74A0B8454627FD
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise,
+who replied, laughing: "Though you be swift as the wind, I will beat
+you in a race." The Hare, believing her assertion to be simply
+impossible, assented to the proposal; and they agreed that the Fox
+should choose the course and fix the goal. On the day appointed for the
+race the two started together. The Tortoise never for a moment stopped,
+but went on with a slow but steady pace straight to the end of the
+course. The Hare, lying down by the wayside, fell fast asleep. At last
+waking up, and moving as fast as he could, he saw the Tortoise had
+reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+--------------0BBC657DDC74A0B8454627FD
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9K
+e+8YOaUYSsaMvee15++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADB
+Mg1VAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAuMT1evmgAAAGI
+SURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbsscebL5xznTsh
+5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18PyqqW
+Uw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/M
+jRxmT6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1C
+SYoOiMOSGwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIom
+H3NCKX0lnI+B1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0N
+xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
+eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--------------0BBC657DDC74A0B8454627FD
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: in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AAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAp
+1fnZAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAuMT1evmgAAAFt
+SURBVHicddJtV8IgFAdwD2zIgMEE1+NcqdsoK+m5tCyz7/+ZiLmHsyzvq53zO/cy+N9ery1b
+Ve9PWQA9z4MQ+H8Yoj7GASZ95IHfaBGmLOSchyIgyOu22mgQSjUcDuNYcoGjLiLK1cHh0fHJ
+aTKKOcMItgYxT89OzsfjyTTLC8UF0c2ZNmKquJhczq6ub+YmSVUYRF59GeDastu7+9nD41Nm
+kiJ2jc2J3kAWZ9Pr55fH18XSmRuKUTXUaqHy7O19tfr4NFle/w3YDrWRUIlZrL/W86XJkyJV
+G9EaEjIx2XyZmZJGioeUaL+2AY8TY8omR6nkLKhu70zjUKVJXsp3quS2DVSJWNh3zzJKCyex
+I0ZxBP3afE0ElyqOlZJyw8r3BE2SFiJCyxA434SCkg65RhdeQBljQtCg39LWrA90RDDG1EWr
+YUO23hMANUKRRl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0
+RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5C
+YII=
+--------------0BBC657DDC74A0B8454627FD
+Content-Type: text/plain; charset=us-ascii;
+ name="hareandtoroise.txt"
+Content-Transfer-Encoding: 7bit
+Content-Disposition: inline;
+ filename="hareandtoroise.txt"
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: "Though you be swift as the wind, I will beat you in a race." The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+
+--------------0BBC657DDC74A0B8454627FD--
+
+
diff --git a/tests/emails/legacy/031.eml b/tests/emails/legacy/031.eml
new file mode 100644
index 0000000..fd2012a
--- /dev/null
+++ b/tests/emails/legacy/031.eml
@@ -0,0 +1,97 @@
+Date: Fri, 19 May 2000 09:55:48 -0400 (EDT)
+From: Doug Sauder <doug@penguin.example.com>
+To: Joe Blow <blow@example.com>
+Subject: Test message from PINE
+Message-ID: <Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com>
+MIME-Version: 1.0
+Content-Type: MULTIPART/MIXED; BOUNDARY="-1463757054-952513540-958744548=:8452"
+
+ This message is in MIME format. The first part should be readable text,
+ while the remaining parts are likely unreadable without MIME-aware tools.
+ Send mail to mime@docserver.cac.washington.edu for more info.
+
+---1463757054-952513540-958744548=:8452
+Content-Type: TEXT/PLAIN; charset=US-ASCII
+
+This is a test message from PINE MUA.
+
+
+---1463757054-952513540-958744548=:8452
+Content-Type: APPLICATION/octet-stream; name="redball.png"
+Content-Transfer-Encoding: BASE64
+Content-ID: <Pine.LNX.4.21.0005190955480.8452@penguin.example.com>
+Content-Description: A PNG graphic file
+Content-Disposition: attachment; filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8A
+AAABAAALAAAVAAAaAAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAj
+AAAWAAAmAABhAAB7AACGAACHAAB9AAB0AABgAAA5AAAUAAAGAAAnAABLAABv
+AACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABMAAB3AACZAAC0
+GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHf
+hITmf3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5Pl
+rKzpmZntZWXvJSXXAADBA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44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1
+a/acUG5piNz/uXLzVJ2qm6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2T
+VjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqVtWXrtu07BJihcsw71+zanRW8
+Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZwHBqL//8f
+lz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/
+joOyYed5QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms
+1y9evXid7QZacgOxmSxktNzdtSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAA
+JXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7
+vAAAAABJRU5ErkJggg==
+---1463757054-952513540-958744548=:8452
+Content-Type: APPLICATION/octet-stream; name="blueball.png"
+Content-Transfer-Encoding: BASE64
+Content-ID: <Pine.LNX.4.21.0005190955481.8452@penguin.example.com>
+Content-Description: A PNG graphic file
+Content-Disposition: attachment; filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8A
+AAgAABAAABgAAAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkI
+IWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4Y
+Qr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO5+/n7++cxu9S
+hO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaM
+vee15++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+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+jRxmT6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8
++VZmYqKmdd1CSYoOiMOSGwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE
+1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B1iuuzCGTxwXjnDO4d7NpbX42
+YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD/wEUVMzY
+mWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBp
+Z3VldDZzO7wAAAAASUVORK5CYII=
+---1463757054-952513540-958744548=:8452--
+
diff --git a/tests/emails/legacy/032.eml b/tests/emails/legacy/032.eml
new file mode 100644
index 0000000..22e2961
--- /dev/null
+++ b/tests/emails/legacy/032.eml
@@ -0,0 +1,134 @@
+Message-ID: <39235EAD.E48E2160@example.com>
+Date: Wed, 17 May 2000 23:08:29 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------C78F594988075E36AE03C243"
+
+This is a multi-part message in MIME format.
+--------------C78F594988075E36AE03C243
+Content-Type: multipart/alternative;
+ boundary="------------D74AE2393FB01D1B284AE257"
+
+
+--------------D74AE2393FB01D1B284AE257
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
+r
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs
+schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
+
+
+--------------D74AE2393FB01D1B284AE257
+Content-Type: text/html; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<b>Die Hasen und die Fr&ouml;sche</b>
+<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;liche Lage; "wir leben",
+sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute
+der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist &auml;rger
+als der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben."
+<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten
+ihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare
+Gestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so
+sehr, da&szlig; sie aufs schnellste untertauchten.
+<p>"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers&auml;ufen
+noch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,
+einige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen
+als wir."
+<br>&nbsp;
+<br>&nbsp;</html>
+
+--------------D74AE2393FB01D1B284AE257--
+
+--------------C78F594988075E36AE03C243
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAA
+IQAACAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjA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Z2lmMnBuZyAyLjAuMT1evmgAAAFt
+SURBVHicddJtV8IgFAdwD2zIgMEE1+NcqdsoK+m5tCyz7/+ZiLmHsyzvq53zO/cy+N9ery1b
+Ve9PWQA9z4MQ+H8Yoj7GASZ95IHfaBGmLOSchyIgyOu22mgQSjUcDuNYcoGjLiLK1cHh0fHJ
+aTKKOcMItgYxT89OzsfjyTTLC8UF0c2ZNmKquJhczq6ub+YmSVUYRF59GeDastu7+9nD41Nm
+kiJ2jc2J3kAWZ9Pr55fH18XSmRuKUTXUaqHy7O19tfr4NFle/w3YDrWRUIlZrL/W86XJkyJV
+G9EaEjIx2XyZmZJGioeUaL+2AY8TY8omR6nkLKhu70zjUKVJXsp3quS2DVSJWNh3zzJKCyex
+I0ZxBP3afE0ElyqOlZJyw8r3BE2SFiJCyxA434SCkg65RhdeQBljQtCg39LWrA90RDDG1EWr
+YUO23hMANUKRRl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0
+RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5C
+YII=
+--------------C78F594988075E36AE03C243
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9K
+e+8YOaUYSsaMvee15++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAA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iMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/M
+jRxmT6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1C
+SYoOiMOSGwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIom
+H3NCKX0lnI+B1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0N
+xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
+eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--------------C78F594988075E36AE03C243--
+
+
diff --git a/tests/emails/legacy/033.eml b/tests/emails/legacy/033.eml
new file mode 100644
index 0000000..c404ba4
--- /dev/null
+++ b/tests/emails/legacy/033.eml
@@ -0,0 +1,34 @@
+Message-ID: <392363E1.2AC47AB3@example.com>
+Date: Wed, 17 May 2000 23:30:41 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+X-Priority: 5 (Lowest)
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
+r
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben." =
+
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs
+schnellste untertauchten. =
+
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
diff --git a/tests/emails/legacy/034.eml b/tests/emails/legacy/034.eml
new file mode 100644
index 0000000..9833106
--- /dev/null
+++ b/tests/emails/legacy/034.eml
@@ -0,0 +1,27 @@
+Message-ID: <39236497.12FA2A89@example.com>
+Date: Wed, 17 May 2000 23:33:43 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: "Heinz M+APw-ller" <mueller@example.com>
+Subject: Die Hasen und die Fr+APY-sche
+Content-Type: text/plain; charset=UTF-7
+Content-Transfer-Encoding: 7bit
+
+Die Hasen und die Fr+XKM-he
+
+Die Hasen klagten einst +uGU-r ihre mi+B6w-iche Lage; "wir leben", sprach ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist +PGc-er als der
+Tod selbst. Auf, la+B7Q- uns ein f+vCA-allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers+PSY-en; sie eilten ihm zu;
+allein das au+B6U-rordentliche Get+XKU- und ihre wunderbare Gestalt
+erschreckte eine Menge Fr+XKM-he, die am Ufer sa+B6U-n, so sehr, da+B2A-sie aufs
+schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers+PSY-en noch ein
+wenig aufschieben, denn auch uns f+vGM-hten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl+uKs-licher sein m+vLM-en als wir."
+
diff --git a/tests/emails/legacy/035.eml b/tests/emails/legacy/035.eml
new file mode 100644
index 0000000..9fe7bc1
--- /dev/null
+++ b/tests/emails/legacy/035.eml
@@ -0,0 +1,213 @@
+Message-ID: <39235FC5.276CCE00@example.com>
+Date: Wed, 17 May 2000 23:13:09 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
+Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?= (Netscape Messenger 4.7)
+Content-Type: multipart/mixed;
+ boundary="------------A1E83A41894D3755390B838A"
+
+This is a multi-part message in MIME format.
+--------------A1E83A41894D3755390B838A
+Content-Type: multipart/alternative;
+ boundary="------------F03F94BA73D3B9E8C1B94D92"
+
+
+--------------F03F94BA73D3B9E8C1B94D92
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: quoted-printable
+
+[blue ball]
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
+r
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs
+schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
+[Image]
+
+
+
+--------------F03F94BA73D3B9E8C1B94D92
+Content-Type: multipart/related;
+ boundary="------------C02FA3D0A04E95F295FB25EB"
+
+
+--------------C02FA3D0A04E95F295FB25EB
+Content-Type: text/html; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<img SRC="cid:part1.39235FC5.E71D8178@example.com" ALT="blue ball" height=27 width=27><b></b>
+<p><b>Die Hasen und die Fr&ouml;sche</b>
+<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;liche Lage; "wir leben",
+sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute
+der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist &auml;rger
+als der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben."
+<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten
+ihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare
+Gestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so
+sehr, da&szlig; sie aufs schnellste untertauchten.
+<p>"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers&auml;ufen
+noch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,
+einige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen
+als wir."
+<p><img SRC="cid:part2.39235FC5.E71D8178@example.com" height=27 width=27>
+<br>&nbsp;
+<br>&nbsp;</html>
+
+--------------C02FA3D0A04E95F295FB25EB
+Content-Type: image/png
+Content-ID: <part1.39235FC5.E71D8178@example.com>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="C:\TEMP\nsmailEG.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9K
+e+8YOaUYSsaMvee15++Uve8AAClajOdz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+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/M
+jRxmT6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1C
+SYoOiMOSGwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIom
+H3NCKX0lnI+B1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0N
+xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
+eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--------------C02FA3D0A04E95F295FB25EB
+Content-Type: image/png
+Content-ID: <part2.39235FC5.E71D8178@example.com>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="C:\TEMP\nsmail39.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAV
+AAAaAAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACH
+AAB9AAB0AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABb
+AAAuAAAIAABMAAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACa
+AAC7JCTRYWHfhITmf3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5Pl
+rKzpmZntZWXvJSXXAADBAACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzr
+pqbtiorvUVHvFBTRAADDAAC2AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjv
+V1fvJibhAADOAAC3AACnAACVAABHAAArAAAPA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W8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36Kw
+bNmRo7O3zpHkPSZwHBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8
+YVOlI+CJ4/9/joOyYed5QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms
+1y9evXid7QZacgOxmSxktNzdtSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21t
+ZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--------------C02FA3D0A04E95F295FB25EB--
+
+--------------F03F94BA73D3B9E8C1B94D92--
+
+--------------A1E83A41894D3755390B838A
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAV
+AAAaAAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACH
+AAB9AAB0AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABb
+AAAuAAAIAABMAAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACa
+AAC7JCTRYWHfhITmf3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5Pl
+rKzpmZntZWXvJSXXAADBAACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzr
+pqbtiorvUVHvFBTRAADDAAC2AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjv
+V1fvJibhAADOAAC3AACnAACVAABHAAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQ
+AADJAAC1AACXAACEAABsAABPAAASAAACAABiAADpAADvAgLnAADYAADLAAC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I2gIuF8F2lr/D5dw2+fZdwpl8
+YVOlI+CJ4/9/joOyYed5QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms
+1y9evXid7QZacgOxmSxktNzdtSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21t
+ZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--------------A1E83A41894D3755390B838A
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAA
+IQAACAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAh
+rQBCvRhjxjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBC
+zhDO55Te563G55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY
+1gAx5wBS7yFr7zlK7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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A41894D3755390B838A--
+
+
diff --git a/tests/emails/legacy/036.eml b/tests/emails/legacy/036.eml
new file mode 100644
index 0000000..8aa37e8
--- /dev/null
+++ b/tests/emails/legacy/036.eml
@@ -0,0 +1,27 @@
+Date: Fri, 19 May 2000 10:18:03 -0400 (EDT)
+From: Doug Sauder <doug@penguin.example.com>
+To: =?iso-8859-1?Q?J=FCrgen_Schm=FCrgen?= <schmuergen@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
+Message-ID: <Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com>
+MIME-Version: 1.0
+Content-Type: TEXT/PLAIN; charset=iso-8859-1
+Content-Transfer-Encoding: QUOTED-PRINTABLE
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ei=
+n Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, =
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der =
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; al=
+lein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt erschreckt=
+e eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs schnel=
+lste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein =
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere, we=
+lche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+
+
diff --git a/tests/emails/legacy/037.eml b/tests/emails/legacy/037.eml
new file mode 100644
index 0000000..079bea9
--- /dev/null
+++ b/tests/emails/legacy/037.eml
@@ -0,0 +1,52 @@
+Message-ID: <392366A7.21929EA7@example.com>
+Date: Wed, 17 May 2000 23:42:31 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------E7889DDF0F75D34163841C59"
+
+This is a multi-part message in MIME format.
+--------------E7889DDF0F75D34163841C59
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+--------------E7889DDF0F75D34163841C59
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9K
+e+8YOaUYSsaMvee15++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAA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+
+
diff --git a/tests/emails/legacy/038.eml b/tests/emails/legacy/038.eml
new file mode 100644
index 0000000..00c7a1c
--- /dev/null
+++ b/tests/emails/legacy/038.eml
@@ -0,0 +1,18 @@
+Message-ID: <3923625B.59F0C3AC@example.com>
+Date: Wed, 17 May 2000 23:24:11 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: "Though you be swift as the wind, I will beat you in a race." The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+
diff --git a/tests/emails/legacy/039.eml b/tests/emails/legacy/039.eml
new file mode 100644
index 0000000..62c7ed9
--- /dev/null
+++ b/tests/emails/legacy/039.eml
@@ -0,0 +1,172 @@
+Message-ID: <39236103.FFE674FC@example.com>
+Date: Wed, 17 May 2000 23:18:27 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: =?iso-8859-1?Q?J=FCrgen=20Schm=FCrgen?= <schmuergen@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------B7133A01A6B323BF00DBC9A7"
+
+This is a multi-part message in MIME format.
+--------------B7133A01A6B323BF00DBC9A7
+Content-Type: multipart/related;
+ boundary="------------8E6A06810565BCAB5E1F7D97"
+
+
+--------------8E6A06810565BCAB5E1F7D97
+Content-Type: text/html; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<img SRC="cid:part1.39236103.1B697A54@example.com" ALT="blue ball" height=27 width=27><b></b>
+<p><b><font size=+2>Die Hasen und die Fr&ouml;sche</font></b>
+<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;liche Lage; "wir leben",
+sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute
+der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist &auml;rger
+als der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben."
+<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten
+ihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare
+Gestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so
+sehr, da&szlig; sie aufs schnellste untertauchten.
+<p>"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers&auml;ufen
+noch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,
+einige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen
+als wir."
+<p><img SRC="cid:part2.39236103.1B697A54@example.com" ALT="red ball" height=27 width=27></html>
+
+--------------8E6A06810565BCAB5E1F7D97
+Content-Type: image/png
+Content-ID: <part1.39236103.1B697A54@example.com>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="C:\TEMP\nsmailV0.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tz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LQDeqSTIsv+18PyqqW
+Uw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/M
+jRxmT6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1C
+SYoOiMOSGwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIom
+H3NCKX0lnI+B1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0N
+xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
+eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--------------8E6A06810565BCAB5E1F7D97
+Content-Type: image/png
+Content-ID: <part2.39236103.1B697A54@example.com>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="C:\TEMP\nsmailNM.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAV
+AAAaAAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACH
+AAB9AAB0AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABb
+AAAuAAAIAABMAAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACa
+AAC7JCTRYWHfhITmf3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5Pl
+rKzpmZntZWXvJSXXAADBAACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzr
+pqbtiorvUVHvFBTRAADDAAC2AAB4AABeAABAAAAiAABX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2TVjqvyhJLXb1m7TqoHPt6F/HW
+0g0bN63crGqVtWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36Kw
+bNmRo7O3zpHkPSZwHBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8
+YVOlI+CJ4/9/joOyYed5QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms
+1y9evXid7QZacgOxmSxktNzdtSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21t
+ZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--------------8E6A06810565BCAB5E1F7D97--
+
+--------------B7133A01A6B323BF00DBC9A7
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAA
+IQAACAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAh
+rQBCvRhjxjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBC
+zhDO55Te563G55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY
+1gAx5wBS7yFr7zlK7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ljQtCg39LWrA90RDDG1EWr
+YUO23hMANUKRRl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0
+RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5C
+YII=
+--------------B7133A01A6B323BF00DBC9A7
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9K
+e+8YOaUYSsaMvee15++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ml b/tests/emails/legacy/040.eml
new file mode 100644
index 0000000..bcd4132
--- /dev/null
+++ b/tests/emails/legacy/040.eml
@@ -0,0 +1,29 @@
+Message-ID: <39236653.CAA8A090@example.com>
+Date: Wed, 17 May 2000 23:41:07 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: =?iso-8859-1?Q?J=FCrgen=20Schm=FCrgen?= <schmuergen@example.com>
+Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?=
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hun=
+de, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger al=
+s der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben." =
+
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt erschr=
+eckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs =
+schnellste untertauchten. =
+
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
+, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
diff --git a/tests/emails/legacy/041.eml b/tests/emails/legacy/041.eml
new file mode 100644
index 0000000..3ea77b5
--- /dev/null
+++ b/tests/emails/legacy/041.eml
@@ -0,0 +1,58 @@
+Date: Fri, 19 May 2000 10:23:16 -0400 (EDT)
+From: Doug Sauder <doug@penguin.example.com>
+To: =?iso-8859-1?Q?Heinz_M=FCller?= <mueller@example.com>
+Subject: PNG graphic
+Message-ID: <Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com>
+MIME-Version: 1.0
+Content-Type: MULTIPART/MIXED; BOUNDARY="-1463757054-170444605-958746196=:8452"
+
+ This message is in MIME format. The first part should be readable text,
+ while the remaining parts are likely unreadable without MIME-aware tools.
+ Send mail to mime@docserver.cac.washington.edu for more info.
+
+---1463757054-170444605-958746196=:8452
+Content-Type: TEXT/PLAIN; charset=US-ASCII
+
+
+---1463757054-170444605-958746196=:8452
+Content-Type: APPLICATION/octet-stream; name="redball.png"
+Content-Transfer-Encoding: BASE64
+Content-ID: <Pine.LNX.4.21.0005191023160.8452@penguin.example.com>
+Content-Description: red ball
+Content-Disposition: attachment; filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8A
+AAABAAALAAAVAAAaAAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAj
+AAAWAAAmAABhAAB7AACGAACHAAB9AAB0AABgAAA5AAAUAAAGAAAnAABLAABv
+AACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABMAAB3AACZAAC0
+GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHf
+hITmf3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5Pl
+rKzpmZntZWXvJSXXAADBAACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADL
+ICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2AAB4AABeAABAAAAiAABXAACS
+AADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABHAAArAAAP
+AACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABP
+AAASAAACAABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADI
+AADTAADNAACzAACDAABuAAAeAAB+AADAAACkAACNAAB/AABpAABQAAAwAACR
+AACpAAC8AACqAACbAABlAABJAAAqAAAOAAA0AACsAACvAAC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OxmSxktNzdtSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAA
+JXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7
+vAAAAABJRU5ErkJggg==
+---1463757054-170444605-958746196=:8452--
+
diff --git a/tests/emails/legacy/042.eml b/tests/emails/legacy/042.eml
new file mode 100644
index 0000000..bce705a
--- /dev/null
+++ b/tests/emails/legacy/042.eml
@@ -0,0 +1,59 @@
+Message-ID: <3923686C.99FB5E36@example.com>
+Date: Wed, 17 May 2000 23:50:04 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------77060D866A66DC8D0921E051"
+
+This is a multi-part message in MIME format.
+--------------77060D866A66DC8D0921E051
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise,
+who replied, laughing: "Though you be swift as the wind, I will beat
+you in a race." The Hare, believing her assertion to be simply
+impossible, assented to the proposal; and they agreed that the Fox
+should choose the course and fix the goal. On the day appointed for the
+race the two started together. The Tortoise never for a moment stopped,
+but went on with a slow but steady pace straight to the end of the
+course. The Hare, lying down by the wayside, fell fast asleep. At last
+waking up, and moving as fast as he could, he saw the Tortoise had
+reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+--------------77060D866A66DC8D0921E051
+Content-Type: text/plain; charset=us-ascii;
+ name="farmerandstork.txt"
+Content-Transfer-Encoding: 7bit
+Content-Disposition: inline;
+ filename="farmerandstork.txt"
+
+
+The Farmer and the Stork
+
+A FARMER placed nets on his newly-sown plowlands and caught a
+number of Cranes, which came to pick up his seed. With them he
+trapped a Stork that had fractured his leg in the net and was
+earnestly beseeching the Farmer to spare his life. "Pray save
+me, Master," he said, "and let me go free this once. My broken
+limb should excite your pity. Besides, I am no Crane, I am a
+Stork, a bird of excellent character; and see how I love and
+slave for my father and mother. Look too, at my feathers--
+they are not the least like those of a Crane." The Farmer
+laughed aloud and said, "It may be all as you say, I only know
+this: I have taken you with these robbers, the Cranes, and you
+must die in their company."
+
+Birds of a feather flock together.
+
+--------------77060D866A66DC8D0921E051--
+
+
diff --git a/tests/emails/legacy/043.eml b/tests/emails/legacy/043.eml
new file mode 100644
index 0000000..92a7c7b
--- /dev/null
+++ b/tests/emails/legacy/043.eml
@@ -0,0 +1,62 @@
+Message-ID: <392359CF.DFF4527@example.com>
+Date: Wed, 17 May 2000 22:47:43 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Heinz =?iso-8859-1?Q?M=FCller?= <mueller@example.com>
+Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?= (Netscape Communicator 4.7)
+Content-Type: multipart/alternative;
+ boundary="------------9D454F23DA86BCD63FA3805F"
+
+
+--------------9D454F23DA86BCD63FA3805F
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
+r
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs
+schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
+
+
+--------------9D454F23DA86BCD63FA3805F
+Content-Type: text/html; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<b>Die Hasen und die Fr&ouml;sche</b>
+<p>Die Hasen klagten einst &uuml;ber ihre mi&szlig;liche Lage; "wir leben",
+sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute
+der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist &auml;rger
+als der Tod selbst. Auf, la&szlig;t uns ein f&uuml;r allemal sterben."
+<p>In einem nahen Teich wollten sie sich nun ers&auml;ufen; sie eilten
+ihm zu; allein das au&szlig;erordentliche Get&ouml;se und ihre wunderbare
+Gestalt erschreckte eine Menge Fr&ouml;sche, die am Ufer sa&szlig;en, so
+sehr, da&szlig; sie aufs schnellste untertauchten.
+<p>"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers&auml;ufen
+noch ein wenig aufschieben, denn auch uns f&uuml;rchten, wie ihr seht,
+einige Tiere, welche also wohl noch ungl&uuml;cklicher sein m&uuml;ssen
+als wir."
+<br>&nbsp;
+<br>&nbsp;</html>
+
+--------------9D454F23DA86BCD63FA3805F--
+
diff --git a/tests/emails/legacy/044.eml b/tests/emails/legacy/044.eml
new file mode 100644
index 0000000..2d91487
--- /dev/null
+++ b/tests/emails/legacy/044.eml
@@ -0,0 +1,138 @@
+Message-ID: <39235E1C.1DC7EA90@example.com>
+Date: Wed, 17 May 2000 23:06:04 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------A1FCDEE154E03D875E5D6779"
+
+This is a multi-part message in MIME format.
+--------------A1FCDEE154E03D875E5D6779
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
+r
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs
+schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
+
+
+--------------A1FCDEE154E03D875E5D6779
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="redball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAV
+AAAaAAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACH
+AAB9AAB0AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABb
+AAAuAAAIAABMAAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACa
+AAC7JCTRYWHfhITmf3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5Pl
+rKzpmZntZWXvJSXXAADBAACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzr
+pqbtiorvUVHvFBTRAADDAAC2AAB4AABeAABAAAAiAABXAACS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jqvyhJLXb1m7TqoHPt6F/HW
+0g0bN63crGqVtWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36Kw
+bNmRo7O3zpHkPSZwHBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8
+YVOlI+CJ4/9/joOyYed5QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms
+1y9evXid7QZacgOxmSxktNzdtSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21t
+ZW50AGNsaXAyZ2lmIHYuMC42IGJ5IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--------------A1FCDEE154E03D875E5D6779
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="greenball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAAAEAAAGAAA
+IQAACAAAMQAAQgAAUgAAWgAASgAIYwAIcwAIewAQjAAIawAAOQAAYwAQlAAQnAAhpQAQpQAh
+rQBCvRhjxjFjxjlSxiEpzgAYvQAQrQAYrQAhvQCU1mOt1nuE1lJK3hgh1gAYxgAYtQAAKQBC
+zhDO55Te563G55SU52NS5yEh3gAYzgBS3iGc52vW75y974yE71JC7xCt73ul3nNa7ykh5wAY
+1gAx5wBS7yFr7zlK7xgp5wAp7wAx7wAIhAAQtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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RRl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0
+RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5C
+YII=
+--------------A1FCDEE154E03D875E5D6779
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline;
+ filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgA
+AAAACCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQ
+MZQAGFIQMYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYY
+QsYQMaUAACHO5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9K
+e+8YOaUYSsaMvee15++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADB
+Mg1VAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAuMT1evmgAAAGI
+SURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbsscebL5xznTsh
+5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18PyqqW
+Uw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/M
+jRxmT6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1C
+SYoOiMOSGwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIom
+H3NCKX0lnI+B1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0N
+xW62p+lT+Yi747sD/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBi
+eSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--------------A1FCDEE154E03D875E5D6779--
+
diff --git a/tests/emails/legacy/045.eml b/tests/emails/legacy/045.eml
new file mode 100644
index 0000000..3c146af
--- /dev/null
+++ b/tests/emails/legacy/045.eml
@@ -0,0 +1,43 @@
+Date: Fri, 19 May 2000 10:26:12 -0400 (EDT)
+From: Doug Sauder <doug@penguin.example.com>
+To: Joe Blow <blow@example.com>,
+ =?iso-8859-1?Q?Heinz_M=FCller?= <mueller@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
+Message-ID: <Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com>
+MIME-Version: 1.0
+Content-Type: MULTIPART/MIXED; BOUNDARY="-1463757054-891160829-958746372=:8452"
+
+ This message is in MIME format. The first part should be readable text,
+ while the remaining parts are likely unreadable without MIME-aware tools.
+ Send mail to mime@docserver.cac.washington.edu for more info.
+
+---1463757054-891160829-958746372=:8452
+Content-Type: TEXT/PLAIN; charset=US-ASCII
+
+
+---1463757054-891160829-958746372=:8452
+Content-Type: TEXT/PLAIN; charset=iso-8859-1; name*="iso-8859-1''HasenundFr%F6sche.txt"
+Content-Transfer-Encoding: BASE64
+Content-ID: <Pine.LNX.4.21.0005191026120.8452@penguin.example.com>
+Content-Description: Short story in German
+Content-Disposition: attachment; filename*="iso-8859-1''HasenundFr%F6sche.txt"
+
+RGllIEhhc2VuIHVuZCBkaWUgRnL2c2NoZQ0NCg0NCkRpZSBIYXNlbiBrbGFn
+dGVuIGVpbnN0IPxiZXIgaWhyZSBtad9saWNoZSBMYWdlOyAid2lyIGxlYmVu
+Iiwgc3ByYWNoIGVpbiBSZWRuZXIsICJpbiBzdGV0ZXIgRnVyY2h0IHZvciBN
+ZW5zY2hlbiB1bmQgVGllcmVuLCBlaW5lIEJldXRlIGRlciBIdW5kZSwgZGVy
+IEFkbGVyLCBqYSBmYXN0IGFsbGVyIFJhdWJ0aWVyZSEgVW5zZXJlIHN0ZXRl
+IEFuZ3N0IGlzdCDkcmdlciBhbHMgZGVyIFRvZCBzZWxic3QuIEF1ZiwgbGHf
+dCB1bnMgZWluIGb8ciBhbGxlbWFsIHN0ZXJiZW4uIiANDQoNDQpJbiBlaW5l
+bSBuYWhlbiBUZWljaCB3b2xsdGVuIHNpZSBzaWNoIG51biBlcnPkdWZlbjsg
+c2llIGVpbHRlbiBpaG0genU7IGFsbGVpbiBkYXMgYXXfZXJvcmRlbnRsaWNo
+ZSBHZXT2c2UgdW5kIGlocmUgd3VuZGVyYmFyZSBHZXN0YWx0IGVyc2NocmVj
+a3RlIGVpbmUgTWVuZ2UgRnL2c2NoZSwgZGllIGFtIFVmZXIgc2HfZW4sIHNv
+IHNlaHIsIGRh3yBzaWUgYXVmcyBzY2huZWxsc3RlIHVudGVydGF1Y2h0ZW4u
+IA0NCg0NCiJIYWx0IiwgcmllZiBudW4gZWJlbiBkaWVzZXIgU3ByZWNoZXIs
+ICJ3aXIgd29sbGVuIGRhcyBFcnPkdWZlbiBub2NoIGVpbiB3ZW5pZyBhdWZz
+Y2hpZWJlbiwgZGVubiBhdWNoIHVucyBm/HJjaHRlbiwgd2llIGlociBzZWh0
+LCBlaW5pZ2UgVGllcmUsIHdlbGNoZSBhbHNvIHdvaGwgbm9jaCB1bmds/GNr
+bGljaGVyIHNlaW4gbfxzc2VuIGFscyB3aXIuIiANDQoNDQo=
+---1463757054-891160829-958746372=:8452--
+
diff --git a/tests/emails/legacy/046.eml b/tests/emails/legacy/046.eml
new file mode 100644
index 0000000..c30b82a
--- /dev/null
+++ b/tests/emails/legacy/046.eml
@@ -0,0 +1,33 @@
+Message-ID: <3923561C.B7078DEF@example.com>
+Date: Wed, 17 May 2000 22:31:57 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: =?iso-8859-1?Q?J=FCrgen=20Schm=FCrgen?= <schmuergen@example.com>
+Subject: Die Hasen und die =?iso-8859-1?Q?Fr=F6sche?= (Netscape Communicator 4.7)
+Content-Type: text/plain; charset=iso-8859-1
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,
+der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als de=
+r
+Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs
+schnellste untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n
+wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,
+welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."
+
+
+
diff --git a/tests/emails/legacy/047.eml b/tests/emails/legacy/047.eml
new file mode 100644
index 0000000..c50e5b8
--- /dev/null
+++ b/tests/emails/legacy/047.eml
@@ -0,0 +1,61 @@
+Message-ID: <392367BC.3D075C95@example.com>
+Date: Wed, 17 May 2000 23:47:08 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------CA611088711119FBDB3473B4"
+
+This is a multi-part message in MIME format.
+--------------CA611088711119FBDB3473B4
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise,
+who replied, laughing: "Though you be swift as the wind, I will beat
+you in a race." The Hare, believing her assertion to be simply
+impossible, assented to the proposal; and they agreed that the Fox
+should choose the course and fix the goal. On the day appointed for the
+race the two started together. The Tortoise never for a moment stopped,
+but went on with a slow but steady pace straight to the end of the
+course. The Hare, lying down by the wayside, fell fast asleep. At last
+waking up, and moving as fast as he could, he saw the Tortoise had
+reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+--------------CA611088711119FBDB3473B4
+Content-Type: text/plain; charset=iso-8859-1;
+ name="=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?="
+Content-Transfer-Encoding: quoted-printable
+Content-Disposition: inline;
+ filename="=?iso-8859-1?Q?HasenundFr=F6sche=2Etxt?="
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach =
+ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hun=
+de, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger al=
+s der Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben." =
+
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu; =
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt erschr=
+eckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie aufs =
+schnellste untertauchten. =
+
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ei=
+n wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere=
+, welche also wohl noch ungl=FCcklicher sein m=FCssen als wir." =
+
+
+
+--------------CA611088711119FBDB3473B4--
+
+
diff --git a/tests/emails/legacy/048.eml b/tests/emails/legacy/048.eml
new file mode 100644
index 0000000..645a1d1
--- /dev/null
+++ b/tests/emails/legacy/048.eml
@@ -0,0 +1,156 @@
+Message-ID: <3923670C.67D83A99@example.com>
+Date: Wed, 17 May 2000 23:44:12 -0400
+From: Doug Sauder <dwsauder@example.com>
+X-Mailer: Mozilla 4.7 [en] (WinNT; I)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Joe Blow <blow@example.com>
+Subject: Test message from Netscape Communicator 4.7
+Content-Type: multipart/mixed;
+ boundary="------------177483472E7788F4AD46AB1A"
+
+This is a multi-part message in MIME format.
+--------------177483472E7788F4AD46AB1A
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise,
+who replied, laughing: "Though you be swift as the wind, I will beat
+you in a race." The Hare, believing her assertion to be simply
+impossible, assented to the proposal; and they agreed that the Fox
+should choose the course and fix the goal. On the day appointed for the
+race the two started together. The Tortoise never for a moment stopped,
+but went on with a slow but steady pace straight to the end of the
+course. The Hare, lying down by the wayside, fell fast asleep. At last
+waking up, and moving as fast as he could, he saw the Tortoise had
+reached the goal, and was comfortably dozing after her fatigue.
+
+Slow but steady wins the race.
+--------------177483472E7788F4AD46AB1A
+Content-Type: image/png;
+ name="redball.png"
+Content-Transfer-Encoding: x-uuencode
+Content-Disposition: inline;
+ filename="redball.png"
+
+begin 644 redball.png
+MB5!.1PT*&@H -24A$4@ !L ;" , "Z"@1G # %!,5$7___\
+M ! + 5 : 7 1 * # < R !$ !- !( ] C
+M 6 F !A ![ "& "' !] !T !@ Y 4 & G !+ !O
+M "0 "E "[ "_ "K "A ", !S !; N ( !, !W "9 "T
+M&1G*.#C5/3W;*2G=!06X "H !Y Q 8 $ !% ": "[)"3186'?
+MA(3F?W_F5E;J'Q_2 "Y "C != !" H ) !G "Z#P_05%3>DY/E
+MK*SIF9GM967O)277 #! "Q "< !M !3 V ; % !* "! #+
+M("#=9V?HG)SKIJ;MBHKO45'O%!31 ## "V !X !> ! B !7 "2
+M #" #:&QOH557L>'CO>'CO5U?O)B;A #. "W "G "5 !' K /
+M "= #% #A!07K*"CO/#SO-37O&QOC #0 #) "U "7 "$ !L !/
+M 2 " !B #I #O @+G #8 #+ "Z "P !P 3 D !8 #(
+M #3 #- "S "# !N > !^ # "D "- !_ !I !0 P "1
+M "I "\ "J "; !E !) J . T "L "O "M "F ") !Z
+M !K !: ^ I !J "" "? "> "6 "/ !\ 9 ' !5 ".
+M "* X 0 _ !R " !< W L !F !# !6 @ S \
+M Z ? , = -
+M
+M #\
+M+ME% 7123E, 0.;89@ !9T15AT4V]F='=A<F4 9VEF,G!N9R R+C N
+M,3U>OF@ ((241!5'B<8V" @_\0P( !F)A96%G9V#DX,:4YN+AY>'GY^+D%
+M!#E0)?\S"_$(BXB*B4M(\DH)2<L@R?YGEI635U!44E9155/7X-%DU4)(R@AI
+MZ^CJZ1L8&AF;*)@*\YF96\#D_K-:2EA9V]C:V3LX.CDKZ+BXNK%#-?YW-_.P
+M\O3R]O'U\P\(# H6#0D-"X^ 2/YGBXP*BHZ)C8M/2$Q*3G%62$U+%X Z]G]&
+M9E9V3FY>?D%A47%R26E9E$=Y1258[C^3D&15=4UM77U#8U.S<DMI:UM[AV8G
+M. C^=[EUMRH[]O3V]2=-2)XX2;%5='(H]Q2('-/4:6J3IB?-2)K9G*TT2T4U
+M:_:<4&YIB-S_N7+S5)VJFZ=7SY\X2V6!U<)%BY<LA9KYW]Q5?MGR%*453BV3
+M5CJORA)+7;UF[3JH'/MZ%_'6T@T;-ZW<K&J5M67KMNT[!)BA<LP[U^S:G16\
+M9\]>JWW[10_(IZTQ.W@($E7_+;BD#F\3WZ*P;-F1H[.WSI'D/29P'!J+__\?
+MESUQV..DR*)3B[:J;SNM?49(V@(N%\%VEK_#Y=PV^?9=PIE\85.E(^")X_]_
+MCH.R8>=Y0S,OA&JGFV5T6B"EF___#TE?7'M)ZO+E*]P[KQ[O0DY20);%M2FL
+MUR]>O7B=[09:<@.QF2QDM-S=M2PP4^)_5(":"/%(84W7 )A(.MC?YL?R
+M)71%6'1#;VUM96YT &-L:7 R9VEF('8N,"XV(&)Y(%EV97,@4&EG=65T-G,[
+-O !)14Y$KD)@@@
+end
+
+--------------177483472E7788F4AD46AB1A
+Content-Type: image/png;
+ name="greenball.png"
+Content-Transfer-Encoding: x-uuencode
+Content-Disposition: inline;
+ filename="greenball.png"
+
+begin 644 greenball.png
+MB5!.1PT*&@H -24A$4@ !L ;" , "Z"@1G # %!,5$7___\
+M $ & (0 " ,0 0@ 4@ 6@ 2@ (8P (<P (>P 0C (:P
+M.0 8P 0E 0G AI0 0I0 AK0!"O1ACQC%CQCE2QB$IS@ 8O0 0K0 8K0 A
+MO0"4UF.MUGN$UE)*WA@AU@ 8Q@ 8M0 *0!"SA#.YY3>YZW&YY24YV-2YR$A
+MW@ 8S@!2WB&<YVO6[YR][XR$[U)"[Q"M[WNEWG-:[RDAYP 8U@ QYP!2[R%K
+M[SE*[Q@IYP I[P Q[P (A 0M0
+M
+M
+M
+M
+M
+M
+M
+M
+M
+M
+M
+M I
+MU?G9 7123E, 0.;89@ !9T15AT4V]F='=A<F4 9VEF,G!N9R R+C N
+M,3U>OF@ %M241!5'B<==)M5\(@% =P#VS(@,$$U^-<J=LH*^FYM"RS[_^9
+MB+F'LRSOJYWS._<R^-]>KRU;5>]/60 ]SX,0^'\8HC[& 29]Y('?:!&F+.2<
+MAR(@R.NVVF@02C4<#N-8<H&C+B+*U<'AT?'):3**.<,(M@8Q3\].SL?CR33+
+M"\4%T<V9-F*JN)A<SJZN;^8F25481%Y]&>#:LMN[^]G#XU-FDB)VC<V)WD 6
+M9]/KYY?'U\72F1N*4374:J'R[.U]M?KX-%E>_PW8#K614(E9K+_6\Z7)DR)5
+M&]$:$C(QV7R9F9)&BH>4:+^V 8\38\HF1ZGD+*AN[TSC4*5)7LIWJN2V#52)
+M6-AWSS)*"R>Q(T9Q!/W:?$T$ERJ.E9)RP\KW!$V2%B)"RQ XWX2"D@ZY1A=>
+M0!EC0M"@W]+6K ]T1##&U$6K84.VWA, -4*11EZU$YV]<1^^#V&Y+*TTV=K_
+MJK<?N]NT5W;QG_7=A1_-8>>-T@@L+ "5T15AT0V]M;65N= !C;&EP,F=I
+F9B!V+C N-B!B>2!9=F5S(%!I9W5E=#9S.[P 245.1*Y"8((
+end
+
+--------------177483472E7788F4AD46AB1A
+Content-Type: image/png;
+ name="blueball.png"
+Content-Transfer-Encoding: x-uuencode
+Content-Disposition: inline;
+ filename="blueball.png"
+
+begin 644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245.1*Y"8((
+end
+
+--------------177483472E7788F4AD46AB1A--
+
+
diff --git a/tests/emails/legacy/049.eml b/tests/emails/legacy/049.eml
new file mode 100644
index 0000000..49eec46
--- /dev/null
+++ b/tests/emails/legacy/049.eml
@@ -0,0 +1,132 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Joe Blow" <jblow@example.com>
+Subject: Test message from Microsoft Outlook 00
+Date: Wed, 17 May 2000 19:58:13 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGIEKGCHAA.doug@example.com>
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+
+The Hare and the Tortoise
+
+A HARE one day ridiculed the short feet and slow pace of the Tortoise, who
+replied, laughing: "Though you be swift as the wind, I will beat you in a
+race." The Hare, believing her assertion to be simply impossible, assented
+to the proposal; and they agreed that the Fox should choose the course and
+fix the goal. On the day appointed for the race the two started together.
+The Tortoise never for a moment stopped, but went on with a slow but steady
+pace straight to the end of the course. The Hare, lying down by the
+wayside, fell fast asleep. At last waking up, and moving as fast as he
+could, he saw the Tortoise had reached the goal, and was comfortably dozing
+after her fatigue.
+
+Slow but steady wins the race.
+
+
+begin 666 blueball.png
+MB5!.1PT*&@H````-24A$4@```!L````;" ,```"Z"@1G```#`%!,5$7___\`
+M``@``! ``!@`````""D`$$(`$$H`"#$`$%(((7,(*7L(*80((6L`&%H`"#D(
+M(6,0.9P80J480JT80K40.:40,90`&%(0,8PI4K4Y8\8Y8\XI6LX82LX80LX8
+M0KU":\9[G-:<O=Z,M=YCE.<Q:]XA4MX82M880L80,:4``"'.Y^_G[^^<QN]2
+MA.\I6N<0.:U*>\ZMSMZESN]:C.\0,9Q:A-:MUN?.[^^,O>]*>^\8.:482L:,
+MO>>UY^^4O>\``"E:C.=SI>]KG.\(*8PQ8^\I6N\((7L`````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M``````````````````````````````````````````````````````````#!
+M,@U5`````7123E,`0.;89@```!9T15AT4V]F='=A<F4`9VEF,G!N9R R+C N
+M,3U>OF@```&(241!5'B<==)M5YLP& ;@$DZ )A!2DX;,"4RG!2+:JHO;K&_;
+M?/G_ORA[TE;LL<>;+YQSG3LAY!F-A@0H1"APHYT$.(HA48+#CXS'A*80DK$H
+M0=OH<DXG>T(*,54I*9+0#>J23(LO^U\/RJJ64PV(!L1,[WT[//I^?#)K6MGI
+M+#)O>P8QG>P?GO:G9^?SIFP7BC"\*;J$:W%QV??]U8]Y4]7"4I:#>0PB,I'7
+M/_O^U^^;65/60H&%:PMCNKR]OKN_?_"U5B[>S3T66I0'?_[^N_&[U:+3A*_,
+MC1QF3Z*=S9]?&D]R:M,L3@9+EW75@%1 "ZLIC_UW>GLLJ)5M65:W-=!2:<+\
+M^59F8J*F==U"28H.B,.2&PMSEJJE%%(N.JOT:U9$9K4D6("++%6VZZRU*O6$
+MUS5_B# 'U$HIG5+"BR@9"(HF'W-"*7TEG(^!UBNNS"&3QP7CG#.X=[-I;7XV
+M8))'D!PF`FV3QP`9@XT)W^7M;OUK@. 9P&T-Q6ZVI^E3^8B[X[L#_P$45,S8
+MF6D.OP```"5T15AT0V]M;65N= !C;&EP,F=I9B!V+C N-B!B>2!9=F5S(%!I
+49W5E=#9S.[P`````245.1*Y"8((`
+`
+end
+
+begin 666 greenball.png
+MB5!.1PT*&@H````-24A$4@```!L````;" ,```"Z"@1G```#`%!,5$7___\`
+M````$ ``& ``(0``" ``,0``0@``4@``6@``2@`(8P`(<P`(>P`0C `(:P``
+M.0``8P`0E `0G `AI0`0I0`AK0!"O1ACQC%CQCE2QB$IS@`8O0`0K0`8K0`A
+MO0"4UF.MUGN$UE)*WA@AU@`8Q@`8M0``*0!"SA#.YY3>YZW&YY24YV-2YR$A
+MW@`8S@!2WB&<YVO6[YR][XR$[U)"[Q"M[WNEWG-:[RDAYP`8U@`QYP!2[R%K
+M[SE*[Q@IYP`I[P`Q[P`(A `0M0``````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M```````````````````````````````````````````````````````````I
+MU?G9`````7123E,`0.;89@```!9T15AT4V]F='=A<F4`9VEF,G!N9R R+C N
+M,3U>OF@```%M241!5'B<==)M5\(@% =P#VS(@,$$U^-<J=LH*^FYM"RS[_^9
+MB+F'LRSOJYWS._<R^-]>KRU;5>]/60`]SX,0^'\8HC[&`29]Y('?:!&F+.2<
+MAR(@R.NVVF@02C4<#N-8<H&C+B+*U<'AT?'):3**.<,(M@8Q3\].SL?CR33+
+M"\4%T<V9-F*JN)A<SJZN;^8F25481%Y]&>#:LMN[^]G#XU-FDB)VC<V)WD 6
+M9]/KYY?'U\72F1N*4374:J'R[.U]M?KX-%E>_PW8#K614(E9K+_6\Z7)DR)5
+M&]$:$C(QV7R9F9)&BH>4:+^V`8\38\HF1ZGD+*AN[TSC4*5)7LIWJN2V#52)
+M6-AWSS)*"R>Q(T9Q!/W:?$T$ERJ.E9)RP\KW!$V2%B)"RQ XWX2"D@ZY1A=>
+M0!EC0M"@W]+6K ]T1##&U$6K84.VWA,`-4*11EZU$YV]<1^^#V&Y+*TTV=K_
+MJK<?N]NT5W;QG_7=A1_-8>>-T@@L+ ```"5T15AT0V]M;65N= !C;&EP,F=I
+F9B!V+C N-B!B>2!9=F5S(%!I9W5E=#9S.[P`````245.1*Y"8((`
+`
+end
+
+begin 666 redball.png
+MB5!.1PT*&@H````-24A$4@```!L````;" ,```"Z"@1G```#`%!,5$7___\`
+M```!```+```5```:```7```1```*```#```<```R``!$``!-``!(```]```C
+M```6```F``!A``![``"&``"'``!]``!T``!@```Y```4```&```G``!+``!O
+M``"0``"E``"[``"_``"K``"A``",``!S``!;```N```(``!,``!W``"9``"T
+M&1G*.#C5/3W;*2G=!06X``"H``!Y```Q```8```$``!%``":``"[)"3186'?
+MA(3F?W_F5E;J'Q_2``"Y``"C``!=``!"```H```)``!G``"Z#P_05%3>DY/E
+MK*SIF9GM967O)277``#!``"Q``"<``!M``!3```V```;```%``!*``"!``#+
+M("#=9V?HG)SKIJ;MBHKO45'O%!31``##``"V``!X``!>``! ```B``!7``"2
+M``#"``#:&QOH557L>'CO>'CO5U?O)B;A``#.``"W``"G``"5``!'```K```/
+M``"=``#%``#A!07K*"CO/#SO-37O&QOC``#0``#)``"U``"7``"$``!L``!/
+M```2```"``!B``#I``#O`@+G``#8``#+``"Z``"P``!P```3```D``!8``#(
+M``#3``#-``"S``"#``!N```>``!^``# ``"D``"-``!_``!I``!0```P``"1
+M``"I``"\``"J``";``!E``!)```J```.```T``"L``"O``"M``"F``")``!Z
+M``!K``!:```^```I``!J``""``"?``">``"6``"/``!\```9```'``!5``".
+M``"*```X```0```_``!R``" ``!<```W```L``!F``!#``!6```@```S```\
+M```Z```?```,```=```-````````````````````````````````````````
+M````````````````````````````````````````````````````````````
+M``````````````````````````````````````````````````````````#\
+M+ME%`````7123E,`0.;89@```!9T15AT4V]F='=A<F4`9VEF,G!N9R R+C N
+M,3U>OF@```((241!5'B<8V" @_\0P( !F)A96%G9V#DX,:4YN+AY>'GY^+D%
+M!#E0)?\S"_$(BXB*B4M(\DH)2<L@R?YGEI635U!44E9155/7X-%DU4)(R@AI
+MZ^CJZ1L8&AF;*)@*\YF96\#D_K-:2EA9V]C:V3LX.CDKZ+BXNK%#-?YW-_.P
+M\O3R]O'U\P\(# H6#0D-"X^ 2/YGBXP*BHZ)C8M/2$Q*3G%62$U+%X Z]G]&
+M9E9V3FY>?D%A47%R26E9E$=Y1258[C^3D&15=4UM77U#8U.S<DMI:UM[AV8G
+M. C^=[EUMRH[]O3V]2=-2)XX2;%5='(H]Q2('-/4:6J3IB?-2)K9G*TT2T4U
+M:_:<4&YIB-S_N7+S5)VJFZ=7SY\X2V6!U<)%BY<LA9KYW]Q5?MGR%*453BV3
+M5CJORA)+7;UF[3JH'/MZ%_'6T@T;-ZW<K&J5M67KMNT[!)BA<LP[U^S:G16\
+M9\]>JWW[10_(IZTQ.W@($E7_+;BD#F\3WZ*P;-F1H[.WSI'D/29P'!J+__\?
+MESUQV..DR*)3B[:J;SNM?49(V@(N%\%VEK_#Y=PV^?9=PIE\85.E(^")X_]_
+MCH.R8>=Y0S,OA&JGFV5T6B"EF___#TE?7'M)ZO+E*]P[KQ[O0DY20);%M2FL
+MUR]>O7B=[09:<@.QF2QDM-S=M2PP4^)_5(":"/%(84W7`)A(.MC?YL?R````
+M)71%6'1#;VUM96YT`&-L:7 R9VEF('8N,"XV(&)Y(%EV97,@4&EG=65T-G,[
+-O ````!)14Y$KD)@@@``
+`
+end
+
diff --git a/tests/emails/legacy/050.eml b/tests/emails/legacy/050.eml
new file mode 100644
index 0000000..1f290cc
--- /dev/null
+++ b/tests/emails/legacy/050.eml
@@ -0,0 +1,110 @@
+Message-Id: <4.2.0.58.20000519003934.00a866f0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:39:36 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/related;
+ type="text/html";
+ boundary="=====================_715546120==_.REL"
+
+--=====================_715546120==_.REL
+Content-Type: text/html; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<html>
+<img src=3D"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.2" width=3D27=
+ height=3D27 alt=3D"2aa658b6.png"><br>
+<br>
+<font face=3D"Arial, Helvetica" size=3D5 color=3D"#0000FF"><b>Die Hasen und =
+die
+Fr=F6sche<br>
+<br>
+</font></b><font face=3D"Arial, Helvetica">Die Hasen klagten einst =FCber
+ihre mi=DFliche Lage; &quot;wir leben&quot;, sprach ein Redner, &quot;in
+steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,
+ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der Tod selbst.
+Auf, la=DFt uns ein f=FCr allemal sterben.&quot; <br>
+<br>
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;
+allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt
+erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie au=
+fs
+schnellste untertauchten. <br>
+<br>
+&quot;Halt&quot;, rief nun eben dieser Sprecher, &quot;wir wollen das
+Ers=E4ufen noch ein wenig aufschieben, denn auch uns f=FCrchten, wie ihr
+seht, einige Tiere, welche also wohl noch ungl=FCcklicher sein m=FCssen als
+wir.&quot; <br>
+<br>
+<img src=3D"cid:4.2.0.58.20000519003934.00a866f0@pop.example.com.3" width=3D27=
+ height=3D27 alt=3D"2aa658c0.png"></font></html>
+
+--=====================_715546120==_.REL
+Content-Type: image/png; name="2aa658b6.png"
+Content-ID: <4.2.0.58.20000519003934.00a866f0@pop.example.com.2>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa658b6.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIW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dhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAGISURBVHicddJtV5swGAbgEk6AJhBSk4bMCUynBSLaqovbrG/bfPn/vyh70lbssceb
+L5xznTsh5BmNhgQoRChwo50EOIohUYLDj4zHhKYQkrEoQdvock4ne0IKMVUpKZLQDeqSTIsv+18P
+yqqWUw2IBsRM7307PPp+fDJrWtnpLDJvewYxnewfnvanZ+fzpmwXijC8KbqEa3Fx2ff91Y95U9XC
+UpaDeQwiMpHXP/v+1++bWVPWQoGFawtjury9vru/f/C1Vi7ezT0WWpQHf/7+u/G71aLThK/MjRxm
+T6KdzZ9fGk9yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715546120==_.REL
+Content-Type: image/png; name="2aa658c0.png"
+Content-ID: <4.2.0.58.20000519003934.00a866f0@pop.example.com.3>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa658c0.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/m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RSVY7j+TkGRVdU1tXX1DY1Ozcktpa1t7h2YnOAj+
+d7l1tyo79vT29SdNSJ44SbFVdHIo9xSIHNPUaWqTpifNSJrZnK00S0U1a/acUG5piNz/uXLzVJ2q
+m6dXz584S2WB1cJFi5cshZr539xVftnyFKUVTi2TVjqvyhJLXb1m7TqoHPt6F/HW0g0bN63crGqV
+tWXrtu07BJihcsw71+zanRW8Z89eq337RQ/Ip60xO3gIElX/LbikDm8T36KwbNmRo7O3zpHkPSZw
+HBqL//8flz1x2OOkyKJTi7aqbzutfUZI2gIuF8F2lr/D5dw2+fZdwpl8YVOlI+CJ4/9/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--=====================_715546120==_.REL--
+
+
diff --git a/tests/emails/legacy/051.eml b/tests/emails/legacy/051.eml
new file mode 100644
index 0000000..a84e0f0
--- /dev/null
+++ b/tests/emails/legacy/051.eml
@@ -0,0 +1,162 @@
+Message-Id: <4.2.0.58.20000519003903.00a859b0@pop.example.com>
+X-Sender: dwsauder@pop.example.com (Unverified)
+X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
+X-Priority: 2 (High)
+Date: Fri, 19 May 2000 00:39:05 -0400
+To: Heinz =?iso-8859-1?Q?Mller?= <mueller@example.com>
+From: Doug Sauder <dwsauder@example.com>
+Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Frsche?=
+Mime-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="=====================_715515186==_"
+
+--=====================_715515186==_
+Content-Type: multipart/related;
+ type="text/plain";
+ boundary="=====================_715515186==_.REL"
+
+--=====================_715515186==_.REL
+Content-Type: text/plain; charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+Die Hasen und die Fr=F6sche
+
+Die Hasen klagten einst =FCber ihre mi=DFliche Lage; "wir leben", sprach ein=
+ Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,=
+ der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =E4rger als der=
+ Tod selbst. Auf, la=DFt uns ein f=FCr allemal sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=E4ufen; sie eilten ihm zu;=
+ allein das au=DFerordentliche Get=F6se und ihre wunderbare Gestalt=
+ erschreckte eine Menge Fr=F6sche, die am Ufer sa=DFen, so sehr, da=DF sie=
+ aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=E4ufen noch ein=
+ wenig aufschieben, denn auch uns f=FCrchten, wie ihr seht, einige Tiere,=
+ welche also wohl noch ungl=FCcklicher sein m=FCssen als wir."=20
+
+2aa5e03a.png2aa5e044.png
+--=====================_715515186==_.REL
+Content-Type: image/png; name="2aa5e03a.png"
+Content-ID: <4.2.0.58.20000519003903.00a859b0@pop.example.com.2>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa5e03a.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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yatMsTgZLl3XVgFRAC6spj/13enssqJVtWVa3NdBSacL8+VZmYqKmdd1CSYoOiMOS
+GwtzlqqlFFIuOqv0a1ZEZrUkWICLLFW266y1KvWE1zV/iDAH1EopnVLCiygZCIomH3NCKX0lnI+B
+1iuuzCGTxwXjnDO4d7NpbX42YJJHkBwmAm2TxwAZg40J3+Xtbv1rgOAZwG0NxW62p+lT+Yi747sD
+/wEUVMzYmWkOvwAAACV0RVh0Q29tbWVudABjbGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZz
+O7wAAAAASUVORK5CYII=
+--=====================_715515186==_.REL
+Content-Type: image/png; name="2aa5e044.png"
+Content-ID: <4.2.0.58.20000519003903.00a859b0@pop.example.com.3>
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; filename="2aa5e044.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAABAAALAAAVAAAa
+AAAXAAARAAAKAAADAAAcAAAyAABEAABNAABIAAA9AAAjAAAWAAAmAABhAAB7AACGAACHAAB9AAB0
+AABgAAA5AAAUAAAGAAAnAABLAABvAACQAAClAAC7AAC/AACrAAChAACMAABzAABbAAAuAAAIAABM
+AAB3AACZAAC0GRnKODjVPT3bKSndBQW4AACoAAB5AAAxAAAYAAAEAABFAACaAAC7JCTRYWHfhITm
+f3/mVlbqHx/SAAC5AACjAABdAABCAAAoAAAJAABnAAC6Dw/QVFTek5PlrKzpmZntZWXvJSXXAADB
+AACxAACcAABtAABTAAA2AAAbAAAFAABKAACBAADLICDdZ2fonJzrpqbtiorvUVHvFBTRAADDAAC2
+AAB4AABeAABAAAAiAABXAACSAADCAADaGxvoVVXseHjveHjvV1fvJibhAADOAAC3AACnAACVAABH
+AAArAAAPAACdAADFAADhBQXrKCjvPDzvNTXvGxvjAADQAADJAAC1AACXAACEAABsAABPAAASAAAC
+AABiAADpAADvAgLnAADYAADLAAC6AACwAABwAAATAAAkAABYAADIAADTAADNAACzA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/joOyYed5
+QzMvhGqnm2V0WiClm///D0lfXHtJ6vLlK9w7rx7vQk5SQJbFtSms1y9evXid7QZacgOxmSxktNzd
+tSwwU+J/VICaCPFIYU3XAJhIOtjf5sfyAAAAJXRFWHRDb21tZW50AGNsaXAyZ2lmIHYuMC42IGJ5
+IFl2ZXMgUGlndWV0NnM7vAAAAABJRU5ErkJggg==
+--=====================_715515186==_.REL--
+
+--=====================_715515186==_
+Content-Type: image/png; name="blueball.png"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="blueball.png"
+
+iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAMAAAC6CgRnAAADAFBMVEX///8AAAgAABAAABgAAAAA
+CCkAEEIAEEoACDEAEFIIIXMIKXsIKYQIIWsAGFoACDkIIWMQOZwYQqUYQq0YQrUQOaUQMZQAGFIQ
+MYwpUrU5Y8Y5Y84pWs4YSs4YQs4YQr1Ca8Z7nNacvd6Mtd5jlOcxa94hUt4YStYYQsYQMaUAACHO
+5+/n7++cxu9ShO8pWucQOa1Ke86tzt6lzu9ajO8QMZxahNat1ufO7++Mve9Ke+8YOaUYSsaMvee1
+5++Uve8AAClajOdzpe9rnO8IKYwxY+8pWu8IIXsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+AAAAAAAAAAAAAAAp1fnZAAAAAXRSTlMAQObYZgAAABZ0RVh0U29mdHdhcmUAZ2lmMnBuZyAyLjAu
+MT1evmgAAAFtSURBVHicddJtV8IgFAdwD2zIgMEE1+NcqdsoK+m5tCyz7/+ZiLmHsyzvq53zO/cy
++N9ery1bVe9PWQA9z4MQ+H8Yoj7GASZ95IHfaBGmLOSchyIgyOu22mgQSjUcDuNYcoGjLiLK1cHh
+0fHJaTKKOcMItgYxT89OzsfjyTTLC8UF0c2ZNmKquJhczq6ub+YmSVUYRF59GeDastu7+9nD41Nm
+kiJ2jc2J3kAWZ9Pr55fH18XSmRuKUTXUaqHy7O19tfr4NFle/w3YDrWRUIlZrL/W86XJkyJVG9Ea
+EjIx2XyZmZJGioeUaL+2AY8TY8omR6nkLKhu70zjUKVJXsp3quS2DVSJWNh3zzJKCyexI0ZxBP3a
+fE0ElyqOlZJyw8r3BE2SFiJCyxA434SCkg65RhdeQBljQtCg39LWrA90RDDG1EWrYUO23hMANUKR
+Rl61E529cR++D2G5LK002dr/qrcfu9u0V3bxn/XdhR/NYeeN0ggsLAAAACV0RVh0Q29tbWVudABj
+bGlwMmdpZiB2LjAuNiBieSBZdmVzIFBpZ3VldDZzO7wAAAAASUVORK5CYII=
+--=====================_715515186==_--
+
+
diff --git a/tests/emails/legacy/052.eml b/tests/emails/legacy/052.eml
new file mode 100644
index 0000000..a8a448a
--- /dev/null
+++ b/tests/emails/legacy/052.eml
@@ -0,0 +1,28 @@
+From: "Doug Sauder" <doug@example.com>
+To: "Heinz Mller" <mueller@example.com>
+Subject: Die Hasen und die Frsche (Microsoft Outlook 00)
+Date: Wed, 17 May 2000 19:28:40 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com>
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Frsche
+
+Die Hasen klagten einst ber ihre miliche Lage; "wir leben", sprach ein
+Redner, "in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der
+Adler, ja fast aller Raubtiere! Unsere stete Angst ist rger als der Tod
+selbst. Auf, lat uns ein fr allemal sterben."
+
+In einem nahen Teich wollten sie sich nun ersufen; sie eilten ihm zu;
+allein das auerordentliche Getse und ihre wunderbare Gestalt erschreckte
+eine Menge Frsche, die am Ufer saen, so sehr, da sie aufs schnellste
+untertauchten.
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ersufen noch ein
+wenig aufschieben, denn auch uns frchten, wie ihr seht, einige Tiere,
+welche also wohl noch unglcklicher sein mssen als wir."
+
+
diff --git a/tests/emails/legacy/053.eml b/tests/emails/legacy/053.eml
new file mode 100644
index 0000000..0fee90b
--- /dev/null
+++ b/tests/emails/legacy/053.eml
@@ -0,0 +1,33 @@
+From: "Doug Sauder" <doug@example.com>
+To: =?utf-8?Q?Heinz_M=C3=BCller?= <mueller@example.com>
+Subject: =?utf-8?Q?Die_Hasen_und_die_Fr=C3=B6sche_=28Microsoft_Outlook_00=29?=
+Date: Wed, 17 May 2000 19:27:04 -0400
+Message-ID: <NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+ charset="utf-8"
+Content-Transfer-Encoding: quoted-printable
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
+
+Die Hasen und die Fr=C3=B6sche
+
+Die Hasen klagten einst =C3=BCber ihre mi=C3=9Fliche Lage; "wir leben", =
+sprach ein Redner, "in steter Furcht vor Menschen und Tieren, eine Beute =
+der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist =
+=C3=A4rger als der Tod selbst. Auf, la=C3=9Ft uns ein f=C3=BCr allemal =
+sterben."=20
+
+In einem nahen Teich wollten sie sich nun ers=C3=A4ufen; sie eilten ihm =
+zu; allein das au=C3=9Ferordentliche Get=C3=B6se und ihre wunderbare =
+Gestalt erschreckte eine Menge Fr=C3=B6sche, die am Ufer sa=C3=9Fen, so =
+sehr, da=C3=9F sie aufs schnellste untertauchten.=20
+
+"Halt", rief nun eben dieser Sprecher, "wir wollen das Ers=C3=A4ufen =
+noch ein wenig aufschieben, denn auch uns f=C3=BCrchten, wie ihr seht, =
+einige Tiere, welche also wohl noch ungl=C3=BCcklicher sein m=C3=BCssen =
+als wir."=20
+
diff --git a/tests/emails/legacy/COPYING b/tests/emails/legacy/COPYING
new file mode 100644
index 0000000..c9ad7e3
--- /dev/null
+++ b/tests/emails/legacy/COPYING
@@ -0,0 +1,85 @@
+These test files are Copyright © 2010 Hunny Software, Inc.
+Samples obtained from http://www.hunnysoft.com/mime/samples/samples.zip
+Details at https://www.hunnysoft.com/mime/samples/index.html
+
+readme.txt
+-----
+
+The files in this directory that match the pattern m*.txt are sample
+messages in MIME format from common email Mail User Agents (MUAs).
+
+I created these samples mainly for the purpose of testing my own MIME
+implementation, particularly for testing the decoding of encoded text
+in the headers (RFC 2047) and for the extraction of attachments (not
+covered by any standard).
+
+I used four different MUAs to create the messages. You can determine which
+MUA was used by looking at the file name. The breakdown is:
+
+ m0*.txt -- Microsoft Outlook 00
+ m1*.txt -- Netscape Communicator 4.7
+ m2*.txt -- Qualcomm Eudora 4.2
+ m3*.txt -- PINE (Linux)
+
+Of course, you can also look at the headers of the message to determine the
+MUA.
+
+If you want to contribute to this collection of samples, please do send
+your contributions. I will evaluate the contributions for inclusion in
+this collection. The evaluation criteria will include:
+
+ * Is the MUA a mainstream MUA (not some obscure, rare MUA)?
+
+ * Are the messages short?
+
+ * Are the messages useful for testing?
+
+ * Are the messages genuine? Messages that have been through a relaying
+ SMTP server might have been modified. This might not disqualify a
+ sample message, as it probably still has value for interoperability
+ testing.
+
+When you send messages, please zip them or tar them, so that they won't be
+changed as they pass through the mail system. If I include your messages,
+I will put your name on a list of contributors, unless you prefer otherwise.
+
+I am also considering creating a separate collection of messages designed
+to stress test MIME implementations. So, if you have any good examples of
+bad messages (but not bad examples of good messages :-), feel free to send
+them.
+
+Not all the messages are correct to the MIME standard. However, since
+these messages are from popular MUAs, they can be useful for
+interoperability testing. Please, if you are creating messages, read and
+understand the standards documents, rather than imitate what you see in
+these messages!
+
+I have included the files that were used for creating the attachments,
+so you can test that you have successfully decoded the attachments.
+
+I have also included a simple Java program that I used for creating these
+samples. This program, SmtpServer.java, is a simple SMTP server that will
+receive the message directly from you MUA. This is important, because if
+you just route the message through your normal SMTP server, the server
+might make changes to the message. For example, it seems to be common for
+some servers to convert quoted-printable encoded text to 8-bit text.[1]
+This SMTP server program records the entire SMTP client/server dialog,
+which is great if you are trying to debug your mail system, but it also
+means that you will have to edit the output of the program to get just
+the email message.
+
+The URL for this collection of messages is
+<http://hunnysoft.com/mime/samples.zip>
+
+
+
+
+
+----------------------------------------------------
+
+[1] I don't like the fact that this happens, but that's life. I guess the
+MTA thinks that since it can handle 8-bit text, that quoted-printable
+encoding is not necessary. However, quoted-printable also makes long lines
+into short lines, which is something other than converting to 8-bit
+characters. In general, I think end-to-end transparency is a good thing;
+anything that interferes with transparency should be avoided.
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
diff --git a/tests/emails/rfc/000.eml b/tests/emails/rfc/000.eml
new file mode 100644
index 0000000..44a1588
--- /dev/null
+++ b/tests/emails/rfc/000.eml
@@ -0,0 +1,73 @@
+MIME-Version: 1.0
+From: Nathaniel Borenstein <nsb@nsb.fv.com>
+To: Ned Freed <ned@innosoft.com>
+Date: Fri, 07 Oct 1994 16:15:05 -0700 (PDT)
+Subject: A multipart example
+Content-Type: multipart/mixed;
+ boundary=unique-boundary-1
+
+This is the preamble area of a multipart message.
+Mail readers that understand multipart format
+should ignore this preamble.
+
+If you are reading this text, you might want to
+consider changing to a mail reader that understands
+how to properly display multipart messages.
+
+--unique-boundary-1
+
+... Some text appears here ...
+
+[Note that the blank between the boundary and the start
+of the text in this part means no header fields were
+given and this is text in the US-ASCII character set.
+It could have been done with explicit typing as in the
+next part.]
+
+--unique-boundary-1
+Content-type: text/plain; charset=US-ASCII
+
+This could have been part of the previous part, but
+illustrates explicit versus implicit typing of body
+parts.
+
+--unique-boundary-1
+Content-Type: multipart/parallel; boundary=unique-boundary-2
+
+--unique-boundary-2
+Content-Type: audio/basic
+Content-Transfer-Encoding: base64
+
+... base64-encoded 8000 Hz single-channel
+ mu-law-format audio data goes here ...
+
+--unique-boundary-2
+Content-Type: image/jpeg
+Content-Transfer-Encoding: base64
+
+... base64-encoded image data goes here ...
+
+--unique-boundary-2--
+
+--unique-boundary-1
+Content-type: text/enriched
+
+This is <bold><italic>enriched.</italic></bold>
+<smaller>as defined in RFC 1896</smaller>
+
+Isn't it
+<bigger><bigger>cool?</bigger></bigger>
+
+--unique-boundary-1
+Content-Type: message/rfc822
+
+From: (mailbox in US-ASCII)
+To: (address in US-ASCII)
+Subject: (subject in US-ASCII)
+Content-Type: Text/plain; charset=ISO-8859-1
+Content-Transfer-Encoding: Quoted-printable
+
+... Additional text in ISO-8859-1 goes here ...
+
+--unique-boundary-1--
+
diff --git a/tests/emails/rfc/001.eml b/tests/emails/rfc/001.eml
new file mode 100644
index 0000000..8b4abc8
--- /dev/null
+++ b/tests/emails/rfc/001.eml
@@ -0,0 +1,41 @@
+From: Whomever
+To: Someone
+Date: Whenever
+Subject: whatever
+MIME-Version: 1.0
+Message-ID: <id1@host.com>
+Content-Type: multipart/alternative; boundary=42
+Content-ID: <id001@guppylake.bellcore.com>
+
+--42
+Content-Type: message/external-body; name="BodyFormats.ps";
+ site="thumper.bellcore.com"; mode="image";
+ access-type=ANON-FTP; directory="pub";
+ expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
+
+Content-type: application/postscript
+Content-ID: <id42@guppylake.bellcore.com>
+
+--42
+Content-Type: message/external-body; access-type=local-file;
+ name="/u/nsb/writing/rfcs/RFC-MIME.ps";
+ site="thumper.bellcore.com";
+ expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
+
+Content-type: application/postscript
+Content-ID: <id42@guppylake.bellcore.com>
+
+--42
+Content-Type: message/external-body;
+ access-type=mail-server
+ server="listserv@bogus.bitnet";
+ expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
+
+Content-type: application/postscript
+Content-ID: <id42@guppylake.bellcore.com>
+
+get RFC-MIME.DOC
+
+--42--
+
+
diff --git a/tests/emails/rfc/002.eml b/tests/emails/rfc/002.eml
new file mode 100644
index 0000000..750134f
--- /dev/null
+++ b/tests/emails/rfc/002.eml
@@ -0,0 +1,73 @@
+From: Al Gore <vice-president@whitehouse.gov>
+To: White House Transportation Coordinator
+ <transport@whitehouse.gov>
+Subject: [Fwd: Map of Argentina with Description]
+Content-Type: multipart/mixed;
+ boundary="D7F------------D7FD5A0B8AB9C65CCDBFA872"
+
+This is a multi-part message in MIME format.
+--D7F------------D7FD5A0B8AB9C65CCDBFA872
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+Fred,
+
+Fire up Air Force One! We're going South!
+
+Thanks,
+Al
+--D7F------------D7FD5A0B8AB9C65CCDBFA872
+Content-Type: message/rfc822
+Content-Transfer-Encoding: 7bit
+Content-Disposition: inline
+
+Return-Path: <president@whitehouse.gov>
+Received: from mailhost.whitehouse.gov ([192.168.51.200])
+ by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453
+ for <vice-president@heartbeat.whitehouse.gov>;
+ Mon, 13 Aug 1998 l8:14:23 +1000
+Received: from the_big_box.whitehouse.gov ([192.168.51.50])
+ by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366
+ for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000
+Date: Mon, 13 Aug 1998 17:42:41 +1000
+Message-Id: <199804130742.RAA20366@mai1host.whitehouse.gov>
+From: Bill Clinton <president@whitehouse.gov>
+To: A1 (The Enforcer) Gore <vice-president@whitehouse.gov>
+Subject: Map of Argentina with Description
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="DC8------------DC8638F443D87A7F0726DEF7"
+
+This is a multi-part message in MIME format.
+--DC8------------DC8638F443D87A7F0726DEF7
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+
+Hi A1,
+
+I finally figured out this MIME thing. Pretty cool. I'll send you
+some sax music in .au files next week!
+
+Anyway, the attached image is really too small to get a good look at
+Argentina. Try this for a much better map:
+
+ http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm
+
+Then again, shouldn't the CIA have something like that?
+
+Bill
+--DC8------------DC8638F443D87A7F0726DEF7
+Content-Type: image/gif; name="map_of_Argentina.gif"
+Content-Transfer-Encoding: base64
+Content-Disposition: inline; fi1ename="map_of_Argentina.gif"
+
+R01GOD1hJQA1AKIAAP/////78P/omn19fQAAAAAAAAAAAAAAACwAAAAAJQA1AAAD7Qi63P5w
+wEmjBCLrnQnhYCgM1wh+pkgqqeC9XrutmBm7hAK3tP31gFcAiFKVQrGFR6kscnonTe7FAAad
+GugmRu3CmiBt57fsVq3Y0VFKnpYdxPC6M7Ze4crnnHum4oN6LFJ1bn5NXTN7OF5fQkN5WYow
+BEN2dkGQGWJtSzqGTICJgnQuTJN/WJsojad9qXMuhIWdjXKjY4tenjo6tjVssk2gaWq3uGNX
+U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
+7itICBxISKDBgwgTKjyYAAA7
+--DC8------------DC8638F443D87A7F0726DEF7--
+
+--D7F------------D7FD5A0B8AB9C65CCDBFA872--
+
diff --git a/tests/emails/rfc/003.eml b/tests/emails/rfc/003.eml
new file mode 100644
index 0000000..57ffadd
--- /dev/null
+++ b/tests/emails/rfc/003.eml
@@ -0,0 +1,25 @@
+From: Nathaniel Borenstein <nsb@bellcore.com>
+To: Ned Freed <ned@innosoft.com>
+Date: Mon, 22 Mar 1993 09:41:09 -0800 (PST)
+Subject: Formatted text mail
+MIME-Version: 1.0
+Content-Type: multipart/alternative; boundary=boundary42
+
+--boundary42
+Content-Type: text/plain; charset=us-ascii
+
+... plain text version of message goes here ...
+
+--boundary42
+Content-Type: text/enriched
+
+... RFC 1896 text/enriched version of same message
+ goes here ...
+
+--boundary42
+Content-Type: application/x-whatever
+
+... fanciest version of same message goes here ...
+
+--boundary42--
+
diff --git a/tests/emails/rfc/004.eml b/tests/emails/rfc/004.eml
new file mode 100644
index 0000000..55aebc0
--- /dev/null
+++ b/tests/emails/rfc/004.eml
@@ -0,0 +1,36 @@
+From: Moderator-Address
+To: Recipient-List
+Date: Mon, 22 Mar 1994 13:34:51 +0000
+Subject: Internet Digest, volume 42
+MIME-Version: 1.0
+Content-Type: multipart/mixed;
+ boundary="---- main boundary ----"
+
+------ main boundary ----
+
+...Introductory text or table of contents...
+
+------ main boundary ----
+Content-Type: multipart/digest;
+ boundary="---- next message ----"
+
+------ next message ----
+
+From: someone-else
+Date: Fri, 26 Mar 1993 11:13:32 +0200
+Subject: my opinion
+
+...body goes here ...
+
+------ next message ----
+
+From: someone-else-again
+Date: Fri, 26 Mar 1993 10:07:13 -0500
+Subject: my different opinion
+
+... another body goes here ...
+
+------ next message ------
+
+------ main boundary ------
+
diff --git a/tests/emails/rfc/005.eml b/tests/emails/rfc/005.eml
new file mode 100644
index 0000000..b4fe65e
--- /dev/null
+++ b/tests/emails/rfc/005.eml
@@ -0,0 +1,25 @@
+From: Nathaniel Borenstein <nsb@bellcore.com>
+To: Ned Freed <ned@innosoft.com>
+Date: Sun, 21 Mar 1993 23:56:48 -0800 (PST)
+Subject: Sample message
+MIME-Version: 1.0
+Content-type: multipart/mixed; boundary="simple boundary"
+
+This is the preamble. It is to be ignored, though it
+is a handy place for composition agents to include an
+explanatory note to non-MIME conformant readers.
+
+--simple boundary
+
+This is implicitly typed plain US-ASCII text.
+It does NOT end with a linebreak.
+--simple boundary
+Content-type: text/plain; charset=us-ascii
+
+This is explicitly typed plain US-ASCII text.
+It DOES end with a linebreak.
+
+--simple boundary--
+
+This is the epilogue. It is also to be ignored.
+
diff --git a/tests/emails/rfc/006.eml b/tests/emails/rfc/006.eml
new file mode 100644
index 0000000..f353adb
--- /dev/null
+++ b/tests/emails/rfc/006.eml
@@ -0,0 +1,23 @@
+From: sender@example.com
+To: recipient@example.com
+Subject: Multipart Email Example
+Content-Type: multipart/alternative; boundary="boundary-string"
+
+--boundary-string
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: quoted-printable
+Content-Disposition: inline
+
+Plain text email goes here!
+This is the fallback if email client does not support HTML
+
+--boundary-string
+Content-Type: text/html; charset="utf-8"
+Content-Transfer-Encoding: quoted-printable
+Content-Disposition: inline
+
+<h1>This is the HTML Section!</h1>
+<p>This is what displays in most modern email clients</p>
+
+--boundary-string--
+
diff --git a/tests/emails/rfc/007.eml b/tests/emails/rfc/007.eml
new file mode 100644
index 0000000..f70101d
--- /dev/null
+++ b/tests/emails/rfc/007.eml
@@ -0,0 +1,73 @@
+Subject: RFC 8621 Section 4.1.4 test
+Content-Type: multipart/mixed; boundary="1"
+
+--1
+Content-Type: text/plain
+Content-Disposition: inline
+
+A
+--1
+Content-Type: multipart/mixed; boundary="2"
+
+--2
+Content-Type: multipart/alternative; boundary="3"
+
+--3
+Content-Type: multipart/mixed; boundary="4"
+
+--4
+Content-Type: text/plain
+Content-Disposition: inline
+
+B
+--4
+Content-Type: image/jpeg
+Content-Disposition: inline
+
+C
+--4
+Content-Type: text/plain
+Content-Disposition: inline
+
+D
+--4--
+
+--3
+Content-Type: multipart/related; boundary="5"
+
+--5
+Content-Type: text/html
+
+<html>E</html>
+--5
+Content-Type: image/jpeg
+
+F
+--5--
+
+--3--
+
+--2
+Content-Type: image/jpeg
+Content-Disposition: attachment
+
+G
+--2
+Content-Type: application/x-excel
+
+H
+--2
+Content-Type: message/rfc822
+
+Subject: J
+
+J
+--2--
+
+--1
+Content-Type: text/plain
+Content-Disposition: inline
+
+K
+--1--
+
diff --git a/tests/emails/rfc/008.eml b/tests/emails/rfc/008.eml
new file mode 100644
index 0000000..c35e1c3
--- /dev/null
+++ b/tests/emails/rfc/008.eml
@@ -0,0 +1,30 @@
+Content-Type: multipart/mixed;
+ boundary=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+
+--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+Content-Type: text/plain; charset=utf-8
+Content-Transfer-Encoding: 7bit
+
+This is a message with a base64 encoded attached email
+--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+Content-Disposition: attachment; filename="attached_email.eml"
+Content-Type: message/rfc822
+Content-Transfer-Encoding: base64
+
+VG86ICJlbWFpbEBleGFtcGxlLmNvbSIgPGVtYWlsQGV4YW1wbGUuY29tPg0KRnJvbTogTmFtZSA8
+ZW1haWxAZXhhbXBsZS5jb20+DQpTdWJqZWN0OiBIVE1MIHRlc3QNCk1lc3NhZ2UtSUQ6IDxyYW5k
+b20tbWVzc2FnZS1pZEBleGFtcGxlLmNvbT4NCkRhdGU6IFR1ZSwgMTQgRGVjIDIwMjEgMTE6NDg6
+MjUgKzAxMDANCk1JTUUtVmVyc2lvbjogMS4wDQpDb250ZW50LVR5cGU6IG11bHRpcGFydC9hbHRl
+cm5hdGl2ZTsNCiBib3VuZGFyeT0iYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
+YWFhYSINCkNvbnRlbnQtTGFuZ3VhZ2U6IGVuLVVTDQoNClRoaXMgaXMgYSBtdWx0aS1wYXJ0IG1l
+c3NhZ2UgaW4gTUlNRSBmb3JtYXQuDQotLWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
+YWFhYWFhYWENCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD11dGYtODsgZm9ybWF0
+PWZsb3dlZA0KQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogN2JpdA0KDQpUaGlzIGlzIGFuICpI
+VE1MKiB0ZXN0IG1lc3NhZ2UNCi0tYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
+YWFhYQ0KQ29udGVudC1UeXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgNCkNvbnRlbnQtVHJh
+bnNmZXItRW5jb2Rpbmc6IDdiaXQNCg0KPGh0bWw+DQogIDxoZWFkPg0KICAgIDxtZXRhIGh0dHAt
+ZXF1aXY9ImNvbnRlbnQtdHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PVVURi04Ij4N
+CiAgPC9oZWFkPg0KICA8Ym9keT4NCiAgICBUaGlzIGlzIGFuIDxiPkhUTUw8L2I+IHRlc3QgbWVz
+c2FnZQ0KICA8L2JvZHk+DQo8L2h0bWw+DQoNCi0tYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh
+YWFhYWFhYWFhYWFhYS0tDQo=
+--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb--
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
diff --git a/tests/rm-mail-parser-expected-struct.py b/tests/rm-mail-parser-expected-struct.py
new file mode 100644
index 0000000..3dbc56e
--- /dev/null
+++ b/tests/rm-mail-parser-expected-struct.py
@@ -0,0 +1,17 @@
+from os import listdir
+from os.path import isfile, join
+import sys
+
+path = sys.argv[1]
+onlyfiles = [join(path, f) for f in listdir(path) if isfile(join(path, f)) and len(f) > 4 and f[-4:] == ".txt"]
+
+for p in onlyfiles:
+ g = p[:-4] + ".eml"
+ print(f"{p} -> {g}")
+ with open(p, 'r+b') as inp:
+ with open(g, 'w+b') as out:
+ for line in inp:
+ if b"EXPECTED STRUCTURE" in line:
+ break
+ out.write(line)
+