Signed-off-by: Shea Levy <shea@shealevy.com>
J4C4V6GLQUZLVB4JPPDS233YI2MPP6LT3WALHWBXOKRKNKRTWSWQC
# Do we want to send mail for this build?
unless ($ENV{'HYDRA_FORCE_SEND_MAIL'}) {
next unless $b->jobset->enableemail;
# If there is a previous (that is not cancelled or aborted) build
# with same buildstatus, do not send email.
next if defined $prevBuild && ($b->buildstatus == $prevBuild->buildstatus);
}