https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8360
Bug ID: 8360
Summary: Completely ignored rules in case of no named capture
Product: Spamassassin
Version: 4.0.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Libraries
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
Say I have these two rules:
header __TO_DOMAINNOTTLD To:addr =~ /\@(?<TO_DOMAINNOTLD>[^.]*)/
body FOUND_SOME_LIGHT /came across (%{TO_DOMAINNOTLD}|your contact|your
website)/
If there's a To: header, everything works as expected. If it isn't there (or
I'd assume no capture could be done) then the second rule is completely
ignored. Meaning that if the body has "We came across your website",
FOUND_SOME_LIGHT would not hit when no To: is present.
--
You are receiving this mail because:
You are the assignee for the bug.