[classification-safety-hardening] #02: Multi-Lingual Refunds, Credit Notes & Transactional Receipt Expansion #10

Closed
opened 2026-08-28 17:32:17 +03:00 by jalmari · 0 comments
Owner

Feature: classification-safety-hardening | Source: .scratch/classification-safety-hardening/issues/02-multi-lingual-refunds-and-credit-notes.md

02: Multi-Lingual Refunds, Credit Notes & Transactional Receipt Expansion

What to build: Expand receipt_invoice_patterns across all 13 European languages (FI, SV, NO, DA, ET, LV, LT, EN, DE, NL, ES, IT, FR) to include refunds, reimbursements, credit notes, and payment returns, guaranteeing that transactional refund emails (e.g. PayPal, Steam) are immune from clutter cleanup.

Blocked by: 01 (Promote Security & Login Alerts to Safety Tier 4)

Status: resolved

  • DEFAULT_RECEIPT_PATTERNS in src/mailsweep/classifier.py and receipt_invoice_patterns in rules.json include refund, credit note, reimbursement, and chargeback keywords across 13 European languages.
  • Refunds with List-Unsubscribe headers or Precedence: bulk headers are retained in KEEP under SafetyTier.TIER_3_RECEIPT_HOUSING.
  • Unit tests in test_mailsweep.py verify refund/credit note protection against simulated PayPal, Steam, and banking fixtures.
  • Full test suite passes.
**Feature**: `classification-safety-hardening` | **Source**: `.scratch/classification-safety-hardening/issues/02-multi-lingual-refunds-and-credit-notes.md` # 02: Multi-Lingual Refunds, Credit Notes & Transactional Receipt Expansion **What to build:** Expand `receipt_invoice_patterns` across all 13 European languages (FI, SV, NO, DA, ET, LV, LT, EN, DE, NL, ES, IT, FR) to include refunds, reimbursements, credit notes, and payment returns, guaranteeing that transactional refund emails (e.g. PayPal, Steam) are immune from clutter cleanup. **Blocked by:** 01 (Promote Security & Login Alerts to Safety Tier 4) **Status:** `resolved` - [x] `DEFAULT_RECEIPT_PATTERNS` in `src/mailsweep/classifier.py` and `receipt_invoice_patterns` in `rules.json` include refund, credit note, reimbursement, and chargeback keywords across 13 European languages. - [x] Refunds with `List-Unsubscribe` headers or `Precedence: bulk` headers are retained in `KEEP` under `SafetyTier.TIER_3_RECEIPT_HOUSING`. - [x] Unit tests in `test_mailsweep.py` verify refund/credit note protection against simulated PayPal, Steam, and banking fixtures. - [x] Full test suite passes.
Sign in to join this conversation.
No description provided.