Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

Mailspring display 2 unread messages in the inbox but I already read everything

Open rafrsr opened this issue 9 years ago • 41 comments

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.

rafrsr avatar Oct 25 '17 02:10 rafrsr

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.

rafrsr avatar Oct 26 '17 15:10 rafrsr

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.

rafrsr avatar Oct 31 '17 13:10 rafrsr

Can't add much more to this but I also have the same problem on Windows 10 with the latest release.

oxysoft avatar Nov 30 '17 16:11 oxysoft

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.

bengotow avatar Feb 03 '18 17:02 bengotow

Im on version 1.1.2 and still have this issue.

For me there are 2 short term workarounds:

  • Click on Unread Emails and 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.

ghost avatar Feb 05 '18 08:02 ghost

On version 1.1.3, same issue. No rules. Rebuilding "fixes" it.

TheRoarkster avatar Feb 11 '18 16:02 TheRoarkster

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.

enx1998 avatar Jul 15 '18 10:07 enx1998

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.

Geotig avatar Jul 18 '18 20:07 Geotig

1.3.0 still showing 2 unread but nothing in the unread folder. Rebuilt cache and no change 😢

byroncoetsee avatar Jul 31 '18 23:07 byroncoetsee

On 1.4.0, this issue still exists.

ulgens avatar Aug 11 '18 21:08 ulgens

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)

grinsted avatar Aug 24 '18 19:08 grinsted

1.5.3 - Issue still exists.

akarmes avatar Dec 04 '18 15:12 akarmes

Version 1.5.5-b7939d38 on Ubuntu 18.04. Issue still happens.

wonx avatar Jan 13 '19 00:01 wonx

Same here, Version 1.5.5-b7939d38 on Ubuntu 18.04.

nfaivre avatar Jan 14 '19 09:01 nfaivre

1.5.5-b7939d38

Same issue, 2 unread unless rebuilding cache.

4.14.94-1-MANJARO

asaphaaning avatar Feb 08 '19 14:02 asaphaaning

Same problem on 1.5.7-20157ca30

ksbg avatar Mar 05 '19 01:03 ksbg

Same problem on 1.5.7-20157ca30

F0x06 avatar Mar 11 '19 10:03 F0x06

Same problem on 1.6.1-aceed8e5 on Ubuntu 18.04

can-sevinc avatar Apr 24 '19 06:04 can-sevinc

I second that for 1.6.1-aceed8e5 on Ubuntu 18.04.

rtud avatar Apr 27 '19 19:04 rtud