karbassi / sync-multiple-google-calendars

Sync Multiple Google Calendars into One

Home Page:https://karbassi.github.io/sync-multiple-google-calendars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update existing events instead of replacing them

luhuhis opened this issue · comments

Hi,
is it possible to add functionality such that events are updated when they've changed, instead of always deleting/creating all?
The problem with the latter is that if you merge into a calendar that is subscribed to by other people (who may have email notifications turned on), then that can easily lead to your gmail account sending out hundreds of emails, which you have no control over.

The events should by identifiable by their respective event ids, should they not?

Of course you would need to loop over all events in the specified time frame of the calendar you want to merge into.

For each source event one can just copy the iCalUID as well. By checking for this ID and the special character one can ensure that events are uniquely matched into source-target pairs.