Ask for the unread count, not the whole folder tree

Performancekamo-internal
Ya
14 Agosti 2026, 04:51 UTC
Mwandishi
kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei