Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Spam shortcut ...

I would like to create a shortcut that would add a Mail rules that (1) marks chosen emails to be tagged as Junk mail and to (2) add their domain name (not the full address) in Mail's Junk filter list.


Somebody is a Shortcut Pro here and that can be of help ?

iMac 27″, macOS 15.0

Posted on Oct 23, 2024 4:26 AM

Reply
6 replies
Sort By: 

Oct 23, 2024 12:42 PM in response to rlesperance

Open Mail and from the top menu bar, choose Mail > Settings.


Click on the Rules tab. Click on the Add Rule button. Create a rule as follows:



Where it says Rule 2 in my example, give it a more logical name that explains what it does without having the rule. Put the unwanted domain name where I have @nogood.com .


Anything from that domain will automatically be placed in the Junk folder.


Where it says Move Message, you can change that to Delete Message. However, that is then all it does. And I don't know if that means the email will be moved to the Trash, or if it is simply discarded entirely without the chance to see what may have been in it.



There isn't an option in the rules to mark a sender as Junk. Otherwise, you'd be able to created a second action on the first image above to mark the email, and send it to the Junk folder. Though it may be automatically marked as junk just by redirecting it to that folder.

Reply

Oct 24, 2024 12:41 PM in response to Kurt Lang

Tested on my end and used my wife's Mac so I could try various filters on her address.


All partial strings worked, as expected. With a sample being wxyz@abcde.com, any of the following filters sent the email to the trash, or straight out deleted it if I chose that option:


xyz

wxy

cde.com

@abcd

@abcde.com

xyz@abc


All Mail is doing is seeing if what you typed as a filter matches any contiguous text of the sending email address in any way. Since any of those fit, they all work.

Reply

Spam shortcut ...

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