Issue Description
An organizer creates a weekly series with a local attendee, then right away moves one instance (a PUT adding an override with RECURRENCE-ID). Stalwart queues two iMIP mails for the attendee: the invite (METHOD:REQUEST, master, SEQUENCE:0) and the update (METHOD:REQUEST, only the moved instance, SEQUENCE:1). They can be delivered in either order. When the update arrives first, the invite that follows replaces the attendee’s copy and the moved instance is gone.
Expected Behavior
RFC 5546 §2.1.5: revisions are ordered by SEQUENCE, so an older component should not replace a newer one. The attendee’s copy should keep the override (SEQUENCE:1) when the invite (SEQUENCE:0) arrives after it, and end up with the master plus the moved instance, the same as when the invite arrives first.
Actual Behavior
| Order of arrival | Attendee’s copy afterwards |
|---|---|
| invite, then update | master + moved instance |
| update, then invite | master only |
Both mails are in the Inbox with X-Spam-Status: No in both orders, so iTIP ingest runs for both.
Reproduction Steps
- Fresh
stalwartlabs/stalwart:v1.0.0container, RocksDB, internal directory. Create an organizer and attendees A, B and C on one domain. - As the organizer, PUT a weekly series (
RRULE:FREQ=WEEKLY;BYDAY=TU,SEQUENCE:0) with A as attendee. Then PUT the same object with an override that moves one instance two hours later. - A receives the two iMIP mails. Copy their
text/calendarparts, with A’s address replaced by B’s (and by C’s). - Over authenticated submission (port 465, as the organizer), send B the update, then 2 s later the invite. Send C the invite, then the update.
- GET B’s and C’s copies. C has the master and the override; B has only the master. Same result in 3 of 3 runs.
Stalwart Version
v1.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
In our CI, an organizer that moves an instance right after creating the series loses the move for one attendee in about 1 run in 4. We did not test whether 0.16 ingests the same way. It also sends iMIP through the task queue, but our 0.16 CI never hit it.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on