You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Hans-Georg Gloeckler <ha...@neuro.informatik.uni-ulm.de> on 2005/02/17 09:47:49 UTC

error in BayesStore.pm

I use spamassassin version 2.64, SuSE 8.2 and qmail.

I get the following problem:
Argument_"\010862517M->U^TB"_isn't_numeric_in_numeric_gt_(>)_a
t_/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm_line_1260.

The relevant Code of 
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm is:
my $newmagic = $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN};
    if (!defined ($newmagic) || $atime > $newmagic) {
      $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN} = $atime;
    }

Can somebody help me, what is the error.
Thanks

-- 
Hans-Georg Glöckler
Universität Ulm
Fakultät für Informatik, Abteilung Neuroinformatik
D-89069 Ulm

Tel: 0731/502-4193 (08:30 - 12:00)



Re: error in BayesStore.pm

Posted by Hans-Georg Glöckler <ha...@neuro.informatik.uni-ulm.de>.


>>>> I use spamassassin version 2.64, SuSE 8.2 and qmail.
>>>>
>>>> I get the following problem:
>>>> Argument_"\010862517M->U^TB"_isn't_numeric_in_numeric_gt_(>)_a
>>>> t_/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm_line_1260. 
>>>>
>>>>
>>>> The relevant Code of
>>>> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm is:
>>>> my $newmagic = $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN};
>>>>    if (!defined ($newmagic) || $atime > $newmagic) {
>>>>      $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN} = $atime;
>>>>    }
>>>>
>>>> Can somebody help me, what is the error.
>>>> Thanks
>>>>   
>>>
>>>
>>> From http://www.rulesemporium.com/
>>>
>>> Always run spamassassin -D --lint before making your rule changes 
>>> live. Typos will kick your butt! :)
>>>
>>> (Just in case you missed the last item:) Always run spamassassin -D 
>>> --lint before making your rule changes live. Typos will kick your 
>>> butt! :)
>>>
>>>  
>>>
>> If I run spamassassin -D --lint, I get the following message:
>> debug: Score set 0 chosen.
>> debug: running in taint mode? yes
>> debug: Running in taint mode, removing unsafe env vars, and resetting 
>> PATH
>> debug: PATH included '/soft_linux_local/bin', keeping.
>> debug: PATH included '/sbin', keeping.
>> debug: PATH included '/usr/sbin', keeping.
>> debug: PATH included '/usr/local/sbin', keeping.
>> debug: PATH included '/root/bin', keeping.
>> debug: PATH included '/usr/local/bin', keeping.
>> debug: PATH included '/usr/bin', keeping.
>> debug: PATH included '/usr/X11R6/bin', keeping.
>> debug: PATH included '/bin', keeping.
>> debug: PATH included '/usr/games', keeping.
>> debug: PATH included '/opt/gnome2/bin', keeping.
>> debug: PATH included '/opt/gnome/bin', keeping.
>> debug: PATH included '/opt/kde3/bin', keeping.
>> debug: PATH included '/usr/lib/java/jre/bin', keeping.
>> debug: PATH included '/opt/gnome/bin', keeping.
>> debug: Final PATH set to: 
>> /soft_linux_local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin 
>>
>> debug: ignore: using a test message to lint rules
>> debug: using "/usr/share/spamassassin" for default rules dir
>> debug: using "/etc/mail/spamassassin" for site rules dir
>> debug: using "/root/.spamassassin" for user state dir
>> debug: using "/root/.spamassassin/user_prefs" for user prefs file
>> Failed to parse line in SpamAssassin configuration, skipping: 
>> report_header 1
>> Failed to parse line in SpamAssassin configuration, skipping: 
>> defang_mime 0
>> Failed to parse line in SpamAssassin configuration, skipping: 
>> allow_user_rules
>> debug: using "/root/.spamassassin" for user state dir
>> debug: bayes: no dbs present, cannot scan: 
>> /root/.spamassassin/bayes_toks
>> debug: Score set 1 chosen.
>> debug: Initialising learner
>> debug: using "/root/.spamassassin" for user state dir
>> debug: bayes: no dbs present, cannot scan: 
>> /root/.spamassassin/bayes_toks
>> debug: is Net::DNS::Resolver available? yes
>> debug: trying (3) slashdot.org...
>> debug: looking up MX for 'slashdot.org'
>> debug: MX for 'slashdot.org' exists? 1
>> debug: MX lookup of slashdot.org succeeded => Dns available (set 
>> dns_available to hardcode)
>> debug: is DNS available? 1
>> debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
>> debug: running header regexp tests; score so far=0
>> debug: running body-text per-line regexp tests; score so far=1.27
>> debug: Razor2 is not available
>> debug: running raw-body-text per-line regexp tests; score so far=1.27
>> debug: running uri tests; score so far=1.27
>> debug: uri tests: Done uriRE
>> debug: running full-text regexp tests; score so far=1.27
>> debug: Razor2 is not available
>> debug: Current PATH is: 
>> /soft_linux_local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin 
>>
>> debug: Pyzor is not available: pyzor not found
>> debug: DCCifd is not available: no r/w dccifd socket found.
>> debug: DCC is not available: no executable dccproc found.
>> debug: all '*To' addrs:
>> debug: RBL: success for 1 of 1 queries
>> debug: running meta tests; score so far=1.27
>> debug: is spam? score=1.27 required=6 tests=DATE_MISSING,NO_REAL_NAME
>>
>> I have the following /etc/mail/spamassassin/local.cf
>> # Add your own customisations to this file.  See 'man 
>> Mail::SpamAssassin::Conf'
>> # for details of what can be tweaked.
>> #
>> required_hits 6.0
>>
>> rewrite_subject 1
>> subject_tag ***SPAM***
>>
>> report_header 1
>>
>> use_terse_report 1
>>
>> defang_mime 0
>>
>> report_safe 0
>>
>> allow_user_rules
>>
>>
>> Thanks for every help.
>>
>> -- 
>> Hans-Georg Glöckler
>> Universität Ulm
>> Fakultät für Informatik, Abteilung Neuroinformatik
>> D-89069 Ulm
>>
>> Tel: 0731/502-4193 (08:30 - 12:00)
>>
>>
>
> Looks like th bayes DB is snarfed.
>
> restore from backup, or use a nice starter from www.fsl.com/suport
>
I have the following questions:
1) What means: bayes DB is snarfed.
2) What have I to restore, when I want use it from backup. Where is 
bayes DB installed (which directory + file).
3) Can I use for SuSE 8.2 your Bayes Startet DB (Linux SA 2.64)



