From nobody@FreeBSD.org  Sun Apr 28 07:40:14 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D5A7837B41D
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Apr 2002 07:40:13 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3SEeDc70433;
	Sun, 28 Apr 2002 07:40:13 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204281440.g3SEeDc70433@freefall.freebsd.org>
Date: Sun, 28 Apr 2002 07:40:13 -0700 (PDT)
From: Peter Hollaubek <fifteen@inext.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2
X-Send-Pr-Version: www-1.0

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 28 07:50:01 PDT 2002
>Closed-Date:    Sun Apr 28 10:30:02 PDT 2002
>Last-Modified:  Mon Apr 29 02:50:11 PDT 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Sun Apr 28 10:29:25 PDT 2002 
State-Changed-Why:  
Duplicate of misc/37529. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37530 

From: Peter Hollaubek <fifteen@inext.hu>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: misc/37530: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2
Date: Sun, 28 Apr 2002 07:40:13 -0700 (PDT)

 >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
 
>Unformatted:
