Answers...

to commonly asked questions.

Can't get rid of invisible flagged items in mail.

My mail is showing that there are flagged messages in the flagged folder but I don't have any. How can I get rid of that incorrect number?
___________

First: Always have a good Time Machine backup before proceeding…


If you've tried rebuilding the mailbox…
If you've tried flagging one intentionally then selecting all and unflagging all within that box all at one time…
Try this…

Go to the hidden library folder by holding down option while selecting the Go menu.

Screenshot 2023-10-20 at 2.06.40 PM

Once there, go to the Mail/V folder. Find the MailData folder that lives there and then find any file that starts with "envelope" and throw them away.

Screenshot 2023-10-20 at 2.09.51 PM


Restart mail and that should force mail to rebuild the flagged folders. Could take a while depending on how much email you have.
This image is a theme.plist hack