@Laukidh@infosec.exchange
This shortcut runs when you get a text message containing the word “stop”.
It checks if the sender is in your contacts and if not it looks for another keyword like “end” “unsubscribe” and then checks the rest of the message against a political wordlist. (SpamMatch.txt, which is written by the setup shortcut below. It’s newline separated and supports regex, customize away and let me know what works for you).
I should note that you’ll probably find your favorite candidate in that wordlist.
If it’s spam, it sends back “stop”, reports the sender to 7726 (spam), and adds them to a contact (setup shortcut below) that identifies all your spammers and lets you just swipe to block them.
Sorry, you will have to build a bit of the automation yourself. We can’t share or back up the “Automation” that kicks it off.
Main shortcut “text spam handler” (install this): https://www.icloud.com/shortcuts/a592afefa4b643728640145e49f72b92
Setup shortcut (install and run this; it will write a file then prompt with a contact to create; if you change what the contact is named, you will need to edit a single line in the main shortcut):
https://www.icloud.com/shortcuts/37d24f5e56644f19b0265f8f3b8e38c3