You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by RW <rw...@googlemail.com> on 2010/03/18 01:32:18 UTC

Bayes and Plugin Tokens

The ASN and RelayCountry plugins are supposed to add extra tokens to
Bayes. However, I don't see any evidence that this is happening
(in 3.3.0). In a test message I see:

  bayes: header tokens for X-Relay-Countries = " GB GB ** ** GB GB"

but don't see any corresponding tokens containing GB

I also see the asn debug: 

   asn: asn.routeviews.org.: lookup result packet:
   '228.99.151.89.asn.routeviews.org. 6580 IN TXT "24931" "89.151.64.0"
   "18"'
and in the headers
   X-Spam-ASN: AS24931 89.151.64.0/18

but 24931 appears nowhere in the bayes tokens.

Re: Bayes and Plugin Tokens

Posted by RW <rw...@googlemail.com>.
On Thu, 18 Mar 2010 22:32:45 -0400
Matt Kettler <mk...@verizon.net> wrote:

> On 3/17/2010 8:32 PM, RW wrote:
> > The ASN and RelayCountry plugins are supposed to add extra tokens to
> > Bayes. However, I don't see any evidence that this is happening
> > (in 3.3.0). In a test message I see:
> >
> >   bayes: header tokens for X-Relay-Countries = " GB GB ** ** GB GB"
> >
> > but don't see any corresponding tokens containing GB
> >
> > I also see the asn debug: 
> >
> >    asn: asn.routeviews.org.: lookup result packet:
> >    '228.99.151.89.asn.routeviews.org. 6580 IN TXT "24931"
> > "89.151.64.0" "18"'
> > and in the headers
> >    X-Spam-ASN: AS24931 89.151.64.0/18
> >
> > but 24931 appears nowhere in the bayes tokens.
> >
> >   
> Interesting. I assume you're checking in "spamassassin -D bayes <
> message.txt", not sa-learn --dump, right?

yes

> You *should* see a debug like this one:
> dbg: bayes: header tokens for X-Relay-Countries = " TR"

Right, I'm seeing a "header tokens for" line (see quote text), what I'm
not seeing are any actual tokens. I was expecting to see something like

 dbg: bayes: token 'HX-Relay-Countries:GB' => 0.01056...

but I searched the debug for both "Countries" and "GB" and found no
such token.

I don't see anything at all for ASN.

Re: Bayes and Plugin Tokens

Posted by Matt Kettler <mk...@verizon.net>.
On 3/17/2010 8:32 PM, RW wrote:
> The ASN and RelayCountry plugins are supposed to add extra tokens to
> Bayes. However, I don't see any evidence that this is happening
> (in 3.3.0). In a test message I see:
>
>   bayes: header tokens for X-Relay-Countries = " GB GB ** ** GB GB"
>
> but don't see any corresponding tokens containing GB
>
> I also see the asn debug: 
>
>    asn: asn.routeviews.org.: lookup result packet:
>    '228.99.151.89.asn.routeviews.org. 6580 IN TXT "24931" "89.151.64.0"
>    "18"'
> and in the headers
>    X-Spam-ASN: AS24931 89.151.64.0/18
>
> but 24931 appears nowhere in the bayes tokens.
>
>   
Interesting. I assume you're checking in "spamassassin -D bayes <
message.txt", not sa-learn --dump, right?

You *should* see a debug like this one:
dbg: bayes: header tokens for X-Relay-Countries = " TR"

I've not tested this on 3.3.0, but I've got no reason to believe that
would have broken.