Mailspring display 2 unread messages in the inbox but I already read everything
Are there any related issues?
no
What operating system are you using?
Ubuntu 17.10
What version of Mailspring are you using?
1.0.6
Bug?
Do you have any third-party plugins installed? If so, which ones?
no
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?
no
Mailspring are showing 2 unread mails in the inbox, but all messages appear as read. When I go to unread messages folder, can see 2 messages but are already read and marked as read, I try to mark as unread and open again but nothing happen, the message is read but the badge still showing [2]. The webmail and other clients display 0 unread messages. Only clearing the cache resolve this issue, but is annoying because happen frequently.
Apparently this problem happens with some rules that I have, move some messages to specific folder and mark them as read. The message appears as read, but the unread badge are not updated.
Digging into this issue I can see that happens not only with automatic tasks, but also happens when I mark some emails as unread manually.
For example, I have some mails in my INBOX (Gmail), after mark some email as unread can see the following logs:
mailsync-xxxx.log:
3551 [2017-10-31 09:30:08.212] [foreground] [info] [local-2dd29259-1454] Running ChangeUnreadTask performRemote:
3551 [2017-10-31 09:30:08.754] [foreground] [info] [local-2dd29259-1454] -- Succeeded. Changing status to `complete`
3551 [2017-10-31 09:30:09.002] [foreground] [info] syncFolderChangesViaCondstore - [Gmail]/All Mail: highestmodseq changed, requesting changes...
3551 [2017-10-31 09:30:09.287] [foreground] [info] 🔸 Updating message 61491=61491 with subject: Email subject ......
3551 [2017-10-31 09:30:09.291] [foreground] [info] Idling on folder [Gmail]/All Mail
And the email is marked as unread with success, and appear as unread in MailSpring and Gmail, in this case all works as expected, then when the email is read, is marked as read in Gmail and MailSpring , at this point all ok.
Now trying the same task with another email in the same account but from another sender:
mailsync-xxxx.log:
3551 [2017-10-31 09:23:48.198] [foreground] [info] [local-87d8fcd7-eafc] Running ChangeUnreadTask performRemote:
3551 [2017-10-31 09:23:48.453] [foreground] [info] [local-87d8fcd7-eafc] -- Succeeded. Changing status to `complete`
3551 [2017-10-31 09:23:48.715] [foreground] [info] syncFolderChangesViaCondstore - [Gmail]/All Mail: highestmodseq, uidnext match, no changes.
3551 [2017-10-31 09:23:48.719] [foreground] [info] Idling on folder [Gmail]/All Mail
When manually mark the email as unread the above lines appear in the log file, the email is never marked as unread in Mailspring, but it's marked in Gmail as unread, and the Inbox folder in MailSpring display the badge: (1) unread mail.
From here, MailSpring will always keep showing the badge of there are unread emails in the Inbox, even if you no longer have unread emails. Only clearing the cache resolve this issue, but is annoying because happen frequently.
Can't add much more to this but I also have the same problem on Windows 10 with the latest release.
I also have this issue on OSX 10.10.5
Hey folks—I think this was fixed in 1.1.0 by fe2170c65f9cdce7bec6a1f69b02e28e9557f746. If anyone sees this on a newer version can you post and let me know? Otherwise I'll close this in a bit.
Im on version 1.1.2 and still have this issue.
For me there are 2 short term workarounds:
- Click on
Unread Emailsand delete them from there. :( preferences > Accounts > Select Account > Rebuild Cache
Doesn't seem to be any specific email or account. I have no email rules and only the default folders.
On version 1.1.3, same issue. No rules. Rebuilding "fixes" it.
On version 1.2.2 there is the same issue. Rebuilding cache resetted the unread number. Would be great if this issue were definitely solved.
In version 1.3.0 if the cache was created with the previous version it still shows the persistent "1 new message" mail count. I will report back if the issue appears again.
1.3.0 still showing 2 unread but nothing in the unread folder. Rebuilt cache and no change 😢
On 1.4.0, this issue still exists.
the unread count very quickly is wrong. You can rebuild the cache to correct it temporarily (very short term).
There are many issues here on github reporting this bug - . (Stilll buggy in 1.4.2)
1.5.3 - Issue still exists.
Version 1.5.5-b7939d38 on Ubuntu 18.04. Issue still happens.
Same here, Version 1.5.5-b7939d38 on Ubuntu 18.04.
1.5.5-b7939d38
Same issue, 2 unread unless rebuilding cache.
4.14.94-1-MANJARO
Same problem on 1.5.7-20157ca30
Same problem on 1.5.7-20157ca30
Same problem on 1.6.1-aceed8e5 on Ubuntu 18.04
I second that for 1.6.1-aceed8e5 on Ubuntu 18.04.