OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: ? Using header checks on (Postini) X-pstn-levels

From: mouss (mlist.onlyfree.fr)
Date: Thu Apr 12 2007 - 03:52:39 CDT


Christopher Mahmood wrote:
> * Wietse Venema (wietseporcupine.org) [070411 16:45]:
>
>> jdebert:
>>
>>> X-pstn-levels: (S: 0.00000/96.74935 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
>>>
>>> I want to evaluate the first number before the slash which is variable, ranging
>>> from 0.00000 to 99.99999 and somehow arbitrarily set a maximum number below which
>>> the message will be discarded.
>>>
>>> Can this be done with pcre? I am having trouble working out how to define an
>>> arbitrary numeric range.
>>>
>> To discard 0.* .. 29.* and less:
>>
>> /^X-pstn-levels:\s+\(S:\s+[1-2]?[0-9]\./ discard
>>
>
> Almost, there's no space after 'S:' when >= 10:
> /^X-pstn-levels:\s+\(S:\s*[1-2]?[0-9]\./ discard
> For what it's worth, 1.0 is a fairly aggressive threshold.
>

and if the scores come in a different order:
      /^X-pstn-levels:.*\WS:\s*[1-2]?[0-9]\./ discard