From 529d2f4f076cc3aa6d03bea3e8c479bddbce3df7b2d4d5ba7e451808e0e8c7c1 Mon Sep 17 00:00:00 2001 From: Peter Poeml Date: Sun, 15 Jun 2008 12:28:46 +0000 Subject: [PATCH] fix sending of report mails OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=72 --- exim.changes | 6 ++++++ exim.logrotate | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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