From c717f8d15d7450c686beb64aa3f7091371c5a2f7 Mon Sep 17 00:00:00 2001 From: hogehogehugahuga Date: Wed, 14 Dec 2016 14:13:29 +0900 Subject: [PATCH] Add Content-Type header to report/mail.go . (fix pull request, "utf8" to "utf-8".) I did the following test. - compile vuls with this fix. - I executed the following command and confirmed that garbled display is not done. + vuls scan -lang=en -report-mail -cve-dictionary... + vuls scan -lang=ja -report-mail -cve-dictionary... Mail header is as follows. Message-Id: <...> Subject: <...> Content-Type: text/plain; charset=utf8 From: <...> To: <...> Cc: <...> --- report/mail.go | 1 + 1 file changed, 1 insertion(+) diff --git a/report/mail.go b/report/mail.go index 21803874..06bbaf9a 100644 --- a/report/mail.go +++ b/report/mail.go @@ -52,6 +52,7 @@ func (w MailWriter) Write(scanResults []models.ScanResult) (err error) { headers["To"] = to headers["Cc"] = cc headers["Subject"] = subject + headers["Content-Type"] = "text/plain; charset=utf-8" var message string for k, v := range headers {