Initial commit: IMAP Mail Filter Service
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from pathlib import Path
|
||||
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
database_url: str = "sqlite:///data/mailfilter.db"
|
||||
yaml_config_path: str = "config/filters.yaml"
|
||||
encryption_key: str = ""
|
||||
yaml_sync_on_startup: bool = True
|
||||
log_level: str = "INFO"
|
||||
|
||||
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user