You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by paketschubser on 11 Nov 2011 23:46 UTC as Trac ticket #1488183
I'm not sure whether this is a bug report or a feature request. Since the code behavior differs for the documentation (ok, the comments within the main.inc.php) I've decided to call it a bug.
According to the main.inc.php the config option "create_default_folders" has this meaning:
"automatically create the above listed default folders on login"
based on this statement I would expect that the default folders would be created on every login if they don't exists. After investigating the code to search why this does not work I found this comment in rcmail.php:
"create default folders on first login"
A short look at the code stated that "create_default_folders" works (like the comment in the code) only of the variable $user->data['last_login'] is not present, so I guess only if the user logs in the first time. If this is the intentioned behavior I would suggest to change this or to add an option like "create_default_folders_always". We've noticed several times that users accidentally deleted their trash or spam folders by using another IMAP client and complains a short time later that webmail does not work as expected because of the missing folders.
If this is not the intended behavior I would ask to change the code according to the attached patch file.
For those who need the same functionality I've attached the plugin which creates the special folders on every login. There's no configuration needed, just simply add it to your plugins array.
Reported by paketschubser on 11 Nov 2011 23:46 UTC as Trac ticket #1488183
I'm not sure whether this is a bug report or a feature request. Since the code behavior differs for the documentation (ok, the comments within the main.inc.php) I've decided to call it a bug.
According to the main.inc.php the config option "create_default_folders" has this meaning:
"automatically create the above listed default folders on login"
based on this statement I would expect that the default folders would be created on every login if they don't exists. After investigating the code to search why this does not work I found this comment in rcmail.php:
"create default folders on first login"
A short look at the code stated that "create_default_folders" works (like the comment in the code) only of the variable
$user->data['last_login']
is not present, so I guess only if the user logs in the first time. If this is the intentioned behavior I would suggest to change this or to add an option like "create_default_folders_always". We've noticed several times that users accidentally deleted their trash or spam folders by using another IMAP client and complains a short time later that webmail does not work as expected because of the missing folders.If this is not the intended behavior I would ask to change the code according to the attached patch file.
Keywords: create_default_folders
Migrated-From: http://trac.roundcube.net/ticket/1488183
The text was updated successfully, but these errors were encountered: