http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4347





------- Additional Comments From [EMAIL PROTECTED]  2006-07-12 14:51 -------
Well, the obvious solution would seem to be to add 'tflags plugin' for plugin 
rules, allow this with the rule name (obviously) undefined; that is, you DO NOT 
put it inside the 'ifplugin', and check it.

Like:

+       if (!exists $self->{conf}->{scores}->{$token}) {
           if (exists $self->(conf)->(tflags)->($token) &&
              $self->(conf)->(tflags)->($token) ~= /\bplugin/ {
                # this is a plugin rule, it is ok if it doesn't exist
                if ($self->{main}->{lint_rules}) {
                  my $msg =
                    "rules: meta test $rulename depends on undefined plugin 
rule '$token'";
                  warn $msg."\n";
              }
           }
           else {               
+            $self->{rule_errors}++; # flag to --lint that there was an 
error ...
+            my $msg =
+             "rules: meta test $rulename has undefined dependency '$token'";
+            if ($self->{main}->{lint_rules}) {
+              warn $msg."\n";
+            }
+            else {
+              info($msg);
+            }
           }
+        }
+       elsif ($self->{conf}->{scores}->{$token} == 0) {




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to