Previous 1 2 3 4 Next 46 Replies Latest reply: Nov 8, 2015 7:46 PM by sleepymonday
Edward Level 1 (20 points)

I have two similar problems in Mail within Mavericks - essential a message count (of unread messages) is showing in the side bar when there aren't any in practice. This is currently happening for the following:


1. the 'Flagged' folder under 'Mailboxes' in the side bar. This shows 22 flagged messages - one red and 21 green. The green count is sort of correct (it shows that they are unread when in reality they have all been read and show as read when I click on the folder). However, when I click on the red flag folder, it says 1 unread when in reality there are no messages in that folder (either read or unread).


I've searched in Mail - status: Message is Flagged and it only brings up the green flags.


Any idea how I might get rid of this rouge label of 1 unread message? If I can also get rid of the 21 'unread' green flags that'd be a bonus too.


2. I have a smart mailbox which has the criterion to show unread emails (as emails generally go directly into their respective folders so this way I can see unread emails all in one place). Currently, this shows 4 in the sidebar. However, I have no unread emails (either in this smart mailbox or in any other mailbox in Mail).


I've tried rebuilding various mailboxes, I've restarted Mail and the computer. I've removed messages from the server.


Any thoughts?



  • JRibbit Level 1 (0 points)

    Not particularly helpful, but I'm seeing the same two problems: my Flagged count shows as 9 though in fact there are 2 flagged messages, and my Unread smart mailbox always shows a count of 1 more than the actual number of unread messages.

  • Edward Level 1 (20 points)

    Just thought I'd add that, not only are the issues above happening, but also smart mailboxes in general are not updating dynamically.


    For example, new unread emails that appear in other standard mailboxes (filtered, say, through 'Rules') are not dynamically updating in the smart mailbox 'unread emails'. If I click out of the 'unread emails' smart mailbox and then click back in, the emails do then suddenly appear.


    Any thoughts?


  • William Hamilton Level 1 (90 points)

    I am having the same issue.  And phantom emails in my Unread Mail smart mailbox.  I  removed the "Envelope" files from the library as was suggested, and which caused a complete rebuild of my emails, all 42,000 of them.  Seemed to help some.  But still have 2 emails showing in my Unread mailbox, but none there.  Also, the 3 Envelope files that I put in the trash cannot be emptied from the trash.  Get a message saying they are currently in use.


    Lastly, the Junk Mail filter is not doing it's job.  I'm getting a bunch now that will not filter to the Junk mail folder.


    All in all, a pretty flawed release, IMHO.

  • MRJ58 Level 1 (5 points)

    I, too, upgraded to Mavericks and now have false indicators in my 'Flagged' folder under 'Mailboxes' in the sidebar (supposedly 3 emails flagged Red, 1 Green, and 1 Blue—but I have no flagged messages). I tried rebuilding all my mailboxes, but no change.


    Other ideas?

  • Wolf.NBM Level 1 (0 points)

    Another "me too" post. My message counts seem to be completely screwed up on two different Macs with Mavericks. Mailboxs (gmail specifically) show unread messages where there are none, and flagged message count is completely wrong. The badge on the dock icon reflects the same bad unread message count.


    The bogus unread message counts are different on two Macs. iOS and Web don't show any unread messages at all, and it wasn't happening before Mavericks. I've flagged everything on the accounts involved as "read"

  • ganmac Level 1 (0 points)

    Same problem here I have 23 red flagged messages according to the flag count but none are there. Is there a fix yet?

  • William Kucharski Level 6 (14,965 points)

    I've had this same problem, and the following worked for me, but it's a bit hazardous so make sure you have a backup of all your Mail messages, if you keep them locally, first.


    1) Quit Mail.


    2) In Finder, press Shift-Comand-G, and in the "Go to the folder:" box, enter:




    3) Drag the following files to the Trash:


    Envelope Index

    Envelope Index-shm

    Envelope Index-wal






    4) Start Mail; it should tell you it needs to reimport all your Mail messages; allow it to do so.


    When this process is complete, you may see Flagged messages are once again indicated, but this time when you select the Flagged mailbox you should see the messages Mail thinks are flagged, and you should be able to take whatever action you want on those messages (unflag, delete, etc.)

  • Wolf.NBM Level 1 (0 points)

    This actually fixed my issues on both Macs.


    The only thing I would add is rebooting before restarting the Mail app, otherwise you won't be able to empty your trash.

  • JRibbit Level 1 (0 points)

    Apple released an update today that claims to have fixed this issue. (I don't know for sure because I also followed William Kucharski's steps to fix my Mail woes.) See <>.

  • William Hamilton Level 1 (90 points)

    Just upgraded to new update, re-booted OSX, relaunced Mail, and still showing that there are 2 unread emails in my Unread Mail smart mailbox, but no email showing.  I even deleted the that folder and recreated it.  Still shows 2.

  • Edward Level 1 (20 points)

    Well, the update from Apple has not worked for me either; I still have 4 'unread' emails and an incorrect count of flagged messages (both in the flagged message folder and in my smart mailbox).


    I guess I should try what William Kucharski's described. I'm somewhat reluctant though; although I have backups, this computer is too important to go belly-up!


  • Eric Root Level 8 (44,875 points)

    It is an Apple suggested fix and it has solved this type of problem for many people.


    Reindex messages

  • Wolf.NBM Level 1 (0 points)

    The fix suggested by William Kucharski is an older Apple-recommended fix. All it does is delete bad indexes and caches, forcing the Mail program to re-build them. If you follow the instructions- you won't cause any sort of harm to your Mac. I believe the Mavericks fix that came out will help prevent the bad message counts from happening to begin with, but if they are already bad- it may not fix them. After doing the recommended fix and updating Mavericks, all of my Google accounts seem to be working correctly now.

  • William Hamilton Level 1 (90 points)

    Worked for me!  THEY'RE GONE!!

Previous 1 2 3 4 Next