FA-76754 / Email MIME structure / Member archive
Detect a calendar invitation inside a message: method normalization · case 04
Methods written in lower case or padded are not recognised as the same method.
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 |
|---|---|---|---|
| padded lower-case method | {"attachments_ics": 0, "count": 1, "method": " request "} | {"attachments_ics": 0, "count": 1, "method": "REQUEST"} | 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 ↗