Skip to content
Novus Examples
eml901 B

EML — multipart/alternative With Three Representations

The same release notes as plain text, Markdown (RFC 7763) and HTML, ordered least-faithful first. Most selectors only know the plain/HTML pair, so this is the fixture that shows whether an unfamiliar middle part is skipped or mistaken for the body.

Preview — first 32 lineseml
From: Meridian Ops <ops@meridiansupply.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: Release notes 2026.02 (three representations)
Date: Tue, 10 Feb 2026 08:15:00 -0800
Message-ID: <p7-alt-three@brightside.example>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_p7_alt_three"

--=_p7_alt_three
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Release notes 2026.02

* Backorder alerts
* CSV export
--=_p7_alt_three
Content-Type: text/markdown; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

# Release notes 2026.02

- Backorder alerts
- CSV export
--=_p7_alt_three
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><body><h1>Release notes 2026.02</h1><ul><li>Backorder alerts</li><li>=
CSV export</li></ul></body></html>
--=_p7_alt_three--

Specifications

Wave
p7
Seed
20260807
Structure
multipart/alternative
Parts
text/plain + text/markdown + text/html
Markdown Media Type
RFC 7763
Line Endings
CRLF (RFC 5322)

Testing contract

Expected to pass
Scenario
Pick a renderable body from an alternative container that includes a text/markdown part between plain and HTML.
Expected result
The text/html part is selected; the text/markdown part is neither rendered as the body nor reported as an 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 — multipart/alternative With Three Representations” 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/alternative. 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("alt-three-representations.eml", "rb"))
print(msg["subject"], msg["from"])

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