Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

toke lahti

macrumors 68040
Original poster
Apr 23, 2007
3,302
517
Helsinki, Finland
Is it so, that you can't use a folder's name in defining a rule?

What I should do, is to tell Mail to move mail from Spam folder defined by ISP in their IMAP mailbox to the local folder in a mac.

Might creating a smart mailbox help in this?

Rule should be "if there's a mail in folder "Spam", move it to folder "LocalSpam" ".
 
That should work just fine. I think what you may be seeing is the rules only run as new mail comes in. So if you just made this new rule it won't do anything until a new message comes in or you manually run the rule on selected messages by choosing "Apple Rules" under the Mail / Messages menu.
 
The problem here is, that there's no rule "if the mail is in FOLDER X" in Apple Mail.

Meaning that you can't make rule based on certain mail's location, but you can make a rule to move it to certain location.

Feels stupid.
Maybe Apple just can't or won't see the situation when somebody's using anything else than iCloud Mail.

I guess it's time to learn AppleScripting?
 
Last edited:
Found a work-around: you can add header types to Rules in Apple Mail.
Checked that ISP's spam filtering adds a header "X-Spam-Folder: YES" to detected spam.

Now all mails that have that header will be moved to On My Mac, so they don't max the quota in IMAP box and you can go through it later to get the false positives back.
The other option would have been let IPS to delete spam immediately, which would have led to false positives to be deleted.
 
...and that doesn't work, because Rules only apply to inbox.
If ISP's spam filter has already moved a spam to Spam folder, Rules don't touch it anymore.
Doh.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.