Explorar o código

smtp: hide commit hash in user agent

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino hai 1 ano
pai
achega
37845c2936
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/smtp/smtp.go

+ 1 - 1
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 != "" {