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

Team-mailbox - folder management #3510

Open
chibenwa opened this issue Feb 24, 2025 · 0 comments
Open

Team-mailbox - folder management #3510

chibenwa opened this issue Feb 24, 2025 · 0 comments

Comments

@chibenwa
Copy link
Member

Context

Backend added in a serie of tickets good support for managing team mailboxes folders:

We need to add support for this in fromtend too

Definition of done

Base frontend folder management action on the 'right' properties of the folders: https://jmap.io/spec-mail.html#mailboxes

myRights: MailboxRights (server-set) The set of rights (Access Control Lists (ACLs)) the user has in relation to this Mailbox. These are backwards compatible with IMAP ACLs, as defined in [@!RFC4314]. A MailboxRights object has the following properties:

    mayReadItems: Boolean If true, the user may use this Mailbox as part of a filter in an Email/query call, and the Mailbox may be included in the mailboxIds property of Email objects. Email objects may be fetched if they are in at least one Mailbox with this permission. If a sub-Mailbox is shared but not the parent Mailbox, this may be false. Corresponds to IMAP ACLs lr (if mapping from IMAP, both are required for this to be true).
    mayAddItems: Boolean The user may add mail to this Mailbox (by either creating a new Email or moving an existing one). Corresponds to IMAP ACL i.
    mayRemoveItems: Boolean The user may remove mail from this Mailbox (by either changing the Mailboxes of an Email or destroying the Email). Corresponds to IMAP ACLs te (if mapping from IMAP, both are required for this to be true).
    maySetSeen: Boolean The user may add or remove the $seen keyword to/from an Email. If an Email belongs to multiple Mailboxes, the user may only modify $seen if they have this permission for all of the Mailboxes. Corresponds to IMAP ACL s.
    maySetKeywords: Boolean The user may add or remove any keyword other than $seen to/from an Email. If an Email belongs to multiple Mailboxes, the user may only modify keywords if they have this permission for all of the Mailboxes. Corresponds to IMAP ACL w.
    mayCreateChild: Boolean The user may create a Mailbox with this Mailbox as its parent. Corresponds to IMAP ACL k.
    mayRename: Boolean The user may rename the Mailbox or make it a child of another Mailbox. Corresponds to IMAP ACL x (although this covers both rename and delete permissions).
    mayDelete: Boolean The user may delete the Mailbox itself. Corresponds to IMAP ACL x (although this covers both rename and delete permissions).
    maySubmit: Boolean Messages may be submitted directly to this Mailbox. Corresponds to IMAP ACL p.

Details

  • Mailbox creation picker allow to select as a parent mailboxes with mayCreateChild right
  • Mailbox creation picker allow to select as a parent mailboxes team mailboxes
  • Delete mailbox action is proposed if, and only if mayDelete is present
  • Rename folder is proposed if, and only if I have the mayDelete right on the folder and the mayCreateChild right on the parent (or is at the base of the team mailbox)
  • Move folder action is shown if, and only if, the user have mayDelete right on the folder
  • Move folder parent picker shows only folder having the mayCreateChild
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

No branches or pull requests

1 participant