mailparser

This commit is contained in:
s2
2017-11-13 15:06:12 +01:00
commit e410a7c7df
11 changed files with 3525 additions and 0 deletions

63
test/nested.eml Normal file
View File

@@ -0,0 +1,63 @@
From: u@example.com
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0D48_01CE140D.19527DD0"
------=_NextPart_000_0D48_01CE140D.19527DD0
Content-Type: multipart/related;
boundary="----=_NextPart_001_0D49_01CE140D.19527DD0"
------=_NextPart_001_0D49_01CE140D.19527DD0
Content-Type: multipart/alternative;
boundary="----=_NextPart_002_0D4A_01CE140D.19527DD0"
------=_NextPart_002_0D4A_01CE140D.19527DD0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="utf-8"
Dear Sir,
Good evening.
------=_NextPart_002_0D4A_01CE140D.19527DD0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset="utf-8"
<p>Dear Sir</p>
<p>Good evening.</p>
<p></p>
------=_NextPart_002_0D4A_01CE140D.19527DD0--
------=_NextPart_000_0D48_01CE140D.19527DD0
Content-Type: multipart/alternative; boundary="===============1276485360=="
MIME-Version: 1.0
Content-Disposition: inline
--===============1276485360==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
The footer
--===============1276485360==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
<p>The footer</p>
--===============1276485360==--
------=_NextPart_000_0D48_01CE140D.19527DD0--