Anbindung eines Hot-Folder/Scanner-Eingangs für E-Mail-Anhänge/ Dokumente außerhalb des IMAP-Postfachs, analog zum Ingestion-Pfad. - store.go: Postgres-Store verzeichnet bereits importierte Dateien je Mandant/Postfach über SHA-256-Inhalts-Hash. - watcher.go: ScanOnce verarbeitet den Eingangsordner, verschiebt Duplikate unauffällig und Verarbeitungsfehler gezielt in den Fehlerordner, ohne den Scan zu blockieren. Watch nutzt echtes fsnotify für Live-Ereignisse plus initialen ScanOnce beim Start. - Neue minimale Abhängigkeit github.com/fsnotify/fsnotify ergänzt. Prüfungen (alle real durchgeführt, siehe mail/docs/IMP-05-PRUEFPROTOKOLL.md): 1. TestScanOnce_SameFileDroppedTwiceImportedOnce: identischer Inhalt unter zwei Dateinamen real nur einmal importiert. 2. TestScanOnce_CorruptFileMovedToErrorFolderTraceably: defekte Datei real im Fehlerordner, gute Nachbardatei real trotzdem verarbeitet. 3. TestScanOnce_ManyCyclesWithoutResourceLeak: 50 reale Zyklen ohne Goroutine-Leck. Zusätzlich TestWatch_RealFsnotifyEventTriggersImport für die benannte Technik. Kein Umbau: kein bestehendes Paket angefasst. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HhgFcLS8tYMhDJpP74C6AQ
39 lines
1.6 KiB
AMPL
39 lines
1.6 KiB
AMPL
module gitea.perlbach24.de/scripte/nexarch/mail
|
|
|
|
go 1.24
|
|
|
|
toolchain go1.24.4
|
|
|
|
require (
|
|
github.com/aws/aws-sdk-go-v2 v1.45.1
|
|
github.com/aws/aws-sdk-go-v2/config v1.33.1
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.20.1
|
|
github.com/aws/aws-sdk-go-v2/service/s3 v1.109.1
|
|
github.com/aws/smithy-go v1.28.1
|
|
github.com/jackc/pgx/v5 v5.6.0
|
|
golang.org/x/text v0.14.0
|
|
)
|
|
|
|
require (
|
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.20 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.19.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.19 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/signin v1.7.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sso v1.35.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.40.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.47.1 // indirect
|
|
github.com/fsnotify/fsnotify v1.10.1 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
|
|
github.com/jackc/puddle/v2 v2.2.1 // indirect
|
|
golang.org/x/crypto v0.17.0 // indirect
|
|
golang.org/x/sync v0.1.0 // indirect
|
|
golang.org/x/sys v0.15.0 // indirect
|
|
)
|