http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5655

           Summary: Bayes not considering add_header'ed information
           Product: Spamassassin
           Version: 3.2.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Learner
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


It seems that Bayes is not considering headers added through add_header
directives in *.cf files:

--- cut ---
add_header all Spammy _SPAMMYTOKENS(5,compact)_
add_header all Hammy _HAMMYTOKENS(5,compact)_
 
ifplugin Mail::SpamAssassin::Plugin::ASN
asn_lookup asn.routeviews.org _ASN_ _ASNCIDR_
add_header all ASN _ASN_ _ASNCIDR_
endif

use_bayes 1
bayes_path /var/lib/nobody/.spamassassin/bayes
bayes_auto_learn 1
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
bayes_ignore_header X-Spam-DNSWL
bayes_ignore_header X-Whitelisted-Leisi
bayes_ignore_header X-Spam-Prev-Subject
bayes_ignore_header X-Virus-Scanned
bayes_ignore_header X-Sieve
--- cut ---
 
A typical mail from the [EMAIL PROTECTED] mailing list produces the following 
headers:

--- cut ---
X-Spam-ASN: AS3701 140.211.0.0/16
X-Spam-Hammy: 0.000-+--H*Ad:D*spamassassin.apache.org,
        0.000-+--Hlist-unsubscribe:sk:users-u,
        0.000-+--Hlist-help:sk:users-h,
        0.000-+--H*Ad:U*users, 0.000-+--HTo:U*users
X-Spam-Spammy: 0.999-1--belief, 0.913-+--H*r:unknown,
        0.900-+--H*x:Outlook,
        0.900-+--H*UA:Outlook, 0.890-+--H*UA:Microsoft
--- cut ---

Most of the mails to that list have "autolearn=ham", and thus I would expect
that some part of "AS3701 140.211.0.0/16" would end up in the X-Spam-Hammy 
items. 

The particular server where the headers are taken from is running SA 3.2.0,
using Perl 5.8.8; however a test installation using 3.2.3 seems to show the same
behaviour (but running on a smaller set of Bayes data).



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

Reply via email to