summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/kolab_zpush/kolab_zpush.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/kolab_zpush/kolab_zpush.php b/plugins/kolab_zpush/kolab_zpush.php
index f19fe3a..9c35021 100644
--- a/plugins/kolab_zpush/kolab_zpush.php
+++ b/plugins/kolab_zpush/kolab_zpush.php
@@ -279,6 +279,10 @@ class kolab_zpush extends rcube_plugin
public function list_folders()
{
if (!isset($this->folders)) {
+ if (empty($this->cache)) {
+ $this->init_imap();
+ }
+
// read cached folder meta data
if ($cached_folders = $this->cache->read('folders')) {
$this->folders_meta = $cached_folders;