From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?U2HFoWEgSmFuacWha2E=?= Subject: syncing multiple calendars with org-caldav Date: Thu, 01 Mar 2018 14:17:33 +0100 Message-ID: <87k1uwhr4i.fsf@atmarama.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erO5i-0000sN-Cl for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 08:17:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erO5e-00089M-6i for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 08:17:45 -0500 Received: from [195.159.176.226] (port=39205 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erO5d-00085w-UC for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 08:17:42 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1erO3Z-0002Dr-Ir for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 14:15:33 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, in the past I was using org-caldav package to sync my calendar (and contacts) entries with my Android phones via Baikal server, but at some point it got broken - see https://github.com/dengste/org-caldav/issues/51 so I had to resort to another solution by using vdiryncer. Recently, I found out that org-caldav is supposed to work (again) with multiple calendars and there is example: setq org-caldav-calendars '((:calendar-id "work@whatever" :files ("~/org/work.org") :inbox "~/org/fromwork.org") (:calendar-id "stuff@mystuff" :files ("~/org/sports.org" "~/org/play.org") :skip-conditions (regexp "soccer") :inbox "~/org/fromstuff.org")) ) in its README file, (https://github.com/dengste/org-caldav/blob/master/README.md) but I must admit it's not clear how one is supposed to configure :skip-conditions function? I have a neeed for 4 or 5 calendars: my own, one for wife's activities, one for the kid's, another using special calendar, birthdays... I did try with this setup: * I did add required calendars to my org-agenda-files, like: (setq org-agenda-files (list "~/emacs/org/gour.org" "~/emacs/org/wife.org" "~/emacs/org/kid.org" "~/emacs/org/special.org" "~/emacs/org/birthdays.org" "~/emacs/org/calendar.org" ) and I want that calendar.org does contain all the entries which do arrive from the Android phones. * here is org-caldav's part of setup: (setq org-caldav-calendars '((:calendar-id "gour" :files ("~/emacs/org/gour.org") :inbox "~/emacs/org/calendar.org") (:calendar-id "jahnava" :files ("~/emacs/org/wife.org") :inbox "~/emacs/org/calendar.org") (:calendar-id "kirtana" :files ("~/emacs/org/kid.org") :inbox "~/emacs/org/calendar.org") (:calendar-id "vaishnava" :files ("~/emacs/org/special.org") :inbox "~/emacs/org/calendar.org") (:calendar-id "birthdays" :files ("~/emacs/org/birthdays.org") :inbox "~/emacs/org/calendar.org") ) ) So, I'd like to entry calendar entries for myself into gour.org and, similarly to other adequately named *.org files, while calendar.org should contain entries which were entered on the phone(s) and were synced with my org files. However, when I tried the above setup, one of the calendar got all the duplicates from another, in my case, kid.org got all the entries from wife.org. Anyone can suggest how to incorporate :skip-conditions so that there won't by any duplicates and every for every entry in my agenda it will be clear where the entry does belong to? In the test-suite I've noticed the following: :skip-conditions (notregexp ":sometag:") so maybe the setup could be done by adding specific tags (eg. ":kid:", ":wife:" etc. to the setup, but it's not clear to me how to configure eveything for more than two calendars, although I'm not sure how e.g.: :skip-conditions (regexp "soccer") can prevent duplicate entries? Sincerely, Gour -- As a blazing fire turns firewood to ashes, O Arjuna, so does the fire of knowledge burn to ashes all reactions to material activities.