Apple Mail unread count

Dr. McKay

macrumors 6502a
Original poster
Jan 20, 2010
644
44
Belgium, Europe
The Apple Mail app in Mac OS Mojave on my MB Pro and iMac show a different unread count than the one in my iCloud Mail on the web.
However, both my iPhone and iPad show the exact same number of unread mails as my iCloud webmail.

How can I fix this on my MB Pro and iMac (which both show the same unread count, but different from iCloud and my iOS devices ?
 

KoolAid-Drink

macrumors 65816
Sep 18, 2013
1,346
325
USA
Did you try opening Connection Doctor in macOS Mail? That may force a "re-sync". (Open Mail, click Window on the menu bar, then click "Connection Doctor".) Or, restart the computer into Safe Boot, open Mail, then quit Mail, then restart normally.

If still no go, toggle Mail off and back on for iCloud on the Mac. That should take care of it.
 

KoolAid-Drink

macrumors 65816
Sep 18, 2013
1,346
325
USA
Tried all of that, even removed the envelop files in Library/mail/... No go...
Try downloading Onyx and erasing all the mailboxes, then restart.

As an absolutely last resort, reinstall Mojave to see if that fixes it. Cumbersome, but at least a proper reinstall (you can just boot from the installer and do an in-place installation; nothing will be lost) should fix all odd issues.
 

Dr. McKay

macrumors 6502a
Original poster
Jan 20, 2010
644
44
Belgium, Europe
Tried Onyx. Strangely, when I reopened Mail, it briefly showed the correct number of unread messages, for a few seconds, and then reverted to the previous number again...
 

KoolAid-Drink

macrumors 65816
Sep 18, 2013
1,346
325
USA
Hmm, that definitely is odd! Did you try unchecking Mail from iCloud preferences in System Preferences, running Onyx right after to clean, restarting in Safe Boot, then finally restarting normally and re-checking Mail?
 

Dr. McKay

macrumors 6502a
Original poster
Jan 20, 2010
644
44
Belgium, Europe
Hmm, that definitely is odd! Did you try unchecking Mail from iCloud preferences in System Preferences, running Onyx right after to clean, restarting in Safe Boot, then finally restarting normally and re-checking Mail?
Haven't done the Safe boot, my bad. Will try that later on. Thanks for the help so far !