Skip to content
Novus Examples
eml600 B

EML — Encoded-Word Subject Folded Over Four Lines

A Subject folded across four physical lines, one encoded-word per line, which is the shape RFC 2047 prescribes for long international headers. Because the fold whitespace is discarded on decode, each continuation word carries its own leading space inside the encoded-word — omit that and the subject decodes run-together.

Preview — first 16 lineseml
From: Maya Chen <maya@brightside.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: =?UTF-8?B?V29jaGVuw7xiZXJzaWNodDo=?=
 =?UTF-8?B?IExpZWZlcnVuZw==?=
 =?UTF-8?B?IHZlcnrDtmdlcnQ=?=
 =?UTF-8?B?IOKAlCBTQU1QTEU=?=
Date: Mon, 09 Feb 2026 09:08:00 -0800
Message-ID: <p7-ew-folded@brightside.example>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

This message exists for its Subject header, not its body.
The decoded subject is recorded in the file's specs, so a header decoder
can be checked against a published expected string.

Specifications

Wave
p7
Seed
20260807
Encoded Words
4
Charset
UTF-8
Continuation Lines
3
Decoded Subject
Wochenübersicht: Lieferung verzögert — SAMPLE
Spaces Carried Inside Encoded Words
true
Line Endings
CRLF (RFC 5322)

Testing contract

Expected to pass
Scenario
Unfold a four-line Subject header and decode each encoded-word, discarding the whitespace that separated them.
Expected result
Subject reads "Wochenübersicht: Lieferung verzögert — SAMPLE" on one line — the spaces come from inside the encoded-words, not from the folds.

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 — Encoded-Word Subject Folded Over Four Lines” is a deterministic Novus Examples fixture for Email parsing, Encoding detection, Internationalization. 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). 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("ew-folded-subject.eml", "rb"))
print(msg["subject"], msg["from"])

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