The checkerr script is buggy. I've made a patch that solves that
problem. It simply tests if the error message is empty before writing
statistics.


--- /usr/lib/smail/checkerr     2006-07-18 12:56:58.000000000 +0200
+++ ./checkerr  2006-07-18 12:55:09.000000000 +0200
@@ -227,20 +227,18 @@
     echo "their error(s)."
 fi >> ${TMPDIR}/.chkerr.msg

-if [ -s ${TMPDIR}/.chkerr.msg ]; then

-       if [ -s ${TMPDIR}/.chkerr.stats ]; then
-           echo ""
-           echo "Here are the overall statistics for the past
reporting period:"
-           echo ""
-           cat ${TMPDIR}/.chkerr.stats
-       fi >> ${TMPDIR}/.chkerr.msg
+if [ -s ${TMPDIR}/.chkerr.stats ]; then
+    echo ""
+    echo "Here are the overall statistics for the past reporting
period:"
+    echo ""
+    cat ${TMPDIR}/.chkerr.stats
+fi >> ${TMPDIR}/.chkerr.msg

-       echo "" >> ${TMPDIR}/.chkerr.msg
-       echo "Current mail queue summary status:" >>
${TMPDIR}/.chkerr.msg
-       echo "" >> ${TMPDIR}/.chkerr.msg
-       mailq -s >> ${TMPDIR}/.chkerr.msg 2>&1
-fi
+echo "" >> ${TMPDIR}/.chkerr.msg
+echo "Current mail queue summary status:" >> ${TMPDIR}/.chkerr.msg
+echo "" >> ${TMPDIR}/.chkerr.msg
+mailq -s >> ${TMPDIR}/.chkerr.msg 2>&1

 # Now we go into each spooling directory and look for new messages
that have # been frozen into the error queue.



-- 
----------------------------------------
Emmanuel Florac     |   Intellique
----------------------------------------



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to