type.inbound
and any(headers.domains, .root_domain == "kagoya.net")
and ml.nlu_classifier(body.current_thread.text).language == "english"
and not (
(length(headers.references) > 0 or headers.in_reply_to is not null)
and (subject.is_forward or subject.is_reply)
and length(body.previous_threads) >= 1
)
Playground
Test against your own EMLs or sample data.