summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-06-17 13:11:06 +0000
committerRichard Purdie <richard@openedhand.com>2008-06-17 13:11:06 +0000
commit30d39ad5785beb8a1d5f02614a5207f227d73e24 (patch)
treefc438faa2da6d56805c6579d1af4d0b052de6e6d /meta
parent103372246d4263677d14ffd63cdc7483f3831dd1 (diff)
downloadopenembedded-core-30d39ad5785beb8a1d5f02614a5207f227d73e24.tar.gz
openembedded-core-30d39ad5785beb8a1d5f02614a5207f227d73e24.tar.bz2
openembedded-core-30d39ad5785beb8a1d5f02614a5207f227d73e24.tar.xz
openembedded-core-30d39ad5785beb8a1d5f02614a5207f227d73e24.zip
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
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/poky-autobuild-notifier.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/poky-autobuild-notifier.bbclass b/meta/classes/poky-autobuild-notifier.bbclass
index 2ae6d5cf8..5b0a77cb7 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 <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