fix(mail-ingest): only the forwarder moves a booking, and filing claims the entry first

A co-member could move the forwarder's booking into a private trip, carrying
their mail along; undo stays open to editors. Move and filing refuse demo
accounts, and filing claims the entry before writing documents, putting it
back into the inbox when nothing could be filed.
This commit is contained in:
Maurice
2026-11-13 17:00:48 +01:00
parent 993ed4b472
commit c35f39add1
3 changed files with 91 additions and 11 deletions
@@ -63,7 +63,8 @@ interface MailIngestResolutionPatch {
resolvedTripId: number | null;
createdIdsJson: string | null;
resolvedBy: number | null;
resolvedAt: DbTimestamp;
/** Null puts an entry back into the inbox. */
resolvedAt: DbTimestamp | null;
undoUntil: DbTimestamp | null;
}