Updated ARC

This commit is contained in:
Spitfireap
2024-12-18 17:41:03 +01:00
committed by Antoine Nguyen
parent cd280f054b
commit fd50d62f97
2 changed files with 4 additions and 18 deletions

View File

@@ -1,25 +1,8 @@
use = ["x-spam-status", "my-x-spam-score" ,"x-virus","authentication-results" ];
use = ["x-spam-status","x-virus","authentication-results" ];
extended_spam_headers = false;
skip_local = false;
skip_authenticated = false;
# Write the score as a header
custom {
my-x-spam-score = <<EOD
return function(task, common_meta)
local sc = common_meta['metric_score'] or task:get_metric_score()
-- return no error
return nil,
-- header(s) to add
{['X-Spam-Score'] = string.format('%%.2f', sc[1])},
-- header(s) to remove
{['X-Spam-Score'] = 1},
-- metadata to store
{}
end
EOD;
}
routines {
x-virus {
header = "X-Virus";