From 51aad84da5fff259ab6198f20fa8f52d38ddbfea Mon Sep 17 00:00:00 2001 From: George Dumitrescu Date: Thu, 1 Oct 2026 19:49:40 +0300 Subject: [PATCH] feat: suggest the spamassassin preset on Mailpit's page Mailpit is built into lerd and has no definition here that could point at its scoring backend, so the spamassassin preset names Mailpit in a new suggest_for key, and lerd offers it on Mailpit's page. The key is carried into the index and declared in schema 2 as dropped on the way down, so no tree an older binary reads ever holds it. Closes #39 --- .github/scripts/render_schema.py | 2 +- schema/2.yaml | 2 ++ schema/2/services/index.json | 5 ++++- schema/2/services/spamassassin.yaml | 4 ++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/scripts/render_schema.py b/.github/scripts/render_schema.py index d05b1c2..cd13800 100644 --- a/.github/scripts/render_schema.py +++ b/.github/scripts/render_schema.py @@ -35,7 +35,7 @@ SCHEMA_DIR = ROOT / "schema" INDEX_FIELDS = ["name", "description", "family", "dashboard", "image", "category", - "icon", "color", "admin_for", "admin_rank", "depends_on", + "icon", "color", "admin_for", "admin_rank", "suggest_for", "depends_on", "versions", "default_version", "env_role"] diff --git a/schema/2.yaml b/schema/2.yaml index 68af76f..49b0e85 100644 --- a/schema/2.yaml +++ b/schema/2.yaml @@ -21,6 +21,8 @@ changes: # about publishing a tree that means what it says rather than about safety. - path: admin_rank downgrade: drop + - path: suggest_for + downgrade: drop - path: dashboard_follows_color_scheme downgrade: drop - path: dashboard_login diff --git a/schema/2/services/index.json b/schema/2/services/index.json index 9c2be64..2e8e5f8 100644 --- a/schema/2/services/index.json +++ b/schema/2/services/index.json @@ -384,7 +384,10 @@ "image": "docker.io/axllent/spamassassin:3", "category": "mail", "icon": "mail", - "color": "#cc0000" + "color": "#cc0000", + "suggest_for": [ + "mailpit" + ] } ] } diff --git a/schema/2/services/spamassassin.yaml b/schema/2/services/spamassassin.yaml index 1e5bf12..56a84bf 100644 --- a/schema/2/services/spamassassin.yaml +++ b/schema/2/services/spamassassin.yaml @@ -9,3 +9,7 @@ family: spamassassin category: mail icon: mail color: "#cc0000" +# Mailpit is built into lerd, so its page offers this preset rather than the +# other way round. +suggest_for: + - mailpit