diff --git a/exim.changes b/exim.changes index 7a99c2e..5ce5604 100644 --- a/exim.changes +++ b/exim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jun 15 14:27:56 CEST 2008 - poeml@suse.de + +- fix logic of decision (in logrotate snippet) whether to send the + weekly reports + ------------------------------------------------------------------- Thu Jan 10 19:25:40 CET 2008 - poeml@suse.de diff --git a/exim.logrotate b/exim.logrotate index 7dd2b4c..5af9712 100644 --- a/exim.logrotate +++ b/exim.logrotate @@ -20,7 +20,7 @@ mkdir $eximstatsdir eximstats -html -charts -chartdir $eximstatsdir main.log > $eximstatsdir/index.html fi - if ! test -e no_report_mail -a "$EXIM_REPORT_WEEKLY_SEND" = yes; then mail -s "$(sed -n '2{p;q;}' < $report) ($(hostname))" postmaster < $report; fi + if ! test -e no_report_mail && test "$EXIM_REPORT_WEEKLY_SEND" = yes; then mail -s "$(sed -n '2{p;q;}' < $report) ($(hostname))" postmaster < $report; fi if test -f $report.gz; then old $report.gz; fi gzip -f -9 $report fi