type.inbound
and any(html.xpath(body.html,
'//body/div//table/tbody/tr//table/tbody/tr/td[contains(@style, "rgb(41, 88, 140)")]/div/b'
).nodes,
subject.base == .display_text
)
and any(html.xpath(body.html,
'//body/div//table/tbody/tr//table/tbody/tr/td/div[contains(@style, "margin-top: 12pt")]/div'
).nodes,
strings.icontains(subject.base, .inner_text)
)
and length(html.xpath(body.html,
'//body/div//table/tbody/tr//table/tbody/tr/td/div[contains(@style, "margin-top: 12pt")]/div//a'
).nodes
) == 1
Playground
Test against your own EMLs or sample data.