Skip to content

[stable5.13] fix(sync): don't return the mailbox as new messages from the initial sync - #14263

Open
backportbot[bot] wants to merge 1 commit into
stable5.13from
backport/13823/stable5.13
Open

backportbot[bot] wants to merge 1 commit into
stable5.13from
backport/13823/stable5.13

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 20, 2026

Copy link
Copy Markdown

Backport of PR #13823

@ChristophWurst

This comment was marked as resolved.

@ChristophWurst ChristophWurst self-assigned this Nov 20, 2026
@ChristophWurst
ChristophWurst marked this pull request as draft November 20, 2026 13:24
@ChristophWurst
ChristophWurst force-pushed the backport/13823/stable5.13 branch from 70712e0 to 41cd86c Compare November 20, 2026 17:16
…sync

When a mailbox isn't cached yet, the client syncs it with init set and
no known ids (initializeCache() in Mailbox.vue), then loads the first
page from the message list. The initial sync returned every message of
the mailbox as new anyway, and ran each one through the preview
enhancer. On an INBOX of 33,000 messages that request ran out of
memory, and the client retried it.

The initial sync now only fills the cache and returns the mailbox
stats. Partial syncs are unchanged.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Dillard Blom <dillard.blom@ensembia.com>
@ChristophWurst
ChristophWurst force-pushed the backport/13823/stable5.13 branch from 8ea08b7 to 529e865 Compare November 20, 2026 17:31
@ChristophWurst
ChristophWurst marked this pull request as ready for review November 20, 2026 17:33

This branch has not been deployed

No deployments
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