Mail in El Capitan keeps showing unread emails

After updating to El Capitan, Mail will routinely display a number of unread messages in my Gmail account. When I go into my Gmail inbox, the unread message number immediately vanishes (as well as the badge number in the dock). After a few minutes, the icon on the dock will show unread messages again. Enter the Gmail inbox, the indicator disappears. There is absolutely no unread mail in my Gmail. I checked on the Gmail website to be sure.


Is El Capitan messing up the IMAP syncing? I tried rebuilding the mailbox and deleting/recreating my Google account in Mail, but the problem persists. My iOS 9 devices don't have this problem, but it started on my mac immediately after updating to El Capitan. I use another IMAP email, and there is no issue. I'm interested to know what might be causing Mail to keep thinking there are unread messages, particularly from Google.

MacBook Pro with Retina display, OS X El Capitan (10.11)

Posted on Sep 30, 2015 6:06 PM

Reply
11 replies

Oct 15, 2015 10:41 PM in response to RudimentaryUser

Same issue here. Rebuilding the mailbox didn't help (nor did sending myself a message, and then rebuilding). Always shows the same number of unread messages. As soon as I click any message in the unified inbox (doesn't matter which account it was sent to), the number disappears. After a little while (presumably while it's checking for new mail), the badge is back again.


No such issues on my iPhone or iPad (both running iOS 9).

Oct 29, 2015 9:23 AM in response to RudimentaryUser

This was happening for me too, but for a different reason. I had a folder with unread messages in it that was not visible under the Inbox folder. I have the standard iCloud account and another IMAP account. When the iCloud account is turned off, I just see the IMAP Inbox without the folder underneath it. Enabling the iCloud account makes the Inbox into a tree view that also shows the previously hidden IMAP folder.


This looks like a bug to me. The solution was to show the iCloud account, mark the messages in the hidden folder as read, and then stop routing messages to that folder. I can then hide the iCloud account again. Another solutions is to show the iCloud account, even though I am not using it.

Mar 10, 2016 10:42 AM in response to tfincannon

Sorry for the huge bump, but this solved my problem. I showed over 2500 unread emails when I actually had none. I talked to an AppleCare advisor (even though my iMac is done with AC, they still will help me). He told me to go to Mail > General > Preferences and change dock unread count from all mailboxes to inbox only and to do the same with new message notifications.


It worked perfectly, didn't have to restart or anything. Hope this helps someone. Take care all.

Aug 28, 2016 9:00 PM in response to RudimentaryUser

I found that when I used the gmail web client to mark a message as read, it would still show up in my "Unread" smart mailbox in Apple Mail. To get rid of these I created a folder called "temp" and dragged the problem message there. I marked it as unread and then read (not sure if this is necessary) and then dragged to back to my inbox. Afterward it didn't show up in my "Unread" smart mailbox.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail in El Capitan keeps showing unread emails

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.