From f06fe9756174d383aefec672262b80264a5a5c0d Mon Sep 17 00:00:00 2001 From: Yuri Yaryshev Date: Mon, 30 Nov 2026 14:15:53 +0300 Subject: [PATCH] =?UTF-8?q?spam-rescue:=20=D1=81=D0=B2=D0=BE=D1=91=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20(KH=20Build)?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D1=81=D1=87=D0=B8=D1=82=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D1=81=D0=BB=D0=BE=D0=B2=D0=BE=D0=BC=20=D0=BE?= =?UTF-8?q?=D1=82=D0=B1=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- packages/accounting_automation/src/spam-rescue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {