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

org-caldav syncs all meetings on every sync

Open jwintz opened this issue 6 years ago • 5 comments

Hi,

Thanks for the great package. I however a few questions:

  • my server ics is very very large, so org-caldav asks me wether I want to open it in text mode to avoid performance issue. Answering yes aborts the process.

  • instead of syncing new events, it syncs everything which takes around 20 minutes every day, how can I overcome that?

Thanks.

jwintz avatar Apr 26 '18 07:04 jwintz

which server? what is your configuration?

grauschnabel avatar Apr 26 '18 10:04 grauschnabel

My config is as follows:

(def-package! org-caldav
  :config
  (setq plstore-cache-passphrase-for-symmetric-encryption t)
  (setq org-caldav-url "https://zimbra.inria.fr/dav")
  (setq org-caldav-calendar-id "[email protected]/Calendar")
  (setq org-caldav-inbox (expand-file-name "~/Org/calendar.org"))
  (setq org-icalendar-timezone "Europe/Paris")
  (setq org-caldav-save-directory (expand-file-name doom-cache-dir))
  :commands org-caldav-sync)

The ICS is hosted on a Zimbra instance.

jwintz avatar Apr 26 '18 17:04 jwintz

Ok, I'm sorry, I don't know anything about zimbra. Maybe someone else can help you? For the org-caldav-save-directory it is important that the files org-caldav creates are not deleted, so it is not a cache directory (caches can be flushed/deleted without any impact), because the sync state is stored in this file(s). So if the doom-cache-dir changes or is deleted for some reason, org-caldav will start sync from the beginning. If it can find its files, it normally should only sync changes. Otherwise this could be some issue with zimbra, I don't know.

grauschnabel avatar Apr 26 '18 18:04 grauschnabel

Thanks @grauschnabel, the org-caldav-save-directory is persistent.

My last sync was better, the number of events fell dow from 4K to 1K, which all end up as failures (HTTPS forbidden - ERROR 403).

Is there a way to mark them as synced anyway?

jwintz avatar May 01 '18 15:05 jwintz

sorry, maybe @dengste could help you here?

grauschnabel avatar May 01 '18 18:05 grauschnabel