Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

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

smart mailbox unread counts wrong

After upgrading to Mavericks, my smart mailboxes' unread counts are all wrong. I've tried restarting mail and rebuilding mailboxes and recreating the smart mailboxes, but still they are wrong.

Mail-OTHER, OS X Mavericks (10.9)

Posted on Oct 22, 2013 7:40 PM

Reply
Question marked as Best reply

Posted on May 6, 2017 1:53 PM

Bruce Alderson wrote:


I fixed this for my smart mailboxes (Mail.app v7.0 1822) by following these steps:


1. Open a terminal

2. Re-index Spotlight


sudo mdutil -E /


I suspect this is related to Mavericks improvements in Spotlight, as it now indexes Mail.app messages much better than in previous releases.

This solution still works! It just solve a wrong unread counts on a smart mailbox, on macOS Sierra.

Thanks!

114 replies
Question marked as Best reply

May 6, 2017 1:53 PM in response to Bruce Alderson

Bruce Alderson wrote:


I fixed this for my smart mailboxes (Mail.app v7.0 1822) by following these steps:


1. Open a terminal

2. Re-index Spotlight


sudo mdutil -E /


I suspect this is related to Mavericks improvements in Spotlight, as it now indexes Mail.app messages much better than in previous releases.

This solution still works! It just solve a wrong unread counts on a smart mailbox, on macOS Sierra.

Thanks!

Oct 23, 2013 5:26 AM in response to jmfinn9

Got from other post the following instructions. After following these steps my problem is solved. Hope this works for all of you:



  • Quit Mail if it’s open.
  • In ~/Library/Mail/V2/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.
  • Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.”
  • Open Mail.
  • Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.

Oct 23, 2013 7:10 AM in response to jmfinn9

Same here, rules do not work on output (i.e. using the ¨To¨ field). It was never flawless for me, as to make it work, I had to select the Sent folder and then pick Apply Rules on a selection of messages; however, that at least worked and good enough for me. Now it doesn´t work at all anymore. Incoming messages, no problems that I spotted, though.

Oct 23, 2013 7:22 AM in response to RioMacUser

I treid this solution, it didn't work for me. I'm pretty sure the problem I'm having with smart mailboxes isn't about including messages, but with rules that exclude. So my mailboxes that are supposed to have messages from Today, or This Week, or a specific From address include appropriate message, but the smart mailboxes no longer exclude messages. This is at least how I understand my particular predicament.

smart mailbox unread counts wrong

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