Skip to content
Novus Examples
eml1 KB

EML — Nested Multipart

Nested MIME (mixed wrapping alternative plus a text attachment) — for deep MIME tree walkers.

Preview — first 39 lineseml
Content-Type: multipart/mixed; boundary="=_nest_mixed_0001"
MIME-Version: 1.0
From: Orders <orders@meridiansupply.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: Order NV-10482 packing slip
Date: Wed, 07 Jan 2026 14:30:00 -0800
Message-ID: <nested-pack@meridiansupply.example>

--=_nest_mixed_0001
Content-Type: multipart/alternative; boundary="=_nest_alt_0001"
MIME-Version: 1.0

--=_nest_alt_0001
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

UGFja2luZyBzbGlwIGZvciBvcmRlciBOVi0xMDQ4Mi4K

--=_nest_alt_0001
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

PGh0bWw+PGJvZHk+PHA+UGFja2luZyBzbGlwIGZvciA8Yj5OVi0xMDQ4MjwvYj4uPC9wPjwvYm9k
eT48L2h0bWw+

--=_nest_alt_0001--

--=_nest_mixed_0001
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="warehouse-note.txt"

SW50ZXJuYWwgd2FyZWhvdXNlIG5vdGU6IHNoZWxmIEItMTIuCg==

--=_nest_mixed_0001--

Specifications

Structure
multipart/mixed > alternative + text attachment

What is a .eml file?

An EML file is a single email message stored in the RFC 822 / MIME format — plain-text headers (From, To, Subject, Date, Message-ID) followed by the body, which may be plain text, HTML, or a multipart structure with alternative bodies and file attachments encoded in base64.

How to use this file

Use an example EML to test email header parsing, MIME decoding, HTML-part handling, attachment extraction, and EML-to-other-format conversion.

How to use this file for testing

“EML — Nested Multipart” is a deterministic Novus Examples fixture for Email parsing, Conversion testing. Standards-compliant RFC 822 messages — plain, multipart text+HTML, and with an attachment — plus an MBOX mailbox, for testing header parsing, MIME decoding, attachment extraction, and mailbox splitting.

Documented properties for this file: multipart/mixed > alternative + text attachment. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Email fixtures use fixed dates, message IDs, and MIME boundaries so runs are reproducible, and every address is fictional. Test header parsing, MIME decoding, attachment extraction, and EML/MBOX conversion against the documented structure.

Code examples

from email import policy
from email.parser import BytesParser

msg = BytesParser(policy=policy.default).parse(open("nested-multipart.eml", "rb"))
print(msg["subject"], msg["from"])

Generated by generation/email_wave_c.py. Free for any use, no attribution required — license.