diff --git a/packages/accounting_automation/src/spam-rescue.ts b/packages/accounting_automation/src/spam-rescue.ts index b684478..6b2c119 100644 --- a/packages/accounting_automation/src/spam-rescue.ts +++ b/packages/accounting_automation/src/spam-rescue.ts @@ -67,7 +67,7 @@ export async function loadRules(pool: Pool): Promise { const numbers = new Set(); const add = (s: string | null | undefined): void => { const n = s ? normalizeTerm(s) : null; - if (n) terms.add(n); + if (n && !/^kh ?build/.test(n)) terms.add(n); // своё название встречается в каждом письме }; const vendors = await pool.query<{ display_name: string | null; company_name: string | null }>("select display_name, company_name from qbo_vendor where active"); for (const v of vendors.rows) {