Skip to content

Create default folders at first user login - #116

Merged
stephdl merged 1 commit into
NethServer:mainfrom
federicoballarini:dev#8104
Jul 22, 2026
Merged

Create default folders at first user login#116
stephdl merged 1 commit into
NethServer:mainfrom
federicoballarini:dev#8104

Conversation

@federicoballarini

Copy link
Copy Markdown
Member

Added create_default_folders option to create all default folders, including Sent and Drafts, at first user login. Ref: NethServer/dev#8104

Added create_default_folders option to create all default folders, including Sent and Drafts, at first user login. Ref: NethServer/dev#8104
@gsanchietti
gsanchietti requested a review from stephdl July 20, 2026 12:24

@stephdl stephdl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. I have a doubt about scope before merging.

create_default_folders = true only acts on Roundcube login. It won't help the case described in the issue where an IMAP client (Outlook, mobile app) is configured before the user has ever opened Roundcube — the Sent/Drafts folders still won't exist at that point, so Italian Outlook would still create Posta inviata.

Two questions:

  1. Do the other webmails on the platform (WebTop, SOGo) create these default folders at login too? If not, users on those webmails hit the same problem and this Roundcube-only fix doesn't cover them.

  2. Shouldn't this rather live on the dovecot side (autocreate/autosubscribe at mailbox provisioning, in the mail module)? That would create the folders once, independently of which client or webmail touches the mailbox first, and cover every case the issue mentions.

The PR is a good incremental improvement for Roundcube users, but I'm not sure it fully closes the issue. What do you think?

@stephdl

stephdl commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Heads-up: I'm evaluating an alternative fix on the dovecot side in ns8-mail (NethServer/ns8-mail#275). It declares Sent and Drafts as auto-created and subscribed mailboxes at first mailbox access, so they exist regardless of the client or webmail (Roundcube, WebTop, SOGo, IMAP clients) — covering the IMAP-first case this PR can't reach.

Let's decide which approach to keep before merging. I'll keep this PR open in the meantime.

@federicoballarini

Copy link
Copy Markdown
Member Author

Hi Steph, WebTop creates all the default folders when you login for the first time. Obviously, a Dovecot solution it's better in my opinion, becuase there are lot of users that use only IMAP protocol without using webmail or WebTop.
I think the minimum folders are: Inbox, Drafts, Sent, Junk and Trash. WebTop creates also Archive folder.

@DavidePrincipi

Copy link
Copy Markdown
Member

I may agree that a central solution is desirable, however I cannot evaluate the impact of a change to Dovecot configuration. Limiting the fix to RoundCube is more predictable, since it seems we are just applying the old default of this parameter.

@stephdl
stephdl merged commit 83c76cd into NethServer:main Jul 22, 2026
@federicoballarini
federicoballarini deleted the dev#8104 branch July 22, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants