Trying to fix bug with SendRootMessage

This commit is contained in:
Sergio Durigan Junior 2016-07-23 17:30:26 -04:00
parent 35a0c0af6d
commit e031f46ba3

View file

@ -194,12 +194,15 @@ def SendRootMessageGDBTesters (branch, change, rev,
mail['From'] = GDB_MAIL_FROM
if not istrysched:
mail['To'] = GDB_MAIL_TO
mailto = GDB_MAIL_TO
else:
mail['To'] = try_to
mail['Message-Id'] = "<%s@gdb-build>" % rev
mailto = try_to
print "==== MEU MAILTO %s" % mailto
mail['Message-Id'] = "<%s-try@gdb-build>" % rev
s = smtplib.SMTP ('localhost')
s.sendmail (GDB_MAIL_FROM, [ mail['To'] ], mail.as_string ())
s.sendmail (GDB_MAIL_FROM, [ mailto ], mail.as_string ())
s.quit ()
def make_breakage_lockfile_prefix ():
@ -569,7 +572,7 @@ mn_try = MyMailNotifier(fromaddr = GDB_MAIL_FROM,
messageFormatter = MessageGDBTestersTryBuild,
tags = [ "MAIL" ],
extraHeaders = { 'X-GDB-Buildbot' : '1',
'In-Reply-To' : WithProperties ("<%s@gdb-build>",
'In-Reply-To' : WithProperties ("<%s-try@gdb-build>",
'got_revision') })
c['status'].append (mn)