🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50074

Re: docs on filter_art? Mime tools?

#50074
From: Mark W Modrall
Date: Tue, 23 Jan 2001 18:08
35 lines
2086 bytes
In article <yl7l3n3zy7.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Mark W Modrall <modrall@world.std.com> writes:
>
>> 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?
>
>Regexes are generally much more powerful, so it's easier to just use them,
>although that does mean learning two syntaxes.

	when i actually read the wildmat module, i saw what you mean...
I'd assumed that the boolean join logic (ie *,!comp.foobar.*,etc) would
be part of the wildmat package; i saw that it was implemented elsewhere...

>> 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
>
>I'd recommend doing it that way.

	i've implemented the boolean join stuff with the associative
array in perl, but i have to input the match with $_ (to get 
eval ($pattern) to produce the right result when pattern =
/rec.*/&&!/rec.arts.michael-bolton/)  Not the cheapest thing but
it works...

thanks
-mark


Technical Details
Message-ID: <G7MnpH.96p@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!typhoon.sonic.net!uunet!sac.uu.net!ash.uu.net!world!modrall
References: <G7FGpD.6Fz@world.std.com> <yllms7cesh.fsf@windlord.stanford.edu> <G7Ko9B.M88@world.std.com> <yl7l3n3zy7.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <G7MnpH.96p@world.std.com>
Subject: Re: docs on filter_art? Mime tools?
Date: Tue, 23 Jan 2001 18:08:05 GMT
From: modrall@world.std.com (Mark W Modrall)
References: <G7FGpD.6Fz@world.std.com> <yllms7cesh.fsf@windlord.stanford.edu> <G7Ko9B.M88@world.std.com> <yl7l3n3zy7.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!typhoon.sonic.net!uunet!sac.uu.net!ash.uu.net!world!modrall
Newsgroups: news.software.nntp
Distribution: na
Organization: The World Public Access UNIX, Brookline, MA
Lines: 34