gunnar: server/php-kolab/Kolab_Filter/Filter Resource.php,1.9,1.10
cvs at kolab.org
cvs at kolab.org
Thu Jun 5 14:58:17 CEST 2008
Author: gunnar
Update of /kolabrepository/server/php-kolab/Kolab_Filter/Filter
In directory doto:/tmp/cvs-serv28374
Modified Files:
Resource.php
Log Message:
kolab/issue2734 (Automatic ressources decline changed overlapping event time)
Index: Resource.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/Filter/Resource.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Resource.php 14 Mar 2008 17:34:50 -0000 1.9
+++ Resource.php 5 Jun 2008 12:58:13 -0000 1.10
@@ -718,6 +718,30 @@
}
}
+ $a = $imap->getAnnotation('/vendor/kolab/pxfb-readable-for',
+ /*array('value.shared' => 'event.default')*/'value.shared',
+ $calmbox);
+ Horde::logMessage(sprintf(_("/vendor/kolab/pxfb-readable-for annotation for folder %s is %s"),
+ $calmbox, print_r($a, true)),
+ __FILE__, __LINE__, PEAR_LOG_DEBUG);
+
+ if (!strpos($a, $calendar_user)) {
+ if (empty($a)) {
+ $a = $calendar_user;
+ } else {
+ $a = $a . ' ' . $calendar_user;
+ }
+ $rc = $imap->setAnnotation('/vendor/kolab/pxfb-readable-for',
+ array('value.shared' => $a),
+ $calmbox);
+ if( PEAR::isError($rc)) {
+ // Non fatal error
+ Horde::logMessage(sprintf(_("Unable to allow XFB read access on mailbox %s: %s"),
+ $mymailbox, $rc->getMessage()),
+ __FILE__, __LINE__, PEAR_LOG_ERR);
+ }
+ }
+
Horde::logMessage(sprintf(_("Selecting %s for %s"),
$calmbox, $calendar_user),
__FILE__, __LINE__, PEAR_LOG_DEBUG);
More information about the commits
mailing list