From deaf608758567439ad27bf7c1d5c635d6eaa3667 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 17 Jun 2013 15:01:37 +0000 Subject: Add 'no_mail' option in advisory file to disable advisory mail --- lib/MGA/Advisories.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 = { -- cgit v1.2.1