From f930146969e88dd13e3cf0d58c4df170acf89e45 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 13 Jun 2013 15:21:58 +0000 Subject: Don't send mail unless mode is set to site --- lib/MGA/Advisories.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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}, -- cgit v1.2.1