View Single Post
  #6  
Old 4th July 2012, 05:11
Johans Johans is offline
Junior Member
 
Join Date: Jul 2012
Location: Philippines
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Johans
Default

Quote:
Originally Posted by till View Post
A * in a regex is no wildcard, it means only repeat the character before the * a unlimited time. As the character before the * in your regex is a whitespace, your regex will match only things like From: .info and not .info email addresses. I guess what you wanted is something like that:

/From:.*\.info/

Wich means that the line starts with "From:" Then there may be any other characters as . is the placeholder for any character and .* means that any number of any character might be in that place and then the end is .info where the . has to be escaped with a backslash so that it is not interpreted as wildcard.
Thank you for that information..
I have a question.. How do i block spam in content filter if i would like to reject a keyword "viagra"

I am using ISPConfig v. 3.0.2.1

Your immediate response is highly appreciated.
__________________
Thanks,

Johans
Developer / Open Source Enthusiast
Reply With Quote