fix sending of report mails

OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=72
This commit is contained in:
Peter Poeml 2008-06-15 12:28:46 +00:00 committed by Git OBS Bridge
parent 399b85326f
commit 529d2f4f07
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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