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

Won't stop showing new message indicator #14

Closed
geckolinux opened this issue Oct 1, 2018 · 19 comments
Closed

Won't stop showing new message indicator #14

geckolinux opened this issue Oct 1, 2018 · 19 comments

Comments

@geckolinux
Copy link

Hi there, I loosely organize my life based on the "Inbox Zero" method of task management. That means that messages I need to follow up on are marked as "unread" for a certain amount of time. This appears to confuse Birdtray. After running the Fix for non-zero new message count the icon reset to its normal state. But after I received a few more messages in addition to the previously unread messages, the icon continues to flash the new unread count despite those new messages already being read. Thanks a lot!

@gyunaev
Copy link
Owner

gyunaev commented Oct 1, 2018

That means that messages I need to follow up on are marked as "unread" for a certain amount of time.

I'm unsure I understood what it means.

@geckolinux
Copy link
Author

Sorry for not being clear. Here's an example:

  • I currently have 9 messages marked as unread because I need to follow up on them. They may stay as unread for a few weeks until I get around to finishing them.
  • I ran the Birdtray "Fix" for non-zero inbox count, and the icon reset to the normal Thunderbird logo.
  • I received 3 new messages. I read them, and now they are in the "read" state.
  • The Birdtray icon still shows 3 new messages. It should show 9, because that is how many I have marked as unread.

@gyunaev
Copy link
Owner

gyunaev commented Oct 1, 2018

I still don't get it. So you have 9 unread messages, but you use Fix button to mark them read?

In any case, this will not work properly. This is why it says next to Fix button that you should use it when there is a non-zero unread count, but you have zero unread messages. If you do not have zero unread messages, the result is unpredictable.

@geckolinux
Copy link
Author

Yes, I guess that was a mistake to use the Fix button.

What about an option to make it simply show the count of unread messages since after running the "Fix" button? I would be happy if it only showed me 3 new messages when they arrive, and after I read them it resets back to 0. In other words, don't notice if I later mark a message as un-read. Just how many messages have arrived that I have never read.

@gyunaev
Copy link
Owner

gyunaev commented Oct 1, 2018

This is not possible using the database interface. It tells me "there are 3 unread messages". It doesn't tell me whether those are new messages, or old messages marked unread. This is something #12 would fix.

@geckolinux
Copy link
Author

geckolinux commented Oct 1, 2018

Hmm I see. Is there any way to make it work normally now after I mistakenly hit the "Fix" button? I tried marking all of my messages as read, closing Thunderbird, and re-running the "Fix". After opening TB again, it initially starts with the standard icon and no new messages, but any future incoming messages remain in the Birdtray count even after marking them as read.

@gyunaev
Copy link
Owner

gyunaev commented Oct 2, 2018

To fix it, make all your messages read by right-clicking on each of your folders and choosing "Make folder read". You need to do this even if they show no unread messages. Then exit Thunderbird, and then press Fix button.

Using Fix button while Thunderbird is running is a another great way to wreak havoc with your database.

@geckolinux
Copy link
Author

Whew, that worked. Thanks a lot!

@geckolinux
Copy link
Author

Hmm, unfortunately it looks like it's still messed up. A few hours later I received 2 new messages, I read them, but Birdtray won't stop flashing 2 new.

@geckolinux geckolinux reopened this Oct 2, 2018
@geckolinux geckolinux changed the title New message notifications with "Inbox Zero" method? Won't stop showing new message indicator Oct 3, 2018
@geckolinux
Copy link
Author

So upon further testing, it looks like it will only stop showing the unread message account if I Trash the messages, even though they were already marked as read.

@geckolinux
Copy link
Author

geckolinux commented Oct 3, 2018

I tried restoring my Thunderbird profile from a backup before I tried Birdtray, with Thunderbird showing no unread messages. Birdtray showed 12,000 new emails, so I closed Thunderbird and then ran the counter Fix. (It took about 15 minutes on a fast SSD disk). Then I re-opened Thunderbird and Birdtray, and it showed no new messages. However, when I received a new message and read it, the 1 new message indicator won't go away in Birdtray unless I moved the message to the Trash.

@gyunaev
Copy link
Owner

gyunaev commented Oct 4, 2018

Anyone else has the same problem? Wondering if this is setup-specific.

@gyunaev
Copy link
Owner

gyunaev commented Oct 4, 2018

There are two things addressing the database status (and indicator):

  1. With IMAP, the database status is only updated when the status on server is updated. If your'e disconnected from Internet, it will never drop unread status.

  2. It can take up to a minute for the unread status to change.

@JackDinn
Copy link

JackDinn commented Oct 4, 2018

Anyone else has the same problem? Wondering if this is setup-specific.

I maintain a very close eye on the project, my version is your latest commit. I rigorously test and use daily on several linux based systems. I have not seen the behaviour described (although i dont really understand what OP is doing/saying exactly) but as far as i can say the indicator has always remained in-sync with my actual number of unread mail regardless of whether i manually mark loads of mail un-read myself & then get even more mail on top of that etc.

(My 2 cents worth) Why does OP not just use the "star" marking system ?

@geckolinux
Copy link
Author

geckolinux commented Oct 4, 2018

Hi there, thanks for the replies.

I am also using a recent GIT version from 2018-10-03.

I am observing this behavior with a stable internet connection, not offline.

(My 2 cents worth) Why does OP not just use the "star" marking system ?

That's a good idea. But for now, I marked all my messages as read, and Thunderbird does not show any unread messages. From that point on, after running the unread count Fix button, the Birdtray icon initially shows no new messages, but any future incoming messages continue to flash as unread in Birdtray, even after marking them as read.

@JackDinn
Copy link

JackDinn commented Oct 4, 2018

not 100% sure but i think i read somewhere that using the "fix" button whilst TB is still running could possibly mess up the database.

@geckolinux
Copy link
Author

@JackDinn Yes, that's apparently the case. But I'm working off a backup of my TB profile before I messed it up initially with the Fix button.

@geckolinux
Copy link
Author

Working correctly now with SQLite parser and fresh TB profile.
(Does not work with Mork on some accounts.)

@ghost
Copy link

ghost commented Mar 3, 2024

Sorry to say but no., it does not work correctly at all ... even 6 years later this issue is still given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants