🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34703

Re: Pre-post hook in slrn?

#34703
From: asf... Lloyd Zusman
Date: Sun, 29 Jun 1997 00:00
43 lines
1819 bytes

On 29 Jun 1997 09:47:48 GMT, John E. Davis <da...@space.mit.edu> wrote:
> On 25 Jun 1997 05:15:33 GMT, Jan Hlavacek <lah...@math.ohio-state.edu>
> wrote:
> >I would love to see pre-post and pre-display hooks in slrn.
> 
> 0.9.4.2 will feature a `post_hook' and a `post_filter_hook'.  What
> should a pre-display hook do?  Here is a sample post_filter_hook:
> 
> define post_filter_hook (file)
> {
>    variable rsp;
>    variable cmd;
>    
>    forever 
>      {
> 	rsp = get_response ("NnIi",
> 			    "Select Filter? \001None, \001Ispell");
> 	
> 	if ((rsp == 'i') or (rsp == 'I'))
> 	  cmd = "ispell -x";
> 	else return;
> 	
> 	() = system (Sprintf ("%s '%s'", cmd, file, 2));
>      }
> }
> 
> This example makes it clear that other filter options can be added.

This is great!

Will there be a way from within 'post_filter_hook' to tell slrn not to
post the article?  One method I can think of would be to use the
return value from 'post_filter_hook' to control this. Or perhaps the
'error' routine could be used ... ???



-- 
 Lloyd Zusman
 l...@asfast.com
Technical Details
Message-ID: <slrn5rct13.j1.asfast@ljz.asfast.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn5r0s5r.ocr.asfast@ljz.asfast.net> <slrn5r1abk.bv5.lahvak+n@math.mps.ohio-state.edu> <slrn5rbunf.3rb.davis@mygir.davis.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5rct13.j1.asfast@ljz.asfast.net>
Subject: Re: Pre-post hook in slrn?
Date: Sun, 29 Jun 1997 00:00:00 +0000
From: asf...@asfast.com (Lloyd Zusman)
References: <slrn5r0s5r.ocr.asfast@ljz.asfast.net> <slrn5r1abk.bv5.lahvak+n@math.mps.ohio-state.edu> <slrn5rbunf.3rb.davis@mygir.davis.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 253427255
X-Newsgroup: news.software.readers
Organization: As Fast
Reply-To: l...@asfast.com (Lloyd Zusman)
Newsgroups: news.software.readers,alt.lang.s-lang