- mailboxes (Modell für mehrere, eines aktiv): Übernahme des bisherigen Postfachs als „nur Portal-Mails“; Modus „alle Nachrichten“ für ein eigenes Postfach; Adresse als Antwortadresse der Rückfragen. - inbound_messages: jede Nachricht zuerst gespeichert, einmal je Message-ID, mit Testbetriebs-Kennzeichen (M10). Portal-Mails laufen unverändert über den Portalpfad (CH-08). - MessageMatcher (CH-13, ohne Scoring): Antwortbezug; Vorgangsnummer nur mit dem Gast als Absender; sonst Absender + Wohnung + beide Termine eines einzigen offenen Vorgangs. Ein offener Vorgang des Absenders allein genügt nicht (nur Hinweis). Alles andere → Klärung (M04). - Ausgehende Mails speichern ihre Message-ID; Antwort stoppt Erinnerungen. - Filament „Posteingang“: lesen, Vorgang zuordnen, als neue Anfrage anlegen, ignorieren, erledigt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
760 B
PHP
29 lines
760 B
PHP
<?php
|
|
|
|
namespace App\Channels\Mail;
|
|
|
|
use Carbon\CarbonImmutable;
|
|
|
|
/**
|
|
* An incoming e-mail as delivered by the mailbox reader or the n8n webhook. The reply references, recipients and the
|
|
* sender's name are only filled when the whole mailbox is read (v0.11 inbox).
|
|
*/
|
|
final readonly class PortalMail
|
|
{
|
|
/**
|
|
* @param list<string> $references
|
|
* @param list<string> $to
|
|
*/
|
|
public function __construct(
|
|
public string $messageId,
|
|
public string $from,
|
|
public string $subject,
|
|
public string $text,
|
|
public CarbonImmutable $receivedAt,
|
|
public ?string $inReplyTo = null,
|
|
public array $references = [],
|
|
public array $to = [],
|
|
public ?string $fromName = null,
|
|
) {}
|
|
}
|