From 338e556f8d8e1a29e3df04cfad93e291b3b61ab0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 8 Dec 2016 21:42:01 +0100 Subject: calcurse-caldav: Fix appointment imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When importing an appointment from the server, make sure we store a hash of the item in the sync DB, and not the serialized item itself. Reported-by: Guillaume Laurès Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 35bc8cb..13e4388 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -46,6 +46,7 @@ def calcurse_wipe(): def calcurse_import(icaldata): p = subprocess.Popen([calcurse, '-i', '-', '--dump-imported', '-q', + '--format-apt=%(hash)\\n', '--format-recur-apt=%(hash)\\n', '--format-event=%(hash)\\n', '--format-recur-event=%(hash)\\n', -- cgit v1.2.3