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:
parent
b425a1e0f6
commit
6f1b79d087
1 changed files with 8 additions and 2 deletions
10
master.cfg
10
master.cfg
|
@ -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 ())
|
||||
|
||||
|
|
Loading…
Reference in a new issue