🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Adam Schuetze Fri, 23 Jun 2000 00:00
Passing slrn a particular newsgroup on the command line?
#62696
Author: Adam Schuetze
Date: Fri, 23 Jun 2000 00:00
27 lines
1711 bytes
Hi all,

I'm attempting to use slrn with muttzilla, which is a library
(and some assorted functions) designed to integrate slrn with
navigator.  The idea is the configure things so that when you
click on a news: link, it brings up slrn.

slrn support is not included with muttzilla, so I need to try to
figure some things out.

Is there any way to pass slrn a newsgroup on the command line,
so that when slrn starts up, it's already inside the newsgroup?
Or barring that, is there any way to execute slrn so that when
it starts up, the newsgroup in question has been automatically
added to the newsgroup listing?

any ideas/thoughts/whatever ?

thanks,

-- 
Adam Schuetze <adam at adam-schuetze dot org> 
Get my pgp keys at http://www.adam-schuetze.org 
rsa f'print B8 80 DA D6 BB CA 80 5F C5 68 1C 08 FE 3E 65 1C 
dss f'print 46 CB B3 C3 A1 C9 BA 57 7C B4 A1 6A BF 8F 2D 95 2B 7A 1D 77

Re: Passing slrn a particular newsgroup on the command line?
#62681
Author: John E. Davis
Date: Fri, 23 Jun 2000 00:00
29 lines
1394 bytes
On Fri, 23 Jun 2000 20:18:08 GMT, Adam Schuetze <adam@alpha.adam-schuetze.org>
wrote:
>Or barring that, is there any way to execute slrn so that when
>it starts up, the newsgroup in question has been automatically
>added to the newsgroup listing?

There is no built-in support for this.  However, it can be done via a
macro and a shell script:
#v+
   # shell script (bash)
     export SLRN_NEWSGROUP=news.software.readers
     slrn
     
   % slrn macro
   define group_mode_startup_hook ()
   {
      variable g = getenv ("SLRN_NEWSGROUP");
      if (g != NULL)
        {
	   if (group_search (g))
	     () = select_group ();
	}
   }
#v-

--John
     

Re: Passing slrn a particular newsgroup on the command line?
#62714
Author: 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.

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