Re: [exim] invalid integer

Top Page
Delete this message
Reply to this message
Author: Graeme Fowler
Date:  
To: exim-users
Subject: Re: [exim] invalid integer
On Tue, 2014-06-03 at 13:45 +0300, Konstantin wrote:
> Can someone explain why following condition does not work with
> floating-point values?
>
> exim -be '${if >={15.1}{14}{yes}{no}}'
> Failed: invalid integer "15.1"


Exim does not have support for floating point arithmetic:

http://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html#SECTexpcond

"The two strings must take the form of optionally signed decimal
integers"

See also the section for ${eval: and ${eval10: which explain in a little
more detail, and may give you some ideas on how to make your
configuration work.

The use of $spam_score_int (from messages passed to SpamAssassin) is the
most common example; it's the score from SA multiplied by 10 to permit
integer comparisons.

Graeme