org-caldav icon indicating copy to clipboard operation
org-caldav copied to clipboard

Multiple calendars with file+headline inbox lead to duplicate events

Open jeeger opened this issue 5 years ago • 0 comments

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.

jeeger avatar Feb 28 '20 10:02 jeeger