[pmg-devel] [PATCH pmg-api 2/2] What: Spam: add uri hits to rule description
Dominik Csapak
d.csapak at proxmox.com
Thu Aug 8 10:49:14 CEST 2019
this is for the header info only, since we do not save the description
in the quarantine db
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PMG/RuleDB/Spam.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PMG/RuleDB/Spam.pm b/src/PMG/RuleDB/Spam.pm
index 97a80b3..cc9a347 100644
--- a/src/PMG/RuleDB/Spam.pm
+++ b/src/PMG/RuleDB/Spam.pm
@@ -431,6 +431,9 @@ sub analyze_spam {
my $score = $status->{conf}->{scores}->{$rule};
$loglist .= $loglist ? ",$rule($score)" : "$rule($score)";
my $desc = $status->{conf}->get_description_for_rule($rule);
+ if (my $hits = $status->{uridnsbl_hits}->{$rule}) {
+ $desc .= ' [' . join(',', keys %$hits) . ']';
+ }
push @$sa_scores, { score => $score, rule => $rule, desc => $desc };
}
--
2.20.1
More information about the pmg-devel
mailing list