Filter to match multiple Criteria? "and" rather than "or"

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

Filter to match multiple Criteria? "and" rather than "or"

Post by kiamori » Thu Dec 01, 2016 1:14 am

Right now the filtering system matched any criteria, for example.. I want a rule that looks for the following:

X-ME-Bayesian: 0.000000
and
SPF: Pass


then process actions, however when you select two criteria in the ME filtering it only needs to match one of the two so its working more like,

X-ME-Bayesian: 0.000000
or
SPF: Pass


Please tell me there is a way to work around this?

kiamori
Posts: 221
Joined: Wed Nov 04, 2009 1:39 am
Contact:

Re: Filter to match multiple Criteria? "and" rather than "or"

Post by kiamori » Thu Dec 01, 2016 1:29 am

Seems I may be able to do this under the Advanced Criteria Scripting,

FilterResult=0
If CriteriaMet([ME_HEADERS_CONTAIN],"X-ME-Bayesian: 0.000000") AND _
CriteriaMet([ME_SPF],"Pass") Then
FilterResult=1
End If

Post Reply