If you’re the kind of person who gets a ton of emails and spends more time sifting through them than actually reading the important ones, then this tip is exactly what you need. Instead of having the icon display counting all the unread emails you have, the Mail.app icon will only show the number of important emails, excluding things like spam and anything else you deem less important.
To set it up, you first need to create a new rule: Go to Mail -> Preferences -> Rules, then select the Inbox Rules tab, and click on Add Rule. Name the rule Personal Email and then select the following to create the rule:
The rule should match “any” of the following conditions:
Then under “Perform the following actions” select:
The next step is to create a smart mailbox called Relevant Email: Go to Mailbox -> New Smart Mailbox. Select these options:
The last thing to do is to go to Mail’s General Preferences tab and, for Dock Unread Count, select the relevant email mailbox that you’ve just created. And voilà! The icon badge will now display only the number of unread emails from the mailbox that you’ve just created.
Remember, everyone has different requirements of what qualifies as important mail. These conditions are adjustable and the rules can be changed to match other conditions.