Default folders: new accounts get an Archive folder #378

Merged
jcoffey-dev merged 1 commits from feat/default-archive-folder into main 2026-11-11 18:56:43 +00:00
Owner

With no defaultFolders configured, a new account now gets Archive (special use Archive, subscribed) beside Inbox, Deleted Items, Junk Mail, Drafts and Sent Items, using the mailbox id already reserved for it (ARCHIVE_ID). A configured list is the admin choice and still only gets the five required folders filled in. Existing accounts are not changed.

Tests:

  • JMAP mailbox test: a new account has exactly the six folders.
  • Sieve test_mailbox.sieve used Archive as the special use nobody has; it now uses Important.
  • jmap::jmap_tests and imap::imap_tests pass locally (RocksDb); fork checks and rustfmt clean.

Reported by khashmeshab in https://community.coffeylabs.org/t/232/12.

Fixes #374

With no `defaultFolders` configured, a new account now gets Archive (special use Archive, subscribed) beside Inbox, Deleted Items, Junk Mail, Drafts and Sent Items, using the mailbox id already reserved for it (`ARCHIVE_ID`). A configured list is the admin choice and still only gets the five required folders filled in. Existing accounts are not changed. Tests: - JMAP mailbox test: a new account has exactly the six folders. - Sieve `test_mailbox.sieve` used Archive as the special use nobody has; it now uses Important. - `jmap::jmap_tests` and `imap::imap_tests` pass locally (RocksDb); fork checks and rustfmt clean. Reported by khashmeshab in https://community.coffeylabs.org/t/232/12. Fixes #374
jcoffey-dev added 1 commit 2026-11-11 18:45:58 +00:00
Default folders: new accounts get an Archive folder
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 10m26s
fcc8551e90
With no defaultFolders configured, a new account now gets Archive (special use Archive, subscribed) beside Inbox, Deleted Items, Junk Mail, Drafts and Sent Items. It uses the mailbox id already reserved for it. A configured list is the admin's choice and still gets only the five required folders filled in. Existing accounts are unchanged.

Tests: the JMAP mailbox test checks a new account's folders; the Sieve special-use test now uses Important as the role nobody has, since Archive exists by default.

Fixes #374
jcoffey-dev merged commit aa7d2fd03d into main 2026-11-11 18:56:43 +00:00
jcoffey-dev deleted branch feat/default-archive-folder 2026-11-11 18:56:43 +00:00
Sign in to join this conversation.