Gmail Phase E/F + HANDOFF global + cleanup cron/root
- Réécriture HANDOFF.md dashboard multi-domaines - Mise à jour MEMORY.md / TOOLS.md / AGENTS.md - Cleanup fichiers cron obsolètes + fichiers root - Gmail Phase E : audit, 18 filtres natifs, labels Promos/Dev-Tools/Social - Gmail Phase F : archive Philippot + Ulys terminée
This commit is contained in:
199
workspace/gmail-rules.md
Normal file
199
workspace/gmail-rules.md
Normal file
@@ -0,0 +1,199 @@
|
||||
# Gmail Rules — Plan de ménage
|
||||
|
||||
_Généré le 2026-06-05 par Phase C (validation humaine)._
|
||||
_Source : `gmail-audit.md` (sample 3000 threads), validations Thierry._
|
||||
|
||||
## Légende
|
||||
|
||||
- 🟢 **Vague 1 — Trash** : aucune valeur, jamais lu, désabo Gmail natif ensuite
|
||||
- 🟡 **Vague 2 — Archive** : pas de valeur active mais on garde (taggé)
|
||||
- 🔴 **Whitelist absolue** : ne JAMAIS toucher
|
||||
- 🟣 **Spécial** : traitement dédié (digest VE, etc.)
|
||||
|
||||
## 🔴 Whitelist absolue (NE JAMAIS TOUCHER)
|
||||
|
||||
Toute action Gmail (trash, archive, label) est INTERDITE sur ces sources.
|
||||
|
||||
### Banques
|
||||
- `@cic.fr`, `@e-cic.fr`
|
||||
- `@bpgo.fr` (Banque Pop Grand Ouest)
|
||||
- `@cmb.fr`
|
||||
|
||||
### Admin / légal
|
||||
- `@impots.gouv.fr`, `@dgfip.finances.gouv.fr`
|
||||
- `@digiposte.fr`
|
||||
- `@ameli.fr`
|
||||
|
||||
### Telco perso
|
||||
- `@orange.com`, `@orange.fr`
|
||||
- `@neuf.fr`
|
||||
|
||||
### Véhicules whitelist
|
||||
- `@vwfs.com`, `@volkswagen.fr`
|
||||
- `@jeep.com` (cf. règle 🟣 V01 ci-dessous)
|
||||
- `@ze-watt.fr`, `@ze-watt.com`
|
||||
- `@zeromotorcycles.com`
|
||||
|
||||
### Club plongée
|
||||
- `@gissacg.fr`, `@lists.gissacg.fr`
|
||||
- `president@gissacg.fr`
|
||||
|
||||
### Sociétés AIRTRIA
|
||||
- `@airtria.net`, `@airtria.fr`
|
||||
|
||||
### Solaire pro
|
||||
- `@laboutique-solaire-pro.com`
|
||||
|
||||
### Identités personnelles
|
||||
- `tallagrand.thierry@gmail.com` (mes propres SENT)
|
||||
- `thierry.tallagrand@me.com` (mon adresse iCloud)
|
||||
|
||||
### Labels système protégés
|
||||
- `IMPORTANT`, `STARRED`, `SENT`, `DRAFT`
|
||||
- `Personal`, `Travail`, `Achats`, `Receipts`, `Notes`
|
||||
|
||||
---
|
||||
|
||||
## 🟢 Vague 1 — Trash en masse
|
||||
|
||||
**Stratégie** : `gog gmail trash` par batch de 200, pause 5s entre batchs.
|
||||
**Critère commun** : `older_than:90d` pour ne pas trasher les arrivées récentes au cas où.
|
||||
**Réversibilité** : Trash Gmail garde 30 jours.
|
||||
|
||||
### Règles V1
|
||||
|
||||
| ID | Query Gmail | Sample | Estimation totale |
|
||||
|---|---|---:|---:|
|
||||
| **V1.01** | `from:nepasrepondre@rustica-info.fr in:inbox older_than:90d` | 196 | ~400 |
|
||||
| **V1.02** | `from:hi@mail.theresanaiforthat.com in:inbox older_than:90d` | 123 | ~200 |
|
||||
| **V1.03** | `from:quora.com in:inbox older_than:90d` | 240 | ~600 |
|
||||
| **V1.04** | `from:no-reply@info.bricomarche.com in:inbox older_than:90d` | 44 | ~100 |
|
||||
| **V1.05** | `from:beehiiv.com in:inbox older_than:90d` (FutureBlueprint+ai-signal) | 56 | ~150 |
|
||||
| **V1.06** | `from:carrefour@email.carrefour.fr in:inbox older_than:90d` | 37 | ~100 |
|
||||
| **V1.07** | `from:cds.newsletter-cdiscount.com in:inbox older_than:90d` | 32 | ~80 |
|
||||
| **V1.08** | `from:n.weldom.fr in:inbox older_than:90d` | 30 | ~80 |
|
||||
| **V1.09** | `from:news.suunto.com in:inbox older_than:90d` | 26 | ~60 |
|
||||
| **V1.10** | `from:crm.samsung.fr in:inbox older_than:90d` | 26 | ~60 |
|
||||
| **V1.11** | `from:ollama.com in:inbox older_than:90d` | 25 | ~60 |
|
||||
| **V1.12** | `from:go.explore.redhat.com in:inbox older_than:90d` | 24 | ~60 |
|
||||
| **V1.13** | `from:reply.ebay.fr in:inbox older_than:90d` | 23 | ~60 |
|
||||
| **V1.14** | `from:aliexpress.com in:inbox older_than:90d` (selections+deals) | 53 | ~150 |
|
||||
| **V1.15** | `from:news_frfr@avis-comms.international in:inbox older_than:90d` | 21 | ~50 |
|
||||
| **V1.16** | `from:updates-noreply@linkedin.com in:inbox older_than:90d` | 53 | ~120 |
|
||||
| **V1.17** | `from:notifications-noreply@linkedin.com in:inbox older_than:90d` | 25 | ~60 |
|
||||
| **V1.18** | `from:messages-noreply@linkedin.com in:inbox older_than:90d` | 117 | ~250 |
|
||||
| **V1.19** | `from:facebookmail.com in:inbox older_than:90d` | 145 | ~350 |
|
||||
|
||||
**Estimation totale Vague 1 : ~3000 threads à trasher** (sur ta boîte de 12 703).
|
||||
|
||||
---
|
||||
|
||||
## 🟡 Vague 2 — Archive avec label
|
||||
|
||||
**Stratégie** : `gog gmail archive` (retire INBOX) + apply label.
|
||||
**Réversibilité** : zéro destruction, juste sortie de l'inbox.
|
||||
|
||||
### Règles V2
|
||||
|
||||
| ID | Query Gmail | Action | Sample | Note |
|
||||
|---|---|---|---:|---|
|
||||
| **V2.01** | `from:florian.philippot@les-patriotes.fr in:inbox` | Archive + label `Newsletters` | 18 | Politique perso |
|
||||
| **V2.02** | `from:info@clients.ulys.com in:inbox older_than:30d` | Archive + label `Receipts` | 23 | Télépéage VINCI |
|
||||
|
||||
**Estimation totale Vague 2 : ~50 threads à archiver.**
|
||||
|
||||
Note : la 2ème passe Q8 enrichira cette liste avec la longue traîne newsletters tech.
|
||||
|
||||
---
|
||||
|
||||
## 🟣 Spécial — Catégorie 2 (digest VE)
|
||||
|
||||
### Règle V01
|
||||
|
||||
`from:uconnectservices@jeep.com` (172 sample / ~400 boîte totale) :
|
||||
- **Phase D (immédiat)** : aucune action, on les laisse dans inbox.
|
||||
- **Phase F+ (digest VE)** : agent quotidien parse les mails Jeep, génère
|
||||
`charge-vehicule.md` + notif WhatsApp synthèse, puis archive automatiquement
|
||||
les mails parsés avec label `Charge-VE`.
|
||||
|
||||
**Pas d'action Phase D**.
|
||||
|
||||
---
|
||||
|
||||
## Phase E — Filtres natifs Gmail (2026-06-25)
|
||||
|
||||
Objectif : empêcher les newsletters / promos récurrentes d’atterrir dans l’inbox.
|
||||
Méthode : filtres natifs Gmail (`Settings > Filters and Blocked Addresses`) créés via `gog gmail filters create`.
|
||||
Action par défaut : **archiver** (`removeLabelIds: [INBOX, UNREAD]`) + **appliquer un label**.
|
||||
|
||||
### Labels créés
|
||||
- `Promos` (id Label_11)
|
||||
- `Dev-Tools` (id Label_12)
|
||||
- `Social` (id Label_13)
|
||||
|
||||
### Filtres actifs
|
||||
|
||||
| # | Query | Label | Type |
|
||||
|---|---|---|---|
|
||||
| E01 | `from:linkedin.com OR from:e.linkedin.com` | `Social` | Social |
|
||||
| E02 | `from:facebookmail.com` | `Social` | Social |
|
||||
| E03 | `from:clients.ulys.com` | `Receipts` | Télépéage |
|
||||
| E04 | `from:les-patriotes.fr` | `Newsletters` | Politique |
|
||||
| E05 | `from:rustica-info.fr` | `Newsletters` | Jardinage |
|
||||
| E06 | `from:mail.theresanaiforthat.com` | `Newsletters` | Tech/IA |
|
||||
| E07 | `from:quora.com` | `Newsletters` | Tech/QA |
|
||||
| E08 | `from:airepo@substack.com` | `Newsletters` | Tech/IA |
|
||||
| E09 | `from:vpauto.fr OR from:mail.vpauto.eu` | `Promos` | Auto |
|
||||
| E10 | `from:communication.andre.fr` | `Promos` | E-com |
|
||||
| E11 | `from:fr-news.adidas.com` | `Promos` | E-com |
|
||||
| E12 | `from:eu1.tocampaigns.com` | `Promos` | E-com (Cabesto) |
|
||||
| E13 | `from:mkt.norauto.fr` | `Promos` | Auto |
|
||||
| E14 | `from:news.intermarche.com` | `Promos` | E-com |
|
||||
| E15 | `from:monmagasinvert.fr` | `Promos` | E-com |
|
||||
| E16 | `from:dlink.com` | `Promos` | Tech |
|
||||
| E17 | `from:messages.mongodb.com` | `Dev-Tools` | Dev |
|
||||
| E18 | `from:k8slens.dev` | `Dev-Tools` | Dev |
|
||||
|
||||
### Cleanup rétroactif (2026-06-25)
|
||||
- ~687 messages archivés manuellement depuis l’inbox (batchs limités à 200 max, pause 6 s).
|
||||
- Voir `gmail-housekeeping.md` pour le détail.
|
||||
|
||||
---
|
||||
|
||||
## 📋 2ème passe (Q8) — Longue traîne
|
||||
|
||||
À lancer après Vague 1 + Vague 2 stabilisées.
|
||||
|
||||
```bash
|
||||
# Script proposé : gmail_audit.py --query "category:promotions OR category:updates older_than:6m" --sample 5000
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Mises à jour 6 juin 2026 (Phase D execution)
|
||||
|
||||
### Whitelist enrichie (à ajouter à la whitelist principale)
|
||||
|
||||
#### Synology infrastructure
|
||||
- `from:sns@synologynotification.com` (Active Insight - alertes critiques disque/storage)
|
||||
- `from:noreply@c2.synology.com` (C2 backup subscription)
|
||||
|
||||
#### Finance
|
||||
- `from:noreply@amundi-esr.com` (épargne salariale PEE/PERCO - transactionnel)
|
||||
- `from:r.clientele@vwfs.com` (VW Financial Services)
|
||||
|
||||
#### Famille & cercle proche
|
||||
- `frederic.tallagrand@*` (famille)
|
||||
- `@arimair.fr` (plongée copain)
|
||||
|
||||
### 4 nouvelles règles Vague 1 (ajoutées en cours d'exécution)
|
||||
- V1.20 : `from:vpauto@mail.vpauto.eu` (enchères auto)
|
||||
- V1.21 : `from:airepo@substack.com` (newsletter IA Substack)
|
||||
- V1.22 : `from:intermarche@news.intermarche.com` (promo)
|
||||
- V1.23 : `from:no-reply@k8slens.dev` (newsletter Lens K8s)
|
||||
|
||||
### Synology trash variants (3 patterns)
|
||||
- `subject:"[www.airtria.net]"` (ARCHIVE2 → 1 160 mails)
|
||||
- `subject:"[www.airtria.pro]"` (ARCHIVE3 → 210 mails)
|
||||
- `subject:"[10.10.10.50]"` (ARCHIVE originel → 1 889 mails)
|
||||
|
||||
Reference in New Issue
Block a user