FA-76649 / Email MIME structure / Member archive
Collect the plain-text body to display: attachment before message · case 04
The text of an attached message is shown as part of the body.
Case contract
Returns the text/plain strings to display in order. Types compare case-insensitively. multipart/alternative yields the result of its last child that yields any text; other multiparts concatenate their children. Entities with an attachment disposition yield nothing. A message/rfc822 without attachment disposition yields its body; text/plain yields its text; everything else yields nothing.
Why this case matters
Text extraction powers previews, replies and search; wrong choices quote attachments or skip the real body.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| attached message and log | ["hi", "inner"] | ["hi"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