Hello.
The code seems to be wrong.
Thanks.
Mail-SpamAssassin-4.0.1
--- lib/Mail/SpamAssassin/Plugin/TxRep.pm.orig 2024-03-26
13:52:09.000000000 +0900
+++ lib/Mail/SpamAssassin/Plugin/TxRep.pm 2024-05-30
16:50:22.708673000 +0900
@@ -1668,11 +1668,11 @@
$self->{entry}->{msgcount} ||= 0;
# performing the dilution aging correction
- if (defined $self->total() && defined $self->count() &&
$self->count() > 0 && defined $self->{txrep_dilution_factor}) {
+ if (defined $self->total() && defined $self->count() &&
$self->count() > 0 && defined $self->{conf}{txrep_dilution_factor}) {
my $diluted_total =
($self->count() + 1) *
- ($self->{txrep_dilution_factor} * $self->total() + $score) /
- ($self->{txrep_dilution_factor} * $self->count() + 1);
+ ($self->{conf}{txrep_dilution_factor} * $self->total() +
$score) /
+ ($self->{conf}{txrep_dilution_factor} * $self->count() + 1);
my $corrected_score = $diluted_total - $self->total();
$self->{checker}->add_score($self->{entry}, $corrected_score);
} else {