Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Update subject template to "digest yyyy-mm-dd"
Browse files Browse the repository at this point in the history
  • Loading branch information
farnasirim committed Jan 15, 2019
1 parent 37a7444 commit 4af2665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/digest/digest.go
Expand Up @@ -192,7 +192,7 @@ func digestFunc(cmd *cobra.Command, args []string) {
`

now := time.Now()
subject := fmt.Sprintf("%d-%d-%d", now.Year(), now.Month(), now.Day())
subject := fmt.Sprintf("digest %d-%d-%d", now.Year(), now.Month(), now.Day())
if err := smtpServer.SendMailHtml(smtpTo, subject, []byte(diff)); err != nil {
log.Fatalln(err.Error())
return
Expand Down

0 comments on commit 4af2665

Please sign in to comment.