Quote:
Originally Posted by serversphere
Never used antispam.exim before, but sure looks like a regex statement, no?
Code:
$message_body contains "http\:\/\/[0-9a-z]*\.?[0-9a-z]*\.?[0-9a-z]+\.cn"
Though I don't understand the question marks there...
Says:
match anything with
http:// + any number or letter combo + a period (? = one, many or not at all) {repeats x 2} + .cn
Or am I misreading?
|
You're basically there. The question mark means 0 or 1 instance of the pattern, so it's saying 0 or 1 periods ".". The period has to be escaped with a "\", since it has special meaning in regexes. The "*" means any number of instances, including zero of the preceding set.
By the way, I tried this and it does actually work. I would just make sure that you're putting it in the right filter file.