You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.0 KiB
2.0 KiB
Mail Processing Stabilization Phase – NEW Camel mail route
This patch adds a NEW-runtime Camel route for mail ingestion that is similar in purpose to the legacy MailRoute, but implemented only in the NEW code path (at.procon.dip.*).
Scope
- runtime mode:
NEWonly - entrypoint: Camel mail consumer route
- downstream handling:
DocumentIngestionGatewaywithSourceType.MAIL - no legacy profile/config/code changes
Main classes
at.procon.dip.ingestion.camel.GenericMailIngestionRouteat.procon.dip.ingestion.mail.MailServerEndpointUriFactoryat.procon.dip.ingestion.mail.CamelMailServerEndpointUriFactoryat.procon.dip.ingestion.mail.MailServerProtocol
Configuration
Configured under dip.ingestion.mail-route in application-new.yml.
Supported protocols currently exposed through the generic endpoint factory:
IMAPIMAPSPOP3POP3S
This keeps the route provider/protocol-agnostic at the configuration level while still using Apache Camel mail endpoints underneath.
Behavior
When enabled, the route:
- consumes messages from the configured mail endpoint
- serializes each provider message to raw MIME bytes
- extracts basic provider/provenance attributes
- builds a
SourceDescriptorwithSourceType.MAIL - delegates the actual parsing/import/attachment handling to the existing NEW
MailDocumentIngestionAdapter
Provenance attributes added by the route
The route enriches the SourceDescriptor.attributes map with:
providerTypeproviderProtocolproviderAccountKeyproviderFolderKeyproviderMessageKey(when available from Camel headers)providerThreadKey(when available)messageIdsubjectfrom
Notes
- The route intentionally does not depend on
TedProcessorProperties. - The route is designed for the NEW runtime only.
- The mail import behavior still relies on the NEW
MailDocumentIngestionAdapterfor MIME parsing and attachment import. - This step does not add replay/reprocessing yet.