🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Tim Pennick Mon, 20 Dec 1999 00:00
Synchronising newsgroup and active files
#42420
Author: Tim Pennick
Date: Mon, 20 Dec 1999 00:00
29 lines
1641 bytes
All,

Having read everyghing I can find on the subject, I still don't understand how
you are supposed to keep your newsgroups file up-to-date (short of manually
editing it).  The following observations may be flawed, and may indicate why
I'm having problems with this, and I'd be grateful for any enlightenment on
this subject:

1. ctlinnd newgroup/rmgroup <newsgroup> only updates the 'active' file.

2. actsync only updates the active file.

3. some incoming newgroup/rmgroup control messages only seem to update the 'active'
file.

I can't find any documentation to explain what the 'checkgroups' command does,
though I have a feeling it may be relevant.

My server has a lot of local groups, so I can't easily download a newsgroups
file from my upstream site, without doing a lot of merging.  Are there any
useful tools for this?

Any help gratefully received

Regards (and Merry Christmas/Happy Holidays to all)

Tim Pennick

Re: Synchronising newsgroup and active files
#42428
Author: Paul Tomblin
Date: Mon, 20 Dec 1999 00:00
75 lines
3487 bytes
In a previous article, Tim Pennick <tpennick@axion.bt.co.uk> said:
>Having read everyghing I can find on the subject, I still don't understand how
>you are supposed to keep your newsgroups file up-to-date (short of manually
>editing it).  The following observations may be flawed, and may indicate why

I sync our newsgroups and active file against the big one on isc.org, at least
for the big-8 groups, using the following script.  As you can see by what I've
commented out, I used to do this for all the heirarchies we carried except
alt, but I found the big one on isc.org was wrong when it came to ott, ont and
can, so I figure it's less than trustworthy on other heirarchies.

--start script--
#
#       Does a full check of our newsgroups file against Tale's
#
. $HOME/lib/innshellvars

OUT=$0.results
SCRIPT=$0.script

rm -f ${OUT} ${SCRIPT}
echo "Running $0 at " `date` > ${OUT}

#       Get the latest from isc
ncftpget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
cp ${NEWSGROUPS} local.newsgroups
LNEWSGROUPS=./local.newsgroups

#       Find which heirarchies we carry (forget about alt, it's a sewer)
#sed -e 's/\..*//' -e '/ /d' -e '/^alt/d' ${ACTIVE} | sort -u >
our.heirarchies
#       Only do the big 8
echo 'comp
humanities
misc
news
rec
sci
soc
talk' >our.heirarchies

for i in `cat our.heirarchies` ; do
        echo "doing $i"
        #       Get all the entries from Tale's file with our current
        #       heirarchy
        grep "^${i}\." newsgroups > this.heirarchy
        if [ -s this.heirarchy ] ; then
                #       Do a checkgroups using that file
                ${HOME}/lib/docheckgroups < this.heirarchy > this.results
                cat this.results >> ${OUT}
                grep -v '#' this.results >> ${SCRIPT}

                #       Now update the newsgroups file
                grep -v "^${i}\." ${LNEWSGROUPS} > newsgroups.without.this
                sort -u newsgroups.without.this this.heirarchy >
${LNEWSGROUPS}
        else
                echo "$i is not a known heirarchy" >> ${OUT}
        fi
done

#       Clean up the mess
rm -f newsgroups.without.this this.heirarchy this.results our.heirarchies
--end script--

After running this, I check to see if "big8_check.results" indicates any
newsgroups need to be added or removed, and if so run "big8_check.script".
Then, if everything looks ok, I copy local.newsgroups into ~/db/newsgropus

-- 
Paul Tomblin, not speaking for anybody.
SETI@Home:  Finally a *good* way to impress Jodie Foster
http://www.setiathome.ssl.berkeley.edu/

Re: Synchronising newsgroup and active files
#42438
Author: Etienne Gauthier
Date: Tue, 21 Dec 1999 00:00
48 lines
2479 bytes
Tim Pennick wrote:
> 
> All,
> 
> Having read everyghing I can find on the subject, I still don't understand how
> you are supposed to keep your newsgroups file up-to-date (short of manually
> editing it).  The following observations may be flawed, and may indicate why
> I'm having problems with this, and I'd be grateful for any enlightenment on
> this subject:


I'm not sure I'll help you by this message, but I try :

  The active file is the file the contains the list of newsgroups you
are carrying. So this actually the good newsgroups file. The file
~news/db/newsgroups just contains a description for each newsgroup, and
is quite a secondary file for INN (I suppose you use INN, hum ?).

  AFAIK, there is no way to automatically update the newsgroups file.
  AFAIK, NNTP doesn't contain command to get the description for the
newsgroup from a remote host. So there should be no way to synchronize
the ~news/db/newsgroups from a remote host.

Etienne


> 
> 1. ctlinnd newgroup/rmgroup <newsgroup> only updates the 'active' file.
> 
> 2. actsync only updates the active file.
> 
> 3. some incoming newgroup/rmgroup control messages only seem to update the 'active'
> file.
> 
> I can't find any documentation to explain what the 'checkgroups' command does,
> though I have a feeling it may be relevant.
> 
> My server has a lot of local groups, so I can't easily download a newsgroups
> file from my upstream site, without doing a lot of merging.  Are there any
> useful tools for this?
> 
> Any help gratefully received
> 
> Regards (and Merry Christmas/Happy Holidays to all)
> 
> Tim Pennick

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads