Commit a452388
Auto-tag DMARC reports and scam emails as spam on ingest
upsertInbound now checks each new message against spam heuristics:
- DMARC reports: from contains "dmarc" or subject starts with "Report domain:"
- Scam emails: subject matches fake domain-renewal patterns (Avis de coupure,
Non-paiement, Renouvellement de, Régulariser, suspension, facture impayée, etc.)
Tagged messages get the "spam" tag via ensureTagRow + ensureTag, so they
appear in the spam tag view and can be filtered/bulk-deleted.
Retroactively tagged 45 of 58 existing admin@intrane.fr messages as spam.
13 legitimate emails remain untagged.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent c692326 commit a452388
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
237 | 269 | | |
238 | 270 | | |
239 | 271 | | |
| |||
0 commit comments