Subject: bin/12901: check_mailq in daily reports empty queue
To: None <gnats-bugs@gnats.netbsd.org>
From: None <anne@alcor.concordia.ca>
List: netbsd-bugs
Date: 05/10/2001 10:35:42
>Number: 12901
>Category: bin
>Synopsis: check_mailq in daily reports empty queue
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 10 10:35:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Anne Bennett
>Release: 1.5
>Organization:
Concordia University
>Environment:
NetBSD eridani.concordia.ca 1.5 NetBSD 1.5 (ERIDANI) #1: Tue Mar 20 15:48:34 EST 2001 anne@eridani.concordia.ca:/big/sources/usr/src/sys/arch/i386/compile/ERIDANI i386
>Description:
If check_mailq is YES in /etc/daily.conf (the default), the "daily"
script invoked by cron (in the default installation) will use "mailq"
to check and report the contents of the outgoing mail queue. Some
effort is made in "daily" to not report anything when the queue is
empty, but the grep pattern used doesn't work with the current
version of "mailq" (again the default installation), so even when
the queue is empty, the "daily output" reports:
mail:
/var/spool/mqueue is empty
>How-To-Repeat:
Run the "daily" script under the default configuration while your
outgoing mail queue is empty.
>Fix:
--- old/daily.20010510 Thu Nov 16 20:43:03 2000
+++ daily Thu May 10 13:26:32 2001
@@ -164,7 +164,7 @@
if checkyesno check_mailq; then
mailq > $TMP
- if ! grep -q "^Mail queue is empty$" $TMP; then
+ if ! grep -q "queue is empty$" $TMP; then
echo ""
echo "mail:"
cat $TMP
>Release-Note:
>Audit-Trail:
>Unformatted: