fixed email bug

This commit is contained in:
Rob Vermaas 2010-09-01 08:52:54 +00:00
parent 1495e04d9d
commit 2e02291092

View file

@ -5,6 +5,7 @@ use File::Basename;
use File::stat; use File::stat;
use Hydra::Schema; use Hydra::Schema;
use Hydra::Helper::Nix; use Hydra::Helper::Nix;
use Hydra::Helper::AddBuilds;
use Email::Sender::Simple qw(sendmail); use Email::Sender::Simple qw(sendmail);
use Email::Sender::Transport::SMTP; use Email::Sender::Transport::SMTP;
use Email::Simple; use Email::Simple;
@ -82,7 +83,7 @@ sub sendEmailNotification {
die unless defined $build->resultInfo; die unless defined $build->resultInfo;
return if !($build->maintainers && $build->jobset->enableemail); return if ! ( $build->jobset->enableemail && ($build->maintainers neq "" || $build->jobset->emailoverride neq "") );
# Do we want to send mail? # Do we want to send mail?