type.inbound
and regex.imatch(sender.display_name, '\bstellar\b')
and sender.email.domain.root_domain != "stellar.org"
and (
not profile.by_sender().solicited
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
)
Playground
Test against your own EMLs or sample data.