Article View: news.software.nntp
Article #83783Re: docheckgroups et al
From: John F. Morse
Date: Tue, 04 Jan 2011 17:19
Date: Tue, 04 Jan 2011 17:19
115 lines
4893 bytes
4893 bytes
Hi Julien, >> With docheckgroups, one major obstacle is the known egrep overflow: >> >> news@optima11:/var/lib/news$ cat newsgroups-ISC | docheckgroups >> egrep: Unmatched ) or \) >> egrep: Unmatched ) or \) >> egrep: Unmatched ) or \) >> egrep: Unmatched ) or \) >> egrep: Unmatched ) or \) >> egrep: Unmatched ) or \) > > > > Perhaps a future project would be to improve docheckgroups so egrep > > doesn't choke? > > egrep is no longer used in INN 2.5.2. It was in INN 2.4.x. > What are the remaining problems when you use docheckgroups on INN 2.5.2? Here are the tests and results: news@n102:/var/lib/news$ cat /etc/debian_version squeeze/sid news@n102:/var/lib/news$ innconfval -v INN 2.5.2 news@n102:/var/lib/news$ For the test I copied a newsgroups file that I had downloaded from the ISC on 20101223: news@n102:/var/lib/news$ wc newsgroups-ISC 45959 236510 2514617 newsgroups-ISC news@n102:/var/lib/news$ It contains 45959 newsgroup descriptions as shown above. Then I ran docheckgroups twice, using two different input methods. news@n102:/var/lib/news$ cat newsgroups-ISC | docheckgroups news@n102:/var/lib/news$ news@n102:/var/lib/news$ docheckgroups < newsgroups-ISC news@n102:/var/lib/news$ Using either form of input, docheckgroups does nothing but return the prompt after about one second: news@n102:/var/lib/news$ time cat newsgroups-ISC | docheckgroups real 0m0.678s user 0m0.592s sys 0m0.084s news@n102:/var/lib/news$ I made the input file smaller by cutting out all but 10 lines from the newsgroups-ISC file and saved it as "newsgroups-ISC_small": news@n102:/var/lib/news$ head newsgroups-ISC > newsgroups-ISC_small | wc -l newsgroups-ISC_small 10 newsgroups-ISC_small news@n102:/var/lib/news$ Then I ran docheckgroups with this smaller ten-line newsgroup file, and it created over 34 thousand lines of corrections and needed changes, basically listing the complete alt.* hierarchy, plus my local groups which are listed in /etc/news/localgroups. Here's the tally: news@n102:/var/lib/news$ cat newsgroups-ISC_small | docheckgroups | wc -l 34185 news@n102:/var/lib/news$ It listed 6876 groups for removal. This would have been a catastrophe had I been piping this into mod-active! Sadly, this is what actually happened to some 900 alt.* groups a couple of weeks ago, and the reason for my posting. news@n102:/var/lib/news$ cat newsgroups-ISC_small | docheckgroups | grep "ctlinnd rmgroup" | wc -l 6876 news@n102:/var/lib/news$ So it appears docheckgroups still has a problem running when using a large newsgroup comparison file. Then it creates a big mess when the file is small enough to allow docheckgroups to actually run. It doesn't appear to recognize the /etc/news/localgroups list. It wants to change two local moderated groups to "y" from "m" -- these groups have "(no posting)" instead of "(Moderated)" in their descriptions, which might be the problem. If I changed them to "n" I'd probably still receive the docheckgroups attempt to change them to "y" wouldn't I? Hope this helps. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<ifvkrk$tqg$1@n102.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org> <ifcmdj$h2p$1@n102.xanadu-bbs.net> <87ipydiwys.fsf@windlord.stanford.edu> <ifri8f$4jg$1@puck.litech.org> <ifs1r4$rjh$1@n102.xanadu-bbs.net> <8oejprF38fU1@mid.individual.net> <ifth0a$92v$1@n102.xanadu-bbs.net> <8of2b7FqphU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <ifvkrk$tqg$1@n102.xanadu-bbs.net> Subject: Re: docheckgroups et al Date: Tue, 04 Jan 2011 11:19:48 -0600 From: "John F. Morse" <john@example.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org> <ifcmdj$h2p$1@n102.xanadu-bbs.net> <87ipydiwys.fsf@windlord.stanford.edu> <ifri8f$4jg$1@puck.litech.org> <ifs1r4$rjh$1@n102.xanadu-bbs.net> <8oejprF38fU1@mid.individual.net> <ifth0a$92v$1@n102.xanadu-bbs.net> <8of2b7FqphU1@mid.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 115 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: n102.xanadu-bbs.net 1294161588 30544 192.168.89.210 (4 Jan 2011 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Tue, 4 Jan 2011 17:19:48 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <8of2b7FqphU1@mid.individual.net> X-Enigmail-Version: 0.96.0 X-Original-Bytes: 4644