Aller au contenu principal

📱 Exports & Automatisation (/export)


Accès

BlocMailExport & Intégrations ou /export


Statistiques avant export

La page affiche en en-tête les compteurs résumés de vos analyses :

  • Total · Sûrs · Suspects · Dangereux · Spam

Un avertissement s'affiche si aucune donnée n'est disponible.


Formats d'export

JSON

Usage : Intégration programmatique, backup, audit
Fichier : blocmail-export-<date>.json

[
{
"id": "uuid",
"timestamp": "2026-04-19T10:00:00Z",
"spf": "fail",
"dkim": "pass",
"dmarc": "fail",
"threatLevel": "high",
"from": "attacker@evil.com",
"subject": "Votre colis est prêt",
"score": 78,
"markedSpam": true
}
]

XML

Usage : Intégration avec systèmes legacy, SIEM
Fichier : blocmail-export-<date>.xml

<?xml version="1.0" encoding="UTF-8"?>
<analyses>
<analysis>
<id>uuid</id>
<spf>fail</spf>
<dkim>pass</dkim>
<dmarc>fail</dmarc>
<threatLevel>high</threatLevel>
<from>attacker@evil.com</from>
</analysis>
</analyses>

CSV

Usage : Google Sheets, Excel, LibreOffice Calc
Fichier : blocmail-export-<date>.csv

spf,dkim,dmarc,threatLevel,from,subject,score
fail,pass,fail,high,attacker@evil.com,Votre colis est prêt,78

Calendrier ICS

Usage : Créer un événement calendarisé horodaté pour l'analyse
Fichier : blocmail-event-<date>.ics

BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART:20260419T100000Z
DTEND:20260419T110000Z
SUMMARY:Email Analysis - Threat: high
DESCRIPTION:SPF: fail\nDKIM: pass\nDMARC: fail
END:VEVENT
END:VCALENDAR

Intégrations

Export Slack

Envoie l'analyse courante vers un canal Slack via webhook entrant.

Format : Blocks API Slack

{
"blocks": [
{ "type": "header", "text": { "type": "plain_text", "text": "📧 BlocMail — Analyse" }},
{ "type": "section", "fields": [
{ "type": "mrkdwn", "text": "*SPF:* ❌ fail" },
{ "type": "mrkdwn", "text": "*DKIM:* ✅ pass" },
{ "type": "mrkdwn", "text": "*Menace:* 🔴 HIGH" }
]}
]
}

Configuration : saisir l'URL du webhook Slack entrant dans la zone dédiée.

Webhook n8n

Déclenche le workflow n8n avec le payload complet (JSON + XML + CSV + ICS).

Payload envoyé :

{
"timestamp": "ISO",
"analysis": { "spf": "fail", ... },
"exports": { "sheets": true, "xml": true },
"formats": { "json": "...", "xml": "...", "csv": "...", "calendar": "..." }
}

URL configurable directement dans la page Export (surcharge la valeur des Paramètres).

Webhook Make.com

Déclenche un scénario Make.com avec les données structurées.


Badge de statut export

Chaque format dispose d'un badge d'état :

BadgeSignification
idlePrêt
processingEn cours (spinner)
successSuccès ✅
errorÉchec ❌
warningSuccès partiel ⚠️

Accès depuis d'autres pages

Les déclenchements n8n/Make sont aussi disponibles :

  • Mail Analyseur : boutons Make et n8n après chaque analyse
  • Mail Dashboard : icônes par analyse dans la liste

Formats prévus (roadmap)

FormatHorizonDescription
PDFQ2 2026Rapport de sécurité formaté avec branding
HTMLQ2 2026Rapport web partageable
XLSXQ3 2026Export natif Excel
API pushQ2 2026Envoi automatique via API v1
Email SendGridQ2 2026Rapport quotidien par email