Unread message count wrong for filtered Unified Inbox
Checklist
- [x] I have used the search function to see if someone else has already submitted the same bug report.
- [x] I will describe the problem with as much detail as possible.
App
Thunderbird for Android
App version
12.1
Where did you get the app from?
F-Droid
Android version
16
Device model
Google Pixel 6 Pro
Steps to reproduce
- Click the hamburger menu to see the account list
- Check the unread email count for each account vs the Unified Inbox
Expected behavior
UN icon for Unified Inbox count reports unread count for only “opted-in” accounts.
Actual behavior
UN icon shows unread messages for all accounts.
I have 4 accounts set up, and have removed two from the unified inbox. However, the new Unified Inbox pseudo-account icon “UN” seems to show the sum of all account unread inbox emails, not just those attached to the unified inbox.
I have all emails read apart from several in one of the accounts that is not attached to the unified inbox. The unread count on the UN icon shows the same number that is also on the icon for said unread account.
[Unrelated to this issue, largely, is that I'm not quite sure what the use case is for the new UN icon, it seems to just make it necessary to have one more click to access non-Inbox folders in my “main” account, which previously sat “under” the unified inbox. It's not needed to return to the unified inbox as back already (and still) does that.)l]
Logs
No response
Screenshot of counts
Thank you for taking the time to report this issue. It looks like we haven't heard back in a while, therefore we're closing this issue. If the problem persists in the latest version please open a new issue and reference this one so we can follow up more effectively.
Wut? It's only been a month, and 12.1 is still the current version‽
I can also replicate the reported issue.
SETUP
- Have a minimum of two accounts.
- Have the "Show Unified Inbox" setting enabled.
- Account 1 (Gmail): ENABLE "Unify" on the inbox folder (Manage folders).
- Account 2 (Hotmail): DISABLE "Unify" on the inbox folder (Manage folders).
- Disable "Unify" for all other folders.
REPLICATION STEPS
- Mark 1 message in each account as "unread". (Total 2 unread messages).
- Select the Unified account.
- Press hamburger menu icon to show account list.
- Observe the unread count shown next to "Unified Inbox" versus "Unified Account". The values should match in this case, but differ.
a. Value next to "Unified Inbox" correctly displays 1 unread message. b. Value next to "Unified Account" wrongly displays 2 unread message. It's still totalling unread messages from account 2 where "Unify" has been DISABLED.
So, as far as I understood from the issue, the Unified Inbox counter is displaying correctly, however the counter over the Account icon isn't matching correctly.
In the following screenshots, I have disabled the inbox from my test account, so it should show only 1, instead of 41 as it shows in the second screenshot
| Unified Inbox showing the correct counter | Account List showing the wrong counter |
|---|---|
Hi, I’d like to work on this. I plan to make the Unified Account unread badge consume the existing filtered unified-inbox count instead of summing every account’s total, and add a focused regression test. If that approach fits, could you assign this issue to me?