summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-07-18 10:34:28 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-07-18 10:34:28 (GMT)
commit64514a25556f0d1884e9e362483c6a363b03cafd (patch)
tree7e074fe28285c3b2b11251670a5933a09aaabfe1
parent3b5724089ae2fe8aadc63e5992d1e1d7a62a00c0 (diff)
downloadroundcubemail-plugins-kolab-64514a25556f0d1884e9e362483c6a363b03cafd.tar.gz
Fix folder properties saving when Horde thinks the folder is protected (OTRS #1000041)
-rw-r--r--plugins/calendar/drivers/kolab/kolab_driver.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/calendar/drivers/kolab/kolab_driver.php b/plugins/calendar/drivers/kolab/kolab_driver.php
index 5058078..83fd69d 100644
--- a/plugins/calendar/drivers/kolab/kolab_driver.php
+++ b/plugins/calendar/drivers/kolab/kolab_driver.php
@@ -259,6 +259,8 @@ class kolab_driver extends calendar_driver
if (strlen($oldfolder)) {
$this->rc->imap_connect();
$options = $this->rc->imap->mailbox_info($oldfolder);
+ if (!isset($prop['name'])) // if no name is submitted, the app assumes no write privileges
+ $options['protected'] = true;
}
if (!empty($options) && ($options['norename'] || $options['protected'])) {