-- 
Hans-Georg Glöckler
Universität Ulm
Fakultät für Informatik, Abteilung Neuroinformatik
D-89069 Ulm

Tel: 0731/502-4193 (08:30 - 12:00)



Re: error in BayesStore.pm

Posted by Martin Hepworth <ma...@solid-state-logic.com>.

Hans-Georg Gloeckler wrote:
> 
> 
>>Am Donnerstag, 17. Februar 2005 09:47 schrieb Hans-Georg Gloeckler:
>>  
>>
>>>I use spamassassin version 2.64, SuSE 8.2 and qmail.
>>>
>>>I get the following problem:
>>>Argument_"\010862517M->U^TB"_isn't_numeric_in_numeric_gt_(>)_a
>>>t_/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm_line_1260.
>>>
>>>The relevant Code of
>>>/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm is:
>>>my $newmagic = $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN};
>>>    if (!defined ($newmagic) || $atime > $newmagic) {
>>>      $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN} = $atime;
>>>    }
>>>
>>>Can somebody help me, what is the error.
>>>Thanks
>>>    
>>>
>>
>>>From http://www.rulesemporium.com/
>>
>>Always run spamassassin -D --lint before making your rule changes live. Typos 
>>will kick your butt! :)
>>
>>(Just in case you missed the last item:) Always run spamassassin -D --lint 
>>before making your rule changes live. Typos will kick your butt! :)
>>
>>  
>>
> If I run spamassassin -D --lint, I get the following message:
> debug: Score set 0 chosen.
> debug: running in taint mode? yes
> debug: Running in taint mode, removing unsafe env vars, and resetting PATH
> debug: PATH included '/soft_linux_local/bin', keeping.
> debug: PATH included '/sbin', keeping.
> debug: PATH included '/usr/sbin', keeping.
> debug: PATH included '/usr/local/sbin', keeping.
> debug: PATH included '/root/bin', keeping.
> debug: PATH included '/usr/local/bin', keeping.
> debug: PATH included '/usr/bin', keeping.
> debug: PATH included '/usr/X11R6/bin', keeping.
> debug: PATH included '/bin', keeping.
> debug: PATH included '/usr/games', keeping.
> debug: PATH included '/opt/gnome2/bin', keeping.
> debug: PATH included '/opt/gnome/bin', keeping.
> debug: PATH included '/opt/kde3/bin', keeping.
> debug: PATH included '/usr/lib/java/jre/bin', keeping.
> debug: PATH included '/opt/gnome/bin', keeping.
> debug: Final PATH set to: 
> /soft_linux_local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin
> debug: ignore: using a test message to lint rules
> debug: using "/usr/share/spamassassin" for default rules dir
> debug: using "/etc/mail/spamassassin" for site rules dir
> debug: using "/root/.spamassassin" for user state dir
> debug: using "/root/.spamassassin/user_prefs" for user prefs file
> Failed to parse line in SpamAssassin configuration, skipping: 
> report_header 1
> Failed to parse line in SpamAssassin configuration, skipping: defang_mime 0
> Failed to parse line in SpamAssassin configuration, skipping: 
> allow_user_rules
> debug: using "/root/.spamassassin" for user state dir
> debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
> debug: Score set 1 chosen.
> debug: Initialising learner
> debug: using "/root/.spamassassin" for user state dir
> debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
> debug: is Net::DNS::Resolver available? yes
> debug: trying (3) slashdot.org...
> debug: looking up MX for 'slashdot.org'
> debug: MX for 'slashdot.org' exists? 1
> debug: MX lookup of slashdot.org succeeded => Dns available (set 
> dns_available to hardcode)
> debug: is DNS available? 1
> debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
> debug: running header regexp tests; score so far=0
> debug: running body-text per-line regexp tests; score so far=1.27
> debug: Razor2 is not available
> debug: running raw-body-text per-line regexp tests; score so far=1.27
> debug: running uri tests; score so far=1.27
> debug: uri tests: Done uriRE
> debug: running full-text regexp tests; score so far=1.27
> debug: Razor2 is not available
> debug: Current PATH is: 
> /soft_linux_local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin
> debug: Pyzor is not available: pyzor not found
> debug: DCCifd is not available: no r/w dccifd socket found.
> debug: DCC is not available: no executable dccproc found.
> debug: all '*To' addrs:
> debug: RBL: success for 1 of 1 queries
> debug: running meta tests; score so far=1.27
> debug: is spam? score=1.27 required=6 tests=DATE_MISSING,NO_REAL_NAME
> 
> I have the following /etc/mail/spamassassin/local.cf
> # Add your own customisations to this file.  See 'man 
> Mail::SpamAssassin::Conf'
> # for details of what can be tweaked.
> #
> required_hits 6.0
> 
> rewrite_subject 1
> subject_tag ***SPAM***
> 
> report_header 1
> 
> use_terse_report 1
> 
> defang_mime 0
> 
> report_safe 0
> 
> allow_user_rules
> 
> 
> Thanks for every help.
> 
> -- 
> Hans-Georg Glöckler
> Universität Ulm
> Fakultät für Informatik, Abteilung Neuroinformatik
> D-89069 Ulm
> 
> Tel: 0731/502-4193 (08:30 - 12:00)
> 
> 

