Apple mail counter to flagged emails has disappeared

Hello,

in my Mail App the counter next to the "Marked" smart mailbox has disappeared.

The marked emails are displayed correctly in the mailbox, but the "icon" counter has disappeared.

All other counters work correctly.


I suddenly had the problem under macOS Big Sur and updated to macOS Monterey. The error still persists.


Various approaches from the forum with restoring, putting accounts online/offline, deleting envelope files in the library were unsuccessful.


Can anyone help?

Thank you.


MacBook Pro 13″, macOS 12.7

Posted on Jan 9, 2024 1:53 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 27, 2024 9:28 AM

I solved the problem: I had not worked with a smart mailbox, but accidentally deleted the favorites mailbox "Marked".

You can simply show the mailbox again by clicking on the "+" next to the favorites mailboxes and - voilà - the counter is back!

11 replies

Jan 9, 2024 1:14 PM in response to MacLevine

Sounds like you need to rebuild the Spotlight Index...


How to rebuild the Spotlight index on your Mac

If searching your Mac doesn’t return expected results, rebuilding the Spotlight index might help.


Choose Apple menu () > System Preferences, then click Spotlight.

Click the Privacy tab.

Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the Add (+) button and select the folder or disk to add.

To add an item to the Privacy tab, you must have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”

From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the list.

Quit System Preferences. Spotlight will reindex the contents of the folder or disk.


If still not working...


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


If still need be…


Open Terminal and run each of these one at a time


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.



Jan 10, 2024 7:30 AM in response to Luis Sequeira1

An interesting objection! If I mark an email as unread and marked, then it is displayed - so the counter shows a correct number.


However, until the error occurred, I always used the intelligent mailbox so that the marked emails were displayed (even if the emails had already been read).


This is also how the rule "Email is marked" is created in the intelligent mailbox...


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 counter to flagged emails has disappeared

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