diff options
Diffstat (limited to 'meta/classes/poky-autobuild-notifier.bbclass')
-rw-r--r-- | meta/classes/poky-autobuild-notifier.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
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): | |||
19 | 19 | ||
20 | version = data.expand("${PN}: ${PV}-${PR}", event.data) | 20 | version = data.expand("${PN}: ${PV}-${PR}", event.data) |
21 | 21 | ||
22 | recipients = ["richard@o-hand.com", "ebassi@o-hand.com", "pippin@o-hand.com"] | ||
23 | COMMASPACE = ', ' | ||
24 | |||
22 | message = email.Message.Message() | 25 | message = email.Message.Message() |
23 | message["To"] = "richard@o-hand.com, ebassi@o-hand.com, pippin@o-hand.com" | 26 | message["To"] = COMMASPACE.join(recipients) |
24 | message["From"] = "Poky Autobuilder Failure <poky@o-hand.com>" | 27 | message["From"] = "Poky Autobuilder Failure <poky@o-hand.com>" |
25 | message["Subject"] = "Poky Autobuild Failure Report - " + version | 28 | message["Subject"] = "Poky Autobuild Failure Report - " + version |
26 | 29 | ||
@@ -38,7 +41,7 @@ def do_autobuilder_failure_report(event): | |||
38 | message.set_payload(mesg) | 41 | message.set_payload(mesg) |
39 | 42 | ||
40 | mailServer = smtplib.SMTP("pug.o-hand.com") | 43 | mailServer = smtplib.SMTP("pug.o-hand.com") |
41 | mailServer.sendmail(message["From"], message["To"], message.as_string()) | 44 | mailServer.sendmail(message["From"], recipients, message.as_string()) |
42 | mailServer.quit() | 45 | mailServer.quit() |
43 | 46 | ||
44 | # we want to be an event handler | 47 | # we want to be an event handler |