-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
[enhancement]: implement special_use directory mapping #458
Comments
Stalwart already advertises special use folders. When an account is created it automatically creates Inbox, Sent Items, Trash and Junk Mail folders with their respective special use flags. |
The main point of this feature request is to map multiple common names to a single folder. The small excerpt all writes to /Trash when the folder Trash, Deleted Messages, Deleted Items, Rubbish or Gelöschte Objekte is used.
This allows multiple clients to "use" different folders that internally all map to the same folder, keeping the mailbox clean. I used AppleMail Outlook and Thunderbird and have now Trash ( from Thunderbird ) , Gelöschte Objekts ( from Outlook ) and Deleted Messages ( from Apple Mail ) all with their respective set of deleted messages. For Trash it is not really a "big" issue, but this also applies to Junk , Archives and so on. |
The problem I see is that JMAP requires each special use type (or role in JMAP terms) to be assigned to a single folder. So it won't be possible to have the |
As this is the "main" issue I have with this behavior, I would think that this would still be beneficial to the server, and potentially it may be worth a consideration why jmap implements an imap feature and breaks it in the process. |
In my opinion JMAP has fixed an IMAP issue. Roles should be unique per mailbox, I don't think it makes sense to have multiple folders with the IMAP clients should look for special-use folders by role rather than name and create these special-use folders if these don't exist already on the server. |
True, but they don't, and they very certainly won't in the foreseeable future or even at all. JMAP will not work for people if it "break" all "not JMAP" clients by spamming folders. Requiring a change in such old standard will be difficult, I sense -> https://xkcd.com/927/ |
Well, also when you think about how many JMAP clients VS how many IMAP ones out there and how close are we to using JMAP in the near future.... |
This was implemented but should be used with caution as it is not only incompatible with JMAP but also RFC 8474 - IMAP Extension for Object Identifiers. a create Trash
a OK [MAILBOXID (jeaaaabm)] Mailbox created.
a select "Trash"
* 0 EXISTS
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* 0 RECENT
* OK [PERMANENTFLAGS (\Deleted \Seen \Answered \Flagged \Draft \*)] All allowed
* OK [UIDVALIDITY 2197339414] UIDs valid
* OK [UIDNEXT 1] Next predicted UID
* OK [MAILBOXID (jeaaaaab)] Unique Mailbox ID
a OK [READ-WRITE] SELECT completed This feature will also create issues deleting folder aliases to certain special folders such as In other words, personally I think this feature is a hack to support broken email clients. If a mail client does not allow to configure the name of special use folders and instead insists on creating their own, then this is a bug that should be fixed on the client side. |
I actually am not sure that this constitutes as implemented. If the implementation breaks JMAP and potentially hinders other IMAP clients, then this fix should not be released. I would call that a lose lose with the potential to implement one IMAP special case. |
Which feature or improvement would you like to request?
With dovecot it is possible to map multiple directory folders (Sent , Sent Objects, Gesendet ) to a single directory /Sent within the mailbox.
https://doc.dovecot.org/configuration_manual/namespace/#core_setting-namespace/mailbox/special_use
https://github.com/mailcow/mailcow-dockerized/blob/master/data/conf/dovecot/dovecot.folders.conf
Due to many clients having multiple defaults in which mailbox dir for example, sent items are stored.
Is your feature request related to a problem?
Kind of, while testing I noticed that Outlook / Thunderbird / Apple Mail all have different "default" names for folders inside the mailbox.
Code of Conduct
The text was updated successfully, but these errors were encountered: