| View previous topic :: View next topic |
| Author |
Message |
Aaron
Guest IP: 24.130.*.*
|
Posted: Wed Jul 02, 2003 4:00 pm Post subject: treat letters,digits, then letters to left of @ as spam |
|
|
aaron1234akkq*@*.* and the like has ALWAYS been spam.
A regular expression of *[a-z]*[0-9]*[a-z]*@*.* should flag any address as spam.
|
|
| Back to top |
|
 |
gary
Lieutenant
 Premium Member
 Joined: Dec 22, 2002 Posts: 260 Location: Dallas/Ft. Worth, USA
|
Posted: Wed Jul 02, 2003 5:45 pm Post subject: |
|
|
Try "[a-z]+\d+[a-z]+@". Remember that DOS wildcard characters and Regular Expressions are quite different! As you have it, the *" at the beginning will cause a syntax error, as it is a quantifier, and must follow something. The remaining expression will match *anything* with an "@" sign in it, which probably isn't what you want. Don't sweat it though, it's a very common mistake, and one that I frequently used to make!
The filter looks a bit too general right now - for example, my friend "stamps2u" would get caught. Should there be a minimum number of letters or numbers in each of the sequences? _________________ Gary
|
|
| Back to top |
|
 |
TimeGhost
Major

 Joined: Apr 11, 2003 Posts: 750 Location: USA
|
Posted: Wed Jul 02, 2003 6:41 pm Post subject: |
|
|
Gary, your suggestion would not catch any address starting with a digit. And I've seen a few. I suggest this: "[a-z]*\d+[a-z]+@". Note the asterisk replacing the first plus sign. Be well!
|
|
| Back to top |
|
 |
gary
Lieutenant
 Premium Member
 Joined: Dec 22, 2002 Posts: 260 Location: Dallas/Ft. Worth, USA
|
Posted: Wed Jul 02, 2003 6:47 pm Post subject: |
|
|
Okay - the ONW asked for "letters, digits, then letters", so I was being very specific. Actually, I think there are probably fewer legitimate addresses which start with a number than with a letter, so that might be a good filter to add to the Sample Filter set. I'll try it out for a while and see what kind of results I get. _________________ Gary
|
|
| Back to top |
|
 |
JE_Canada
Guest IP: 65.49.*.*
|
Posted: Sun Jul 06, 2003 9:27 pm Post subject: |
|
|
I implemented a Regular Expression filter some time ago that automatically bounces anything starting with a numeral, and I haven't seen a single "good" message yet which satisfies this criteria.
|
|
| Back to top |
|
 |
|
|