dengste / org-caldav

Caldav sync for Emacs orgmode
GNU General Public License v3.0
712 stars 105 forks source link

Syncing only TODOs #287

Closed ploedige closed 8 months ago

ploedige commented 8 months ago

Hey. I really love this project but I find that I only need the syncing functionality for TODOs. Is there a way to only sync those? It would prevent users like me from accidentally breaking their calendars.

jackkamm commented 8 months ago

org-caldav uses ox-icalendar to export your Org file, so you can set the custom variable org-icalendar-with-timestamps to prevent ox-icalendar from creating non-todo events (VEVENTs) in icalendar.

However, this is only safe to do if your remote calendar is strictly for todos (VTODO). In particular, if your calendar contains a VEVENT, then org-caldav will import it on sync; but on the next sync, if you set org-icalendar-with-timestamps to nil, then ox-icalendar won't export them, making org-caldav think the event was deleted, which will propagate to the remote server.

Therefore, if you go this path, I recommend to use separate calendars for events and todos. Many CalDav servers support creating event-only and todo-only calendars, including radicale and Nextcloud.

ploedige commented 8 months ago

Thank you. I think that is the safest route. Having a separate ToDo calendar should reduce the risk of shooting myself in the foot by misconfiguring.