MacOS – My Mail app (MacOS Catalina 10.15.3) displays phantom unread messages

catalinamacosmail.app

My MacBook displays 1 unread message in smart mailbox while there are none.
It used to work OK, but recently it shows unread messages. When I click on this Smart Mailbox it doesn't display any messages. Settings for the Smart Mailbox is OK. I tried methods described in different topics but it doesn't seem to work. Any ideas? Thanks

Best Answer

  1. Quit Mail if it’s open.
  2. In ~/Library/Mail/V7/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.
  3. Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.
  4. Open Mail.
  5. 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.