On 09/09/2006 09:51, I wrote:
> On 08/09/2006 18:48, Marc Sherman wrote:
[...]
>> The report is just a configurable string
> [...]
>> For example, my local.cf has:
>>
>>> ### Set a terse report template, suitable for inclusion in msg headers
>>> clear_report_template
>>> report "_SCORE_, autolearn=_AUTOLEARN_"
>>> report " _SUMMARY_"
>
> Right, fair enough, I could do that. But what I really want is to have a
> short version like
> X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_00
> when it's not spam (or always), and then I'll make the full
> X-Spam-Report only appear when the message is identified as spam. Is
> there a way of doing this via exiscan-acl?
Having now used the source, it would appear that the answer is no, so
following Marc's suggestion, I now have the following in my local.cf:
clear_report_template
report _YESNO_, score=_SCORE_ required=_REQD_ autolearn=_AUTOLEARN_
version=_VERSION_
report tests=_TESTSSCORES_
which is similar to what would appear in X-Spam-Status if we used
spamassassin/spamc as a filter, and didn't just ask it for the score and
report. Actually it's in a slightly different order (the tests are last
and on a second line) and additionally contains individual test scores
(which I find useful to help with tweaking rule weights).
I (eventually) found the documentation of what you can put in for
substitution in the report in `perldoc Mail::SpamAssassin::Conf` (also
often available via `man Mail::SpamAssassin::Conf`) under the heading
TEMPLATE TAGS.
Cheers,
John.