Mail: Add a setting for personal namespaces

Created on 19 Jun 2020  路  5Comments  路  Source: nextcloud/mail

Feature Request

Summary

In outlook I have a setting like this:

grafik

Without this setting my inbox looks like this:

grafik

Which duplicates draft/sent/etc.

0. to triage enhancement

Most helpful comment

@ChristophWurst sounds great! I am looking forward to review the next version and i am curious how well the changes will work in our enviroment. I followed #3147 - great efforts - big thanks to you and @dehnhardt !

All 5 comments

One day I want to know how this thing is really called. Some say it is a prefix, some namespace and then there is root folder path. Ugh.

This is a problem, yes. We tried to fix this a few times but there is always new edge cases that are not covered.

That would be great!
My folders all show up under inbox as INBOX.Folder.SubFolder etc., and since the column cannot be resized, it's unusable for longer folder names.
Plus, my Sent, Drafts, Trash etc are also subfolders of Inbox, not appearing at all on main level.

One day I want to know how this thing is really called. Some say it is a prefix, some namespace and then there is root folder path. Ugh.

just to clarify:

actually you are talking about the personal namespace, but some emailclients, like outlook call this the "root folder path". every namespace acts as a prefix-folder to its containing foldernames.

within thunderbird for example you have the option to enter 3 different namespaces:

  • Personal Namespace = "INBOX" = root folder path
  • Public (shared)
  • Other Users

IMAP servers like courier or cyrus, per default, use "INBOX" as the namespace for personal folders of the user. nowadays all decent mailclients, detect "INBOX" automatically. i remember long time a go you had to enter "INBOX" to your mailclients root-folder-path setting to make the "INBOX-Prefix" disappear in your folderlist, Outlook 2008+, thunderbird or iOS Mail App do not need this anymore.

our cyrus mailserver uses three namespaces by default:

  • "INBOX." for the users personal folders
  • "" (empty) for public shares
  • "user." for shares from other users

"public shares" are folders which are not owned by any user, but users may have access to them defined by access control lists.

"other users" contains folders from other users personal namespace, which are shared with the current user via acces control list. any user can grant access to one of its personal folders to any other user, this is the namespace where those folders will be listed.

the imap command "NAMESPACE" will list all namespaces on the server, if it has that capability which is usually revealed after login, i think all IMAP servers support this.

you can read more about namespaces in the corresponding RFC
RFC-2342 IMAP4 Namespace

@brrrrrrrt thanks a again for these details. I looked into this for https://github.com/nextcloud/mail/pull/3147 and found that horde has some logic to read the namespaces from IMAP, ans some fallback when it's not supported. The PR now persists the personal namespace with each account and hides the prefix for the displayed name of each mailbox. Let's re-evaluate later if we really need a setting for this or if the detection works well enough to cover 99% of the setups.

@ChristophWurst sounds great! I am looking forward to review the next version and i am curious how well the changes will work in our enviroment. I followed #3147 - great efforts - big thanks to you and @dehnhardt !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

UtechtDustin picture UtechtDustin  路  3Comments

cheesewizz picture cheesewizz  路  5Comments

StCyr picture StCyr  路  4Comments

b1f17773 picture b1f17773  路  5Comments

jancborchardt picture jancborchardt  路  5Comments