https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6691

             Bug #: 6691
           Summary: Linting Rules should adhere to conditions
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Rules
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


This might be in another bug but just in case, there are scenarios where rules
are throwing lint errors that should be conditionally ignored.

For example:

if (version < 3.200000)
  #BLANK EMAILS - CURRENTLY REQUIRES 99_FVGT_meta.cf for FM_NO_FROM AND NO_TO.
UNDISC_RECIPS MIGHT BE REMOVED IN 3.2+
    #HTML_SHORT_LENGTH DEPENDENCY RULE REMOVED FROM SA 3.2
  meta          KAM_BLANK01     (MISSING_SUBJECT && (UNDISC_RECIPS ||
FM_NO_FROM_OR_TO || FM_NO_TO))
  describe      KAM_BLANK01     Blank emails
  score         KAM_BLANK01     1.0

    #MSGID_FROM_MTA_ID REMOVED IN NEWER SPAMASSASSIN 3.2
  meta          KAM_BLANK02     (KAM_BLANK01 && MSGID_FROM_MTA_ID)
  describe      KAM_BLANK02     Blank emails with MTA Headers
  score         KAM_BLANK02     1.0
endif

However, spamassassin -D --lint 2>&1 | grep depend still shows:

Nov  4 13:02:06.733 [27175] dbg: rules: meta test KAM_BLANK01 has undefined
dependency 'UNDISC_RECIPS'
Nov  4 13:02:06.733 [27175] dbg: rules: meta test KAM_BLANK01 has undefined
dependency 'FM_NO_FROM_OR_TO'
Nov  4 13:02:06.733 [27175] dbg: rules: meta test KAM_BLANK01 has undefined
dependency 'FM_NO_TO'
Nov  4 13:02:06.764 [27175] dbg: rules: meta test KAM_BLANK02 has undefined
dependency 'MSGID_FROM_MTA_ID'

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to