Skip to content
Novus Examples
eml638 B

EML — multipart/related With a Dangling cid: Reference

The HTML body references a Content-ID that no part in the message provides — the everyday result of a forward that dropped an attachment. A renderer should show the alt text and carry on, not emit a broken external request or fail the whole message.

Preview — first 17 lineseml
From: Maya Chen <maya@brightside.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: Signature block (cid target absent)
Date: Wed, 11 Feb 2026 09:10:00 -0800
Message-ID: <p7-rel-dangling@brightside.example>
MIME-Version: 1.0
Content-Type: multipart/related; type="text/html"; boundary="=_p7_rel_dangling"

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

<html><body><p>Signature image below.</p><img src=3D"cid:missing.p7@brights=
ide.example" width=3D"16" height=3D"16" alt=3D"signature (part absent on pu=
rpose)"></body></html>
--=_p7_rel_dangling--

Specifications

Wave
p7
Seed
20260807
Structure
multipart/related
Cid References
1
Cid Parts Present
0
Dangling Cid
missing.p7@brightside.example
Line Endings
CRLF (RFC 5322)

Testing contract

Expected to recover
Scenario
Render an HTML body whose cid: reference has no matching part anywhere in the message.
Expected result
The image falls back to its alt text, the rest of the body still renders, and no network request is made for the cid: URL.

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 With a Dangling cid: Reference” 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/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-dangling-cid.eml", "rb"))
print(msg["subject"], msg["from"])

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