On Sun, 30 Nov 2014, jdow wrote:

Perhaps the rules that need the version check could be put into a separate file that is only used with SA version 3.4.x and above. It might be possible to get the appropriate sa_update patch for older versions through Red Hat, if that is needed. It might not be if 3.3.x does not load rule files marked for 3.4.x. I note there are separate storage areas for rules for various versions. If it's really used that's perhaps the best fix.

That is a potential fix.

Rewriting the rule to use 5.8.8-compatible syntax is another possibility. This is a rule that somebody on the list asked for masscheck results on and it performed well enough to get promoted. I haven't taken a close look at the RE itself to see whether the non-5.8.8-compatible syntax is critical or it can indeed be modified to be 5.8.8-compatible.

(And if I'm thinking as well as I think in the above maybe I should get back to paying work.)

Or back to bed with some tea and cold drugs and a good book.

{^_^}

On 2014-11-30 12:49, Dave Pooser wrote:
 On 11/30/14, 2:04 PM, "Reindl Harald" <h.rei...@thelounge.net> wrote:

>  it's *not* about a "crufty version of perl"
> > it's about a perl version check not existing in SpamAssassin 3.4.0
>  it's visible on recent perl versions
>  without the version checks issing the warnings they had no problem

 OK, I could have been clearer there. Let me spell out my logic:

 1) Red Hat is not going to release a new version of SpamAssassin for their
 existing distros. That's not how they roll.
 2) Any rule that uses a regex that requires a version of Perl later than
 the 2006-era Perl 5.8.8 will cause a fatal sa-update error unless it's
 wrapped in a version check
 3) Using version_check creates a non-fatal warning on versions of SA =<
 3.4.0

 So, we have three options
 1) Force Red Hat users to endure a warning unless they update their
 spamassassin outside of normal distro channels to gain version_check
 capabilities
 2) Take the version_check out and break sa-update on computers running
 older versions of perl
 3) Write all spamassassin rules to use the lowest-common-denominator perl,
 which would be the "crufty version of perl" I referred to above.

 Do you see a fourth option?




--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  The fetters imposed on liberty at home have ever been forged out
  of the weapons provided for defense against real, pretended, or
  imaginary dangers from abroad.               -- James Madison, 1799
-----------------------------------------------------------------------
 15 days until Bill of Rights day

Reply via email to