On 12/02/2014 09:10 PM, jdow wrote:
Does this show the error?

    if can(Mail::SpamAssassin::Conf::perl_min_version_5010000)
      && version > 3.004001 && perl_version >= 5.018000
       body  INVALID_RE_SYNTAX_IN_PERL_BEFORE_5_18  /(?[ \p{Thai} &  \p{Digit} 
])/
    endif

It doesn't show the warning.

But the line starting with '&&' will generate a more severe warning
when the first line is 'true'. (SA lint exits with code 1)


Testing perl 5.16 / SA 3.4.0:

   if version >= 3.003001
     && version >= 3.004000 && perl_version >= 5.018000
      body  INVALID_RE_SYNTAX_IN_PERL_BEFORE_5_10  /\w++/
   endif

Dec 2 22:14:35.776 [31075] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": && version > 3.004000 && perl_version >= 5.018000 Dec 2 22:14:35.801 [31075] warn: lint: 1 issues detected, please rerun with debug enabled for more information


- And if you put it all in one line with perl < 5.10, SA lint will
complain about perl_version

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

Reply via email to