type.inbound
and (
(
any(ml.nlu_classifier(body.current_thread.text).entities,
.name == "sender"
and regex.icontains(.text,
'(?:U\.?S\.?|United States)\s*(?:District\s+)?Courts?\b'
)
)
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name == "cred_theft" and .confidence != "low"
)
)
// display name asserts court authority
or regex.icontains(sender.display_name,
'\b(?:U\.?S\.?|United States)\s*(?:Bankruptcy\s+|District\s+)?Courts?\b',
'clerk of (?:the )?court\b'
)
// court identity in letterhead position, first line of the body
or regex.imatch(body.current_thread.text,
'\b(?:U\.?S\.?|United States)\s*(?:Bankruptcy\s+|District\s+)?Courts?\b'
)
or 2 of (
strings.icontains(body.current_thread.text, "PACER"),
strings.icontains(body.current_thread.text, "1-800-676-6856"),
strings.icontains(body.current_thread.text, "contempt charges"),
strings.icontains(body.current_thread.text, "Official Court Notice"),
regex.icontains(body.current_thread.text, '(?:jury summons|juror number)'),
strings.icontains(body.current_thread.text,
'complaint has been filed against you'
)
)
)
and not any(ml.nlu_classifier(body.current_thread.text).topics,
.name == "Newsletters and Digests" and .confidence == "high"
)
// negate the actual federal judiciary unless it fails DMARC authentication
and not (
(
sender.email.domain.tld == "gov"
or sender.email.domain.root_domain == "govdelivery.com"
)
and coalesce(headers.auth_summary.dmarc.pass, false)
)
// negate highly trusted sender domains unless they fail DMARC authentication
and not (
sender.email.domain.root_domain in $high_trust_sender_root_domains
and coalesce(headers.auth_summary.dmarc.pass, false)
)
Playground
Test against your own EMLs or sample data.