From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Inquiry about ical2org Date: Thu, 26 May 2016 15:04:08 -0500 Message-ID: References: <649f280c5d4d4c0b9f100fb9da170cdc@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87zird5keq.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b61Vp-00062U-UA for emacs-orgmode@gnu.org; Thu, 26 May 2016 16:04:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b61Vo-0006J6-Sf for emacs-orgmode@gnu.org; Thu, 26 May 2016 16:04:09 -0400 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:32978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b61Vo-0006Iu-OT for emacs-orgmode@gnu.org; Thu, 26 May 2016 16:04:08 -0400 Received: by mail-vk0-x230.google.com with SMTP id r140so117079713vkf.0 for ; Thu, 26 May 2016 13:04:08 -0700 (PDT) In-Reply-To: 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" To: Eric S Fraga , John Hendy , emacs-orgmode On Thu, May 26, 2016 at 3:00 PM, John Hendy wrote: > On Thu, May 26, 2016 at 2:49 AM, Eric S Fraga wrote: >> On Wednesday, 25 May 2016 at 20:33, John Hendy wrote: >>> I found ical2org, and implemented it successfully via the "Share >> >> Which ical2org is this? If it's the awk script I wrote originally, the >> repeat handling was written with the assumption that there would be no >> end date for the repeat as org cannot handled end dates for repeated >> items. > > Whoops -- yes, the awk script. Sorry, now I'm remembering there was a > ruby version as well. > > Here's an example of a recurring meeting I see: > > RRULE:FREQ=MONTHLY;UNTIL=20161114T150000Z;INTERVAL=1;BYDAY=2MO > DTSTART;TZID=Central Standard Time:20160613T090000 > DTEND;TZID=Central Standard Time:20160613T103000 > DTSTAMP:20160526T195005Z > > I'm no awk expert, but I think I make out what's going on... the > #repetition rule section extracts (among others) the freq (monthly) > and interval (1) to build a repeater (+1m), though and rrend using > the "until" field. Bah... sorry about that! Accidental tab right before a space sends away! Anyway, the point is that the repeater is built if there's any repetition frequency/interval. You also capture the "until" into rrend. So, the first date is going to feature a +unit, and this code adds the end: else if (rrend != "") date = date ">--<" rrend I just commented out both sections that add a "-- ", the other checking for time2 being "". Is that the correct way to go about this? If so, no need to update. I'll just leave those commented out. Out of curiosity, how *is* the rrend code supposed to be handling these? Or what's the use case for building a --? Thanks! John >> >> I can try to fix this in the awk script by simply ignoring end dates in >> such cases. Let me know. >> >> -- >> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.93.1, Org release_8.3.4-775-g3308a5