From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guido Van Hoecke Subject: Re: Handling Repeating events from google calendar / repeater interval Date: Mon, 08 Jul 2013 17:55:26 +0200 Message-ID: References: <85k3l1nljo.fsf@damtp.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwDmm-0003Qq-1z for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 11:55:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwDmk-0004BZ-Ia for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 11:55:32 -0400 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:51654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwDmk-0004BP-Cc for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 11:55:30 -0400 Received: by mail-ea0-f173.google.com with SMTP id g15so3038880eak.32 for ; Mon, 08 Jul 2013 08:55:29 -0700 (PDT) In-Reply-To: <85k3l1nljo.fsf@damtp.cam.ac.uk> (Stephen Eglen's message of "Mon, 08 Jul 2013 16:00:59 +0100") 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: Stephen Eglen Cc: emacs-orgmode@gnu.org Hu Stephen, Stephen Eglen writes: > I'm experimenting using ical2org.sh to import google calendars. One > limitation, as noted in the header is: > > # - does process RRULE recurring events, but ignores COUNT specifiers > > so if you have a repeating event in google (e.g. every day for four > week), the ics file has: > > RRULE:FREQ=DAILY;COUNT=4 > > The script will take the first day of the event, but not the remaining > three days. I think this could be solved in a couple of ways: > > 1. create four events, moving the date by one each time. Correct me if I am wrong, but I'm afraid that pure AWK does not provide date computation support. That's why I did not implement this. So I would definitely vote to extend the repeater syntax with a count. > > 2. extending the syntax of timestamps so that something like: > > * Pick up Sam at school > <2007-05-16 Wed 12:30 3+1w> > > means repeat this event 3 times (rather than indefinitely). Or > "+1w:3" I assume that your initial example RRULE would require either "...4+1d>" or "+1d:4" > or something similar, I don't mind the syntax as long as it doesn't > break other parts of timestamps. > > Has extending the syntax of the repeater interval been considered to > allow finite number of repeats? I can offer to code something up for > consideration if this sounds sensible. +1 Guido -- We're constantly being bombarded by insulting and humiliating music, which people are making for you the way they make those Wonder Bread products. Just as food can be bad for your system, music can be bad for your spirtual and emotional feelings. It might taste good or clever, but in the long run, it's not going to do anything for you. -- Bob Dylan, "LA Times", September 5, 1984