I am running SA 3.2.5 on NetBSD.  I have a cron job to do

  /usr/pkg/bin/sa-update --gpgkey 6C6191E3 --channelfile 
/usr/pkg/etc/spamassassin/channels.txt

with channels.txt having

  updates.spamassassin.org
  sought.rules.yerp.org

The updates work, as evidenced by new bits in
/var/spamassassin/3.002005, but occasionally (twice a week?) I get the
following output from cron.  It seems to happen on multiple machines at
the same time, perhaps when there are new rules.

  rules: score undef for rule 'MISSING_SUBJECT' in '' 'MISSING_SUBJECT' at 
/usr/pkg/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 
2140.
  rules: score undef for rule 'EMPTY_MESSAGE' in '' 'EMPTY_MESSAGE' at 
/usr/pkg/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 
2140.
  rules: score undef for rule 'NO_RECEIVED' in '' 'NO_RECEIVED' at 
/usr/pkg/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 
2140.

I searched for this error, and the discussion seems to be about removed
rules, but the rule and a score for MISSING_SUBJECT is present both in
my base cf files and in the updates:

  /var/spamassassin/3.002005/updates_spamassassin_org/20_head_tests.cf:meta 
MISSING_SUBJECT               !__HAS_SUBJECT
  /var/spamassassin/3.002005/updates_spamassassin_org/20_head_tests.cf:describe 
MISSING_SUBJECT   Missing Subject: header
  /var/spamassassin/3.002005/updates_spamassassin_org/30_text_de.cf:lang de 
describe MISSING_SUBJECT Betreff ("Subject") fehlt
  /var/spamassassin/3.002005/updates_spamassassin_org/50_scores.cf:score 
MISSING_SUBJECT 2.307 1.285 2.476 1.762

Running sa-update by hand later results in no output, but this could be
because validation of rulesets is done only when new ones are
downloaded.

Could this be a race condition during the update?

Attachment: pgpIZ5xgUTPsQ.pgp
Description: PGP signature

Reply via email to