From 5ef48e7cb89181bf73e8f538c61ecfdf0eee8442 Mon Sep 17 00:00:00 2001
From: Florian Schwab <231497+ydkn@users.noreply.github.com>
Date: Mon, 10 Feb 2025 10:44:36 +0100
Subject: [PATCH] quote smtp from, return and reply addresses (#162)

---
 templates/configmap-env.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/configmap-env.yaml b/templates/configmap-env.yaml
index fe365a7..5327d04 100644
--- a/templates/configmap-env.yaml
+++ b/templates/configmap-env.yaml
@@ -137,10 +137,10 @@ data:
   SMTP_ENABLE_STARTTLS_AUTO: {{ . | quote }}
   {{- end }}
   {{- with .Values.mastodon.smtp.from_address }}
-  SMTP_FROM_ADDRESS: {{ . }}
+  SMTP_FROM_ADDRESS: {{ . | quote }}
   {{- end }}
   {{- with .Values.mastodon.smtp.return_path }}
-  SMTP_RETURN_PATH: {{ . }}
+  SMTP_RETURN_PATH: {{ . | quote }}
   {{- end }}
   {{- with .Values.mastodon.smtp.openssl_verify_mode }}
   SMTP_OPENSSL_VERIFY_MODE: {{ . }}
@@ -149,7 +149,7 @@ data:
   SMTP_PORT: {{ . | quote }}
   {{- end }}
   {{- with .Values.mastodon.smtp.reply_to }}
-  SMTP_REPLY_TO: {{ . }}
+  SMTP_REPLY_TO: {{ . | quote }}
   {{- end }}
   {{- with .Values.mastodon.smtp.server }}
   SMTP_SERVER: {{ . }}