Skip to content

Commit

Permalink
http_caldav_sched.c: add caldav_send_partstat_updates option
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Aug 17, 2023
1 parent de94b64 commit b0f04e5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions changes/next/caldav_send_partstat_updates
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

Description:

Allow control over whether updated invites are sent when an attendee changes
their participation status.


Config changes:

Added 'caldav_send_partstat_updates' switch


Upgrade instructions:

None.
3 changes: 1 addition & 2 deletions imap/http_caldav_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1349,14 +1349,13 @@ void sched_deliver(const char *cal_ownerid, const char *sched_userid,
r = sched_deliver_local(sched_userid, sender, recipient, NULL, &sparam,
sched_data, authstate, &attendee, &ical);

/* XXX Should this be a config option? - it might have perf implications */
if (r == 1 && SCHED_IS_REPLY(sched_data)) {
/* Send updates to attendees - skipping sender of reply */
icalcomponent *comp = icalcomponent_get_first_real_component(ical);
if (icalcomponent_isa(comp) == ICAL_VPOLL_COMPONENT)
sched_pollstatus(cal_ownerid, sched_userid,
recipient, &sparam, ical, attendee);
else
else if (config_getswitch(IMAPOPT_CALDAV_SEND_PARTSTAT_UPDATES))
sched_request(cal_ownerid, sched_userid, NULL, recipient,
NULL, ical, sched_data->mech); // oldical?
}
Expand Down
5 changes: 5 additions & 0 deletions lib/imapoptions
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,11 @@ Blank lines and lines beginning with ``#'' are ignored.
If not set (the default), the value of the "servername" option will
be used.*/

{ "caldav_send_partstat_updates", 1, SWITCH, "UNRELEASED" }
/* If enabled, when an attendee replies to the organizer with their
participation status, an updated invite will be sent to all other
attendees. */

{ "calendarprefix", "#calendars", STRING, "2.5.0" }
/* The prefix for the calendar mailboxes hierarchies. The hierarchy
delimiter will be automatically appended. The public calendar
Expand Down

0 comments on commit b0f04e5

Please sign in to comment.