Article View: news.software.readers
Article #45724[slrn] spool vs. newsrc
From: purpose
Date: Thu, 07 Jan 1999 00:00
Date: Thu, 07 Jan 1999 00:00
60 lines
2955 bytes
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
Technical Details
Message-ID:
<915718310.25937.0.nnrp-02.c2d9f016@news.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <915718310.25937.0.nnrp-02.c2d9f016@news.demon.co.uk> Subject: [slrn] spool vs. newsrc Date: Thu, 07 Jan 1999 00:00:00 +0000 From: purpose@iname.comCUT () Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 429800792 X-NNTP-Posting-Host: firewall.tertio.com:194.217.240.22 X-Trace: news.demon.co.uk 915718310 nnrp-02:25937 NO-IDENT firewall.tertio.com:194.217.240.22 Organization: Private Newsgroups: news.software.readers X-Complaints-To: abuse@demon.net