From a231913ab273f427697f2d27d615b495f6e160bb Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 25 Oct 2026 20:47:14 +0100 Subject: feat(receiver): add email notifications for new webmentions Send an email after a newly received Webmention is successfully verified, with SMTP delivery configurable through Flask-Mail. Avoid notifications for resubmissions and manual reverification, and keep the persisted verification result unchanged if notification enqueueing fails. --- webmentions_ssg/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webmentions_ssg/config.py') diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index 72842c4..afe7126 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -18,9 +18,19 @@ class DefaultConfig: LOGFILE_MAX_BYTES = 20_000_000 LOGFILE_BACKUP_COUNT = 10 SQLALCHEMY_DATABASE_URI = "sqlite:///webmentions-ssg.db" + WEBMENTIONS_SSG_SOURCE_DIRECTORY = None WEBMENTIONS_SSG_SOURCE_BASE_URL = None WEBMENTIONS_SSG_SCANNER_SCHEDULE = "0 * * * *" + WEBMENTIONS_SSG_NOTIFICATION_EMAIL = None + + MAIL_SERVER = "localhost" + MAIL_PORT = 25 + MAIL_USE_TLS = False + MAIL_USE_SSL = False + MAIL_USERNAME = None + MAIL_PASSWORD = None + MAIL_DEFAULT_SENDER = None class DevelopmentConfig(DefaultConfig): -- cgit v1.3.1