Looks like th bayes DB is snarfed.

restore from backup, or use a nice starter from www.fsl.com/suport


--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300


**********************************************************************

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.

**********************************************************************


Re: error in BayesStore.pm

Posted by Hans-Georg Gloeckler <ha...@neuro.informatik.uni-ulm.de>.

>Am Donnerstag, 17. Februar 2005 09:47 schrieb Hans-Georg Gloeckler:
>  
>
>>I use spamassassin version 2.64, SuSE 8.2 and qmail.
>>
>>I get the following problem:
>>Argument_"\010862517M->U^TB"_isn't_numeric_in_numeric_gt_(>)_a
>>t_/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm_line_1260.
>>
>>The relevant Code of
>>/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm is:
>>my $newmagic = $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN};
>>    if (!defined ($newmagic) || $atime > $newmagic) {
>>      $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN} = $atime;
>>    }
>>
>>Can somebody help me, what is the error.
>>Thanks
>>    
>>
>
>>From http://www.rulesemporium.com/
>
>Always run spamassassin -D --lint before making your rule changes live. Typos 
>will kick your butt! :)
>
>(Just in case you missed the last item:) Always run spamassassin -D --lint 
>before making your rule changes live. Typos will kick your butt! :)
>
>  
>
If I run spamassassin -D --lint, I get the following message:
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/soft_linux_local/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/root/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/opt/gnome2/bin', keeping.
debug: PATH included '/opt/gnome/bin', keeping.
debug: PATH included '/opt/kde3/bin', keeping.
debug: PATH included '/usr/lib/java/jre/bin', keeping.
debug: PATH included '/opt/gnome/bin', keeping.
debug: Final PATH set to: 
/soft_linux_local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin
debug: ignore: using a test message to lint rules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/root/.spamassassin" for user state dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
Failed to parse line in SpamAssassin configuration, skipping: 
report_header 1
Failed to parse line in SpamAssassin configuration, skipping: defang_mime 0
Failed to parse line in SpamAssassin configuration, skipping: 
allow_user_rules
debug: using "/root/.spamassassin" for user state dir
debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
debug: Score set 1 chosen.
debug: Initialising learner
debug: using "/root/.spamassassin" for user state dir
debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
debug: is Net::DNS::Resolver available? yes
debug: trying (3) slashdot.org...
debug: looking up MX for 'slashdot.org'
debug: MX for 'slashdot.org' exists? 1
debug: MX lookup of slashdot.org succeeded => Dns available (set 
dns_available to hardcode)
debug: is DNS available? 1
debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=1.27
debug: Razor2 is not available
debug: running raw-body-text per-line regexp tests; score so far=1.27
debug: running uri tests; score so far=1.27
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=1.27
debug: Razor2 is not available
debug: Current PATH is: 
/soft_linux_local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin
debug: Pyzor is not available: pyzor not found
debug: DCCifd is not available: no r/w dccifd socket found.
debug: DCC is not available: no executable dccproc found.
debug: all '*To' addrs:
debug: RBL: success for 1 of 1 queries
debug: running meta tests; score so far=1.27
debug: is spam? score=1.27 required=6 tests=DATE_MISSING,NO_REAL_NAME

