Skip to content

Feature/ics rework/invitees - #1673

Draft
lucs7 wants to merge 2 commits into
LibreBooking:developfrom
lucs7:feature/ics-rework/invitees
Draft

Feature/ics rework/invitees#1673
lucs7 wants to merge 2 commits into
LibreBooking:developfrom
lucs7:feature/ics-rework/invitees

Conversation

@lucs7

@lucs7 lucs7 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

This pull request implements several improvements related to calendar export, attendee handling, and email attachment functionality. The main focus is on supporting accurate attendee lists in iCalendar (ICS) exports and emails, ensuring correct calendar method usage (REQUEST, PUBLISH, CANCEL), and allowing email attachments to specify MIME types. This enhances interoperability with calendar clients and improves the accuracy of scheduling emails.

@JohnVillalovos could you please test this in outlook
I tested it on Thunderbird and Gmail

depends-on: #1657

lucs7 added 2 commits August 28, 2026 20:39
Added mime-type to ics attachment to improve RFC 5546 compliance
and client event recognition. Added mime-type specific tests.
Reservation ICS attachments were always sent with METHOD:REQUEST
regardless of what the email actually represented, and
iCalendarReservationView never populated attendee data at all:
ReservationItemView had no email fields for participants/invitees,
so Attendees was always empty and REQUEST/CANCEL never had
anything to act on.

ReservationItemView now tracks ParticipantEmails/InviteeEmails
(from the participant_list/invitee_list query and
FromReservationView()), and iCalendarReservationView builds an
Attendees list from participants, invitees, and guests, rendered
as ATTENDEE properties by CalendarExportDisplay.

ReservationEmailMessage subclasses now declare their iTip intent
via a GetIcsMethod() hook:
- PUBLISH by default, since ReservationCreatedEmail/UpdatedEmail/
  ApprovedEmail and ReservationShareEmail send their attachment
  to the reservation owner or an arbitrary share recipient,
  never to one of the reservation's own attendees. A
  METHOD:REQUEST addressed to someone who isn't listed as an
  ATTENDEE doesn't make sense, even though the attachment still
  lists attendees informationally.
- CANCEL for ReservationDeletedEmail (and GuestDeletedEmail/
  InviteeRemovedEmail/ParticipantDeletedEmail).
- REQUEST for InviteeAddedEmail/GuestAddedEmail (and their
  Updated/Participant subclasses), which genuinely are addressed
  to the attendee being asked to accept/decline.

CalendarExportDisplay::DetermineMethod() keeps its own
attendee-based REQUEST/PUBLISH heuristic for the direct
export/subscription pages, which is a separate concern from
what an email attachment's recipient is.

Assisted-by: Claude:claude-sonnet-4-6
BREAKING CHANGE: ICS METHOD in email attachments is no longer
always REQUEST. Owner/share emails now use PUBLISH, cancellation
emails use CANCEL, and only invitee/guest/participant added
emails send REQUEST. Attendee data (ATTENDEE properties) was
previously always empty; it is now populated from participants,
invitees, and guests. The sender address changes to the
configured default (no @no-reply fallback).
@lucs7
lucs7 force-pushed the feature/ics-rework/invitees branch from b98c43a to 8f811bf Compare August 28, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant