type.inbound
and (
(
// job scam in current thread
any(ml.nlu_classifier(body.current_thread.text).intents,
.name in ("job_scam") and .confidence != "low"
)
// and salary mention in current thread
and regex.icontains(body.current_thread.text,
'\$\d{3} weekly',
'weekly(?:\s+\w+){0,4}\s+\$\d{3}[^\d]'
)
)
// job scam in previous thread
or any(body.previous_threads,
any(ml.nlu_classifier(.text).intents,
.name in ("job_scam") and .confidence != "low"
)
// and salary mention in previous thread
and regex.icontains(.text,
'\$\d{3} weekly',
'weekly(?:\s+\w+){0,4}\s+\$\d{3}[^\d]'
)
)
)
and length(body.current_thread.links) < 10
// negating income / job verification senders
and not (
sender.email.domain.root_domain in (
'loandepot.com',
'sofi.com',
'lensa.com',
'indeed.com',
'ziprecruiter.com',
'glassdoor.com',
'postjobfree.com',
'jobplacements.com'
)
and headers.auth_summary.dmarc.pass
)
Playground
Test against your own EMLs or sample data.