On 12/01/2014 08:50 PM, John Hardin wrote:
On Mon, 1 Dec 2014, Bob Proulx wrote:

 $ spamassassin --version
 SpamAssassin version 3.3.2
   running on Perl version 5.14.2

 if version > 3.004001 && perl_version >= 5.010000
   meta    PDS_FROM_2_EMAILS       __PDS_FROM_2_EMAILS && !__VIA_ML &&
!__VIA_RESIGNER
 endif

 if version > 3.004001 && perl_version >= 5.010000
   header  __PDS_FROM_2_EMAILS     From =~
/^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/i
 endif

This produced no lint warnings with the above combination.  I am
missing why it is causing problems in Burnie's configuration.  Is
3.3.1 really that different here from 3.3.2 which is silent?

I did a quick troll through the SVN history but nothing leapt out at me.
However, I'm not that familiar with the parser.

I can confirm 3.2.5 *does* generate a lint warning with that syntax (an
old VM I have).

Could somebody else running 3.3.1 confirm Burnie's results?


A "preliminary" test here - on Perl 5.8.8 - gives the same warning in
3.3.1, 3.3.2 and 3.4.0. So it might have to do with the Perl version.


# (cd Mail-SpamAssassin-3.3.1 && ./spamassassin --lint)
Dec 1 21:15:12.602 [21690] warn: Argument "perl_version" isn't numeric in numeric ge (>=) at (eval 313) line 2.

# (cd Mail-SpamAssassin-3.3.2 && ./spamassassin --lint)
Dec 1 21:15:20.617 [21696] warn: Argument "perl_version" isn't numeric in numeric ge (>=) at (eval 313) line 2.

# (cd Mail-SpamAssassin-3.4.0 && ./spamassassin --lint)
Dec 1 21:15:30.946 [21706] warn: Argument "perl_version" isn't numeric in numeric ge (>=) at (eval 314) line 2.



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

Reply via email to