Skip to content

fix(imap): avoid expanding UID ranges#12714

Merged
kesselb merged 1 commit intomainfrom
fix/imap/avoid-expanding-ranges
Apr 14, 2026
Merged

fix(imap): avoid expanding UID ranges#12714
kesselb merged 1 commit intomainfrom
fix/imap/avoid-expanding-ranges

Conversation

@ChristophWurst
Copy link
Copy Markdown
Member

@ChristophWurst ChristophWurst commented Apr 13, 2026

Fixes #8457

The Horde IDs object can represent UID ranges like 1:1000000. Calling ->ids expands the range to every value in the range.

If we avoid expansion we can avoid excessive memory exhaustion.

https://help.nextcloud.com/t/php-error-related-to-mail-app-when-parsing-imap-message/187090

AI-Assisted: OpenCode (Claude Haiku 4.5)
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst
Copy link
Copy Markdown
Member Author

/backport to stable5.7

@kesselb kesselb merged commit 1bba1ac into main Apr 14, 2026
41 of 42 checks passed
@kesselb kesselb deleted the fix/imap/avoid-expanding-ranges branch April 14, 2026 08:48
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.

Empty inbox does not load with memory overload

2 participants