From e4db9d1d91924d53314f54013aafa1ff0379610c Mon Sep 17 00:00:00 2001 From: Yasunari Momoi Date: Fri, 16 Dec 2016 11:22:09 +0900 Subject: [PATCH] Add date header to report mail. --- report/mail.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/report/mail.go b/report/mail.go index 06bbaf9a..a8ba4271 100644 --- a/report/mail.go +++ b/report/mail.go @@ -23,6 +23,7 @@ import ( "net/mail" "net/smtp" "strings" + "time" "github.com/future-architect/vuls/config" "github.com/future-architect/vuls/models" @@ -52,6 +53,7 @@ func (w MailWriter) Write(scanResults []models.ScanResult) (err error) { headers["To"] = to headers["Cc"] = cc headers["Subject"] = subject + headers["Date"] = time.Now().Format(time.RFC1123Z) headers["Content-Type"] = "text/plain; charset=utf-8" var message string