From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: Re: org-caldav: New version with proper two-way sync Date: Wed, 16 Jan 2013 10:47:57 +0100 Message-ID: <20130116104757.2f6754e3@vknecht-intel.unibw-hamburg.de> References: <87bocr4ej2.fsf@engster.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvPbO-0005sU-Tc for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 04:48:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvPbN-0002TC-Ar for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 04:48:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:48905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvPbN-0002T8-3m for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 04:48:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TvPba-0007oV-Un for emacs-orgmode@gnu.org; Wed, 16 Jan 2013 10:48:22 +0100 Received: from vknecht-intel.unibw-hamburg.de ([139.11.181.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jan 2013 10:48:22 +0100 Received: from detlef.steuer by vknecht-intel.unibw-hamburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jan 2013 10:48:22 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thank you a lot! I ran into the issue that repeated syncs have putting and deleting wrong (it seems). I use a script in crontab to sync different calendars: ----- #!/bin/bash ### Es werden die Inhalte der Org-Mode Dateien in verschiedene Calender ### in der owncloud exportiert. for calendar in Ferien Geburtstage Todo WAB; do \ emacs --batch \ --load ${HOME}/Working-Copies/Scripts/Org-Multicalendar/${calendar}.el ; \ done ## ----- ${calendar}.el looking like ----- (add-to-list 'load-path "/home/steuer/GIT/org-mode/lisp/") (require 'org) (setq org-icalendar-include-todo t) (setq org-icalendar-use-deadline '(todo-due)) (setq org-icalendar-use-scheduled '(event-if-not-todo)) (require 'url) (require 'auth-source) (setq auth-sources '((:source "~/.netrc" :host t :protocol t))) (setq auth-source-debug t) (add-to-list 'load-path "/home/steuer/GIT/org-caldav/") (setq org-caldav-url "http://steuer-geilke.de/owncloud/remote.php/caldav/calendars/detlef") (setq org-caldav-calendar-id "ferien") (setq org-caldav-files '("/home/steuer/.pim/ferien.org") ) (setq org-caldav-inbox "/home/steuer/.pim/caldav-inbox.org") (require 'org-caldav) (org-caldav-sync) ----- That worked for me, but now, after a first successful sync I get: (2. and subsequent syncs!) ----- steuer@vknecht-intel:~> /home/steuer/bin/orgdavexport.sh Contacting host: ###### Reading [application/xml; charset=utf-8]... 306 bytes of 291 bytes (105%) auth-source-user-or-password: get login for ######:80 (http) auth-source-user-or-password: found (login)=(#####) for ######:80 (http) auth-source-user-or-password: get password for #####:80 (http) auth-source-user-or-password: found (password)=SECRET for #####:80 (http) Reading [application/xml; charset=utf-8]... 1k of 1k (101%) OVERVIEW OVERVIEW Saving file /tmp/orgics11019cvx... Wrote /tmp/orgics11019cvx Saving file /tmp/orgics11019O5A... Wrote /tmp/orgics11019O5A Saving file /tmp/org-caldav-11019TUn... Wrote /tmp/org-caldav-11019TUn Reading [application/xml; charset=utf-8]... 1k of 1k (101%) Reading [application/xml; charset=utf-8]... 1k of 1k (101%) Putting event 1 of 5 Putting event 2 of 5 Putting event 3 of 5 Putting event 4 of 5 Putting event 5 of 5 Deleting event 1 from 5 Deleting event 2 from 5 Deleting event 3 from 5 Deleting event 4 from 5 Deleting event 5 from 5 Wrote /home/steuer/.emacs.d/org-caldav-fb95cae.el Symbol's function definition is void: pop-to-buffer-same-window ### So it seems all events get deleted immediately after loading them up. Indeed my calendars show up empty again in owncloud :-) Any hints? org from today, emacs 23.2, org-caldav from yesterday Deltlef On Mon, 14 Jan 2013 22:53:53 +0100 David Engster wrote: > I just pushed a pretty big update to org-caldav. Get it at > > https://github.com/dengste/org-caldav > > The short story: org-caldav now does proper two-way syncing. It's pretty > much a rewrite, actually. If you're already using org-caldav, you will > have to start from scratch after updating. > > Please read the README before using this version. Most notably, > org-caldav will set org-icalendar-store-UID when doing the iCalendar > export, so every entry with an activate timestamp will get an ID > property like this: > > :PROPERTIES: > :ID: 6cdf8805-8d1a-46ac-94fc-d225cac5f098 > :END: > > If you don't want this, do not use this package. > > Please report bugs here or in the github tracker. And please have > backups. > > -David > >