🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47836

Re: I like slrn!

#47836
From: tony summerfelt
Date: Thu, 08 Apr 1999 00:00
84 lines
2865 bytes
On 6 Apr 1999 09:27:22 GMT, Ralph Sontag wrote:

> Btw: Is there a "body search" in slrn? Subject and authorsearch are
> great, but sometimes I want to look through the bodies.


working with some of the other macros this is what i came up with. you need
to throw the following line in your .slrnrc

interpret "/<path to slrn's macro directory/fsearch.sl"  


%this is the fsearch.sl
%
define newsgroup_search (criteria)
{
       variable flags;
       flags= get_header_flags ();
       uncollapse_threads ();
       do
       {
		  if (re_search_article (criteria))
	       {
		     call ("show_article");
			call ("uncatchup");
	          return;
	  }
       set_header_flags (flags);
       }
       while (header_down (1));
}

variable criteria = "";
variable last_search=criteria;
define cycle_groups ()
{
       criteria = read_mini ("find", "",criteria);
       !if (strlen(criteria))
	  {  
		criteria=last_search;
		!if (strlen(criteria))
		    return;
	  }
       call ("bob");
       do
       {
		 call ("select_group");
           newsgroup_search (criteria);
           call ("quit");
       }
       while (group_down_n (1));
       error ("not found");
}

define art_search ()
{
       criteria = read_mini ("find", "",criteria);
       !if (strlen(criteria))
	  {  
		criteria=last_search;
		!if (strlen(criteria))
		    return;
	  }
       newsgroup_search (criteria);
}

definekey ("cycle_groups", "^f", "group");
definekey ("art_search", "^f", "article");



-- 
.t

*------------------------------------------------------------------------
| long and useless .sig removed.  email me for the 10 meg version
| 
| 'you want a toe? I can get you a toe.'
|
| take myspleen out to reply via email
*------------------------------------------------------


Technical Details
Message-ID: <slrn7go2cj.3vvjt5f.tsummerfelt1@co146453-a.kico1.on.wave.home.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
References: <7du1vh$gab$2@news.inet.tele.dk> <slrn7g5dgu.nk.kew@localhost.localdomain> <7dvkfe$a1p$2@news.inet.tele.dk> <slrn7g7qkg.6m2.sgibier@hermes.olympus.fr> <7eck1q$cqd$1@narses.hrz.tu-chemnitz.de>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7go2cj.3vvjt5f.tsummerfelt1@co146453-a.kico1.on.wave.home.com>
Subject: Re: I like slrn!
Date: Thu, 08 Apr 1999 00:00:00 +0000
From: tsummerfelt1@myspleenhome.com (tony summerfelt)
References: <7du1vh$gab$2@news.inet.tele.dk> <slrn7g5dgu.nk.kew@localhost.localdomain> <7dvkfe$a1p$2@news.inet.tele.dk> <slrn7g7qkg.6m2.sgibier@hermes.olympus.fr> <7eck1q$cqd$1@narses.hrz.tu-chemnitz.de>
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: 464147213
X-Complaints-To: abuse@home.net
X-Trace: news.rdc1.on.wave.home.com 923599948 24.226.14.8 (Thu, 08 Apr 1999 12:32:28 PDT)
Organization: @Work Internet powered by @Home Network
User-Agent: slrn/0.9.5.4 (Windows)
Reply-To: tsummerfelt1@myspleenhome.com
NNTP-Posting-Date: Thu, 08 Apr 1999 12:32:28 PDT
Newsgroups: news.software.readers