Article View: news.software.nntp
Article #50053Re: docs on filter_art? Mime tools?
From: Russ Allbery
Date: Mon, 22 Jan 2001 23:54
Date: Mon, 22 Jan 2001 23:54
34 lines
2306 bytes
2306 bytes
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. > 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, No, wildmat is basically modelled after shell wildcards and is a good bit less powerful than regexes (particularly Perl regexes). > 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. There's a rough wildmat to regex converter in the same authentication hook code, although it doesn't fully handle character classes. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<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-01!supernews.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<G7FGpD.6Fz@world.std.com> <yllms7cesh.fsf@windlord.stanford.edu> <G7Ko9B.M88@world.std.com>Show Full Headers
Complete Article Headers
Message-ID: <yl7l3n3zy7.fsf@windlord.stanford.edu> Subject: Re: docs on filter_art? Mime tools? Date: Mon, 22 Jan 2001 23:54:40 +0000 From: Russ Allbery <rra@stanford.edu> References: <G7FGpD.6Fz@world.std.com> <yllms7cesh.fsf@windlord.stanford.edu> <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-01!supernews.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 33 Distribution: na NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 980207681 1323 171.64.13.23 (22 Jan 2001 23:54:41 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)