Logging the rulename along with the action taken introduced in
365d5b9549d25a910c82cd37034f05e1c906565a, introduced a regression, for the
default action (accept), since the accept-rule is instantiated directly it
did not set a name, resulting in an 'Use of uninitialized value' being written
to the mail.log for every mail not triggering any explicit rule.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
if ($unmatched) {
my $accept = PMG::RuleDB::Accept->new ();
$accept->execute ($queue, $self->{ruledb}, $mod_group, $unmatched,
- $msginfo, undef, undef, undef);
+ $msginfo, { RULE => 'default-accept' }, undef);
}
return $matching_rules;