Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libcalendaring
Thomas Brüderli
bruederli at kolabsys.com
Thu Jan 23 15:51:18 CET 2014
plugins/libcalendaring/libvcalendar.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit ce84b32cf1db8c6ea74d140842e358051cebee7c
Author: Thomas Bruederli <thomas at roundcube.net>
Date: Thu Jan 23 15:50:04 2014 +0100
Export X-MICROSOFT-CDO-BUSYSTATUS for Outlook CalDAV clients
diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php
index e4af734..f16a64d 100644
--- a/plugins/libcalendaring/libvcalendar.php
+++ b/plugins/libcalendaring/libvcalendar.php
@@ -852,9 +852,15 @@ class libvcalendar implements Iterator
$ve->add($cat);
}
- if (!empty($event['free_busy']))
+ if (!empty($event['free_busy'])) {
$ve->add('TRANSP', $event['free_busy'] == 'free' ? 'TRANSPARENT' : 'OPAQUE');
+ // for Outlook clients we provide the X-MICROSOFT-CDO-BUSYSTATUS property
+ if (stripos($this->agent, 'outlook') !== false) {
+ $ve->add('X-MICROSOFT-CDO-BUSYSTATUS', $event['free_busy'] == 'outofoffice' ? 'OOF' : strtoupper($event['free_busy']));
+ }
+ }
+
if ($event['priority'])
$ve->add('PRIORITY', $event['priority']);
More information about the commits
mailing list