Thread View: news.software.readers
16 messages
16 total messages
Started by Blinky the Shark
Mon, 21 Apr 2008 03:53
[gnus] GG Filter
Author: Blinky the Shark
Date: Mon, 21 Apr 2008 03:53
Date: Mon, 21 Apr 2008 03:53
34 lines
1998 bytes
1998 bytes
Someone send me this via the Project's feedback. <q> To implement the message ID filter I did L i r p [L]ower the scorce based on message-[I]d matching a [R]egular expression, and make this rule [P]ermanent. The regular expression is just <.*\.googlegroups\.com> </q> I'll put it up at the UIP site if someone can confirm it for me. I don't really want to load a whole new OS (emacs) to check it. :) Is that a good description? I'd think anyone who's running emacs and gnus could figure it out, but I'd say that's pretty much true for slrn, too, and I still list that one. Thanks. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: Karl Kleinpaste
Date: Mon, 21 Apr 2008 14:55
Date: Mon, 21 Apr 2008 14:55
4 lines
1529 bytes
1529 bytes
Blinky the Shark <no.spam@box.invalid> writes: > Is that a good description? It's fine.
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Mon, 21 Apr 2008 16:47
Date: Mon, 21 Apr 2008 16:47
16 lines
1699 bytes
1699 bytes
Karl Kleinpaste wrote: > Blinky the Shark <no.spam@box.invalid> writes: >> Is that a good description? > > It's fine. Thanks, Karl. I'll get it up on the site today. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Mon, 21 Apr 2008 18:31
Date: Mon, 21 Apr 2008 18:31
31 lines
2048 bytes
2048 bytes
Karl Kleinpaste wrote: > Blinky the Shark <no.spam@box.invalid> writes: >> Is that a good description? > > It's fine. Second Reply: I've put it up at the Project, but I have a regex question As submitted, the expression was (and so far I'm using that at the UIP): <.*\.googlegroups\.com> Across my filter pages, I try to keep the expressions simple. Wouldn't this work? .*googlegroups.* Note: I'm not worried about false positives -- if it's got string googlegroups in the MID, it's a GG post. Thanks! -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: I R A Darth Aggie
Date: Mon, 21 Apr 2008 20:00
Date: Mon, 21 Apr 2008 20:00
26 lines
2415 bytes
2415 bytes
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*> -- 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.
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Mon, 21 Apr 2008 20:36
Date: Mon, 21 Apr 2008 20:36
33 lines
2293 bytes
2293 bytes
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? -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: I R A Darth Aggie
Date: Tue, 22 Apr 2008 20:06
Date: Tue, 22 Apr 2008 20:06
64 lines
3815 bytes
3815 bytes
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*. Which one is best to use probably comes down to "which is more efficient?" And unless one is attempting to process tens of thousands of posts in a sitting, it probably doesn't matter. And even then, you might not notice any difference. -- 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.
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Tue, 22 Apr 2008 20:38
Date: Tue, 22 Apr 2008 20:38
74 lines
4166 bytes
4166 bytes
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. Nor would I, although I *have* just to get a feel. > 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 I don't know which flavor of regex gnus uses. My intent with that syntax was .* (match any number of any characters) match char sequence googlegroups .* (match any number of any characters) > *googlegroups* That looked like wildmat syntax to me, for the lack of . (any character) for the * wildcards to work with. I do not know if that works with gnus' regex flavor. > 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*. > > Which one is best to use probably comes down to "which is more > efficient?" And unless one is attempting to process tens of thousands of > posts in a sitting, it probably doesn't matter. > > And even then, you might not notice any difference. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Tue, 22 Apr 2008 20:40
Date: Tue, 22 Apr 2008 20:40
68 lines
3885 bytes
3885 bytes
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? > Which one is best to use probably comes down to "which is more > efficient?" And unless one is attempting to process tens of thousands of > posts in a sitting, it probably doesn't matter. > > And even then, you might not notice any difference. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: »Q«
Date: Tue, 22 Apr 2008 21:16
Date: Tue, 22 Apr 2008 21:16
22 lines
2007 bytes
2007 bytes
I R A Darth Aggie <n0b0dy@invalid.invalid> wrote: > .*googlegroups.* > > tells me "match single character, 0-N characters, the literal string > googlegroups, single character, 0-N characters". .* matches any number of characters, not a single character followed by any number of characters. > Which is a hair different than > > *googlegroups* > > which says "match 0-N characters, the literal string googlegroups, 0-N > characters". In regular expressions, * is a metacharacter which modifies the expression before it. Starting a regex with * doesn't make sense. But if that's a wildmat expression, it matches exactly what the regex .*googlegroups.* matches.
Re: [gnus] GG Filter
Author: Karl Kleinpaste
Date: Tue, 22 Apr 2008 21:39
Date: Tue, 22 Apr 2008 21:39
7 lines
1849 bytes
1849 bytes
The easiest thing to do would be to replace
L i r p
with
L i s p
and just use
googlegroups
as the substring (s, rather than regex, r) match string.
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Tue, 22 Apr 2008 21:55
Date: Tue, 22 Apr 2008 21:55
40 lines
2535 bytes
2535 bytes
Karl Kleinpaste wrote: > The easiest thing to do would be to replace > L i r p > with > L i s p > and just use > googlegroups > as the substring (s, rather than regex, r) match string. The UIP loves simplicity. :) <Blinky edits a paste from the UIP> ------------------------->8------------------------- To create the Message-ID filter, do: l i s p ...which selects: [L]ower the scorce based on message-[I]d matching a [S]ubstring, and make this rule [P]ermanent. The regular expression to be set is simply: googlegroups -------------------------8<------------------------- How's that look? Is the case of that initial "L" in the key sequence significant? -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: Karl Kleinpaste
Date: Wed, 23 Apr 2008 00:53
Date: Wed, 23 Apr 2008 00:53
13 lines
2183 bytes
2183 bytes
Blinky the Shark <no.spam@box.invalid> writes: > l i s p L i s p > The regular expression to be set is simply: In this case, it's just a fixed substring, not a regular expression. > Is the case of that initial "L" in the key sequence significant? Yes, `L' is the "lower score" command, `l' is the "go to last article" command.
Re: [gnus] GG Filter
Author: Blinky the Shark
Date: Wed, 23 Apr 2008 01:20
Date: Wed, 23 Apr 2008 01:20
32 lines
2502 bytes
2502 bytes
Karl Kleinpaste wrote: > Blinky the Shark <no.spam@box.invalid> writes: >> l i s p > > L i s p > >> The regular expression to be set is simply: > > In this case, it's just a fixed substring, not a regular expression. Ah! Yes, I forgot to change that language. >> Is the case of that initial "L" in the key sequence significant? > > Yes, `L' is the "lower score" command, `l' is the "go to last article" > command. Cool. I'll re-upper-case it. Thanks. But not for snipping all of the rest of my proposed language, up there, so I have to go look for it. :) -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Re: [gnus] GG Filter
Author: I R A Darth Aggie
Date: Wed, 23 Apr 2008 15:10
Date: Wed, 23 Apr 2008 15:10
71 lines
4461 bytes
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.
Re: [gnus] GG Filter
Author: I R A Darth Aggie
Date: Wed, 23 Apr 2008 15:11
Date: Wed, 23 Apr 2008 15:11
30 lines
2807 bytes
2807 bytes
On Tue, 22 Apr 2008 16:16:14 -0500, »Q« <boxcars@gmx.net>, in <20080422161614.3500cdf5@bellgrove.remarqs.net> wrote: >+ I R A Darth Aggie <n0b0dy@invalid.invalid> wrote: >+ >+ > .*googlegroups.* >+ > >+ > tells me "match single character, 0-N characters, the literal string >+ > googlegroups, single character, 0-N characters". >+ >+ .* matches any number of characters, not a single character followed by >+ any number of characters. >+ >+ > Which is a hair different than >+ > >+ > *googlegroups* >+ > >+ > which says "match 0-N characters, the literal string googlegroups, 0-N >+ > characters". >+ >+ In regular expressions, * is a metacharacter which modifies the >+ expression before it. Starting a regex with * doesn't make sense. Obviously, I'm too perly. -- 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads