type.inbound
and sender.email.local_part in~ ("info", "no-reply", "noreply")
and sender.email.domain.subdomain == "mg"
and (
any(body.links,
.href_url.domain.subdomain == "napp"
and .href_url.domain.root_domain == sender.email.domain.root_domain
and (
strings.istarts_with(.href_url.path, "/campaigns/")
or strings.istarts_with(.href_url.path, "/lists/")
)
)
or strings.icontains(body.current_thread.text,
"12603 State Route 143 Suite G",
"4049 US Highway 231 #2002 Wetumpka, AL 36093"
)
or strings.icontains(body.current_thread.text, "[SOURCEID]")
)
Playground
Test against your own EMLs or sample data.