🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32809

Re: slrn wish: Regex filter for auto-subscribe

#32809
From: Jan Hlavacek
Date: Tue, 15 Apr 1997 00:00
45 lines
1994 bytes
On 15 Apr 1997 09:26:30 GMT, Heikki Kantola <hkantola@cc.Helsinki.FI> wrote:
>According to rhh@ct.picker.com (Randall Hopper): 
>>     I like having autoscribe on.  However, I can easily define a regex of
>> some groups I have no desire to subscribe to.  I currently manually
>> unsubscribe to these, but it'd be nice if I could give slrn a regex for
>> newsgroup names I don't want to auto-subscribe to.
>
>Well, I prefer just the other way around (unsubscribe by default), but
>I second that there should be ability to control that on group
>hierarchy basis

Why don't you try something like

define group_mode_hook ()
{
   variable flags;
   call ("bob");
   do 
     {
	flags = get_group_flags ();
	if (flags & GROUP_NEW_GROUP_FLAG)
	  {
	     if ( some confition on current_newsgroup () )
	       {
		  set_group_flags (flags & ~(GROUP_UNSUBSCRIBED)); % or the
		                                                   % other way
	       }
	  }
     }
   while (group_down_n (1));
   call ("bob");
}

I didn't try that (didn't get any new groups for a few weeks), but I think
it should work.

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Technical Details
Message-ID: <slrn5l7i9a.kvg.lahvak+n@math.mps.ohio-state.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: <5ir4ct$iu1$1@iagnews.iagnet.net> <5ivhk6$8ft$1@oravannahka.Helsinki.FI>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5l7i9a.kvg.lahvak+n@math.mps.ohio-state.edu>
Subject: Re: slrn wish: Regex filter for auto-subscribe
Date: Tue, 15 Apr 1997 00:00:00 +0000
From: lahvak+n@math.ohio-state.edu (Jan Hlavacek)
References: <5ir4ct$iu1$1@iagnews.iagnet.net> <5ivhk6$8ft$1@oravannahka.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
X-Deja-AN: 235054367
Organization: Department of Mathematics, The Ohio State University
Reply-To: lahvak+n@math.ohio-state.edu
Newsgroups: news.software.readers