incomming mail processing
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user