type.inbound
and headers.return_path.domain.domain == "groups.outlook.com"
and any(body.current_thread.links,
.href_url.domain.domain == "sites.google.com"
)
and (
regex.icontains(body.current_thread.text, '\n[a-z0-9]{3}\s*$')
or regex.icontains(subject.base, '\s{2,}[a-z0-9]{3}\s*$')
)
Playground
Test against your own EMLs or sample data.