Apple Mail | flagged email wrong count/ghost message

after upgrading to Ventura 13.6, Mail shows a count of "1" for a flag that in reality has 0 message: I have 5 messages with red flag correctly displayed, but there is still 1 showing as orange that doesnt really exist





iOS is actually showing the right number (5, right flag), so my assumption is that the issue is only related to the desktop version.


I've tried multiple fixes I've found in this community and on the web, but so far none of them works:


  • re-building all mailboxes
  • deleting "envelope index" files in the library
  • dis-enabling/re-enabling all mailboxes
  • check labels/starred emails in my account online (google and icloud)


Any help?


Giacomo


[Edited by Moderator]

MacBook Pro 15″

Posted on Oct 13, 2023 12:30 AM

Reply

Similar questions

9 replies

Oct 13, 2023 3:07 AM in response to Giacomix

I have used this method back in Monterey macOS 12


In Ventura the V10 in below, I am not sure if that should be V10 or V11


Quit Mail if it’s open.

• In ~/Library/Mail/V10/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.

• It will fix your issue.

"Message Import":



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.

Apple Mail | flagged email wrong count/ghost message

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