summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-10-22 16:02:18 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2012-10-22 16:02:18 (GMT)
commitae02c3d67078fa49c4212e39d28ad9e9aafec8a4 (patch)
tree45be64ed3b3fef945f0343ee3fadca5ade3bb72c
parent8ec81e2879a6592fdddfa11e081783e88eddd81f (diff)
downloadroundcubemail-plugins-kolab-ae02c3d67078fa49c4212e39d28ad9e9aafec8a4.tar.gz
Initialize IMAP connection before setting metadata (#1128)
-rw-r--r--plugins/libkolab/lib/kolab_storage.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/libkolab/lib/kolab_storage.php b/plugins/libkolab/lib/kolab_storage.php
index b29b416..1241934 100644
--- a/plugins/libkolab/lib/kolab_storage.php
+++ b/plugins/libkolab/lib/kolab_storage.php
@@ -640,6 +640,8 @@ class kolab_storage
*/
static function set_folder_type($folder, $type='mail')
{
+ self::setup();
+
list($ctype, $subtype) = explode('.', $type);
$success = self::$imap->set_metadata($folder, array(self::CTYPE_KEY => $ctype, self::CTYPE_KEY_PRIVATE => $subtype ? $type : null));