jtatarik / ical-event

Accept/Decline iCalendar appointment invitations from Gnus. Sync iCalendar event invitations from Gnus to Org agenda.
10 stars 3 forks source link

Recurring events #2

Open mathieulegrand opened 11 years ago

mathieulegrand commented 11 years ago

First let me say that the project looks great: I just discovered it tonight; will be testing in the next few weeks.

Currently there does not seem to be any support for recurring events: "Show agenda" will show me the first date of the event (in my test case, it was a few months back), and it will only export it to that date.

jtatarik commented 11 years ago

There is in fact a (limited) support for recurring events. Simple recurring events (daily, weekly, monthly, yearly) should be exported as recurring org timestamps.

'Show agenda' will always take you to the first occurrence of the event, not the next upcoming one. That would make more sense, so I'll try to fix that.

If you're sure the event in question is recurring and yet was not exported to org as such, there might be something else going on. The recurring schemes supported by the ical format are quite rich, and once you go beyond the simplest cases it is either difficult or impossible to map them directly to org events. Consider event that 'takes place on second Tuesday of a month, every other month'. That's not even the most convoluted example, but it cannot be done with org timestamps directly. Some scenarios could be covered by using the diary sexp functions, but not all. Last time I looked I was only able to create full-day events using the diary functions.

You might want to look into the PROPERTIES drawer of the respective org entry, the RRULE property contains the recurrence pattern. Post it and I will be able to tell you if it's supported by ical-event.