Skip to content
Novus Examples
eml618 B

EML — multipart/alternative With an Empty text/plain Part

A zero-length text/plain alternative next to a real HTML part — the shape produced by senders that add a plain part only to satisfy spam filters. Anything preferring plain text renders a blank message unless it falls back when the chosen part is empty.

Preview — first 20 lineseml
From: Meridian Ops <ops@meridiansupply.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: Statement ready (empty plain part)
Date: Tue, 10 Feb 2026 08:10:00 -0800
Message-ID: <p7-alt-empty@brightside.example>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_p7_alt_empty"

--=_p7_alt_empty
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

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

<html><body><p>Your February statement is ready in the portal.</p></body></=
html>
--=_p7_alt_empty--

Specifications

Wave
p7
Seed
20260807
Structure
multipart/alternative
Plain Part Bytes
0
Html Carries Content
true
Line Endings
CRLF (RFC 5322)

Testing contract

Expected to recover
Scenario
Render a message whose preferred text/plain alternative contains no octets at all.
Expected result
A plain-text-preferring reader detects the empty part and falls back to the HTML alternative rather than showing an empty body.

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 an Empty text/plain Part” is a deterministic Novus Examples fixture for Email parsing, Error handling, 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-empty-plain-part.eml", "rb"))
print(msg["subject"], msg["from"])

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