aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-13 15:21:58 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-13 15:21:58 +0000
commitf930146969e88dd13e3cf0d58c4df170acf89e45 (patch)
treef5efedd4f2517560732d68c0d648003e7770e27e
parent50b8ed2bfef1ff58a2cadf9f2f016fe6a6988da2 (diff)
downloadmgaadvisories-f930146969e88dd13e3cf0d58c4df170acf89e45.tar
mgaadvisories-f930146969e88dd13e3cf0d58c4df170acf89e45.tar.gz
mgaadvisories-f930146969e88dd13e3cf0d58c4df170acf89e45.tar.bz2
mgaadvisories-f930146969e88dd13e3cf0d58c4df170acf89e45.tar.xz
mgaadvisories-f930146969e88dd13e3cf0d58c4df170acf89e45.zip
Don't send mail unless mode is set to site
-rw-r--r--lib/MGA/Advisories.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index 0bafc88..9146242 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -191,6 +191,7 @@ sub output_pages {
sub send_adv_mail {
my ($advdb) = @_;
return unless $config->{send_adv_mail} eq 'yes';
+ return unless $config->{mode} eq 'site';
my $template = Template->new(
INCLUDE_PATH => $config->{tmpl_dir},
);
@@ -226,6 +227,7 @@ sub send_adv_mail {
sub send_report_mail {
my ($advdb) = @_;
return unless $config->{send_report_mail} eq 'yes';
+ return unless $config->{mode} eq 'site';
return unless @report_logs;
my $template = Template->new(
INCLUDE_PATH => $config->{tmpl_dir},