You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/03/20 17:37:55 UTC

[Bug 3199] New: Empty $atime in BayesStore.pm:1279 makes noise in syslog

http://bugzilla.spamassassin.org/show_bug.cgi?id=3199

           Summary: Empty $atime in BayesStore.pm:1279 makes noise in syslog
           Product: Spamassassin
           Version: 2.63
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: peter@runestig.com


I get a lot of this in syslog:
Mar 14 00:09:54 arthur spamd[23351]: Argument "" isn't numeric in numeric lt (<)
at /usr/local/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/BayesStore.pm line 1279.
Mar 14 00:10:14 arthur last message repeated 79 times
And when it happens, the Bayes check doesn't seem to happen. I changed line 1279
in BayesStore.pm from:
  if (!defined ($oldmagic) || $oldmagic eq "" || $atime < $oldmagic) {
to:
  if ($atime && (!defined ($oldmagic) || $oldmagic eq "" || $atime < $oldmagic)) {
and that killed the syslog lines, plus it made the Bayes checking working all
the time (and using it is a big improvement! :-)). That "fix" is just a hack of
course, but I've seem it for a long time now, so I'll report it.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.