From 6f1b79d08783d52649c8d5c7a0b02aff22d21576 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 20 Feb 2015 18:53:40 -0500 Subject: [PATCH] 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 --- master.cfg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index e8c67cf..b1f5fb0 100644 --- a/master.cfg +++ b/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 ())