Bug#426840: please allow options to eximstats in /etc/cron.daily/exim4-base
Florian Schlichting
f.schlichting at ucl.ac.uk
Mon Jul 30 16:49:15 UTC 2007
Hi Marc,
sorry for taking so long to respond. This is a patch, tested locally:
--- exim4-base.orig 2007-07-30 18:33:00.000000000 +0200
+++ /etc/cron.daily/exim4-base 2007-07-30 18:34:33.000000000 +0200
@@ -11,6 +11,7 @@
# checking mechanisms or don't care.
E4BCD_DAILY_REPORT_TO=""
+E4BCD_DAILY_REPORT_OPTIONS=""
E4BCD_WATCH_PANICLOG="yes"
E4BCD_PANICLOG_NOISE=""
E4BCD_GNUTLS_PARAMS_MAXAGE="14"
@@ -36,7 +37,7 @@
if [ -n "$E4BCD_DAILY_REPORT_TO" ]; then
if [ -x "$(command -v eximstats)" ] && [ -x "$(command -v mail)" ]; then
- eximstats </var/log/exim4/mainlog \
+ eximstats $E4BCD_DAILY_REPORT_OPTIONS </var/log/exim4/mainlog \
| mail $E4BCD_DAILY_REPORT_TO -s"$(hostname --fqdn) Daily email activity report"
else
echo "The exim4 cron job is configured to send a daily report, but eximstats"
The new config var E4BCD_DAILY_REPORT_OPTIONS may need to be documented
somewhere - I'd suggest doing that together with E4BCD_DAILY_REPORT_TO,
so perhaps in /usr/share/doc/exim4-base/README.Debian.gz, section
"2.5.1. The daily cron job" 3rd asterisk might be extended by the
sentence "Options to eximstats can be given in
$E4BCD_DAILY_REPORT_OPTIONS."
Regards,
Florian
More information about the Pkg-exim4-maintainers
mailing list