type.inbound
and strings.contains(body.current_thread.text, "Dear Prospective Bidder,")
and any(html.xpath(body.html,
'//table/tbody/tr/td/table//tr/td//table/tbody/tr/td'
).nodes,
strings.ends_with(.display_text, ".pdf")
and strings.contains(.raw,
"https://drive-thirdparty.googleusercontent.com/16/type/application/pdf"
)
)
Playground
Test against your own EMLs or sample data.