🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50036

Re: docs on filter_art? Mime tools?

#50036
From: Mark W Modrall
Date: Mon, 22 Jan 2001 16:24
41 lines
2176 bytes
Thanks Russ...  at least it's nice to know i wasn't missing something
obvious...

Kind of on a related topic (related since it's something i'm trying
to lay out) - is there any support for wildmat-type matching extended
to the perl hooks?

I'm thinking of trying to implement a perl hook with a configuration
array that would hold various wildmats on newsgroups to allow for
different check functions to be run depending on what groups it's in...

unless i'm just missing something, it seems that the wildmat is an
extension on regexps, and it would be nice to have something like that
in perl...  i suppose i can just set up an associative array holding some
patterns and match against them in perl

thanks
-mark


In article <yllms7cesh.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Mark W Modrall <modrall@world.std.com> writes:
>
>> I've been wondering where to find documentation on the whole environment
>> for writing perl filters?
>
>README.perl_hook in the top level of the INN source tree.
>
>> I'm trying to use MIME tools in conjunction with the perl hook, and it
>> seems like a waste to reconstruct the message text from hdr and pass it
>> to the parser for processing...
>
>You pretty much have to do that with the current interface at present,
>though.
>
>-- 
>Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


Technical Details
Message-ID: <G7Ko9B.M88@world.std.com>
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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!world!modrall
References: <G7FGpD.6Fz@world.std.com> <yllms7cesh.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <G7Ko9B.M88@world.std.com>
Subject: Re: docs on filter_art? Mime tools?
Date: Mon, 22 Jan 2001 16:24:47 GMT
From: modrall@world.std.com (Mark W Modrall)
References: <G7FGpD.6Fz@world.std.com> <yllms7cesh.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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!world!modrall
Newsgroups: news.software.nntp
Distribution: na
Organization: The World Public Access UNIX, Brookline, MA
Lines: 40