🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by purpose Thu, 07 Jan 1999 00:00
[slrn] spool vs. newsrc
#45724
Author: purpose
Date: Thu, 07 Jan 1999 00:00
60 lines
2955 bytes
I use slrn/slrnpull but every now and then I may use slrn directly or
use another newsgreader (NewsXpress). This causes my newsrc to get 
updated directly with new groups. 

slrn --spool then rejects these new groups as bogus. (because they are
not in the spool/data/active file?).

I hacked a very ugly script to try to manage this so than I can either
use "slrn --spool" or run newsreaders (including slrn) that update
newsrc directly.

This allows 'L' to work properly (when using slrn --spool) and also
has a line so that slrnpull will automatically pull groups that I subscribe
to. (using default settings).

Its a messy hack, and probably very inelegant but it does the Job so far:
Any neater soloutons would be greatly appreciated - I suspect I've missed 
something from the start!

Andy L
PS Its a DOS script but uses the GNU commands (from www.cygnus.com)

-------------------------
REM This script allows slrnpull to integrate with other newsreader programs
REM that may alter newsrc directly.

REM it also makes slrnpull automaticall fetch all subscribed groups using
REM a common configuration (read 1000 articles and keep for 14 days )

set NEWSRC="c:\Program Files\Netscape\Users\me\News\newsrc"
set SPOOL=\andy\apps\myslrn\spool
set ACTIVE=%SPOOL%\data\active
set NEW=%SPOOL%\data\new.groups

REM get slrnpull to fetch automatically fetch any subscribed groups.
REM Warning: re-creates slrnpull.conf
grep ':' %NEWSRC% | sed 's/:.*/	1000	14/' > %SPOOL%\slrnpull.conf

REM Now run slrn
\andy\apps\slrn\slrnpull -d %SPOOL% -h newshost --new-groups

REM Now we prepare slrn --spool to be able to run with the following things
REM 1. all unsubcribed newsgroups in newsrc must also be in the active list
REM     (these may have been added by other newsreaders ) 
REM    This allows you to select them using 'L'.
REM 2. all new groups must also be unsubscribed in newsrc.

REM add all new groups to end of newsrc as unsubscribed.
sed 's/ .*/!/' %NEW% >> %NEWSRC%

REM add all unsubscribe groups to the active list so that slrn --spool
REM doesn't reject groups as bogus.  The active file will be overwritten
REM by the next execution of slrnpull.
grep '!' %NEWSRC% | sed 's/!.*$/ 0 1 y/' >> %ACTIVE%



pause

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