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

           Summary: add else functionality to if plugin statements
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Rules
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Say we create some nice rules that rely on plugins but those plugins
  aren't available, if we could create alternate rules for when the
  plugins are not available it might help in some cases.  This might be
  unnecessary but I was writing a meta rule that used some replace-tag
  tests and started thinking it would be nice to have this feature.

Example:

  body __FOO1 /some foo/
  body __FOO2 /mr\. t/
  
  if plugin::replacetags
    body SOME_RULE      /<S><O><M><E><SP><F><O><O>/i
    replace_tags SOME_RULE
    meta SOME_FOO_RULE    (!__FOO1 && __FOO2 && SOME_RULE)
  else
    body SOME_RULEb     /[s5][oO]m[e3] f[o0][o0]/i
    meta SOME_FOO_RULE    (!__FOO1 && __FOO2 && !SOME_RULEb)
  endif

This would most likely only benefit 3rd party rule developers but who
knows?



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

Reply via email to