Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recuring events get not created #6

Open
ThomasCr opened this issue Dec 3, 2013 · 4 comments
Open

recuring events get not created #6

ThomasCr opened this issue Dec 3, 2013 · 4 comments
Assignees

Comments

@ThomasCr
Copy link

ThomasCr commented Dec 3, 2013

this example:

BEGIN:VEVENT
UID:5066@domain.com
ORGANIZER;CN="Max Mustermann":MAILTO:m.mustermann@domain.de
ATTENDEE;CN="Jeder";RSVP=FALSE;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:MAILTO:info@topackt.de
RRULE:FREQ=WEEKLY;INTERVAL=1
SUMMARY;CHARSET=UTF-8:Teamsitzung (Serientermin)
DESCRIPTION;CHARSET=UTF-8:
LOCATION;CHARSET=UTF-8:A Place,
a street 2,
plz Town
CLASS:PUBLIC
CATEGORIES;CHARSET=UTF-8:Intern
DTSTART;TZID=Europe/Berlin:20130902T090000
DTEND;TZID=Europe/Berlin:20130902T103000
END:VEVENT

@bigpresh
Copy link
Owner

Apologies for somehow not seeing this issue until now :|

Is this still a problem for you? If so, please let me know and I'll see what I can do. I don't think the script gives any consideration to recurring events, but it may not be too difficult to implement...

@bigpresh
Copy link
Owner

bigpresh commented Nov 2, 2014

Having looked a bit, it seems that iCal::Parser claims it understands recurring events and explodes them into multiple events, one for each day - so my script should just see them as a set of events and act on them.

(It would be much nicer if the event could be synced to Google Calendar as a recurring event, though, so you'd see it as recurring and be able to edit/delete all instances of it, rather than a bunch of dumb events - that's one for future wishing though.)

Do you have a full iCal feed that exhibits this problem (i.e. including the BEGIN:VCALENDAR and everything else)?

@bigpresh
Copy link
Owner

bigpresh commented Nov 2, 2014

Ah. I see what's going on. iCal::Parser returns a hashref keyed by year, month, day, and for each event, events are keyed by their ID. My code turns that into a flat list, keyed by ID. If it's a recurring event, though, that means that only the last instance of it will be added to the Google calendar.

Unfortunately iCal::Parser doesn't make the recurrence info visible. I can hack around it by looking for multiple events with the same ID, and treating them as one multi-day event if the start date of each event is one day later than the end date of the previous, and recurring if not - but that would fail for daily recurring events, and is messy anyway. Alternatively I could just not care about recurrence beyond making sure that the "exploded" events get added to the Google Calendar - so they won't be linked as a recurring series, but would at least be there; that'd be a bit ugly though.

A better fix, probably, is to find another iCal-parsing module which would let me know it's a recurring event.

@bigpresh bigpresh self-assigned this Nov 6, 2014
@bigpresh
Copy link
Owner

bigpresh commented Nov 6, 2014

Issue #10 will solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants