Permalink
Browse files

Don't create default folders by default

  • Loading branch information...
1 parent a898459 commit b2ff3d44610e1836fe7080a7afffdf4f6ebd32da @thomascube thomascube committed Nov 25, 2007
Showing with 7 additions and 2 deletions.
  1. +4 −1 config/main.inc.php.dist
  2. +3 −1 program/include/main.inc
View
@@ -130,7 +130,7 @@ $rcmail_config['date_long'] = 'd.m.Y H:i';
$rcmail_config['date_today'] = 'H:i';
// add this user-agent to message headers when sending
-$rcmail_config['useragent'] = 'RoundCube Webmail/0.1b';
+$rcmail_config['useragent'] = 'RoundCube Webmail/0.1';
// use this name to compose page titles
$rcmail_config['product_name'] = 'RoundCube Webmail';
@@ -157,6 +157,9 @@ $rcmail_config['trash_mbox'] = 'Trash';
// these folders will automatically be created if they do not exist
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
+// automatically create the above listed default folders on login
+$rcmail_config['create_default_folders'] = FALSE;
+
// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;
View
@@ -660,7 +660,9 @@ function rcmail_login($user, $pass, $host=NULL)
// force reloading complete list of subscribed mailboxes
rcmail_set_imap_prop();
$IMAP->clear_cache('mailboxes');
- $IMAP->create_default_folders();
+
+ if ($CONFIG['create_default_folders'])
+ $IMAP->create_default_folders();
return TRUE;
}

0 comments on commit b2ff3d4

Please sign in to comment.