Skip to content
Novus Examples
eml665 B

EML — Attachment With No Filename At All

An attachment with a bare Content-Disposition: attachment and no name in either header. A client has to invent a filename, and the extension it invents decides whether the saved file opens as a spreadsheet or as unknown binary.

Preview — first 21 lineseml
From: Meridian Ops <ops@meridiansupply.example>
To: Sam Rivera <sam@meridiansupply.example>
Subject: Attachment with no filename parameter
Date: Fri, 13 Feb 2026 11:05:00 -0800
Message-ID: <p7-disp-nofn@brightside.example>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=_p7_disp_nofn"

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

The attached CSV declares no name, in Content-Type or Content-Disposition.
--=_p7_disp_nofn
Content-Type: text/csv
Content-Transfer-Encoding: base64
Content-Disposition: attachment

c2t1LHF0eQ0KRlAtMjAwLDINCk5HLTA1MCwxDQo=
--=_p7_disp_nofn--

Specifications

Wave
p7
Seed
20260807
Structure
multipart/mixed
Disposition
attachment
Filename Param
absent
Name Param
absent
Part Type
text/csv
Line Endings
CRLF (RFC 5322)

Testing contract

Expected to recover
Scenario
Save an attachment whose part supplies neither a filename nor a name parameter.
Expected result
A stable placeholder name with a .csv extension derived from the text/csv media type is used, rather than an extensionless name or a dropped part.

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 — Attachment With No Filename At All” 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/mixed. 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("disposition-attachment-no-filename.eml", "rb"))
print(msg["subject"], msg["from"])

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