Article View: news.software.nntp
Article #29470Re: Replacing innmail?
From: Russ Allbery
Date: Wed, 01 Jul 1998 00:00
Date: Wed, 01 Jul 1998 00:00
52 lines
2763 bytes
2763 bytes
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 and more convenient. 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. > 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'm seriously considering beginning the project of rewriting all the >> shell scripts that come with INN into Perl, just because currently >> they're a zoo, slow, and subject to all of the annoying and possibly >> dangerous shell misinterpretations of things. > 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? Directly traceable to using shell rather than something with sane quoting behavior that doesn't try to execute everything. > 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 that run an order of magnitude faster and require less resources to run on my system, given that Perl is already in memory. 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. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<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-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <m3d8bqoxkm.fsf@windlord.Stanford.EDU> Subject: Re: Replacing innmail? Date: Wed, 01 Jul 1998 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> 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> 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: 367680493 Sender: eagle@windlord.Stanford.EDU Organization: The Eyrie Newsgroups: news.software.nntp