🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Tom Friedetzky Mon, 26 Aug 1996 00:00
slrn and searching
#25274
Author: Tom Friedetzky
Date: Mon, 26 Aug 1996 00:00
17 lines
973 bytes

Hi,

I am wondering if it is possible to let slrn search for a string
in all the article *bodies* in the currently selected news group
and then, similar to header search, show one after the other if
the search is repeated. Any ideas?

Best,
  Tom.
  
-- 
EMACS is a *great* operating system, but UNIX has better editors.


Re: slrn and searching
#25308
Author: John E. Davis
Date: Tue, 27 Aug 1996 00:00
15 lines
1060 bytes
On 26 Aug 1996 07:02:38 GMT, Tom Friedetzky <friedetz@hpmayr15.informatik.tu-muenchen.de>
wrote:
 : I am wondering if it is possible to let slrn search for a string
 : in all the article *bodies* in the currently selected news group
 : and then, similar to header search, show one after the other if
 : the search is repeated. Any ideas?

This will be available in the 0.9 series via a macro.  Look for an
announcement soon.

--John


Re: slrn and searching
#25327
Author: Alexander Sanda
Date: Wed, 28 Aug 1996 00:00
19 lines
1284 bytes
In article <slrn522j0e.63v.friedetz@hpmayr15.informatik.tu-muenchen.de>,
friedetz@informatik.tu-muenchen.de wrote:

>I am wondering if it is possible to let slrn search for a string
>in all the article *bodies* in the currently selected news group
>and then, similar to header search, show one after the other if
>the search is repeated. Any ideas?

AFAIK, this is currently not supported. But it is on the TODO and may be 
available in one of the next versions.


--
#  /AS/   mailto:alex@darkstar.ping.at          beware of the Penguin  #
#  http://www.ping.at/members/alexa/            powered by Linux  2.0  #
------------------------------------------------------------------------

Re: slrn and searching
#25330
Author: John E. Davis
Date: Wed, 28 Aug 1996 00:00
58 lines
2417 bytes
On Wed, 28 Aug 96 07:43:40 GMT, Alexander Sanda <alex@darkstar.ping.at>
wrote:
 : >I am wondering if it is possible to let slrn search for a string
 : >in all the article *bodies* in the currently selected news group
[...]
 : AFAIK, this is currently not supported. But it is on the TODO and may be 
 : available in one of the next versions.

0.9 will support it via a macro.  However, since all articles would
have to be downloaded from the server, this type of search will be
slow.  Its speed has nothing to do with the fact that it is
implemented via a macro.

As an alternative, I recommend using a search engine such as
altavista.  In fact, slrn 0.9 will provide an example macro that
prompts for a search string and then calls a web browser to connect to
the altavista server.  Here is the macro:

define altavista_search ()
{
   variable browser = "lynx";
   variable url = "http://www.altavista.digital.com/";
   variable cgi = "cgi-bin/query?pg=q&what=news&fmt=.&q=";
   variable str, new_str, len, ch, chlo, i;
   variable cmd;
   
   str = strcat ("+newsgroups:", current_newsgroup ());
   str = strcat (str, " +");
   
   str = read_mini ("AltaVista Search: ", str);
   
   len = strlen (str);
   !if (len) return;
   
   new_str = "";
   for (i = 0; i < len; i++)
     {
	ch = str [i];
	chlo = ch | 0x20;
	if ((chlo > 'z') or (chlo < 'a'))
	  ch = Sprintf ("%%%02X", ch, 1);
	else 
	  ch = char (ch);
	
	new_str = strcat (new_str, ch);
     }
   
   cmd = Sprintf ("%s '%s%s%s'", browser, url, cgi, new_str, 4);
   () = system (cmd);
}
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


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