From c1e6797d39466383ca472db1e37dbcf62fc97b4a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Jul 2009 18:06:34 +0000 Subject: [PATCH] * Allow overriding the sender email address. --- src/script/hydra_build.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script/hydra_build.pl b/src/script/hydra_build.pl index 6deebf57..1bfc7dd5 100755 --- a/src/script/hydra_build.pl +++ b/src/script/hydra_build.pl @@ -54,7 +54,8 @@ sub sendEmailNotification { my $status = $build->resultInfo->buildstatus == 0 ? "SUCCEEDED" : "FAILED"; - my $sender = ($ENV{'USER'} || "hydra") . "@" . hostname_long . "\n"; + my $sender = $config{'notification_sender'} || + (($ENV{'USER'} || "hydra") . "@" . hostname_long . "\n"); my $selfURI = $config{'base_uri'} || "http://localhost:3000";