Skip to content
Novus Examples
eml1002 B

EML — multipart/related Root Selected by start=

The related container's root is the second part, named by the start= parameter, with an image sitting first. A reader that assumes the first part is always the root displays a PNG as the message body.

Preview — first 25 lineseml
From: Maya Chen <maya@brightside.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: February offers (root is not the first part)
Date: Wed, 11 Feb 2026 09:05:00 -0800
Message-ID: <p7-rel-start@brightside.example>
MIME-Version: 1.0
Content-Type: multipart/related; type="text/html"; start="<root.p7@brightside.example>"; boundary="=_p7_rel_start"

--=_p7_rel_start
Content-Type: image/png; name="logo.png"
Content-Transfer-Encoding: base64
Content-ID: <logo2.p7@brightside.example>
Content-Disposition: inline; filename="logo.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAJElEQVR42mOQkJCGoy9fvsIRLnGG
QaiBGEXI4oNRw2g8DAoNAMVGlBCcw84bAAAAAElFTkSuQmCC
--=_p7_rel_start
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-ID: <root.p7@brightside.example>

<html><body><p><img src=3D"cid:logo2.p7@brightside.example" width=3D"16" he=
ight=3D"16" alt=3D"logo"> February offers (SAMPLE).</p></body></html>
--=_p7_rel_start--

Specifications

Wave
p7
Seed
20260807
Structure
multipart/related
Start Param
<root.p7@brightside.example>
Root Part Index
2
First Part Type
image/png
Line Endings
CRLF (RFC 5322)

Testing contract

Expected to pass
Scenario
Select the root of a multipart/related whose start= parameter names a part other than the first.
Expected result
The text/html part identified by start= is rendered as the body and the leading image/png part is treated as a resource.

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 — multipart/related Root Selected by start=” 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: seed 20260807 · CRLF (RFC 5322) · multipart/related. 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("related-start-parameter.eml", "rb"))
print(msg["subject"], msg["from"])

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