Bug 4387 - Argument "BODY" isn't numeric in addition
Summary: Argument "BODY" isn't numeric in addition
Status: RESOLVED INVALID
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: 3.0.3
Hardware: PC Linux
: P5 major
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords: triage
Depends on:
Blocks:
 
Reported: 2005-06-03 08:14 UTC by tony den haan
Modified: 2005-06-03 22:07 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description tony den haan 2005-06-03 08:14:36 UTC
running sa-learn: 
 
Argument "BODY" isn't numeric in addition (+) 
at /usr/lib/perl5/site_perl/5.8.4/Mail/SpamAssassin/Conf.pm line 244. 
 
whatever the line: 
 
$self->{scoreset}->[$index]->{$rule} = $score + 0.0; 
 
is supposed to do, this looks *wrong*
Comment 1 Bob Menschel 2005-06-04 00:44:34 UTC
Sounds to me like you have a configuration error in your rules/config file(s).
Maybe something like

meta  RULE1  RULE1a + RULE2a + 
body  RULE2  /regexhere/

or something like 

score  RULE1  5  body  RULE2  /regexhere/ 

If you can reproduce this with a simple and valid configuration file, then it'll
be worth working on.  But without more information it sounds like this is a bug
in your config, not in SA. (3.1 will give better debugging information in this
situation.) 

If you can't find the problem, ask on the users' list rather than here, and you
should get more assistance.  

If you can find evidence this is a real bug, well and good. If not, I'll close
this as "invalid" in a week or two. 
Comment 2 tony den haan 2005-06-04 06:07:00 UTC
ack, "score PENIS_ENLARGE BODY 5.0" caused it.  
problem was that i copied this straight from a header :)