Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unread mail count for Inbox incorrect

Hi Folks,

My problem is not the unread mail count in the Dock, but the unread mail count in left-hand column Inbox.

It says 32 unread mail, and even after rebuilding my Inbox, quitting, rebooting, that number never changes. Even if there aren't 32 messages total in the Inbox.

Using OS X version 10.5.6 and Apple Mail version 3.5 (930.3), and IMAP protocol.

Deleting this IMAP account, then recreating it from scratch fixed the problem before, but now the same problem has appeared again.

Any ideas?

Thanks, Doug

Posted on Feb 8, 2009 11:14 AM

Reply
10 replies

Feb 8, 2009 11:34 AM in response to Doug Niven1

try rebuilding the entire mail index. quit Mail and delete the file /users/username/library/mail/envelope index. start mail and let it import (that means reindex). if that doesn't help, try making a smart mailbox with a single condition to show only unread messages. see if it reveals those hidden unread messages.

Feb 9, 2009 10:22 AM in response to Doug Niven1

Interestingly, tossing the Envelope Index did not fix this problem.

Creating a Smart mailbox for all unread mail and then marking all the mail there as "read" reset the counter next to the Inbox at top left in Apple Mail.

However, now the reverse is happening:

--the unread mail count in the Dock and at top of window is correct, but there is no value next to Inbox at top left in Apple Mail

Note this user had an Archive & Install recently and there's nothing suspicious in her log files, so this is a real mystery.

Message was edited by: Doug Niven1

Feb 9, 2009 10:28 AM in response to Doug Niven1

Doug Niven1 wrote:
Interestingly, tossing the Envelope Index did not fix this problem.

Creating a Smart mailbox for all unread mail and then marking all the mail there as "read" reset the counter next to the Inbox at top left in Apple Mail.

However, now the reverse is happening:

--the unread mail count in the Dock and at top of window is correct, but there is no value next to Inbox at top left in Apple Mail

oh, brother... You can try resetting mail preferences. maybe something is wrong there. quit Mail and delete (or move to the desktop) the file /users/username/library/preferences/com.apple.mail.plist. Start Mail and recreate all your accounts. see if the unread count displays correctly now.
Note this user had an Archive & Install recently and there's nothing suspicious in her log files, so this is a real mystery.

Message was edited by: Doug Niven1

Feb 9, 2009 11:05 AM in response to Doug Niven1

When using IMAP accounts, and removing the Envelope Index, you must also remove the IMAP folders to prevent problems! This is because the Envelope Index in on each computer, and when the procedure creates new xxxx.emlx names in each Messages folder, in each mailbox it may lose sync with the messages on the server. They are only on the Mac to reindex, if you have selected to Keep all messages for Offline viewing.

Having said all that, whether a message in an IMAP mailbox is marked as Read or Unread is something that happens on the server, and not on the Mac. It appears to me that you may have some communication problems with the server.

Ernie

Mar 23, 2009 11:46 PM in response to Machinegun

Another thing, login to your webmail account through Safari (or whichever browser you use) and delete any redundant email folders or ones that you don't use. I had two trash, sent, and junk folders which I suppose was confusing Mail.app therefore the Inbox badge wasn't displaying correctly.

Also, I noticed that when I pointed to one Junk folder and clicked on "Use this Mailbox for" > Junk, my Inbox badge on the left panel disappeared although I had two unread messages in there. After I deleted a bunch of folders through webmail (I deleted both my Junk folders since Mail.app will make a new one anyway), everything is working perfectly 🙂

I hope this helps anyone.

Unread mail count for Inbox incorrect

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