🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #37394

Re: Global search across articles

#37394
From: John E. Davis
Date: Tue, 02 Dec 1997 00:00
45 lines
1480 bytes
On 28 Nov 1997 20:40:29 GMT, Ken Keen <TroubleEveryDay@Dangerous.Kitchen>
wrote:
>  I used to use tin (and hence B for searching bodies). I now use slrn. I
>  want the same functionality. Any hints?

Here is a macro that can search a newsgroup:

variable Last_Art_Search_Str = "";
define search_newsgroup ()
{
   variable str;
   variable flags;
   
   str = read_mini ("Search for regexp", Last_Art_Search_Str, "");
   !if (strlen (str))
     return;

   Last_Art_Search_Str = str;
   
   uncollapse_threads ();
   
   do
     {
	flags = get_header_flags ();
	
	if (re_search_article (str))
	  {
	     pop ();
	     return;
	  }
	
	set_header_flags (flags);
	
	call ("hide_article");
	
	% update ();
     }
   while (header_down (1));
   
   error ("Not found.");
}


Technical Details
Message-ID: <slrn685q71.5e.davis@mygir.davis.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
References: <slrn67rp1l.s8j.TroubleEveryDay@user1.teleport.com> <65mn8a$fvv@hpuamsa.neth.hp.com> <slrn67ub1s.e7r.TroubleEveryDay@user1.teleport.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn685q71.5e.davis@mygir.davis.net>
Subject: Re: Global search across articles
Date: Tue, 02 Dec 1997 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn67rp1l.s8j.TroubleEveryDay@user1.teleport.com> <65mn8a$fvv@hpuamsa.neth.hp.com> <slrn67ub1s.e7r.TroubleEveryDay@user1.teleport.com>
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: 294586329
Organization: Center for Space Research
Newsgroups: news.software.readers