mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 16:12:02 +00:00
getTagCounts sends two Email/query per tag: 240 method calls for 120 tags, and the sidebar re-runs it after every push. A server that advertises the keywords capability with supportsCounts already reports each keyword's total and unread in Keyword/get, so the counts now come from one call there, and from the queries as before everywhere else or when that call fails. Trash and Junk (#1156) are not subtracted on this path. Keyword/get has no filter, and taking them out would need the two per-tag queries this avoids. The counts are the server's own for the keyword; a gateway that maps tags to provider labels reports what the provider shows for the label.