You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Steve Bondy <sb...@rafte.com> on 2004/10/01 21:03:23 UTC
Displaying rule scores in headers
I'd like to see the scores each rule is contributing in the headers in X-Spam-Status, and I'd like to do it site wide, so I've added a line to local.cf:
add_header all Status_YESNO hits=_HITS_ required=_REQD_ tests=_TESTSSCORES_ autolearn=_AUTOLEARN_
But all I get are the rule names, not the individual scores.
What am I doing wrong?
Oh - this is SA 2.64, with amavisd-new
Steve Bondy
Re: Displaying rule scores in headers
Posted by Ryan Moore <ry...@perigee.net>.
> Steve Bondy wrote:
>> I'd like to see the scores each rule is contributing in the headers
>> in X-Spam-Status, and I'd like to do it site wide, so I've added a
>> line to local.cf:
>>
>> add_header all Status_YESNO hits=_HITS_ required=_REQD_
>> tests=_TESTSSCORES_ autolearn=_AUTOLEARN_
>>
>> But all I get are the rule names, not the individual scores.
>>
>> What am I doing wrong?
>>
>> Oh - this is SA 2.64, with amavisd-new
>>
>> Steve Bondy
>>
>
Actually in addendum to my previous message, amavisd-new only shows the
x-spam-report header in messages it marks as spam afaik, my previous
message was assuming you want to see it in ALL messages (which I do:). I
don't think you need to do anything special to see the report header in
tagged messages.
Ryan Moore
----------
Perigee.net Corporation
704-849-8355 (sales)
704-849-8017 (tech)
www.perigee.net
Re: Displaying rule scores in headers
Posted by Ryan Moore <ry...@perigee.net>.
Steve Bondy wrote:
> I'd like to see the scores each rule is contributing in the headers
> in X-Spam-Status, and I'd like to do it site wide, so I've added a
> line to local.cf:
>
> add_header all Status_YESNO hits=_HITS_ required=_REQD_
> tests=_TESTSSCORES_ autolearn=_AUTOLEARN_
>
> But all I get are the rule names, not the individual scores.
>
> What am I doing wrong?
>
> Oh - this is SA 2.64, with amavisd-new
>
> Steve Bondy
>
You want the X-Spam-Report header, which amavisd-new doesn't show by
default. You have to edit the amavisd file itself to gain that behavior
as far as I know (which is what I've done). In amavisd-new 2.1.2, the
code in question is within the $do_tag2 if statement at around line 6843.
Ryan Moore
----------
Perigee.net Corporation
704-849-8355 (sales)
704-849-8017 (tech)
www.perigee.net
Re: Displaying rule scores in headers
Posted by Matt Kettler <mk...@evi-inc.com>.
At 03:03 PM 10/1/2004, Steve Bondy wrote:
>add_header all Status_YESNO hits=_HITS_ required=_REQD_
>tests=_TESTSSCORES_ autolearn=_AUTOLEARN_
>
>But all I get are the rule names, not the individual scores.
>
>What am I doing wrong?
Did you try doing a "clear_headers" or "remove_header all Status" first to
clear the default for this header?
(note: despite the name remove_header doesn't mean remove an existing
header from an email, it removes the previously declared setting SA has to
generate said header.)
Unlike most other SA settings, I don't think add_header clobbers.
Re: Displaying rule scores in headers
Posted by Andre Nicholson <an...@neo-anime.org>.
> I'd like to see the scores each rule is contributing in the headers in X-Spam-Status,
> and I'd like to do it site wide, so I've added a line to local.cf:
>
> add_header all Status_YESNO hits=_HITS_ required=_REQD_ tests=_TESTSSCORES_
> autolearn=_AUTOLEARN_
>
> But all I get are the rule names, not the individual scores.
clear_report_template
report _SUMMARY_
See the man page on Mail::SpamAssassin::Conf and look under the Tags section.
Hope this helps.
Andre