🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #29516

Re: Replacing innmail?

#29516
From: Peter J Naylor
Date: Thu, 02 Jul 1998 00:00
101 lines
4652 bytes
In article <m3d8bqoxkm.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Peter J Naylor <pete@filter.supernal.net> writes:
>> Russ Allbery <rra@stanford.edu> writes:
> 
>>> You don't filter, do you?
> 
>> No.  If I did I'd accomplish it using methods similar to the hippo.
>> There is absolutely no way I'd consider doing it with an interpretted
>> scripting language.
> 
> Even though it's dramatically faster

Really?  How so?

> and more convenient. 

For whom?

> Okay.  Fair
> enough; I'll stick with my tools and you're certainly welcome to yours.
> I'd prefer that INN not *require* Perl unless it's absolutely necessary
> either.

That's precisely my point - and Perl is not a necessary requirement in
the case of INN.

>> I have no issue with the Perl filtering hooks - they can easily be
>> configured out.  It seems a bit weird that there isn't a generic
>> interface for such filters though.
> 
> The problem is that you can't really write a generic interface for
> embedding an interpretor into a binary.  There are interfaces for the two
> most common embedded languages.

I wouldn't want an embedded interpretor - happily they're easy to
configure out.  spamhippo is a set of patches for the INN configs and
source code.  Wouldn't it be nicer to be able to specify an executable
in the config files which would be forked at run time and sit there
being fed either the complete article or just the headers (another
config file option?) - returning responses which match a predefined
set that INN could then act upon?  That way you could write the
executable in whatever language you prefer - shell script if you wish.

>> Strange - I've never had the slightest hint of trouble with the shell
>> scripts.
> 
> You'd already fixed the security hole in the control message parsing
> before the CERT advisory blew up? 

No, but thankfully I wasn't prone to that problem - I don't process
newgroups or rmgroups automatically - they're all mailed on for a
human to look at.  That's not to say it wasn't a serious problem
for many others.

> Directly traceable to using shell
> rather than something with sane quoting behavior that doesn't try to
> execute everything.

Directly traceable to poor programming, and Perl is just as likely to
be problematic when someone makes a mistake.  Perl itself isn't free
from security problems either.

>> Again, I have no problems with the shell scripts, but I find the Perl
>> equivalents are exactly that - *equivalents*.  Why bother?
> 
> Because it would reduce undreadable 200 line scripts to readable 30 line
> scripts

The readability issue is your opinion only, and the line counts are both
unsubstantiated and unimportant to users.

> that run an order of magnitude faster

The scripts we're talking about have negligible performance impact
when considering the overall package.  If performance was truly of
major importance they shouldn't be interpretted.

> and require less resources
> to run on my system, given that Perl is already in memory.

That's your choice and your system.  I don't use Perl for anything.

> news:~> ls -al /usr/local/bin/perl
> -rwxr-xr-x   2 root     root         8896 Dec 29  1997 /usr/local/bin/perl*
> 
> Shared libraries are your friend.

Only if they're actually shared.  Small binaries make better friends,
and so do packages that install without requiring half a dozen other
packages that you otherwise have no use for.

-- 
/*-------------------------------------------------------------*
 * Peter James Naylor ## SysAdmin, Supernal Technologies, Inc. *
 *-------------------------------------------------------------*
    * pete@filter.supernal.net ## <http://www.supernal.net> *
    *-------------------------------------------------------*/

Technical Details
Message-ID: <6netla$su5$1@news.supernal.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <6napr9$oov$1@nnrp1.dejanews.com> <87hg13uhd9.fsf@erlenstar.demon.co.uk> <6nc7s9$1lc$1@news.supernal.net> <m390meuulh.fsf@windlord.Stanford.EDU> <6ncl16$5s6$1@news.supernal.net> <m3d8bqoxkm.fsf@windlord.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <6netla$su5$1@news.supernal.net>
Subject: Re: Replacing innmail?
Date: Thu, 02 Jul 1998 00:00:00 +0000
From: pete@filter.supernal.net (Peter J Naylor)
References: <6napr9$oov$1@nnrp1.dejanews.com> <87hg13uhd9.fsf@erlenstar.demon.co.uk> <6nc7s9$1lc$1@news.supernal.net> <m390meuulh.fsf@windlord.Stanford.EDU> <6ncl16$5s6$1@news.supernal.net> <m3d8bqoxkm.fsf@windlord.Stanford.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 367959195
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Supernal Technologies, Inc.
Newsgroups: news.software.nntp