feat(catalog): mbox header scan, company legal-suffix match, apply order

Add --mbox-headers for Thunderbird folder files; strip GmbH/& Co. KG in
CompanyGroupingKey; FindCompany falls back to full scan; apply companies
before persons. Tightens role-mailbox noise filters.
This commit is contained in:
2026-07-26 11:34:42 +01:00
parent 8b764a36a1
commit e07cf743f9
3 changed files with 40 additions and 3 deletions
+4
View File
@@ -65,6 +65,10 @@ func TestCompanyGroupingKey(t *testing.T) {
if a != b {
t.Fatalf("%q != %q", a, b)
}
if CompanyGroupingKey("Acme") != CompanyGroupingKey("Acme GmbH & Co. KG,") {
t.Fatalf("legal suffix should not change grouping key: %q vs %q",
CompanyGroupingKey("Acme"), CompanyGroupingKey("Acme GmbH & Co. KG,"))
}
}
func TestOpportunityTitlesMatchSlogan(t *testing.T) {