emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Detlef Steuer <detlef.steuer@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: org-caldav: New version with proper two-way sync
Date: Wed, 16 Jan 2013 10:47:57 +0100	[thread overview]
Message-ID: <20130116104757.2f6754e3@vknecht-intel.unibw-hamburg.de> (raw)
In-Reply-To: 87bocr4ej2.fsf@engster.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 <deng@randomsample.de> 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
> 
> 

  parent reply	other threads:[~2013-01-16  9:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 21:53 org-caldav: New version with proper two-way sync David Engster
2013-01-14 22:29 ` Rasmus
2013-01-15 18:23   ` Vincent Beffara
2013-01-16 21:53     ` David Engster
2013-01-16  3:36 ` Eric S Fraga
2013-01-16  3:53 ` Eric S Fraga
2013-01-16  4:47   ` Eric S Fraga
2013-01-16 21:45     ` David Engster
2013-01-17  4:46       ` Eric S Fraga
2013-01-17  5:34         ` Eric S Fraga
2013-01-17  8:10         ` Detlef Steuer
2013-01-17  8:35           ` Eric S Fraga
2013-01-17  9:29             ` Detlef Steuer
2013-01-18  3:48               ` Eric S Fraga
2013-01-16  4:15 ` JBash
2013-01-16  9:47 ` Detlef Steuer [this message]
2013-01-16 21:35   ` David Engster
2013-01-17  8:12     ` Detlef Steuer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130116104757.2f6754e3@vknecht-intel.unibw-hamburg.de \
    --to=detlef.steuer@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).