Improving e-mail message; adding X-* header

This commit is contained in:
Sergio Durigan Junior 2014-12-25 13:48:23 -05:00
parent bba18fb712
commit d1d94514e6

View file

@ -136,7 +136,7 @@ send to the gdb-testers mailing list."""
# URL to find more info about what went wrong. # URL to find more info about what went wrong.
text += "Log URL(s):\n" text += "Log URL(s):\n"
for ss in ss_list: for ss in ss_list:
text += "\t<http://sdj-gdbbuild.usersys.redhat.com/%s/%s>\n" % (name, ss.revision) text += "\t<%s/results/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision)
# Who's to blame? # Who's to blame?
text += "Author(s):\n" text += "Author(s):\n"
@ -180,7 +180,8 @@ mn = mail.MailNotifier(fromaddr = "sergiodj@redhat.com",
relayhost = "smtp.corp.redhat.com", relayhost = "smtp.corp.redhat.com",
mode = ('failing'), mode = ('failing'),
smtpPort = 25, smtpPort = 25,
messageFormatter = MessageGDBTesters) messageFormatter = MessageGDBTesters,
extraHeaders = { 'X-GDB-Buildbot' : '1' })
c['status'].append (mn) c['status'].append (mn)