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

Phantom messages in Mail

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?


Edward

Posted on Oct 24, 2013 10:40 AM

Reply
49 replies

Oct 27, 2014 9:14 AM in response to Edward

I continued to see this issue in Yosemite with a smart mailbox showing 2 unread messages even when no other mailbox showed unread items. The solution was embarassingly simple and obvious, hopefully helps others who are still seeing this:


1) Create new Smart Mailbox

- name "All Unread"

- match "All" conditions

- "Message is Unread" as only condition

- check boxes to include form Trash and Sent

2) Select all messages inside new "All Unread" mailbox

- Note: for me, all of these were marked as unread

3) Mark all selected messages as "Unread"

4) Mark all selected messages as "Read"


Doing this quickly and simply solved my problem. I didn't dig into it, but I assume the multiple databases tracking unread message counts got misaligned - this process brings them all into sync.

Dec 29, 2014 8:15 AM in response to philipfifibachinger

philipfifibachinger's suggestion is BY FAR the easiest way to fix the problem of flags not going away. I've had this problem several times now and have found that to be the easiest fix every time.


A couple notes about his post though:


1. Your spotlight system preferences may not appear in your spotlight search. If not, just click on the apple in the upper left corner of your screen, click system preferences, and click on spotlight.


2. Your computer might not be named Macintosh HD. In fact, most people have probably renamed it "John Doe's Macbook Air" or something like that. In any event, add that drive to the privacy list as explained by philip and then remove it a few seconds later.


3. It will take some time for the indexing to be done and for the flagged folders to rebuild. When you start a spotlight search, you'll see a status bar showing how long the indexing has left.

Jan 2, 2015 2:19 AM in response to Edward

Using philipfifibachinger's Spotlight derived solution to rebuild didn't work for me unfortunately; I still had the Flagged unread count, despite having no messages showing in the Flagged folder. After some concern about deleting files from the system along the lines of William Kucharski's instructions given the various subsequent posts about machines left hanging, I decided to do a full back up and then try William's method.


It worked perfectly for me on Yosemite 10.10.1. Note for my Mail with c50k messages, the Flagged folder disappeared completely to start with, returning 5 or 10 minutes later. My heart sank, but as suggested the folder now actually contained the Flagged messages which I could then deal with. Many thanks William Kucharski.

Phantom messages in Mail

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