diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index 87e1fb4b..f18a6569 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -84,6 +84,9 @@ sub buildFinished { if (scalar keys %{authors} > 0) { my @x = map { "$_ <$authors->{$_}>" } (sort keys %{$authors}); $authorList = join(" or ", scalar @x > 1 ? join(", ", @[0..scalar @x - 2]): (), $x[-1]); + if ($build->jobset->emailresponsible) { + $addresses{$authors->{$_}} = { builds => [ $build ] } foreach (keys %{$authors}); + } } # Send an email to each interested address.