isExcludedEmail (crm-metrics/crm-metrics.filters.ts)

llm-gateway · packages/backend/src/crm-metrics/crm-metrics.filters.ts · typescript · MIT
crm

Utility to determine if an email address should be excluded from CRM deliverability checks.

// Source: https://github.com/mnfst/llm-gateway | License: MIT | Copyright 2026 MNFST, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Deliverability filtering for the CRM feed.
 *
 * These run here rather than in the CRM so every consumer inherits them: an
 * address excluded once is excluded everywhere, and the rules stay under test.
 *
 * The known bot-signup cluster (gibberish names on scraped corporate domains)
 * deliberately has no rule. It never produced a successful heal, so the cohort
 * predicate already excludes it — a domain list would be dead code that rots.
 */

/** Our own addresses. Emailing ourselves about our own launch is noise. */
const INTERNAL_DOMAINS = ['manifest.build', 'buddyweb.fr', 'mnfstinc.com', 'mnfstinc.dev'];

/** Team members si

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key