I have the following /etc/mail/spamassassin/local.cf
# Add your own customisations to this file.  See 'man 
Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
#
required_hits 6.0

rewrite_subject 1
subject_tag ***SPAM***

report_header 1

use_terse_report 1

defang_mime 0

report_safe 0

allow_user_rules


Thanks for every help.

-- 
Hans-Georg Gl�ckler
Universit�t Ulm
Fakult�t f�r Informatik, Abteilung Neuroinformatik
D-89069 Ulm

Tel: 0731/502-4193 (08:30 - 12:00)



Re: error in BayesStore.pm

Posted by Thomas Arend <ml...@arend-whv.info>.
Am Donnerstag, 17. Februar 2005 09:47 schrieb Hans-Georg Gloeckler:
> I use spamassassin version 2.64, SuSE 8.2 and qmail.
>
> I get the following problem:
> Argument_"\010862517M->U^TB"_isn't_numeric_in_numeric_gt_(>)_a
> t_/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm_line_1260.
>
> The relevant Code of
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm is:
> my $newmagic = $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN};
>     if (!defined ($newmagic) || $atime > $newmagic) {
>       $self->{db_toks}->{$NEWEST_TOKEN_AGE_MAGIC_TOKEN} = $atime;
>     }
>
> Can somebody help me, what is the error.
> Thanks

From http://www.rulesemporium.com/

Always run spamassassin -D --lint before making your rule changes live. Typos 
will kick your butt! :)

(Just in case you missed the last item:) Always run spamassassin -D --lint 
before making your rule changes live. Typos will kick your butt! :)

-- 
icq:133073900
http://www.t-arend.de