From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tractatus <51183341@gmx.at> Subject: org-caldav: VTODO entries without DTSTART Date: Fri, 22 May 2015 09:16:30 +0200 Message-ID: <20150522091630.72cc7a8b@valun> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <51183341@gmx.at>) id 1YvhCB-0003mn-G2 for emacs-orgmode@gnu.org; Fri, 22 May 2015 03:16:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <51183341@gmx.at>) id 1YvhC7-0005G0-FY for emacs-orgmode@gnu.org; Fri, 22 May 2015 03:16:39 -0400 Received: from mout.gmx.net ([212.227.17.22]:50724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <51183341@gmx.at>) id 1YvhC7-0005Fo-6Z for emacs-orgmode@gnu.org; Fri, 22 May 2015 03:16:35 -0400 Received: from valun ([82.149.98.35]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lrw2c-1ZI4dz1y8M-013bX2 for ; Fri, 22 May 2015 09:16:33 +0200 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 Hello, I am testing syncing my ical files via Radicale CalDAV Server to org usinf org-caldav. For some files I get an error "Format specifier doesn't match argument type". [2] In my ical files generated by Mozilla Icedove are VTODO entries [1] without a DTSTART field. [1] I think this causes the error. Since I do not care to sync VTODO'S is there a way to filter them out before they are processed? Can this error be avoided? The code seems to try to deal with missing dtstarts: https://github.com/dengste/org-caldav/blob/master/org-caldav.el#L1198 but the error seems to occur before that: https://github.com/dengste/org-caldav/blob/master/org-caldav.el#L1175 [1] BEGIN:VTODO CREATED:20150522T053330Z LAST-MODIFIED:20150522T053352Z DTSTAMP:20150522T053352Z UID:b3a0257d-cf04-4675-825d-f47b802e5838 SUMMARY:test TODO X-RADICALE-NAME:b3a0257d-cf04-4675-825d-f47b802e5838.ics END:VTODO [2] Debugger entered--Lisp error: (error "Format specifier doesn't match argument type") format("%02d:%02d" "nil" nil) icalendar--datetime-to-colontime(nil) (let* ((calendar-date-style ...) (ical-list ...) (e ...) (zone-map ...) (dtstart ...) (dtstart-zone ...) (dtstart-dec ...) (start-d ...) (start-t ...) (dtend ...) (dtend-zone ...) (dtend-dec ...) (dtend-1-dec ...) end-d end-1-d end-t (summary ...) (description ...) (rrule ...) (rdate ...) (duration ...)) (if (and dtstart ...) (setq start-t nil)) (when duration (let ... ... ... ...)) (setq end-d (if dtend-dec ... start-d)) (setq end-1-d (if dtend-1-dec ... start-d)) (setq end-t (if ... ... start-t)) (list start-d start-t (if end-t end-d end-1-d) end-t summary description)) org-caldav-convert-event()