This commit is contained in:
2026-01-03 05:21:55 +05:30
parent 278f0a3d40
commit 412a9c7bec
22 changed files with 950 additions and 0 deletions

20
mail_intake/config.py Normal file
View File

@@ -0,0 +1,20 @@
from dataclasses import dataclass
from typing import Optional
@dataclass(frozen=True)
class MailIntakeConfig:
"""
Global configuration for mail-intake.
This configuration is intentionally explicit and immutable.
No implicit environment reads or global state.
"""
provider: str = "gmail"
user_id: str = "me"
readonly: bool = True
# Provider-specific paths (optional at this layer)
credentials_path: Optional[str] = None
token_path: Optional[str] = None