incomming mail processing

This commit is contained in:
Olaf
2026-09-30 11:53:12 +02:00
parent b89d12769c
commit 0055cc197e
14 changed files with 656 additions and 1 deletions
+7
View File
@@ -47,6 +47,13 @@ class Settings:
smtp_password: str = os.getenv('LINKLOG_SMTP_PASSWORD', '')
smtp_from: str = os.getenv('LINKLOG_SMTP_FROM', 'LinkLog <no-reply@localhost>')
smtp_use_tls: bool = os.getenv('LINKLOG_SMTP_USE_TLS', 'true').lower() in {'1', 'true', 'yes'}
imap_host: str = os.getenv('LINKLOG_IMAP_HOST', '')
imap_port: int = int(os.getenv('LINKLOG_IMAP_PORT', '993'))
imap_username: str = os.getenv('LINKLOG_IMAP_USERNAME', '')
imap_password: str = os.getenv('LINKLOG_IMAP_PASSWORD', '')
imap_mailbox: str = os.getenv('LINKLOG_IMAP_MAILBOX', 'INBOX')
imap_use_ssl: bool = os.getenv('LINKLOG_IMAP_USE_SSL', 'true').lower() in {'1', 'true', 'yes'}
imap_poll_interval_seconds: int = int(os.getenv('LINKLOG_IMAP_POLL_INTERVAL_SECONDS', '60'))
email_verification_expiry_hours: int = int(os.getenv('LINKLOG_EMAIL_VERIFICATION_EXPIRY_HOURS', '24'))
password_reset_expiry_hours: int = int(os.getenv('LINKLOG_PASSWORD_RESET_EXPIRY_HOURS', '1'))
mastodon_client_name: str = os.getenv('LINKLOG_MASTODON_CLIENT_NAME', 'LinkLog')