Config
mail_intake.config
Global configuration models for Mail Intake.
Summary
This module defines the top-level configuration object used to control mail ingestion behavior across adapters, authentication providers, and ingestion workflows.
Configuration is intentionally explicit, immutable, and free of implicit environment reads to ensure predictability and testability.
Classes
MailIntakeConfig
dataclass
Global configuration for mail-intake.
Notes
Guarantees:
1 2 3 4 5 | |
Attributes
credentials_path
class-attribute
instance-attribute
Optional path to provider credentials configuration.
provider
class-attribute
instance-attribute
Identifier of the mail provider to use (e.g., "gmail").
readonly
class-attribute
instance-attribute
Whether ingestion should operate in read-only mode.
token_path
class-attribute
instance-attribute
Optional path to persisted authentication tokens.
user_id
class-attribute
instance-attribute
Provider-specific user identifier. Defaults to the authenticated user.