On 11/30/2014 11:29 PM, John Hardin wrote:

Would a corrected syntax version of this work?

if version > 3.004001 && perl_version >= 5.010000
  body NON_588_COMPATIBLE_RE_SYNTAX /\w++/
endif

Yes. That *does* work.

Thank you! I think you just solved it.


Define work...

-----------
if version > 3.004001 && perl_version >= 5.010000
  body NON_588_COMPATIBLE_RE_SYNTAX /\w++/
endif

# spamassassin --lint
Dec 1 15:03:50.365 [28224] warn: Argument "perl_version" isn't numeric in numeric ge (>=) at (eval 2520) line 2.
----------

-----------
if version > 3.004001
  if perl_version >= 5.010000
    body NON_588_COMPATIBLE_RE_SYNTAX /\w++/
  endif
endif

# spamassassin --lint
Dec 1 15:04:29.115 [28226] warn: Argument "perl_version" isn't numeric in numeric ge (>=) at (eval 2521) line 2.
-----------

(SA 3.3.1 / perl 5.8.8)


But I was thinking another solution to the problem;

Since there already are quite a few changes to 3.4(+) (quite a few
checking for version >= 3.004000 in the rulesets)

How difficult would it be to split 3.4.1(+) rulesets from pre-3.4.1
rulesets? Older SA/sa-update would then fetch rulesets without the
new checks, and new sa-update would benefit from the new checks...


just my $.02

--
Bernt  'Burnie'  Pettersen  ///  DoD#2345
<E-mail:bur...@dod.no>     ///  <URL:http://burnie.sh/>
       - Creative brains need creative workhours! -

Reply via email to