type.inbound
and headers.return_path.domain.tld == "ru"
and sender.email.domain.root_domain != "corp.mail.ru"
and sender.email.domain.root_domain != "calendar.yandex.ru"
and (
(
profile.by_sender().prevalence in ("new", "outlier")
and not profile.by_sender().solicited
)
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
)
and not profile.by_sender().any_messages_benign
Playground
Test against your own EMLs or sample data.