Update email.go

This commit is contained in:
Max H 2019-10-15 16:41:40 +02:00 committed by GitHub
parent 505a5ec715
commit fd2a006c6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,10 +64,7 @@ func newEmailNotifier(c *cobra.Command, acceptedLogLevels []log.Level) t.Notifie
} }
func (e *emailTypeNotifier) buildMessage(entries []*log.Entry) []byte { func (e *emailTypeNotifier) buildMessage(entries []*log.Entry) []byte {
// If variable SubjectTag is empty define emailSubject as "Watchtower updates". if SubjectTag == "" {
// If variable SubjectTag is set define emailSubject as "$SubjectTag Watchtower updates"
// For example: SubjectTag=[Server Munich] -> "[Server Munich] Watchtower updates ..."
if SubjectTag == nil {
emailSubject := "Watchtower updates" emailSubject := "Watchtower updates"
} else { } else {
emailSubject := SubjectTag + " Watchtower updates" emailSubject := SubjectTag + " Watchtower updates"