Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create default folders on every or just on first login? #3565

Closed
rcubetrac opened this issue Nov 11, 2011 · 4 comments
Closed

create default folders on every or just on first login? #3565

rcubetrac opened this issue Nov 11, 2011 · 4 comments

Comments

@rcubetrac
Copy link

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

@rcubetrac
Copy link
Author

Comment by @alecpl on 12 Nov 2011 08:19 UTC

This is intentional to create folders only on first login. Description fixed in 95ebcd9. You can write a plugin to make this on every login.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 12 Nov 2011 08:19 UTC

new => closed

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 12 Nov 2011 08:19 UTC

later => 0.7-beta

@rcubetrac
Copy link
Author

Comment by paketschubser on 27 Dec 2011 04:36 UTC

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant