My round cube 0.31 server corrupted, luckily I had backup, I decided to install round cube 4.2, and populate the old database to it, everything went fine except that when a user who was created from a backup login , the Sent, Drafts, Junk and Trash are not created automatically, I have to manually create them after a user logs in, although I have set $rcmail_config['create_default_folders'] = TRUE; in main.inc.php,
The folder are successfully created automatically when I create a new user.
this is how its meant to work. folders are only auto created the very first time a user logs in because otherwise if they logged in and then deleted the folder it would come back everytime they login.
i suggest you either delete the users from the rc database (then it will be the very first time they have logged in) or restore your users' mailboxes from the backup.
This Problem started when I restored my users from the mailbox Backup, only the Inbox folder is created automatically, is there no way I can create them globally and then populate them to all accounts?
Thats not really a Roundcube question, it depends on your server setup. You could write a script may be that goes though all your mailboxes and creates the folders if they are missing i guess.