type.inbound
and (
(
regex.icontains(body.html.raw,
'(?:font-size|line-height):\s*clamp\s*\(\s*(?:-\d+|0)(?:px|em|rem|pt)?,'
)
and any(body.links,
.href_url.ip.ip is not null or .href_url.username is not null
)
)
or any(attachments,
(.content_type == "message/rfc822" or .file_extension =~ "eml")
and regex.icontains(file.parse_eml(.).body.html.raw,
'(?:font-size|line-height):\s*clamp\s*\(\s*(?:-\d+|0)(?:px|em|rem|pt)?,'
)
and any(file.parse_eml(.).body.links,
.href_url.ip.ip is not null or .href_url.username is not null
)
)
)
Playground
Test against your own EMLs or sample data.