From 37845c2936d3ab42d6c86bd00a4a5841cf879f71 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Fri, 21 Jun 2024 18:31:42 +0200 Subject: [PATCH] smtp: hide commit hash in user agent Signed-off-by: Nicola Murino --- internal/smtp/smtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/smtp/smtp.go b/internal/smtp/smtp.go index 308721bb..bb60073f 100644 --- a/internal/smtp/smtp.go +++ b/internal/smtp/smtp.go @@ -324,7 +324,7 @@ func (c *Config) getMailClientOptions() []mail.Option { func (c *Config) getSMTPClientAndMsg(to, bcc []string, subject, body string, contentType EmailContentType, attachments ...*mail.File) (*mail.Client, *mail.Msg, error) { msg := mail.NewMsg() - msg.SetUserAgent(version.GetServerVersion(" ", true)) + msg.SetUserAgent(version.GetServerVersion(" ", false)) var from string if c.From != "" {