Robin Elfrink wrote:
for me Thunderbird's behaviour is ok.
Nah, not for me :)
Here's a patch that updates counters for collapsed/expanded parents as well. Please test.
Thunderbird's way is not stupid. Let's say we have Folder with no messages and Folder.Subfolder with messages. When Folder tree is collapsed you know that you should expand the Folder tree (because his name is bold but there's no number). In your solution you don't know where are messages and what to click, Folder name or expand link (more request to the server). That's why I think Thunderbid's way is better.