How to filter out emails with random letters in address?

Forum for MailWasher Pro 7 and/or older 2011/2012 versions.
rrr512
Mystified Moa
Posts: 8
Joined: Thu Aug 24, 2023 7:48 am

How to filter out emails with random letters in address?

Wed Sep 06, 2023 10:36 am

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!
gingbat
Least Evil Firetrust Employee
Posts: 1789
Joined: Mon Jul 28, 2008 4:04 pm

Re: How to filter out emails with random letters in address?

Wed Sep 06, 2023 10:40 am

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
Filter - Over 30 characters.png (29.09 KiB) Viewed 2935 times
rrr512
Mystified Moa
Posts: 8
Joined: Thu Aug 24, 2023 7:48 am

Re: How to filter out emails with random letters in address?

Wed Sep 06, 2023 11:25 am

Thanks!
I was hoping an AI algo could see an address with a string of apparently random characters and mark as spam. The future ?
gingbat
Least Evil Firetrust Employee
Posts: 1789
Joined: Mon Jul 28, 2008 4:04 pm

Re: How to filter out emails with random letters in address?

Wed Sep 06, 2023 11:32 am

hey, yea, entirely possible alright, AI can actually write some awesome regex filters already via a web browser.... :)

Return to “MailWasher Pro 7”