type.inbound
and any(filter(attachments, .file_type == 'rtf'),
any(file.explode(.),
any(.scan.url.urls,
any(ml.link_analysis(.).final_dom.links,
.href_url.domain.root_domain in ('pages.dev')
)
)
)
)
Playground
Test against your own EMLs or sample data.