Article View: news.software.readers
Article #34941Re: Another feature request for slrn.
From: asf... Lloyd Zusman
Date: Tue, 08 Jul 1997 00:00
Date: Tue, 08 Jul 1997 00:00
61 lines
3305 bytes
3305 bytes
On 8 Jul 1997 17:22:10 GMT, Jan Hlavacek <lah...@math.ohio-state.edu> wrote: > In article <slrn5s2a4...@ljz.asfast.net>, Lloyd Zusman wrote: > >I'm currently using slrn 0.9.4.2 and I'm very happy with it. I > >especially like the newly added post_filter_hook. I would like, > >however, to have the option of causing all posts to go through > >this hook. In other words, I'd like to request that there be > >a variable in .slrnrc which, if set, would bypass the requirement > >that we type "f" at the prompt, and which would cause all posted > >articles and followups to go through post_filter_hook as the final > >step before being posted. > > > > You can use a shell script as your editor, and do it from the shell > script. That's what I used to do, but I had problems with that approach. It turns out that the new post_filter_hook functionality in 0.9.4.2 takes care of the problems I had with the shell-script-as-editor approach I previously used ... except for the necessity to type "f" to invoke the filter, which I am addressing here. In an earlier post, I outlined the problem that I had with my earlier shell-script-as-editor approach, but I'll repeat it here. What I want my filter to do is to run the post through some tests, and based on the results of these tests, automatically cause one of the following actions to take place: (1) Post the article as is. (2) Send the article back into the text editor. (3) Discard the article without posting it. Number 2 is trivial to implement using the shell-script-as-editor method, but numbers 1 and 3 cannot be done from within the shell script without extra user interaction, since the only way to cause an automatic "Y" or "N" to be sent as responses to the slrn "Post this article?" prompt is to use the 'set_input_chars' function, which can only be invoked from within slrn (i.e., not from within my shell script). As I mentioned in my previous post, I am successfully using 'set_input_chars' from within the new 'post_hook', 'forward_hook', and 'post_filter_hook' functions to fully automate this process, but in order to anticipate all the possible prompts I would have to answer, I have to replicate a significant amount of functionality that already exists in the slrn source code. If, through the setting of a variable in .slrnrc, we could optionally cause the 'post_filter_hook' to always run without the need to type "f" at a prompt, then I could eliminate the bulk of this redundant code. This is the reason that I have requested this feature. -- Lloyd Zusman l...@asfast.com
Technical Details
Message-ID:
<slrn5s5c6u.25s.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-mailReferences:
<slrn5s2a4n.881.asfast@ljz.asfast.net> <slrn5s4tq2.a79.lahvak+n@math.mps.ohio-state.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn5s5c6u.25s.asfast@ljz.asfast.net> Subject: Re: Another feature request for slrn. Date: Tue, 08 Jul 1997 00:00:00 +0000 From: asf...@asfast.com (Lloyd Zusman) References: <slrn5s2a4n.881.asfast@ljz.asfast.net> <slrn5s4tq2.a79.lahvak+n@math.mps.ohio-state.edu> 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: 255587619 X-Newsgroup: news.software.readers Organization: As Fast Reply-To: l...@asfast.com (Lloyd Zusman) Newsgroups: news.software.readers,alt.lang.s-lang