https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7735

--- Comment #25 from Henrik Krohns <apa...@hege.li> ---
(In reply to Henrik Krohns from comment #24)
> I will look if there is a some 3.4 compatible way to implement "if
> (local_tests_only)".

Ugh it gets a bit wonky. Current conf parser considers any unknown string as
true.

# Will always apply on old versions
if (local_rules_only)
  meta __SPOOFED 0
endif

# Something like this would be required, mandatory feature check
if can(Mail::SpamAssassin::Conf::feature_local_rules_only) && local_rules_only
  meta __SPOOFED 0
else
  meta __SPOOFED DKIM_INVALID || STUFF
endif

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

Reply via email to