misc/dashboard: tweak build fail notification email
R=rsc
CC=golang-dev
https://golang.org/cl/4170063
diff --git a/misc/dashboard/godashboard/const.py b/misc/dashboard/godashboard/const.py
index 26e1e48..b0110c6 100644
--- a/misc/dashboard/godashboard/const.py
+++ b/misc/dashboard/godashboard/const.py
@@ -8,5 +8,6 @@
mail_submit_subject = "New Project Submitted"
mail_fail_to = "golang-dev@googlegroups.com"
+mail_fail_reply_to = "golang-dev@googlegroups.com"
mail_fail_subject = "%s broken by %s"
diff --git a/misc/dashboard/godashboard/gobuild.py b/misc/dashboard/godashboard/gobuild.py
index 4cf0409..08d70ec 100644
--- a/misc/dashboard/godashboard/gobuild.py
+++ b/misc/dashboard/godashboard/gobuild.py
@@ -351,13 +351,14 @@
path = os.path.join(os.path.dirname(__file__), 'fail-notify.txt')
body = template.render(path, {
"builder": builder,
- "node": node,
+ "node": node[:12],
"user": user,
"desc": desc,
"loghash": loghash
})
mail.send_mail(
sender=const.mail_from,
+ reply_to=const.mail_fail_reply_to,
to=const.mail_fail_to,
subject=subject,
body=body