[Vobject] Recurrence
Teemu Nikkilä
teemu.nikkila at innovativeideasoy.com
Thu Mar 15 14:56:35 CDT 2007
On Wednesday, 14. March 2007 18:56, Jeffrey Harris wrote:
> Hi Teemu,
>
> On an IMAP server, huh? So do you have iCalendar attachments to emails
> stored in IMAP, or just straight iCalendar?
Straight iCalendar as the body of the message - one vcalendar event per
message. I'm trying to list these events that are created by KDE's Kontact
calendar app (which can use an IMAP server as storage through the Kmail MUA.
-Teemu
>
> > The first question is how to test if an entry is a recurring one or not?
>
> The short answer is to test if a vevent's magic rruleset attribute is None.
>
> For example, if stream is an icalendar stream:
> >>> import vobject
> >>> cal = vobject.readOne(stream)
> >>> events = cal.vevent_list
> >>> recurring_events = [ev for ev in events if ev.rruleset is not None]
>
> Sincerely,
> Jeffrey
> _______________________________________________
> VObject mailing list
> VObject at lists.skyhouseconsulting.com
> http://lists.skyhouseconsulting.com/mailman/listinfo/vobject
More information about the VObject
mailing list