type.inbound
and body.html.raw is null
and length(body.previous_threads) == 0
and regex.contains(body.current_thread.text, 'https?://')
and (
regex.imatch(body.current_thread.preamble, 'begin forwarded message:\s*')
or (
regex.imatch(body.current_thread.preamble,
'begin forwarded message:\s*from:\s*[^<@\n]+\s*'
)
and strings.icontains(body.current_thread.preamble, sender.display_name)
)
)
Playground
Test against your own EMLs or sample data.