I was just now link checking a modified local rule (SA 3.4.2 on Fedora
28, fully patched as on last Friday night (28Sep2018) when I got the
error:

Sep 30 18:06:54.602 [18545] warn: config: Strange rule token: 1.5
Sep 30 18:06:55.316 [18545] warn: lint: 1 issues detected, please rerun
with debug enabled for more information

Rerunning with -D --lint gets this:
Sep 30 18:09:33.134 [18587] dbg: plugin: loading
Mail::SpamAssassin::Plugin::MimeMagic from
/etc/mail/spamassassin/MimeMagic.pm
Sep 30 18:09:33.140 [18587] dbg: config: header eval rule name is
IMAGE_MISMATCH function is
mimemagic_mismatch_contenttype('jpe?g','gif','png','bmp','svg')
Sep 30 18:09:33.141 [18587] dbg: config: header eval rule name is
MG_IMISMATCH function is mimemagic_mismatch_datatype('image/')
Sep 30 18:09:33.164 [18587] warn: config: Strange rule token: 1.5

which fairly obviously points to a fault in a pair of local rules:

describe IMAGE_MISMATCH Image doesn't match content type
header   IMAGE_MISMATCH eval:mimemagic_mismatch_contenttype('jpe?g',
'gif','png','bmp','svg')
score    IMAGE_MISMATCH 1.5

describe MG_IMISMATCH Another way of scanning all 
header   MG_IMISMATCH eval:mimemagic_mismatch_datatype('image/')
score    MG_IMISMATCH 0.01

But there's nothing obviously wrong, to me anyway, in the first rule
and in any case nothing in this file has been modified since 09Jan2017
according to its datestamp - which was when I installed Fedora on what
was then a new machine, so the file was last modified some time before
then.

Last Friday's upgrade made three Perl changes:

Upgraded: perl-File-Path-2.16-1.fc28.noarch
Installed: perl-BSD-Resource-1.291.100-5.fc28.x86_64
Upgraded: perl-Archive-Zip-1.64-1.fc28.noarch

Does this raise any warnings I should beware of?

SA 3.4.2 seems to be running OK apart from this.


Martin
 

Reply via email to