-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systray double-counts unread messages in sub-folders of Inbox #154
Comments
You still have an old add-on that does the counting. Did you install one manually? Please remove it and let the system add the new one. There should be no systray-x addon installed in your own profile directory. (~/,thunderbird/xxxx.default/extensions) |
I've cleaned the old version out, and reinstalled 0.9.5, but it's definitely still misbehaving. Are you testing by manually moving messages around, as I have about 20 pre-installed Mail Filters in place, which move messages based on content/sender, and it could be this that's causing a race condition somewhere .. |
For testing I manually moved them in a test setup. But I am using filters in my main setup with more then 20 mail accounts but no filters moving mails inside the inbox dir. I use the filters to move some mails to an archive account. The complete archive account is also part of the the count filters of the addon. But I never saw a double count... What happens if TB is in rest and you mark one message in an inbox as unread? Is the updated unread count then valid? Could you also have a look at the debug console of TB? The count filters are listed in the debug output of the addon.
Check if there are somehow double entries listed. |
I'm only getting a bunch of 'spam' about calendars appearing in the Tools/Developer Toolbox/Console log; and nothing [meaningful] relating to Mail Filtering nor the Counting of messages from Systray-X. I'm probably missing something fundamental here, so I'd appreciate any pointers. For the most part, counting is working fine in individual folders, and decrements fine also .. but its funny when you read a New message in a sub-folder, and, like, 6 drop off the Notification counter .. it's definitely incorrect!! Happy to continue the debugging quest, as I suspect I'm probably not the only unfortunate victim of this problem! |
Moved my testing to Ubuntu 20.04. Setup a message filter on the Inbox moving some mails to an "Inbox/Test" dir. But still no problems detected. Forgot they changed the logging/debugging in the latest version. To get the debug output:
|
This is what I've got in that window: https://dpaste.com/HK26955CA |
I can see that the addon detects 5 email accounts from the forced filters setting (but only 1 account is listed partially in the account listing). |
Unless I'm mistaken, I had to do a reset recently either when upgrading, or whether it was porting my profile to another computer. |
Hmm, well this is interesting, on restarting TB, with the Toolbox window open, the
which looks a little more sensible... |
Found some problems with the new / unread mail listeners. Refactored the counting a bit using a new method for TB 115 and up due to extra available parameters in the API. Updated the listeners for the older versions. Still testing and looking for problems. Did not have much time lately... |
Much appreciated, and also I understand the time pressures! Could you share your insights on the listeners issue, and or reference this issue in your testing code branch perhaps? I would be happy to do some testing if that helps you conclude the problem(s) ! I can't remember off the top of my head whether it's possible to modify-in-place a mozilla plugin (I use greasemonkey scripts extensively in Firefox and Chrome - it's a lovely ecosystem) and again, if there's supplementary debug information I can provide to ease development, only too happy to do so!! 😃 |
The listeners were activated after a 5 second delay (can be tweaked in the settings). The delay was needed for pre? 115 TB because the accounts and folders where not immediately available using the API for setting up the count filters. You could use the git version of the add-on to test:
|
And problems with the build service. Packages are not published at the moment. |
I should be able to build from git - I'll figure out how! But sounds like you have bigger problems!! 😬🤨 |
Successfully built from the git repo , develop branch, noting #160 ! Further to original post, TB is now 102.15.1 (still installed from Ubuntu repository, security.ubuntu.com). |
ok I'm pretty sure I've got the addon updated from the git branch, but I think the separate 'app' part isn't loading from wherever it should be .. how does this normally get spawned? do I need to move the executable from the build folder somewhere for it to be 'detected'?! Thanks in advance! |
First you need to uninstall the package from the repository. Then install the config file:
Have a look in the SysTray_X.json. It should contain the path to the SysTray-X binary in the build directory. If you ever install the package from the repositoy again, please do not forget to remove this file again. I have updated the README a few day ago. It should be in the Build section. |
Ooops! yeah I'd unwittingly built it as 'root' user and copied to my home folder, not correcting the path! 🤦♂️
.. which would equally make sense if it couldn't "connect" with the host 'app' so that should now be fixed! 👍 Will update further with some more news Soon™. Thanks for the tip! 😄 |
Any updates? |
Ah, sorry for not getting back sooner! I probably need to pull your latest git code to make sure the problem persists, but I don't believe you've made any significant changes to the 'counting' code? I've seen some debugging statements in the code (or think I have) but not identified them in the Debug Console output in Thunderbird itself. For the time being I'm sticking with TB102.15 and Not upgrading to 115 Yet, so hopefully we can track down whatever this supposed race-condition might be... Any debugging tips, and I'll get some more 'running data' to send you... 👍 TIA! |
Aha, yes I see some I wonder if we could add a 'verbose' type option to block-toggle these print statements On/Off to watch the internals easily.. wdyt? Gotta get some sleep in .. but will note this for a timeslot Soon™... |
For TB 115 you can use API count method for unread messages. I will not fully count the unread messages anymore but use the unread attribute of the folders. There is a bit of a delay by TB updating this attribute. The "verbose" option is indeed a good idea. I am getting a bit annoyed with myself continuously enabling and disabling the console.debug statements. |
Describe the bug
Systray double-counts (occasionally more!) unread messages in sub-folders. This then misreports unread messages in the tray icon!
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
Correct count of new messages is maintained across all tracked subfolders.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
echo $XDG_SESSION_TYPE
in a terminal: x11Additional context
Add any other context about the problem here.The text was updated successfully, but these errors were encountered: