Schnellerkennung von Portalbuchungen per E-Mail

- IMAP-Abruf jede Minute (webklex/php-imap, ohne PHP-imap-Erweiterung) oder signierter Push von n8n
- Parser für Buchungs-, Storno- und Anfrage-Mails (de/en), Buchungsnummer, An-/Abreise
- Erkannte Buchungen werden sofort gesperrt und an handgepflegte Portale weitergegeben; Kalender-Abgleich übernimmt bzw. ersetzt Mail-Sperren
- Unklare Mails: Prüf-Mail + Admin-Liste Portal-E-Mails mit Aktion Sperre anlegen
- Überwachung des Postfachs in Monitor und /health/sync

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 11:29:26 +02:00
1 parent 0b7205e050
commit e5f9e0762f
33 files changed
+1450 -38

No files matched your search

+15
View File
@@ -61,6 +61,21 @@
'health_token' => env('FEWO_HEALTH_TOKEN'),
],
/*
| Mailbox that receives the portals' booking notifications (fast path for portal bookings).
| Read via IMAP every minute; messages are left unread. Empty host = disabled.
*/
'mailbox' => [
'host' => env('FEWO_MAILBOX_HOST'),
'port' => (int) env('FEWO_MAILBOX_PORT', 993),
'encryption' => env('FEWO_MAILBOX_ENCRYPTION', 'ssl'),
'username' => env('FEWO_MAILBOX_USERNAME'),
'password' => env('FEWO_MAILBOX_PASSWORD'),
'folder' => env('FEWO_MAILBOX_FOLDER', 'INBOX'),
'lookback_days' => (int) env('FEWO_MAILBOX_LOOKBACK_DAYS', 3),
'stale_after_minutes' => (int) env('FEWO_MAILBOX_STALE_AFTER_MINUTES', 15),
],
/*
| Optional external automation (e.g. a browser bot on a private server) that carries out
| manual blocking tasks. Tasks are POSTed signed with HMAC-SHA256 of the body.