v0.11 U5: Posteingang, deterministische Zuordnung, Klärungsansicht
- 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>
This commit is contained in:
1 parent
e4a3cb7f7b
commit
dff9e2344e
19 files changed
+990
-59
No files matched your search
@@ -6,6 +6,7 @@
|
||||
use App\Models\Booking;
|
||||
use App\Models\DataRequest;
|
||||
use App\Process\CaseRequirements;
|
||||
use App\Support\Settings;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
@@ -46,10 +47,18 @@ public function envelope(): Envelope
|
||||
DataRequest::FOLLOWUP => $subject.': Noch eine kurze Rückfrage',
|
||||
default => $subject.': Bitte ergänzen Sie Ihre Angaben',
|
||||
},
|
||||
replyTo: [new Address(config('fewo.owner.email'), config('fewo.owner.name'))],
|
||||
// Answers go to the dedicated mailbox when one is read completely (v0.11 inbox), so they reach the case.
|
||||
replyTo: [new Address(self::replyAddress(), config('fewo.owner.name'))],
|
||||
);
|
||||
}
|
||||
|
||||
public static function replyAddress(): string
|
||||
{
|
||||
$mailbox = Settings::tenant()?->activeMailbox();
|
||||
|
||||
return $mailbox?->readsEverything() && filled($mailbox->address) ? (string) $mailbox->address : (string) config('fewo.owner.email');
|
||||
}
|
||||
|
||||
public function content(): Content
|
||||
{
|
||||
return new Content(markdown: 'mail.data-requested');
|
||||
|
||||
Reference in new issue
Block a user