Mailing List Archive

Can I use captured email text in a rile description?
My mail provider has a spam scanning tool that leaves copious headers in my
mail.
One of these headers has the final score value that it determines.
I'd like to write a rule that will capture this score value and display it
in the rule description if SA determine the mail is spam.

Something like:

header SCORE_RULE Final-Score =~ /spam:(\d+)/
describe SCORE_RULE The detected score is \1
score SCORE_RULE 0.1

Is there a way to do this?

Loren
Re: Can I use captured email text in a rile description? [ In reply to ]
Loren Wilton skrev den 2020-07-17 22:02:

> header SCORE_RULE Final-Score =~ /spam:(\d+)/
> describe SCORE_RULE The detected score is \1
> score SCORE_RULE 0.1
>
> Is there a way to do this?

with a plugin yes, else you have to make a rule for each score