--- /usr/sbin/spampd 2021-08-02 09:49:07.000000000 +0200 +++ ./spampd 2021-08-02 17:22:00.596200965 +0200 @@ -557,7 +557,7 @@ # https://github.com/apache/spamassassin/blob/3.4/lib/Mail/SpamAssassin/PerMsgStatus.pm#L1597 ($spd_p->{sa_version} >= 3.0040) and eval { my $status = Mail::SpamAssassin::PerMsgStatus->new($sa_p); - $spd_p->{sa_rules_ver} = $status->get_tag("RULESVERSION"); + $spd_p->{sa_rules_ver} = $status->get_tag("RULESVERSION") ? $status->get_tag("RULESVERSION") : ""; }; $self->inf(ref($self)." v".$self->runtime_version()." ". ($self->is_reloading() ? "reloading": "starting") ." with: @startup_args \n"); @@ -1012,7 +1012,7 @@ my $msg_score = sprintf("%.2f", $status->get_hits); my $msg_threshold = sprintf("%.2f", $status->get_required_hits); my $proc_time = sprintf("%.2f", time - $start); - my $rules_ver = defined($prop->{sa_rules_ver}) ? ", rules v".$prop->{sa_rules_ver} : ""; + my $rules_ver = defined($prop->{sa_rules_ver}) ? ", rules ".$prop->{sa_rules_ver} : ""; $self->inf("$was_it_spam $msgid ($msg_score/$msg_threshold) from $sender for " . "$recips in " . $proc_time . "s, $size bytes$rules_ver."); @@ -1467,7 +1467,7 @@ sub runtime_version { my $self = $_[0]; - my $rules_ver = defined($self->{spampd}->{sa_rules_ver}) ? ", rules v".$self->{spampd}->{sa_rules_ver} : ""; + my $rules_ver = defined($self->{spampd}->{sa_rules_ver}) ? ", rules ".$self->{spampd}->{sa_rules_ver} : ""; return $VERSION . ' [Perl '.(split(/v/, $^V))[-1] . ', ' . $self->net_server_type() . ' ' . Net::Server->VERSION() . ', SA ' . Mail::SpamAssassin::Version() . $rules_ver . ']';