[pmg-devel] applied: [PATCH pmg-api 2/2] What: Spam: add uri hits to rule description
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Aug 8 13:12:47 CEST 2019
On August 8, 2019 10:49 am, Dominik Csapak wrote:
> 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
>
>
> _______________________________________________
> pmg-devel mailing list
> pmg-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
>
>
More information about the pmg-devel
mailing list