🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by klassa Wed, 29 Sep 1999 00:00
slrn: keeping bogus groups in .newsrc
#52497
Author: klassa
Date: Wed, 29 Sep 1999 00:00
25 lines
1733 bytes
I'm using slrn with a *^!*%$! news server that tosses its
cookies about twice a day.  At any given time, the list of groups
it thinks is bogus goes from having zero things in it (i.e. all
groups are available) to have a gazillion things in it (i.e. it
thinks all groups are bogus).  This wreaks havoc on my .newsrc
because, depending on how the news server feels, I can wind up
with everything in my .newsrc being deleted as "bogus"...

One solution would be to wrap slrn in a little script that'd make
a backup copy of my .newsrc before I run slrn and then prompt
me for whether to restore it on the way out.  That still requires
me to think and hit the right key on exit, which is dangerous
because muscle memory will kick in and I'm sure I'll wind up
doing something stupid at some point out of impulse.

A better way I think, though, would be to have slrn keep everything
in my .newsrc, even if deemed bogus.  There's a flag for telling it
to keep unsubscribed newsgroups, but not one for telling it to keep
bogus newsgroups.

Anybody got any ideas?

Thanks!

Re: slrn: keeping bogus groups in .newsrc
#52483
Author: Sylvan Butler
Date: Wed, 29 Sep 1999 00:00
41 lines
2523 bytes
On Wed, 29 Sep 1999 11:56:05 GMT, klassa@ipass.net <klassa@ipass.net> wrote:
>thinks all groups are bogus).  This wreaks havoc on my .newsrc
>because, depending on how the news server feels, I can wind up
>with everything in my .newsrc being deleted as "bogus"...

Been there, done that!

>One solution would be to wrap slrn in a little script that'd make
>a backup copy of my .newsrc before I run slrn and then prompt

That much is good.

>me for whether to restore it on the way out.  That still requires

Not so good.

Back when I was using tin I dealt with a similar problem.  The basic
approach was to make the backup copy when starting.  But before making
that backup copy, the size of the newsrc was checked against the backup.
Too much difference and the wrapper exited with a warning message
without starting the newsreader.

When I got the warning I would manually check the differences.  If all
was OK I copied the current over the backup and reran the wrapper.  If I
needed to restore then I copied the backup over the current instead.

If one wanted to get really sophisticated about the whole thing, you
could compare the list of newsgroups (not the article numbers, and sort
to alphabetical before comparing) instead of just the size of the
.newsrc.  But to me it wasn't ever worth that much effort.

sdb

-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Re: slrn: keeping bogus groups in .newsrc
#52590
Author: Eric S.
Date: Fri, 01 Oct 1999 00:00
29 lines
1538 bytes
On Wed, 29 Sep 1999 11:56:05 GMT, klassa@ipass.net wrote:
>thinks all groups are bogus).  This wreaks havoc on my .newsrc
>because, depending on how the news server feels, I can wind up
>with everything in my .newsrc being deleted as "bogus"...
>

You could try starting slrn with the -n switch so it doesn't bother
checking.  I do this, and as a result, I have to edit .newsrc by
hand (which sounds like it would be a usually good thing for you).

Another possible option would be something like:

cp ./.newsrc ./.tempnewsrc
slrn -f ./.tempnewsrc

so if it trashes your .tempnewsrc, you just:

rm ./.tempnewsrc
cp ./.newsrc ./.tempnewsrc 

Of course, I've never tried that.  Seems like it ought to work,
though, based on man slrn.  8^)

Eric Strawser
--
"Awk!", Grep said.


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