Subject: bin/12901: check_mailq in daily reports empty queue
To: None <>
From: None <>
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
>Originator:     Anne Bennett
>Release:        1.5
Concordia University
NetBSD 1.5 NetBSD 1.5 (ERIDANI) #1: Tue Mar 20 15:48:34 EST 2001 i386

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:

  /var/spool/mqueue is empty

Run the "daily" script under the default configuration while your
outgoing mail queue is empty.
--- 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