Skip to content
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

Since 22.10 ubuntu update, unread mails are no more reported #517

Open
Neo595 opened this issue Oct 22, 2022 · 29 comments
Open

Since 22.10 ubuntu update, unread mails are no more reported #517

Neo595 opened this issue Oct 22, 2022 · 29 comments
Labels
bug Something isn't working

Comments

@Neo595
Copy link

Neo595 commented Oct 22, 2022

System AMD64 Ryzen
8GB RAM
Ubuntu 22.10 Beta / MATE desktop
Thunderbird 102.3.2
Birdtray version 1.9.0 compiled at Sep 30 2021 18:54:11 using Qt 5.15.2.

Description
Since the update toward 22.10, birdtray does not report any unread mail on most of the mailboxes and folders

Expected behavior
Report unread mails

To Reproduce
Select folder to monitor, toggle mail from read to unread, observe log and unread counter on the tray

Additional context

Log console inside the application lead to Qt crash :

QObject::killTimer: Timers cannot be stopped from another thread
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4247, resource id: 12983066, major code: 40 (TranslateCoords), minor code: 0
QObject::connect: Cannot queue arguments of type 'QTextBlock'
(Make sure 'QTextBlock' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QTextCursor'
(Make sure 'QTextCursor' is registered using qRegisterMetaType().)
Erreur de segmentation (core dumped)

Launching birdtray with log on file, we can see that birdtray detects accesses to mail boxes,
Here I'm toggling one mail from read to unread with no detection :

2022-10-22 07:42:32 Triggering the unread counter update
2022-10-22 07:42:32 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.msf: 0
2022-10-22 07:42:32 Triggering the unread counter update
2022-10-22 07:42:32 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.msf: 0
2022-10-22 07:42:35 Triggering the unread counter update
2022-10-22 07:42:35 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.msf: 0
2022-10-22 07:42:43 Triggering the unread counter update
2022-10-22 07:42:43 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.msf: 0

Curiously, It works for some folders , i'm here toggling some mail from read to unread

2022-10-22 07:50:43 unreadCounterUpdate 1
2022-10-22 07:50:44 Triggering the unread counter update
2022-10-22 07:50:44 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.sbd/2022.sbd/XyZ.msf: 1
2022-10-22 07:50:52 Triggering the unread counter update
2022-10-22 07:50:52 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.sbd/2022.sbd/XyZ.msf: 1
2022-10-22 07:51:01 Triggering the unread counter update
2022-10-22 07:51:01 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.sbd/2022.sbd/XyZ.msf: 2
2022-10-22 07:51:01 unreadCounterUpdate 2
2022-10-22 07:51:02 Triggering the unread counter update
2022-10-22 07:51:02 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.sbd/2022.sbd/XyZ.msf: 3
2022-10-22 07:51:02 unreadCounterUpdate 3
2022-10-22 07:51:02 Triggering the unread counter update
2022-10-22 07:51:02 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.sbd/2022.sbd/XyZ.msf: 3
2022-10-22 07:51:10 Triggering the unread counter update
2022-10-22 07:51:10 Unread counter for /home/XyZ/.thunderbird/XyZ.default/Mail/Local Folders/Inbox.sbd/2022.sbd/XyZ.msf: 3

@Neo595 Neo595 added the bug Something isn't working label Oct 22, 2022
@GillesF74
Copy link

Same problem but with Kubuntu 18.04 LTS, I can't see new messages with tray icon.
I think the problem came with the latest Thunderbird updates.

@HypnoticST8
Copy link

I can confirm that this bug is present when Thunderbird 102 is installed and most likely is not related to specific GNU/Linux distro (I've tested it under MX Linux, Debian and Ubuntu). @gyunaev millions of billions people are using birdtray, please save us :-P

@th3hamm0r
Copy link

I've had the same issue with Linux Mint, but I think, as @HypnoticST8 stated, it is not OS specific, but more an issue with the new Thunderbird.

For me, I was able to fix it by pulling the latest commits from the repository and building birdtray again, it now shows the unread count again for me!

In my case, I had also an additional problem, that probably due to the migration to Thunderbird 102, my watched folders got renamed internally ("-1" appended to the name), so I had to re-add all folders.

@HypnoticST8
Copy link

I've deleted and added all the folders 'Accounts to monitor'. What have changed is that now when clicking on the birdtray icon it brings TB to front. Also unread count in the tray icon shows number of unread massages but not for all folders. If the unread massage is in root folder it might be counted as unread but not necessarily. For unread massages that are in nested folder it seems to work fine.

@GillesF74
Copy link

Thanks @th3hamm0r , I did the same as you. with Ubuntu, I cloned the project from github and recompiled birdtray following the "readme" file. And now it works like before. That's great !

@michaelgruenstaeudl
Copy link

Thanks @th3hamm0r , I did the same as you. with Ubuntu, I cloned the project from github and recompiled birdtray following the "readme" file. And now it works like before. That's great !

I second this. The unread mail counter of Birdtray works fine again if Birdtray is recompiled from commit a3c2b5a.

@Neo595
Copy link
Author

Neo595 commented Oct 27, 2022

Compiling from source changes nothing on my side. (22.10 is applying 1.9 version of birdtray)

@th3hamm0r
Copy link

th3hamm0r commented Oct 27, 2022

@Neo595 Have you checked the watched folders/accounts? I upgraded 2 separate installations, and one had this issue where the transition from thunderbird 91 to 102 somehow changed those internal folder names, and I had to re-add them in birdtray, as those were unwatched.

edit: note, that the master currently has 90 more commits in comparison to v1.9 (v1.9.0...master), so there may be fixes which help.

@Neo595
Copy link
Author

Neo595 commented Oct 27, 2022

Hello, I did both compilation master and 1.9 same results. I reconfigured all folders to scan (to experiment), same behavior, some folders allow unread mail detection, most of the others don't.

@HypnoticST8
Copy link

I can confirm that package compiled from newest source code solves the problem.

@gyunaev
Copy link
Owner

gyunaev commented Nov 3, 2022

@Abestanis are we ready to build the release for Windows?

@Neo595
Copy link
Author

Neo595 commented Nov 3, 2022

Hi,
Following @HypnoticST8 comment, I recompiled against latest 1.10.0. Now It's working again.
Thanks.

@Abestanis
Copy link
Collaborator

@Abestanis are we ready to build the release for Windows?

@gyunaev Sorry for the late response. The windows installer seems to still build and looks ok, so we should be good on that side.
But in 14134ac, you have accidentally removed a lot of translations, maybe just undo the changes to the translation files before you create the new release.

@timhmdv
Copy link

timhmdv commented Nov 29, 2022

I had the same problem with the unread mail counter. A simple recompilation of the latest version of birdtray from this repository helped to solve this problem.

@IanBlakeley
Copy link

IanBlakeley commented Dec 12, 2022

Tried the recompile suggested by others but still not getting new mail flagged using Mint 21 and TB 105. Update now I do see a count, it is not always accurate.

@rafikiphoto
Copy link

rafikiphoto commented Jan 12, 2023

I don't have the knowledge to recompile. Has someone got a file that works suitable for installing Birdtray in TB 102 + Linux Mint 21.1?

@rafikiphoto
Copy link

I guess not then. What a pity. I loved this little app when it was working.

@xdenyer
Copy link

xdenyer commented Feb 13, 2023

Downloading from random sources isn't a great idea in general, but I've just compiled from master under Kubuntu 22.10 if anyone wants it: https://virtualdebris.co.uk/temp/birdtray/birdtray-master/ and you should just need the build.zip contents. Can confirm it seems to fix the unread icon issues, at least for me.

If you want to compile it yourself (which is a better idea) as well as installing cmake and following the instructions in README.md I also needed some other packages per the instructions linked below;

https://askubuntu.com/questions/1335184/qt5-default-not-in-ubuntu-21-04
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

https://stackoverflow.com/questions/40688812/could-not-find-a-package-configuration-file-provided-by-qt5svg
sudo apt install libqt5*-dev

The last bit is overkill but I couldn't be bothered to work out exactly what it needed.

@raqua
Copy link

raqua commented Mar 22, 2023

I am on Mint 21 and have recompiled version from current master. Reports 1.10.0 in "about" section.
It still does not report the number of emails.

@shmu26
Copy link

shmu26 commented May 9, 2023

This blogger took the latest commits on GitHub and built a binary from it, and it works with TB 102.
https://www.linuxuprising.com/2023/03/birdtray-ubuntu-ppa-updated-with-unread.html
Maybe just make a new release? There's got to be an awful lot of people out there waiting for it.

@Zahid-BM
Copy link

I can confirm that this bug is present when Thunderbird 102 is installed and most likely is not related to specific GNU/Linux distro (I've tested it under MX Linux, Debian and Ubuntu). @gyunaev millions of billions people are using birdtray, please save us :-P

I am using Thunderbird 102.11.0 on linux mint and all work good but birdtray can't count incoming unread email counts and shows on the try icon. I don't what is the solution.

@Zahid-BM
Copy link

This blogger took the latest commits on GitHub and built a binary from it, and it works with TB 102. https://www.linuxuprising.com/2023/03/birdtray-ubuntu-ppa-updated-with-unread.html Maybe just make a new release? There's got to be an awful lot of people out there waiting for it.

I applied your tricks and worked for me. Thanks.

@therob84
Copy link

therob84 commented May 29, 2023

This blogger took the latest commits on GitHub and built a binary from it, and it works with TB 102. https://www.linuxuprising.com/2023/03/birdtray-ubuntu-ppa-updated-with-unread.html Maybe just make a new release? There's got to be an awful lot of people out there waiting for it.

I applied your tricks and worked for me. Thanks.

Same for me - it now works again (Linux Mint 21.1 and Thunderbird 102.11.0), installed unofficial DEB v. 1.10 over 1.9 and it is back to work. Thanks for this!!

@Zahid-BM
Copy link

Zahid-BM commented Jun 4, 2023

This blogger took the latest commits on GitHub and built a binary from it, and it works with TB 102. https://www.linuxuprising.com/2023/03/birdtray-ubuntu-ppa-updated-with-unread.html Maybe just make a new release? There's got to be an awful lot of people out there waiting for it.

I applied your tricks and worked for me. Thanks.

Same for me - it now works again (Linux Mint 21.1 and Thunderbird 102.11.0), installed unofficial DEB v. 1.10 over 1.9 and it is back to work. Thanks for this!!

Unfortunately now I noticed Birdtray 1.10 can't read and show new incoming unread emails. 2 weeks ago I confirmed that Birdtray was working fine but now the problem starts again and also showing wrong unread counts even if there is no unread emails. I am using Linux Mint 21.1 Cinnamon 64bits. Plz advise a solution if any. Thanks in advance.

@riksoft
Copy link

riksoft commented Aug 29, 2023

Same problem with Debian 12 (Bookworm): Thunderbird and Birdtray, both from the official repo, are not longer working together very well. It does minimize and that's alone is great, but the counter is gone.

@riksoft
Copy link

riksoft commented Aug 29, 2023

Does anybody knows which is the latest Thunderbird version working properly with BirdTray?
In the meantime I'm downgrading to TB 91.13.1 which is the current version in Bullseye and I know for sure was working because I had that before I updated to Bookworms.

@riksoft
Copy link

riksoft commented Aug 29, 2023

I've installed the older version in /opt, and with
./thunderbird --allow-downgrade
thunderbird was working the the newer profile but BirdTray was still unable to count the unread emails.
I've then restored the older profile from the yesterday backup and now it's all working 100% OK.

@riksoft
Copy link

riksoft commented Oct 19, 2023

See also #544
I've put back TB from Debian repo, it has worked for a while and then the counter has stopped working again.

@riksoft
Copy link

riksoft commented Oct 19, 2023

Just to be sure I was not selecting the right accounts, instead of selecting only those of interest I've selected all of them, excluding only archives/trash/junk/sent. Now I see 32 unread emails that are nowhere. At the same time it keeps not counting new emails. So the problem must be that it misinterprets values from the .msf files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests