diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects index cfe4213..7d6ef1a 100755 --- a/etc/periodic/daily/460.status-mail-rejects +++ b/etc/periodic/daily/460.status-mail-rejects @@ -24,7 +24,13 @@ case "$daily_status_mail_rejects_enable" in { while [ $n -ge 0 ] do - [ -f /var/log/maillog.$n* ] && zcat -fc /var/log/maillog.$n* + if [ -f /var/log/maillog.$n ] + then + cat /var/log/maillog.$n + elif [ -f /var/log/maillog.$n.gz ] + then + zcat -fc /var/log/maillog.$n.gz + fi n=$(($n - 1)) done cat /var/log/maillog |