type.inbound
and strings.contains(body.current_thread.text,
strings.concat(body.current_thread.links[0].display_text,
body.current_thread.links[1].display_text
)
)
and body.current_thread.links[0].href_url.url == body.current_thread.links[1].href_url.url
and strings.icontains(body.current_thread.links[1].display_text, 'pdf')
Playground
Test against your own EMLs or sample data.