aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-17 15:01:37 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-17 15:01:37 +0000
commitdeaf608758567439ad27bf7c1d5c635d6eaa3667 (patch)
tree83cd0dde583032e820135058ae23966f1c1b14c7 /lib
parent0944651399812a5410c4fb9e5de6a09cf797f576 (diff)
downloadmgaadvisories-deaf608758567439ad27bf7c1d5c635d6eaa3667.tar
mgaadvisories-deaf608758567439ad27bf7c1d5c635d6eaa3667.tar.gz
mgaadvisories-deaf608758567439ad27bf7c1d5c635d6eaa3667.tar.bz2
mgaadvisories-deaf608758567439ad27bf7c1d5c635d6eaa3667.tar.xz
mgaadvisories-deaf608758567439ad27bf7c1d5c635d6eaa3667.zip
Add 'no_mail' option in advisory file to disable advisory mail
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index a69cf16..a5071e4 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -243,6 +243,7 @@ sub send_adv_mail {
INCLUDE_PATH => $config->{tmpl_dir},
);
foreach my $adv (keys %{$advdb->{advisories}}) {
+ next if $advdb->{advisories}{$adv}{no_mail};
next if $advdb->{advisories}{$adv}{status}{mail_sent};
my $mailcontent;
my $vars = {