type.inbound
and recipients.to[0].email.domain.valid
and any(body.links,
strings.iends_with(.href_url.path,
strings.concat('/&lht=',
recipients.to[0].email.email
)
)
)
Playground
Test against your own EMLs or sample data.