Apple Mail doesn't apply rules unless I choose "Apply Rules" manually

27

6

I'm using Apple Mail with IMAP account. I have several filtering rules defined. The problem is that Mail doesn't apply them automatically to incoming email. Even spam isn't filtered automatically.

For all incoming email, every time, I have to select e-mails and select "Apply Rules", and then rules work fine (that one time on selected e-mails only).

It works like this on two separate installs of Mail with different accounts (both IMAP though).

How can I get Mail to apply all rules automatically every time to all e-mails?

I wonder does it ignore rules because of misconfiguation, bug or does Apple seriously expect people to use "Apply Rules" menu item regularly?

Kornel

Posted 2009-08-31T20:44:38.593

Reputation: 1 225

Answers

18

This is a bug.

In their infinite wisdom, Mail.app developers decided only to apply rules to 'unseen' messages. If the IMAP 'seen' flag is set, rules will not be applied.

I started a forum thread on the apple forums on this topic.

rouble

Posted 2009-08-31T20:44:38.593

Reputation: 554

The thread seems to be deleted. But on my MacBook with Mavericks the bug is still valid. Any news on this one? – velop – 2015-02-07T11:10:27.070

1not fixed in both Yosemite & El Capitan. Ugh… – Display Name – 2015-11-01T08:08:48.957

6Neither in High Sierra! – Iulian Onofrei – 2017-09-28T09:51:23.977

See answer by velop below for a fix – SteffX – 2018-04-07T07:47:48.210

17

I found following post: http://www.cnet.com/how-to/how-to-delete-and-manage-old-messages-in-os-x-mail/

So you have to do the following:

  1. Add your filter that you want to apply.
  2. Add the rule condition: Every message.
  3. Set the drop down to "all"

You need to set "all" because if you set "any". What happens is that it evaluates every message, it will automatically match "every message". Then because you set "any". It won't consider the actual filter. Then it'll execute the action. So if you set the "delete" action. You will automatically delete every message in your inbox. A very dangerous mistake.

velop

Posted 2009-08-31T20:44:38.593

Reputation: 309

6Make sure that when you set the "Every Message" action, that you make sure that the rule matches ALL conditions, instead of ANY conditions. otherwise you will affect every message in your inbox. – Ben L. – 2015-03-17T19:24:00.863

1Answers which only contain links are not that helpful. – Ramhound – 2016-07-13T16:59:13.757

@Ramhound He included the solution too. Thanks @velop! This solved it for me. – musicin3d – 2017-11-18T21:01:08.917

1I did the following to finally get it working:

  1. remove "stop evaluating rules" from Rule #1 Apple News
  2. Add "Every Message" to my rule
  3. Add the Account name to my rule (Google account)
  4. < – Vasily Hall – 2019-02-17T09:07:10.920

This is a link only answer. Please include the relevant parts from your link. – Burgi – 2019-03-04T09:48:07.067

This also fixed my problem, but in addition to the solution presented, I also had to add the account name as a rule as @Vasily Hall suggested. – GForce – 2019-03-09T02:08:56.540

This doesn't work for me. Yes, if I do all of these things, I can colour a mail, and it works on the way in too. But when I switch the action to an applescript which works on mails when I select them and run opt-cmd-L no probs, MacMail ignores the script run. – volvox – 2019-05-20T21:47:29.667

8

I had the same issue, but it turned out the first rule in the list (News from Apple) had "Stop evaluating rules" as the last action.

I removed this action and it worked fine.

bvpb

Posted 2009-08-31T20:44:38.593

Reputation: 181

Thank you! That should be on on Apples FAQs. – Tobias F. Meier – 2018-11-09T16:22:41.273

5

Not sure if this is exactly your problem, but something similar happens to me.

I've got a Mac running Apple Mail and an iPod touch, both checking the same IMAP account. The Mac is asleep during the day. While out and about, I'll check my mail on the iPod, read the new messages, and leave them in my inbox. When I come home, I wake up the Mac, and Mail syncs with the server. The filtering rules are not applied.

The reason for this behaviour is that Mail only appears to apply rules to "new" mail. Having already seen these new messages on another device, I'm not so much downloading new messages to Mail as I am synching with the server. So, no rules applied for these messages.

CartoonChess

Posted 2009-08-31T20:44:38.593

Reputation: 181