🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #62714

Re: Passing slrn a particular newsgroup on the command line?

#62714
From: Dawn Owens-Nicholson
Date: Sat, 24 Jun 2000 00:00
35 lines
1903 bytes
John E. Davis wrote:
> There is no built-in support for this.  However, it can be done via a
> macro and a shell script:

Another alternative would be:

  SLRN_NEWSGROUP=news.software.readers slrn

to run slrn and

#v+
   define group_mode_startup_hook ()
   {
      variable g = getenv ("SLRN_NEWSGROUP");
      if (g != NULL)
        {
	   set_input_string (g);
	   call ("add_groups");
	   () = select_group ();
	}
   }
#v-

for the macro.

The difference being group_search() will match on group description too, so
there's the chance for the wrong group to be entered.  It's pretty rare that
one group is mentioned in the description for another group but it happened
enough to make me use more complicated while() loops to find the right group
(and bail out at the right point so there's no infinite looping).  I figure
if you specify a particular group by name that's the group you want to see
whether you're subscribed to it or not, so the add_group intrinsic is
another way to do it.

Technical Details
Message-ID: <slrn8l9rh9.gqm.bluemoon@ux6.cso.uiuc.edu>
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: <slrn8l7i0d.e5m.adam@alpha.adam-schuetze.org> <slrn8l7kki.bcu.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8l9rh9.gqm.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: Passing slrn a particular newsgroup on the command line?
Date: Sat, 24 Jun 2000 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn8l7i0d.e5m.adam@alpha.adam-schuetze.org> <slrn8l7kki.bcu.davis@aluche.mit.edu>
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: 638491901
X-Complaints-To: abuse@uiuc.edu
X-Trace: vixen.cso.uiuc.edu 961867273 128.174.5.9 (Sat, 24 Jun 2000 12:21:13 CDT)
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.6.2 (HP-UX)
NNTP-Posting-Date: Sat, 24 Jun 2000 12:21:13 CDT
Newsgroups: news.software.readers