mesos / chronos

Fault tolerant job scheduler for Mesos which handles dependencies and ISO8601 based schedules
http://mesos.github.io/chronos/
Apache License 2.0
4.39k stars 529 forks source link

Add X-mailer to Chronos notification e-mail #643

Open wjbakker opened 8 years ago

wjbakker commented 8 years ago

In order to distinguish automatically generated e-mail messages by Chronos and user replies on these messages, I would like to depend on the X-mailer field. Currently, Chronos does not set the X-mailer field.

Please add the following to org/apache/mesos/chronos/notification/MailClient.scala:

email.addHeader("X-Mailer", "Chronos")

See also: http://commons.apache.org/proper/commons-email/apidocs/org/apache/commons/mail/Email.html#addHeader%28java.lang.String,%20java.lang.String%29

tagliola commented 8 years ago

+1. To allow for more filtering, appending the name of the job would be nice.