[M8-03] Calendar invites: show an `.ics` invite (`METHOD:REQUEST`) and reply accept, tentative or decline, without building a calendar app
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 15/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- android, ios, rust
- Domain
- mobile-dev
Research direction
The body has no files, places or acceptance criteria yet, so there is no named entry point. Read CONTRIBUTING.md and the existing mail rendering code to find where message parts are displayed, then ask a maintainer which module should own the invite parsing. Done would be an .ics with METHOD:REQUEST showing accept, tentative and decline replies, which the maintainer has not yet confirmed.
Written by the indexing model from the issue text.
Description
Roadmap ID: M8-03 (M8 — After 1.0)
🤖 This looks suitable for an AI agent. Now that the sections below are filled in, a maintainer can review them and add the
agent-readylabel.
Goal
Calendar invites: show an .ics invite (METHOD:REQUEST) and reply accept, tentative or decline, without building a calendar app
Files and places
- Parsing.
core/crates/mailcrane-mime/src/calendar.rs(new): a small, bounded iCalendar (RFC 5545) reader for oneVEVENTinsideVCALENDARwithMETHOD:REQUEST(andCANCEL, shown read-only).- Fields:
UID,SEQUENCE,SUMMARY,DTSTART/DTENDorDURATION,TZIDwith an embeddedVTIMEZONEor the platform's time zone database,LOCATION,ORGANIZER,ATTENDEEwithPARTSTAT, andRRULEshown as text only. - Handle line unfolding, escaping and parameter quoting. Limit input size, line length, property count and nesting. It returns errors and never panics.
- Use an MPL-compatible crate only if it is small and maintained. Otherwise write the subset, with a note in the PR on why.
- Fields:
- Finding the invite. In
mailcrane-mime/src/model.rs, atext/calendar; method=REQUESTpart (inline or attached.ics) gives the message aninvitefield. - Replying.
core/crates/mailcrane-core/src/calendar/(new):- Build an RFC 5546 iMIP
METHOD:REPLYwith the sameUID/SEQUENCE, only the user'sATTENDEEline, andPARTSTATset toACCEPTED,TENTATIVEorDECLINED. - Wrap it in
multipart/alternative(a short text part plustext/calendar; method=REPLY) throughmailcrane-mime/src/build.rs. - Send it to the
ORGANIZERthrough the outbox (undo send applies). - The user's attendee address is matched against the account's addresses, case-insensitively. If none matches, the reply is refused with a clear message, not sent.
- Build an RFC 5546 iMIP
- FFI.
mailcrane-ffi/src/messages.rsexposes the invite. A new function sends the reply. - Android.
- An invite card at the top of
ui/message/MessageScreen.kt: title, local date and time (with the original time zone if it differs), location, organiser, and Accept / Maybe / Decline. - After replying, the card shows the answer sent.
- "Add to calendar" hands the
.icsto the system calendar withACTION_VIEW/ACTION_INSERT. No calendar permission and no calendar inside the app.
- An invite card at the top of
docs/changelog.d/263.feature.md.
Out of scope: creating events, a calendar view, CalDAV, updating events after a counter-proposal.
Acceptance criteria
- Invites from Google Calendar, Outlook/Exchange and Thunderbird show correct title, time (across time zones and DST) and organiser. The test fixtures are anonymised
.icsfiles undercore/crates/mailcrane-mime/tests/fixtures/calendar/. - Accept, Maybe and Decline send a valid iMIP REPLY that the organiser's client accepts. Check the structure in a test against RFC 5546 examples.
- A
CANCELshows "This event was cancelled" with no reply buttons. - Hostile
.icsinput (huge, deeply nested, bad dates, endless folding) returns errors and never panics: proptest plus a fuzz target. - No reply is sent when the user isn't an attendee, and failing to send leaves the card in its earlier state.
- Nothing from the invite (title, location, attendees) is logged.
- One PR from branch
263-calendar-invites, with a Conventional Commit title,Closes #263and a changelog fragment.
How to test
cd core && cargo test -p mailcrane-mime calendar && cargo test -p mailcrane-core calendar
cd android && ./gradlew ktlintFormat assembleDebug testDebugUnitTest lintDebug
On the emulator: deliver a fixture invite to the testkit mailbox, open it, press Accept, and check the sent REPLY in the outbox or Sent folder.
Want this? Comment /claim. See CONTRIBUTING.md.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 0
- Avg merge
- 34m
- Merged PRs (30d)
- 238
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from level-98/mailcrane
-
agent-ready area:core bug fleet
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
level-98/mailcrane#433 · 1 comment ·
Maintainers usually reply within 1 day
-
accessibility agent-ready area:android bug fleet
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
level-98/mailcrane#412 · 1 comment ·
Maintainers usually reply within 1 day
-
agent-ready area:core fleet
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
level-98/mailcrane#409 · 2 comments ·
Maintainers usually reply within 1 day
-
agent-ready area:android bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
level-98/mailcrane#399 · 2 comments ·
Maintainers usually reply within 1 day
-
agent-ready area:android bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
level-98/mailcrane#397 · 2 comments ·
Maintainers usually reply within 1 day
All issues in level-98/mailcrane
Similar issues
-
bug bugfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
storytold/photocraft#17140 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug command Java Edition protocol
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Pumpkin-MC/Pumpkin#4733 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days