From c0debc99fcc25c25bb17d544db6b80cc11e4f2bf Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 21 Jun 2016 11:25:48 +0200 Subject: [PATCH] exporting implemented --- php/module.calendar.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/module.calendar.php b/php/module.calendar.php index 54c22af..0691ccd 100644 --- a/php/module.calendar.php +++ b/php/module.calendar.php @@ -258,6 +258,14 @@ class CalendarModule extends Module } $vcalendar = new VObject\Component\VCalendar(); + + // Add static stuff to vcalendar + $vcalendar->add('METHOD', 'PUBLISH'); + $vcalendar->add('X-WR-CALDESC', 'Exported Zarafa Calendar'); + $vcalendar->add('X-WR-TIMEZONE', date_default_timezone_get()); + + // TODO: add VTIMEZONE object to ical. + for ($index = 0, $count = count($records); $index < $count; $index++) { $message = mapi_msgstore_openentry($store, hex2bin($records[$index]));