http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5770
Summary: Linting a Rule inside of an if test that should fail
still shows an undefined depency
Product: Spamassassin
Version: 3.2.3
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Rules (Eval Tests)
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I've got the following rule:
if (version < 3.200000)
#HTML_SHORT_LENGTH DEPENDENCY RULE REMOVED FROM SA 3.2.X
#KAM NUMBER EMAILS - Thanks to Mark Damrose for the NUMBER3 idea & Jan-Pieter
Cornet
header __KAM_NUMBER1 Subject =~ /^\d+$/
body __KAM_NUMBER2 /\d{1,6}/
header __KAM_NUMBER3 Message-ID =~ /\<[a-z]{19}\@/i
meta KAM_NUMBER ((__KAM_NUMBER1 + __KAM_NUMBER2 + MIME_HTML_ONLY
+ HTML_SHORT_LENGTH + __KAM_NUMBER3) >= 5)
describe KAM_NUMBER Silly Number Emails
score KAM_NUMBER 1.0
endif
However, spamassassin -D --lint still shows
[16507] dbg: rules: meta test KAM_NUMBER has undefined dependency
'HTML_SHORT_LENGTH'
Shouldn't the if loop avoid this issue during a lint?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.