aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/MGA/Advisories.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7b96388..a904661 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- add 'no_mail' option in advisory file to disable advisory mail
+
Version 0.7
- list unpublished advisories when mode is set to 'qa'
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 = {