🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219908

Re: [gnus] GG Filter

#219908
From: I R A Darth Aggie
Date: Wed, 23 Apr 2008 15:10
71 lines
4461 bytes
On Tue, 22 Apr 2008 13:40:16 -0700,
Blinky the Shark <no.spam@box.invalid>, in
<pan.2008.04.22.20.40.15.631349@thurston.blinkynet.net> wrote:
>+  I R A Darth Aggie wrote:
>+ 
>+ > On Mon, 21 Apr 2008 13:36:49 -0700,
>+ > Blinky the Shark <no.spam@box.invalid>, in
>+ > <pan.2008.04.21.20.36.48.165788@thurston.blinkynet.net> wrote:
>+ >>+  I R A Darth Aggie wrote:
>+ >>+
>+ >>+ > On Mon, 21 Apr 2008 11:31:36 -0700, + > Blinky the Shark
>+ >><no.spam@box.invalid>, in + >
>+ >><pan.2008.04.21.18.31.34.433748@thurston.blinkynet.net> wrote: + >
>+ >>+ >>+  As submitted, the expression was (and so far I'm using that at the
>+ >>+ >>UIP):
>+ >>+ >
>+ >>+ >>+ <.*\.googlegroups\.com>
>+ >>+ >
>+ >>+ >>+  Wouldn't this work?
>+ >>+ >>+
>+ >>+ >>+  .*googlegroups.*
>+ >>+ >
>+ >>+ > Yes. But...
>+ >>+ >
>+ >>+ >>+  Note: I'm not worried about false positives -- if it's got string
>+ >>+ + >>googlegroups in the MID, it's a GG post. + >
>+ >>+ > Well, in that case you can probably simplify it further to read: + >
>+ >>+ > <*googlegroups*>
>+ >>+
>+ >>+  Substituting wildmat for whatever flavor of regex the first version + 
>+ >>represents?
>+ > 
>+ > The *whooshing* sound you hear is that sentence flying well over my head.
>+ > I'm probably missing context. gnus would not be my first choice of
>+ > newsreader, nor my second.
>+ > 
>+ > It is my understanding that to a well behaved REGEX parser, an unescaped
>+ > "." will match any given single character. So
>+ > 
>+ > .*googlegroups.*
>+ > 
>+ > tells me "match single character, 0-N characters, the literal string
>+ > googlegroups, single character, 0-N characters". Which is a hair different
>+ > than
>+ > 
>+ > *googlegroups*
>+ > 
>+ > which says "match 0-N characters, the literal string googlegroups, 0-N
>+ > characters".
>+ > 
>+ > The first one will *not* match the following: googlegroups while the
>+ > second will. But while there is a difference between them, it is pretty
>+ > much moot - almost all MID's will have the form of
>+ > *stuff*googlegroups*morestuff*.
>+ 
>+  Are you referring to the second and third examples, there? 
>+ 
>+ <.*\.googlegroups\.com> <---- this one being the first?

Yes.

I guess another way of saying it is that *googlegroups* is greediest,
.*googlegroups.* is less greedy, and .*\.googlegroups\.com is least
greedy. If you don't care about false positives, the greediest is an
OK solution, and easiest to look at and understand.

-- 
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
Technical Details
Message-ID: <slrng0ukac.5ev.n0b0dy@invalid.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail
References: <pan.2008.04.21.03.52.58.399962@thurston.blinkynet.net> <vxkmynnqmu9.fsf@mesquite.kleinpaste.org> <pan.2008.04.21.18.31.34.433748@thurston.blinkynet.net> <slrng0psjl.fse.n0b0dy@invalid.invalid> <pan.2008.04.21.20.36.48.165788@thurston.blinkynet.net> <slrng0sh9f.u1h.n0b0dy@invalid.invalid> <pan.2008.04.22.20.40.15.631349@thurston.blinkynet.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrng0ukac.5ev.n0b0dy@invalid.invalid>
Subject: Re: [gnus] GG Filter
Date: Wed, 23 Apr 2008 15:10:04 +0000
From: I R A Darth Aggie <n0b0dy@invalid.invalid>
References: <pan.2008.04.21.03.52.58.399962@thurston.blinkynet.net> <vxkmynnqmu9.fsf@mesquite.kleinpaste.org> <pan.2008.04.21.18.31.34.433748@thurston.blinkynet.net> <slrng0psjl.fse.n0b0dy@invalid.invalid> <pan.2008.04.21.20.36.48.165788@thurston.blinkynet.net> <slrng0sh9f.u1h.n0b0dy@invalid.invalid> <pan.2008.04.22.20.40.15.631349@thurston.blinkynet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: Texas A&M University - North Florida
Lines: 71
Reply-To: no-courtesy-copies-please
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX1/Sm3mlf9sKtTK4n0yrkXgRPQLFRuYzaQnOKFjFrnaFjim9WFeqwAJxqCSBDIZ3SsMQh8otEBQ8BGbxIEBDfa16RDxxpWIUhmZgqdQ3ovjIxyLAJDUzmxeTB199sq7SMkngKQQpKRGvSg==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Wed, 23 Apr 2008 15:10:04 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1/EUSBVX3YvebdrI0WKmZRBS6l1y4B+pWKFPh8i6ZXtlw==
Cancel-Lock: sha1:wYyLGMBQ3QLA8KoTNDP4OleviZk=
User-Agent: slrn/pre0.9.9-99 (Debian)
X-WebTV-Stationery: Standard; BGColor=black; TextColor=black