KamoCRM

Ask for the unread count, not the whole folder tree

Performancekamo-internal
Shipped
14 ஆகஸ்ட், 2026 அன்று 4:51 AM UTC
Author
kamo
Commit
f0264ac

The mail badge needs one integer and was fetching every folder in the mailbox to find it, which on the IMAP providers is the most expensive call the mail backend makes. EmailService now exposes the single-folder unread count that MailReader has always been able to answer with one STATUS. This is the fallback the badge uses when its unread socket has failed or gone quiet, so it was at its most expensive exactly when something was already wrong.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing