From mboxrd@z Thu Jan 1 00:00:00 1970 From: "aldrin d'souza" Subject: UIDs in icalendar export (exporting my agenda) Date: Wed, 15 Jul 2009 23:28:34 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1663219607==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MR8kw-0006Hx-HP for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:59:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR8kr-0006GU-H6 for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:59:01 -0400 Received: from [199.232.76.173] (port=33656 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR8kr-0006GP-7U for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:58:57 -0400 Received: from mail-ew0-f217.google.com ([209.85.219.217]:35223) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MR8kq-0005Pp-Fn for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:58:56 -0400 Received: by ewy17 with SMTP id 17so4732236ewy.42 for ; Wed, 15 Jul 2009 10:58:54 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============1663219607== Content-Type: multipart/alternative; boundary=0016367d6f14f53473046ec24e1f --0016367d6f14f53473046ec24e1f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit hello, 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: ------- BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:test PRODID:-//my-name//Emacs with Org-mode//EN X-WR-TIMEZONE:+0530 CALSCALE:GREGORIAN BEGIN:VEVENT UID: TS-c7g0uc40uoe0 DTSTART;VALUE=DATE:20090524 DTEND;VALUE=DATE:20090525 RRULE:FREQ=YEARLY;INTERVAL=1 SUMMARY: bob dylan CATEGORIES:test END:VEVENT BEGIN:VEVENT UID: TS-c7g0uc40uoe0 DTSTART;VALUE=DATE:20090127 DTEND;VALUE=DATE:20090128 RRULE:FREQ=YEARLY;INTERVAL=1 SUMMARY: mozart CATEGORIES:test END:VEVENT END:VCALENDAR ------- 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. thanks, -- ajd. --0016367d6f14f53473046ec24e1f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hello,

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 th= e following (simple) org file

---<test.org>----
* <2009-0= 5-24 +1y> bob dylan
* <2009-01-27 +1y> mozart
---</test.org>----

here's the test.ics t= hat gets generated:

---<test.ics>----
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNA= ME:test
PRODID:-//my-name//Emacs with Org-mode//EN
X-WR-TIMEZONE:+053= 0
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID: TS-c7g0uc40uoe0
DTSTART;= VALUE=3DDATE:20090524
DTEND;VALUE=3DDATE:20090525
RRULE:FREQ=3DYEARLY;INTERVAL=3D1
SUMMARY:= bob dylan
CATEGORIES:test
END:VEVENT
BEGIN:VEVENT
UID: TS-c7g0= uc40uoe0
DTSTART;VALUE=3DDATE:20090127
DTEND;VALUE=3DDATE:20090128RRULE:FREQ=3DYEARLY;INTERVAL=3D1
SUMMARY: mozart
CATEGORIES:test
END:VEVENT
END:VCALENDAR
---<= ;/test.ics>----

if you notice, the UIDs in both the events are sa= me. 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.
thanks,
--
ajd.
--0016367d6f14f53473046ec24e1f-- --===============1663219607== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1663219607==-- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Henoch Subject: Re: UIDs in icalendar export (exporting my agenda) Date: Wed, 15 Jul 2009 20:43:32 +0100 Message-ID: <84skgx20m3.fsf@linux-b2a3.site> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRAOR-00063y-Pa for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRAON-000636-Ev for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:55 -0400 Received: from [199.232.76.173] (port=51454 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRAON-00062v-3g for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:51 -0400 Received: from main.gmane.org ([80.91.229.2]:53569 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRAOM-0001wf-ER for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 15:43:50 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MRAOH-0007cI-76 for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 19:43:45 +0000 Received: from host213-123-170-251.in-addr.btopenworld.com ([213.123.170.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2009 19:43:45 +0000 Received: from magnus.henoch by host213-123-170-251.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2009 19:43:45 +0000 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: emacs-orgmode@gnu.org "aldrin d'souza" writes: > 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. My guess: you're running on a system where current-time always returns zero micro-seconds (Windows?); try with M-: (current-time). In the ideal case the output in the echo area looks like (19038 12367 114552), but yours is probably like (19038 12367 0). Since you don't have the uuidgen utility installed, the function `org-id-time-to-b36' is being called to generate the id, but since it's called twice in the same second and depends on current-time, it returns the same value twice. So someone should make `org-id-time-to-b36' return unique values in this case. (Append a random number?) Magnus From mboxrd@z Thu Jan 1 00:00:00 1970 From: "aldrin d'souza" Subject: Re: Re: UIDs in icalendar export (exporting my agenda) Date: Thu, 16 Jul 2009 10:59:18 +0530 Message-ID: References: <84skgx20m3.fsf@linux-b2a3.site> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1930044001==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRJXM-0006lM-DJ for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 01:29:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRJXH-0006lA-M4 for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 01:29:43 -0400 Received: from [199.232.76.173] (port=35747 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRJXH-0006l7-FC for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 01:29:39 -0400 Received: from mail-ew0-f217.google.com ([209.85.219.217]:39629) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRJXH-0000I5-3o for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 01:29:39 -0400 Received: by ewy17 with SMTP id 17so5114862ewy.42 for ; Wed, 15 Jul 2009 22:29:38 -0700 (PDT) In-Reply-To: <84skgx20m3.fsf@linux-b2a3.site> 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: emacs-orgmode@gnu.org --===============1930044001== Content-Type: multipart/alternative; boundary=0016e6d77ec734515c046ecbf52a --0016e6d77ec734515c046ecbf52a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks a lot Magnus - your suggestions were helpful. Basically, I didn't have uuidgen on my machine and that caused the same ID to be generated for all timestamps. I'm not sure if that's a bug because even though I'm on Windows, when I evaluate (current-time) it gives me the time up to milliseconds - something like (19038 42793 57000) Nick, thanks to you too for pointing out that I need to set org-icalendar-store-UID. That's exactly what I need to ensure I don't upload the same event twice. thanks, -- ajd. --0016e6d77ec734515c046ecbf52a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks a lot Magnus - your suggestions were helpful. Basically, I didn'= t have uuidgen on my machine and that caused the same ID to be generated fo= r all timestamps. I'm not sure if that's a bug because even though = I'm on Windows, when I evaluate (current-time) it gives me the time up= to milliseconds - something like (19038 42793 57000)

Nick, thanks to you too for pointing out that I need to set org-icalend= ar-store-UID. That's exactly what I need to ensure I don't upload t= he same event twice.

thanks,
--
ajd. --0016e6d77ec734515c046ecbf52a-- --===============1930044001== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1930044001==--