A lot of my spam recently has had a return email address with a series of random lower case letters before the @ symbol. The common thing is that they are all a long series of characters (>12-15). Is there a way I can filter them out based on more than a certain number of characters before the @ symbol?
Rich
Need filter for long return addresses
- stan_qaz
- Omniscient Kiwi
- Location: Gilbert, Arizona
Post
Re: Need filter for long return addresses
Yes use a regex filter that looks for more than the number of good lower case letters. I don't have my old v6 documentation around but if you search the forum you might find it. The v2012 version of MW has a similar regex engine so you might try their documentation to see if it is close enough.
http://www.regexlab.com/en/deelx/syntax.htm
http://www.regexlab.com/en/deelx/syntax.htm
I am not a Firetrust employee just a MW user.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.
- us035976
- Student Sheep
Post
Re: Need filter for long return addresses
I can figure out the RegExpr to count the number of characters. How do I make it only look at before the @ symbol in the 'From' field?
- stan_qaz
- Omniscient Kiwi
- Location: Gilbert, Arizona
Post
Re: Need filter for long return addresses
To speed it up I'd look for a beginning of the line, the string "From:" ignore the colon and space (the ..) then your character count and finally the "@" which is a normal character. Something like this would probably work, I didn't test it though.
Code: Select all
^From..[:lower:]{12, }+@
I am not a Firetrust employee just a MW user.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.