mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
Update email.go
This commit is contained in:
parent
505a5ec715
commit
fd2a006c6b
1 changed files with 1 additions and 4 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue