You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/12/11 23:46:53 UTC
[Bug 5721] overlap report on a meta rule should not report overlaps with subrules
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5721
------- Additional Comments From jm@jmason.org 2007-12-11 14:46 -------
funny, there's code to do this already :(
if ($rules{$rule} && $rules{$rule}->{type} eq 'meta') {
# ignore meta-subrules that match the rule they make up.
# TODO: this is simplistic; it doesn't look to see if those subrules
# are in turn meta rules with further subrules that should be ignored.
# but it works well enough...
my $code = $rules{$rule}->{code};
@rules = grep {
my $tmp = $_;
$tmp =~ s/\[.*\]$//;
$code !~ /\b\Q${tmp}\E\b/;
} @rules;
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.