type.inbound
// a link whose effective destination is evernote
and any(body.current_thread.links,
(
.href_url.domain.root_domain == "evernote.com"
or .display_url.domain.root_domain == "evernote.com"
or any(.href_url.query_params_decoded["domain"],
strings.iends_with(., "evernote.com")
)
)
and (
any(ml.nlu_classifier(.display_text).topics, .name == 'E-Signature')
or regex.icontains(.display_text,
'\b(?:view|open|review|access|download|see|shared?)\b[^\n]{0,30}\b(?:document|doc|file|contract|invoice|statement|agreement|draft|attachment|folder)\b'
)
)
)
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name in ('cred_theft', 'bec') and .confidence != 'low'
)
and not (
sender.email.domain.root_domain == 'evernote.com'
and coalesce(headers.auth_summary.dmarc.pass, false)
)
Playground
Test against your own EMLs or sample data.