Author: Adam Funk Date: To: exim-users Subject: Re: [exim] Exim filters: converting strings to numbers?
On 2006-11-23, Magnus Holmgren <holmgren@???> wrote:
> ("This variable is special; it is saved with the message, and written to
> Exim's spool file. This means that it can be used during the whole life of>
> the message on your Exim system, in particular, in routers or transports
> during the later delivery phase.") Then your condition becomes:
>
> $spam_score_int is above 95
I liked that idea, but I checked with my hosting company and
SpamAssassin is run on a different machine so that variable isn't
available to my filter.
> Otherwise you might be able to create an integer with the substr
> operator/item:
OK, so a number in an Exim filter is necessarily an integer. (I
suspected this but wasn't sure.)
As it turns out, I've noticed that messages with a positive spam score
have another with a string of int(score) plus-signs: