poky-autobuild-notifier.bbclass: Make sure the message is sent to all recipients
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4682 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
103372246d
commit
30d39ad578
|
@ -19,8 +19,11 @@ def do_autobuilder_failure_report(event):
|
|||
|
||||
version = data.expand("${PN}: ${PV}-${PR}", event.data)
|
||||
|
||||
recipients = ["richard@o-hand.com", "ebassi@o-hand.com", "pippin@o-hand.com"]
|
||||
COMMASPACE = ', '
|
||||
|
||||
message = email.Message.Message()
|
||||
message["To"] = "richard@o-hand.com, ebassi@o-hand.com, pippin@o-hand.com"
|
||||
message["To"] = COMMASPACE.join(recipients)
|
||||
message["From"] = "Poky Autobuilder Failure <poky@o-hand.com>"
|
||||
message["Subject"] = "Poky Autobuild Failure Report - " + version
|
||||
|
||||
|
@ -38,7 +41,7 @@ def do_autobuilder_failure_report(event):
|
|||
message.set_payload(mesg)
|
||||
|
||||
mailServer = smtplib.SMTP("pug.o-hand.com")
|
||||
mailServer.sendmail(message["From"], message["To"], message.as_string())
|
||||
mailServer.sendmail(message["From"], recipients, message.as_string())
|
||||
mailServer.quit()
|
||||
|
||||
# we want to be an event handler
|
||||
|
|
Loading…
Reference in New Issue