Skip to content

src/dazzle_back/email/inbound.py

Generated: 2026-03-30T04:38:45.939235+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Inbound email adapters for DAZZLE.

Handles receiving emails from various sources and converting them to raw mail events.

Implementations: - MailpitInboundAdapter: Polls Mailpit HTTP API for dev - SMTPInboundAdapter: SMTP server for edge ingestion (future)

Key Exports

  • RawMailArtifact
  • InboundMailAdapter
  • MailpitInboundAdapter
  • SMTPInboundAdapter
  • provider_name
  • fetch_new_messages
  • mark_processed
  • provider_name
  • fetch_new_messages
  • mark_processed
  • health_check
  • provider_name
  • fetch_new_messages
  • mark_processed
  • start_server

Dependencies

Imports

  • __future__.annotations
  • logging
  • uuid
  • abc.ABC
  • abc.abstractmethod
  • dataclasses.dataclass
  • datetime.UTC
  • datetime.datetime
  • email.message_from_bytes
  • email.message.Message
  • email.utils.parseaddr
  • typing.TYPE_CHECKING
  • dazzle_back.runtime.http_utils.http_call_with_retry
  • blob_store.BlobStore
  • httpx
  • httpx

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

No related tests found.

Notes

This page was automatically generated by tools/gen_reference_docs.py.