Branch 'roundcubemail-plugins-kolab-format2-horde5' - plugins/kolab_folders
Aleksander Machniak
machniak at kolabsys.com
Thu Feb 28 11:09:29 CET 2013
plugins/kolab_folders/kolab_folders.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 13062c0a5fd7a9cd1b56c1620888e2443854e78d
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Thu Feb 28 11:08:08 2013 +0100
Subscribe to default folders of other than 'mail' type too (Bug #1654)
diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php
index 80389f6..172f531 100644
--- a/plugins/kolab_folders/kolab_folders.php
+++ b/plugins/kolab_folders/kolab_folders.php
@@ -28,6 +28,7 @@ class kolab_folders extends rcube_plugin
public $types = array('mail', 'event', 'journal', 'task', 'note', 'contact', 'configuration', 'file', 'freebusy');
public $mail_types = array('inbox', 'drafts', 'sentitems', 'outbox', 'wastebasket', 'junkemail');
+ public $subs_types = array('mail', 'event', 'journal', 'task', 'note', 'contact', 'file');
private $rc;
private static $instance;
@@ -459,7 +460,7 @@ class kolab_folders extends rcube_plugin
// create folder
if (!$exists && !$storage->folder_exists($foldername)) {
- $storage->create_folder($foldername, $type1 == 'mail');
+ $storage->create_folder($foldername, in_array($type1, $this->subs_types));
}
// set type
More information about the commits
mailing list