From: Richard Purdie Date: Tue, 17 Jun 2008 13:11:06 +0000 (+0000) Subject: poky-autobuild-notifier.bbclass: Make sure the message is sent to all recipients X-Git-Tag: 2011-1~8804 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=30d39ad5785beb8a1d5f02614a5207f227d73e24;p=openembedded-core.git 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 --- diff --git a/meta/classes/poky-autobuild-notifier.bbclass b/meta/classes/poky-autobuild-notifier.bbclass index 2ae6d5cf8f..5b0a77cb7a 100644 --- a/meta/classes/poky-autobuild-notifier.bbclass +++ b/meta/classes/poky-autobuild-notifier.bbclass @@ -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 " 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