Skip to content

fix(mailbox): Flag shared mailboxes as shared - #13378

Open
kesselb wants to merge 1 commit into
mainfrom
shared-mailbox-detection
Open

fix(mailbox): Flag shared mailboxes as shared#13378
kesselb wants to merge 1 commit into
mainfrom
shared-mailbox-detection

Conversation

@kesselb

@kesselb kesselb commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

For ChristophWurst/docker-imap-devel#21


RFC-2342 IMAP4 Namespace 1

1 Personal Namespace
2 Other Users' Namespace
3 Shared Namespace

Before this change only mailboxes with type 2 (Other User's Namespace) were flagged as shared.

Now also mailboxes with type 3 (Shared Namespace) are flagged.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Footnotes

  1. https://datatracker.ietf.org/doc/html/rfc2342

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates IMAP namespace handling in OCA\Mail\IMAP\MailboxSync so that mailboxes in the RFC-2342 “Shared Namespace” (namespace type 3) are flagged as shared, in addition to the existing “Other Users’ Namespace” (type 2).

Changes:

  • Expand the “shared mailbox” detection to include NS_SHARED namespaces.
  • Centralize the non-personal namespace types into a class constant used by the shared-detection logic.

Comment thread lib/IMAP/MailboxSync.php Outdated
RFC-2342 IMAP4 Namespace [^1]

1 Personal Namespace
2 Other Users' Namespace
3 Shared Namespace

Before this change only mailboxes with type 2 (Other User's Namespace)
were flagged as shared.

Now also mailboxes with type 3 (Shared Namespace) are flagged.

[^1]: https://datatracker.ietf.org/doc/html/rfc2342

Assisted-by: Claude:claude-opus-5
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb
kesselb force-pushed the shared-mailbox-detection branch from 21c696d to 2c71bdc Compare July 28, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants