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 2018/02/05 09:07:33 UTC
repeating tflags difrective
Hello,
then I repeatedly use the "tflags" directive in official rules and locally:
Does second appearance of "tflags" override the old value or just adds new
flags?
in other words:
Do I have to repeat all flags in tflags directive, or is it enough to add
new flag?
there are rules with high negative score that I don't want to trigger
autolearn.
--
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.
A day without sunshine is like, night.
Re: repeating tflags difrective
Posted by "Kevin A. McGrail" <ke...@mcgrail.com>.
On 2/5/2018 11:48 AM, Benny Pedersen wrote:
> Kevin A. McGrail skrev den 2018-02-05 10:46:
>
>> tflags TEST_RULE nice
>>
>> Then in a later file you decide to add:
>>
>> tflags TEST_RULE net
>
> tflags TEST_RULE config=inherit net
>
> could be usefull :=)
>
> tflags TEST_RULE config=override net
>
> that way we have a choice to use defaults still
Elegant idea but such an edge case the work isn't justified in my opinion.
Regards,
KAM
Re: repeating tflags difrective
Posted by Benny Pedersen <me...@junc.eu>.
Kevin A. McGrail skrev den 2018-02-05 10:46:
> tflags TEST_RULE nice
>
> Then in a later file you decide to add:
>
> tflags TEST_RULE net
tflags TEST_RULE config=inherit net
could be usefull :=)
tflags TEST_RULE config=override net
that way we have a choice to use defaults still
Re: repeating tflags difrective
Posted by "Kevin A. McGrail" <ke...@mcgrail.com>.
On 2/5/2018 4:07 AM, Matus UHLAR - fantomas wrote:
> then I repeatedly use the "tflags" directive in official rules and
> locally:
So I think you are saying you have a rule in one file, for example, a
default cf file with this line:
tflags TEST_RULE nice
Then in a later file you decide to add:
tflags TEST_RULE net
The outcome I expect is that whichever config file is parsed later
overrides all the flags because the value for that setting is just
overwritten just like score. Looking at the code their is nothing
special that would do otherwise
Regards,
KAM