diff -ruN inn-1.7.2.orig/samples/scanlogs inn-1.7.2/samples/scanlogs
--- inn-1.7.2.orig/samples/scanlogs	1997-12-09 00:48:50.000000000 +0100
+++ inn-1.7.2/samples/scanlogs	2003-07-07 22:33:30.000000000 +0200
@@ -242,89 +242,17 @@
 ##  Scan for various problems in articles we were offered or sent.
 BASE=`basename ${LOG}`
 OLD_LOG=${OLD}/${BASE}.0
-if [ -f ${OLD_LOG} ]; then
-    ${AWK} '$4 == "-" || $4 == "j" { print }' <${OLD_LOG} >${PROBS}
-
-    ${AWK} '$4 == "-" { print $5; }' ${PROBS} > ${T}
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} sites sending bad articles:
-	sort < ${T} | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-    ${AWK} '$4 == "j" { print $5; }' ${PROBS} > ${T}
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} sites sending junked "(unwanted)" articles:
-	sort < ${T} | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-
-    ${EGREP} '437 Unwanted distribution' ${PROBS} > ${T}
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} unwanted distributions by number of articles:
-	${SED} 's/.*"\(.*\)".*/\1/' < ${T} \
-	    | sort | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-    ${EGREP} '437 Unapproved for' ${PROBS} > ${T} 
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} supposedly-moderated groups with unmoderated postings:
-	${SED} 's/.*"\(.*\)".*/\1/' ${T} \
-	    | sort | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-    ${EGREP} '437 Unwanted newsgroup' ${PROBS} > ${T}
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} unwanted newsgroups:
-	${SED} 's/.*"\(.*\)".*/\1/' ${T} \
-	    | sort | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-    ${EGREP} '437 Unwanted site' ${PROBS} > ${T} 
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} unwanted sites:
-	${SED} 's/.*site \(.*\) in path.*/\1/' ${T} \
-	    | sort | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-    ##  Your egrep may complain about this regular expression being too long;
-    ##  if so, complain to your vendor and try GNU egrep.
-    P1='No body|EOF in headers|"Message-ID"|No colon-space in '
-    P2='Missing ".*" header|Linecount|Bad Date|Too old'
-    ${EGREP} "${P1}|${P2}" ${PROBS} > ${T} 
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} general message problems:
-	${SED} -e 's/.*437 //' -e 's/Linecount.*/Linecount wrong/' \
-	    -e 's/Too old.*/Too old/' ${T} \
-	    | sort | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-
-    ${EGREP} "${P1}|${P2}" ${PROBS} | ${AWK} '{print $5}' > ${T} 
-    if [ -s ${T} ] ; then
-	echo Top ${TOP} sites sending news with bad headers:
-	sort < ${T} | uniq -c | sort -nr | ${SED} ${TOP}q
-	echo ''
-    fi
-    rm -f ${PROBS}
-fi
-rm -f ${OLD_LOG}
 
 ##  Summarize syslog information
 BASE=`basename ${SYSLOG_NOTICE}`
 OLD_SYSLOG=${OLD}/${BASE}.0
 if [ -s ${OLD_SYSLOG} ] ; then
     echo Syslog summary:
-    ${PERL} ${NEWSLIB}/innlog.pl -c -g -d -a < ${OLD_SYSLOG}
+    /usr/lib/news/bin/innreport -f /etc/news/innreport.conf ${OLD_SYSLOG} ${OLD_LOG}
     echo ---------
     echo ''
 fi
-rm -f ${OLD_SYSLOG}
+rm -f ${OLD_LOG} ${OLD_SYSLOG}
 
 ##  Compress and rotate the logs.
 if ${ROTATE} ; then
