type.inbound
and length(filter(body.current_thread.links, .href_url.scheme != "mailto")) > 0
and length(attachments) == 0
and strings.icontains(body.html.raw, 'class="transactionid"')
// verify the extracted div exactly: empty, with a uuid id
and any(html.xpath(body.html, "//div[@class='transactionid']").nodes,
regex.imatch(.raw,
'<div class="transactionid" id="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"></div>'
)
)
Playground
Test against your own EMLs or sample data.