type.inbound
and subject.base == ""
and length(attachments) == 0
and (
// body is empty
(
(
body.plain.raw is null
or body.plain.raw == ""
or regex.imatch(body.plain.raw, '^\s*$')
)
and (
body.html.raw is null
or body.html.raw == ""
or regex.imatch(body.html.raw, '^\s*$')
)
)
// account for disclaimers
or (
any(map(filter(ml.nlu_classifier(body.current_thread.text).entities,
.name == "disclaimer"
),
.text
),
(length(body.current_thread.text) - length(.)) == 0
)
)
)
and profile.by_sender().prevalence != "common"
Playground
Test against your own EMLs or sample data.