type.inbound
and any(body.links,
.href_url.domain.domain == "storage.googleapis.com"
and regex.match(.href_url.path, '/[^/]+/[^/]+\.html')
and strings.starts_with(.href_url.path,
strings.concat('/',
regex.extract(.href_url.path,
'^/[^/]+/(?P<o>[^/]+)\.html$'
)[0].named_groups["o"],
'/'
)
)
)
Playground
Test against your own EMLs or sample data.