Improving email notification. Now the root email's title looks like the one sent to gdb-cvs, and the author of the email is the commit's author

This commit is contained in:
Sergio Durigan Junior 2015-02-20 18:53:40 -05:00
parent b425a1e0f6
commit 6f1b79d087

View file

@ -160,9 +160,15 @@ def SendRootMessageGDBTesters (branch, change):
text += change.comments + "\n"
chg_title = change.comments.split ('\n')[0]
mail = MIMEText (text)
mail['Subject'] = "Test results for commit %s on branch %s" % (rev, branch)
mail['From'] = GDB_MAIL_FROM
if branch == 'master':
sbj = "[binutils-gdb] %s" % chg_title
else:
sbj = "[binutils-gdb/%s] %s" % (branch, chg_title)
mail['Subject'] = sbj
mail['From'] = change.who
mail['To'] = GDB_MAIL_TO
mail['Message-Id'] = "<%s@%s>" % (rev, socket.gethostname ())