Bug 37530

Summary: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2
Product: Base System Reporter: Peter Hollaubek <fifteen>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Peter Hollaubek 2002-04-28 15:40:13 UTC
>Number:         37530
>Category:       misc
>Synopsis:       /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 28 07:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Hollaubek
>Release:        FreeBSD 4.5-STABLE
>Organization:
>Environment:
FreeBSD terminus.inext.hu 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Apr 22 22:41:13 CEST 2002    root@terminus.inext.hu:/usr/obj/usr/src/sys/FIF  i386

>Description:
If rotated maillog files are compressed with bzip2 (J option in newsyslog.conf), then the status-mail-rejects script won't have any output in periodic daily runs. 
>How-To-Repeat:
Set rotated maillogs to be compressed with bzip2.
>Fix:
--- /etc/periodic/daily/460.status-mail-rejects Tue Sep 18 19:30:42 2001
+++ 460.status-mail-rejects     Sun Apr 28 16:28:03 2002
@@ -43,6 +43,9 @@
                    elif [ -f /var/log/maillog.$n.gz ]
                    then
                        zcat -fc /var/log/maillog.$n.gz
+                   elif [ -f /var/log/maillog.$n.bz2 ]
+                   then
+                       bzcat -fc /var/log/maillog.$n.bz2
                    fi
                    n=$(($n - 1))
                done

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Comment 1 Peter Hollaubek 2002-04-28 15:50:01 UTC
If rotated maillog files are compressed with bzip2 (J option in newsyslog.conf), then the status-mail-rejects script won't have any output in periodic daily runs.

How-To-Repeat: Set rotated maillogs to be compressed with bzip2.
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2002-04-28 18:29:25 UTC
State Changed
From-To: open->closed

Duplicate of misc/37529.