summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-16 11:37:44 +0000
committeralecpl <alec@alec.pl>2011-09-16 11:37:44 +0000
commit4daaf297478aa66eb359e2989d729d98c3f45793 (patch)
treeffc97c076afb3d873524d68e8631715cb3a2b5e0
parent8c124b9ea8ae5a1793c61ccb4c4e5c0dd0f77787 (diff)
- Fix default folders settings (according to namespaces) for new users too
-rw-r--r--program/include/rcmail.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index b364bd643..3cc277450 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -856,6 +856,10 @@ class rcmail
else if ($config['auto_create_user']) {
if ($created = rcube_user::create($username, $host)) {
$user = $created;
+
+ // fix default settings according to namespace prefix
+ $this->fix_namespace_settings($user);
+
// create default folders on first login
if ($config['create_default_folders'])
$this->imap->create_default_folders();