From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: UIDs in icalendar export (exporting my agenda) Date: Wed, 15 Jul 2009 15:17:20 -0400 Message-ID: <18870.1247685440@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRA78-0001Z3-4R for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:26:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRA72-0001X0-KM for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:26:00 -0400 Received: from [199.232.76.173] (port=55436 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRA72-0001Wx-FR for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:25:56 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:40781) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRA71-00060g-SE for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:25:56 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KMU000B98KG2W4E@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 14:24:21 -0500 (CDT) In-reply-to: Message from "aldrin d'souza" of "Wed, 15 Jul 2009 23:28:34 +0530." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: aldrin d'souza Cc: emacs-orgmode@gnu.org aldrin d'souza wrote: > i want to export my org-agenda as an icalendar file so that i can load it into some online calendar and access it on my phone. however, i'm facing some > issues with the iCalendar files which org is generating. i can reproduce the problem by using org-export-icalendar-this-file on the following (simple) > org file > > ------- > * <2009-05-24 +1y> bob dylan > * <2009-01-27 +1y> mozart > ------- > > here's the test.ics that gets generated: > > ------- .... > ------- > > if you notice, the UIDs in both the events are same. aren't they supposed to be different? when i import this file into an online calendar (like google) > one of the event is dropped. > am i missing something? i'm using org 6.28trans on emacs 23.0.94. > I tried your test.org and my test.ics has different UIDs for the two events. They also have a different format: UID: TS-01503584-f7a0-4b1d-b826-6a573852c4f7 UID: TS-891e3508-5228-4101-84dd-72f509a4b757 so we must be using different methods of UID generation. What is the value of org-id-method in your setup? Mine says: C-h v org-id-method ,---- | org-id-method is a variable defined in `org-id.el'. | Its value is uuidgen | ... `---- Then, looking at the code, the UID is set through this expression: (if org-icalendar-store-UID (org-id-get-create) (or (org-id-get) (org-id-new))) I presume (but you should check) that you have org-icalendar-store-UID set to t (mine is defaulted to nil) which means that it gets the UID stored in an ID property in the item (with the variable set to nil, a new UID is generated every time, which is OK for experimentation, but probably not OK for synchronizing: you'd want the ID of an item to remain constant in that case). Could it be that both your items have the same value for this property? What happens if you delete the ID value from one (or both) and then try the export again? HTH, Nick