FA-76749 / Email MIME structure / Member archive
Detect a calendar invitation inside a message: attached calendar · case 04
An attached calendar file is treated as a live invitation.
Case contract
Walk multiparts but never descend into message/rfc822 parts. A text/calendar part, or any part whose filename ends in ".ics" (case-insensitive), with an attachment disposition only counts as an attached .ics file. Other text/calendar parts with a method parameter contribute their method (trimmed, upper-cased; parameter names case-insensitive). Result {method: the single distinct method, "AMBIGUOUS" for several, None for none; count: contributing parts; attachments_ics}.
Why this case matters
Clients show accept/decline controls only for real invitations addressed to the reader.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| attached calendar with method | {"attachments_ics": 0, "count": 1, "method": "PUBLISH"} | {"attachments_ics": 1, "count": 0, "method": null} | 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 ↗