type.inbound
// look for links to links.notification.intuit.com but the sender is not from quickbooks/intuit
and any(body.current_thread.links,
.href_url.domain.domain == "links.notification.intuit.com"
)
and not sender.email.domain.root_domain in ("quickbooks.com", "intuit.com")
and not (
any(headers.domains, .root_domain in ("quickbooks.com", "intuit.com"))
// Intuit owns Mandrill, so its MTAs show up under intuit.com - transport, not sender
and headers.return_path.domain.root_domain not in ("mandrillapp.com")
)
and length(body.current_thread.text) < 1750
Playground
Test against your own EMLs or sample data.