[news.software.b] Need help translating .newsrc files

tar@ksuvax1.cis.ksu.edu (Tim Ramsey) (01/31/89)

This host currently has its own supply of news.  To free up disk space, I
plan to install the NNTP client package and have rn get its news from another
host.

Problem is, this will make the article numbers stored a user's .newsrc
completely bogus.  When I make the switchover, I'd like to "translate" the
article numbers from what they are on this host to what they are on the NNTP
server host.

It seems to me that the way to go about this is to cross reference the
article numbers on this host with the Message-Id:'s, reverse the process
with the server's article numbers, and then go through each user's .newsrc
and replace the old article number with the new.

Has anybody done this?  I'd like tips, utilities, or whatever.  This host
uses NDBM history, while the server uses USG history.

Thanks in advance,

Tim
-- 
Timothy Ramsey
BITNET: tar@KSUVAX1
Internet: tar@ksuvax1.cis.ksu.edu
UUCP: ...!rutgers!ksuvax1!tar -or- ...!{pyramid,ucsd}!ncr-sd!ncrwic!ksuvax1!tar

rjwhite@watmath.waterloo.edu (RJ White) (02/04/89)

In article <1390@ksuvax1.cis.ksu.edu> tar@ksuvax1.cis.ksu.edu (Tim Ramsey) writes:
	Has anybody done this?  I'd like tips, utilities, or whatever.
	This host uses NDBM history, while the server uses USG history.

yeh, i have for BSD 4.x systems.  Its big, ugly and i hate it cause
billions of warts have been added on since I originally wrote it
(wait till you switch from one NNTP server to another...) but it was worth
it given that I've had to do this on about 20 systems which represent
thousands of users that would lynch me if they ended up with bogus .newsrc
files.   I don't know what a USG history file looks like.  Shouldn't take
much to change.  i hope...

I'm mailing it to you.  If anyone else interested, let me know.
	-rj

rjwhite@watmath.waterloo.edu
rjwhite@watmath.Uwaterloo.CA
rjwhite@water    ( bitnet )
watmath!rjwhite  ( uucp )

dws@cseg.uucp (David W. Summers) (02/04/89)

In article <23424@watmath.waterloo.edu>, rjwhite@watmath.waterloo.edu (RJ White) writes:
> In article <1390@ksuvax1.cis.ksu.edu> tar@ksuvax1.cis.ksu.edu (Tim Ramsey) writes:
> 	Has anybody done this?  I'd like tips, utilities, or whatever.
> 	This host uses NDBM history, while the server uses USG history.
> 
> yeh, i have for BSD 4.x systems.  Its big, ugly and i hate it cause
> billions of warts have been added on since I originally wrote it
> (wait till you switch from one NNTP server to another...) but it was worth
> it given that I've had to do this on about 20 systems which represent
> thousands of users that would lynch me if they ended up with bogus .newsrc
> files.   I don't know what a USG history file looks like.  Shouldn't take
> much to change.  i hope...
> 

Please post this program as it would be VERY useful to people (including me)
that have multiple .newsrc files on different machines and access to different
NetNews servers!

   Thanks in advance!

   - David Summers
   (dws@cseg.uucp)

rjwhite@watmath.waterloo.edu (RJ White) (02/11/89)

In article <1755@cveg.uucp> dws@cseg.uucp (David W. Summers) writes:
	
	Please post this program as it would be VERY useful to people
	(including me) that have multiple .newsrc files on different
	machines and access to different NetNews servers!

Its a very large program to post everywhere when few people will want it.
I will mail it to you and anyone else who mails me asking for it.
	-rj