You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Matus UHLAR - fantomas <uh...@fantomas.sk> on 2009/05/15 18:26:03 UTC
Re: Manually changing rule weightings?
On 15.05.09 17:28, Jeremy Morton wrote:
> How do I manually override the default scores that SA assigns to various
> rules?
have you read the docs?
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin, 1759
Re: Manually changing rule weightings?
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2009-05-15 at 11:25 -0700, John Hardin wrote:
> On Fri, 15 May 2009, Karsten Bräckelmann wrote:
> > > Site-specific configuration data is used to override any values which
> > > had already been set.
> >
> > John, so that merely *implies* but doesn't specifically state that
> > configuration values can be overwritten? Maybe my understanding of
> > English isn't as good as I thought after all... ;)
>
> No, I'd initially looked at Mail::SpamAssassin::Conf, not the man page,
> and my "implies" comment was directed at that - which means my saying "in
> the docs" was wrong. Sorry for the confusion, I should have been specific.
No confusion -- just some sarcastic snide remarks. :)
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: Manually changing rule weightings?
Posted by John Hardin <jh...@impsec.org>.
On Fri, 15 May 2009, Karsten Br�ckelmann wrote:
> On Fri, 2009-05-15 at 10:25 -0700, John Hardin wrote:
>
>> As I said, doing that is only _implied_ in the docs.
>
>> Site-specific configuration data is used to override any values which
>> had already been set.
>
> John, so that merely *implies* but doesn't specifically state that
> configuration values can be overwritten? Maybe my understanding of
> English isn't as good as I thought after all... ;)
No, I'd initially looked at Mail::SpamAssassin::Conf, not the man page,
and my "implies" comment was directed at that - which means my saying "in
the docs" was wrong. Sorry for the confusion, I should have been specific.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The problem is when people look at Yahoo, slashdot, or groklaw and
jump from obvious and correct observations like "Oh my God, this
place is teeming with utter morons" to incorrect conclusions like
"there's nothing of value here". -- Al Petrofsky, in Y! SCOX
-----------------------------------------------------------------------
6 days until the 5th anniversary of SpaceshipOne winning the X-prize
Re: Manually changing rule weightings?
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2009-05-15 at 10:25 -0700, John Hardin wrote:
> On Fri, 15 May 2009, Karsten Bräckelmann wrote:
> > Ah, the hard way. ;) That's useful, if you want to change the score
> > *relative* to the stock score, and thus change when the stock score
> > changes for whatever reason.
> >
> > It is, however, not too easy to grasp and determine the resulting score.
> > If you just want to use a custom score, you can plain do it by over-
> > writing the existing score:
> >
> > score FOO 1.0
>
> As I said, doing that is only _implied_ in the docs.
Well, I felt like disclosing that "not commonly known trick" and easier
to understand way anyway. ;-)
> > Also see man spamassassin, where the overwriting bit is mentioned.
>
> Yup:
>
> Site-specific configuration data is used to override any values which
> had already been set.
John, so that merely *implies* but doesn't specifically state that
configuration values can be overwritten? Maybe my understanding of
English isn't as good as I thought after all... ;)
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: Manually changing rule weightings?
Posted by John Hardin <jh...@impsec.org>.
On Fri, 15 May 2009, Karsten Br�ckelmann wrote:
> On Fri, 2009-05-15 at 09:46 -0700, John Hardin wrote:
>> On Fri, 15 May 2009, Jeremy Morton wrote:
>>
>>> Yes. All I could find was stuff about creating your own rules, not actually
>>> changing the weightings of existing rules.
>
>> Well, I guess the docs _don't_ explicitly state that later "score"
>> commands will override previous (or stock) "score" commands, but it is
>> implied:
>>
>> If any of the score values are surrounded by parenthesis '()', then all
>> of the scores in the line are considered to be relative to the already
>> set score.
>
> Ah, the hard way. ;) That's useful, if you want to change the score
> *relative* to the stock score, and thus change when the stock score
> changes for whatever reason.
>
> It is, however, not too easy to grasp and determine the resulting score.
> If you just want to use a custom score, you can plain do it by over-
> writing the existing score:
>
> score FOO 1.0
As I said, doing that is only _implied_ in the docs.
> Also see man spamassassin, where the overwriting bit is mentioned.
Yup:
Site-specific configuration data is used to override any values which
had already been set.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
One difference between a liberal and a pickpocket is that if you
demand your money back from a pickpocket he will not question your
motives. -- William Rusher
-----------------------------------------------------------------------
6 days until the 5th anniversary of SpaceshipOne winning the X-prize
Re: Manually changing rule weightings?
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2009-05-15 at 09:46 -0700, John Hardin wrote:
> On Fri, 15 May 2009, Jeremy Morton wrote:
>
> > Yes. All I could find was stuff about creating your own rules, not actually
> > changing the weightings of existing rules.
> Well, I guess the docs _don't_ explicitly state that later "score"
> commands will override previous (or stock) "score" commands, but it is
> implied:
>
> If any of the score values are surrounded by parenthesis '()', then all
> of the scores in the line are considered to be relative to the already
> set score.
Ah, the hard way. ;) That's useful, if you want to change the score
*relative* to the stock score, and thus change when the stock score
changes for whatever reason.
It is, however, not too easy to grasp and determine the resulting score.
If you just want to use a custom score, you can plain do it by over-
writing the existing score:
score FOO 1.0
Keep those in local.cf or any dedicated cf file in your site config dir.
Do not edit the default or update files.
Also see man spamassassin, where the overwriting bit is mentioned.
guenther
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: Manually changing rule weightings?
Posted by John Hardin <jh...@impsec.org>.
On Fri, 15 May 2009, Jeremy Morton wrote:
> Yes. All I could find was stuff about creating your own rules, not actually
> changing the weightings of existing rules.
Please don't top-post.
{reads}
Well, I guess the docs _don't_ explicitly state that later "score"
commands will override previous (or stock) "score" commands, but it is
implied:
If any of the score values are surrounded by parenthesis '()', then all
of the scores in the line are considered to be relative to the already
set score.
> Matus UHLAR - fantomas wrote:
>> On 15.05.09 17:28, Jeremy Morton wrote:
>> > How do I manually override the default scores that SA assigns to various
>> > rules?
>>
>> have you read the docs?
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
You cannot bring about prosperity by discouraging thrift. You
cannot help small men by tearing down big men. You cannot
strengthen the weak by weakening the strong. You cannot lift the
wage-earner by pulling down the wage-payer. You cannot help the
poor man by destroying the rich. You cannot keep out of trouble by
spending more than your income. You cannot further the brotherhood
of man by inciting class hatred. You cannot establish security on
borrowed money. You cannot build character and courage by taking
away men's initiative and independence. You cannot help men
permanently by doing for them what they could and should do for
themselves. -- William J. H. Boetcker
-----------------------------------------------------------------------
6 days until the 5th anniversary of SpaceshipOne winning the X-prize
Re: Manually changing rule weightings?
Posted by Jeremy Morton <ad...@game-point.net>.
Yes. All I could find was stuff about creating your own rules, not
actually changing the weightings of existing rules.
Best regards,
Jeremy Morton (Jez)
Matus UHLAR - fantomas wrote:
> On 15.05.09 17:28, Jeremy Morton wrote:
>> How do I manually override the default scores that SA assigns to various
>> rules?
>
> have you read the docs?