Article View: news.software.nntp
Article #81989Re: INN 2.5.0 docheckgroups
From: D. Stussy
Date: Mon, 12 Oct 2009 02:49
Date: Mon, 12 Oct 2009 02:49
47 lines
2685 bytes
2685 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87ocodfosg.fsf@windlord.stanford.edu...
> "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
>
> > Would it be possible to change line 83 of " /docheckgroups.in" from
>
> > ${SORT} ${T}/$$updatednewsgroups | ...
> > to
> > ${SORT} -u ${T}/$$updatednewsgroups | ...
>
> > just in case there are other [non-identical] duplicated lines in the
output
> > newsgroups descriptions file?
>
> It would need to instead be a pipe through uniq, since -u isn't portable.
-u is used elsewhere in the script (line 42), so nonportability is already
there.
> What do you mean by non-identical duplicated lines?
Scratch the idea; it's not really necessary. I was getting strange things
but I
figured out it was something I had done.
However, there's something else I was playing with:
Insert at line 82:
DATE=`date --utc "+%Y-%m-%d %H:%M:%S UTC"`
for x in `grep "\." ${T}/$$msg|cut -d . -f 1|sort -u` ; do
echo -e $x.CHECKGROUPS\\tCheckgroups processed on $DATE
>>${T}/$$updatednewsgroups ; done
This adds a pseudo-entry into the descriptions list of when a [valid]
checkgroups
message was last received. Some might think it useful. As it's not going
to be in
a typical checkgroups message, it gets removed (and replaced) when the next
checkgroups message comes in.
PS: In recent testing, I noted that a recent "cl.*" hierarchy checkgroups
message
wasn't processing, but it looks as if that message is malformed as it wraps
one of
the description lines.
Technical Details
Message-ID:
<hau5g8$di5$2@snarked.org>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.ams.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.snarked.org!not-for-mailReferences:
<hatiqd$poe$1@snarked.org> <87ocodfosg.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <hau5g8$di5$2@snarked.org> Subject: Re: INN 2.5.0 docheckgroups Date: Sun, 11 Oct 2009 19:49:44 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <hatiqd$poe$1@snarked.org> <87ocodfosg.fsf@windlord.stanford.edu> 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.ams.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 47 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-160-18-32.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1255315784 13893 71.160.18.32 (12 Oct 2009 02:49:44 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Mon, 12 Oct 2009 02:49:44 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478