type.inbound
and 0 < length(body.current_thread.links) <= 3
and any(body.links,
any(regex.iextract(.href_url.path,
'/[a-z]{1,3}/([A-Za-z0-9+/=_-]{20,})'
),
any(regex.iextract(strings.decode_base64(.groups[0],
ignore_padding=true
),
'"u":"(https?://[^"]+)"'
),
strings.parse_url(.groups[0]).domain.root_domain in $url_shorteners
)
)
)
Playground
Test against your own EMLs or sample data.