Thread View: news.software.readers
2 messages
2 total messages
Started by Walter Roberson
Tue, 05 May 1992 06:11
portable .newsrc ?
Author: Walter Roberson
Date: Tue, 05 May 1992 06:11
Date: Tue, 05 May 1992 06:11
39 lines
2858 bytes
2858 bytes
In a few days, I will be moving to another site with a different
feed, different history files, and so on. I would like to drag along
as much information as possible about what I've already read. Is there
a way to convert my .newsrc, KILL, and associated system files into a
more portable form from which I could construct a meaningful new .newsrc
at the other site ?
I recognize that simply copying the .newsrc and KILL files will not
be enough. .newsrc and KILL files are in terms of article numbers,
which have reality only on a particular server. I will, I assume,
need to convert the article numbers into message-id's, transport
the message-id's, and somehow convert those message-id's back to the
article numbers used by the remote system. I do not know how to do
either of those conversions. Suggestions, anyone ?
As long as I'm here, I might as well ask a different question: in rn,
is there a way to suppress the line-by-line display of the processing
of a KILL file? For some newsgroups (eg, news.groups) I have a large
number of entries in my KILL file, and simply displaying all of them
is taking a substantial amount of time at low baud rates. I imagine some
might prefer to have KILL-file lines that turn out to result in some
action be displayed, but I'd be happy even if it was all suppressed.
I do not care which particular line caused a message to be junked --
if I wanted to know what, I could use the /pat/:=:j form.
[By the way: when operating in such a display mode, the KILL file processing
can often be optimized. Instead of acting on each line individually,
read all lines in the KILL file until one with a different command is
found (and push that one line back.) Construct a grand internal pattern
using alternations, and act on the grand pattern. For example,
/: *foo/:j
/: *bar/:j
might as well be processed internally as if it had been written
/: *foo\|: *bar/:j
if one is not concerned with seeing the 'XXXXX junked' messages.]
Thank you,
Walter Roberson roberson@nrcbsa.bio.nrc.ca
Re: portable .newsrc ?
Author: Jonathan I. Kamens
Date: Tue, 05 May 1992 20:32
Date: Tue, 05 May 1992 20:32
19 lines
1740 bytes
1740 bytes
I wrote a perl script to read a .newsrc and convert article numbers into
Message IDs, and another to convert the resulting file back into a regular
.newsrc file on another site.
You can get the scripts that do this by retrieving the file
/pub/move-newsrc.shar from rtfm.mit.edu [18.172.1.27]. If you do not have
anonymous ftp access, then send a mail message to mail-server@rtfm.mit.edu
containing "send move-newsrc.shar" in the Subject or body.
As for the KILL files, I'd suggest you write a script to simply delete the
THRU line; the first time you read news in each group, all unread articles
will have to be processed, but that shouldn't be such a big deal.
--
Jonathan Kamens jik@MIT.Edu
MIT Information Systems/Athena Moderator, news.answers
(Send correspondence related to the news.answers newsgroup
{and ONLY correspondence related to the newsgroup}
to news-answers-request@MIT.Edu.)
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