From a9b4b33e25ea41e2e5f483c7ad88fad831ec057e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 07:02:19 +0000 Subject: [PATCH] Replace deprecated GRAMPSWEB_EMAIL_USE_TLS with EMAIL_USE_SSL and EMAIL_USE_STARTTLS The upstream Gramps Web project deprecated EMAIL_USE_TLS in favor of EMAIL_USE_SSL (for port 465) and EMAIL_USE_STARTTLS (for port 587). This updates the addon config schema and documentation accordingly. Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- grampsweb/README.md | 5 +++-- grampsweb/config.yaml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/grampsweb/README.md b/grampsweb/README.md index 7d0ae5262..2e7ebf844 100644 --- a/grampsweb/README.md +++ b/grampsweb/README.md @@ -68,7 +68,8 @@ Webui can be found at . |--------|------|-------------| | `GRAMPSWEB_EMAIL_HOST` | str | SMTP server hostname | | `GRAMPSWEB_EMAIL_PORT` | int | SMTP server port | -| `GRAMPSWEB_EMAIL_USE_TLS` | bool | Use TLS encryption | +| `GRAMPSWEB_EMAIL_USE_SSL` | bool | Use SSL encryption (for port 465) | +| `GRAMPSWEB_EMAIL_USE_STARTTLS` | bool | Use STARTTLS encryption (for port 587) | | `GRAMPSWEB_EMAIL_HOST_USER` | str | SMTP username | | `GRAMPSWEB_EMAIL_HOST_PASSWORD` | str | SMTP password | | `GRAMPSWEB_DEFAULT_FROM_EMAIL` | str | Default sender email address | @@ -85,7 +86,7 @@ certfile: "fullchain.pem" keyfile: "privkey.pem" GRAMPSWEB_EMAIL_HOST: "smtp.gmail.com" GRAMPSWEB_EMAIL_PORT: 587 -GRAMPSWEB_EMAIL_USE_TLS: true +GRAMPSWEB_EMAIL_USE_STARTTLS: true GRAMPSWEB_EMAIL_HOST_USER: "your-email@gmail.com" GRAMPSWEB_EMAIL_HOST_PASSWORD: "your-app-password" GRAMPSWEB_DEFAULT_FROM_EMAIL: "gramps@example.com" diff --git a/grampsweb/config.yaml b/grampsweb/config.yaml index 51262a4f5..2562436e6 100644 --- a/grampsweb/config.yaml +++ b/grampsweb/config.yaml @@ -102,7 +102,8 @@ schema: GRAMPSWEB_BASE_URL: str? GRAMPSWEB_EMAIL_HOST: str? GRAMPSWEB_EMAIL_PORT: int? - GRAMPSWEB_EMAIL_USE_TLS: bool? + GRAMPSWEB_EMAIL_USE_SSL: bool? + GRAMPSWEB_EMAIL_USE_STARTTLS: bool? GRAMPSWEB_EMAIL_HOST_USER: str? GRAMPSWEB_EMAIL_HOST_PASSWORD: password? GRAMPSWEB_DEFAULT_FROM_EMAIL: email?