type.inbound
and any(filter(body.links,
.href_url.domain.root_domain in (
"lovable.app", // published sites
"lovableproject.com" // preview/sandbox builds
)
),
any(filter(ml.link_analysis(.).final_dom.links,
.href_url.ip.ip is not null
or .href_url.domain.root_domain not in (
"lovable.app",
"lovable.dev",
"lovableproject.com"
)
),
regex.icontains(.display_text,
'(?s)^\s*(?:(?:view|open|access|download|review|go to|sign in)\b.{0,40}\b(?:documents?|files?|pdf|attachments?|messages?|voicemail|projects?|bids?|proposal|plans|receipt|statement|invoice|payment|billing|claim|package|invitation|agreement|contract|capital call)|listen\b)'
)
)
)
Playground
Test against your own EMLs or sample data.