Page 1 of 1
How to filter out emails with random letters in address?
Posted: Wed Sep 06, 2023 10:36 am
by rrr512
I get many emails from addresses like
[email protected] (apparently a random address generator).
Can I create a MW filter that will automatically mark these as spam? This sounds like a great opportunity for AI.
thx!
Re: How to filter out emails with random letters in address?
Posted: Wed Sep 06, 2023 10:40 am
by gingbat
Yes you could create a new filter as below to catch any email with over 30 characters in the from address...? (as per screenshot)
So if the FROM, CONTAINS, REGEX,
@[:alnum:]{30,}
Also add a Spam Tool rule, and set it to be Sender is not on my Friends List and set the filter to match ALL rules.
Doing this so that if you do get a legit sender with very long domain, you can add to Friends list and the filter will ignore any future emails from that sender.
The filter above is looking in the FROM field, for an @ symbol, followed by any alpha-numeric character. The {30,} means it repeats 30+ times.
You can change that 30 number to suit, but keep the comma after the number as this means has to happen at least 30 times, without the comma it would only match if it was exactly 30.

- Filter - Over 30 characters.png (29.09 KiB) Viewed 2941 times
Re: How to filter out emails with random letters in address?
Posted: Wed Sep 06, 2023 11:25 am
by rrr512
Thanks!
I was hoping an AI algo could see an address with a string of apparently random characters and mark as spam. The future ?
Re: How to filter out emails with random letters in address?
Posted: Wed Sep 06, 2023 11:32 am
by gingbat
hey, yea, entirely possible alright, AI can actually write some awesome regex filters already via a web browser....
