type.inbound
and any(body.links,
strings.icontains(.display_url.url, 'booking.com')
and not strings.icontains(.href_url.url,
.display_url.domain.root_domain
)
and .display_url.domain.root_domain != .href_url.domain.root_domain
and (
regex.icontains(.display_url.url,
'(?:aid=\d{6}|label=gen\d+nr|review-bad|\b\w+\.html|expirince|hoteladmin|feedback)'
)
or .href_url.domain.root_domain == "share.google"
or any(body.links, network.whois(.href_url.domain).days_old < 30)
)
and .mismatched
)
and not strings.icontains(body.current_thread.text,
"unsubscribe from this list"
)
and not (
sender.email.domain.root_domain == "booking.com"
and coalesce(headers.auth_summary.dmarc.pass, false)
)
Playground
Test against your own EMLs or sample data.