type.inbound
and (
(
regex.icontains(sender.display_name, '^WIX\b')
or strings.ilike(sender.email.domain.domain, 'WIX')
)
or (
strings.icontains(sender.display_name, 'wix')
and regex.icontains(body.current_thread.text,
"Domain Expir(?:ation|y) Not(?:ice|ification)"
)
and strings.icontains(body.current_thread.text, "will be deactivated")
)
// Wix address from footer
or 2 of (
strings.icontains(body.current_thread.text, 'Wix.com'),
strings.icontains(body.current_thread.text, '100 Gansevoort St'),
strings.icontains(body.current_thread.text, 'New York, NY 10014')
)
)
and not (
(
sender.email.domain.root_domain in~ (
"wix.com",
"wixforms.com",
"wixemails.com",
"wixanswers.com",
"wix-groups.com",
"ascendbywix.com"
)
and headers.auth_summary.dmarc.pass
)
)
// negation for messages traversing wix.com
and not (
any(headers.domains, .root_domain in ("wix.com", "ascendbywix.com"))
and headers.auth_summary.spf.pass
and headers.auth_summary.dmarc.pass
)
and not profile.by_sender().solicited
// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
sender.email.domain.root_domain in $high_trust_sender_root_domains
and not headers.auth_summary.dmarc.pass
)
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)
Playground
Test against your own EMLs or sample data.