Trying to fix bug with SendRootMessage
This commit is contained in:
parent
35a0c0af6d
commit
e031f46ba3
1 changed files with 6 additions and 3 deletions
|
@ -194,12 +194,15 @@ def SendRootMessageGDBTesters (branch, change, rev,
|
||||||
mail['From'] = GDB_MAIL_FROM
|
mail['From'] = GDB_MAIL_FROM
|
||||||
if not istrysched:
|
if not istrysched:
|
||||||
mail['To'] = GDB_MAIL_TO
|
mail['To'] = GDB_MAIL_TO
|
||||||
|
mailto = GDB_MAIL_TO
|
||||||
else:
|
else:
|
||||||
mail['To'] = try_to
|
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 = smtplib.SMTP ('localhost')
|
||||||
s.sendmail (GDB_MAIL_FROM, [ mail['To'] ], mail.as_string ())
|
s.sendmail (GDB_MAIL_FROM, [ mailto ], mail.as_string ())
|
||||||
s.quit ()
|
s.quit ()
|
||||||
|
|
||||||
def make_breakage_lockfile_prefix ():
|
def make_breakage_lockfile_prefix ():
|
||||||
|
@ -569,7 +572,7 @@ mn_try = MyMailNotifier(fromaddr = GDB_MAIL_FROM,
|
||||||
messageFormatter = MessageGDBTestersTryBuild,
|
messageFormatter = MessageGDBTestersTryBuild,
|
||||||
tags = [ "MAIL" ],
|
tags = [ "MAIL" ],
|
||||||
extraHeaders = { 'X-GDB-Buildbot' : '1',
|
extraHeaders = { 'X-GDB-Buildbot' : '1',
|
||||||
'In-Reply-To' : WithProperties ("<%s@gdb-build>",
|
'In-Reply-To' : WithProperties ("<%s-try@gdb-build>",
|
||||||
'got_revision') })
|
'got_revision') })
|
||||||
|
|
||||||
c['status'].append (mn)
|
c['status'].append (mn)
|
||||||
|
|
Loading…
Reference in a new issue