+
+ ## Clean the paniclog, but only up to 4 times per day, or else we
+ ## should investigate.
+ loglog=/tmp/panicloglog-$(date --rfc-3339=date)
+ if [[ -s $loglog ]]; then
+ spamcount=$(stat -c%s $loglog)
+ else
+ spamcount=0
+ fi
+ if (( spamcount <= 4 )); then
+ if grep -q 'spam acl condition' /var/log/exim4/paniclog; then
+ printf . >>$loglog
+ fi
+ /a/bin/distro-setup/epanic-clean
+ fi
+