derekantrican / GAS-ICS-Sync

A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed
GNU General Public License v3.0
1.5k stars 191 forks source link

Add option to only resync future events (but keeping the past events) #292

Closed FoxtrotSierra6829 closed 1 year ago

FoxtrotSierra6829 commented 1 year ago

My source calendar unfortunately removes past events from more than a month ago. For future reference I want to keep them though. Still I need the ability to sync the removal of future events.

Currently there is an existing option to only sync future events:

var onlyFutureEvents = false; // If you turn this to "true", past events will not be synced (this will also removed past events from the target calendar if removeEventsFromCalendar is true)

As I need to have removeEventsFromCalendar set to true in order to be able to remove future events, this will also remove past events from the calendar though.

jonas0b1011001 commented 1 year ago

Have a look at #168 this might be what you are looking for.

FoxtrotSierra6829 commented 1 year ago

Have a look at #168 this might be what you are looking for.

This solution seems to be working for me. Can this be integrated into master in a future PR?

derekantrican commented 1 year ago

@jonas0b1011001 - while this is definitely a niche request, it seems there are about 5 users that wanted something similar. Maybe worth adding an option for it? Thoughts?

(maybe once https://github.com/derekantrican/GAS-ICS-Sync/discussions/311 is completed)

jonas0b1011001 commented 1 year ago

There actually is a PR ready to be merged in https://github.com/derekantrican/GAS-ICS-Sync/pull/317.

derekantrican commented 1 year ago

PR #317 has been merged