Fixing breakage email To: list
This commit is contained in:
parent
4580e75c97
commit
e4d72f98f7
1 changed files with 3 additions and 1 deletions
|
@ -242,6 +242,7 @@ subsequent commits are made after X, by different people."""
|
|||
|
||||
rev = change.revision
|
||||
to = change.who.encode ('ascii', 'ignore').decode ('ascii')
|
||||
to_list = [ to ]
|
||||
title = change.comments.split ('\n')[0]
|
||||
|
||||
sbj = 'Oh dear. I regret to inform you that commit %s might be unfortunate' % change.revision
|
||||
|
@ -266,11 +267,12 @@ subsequent commits are made after X, by different people."""
|
|||
mail['Subject'] = sbj
|
||||
mail['From'] = 'gdb-buildbot@sergiodj.net'
|
||||
to += ", gdb-patches@sourceware.org"
|
||||
to_list.append ('gdb-patches@sourceware.org')
|
||||
mail['To'] = to
|
||||
mail['Reply-To'] = 'gdb-patches@sourceware.org'
|
||||
|
||||
s = smtplib.SMTP ('localhost')
|
||||
s.sendmail (GDB_MAIL_FROM, [ to ], mail.as_string ())
|
||||
s.sendmail (GDB_MAIL_FROM, to_list, mail.as_string ())
|
||||
s.quit ()
|
||||
|
||||
def MessageGDBTesters (mode, name, build, results, master_status):
|
||||
|
|
Loading…
Reference in a new issue