Page 1 of 1

Simple Filter Problem?

Posted: Thu Aug 12, 2010 10:54 pm
by Pej
Just upgraded to 2010 and spent a while recreating my filters. I'm having trouble with one very simple one - I've got a filter that simple checks the subject of a message to see if contains a certain text string. For some reason the filter is only triggering about 50% of the time - the rest of the time, despite the conditions appearing to have been met, it is never marked as filtered, as spam, for deletion, etc. Am I doing something wrong?

Filter type: Spam
Match: Any
Subject contains Plain Text: *****SPAM*****
Spam Score: -200

Like I said, on the ones that aren't being marked as spam they appear to not be being filtered at all somehow, despite meeting the conditions of the filter.

Re: Simple Filter Problem?

Posted: Thu Aug 12, 2010 11:06 pm
by Sidewinder
Pej wrote:Just upgraded to 2010 and spent a while recreating my filters. I'm having trouble with one very simple one - I've got a filter that simple checks the subject of a message to see if contains a certain text string. For some reason the filter is only triggering about 50% of the time - the rest of the time, despite the conditions appearing to have been met, it is never marked as filtered, as spam, for deletion, etc. Am I doing something wrong?

Filter type: Spam
Match: Any
Subject contains Plain Text: *****SPAM*****
Spam Score: -200

Like I said, on the ones that aren't being marked as spam they appear to not be being filtered at all somehow, despite meeting the conditions of the filter.
Does the Side Panel show the missed messages as being tagged by the filter?
I would suggest that you remove the leading and trailing * characters and change the filter from plain text to Regex

Re: Simple Filter Problem?

Posted: Thu Aug 12, 2010 11:22 pm
by anniebrion
I use this regex to find -----SPAM-----, *****SPAM***** and all other combinations of - & * at the start of the subject:

Code: Select all

^[-*]{5,}SPAM[-*]{5,}.*
Replace the ^ with .* if you want to find the string anywhere in the subject

Re: Simple Filter Problem?

Posted: Fri Aug 13, 2010 1:58 am
by stan_qaz
Before you change the filter over to regex you might want to take a look at the message source and see if there is anything unusual about the ones not hitting. I have a similar filter to yours that works quite well so I'd suspect something in the message is not triggering the filter.

Re: Simple Filter Problem?

Posted: Fri Aug 13, 2010 2:10 am
by Pej
stan_qaz wrote:Before you change the filter over to regex you might want to take a look at the message source and see if there is anything unusual about the ones not hitting. I have a similar filter to yours that works quite well so I'd suspect something in the message is not triggering the filter.
This has occurred on 50+ messages so far, so it isn't a case of a single anomalous message, nor have I spotted an issue in the source with the subjects of said messages. I'll try moving it to regex and seeing if that improves the string detection, though honestly it seems like such a simple filter should work right out of the box. Thanks everyone!

Re: Simple Filter Problem?

Posted: Fri Aug 13, 2010 3:36 am
by stan_qaz
If the regex doesn't work the next thing to try is switching to a header filter and looking for the subject: and your spam tag. Header contains "Subject: *****SPAM*****" and see if that helps.