🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #35385

Re: slrn : global group description file ?

#35385
From: Heikki Kantola
Date: Mon, 21 Jul 1997 00:00
41 lines
2640 bytes
Jim Irwin <jirwin@mail.netshop.net> informed
news.software.readers with the following:
>Just one observation. Prior to using slrn, I had been using tin and my
>newsgroups file had been in /usr/lib/news/newsgroups. I copied this
>file to /usr/local/lib/slrn/newsgroups.dsc thinking that this would
>make the descriptions available to slrn but it didn't work. So I ran
>slrn -d once. This created .jnewsrc.dsc (or whatever the exact name was)
>in my home directory. I then moved this file to /usr/local/lib/slrn/
>newsgroups.dsc and the deed was done. The two files had different
>formats, tin's newsgroups file having the form:
>group.name	<a bunch of tabs>	group description
>
>while the slrn newsgroups.dsc file has the form:
>group.name:group description
>
>If you have been trying to use an existing newsgroups file, then
>try this.

If you want to utilize that existing newsgroups-file it's fairly
simple to change it into Slrn's preferred format. I've had following
in my crontab for quite some time and it appears to work fine:

 55 * * * * umask 022; if (/usr/local/contrib/gnu/bin/test
 /usr/local/lib/news/newsgroups -nt /usr/local/contrib/lib/slrn/
 newsgroups.dsc) then /usr/local/bin/perl -pe 's/^(\S+)\s*(.+)$/$1:$2/' 
 /usr/local/lib/news/newsgroups >/usr/local/contrib/lib/slrn/newsgroups.dsc;
 fi

(It should be one-liner. Alter the paths to suit your needs. The GNU 
test invocation I've used on first line is just there because I've 
used it on digital UNIX where /bin/test is so lame that it lacks "-nt"
option...)

-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Technical Details
Message-ID: <slrn5t61i9.3i3.hezu@polva.helsinki.fi>
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
References: <slrn5sncdo.8p6.dupuis@pc-dupuis.lei.ucl.ac.be> <slrn5spo8r.rfa.guckes@banach.math.fu-berlin.de> <slrn5sqo72.gmb.dave@pc-damir.srce.hr> <slrn5suv8s.15a.dupuis@pc-dupuis.lei.ucl.ac.be> <5qobuv$6vu$1@taurus.mayn.de> <slrn5t1ppf.68.jirwin@troglodyte.local.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5t61i9.3i3.hezu@polva.helsinki.fi>
Subject: Re: slrn : global group description file ?
Date: Mon, 21 Jul 1997 00:00:00 +0000
From: hezu@iki.fi (Heikki Kantola)
References: <slrn5sncdo.8p6.dupuis@pc-dupuis.lei.ucl.ac.be> <slrn5spo8r.rfa.guckes@banach.math.fu-berlin.de> <slrn5sqo72.gmb.dave@pc-damir.srce.hr> <slrn5suv8s.15a.dupuis@pc-dupuis.lei.ucl.ac.be> <5qobuv$6vu$1@taurus.mayn.de> <slrn5t1ppf.68.jirwin@troglodyte.local.net>
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: 258276467
Mail-Copies-To: never
Organization: Department of General Wizardry, Unseen University, Ankh-Morpork
Newsgroups: news.software.readers