arcodange-email-ingest V8.1: filter calendar invites + newsletter senders

email-list.sh gains two hard-exclusion filters (applied before the
candidate test, regardless of attachments):

- EXCLUDE_PATTERN matches subjects starting with Invitation: / Updated
  invitation: / Canceled event: / Accepted: / Declined: / Tentative: /
  Maybe: (after stripping Re:/Fwd:/Tr: prefixes). Filters Google Calendar
  events that always carry an .ics attachment.
- EXCLUDE_SENDER matches updates.<domain>, noreply@*calendar, news@,
  newsletter@. Filters newsletter blast traffic.

Effect on --all-folders --candidates-only baseline: 27 noisy → 12
actionable (calendar invites + the staying-ahead.ai newsletter blast
removed). Real supplier docs intact: Darnis F1042 in /Notification, 3 Free
Mobile factures in /Inbox/abonnements, Mistral + Anthropic in /Inbox/books.

The originally-planned --mark-ingested feature is deferred to V8.2:
flag-set requires the Zoho OAuth scope ZohoMail.messages.UPDATE which our
read-only refresh_token doesn't have. Documented in SKILL.md: once the
user opts in to the wider scope, --mark-ingested becomes a one-line flag
on email-inspect.sh and is_candidate() learns to skip flag_info messages.

Captured the new --all-folders baseline at examples/email-list-all-folders.txt.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
2026-05-31 15:18:31 +02:00
co-authored by Claude Opus 4.7
parent 794aa18d2a
commit 1d38f25c23
3 changed files with 45 additions and 3 deletions
@@ -0,0 +1,16 @@
date cand att messageId folder from subject
----------------------------------------------------------------------------------------------------------------------------------
2026-05-20 [*] [Y] 1779312401677014300 /clients/KissMetrics [email protected] Re: VM not running despite status=active, after volume
2026-05-20 [*] [Y] 1779298419301014300 /clients/KissMetrics [email protected] Re: VM not running despite status=active, after volume
2026-05-20 [*] [Y] 1779285954272004400 /clients/KissMetrics [email protected] Re: VM not running despite status=active, after volume
2026-05-05 [*] [ ] 1777970798248014300 /Inbox/abonnements [email protected] Votre facture mobile Free est disponible
2026-04-21 [*] [Y] 1776785469477004300 /Notification [email protected] Darnis Operations - Facture F1042
2026-04-12 [*] [Y] 1776017238960014300 /Inbox/books [email protected] Fwd: Your receipt from Anthropic Ireland, Limited #2109
2026-04-04 [*] [ ] 1775264759983014300 /Inbox/abonnements [email protected] Votre facture mobile Free est disponible
2026-04-02 [*] [Y] 1775141901205014300 /Inbox/books [email protected] Votre facture nº MSTRL-API-814045-001 de Mistral AI SAS
2026-03-05 [*] [ ] 1772689535069004400 /Inbox/helloworld [email protected] Votre facture mobile Free est disponible
2026-02-08 [*] [Y] 1770582421208004400 /Inbox/bureaux [email protected] Valider votre espace personnel sur Portailpro.gouv
2026-01-09 [*] [ ] 1767989744791004400 /Inbox/books [email protected] Fwd: INPI - Votre paiement pour la commande Réf. 181876
2026-01-06 [*] [Y] 1767710535894005600 /Inbox [email protected] Statuts
----------------------------------------------------------------------------------------------------------------------------------
# 12 message(s) (candidates only)