spamhaus / spamassassin-dqs

Spamhaus code for the Spamassassin plugin. See https://docs.spamhaustech.com/40-real-world-usage/SpamAssassin/000-intro.html
Apache License 2.0
54 stars 15 forks source link

Version check error #33

Closed OutbackMatt closed 3 years ago

OutbackMatt commented 3 years ago

In my main SpamAssassin I have set the 'version_tag' setting, like

version_tag my.spamassassin.com

This breaks the version tests in SH.pm

To fix, after this line (it appears twice in that script, 47 and 115 I think) $sa_version =~ tr/.//d;

I add $sa_version = substr $sa_version, 0, 3;