From 791a6eddd6168e98d7507ef4a5eaba015ca0838c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 7 Jan 2010 13:53:05 +0000 Subject: [PATCH] hack to try and prevent too many newlines --- src/script/hydra_build.pl | 3 ++- src/script/hydra_scheduler.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/script/hydra_build.pl b/src/script/hydra_build.pl index ec2ee1cc..7b2aee9b 100755 --- a/src/script/hydra_build.pl +++ b/src/script/hydra_build.pl @@ -182,8 +182,9 @@ sub sendEmailNotification { From => "Hydra Build Daemon <$sender>", Subject => "Hydra job $jobName build " . $build->id . " $status", ], - body => $body, + body => "", ); + $email->body_set($body); print $email->as_string if $ENV{'HYDRA_MAIL_TEST'}; diff --git a/src/script/hydra_scheduler.pl b/src/script/hydra_scheduler.pl index 29740c21..0a0cf1bb 100755 --- a/src/script/hydra_scheduler.pl +++ b/src/script/hydra_scheduler.pl @@ -67,8 +67,9 @@ sub sendJobsetErrorNotification() { From => "Hydra Build Daemon <$sender>", Subject => "Hydra $projectName:$jobsetName evaluation error", ], - body => $body, + body => "" ); + $email->body_set($body); print $email->as_string if $ENV{'HYDRA_MAIL_TEST'};