summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index d73792cf7..2683fe210 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -3230,8 +3230,13 @@ class rcube_imap
$result = $this->conn->createFolder($mailbox);
// try to subscribe it
- if ($result && $subscribe)
- $this->subscribe($mailbox);
+ if ($result) {
+ // clear cache
+ $this->clear_cache('/^mailboxes.*/', true);
+
+ if ($subscribe)
+ $this->subscribe($mailbox);
+ }
return $result;
}