Question about wildcard filters,

Discussion forum for Enterprise Edition.
Post Reply
kiamori
Posts: 327
Joined: Wed Nov 04, 2009 1:39 am
Contact:

Question about wildcard filters,

Post by kiamori »

We have a filter for spam phrases, and I'm getting mixed results using wildcards.

For example here is the filter script:

FilterResult=0
If CriteriaMet([ME_BODY],"<REFERENCE><FILE>SpamPhrases.txt</FILE><PATH>D:\ME\Config\Filters\Patterns</PATH><REFERENCE>") Then
FilterResult=1
End If

We have a script that adds some phrases to the SpamPhrases.txt file based on user reports via our custom antispam tool we've created.

Here is an entry that works:
receive * $* Gift Card
For
receive a Sam's Club $500 Gift Card

And here is one that does not:
get a $* gift card
For:
Congratulations! You can get a $100 Dick's Sporting Goods gift card!

Why does the first one work and the second does not?

Post Reply