diff -up logwatch-7.3.4/scripts/logwatch.pl.pom logwatch-7.3.4/scripts/logwatch.pl
--- logwatch-7.3.4/scripts/logwatch.pl.pom 2008-01-08 14:51:38.000000000 +0100
+++ logwatch-7.3.4/scripts/logwatch.pl 2008-01-08 14:53:10.000000000 +0100
@@ -79,6 +79,13 @@ $Config{'output'} = "unformatted";
$Config{'encode'} = 0;
$Config{'html_wrap'} = 80;
+#if MAILTO is set in the environment, grab it as we may be being used by
+#cron or anacron, which do not set command line args.
+if ($ENV{'MAILTO'})
+{
+ $Config{'mailto'} = $ENV{'MAILTO'};
+}
+
if (-e "$ConfigDir/conf/html/header.html") {
$Config{'html_header'} = "$ConfigDir/conf/html/header.html";
} elsif (-e "$BaseDir/dist.conf/html/header.html") {
@@ -312,6 +319,7 @@ for (my $i = 0; $i <= $#ReadConfigNames;
CleanVars();
+
if ($OldMailTo ne $Config{'mailto'}) {
$Config{'print'} = 0;
} elsif ($OldPrint ne $Config{'print'}) {