Autor: Alan J. Flavell Datum: To: Exim-Users Betreff: RE: [Exim] using bogofilter reject/drop/whatever mails
On Thu, 4 Dec 2003, John Jetmore wrote:
> > The basic format is
> >
> > X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.7
>
> change
> condition = ${if match{$h_X-Bogosity:}{Possible spam detected}{yes}{no}}
> to
> condition = ${if match{$h_X-Bogosity:}{spamicity=(1\.|0\.9)}{yes}{no}}
You might want to try doing arithmetic with such values. In the
expansion of an expression, something like this (untested, but
similar to something I did recently):
would return the numeric value, which could then be tested, or even
used as the basis for some other arithmetical calculation. As I'm
sure you'll see, the idea is to pick out the nn.nnn pattern with
capturing parenthesis in the regex, and the result then used from $1