Bug 2433 - parse-rules-for-masses not reporting multiple scores
Summary: parse-rules-for-masses not reporting multiple scores
Status: RESOLVED WORKSFORME
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Masses (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P5 minor
Target Milestone: 2.70
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-11 12:22 UTC by Brendan Byrd/SineSwiper
Modified: 2003-09-11 04:25 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 Brendan Byrd/SineSwiper 2003-09-11 12:22:00 UTC
There seems to be code to detect multiple scores, but it doesn't seem to catch 
them.  It seems to affect the network scores a bit:
           'RCVD_IN_NJABL_SPAM' => {
                                     'tflags' => 'net',
                                     'lang' => '',
                                     'score' => '0',
                                     'issubrule' => '0',
                                     'type' => 'header',
                                     'describe' => 'NJABL: Senderechner ist 
bestätigter Spam-Versender'

           'RAZOR2_CHECK' => {
                               'tflags' => 'net',
                               'lang' => '',
                               'score' => '0',
                               'issubrule' => '0',
                               'type' => 'full',
                               'describe' => 'Uvedený v zozname Razor2, pozri 
http://razor.sf.net/'

(Not sure why it's in German, either.  Is it hitting those tests after the 
other ones?)
Comment 1 Brendan Byrd/SineSwiper 2003-09-11 12:25:17 UTC
usage: ./parse-rules-for-masses [-d rulesdir] [-o outputfile] [-s scoreset]

rulesdir defaults to ../rules
outputfile defaults to ./tmp/rules.pl
scoreset default to 0
^^^^^^^^

Blah...should have looked at the code closer.
Comment 2 Theo Van Dinter 2003-09-13 08:25:05 UTC
Subject: Re: [SAdev]  New: parse-rules-for-masses not reporting multiple scores

On Thu, Sep 11, 2003 at 12:29:15PM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> There seems to be code to detect multiple scores, but it doesn't seem to catch 
> them.  It seems to affect the network scores a bit:

This isn't a bug, parse-rules takes a scoreset parameter and puts the
right score in the output file.

>                                      'describe' => 'NJABL: Senderechner ist 
> bestätigter Spam-Versender'
> 
> (Not sure why it's in German, either.  Is it hitting those tests after the 
> other ones?)

that's because it reads all of the cf files, ignoring the language
configs, and german is apparently the last description listed.