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:
parent
399b85326f
commit
529d2f4f07
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user