org-caldav
org-caldav copied to clipboard
Multiple calendars with file+headline inbox lead to duplicate events
I've found that something like the following configuration causes two calendars to sync events between the two calendars:
(setq org-caldav-calendars
'((:calendar-id "calendar1"
:inbox (file+headline "file.org" "headline 1")
:files ("inbox1.org"))
(:calendar-id "calendar2":
:inbox (file+headline "file.org" "headline 2")
:files ("inbox2.org"))))
I think the problem is that the inbox is automatically added to the :files variable, but that files does not support the (file+headline) specification, leading to all events from the file being picked up and copied to both calendars.
A possible fix would be disallowing file+inbox specification in org-caldav-calendars, or allowing (file+headline) specifications in the org-caldav-files/:files variable.