Xref: utzoo news.sysadmin:2431 news.admin:5834 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cdin-1!icdi10!fr From: fr@icdi10.UUCP (Fred Rump from home) Newsgroups: news.sysadmin,news.admin Subject: Re: question on bad newsgroups Keywords: nomatch Message-ID: <199@icdi10.UUCP> Date: 30 May 89 13:33:13 GMT References: <185@icdi10.uucp> <804@ivucsb.sba.ca.us> Reply-To: fr@icdi10.UUCP (Fred Rump from home) Distribution: na Organization: From Home but normally @ Compudata Inc. Phila PA Lines: 107 Summary: Expires: Sender: Followup-To: In article <804@ivucsb.sba.ca.us> news@ivucsb.UUCP (Todd Day) writes: >In article <185@icdi10.uucp> fr@icdi10.UUCP (Fred Rump from home) writes: >~Bad Newsgroups Received >~a.politic 18 This is the stuff I'm talking about. >~a.single 1 >~alk.politics.gun 5 >~lt.bb 1 >~lt.conspirac 1 > >I'm getting the same problem here, but I can't seem to trace down the >culprit. I can't even find the messages that have this problem. Anybody >have any clues? I don't know enough about awk to find the problem but I think it is created in Eric Fair's awk script originally written in May, 1984 to give some news stats. I don't want to post the whole script but here is the part that prints: # USAGE: awk -f report_awk /usr/lib/news/log # # AWK script which eats netnews log files and produces a summary of USENET # traffic and errors over the period of time that the log was collected. # # August 31, 1986 # # Erik E. Fair # Original Author, May 22, 1984 # # Brad Eacker # Modified to simplify the record processing and to sort the output. # # Erik E. Fair # Modifed to provide information about control messages. # # Erik E. Fair # Bug in system name extraction fixed. It was assumed that the forth field # (system name) always had a dot. local is one that doesn't. Some others # (including 2.9 sites) don't either. # # Earl Wallace # The "sent" field was changed from $5 to $6 in 2.10.2 (beta) # named "newstats" and called with no arguments. # # Erik E. Fair # Remove support for 2.10.1, revise for 2.10.2 to provide information # about junked articles, garbled articles, and bad newsgroups # # Erik E. Fair # Minor bug fix to bad newsgroup reporting, also now counting ``old'' # articles as junked, with counter for number that are `old'. # # Erik E. Fair # Fix up the domain & local hosts support # # Erik E. Fair # Fix up the counting of gatewayed material, add counting of "linecount" # problems. Additional cleanup to make things faster. Is it in here? Perhaps some kind soul would look at the whole script and fix this problem? # # selection sort max = 0; for( j in newsgcnt ) { if (newsgcnt[j] > max) { i = j; max = newsgcnt[j]; } } if (max == 0) break; printf(fmt, i, newsgcnt[i]); newsgcnt[i] = 0; } } if (badgrp) { printf("\nBad Newsgroups Received\n"); l = 0; for( i in badng ) { if (l < length(i)) l = length(i); } fmt = sprintf("%%-%ds %%5d\n", l); for( ; ; ) { # selection sort i = invalid; for( j in badng ) { if (badng[j] > 0 && j < i) i = j; } if (i == invalid) break; printf(fmt, i, badng[i]); badng[i] = 0; } } } -- This is my house. My castle will get started right after I finish with news. 26 Warren St. ...{dsinc bpa uunet}!cdin-1!icdi10!fr Beverly, NJ 08010 or INTERNET: fred@cdin-1.uu.net or icdi10!fr@icdi10.uu.net 609-386-6846 "Freude... Alle Menschen werden Brueder..." - Schiller