Say it in the words Stalwart 0.16 answers to

Guests added to an event vanished on save and no invitation was ever
sent. Not a guard in the editor, and nothing the server complained
about: ihasmail addresses a participant the way RFC 8984 does, with
sendTo and email, and Stalwart 0.16 keeps that address under
calendarAddress. Handed the RFC's spelling it stores the event, drops
the entire participant map, and reports success. Six shapes were tried
against a live 0.16.19, down to sendTo and roles alone; all six were
dropped, and patching a participant onto an existing event fails
outright with "Patch operation failed".

The same disagreement runs through two more properties. The organizer is
organizerCalendarAddress, not replyTo. A recurrence is a single
recurrenceRule, not a recurrenceRules array — and that one Stalwart
refuses honestly, with invalidProperties, so no recurring event could be
created at all and existing ones showed no repeat.

So writes now use Stalwart's names and reads accept either, since a
mailbox may hold events written by other clients. The mock now refuses
what the real server refuses and drops what it drops: advertising the
RFC spelling is exactly how this reached a live server unnoticed, the
same way the capability-placement bug did.

Verified against 0.16.19: participants, organizer and rule all survive a
create, an update and a re-read, with the roles kept as sent.

Fixes #26
Fixes #30
This commit is contained in:
2026-08-25 08:26:34 -07:00
parent a9ff405135
commit cc073693f4
10 changed files with 160 additions and 30 deletions
+4
View File
@@ -615,6 +615,8 @@ export interface JSCalendarParticipant {
email?: string;
description?: string;
sendTo?: Record<string, string>;
/** Where Stalwart 0.16 keeps the address, in place of `sendTo` / `email`. */
calendarAddress?: string;
kind?: "individual" | "group" | "location" | "resource";
roles: Record<string, boolean>;
locationId?: string;
@@ -688,6 +690,8 @@ export interface JSCalendarEvent {
freeBusyStatus?: "free" | "busy";
privacy?: "public" | "private" | "secret";
replyTo?: Record<string, string>;
/** Where Stalwart 0.16 keeps the organizer, in place of `replyTo`. */
organizerCalendarAddress?: string;
sentBy?: string;
participants?: Record<string, JSCalendarParticipant>;
requestStatus?: string;