Initialize IMAP connection before setting metadata (#1128)
This commit is contained in:
parent
8ec81e2879
commit
ae02c3d670
1 changed files with 2 additions and 0 deletions
|
@ -640,6 +640,8 @@ class kolab_storage
|
||||||
*/
|
*/
|
||||||
static function set_folder_type($folder, $type='mail')
|
static function set_folder_type($folder, $type='mail')
|
||||||
{
|
{
|
||||||
|
self::setup();
|
||||||
|
|
||||||
list($ctype, $subtype) = explode('.', $type);
|
list($ctype, $subtype) = explode('.', $type);
|
||||||
|
|
||||||
$success = self::$imap->set_metadata($folder, array(self::CTYPE_KEY => $ctype, self::CTYPE_KEY_PRIVATE => $subtype ? $type : null));
|
$success = self::$imap->set_metadata($folder, array(self::CTYPE_KEY => $ctype, self::CTYPE_KEY_PRIVATE => $subtype ? $type : null));
|
||||||
|
|
Loading…
Add table
Reference in a new issue