Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_storage.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | public static function setup() | ||||
$rcmail = rcube::get_instance(); | $rcmail = rcube::get_instance(); | ||||
self::$config = $rcmail->config; | self::$config = $rcmail->config; | ||||
self::$version = strval($rcmail->config->get('kolab_format_version', self::$version)); | self::$version = strval($rcmail->config->get('kolab_format_version', self::$version)); | ||||
self::$imap = $rcmail->get_storage(); | self::$imap = $rcmail->get_storage(); | ||||
self::$ready = class_exists('kolabformat') && | self::$ready = class_exists('kolabformat') && | ||||
(self::$imap->get_capability('METADATA') || self::$imap->get_capability('ANNOTATEMORE') || self::$imap->get_capability('ANNOTATEMORE2')); | (self::$imap->get_capability('METADATA') || self::$imap->get_capability('ANNOTATEMORE') || self::$imap->get_capability('ANNOTATEMORE2')); | ||||
if (self::$ready) { | if (self::$ready) { | ||||
// set imap options | // do nothing | ||||
self::$imap->set_options(array( | |||||
'skip_deleted' => true, | |||||
'threading' => false, | |||||
)); | |||||
} | } | ||||
else if (!class_exists('kolabformat')) { | else if (!class_exists('kolabformat')) { | ||||
rcube::raise_error(array( | rcube::raise_error(array( | ||||
'code' => 900, 'type' => 'php', | 'code' => 900, 'type' => 'php', | ||||
'message' => "required kolabformat module not found" | 'message' => "required kolabformat module not found" | ||||
), true); | ), true); | ||||
} | } | ||||
else { | else { | ||||
▲ Show 20 Lines • Show All 1,570 Lines • Show Last 20 Lines |