Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Filter syntax to drop posts using References header?

0 views
Skip to first unread message

Hamster.user

unread,
Jun 17, 2008, 7:41:53 AM6/17/08
to

[e-mail used is valid]


Hamster Classic v2.1.0.11

Hi, help appreciated. I want to create a filter to drop posts
which are replies to (say) googlegroups.com.

That is, when someone replies to a googler and the google MID is
the last one in the References list. I do NOT wish to drop a post
if there are other googlegroup MIDs in the References list, only
if it is the last entry.

I believe I can use the $ character somewhere to indicate the end
of string, but I'm not sure how/where to use it and whether the
filter should be a regex or standard Hamster filter. I've tried
several ways without success:

References {[g][o][o][g][l][e][g][r][o][u][p][s][.][c][o][m]$}
References {googlegroups.com$}
References {googlegroups.com}$
References "googlegroups.com$"
References "googlegroups.com"$


Scenario:

1. [google post]
2. [response to googler post by non-googler]
3. [another response by non-googler]

I want a filter to drop article 2.

A suggested syntax to use please anyone?

TIA

Wolfgang Jäth

unread,
Jun 18, 2008, 2:15:01 AM6/18/08
to
"Hamster.user" <hamste...@2die4.com> schrieb ...

>
> That is, when someone replies to a googler and the google MID is
> the last one in the References list. I do NOT wish to drop a post
> if there are other googlegroup MIDs in the References list, only
> if it is the last entry.
>
> I believe I can use the $ character somewhere to indicate the end
> of string, but I'm not sure how/where to use it and whether the
> filter should be a regex or standard Hamster filter. I've tried
> several ways without success:
>
> References {[g][o][o][g][l][e][g][r][o][u][p][s][.][c][o][m]$}

Working, but complicated.

> References {googlegroups.com$}

Yes. Exactly it should be "{googlegroups/.com$}", as in RegEx, a dot means
'any character'. But at this position, it's very unlikely to find any
another character than a dot. So, both versions will do it quite well.

> References {googlegroups.com}$
> References "googlegroups.com$"
> References "googlegroups.com"$

No.

Wolfgang
--

Wolfgang Jäth

unread,
Jun 18, 2008, 6:58:42 AM6/18/08
to
"Wolfgang Jäth" <jawo.us...@goldmail.de> schrieb ...

>
> Yes. Exactly it should be "{googlegroups/.com$}",

Sorry, spelling mistake; must be "{googlegroups\.com$}".

Wolfgang
--

Michael Jaritz

unread,
Jun 18, 2008, 3:22:43 PM6/18/08
to
Wolfgang Jäth schrieb:

>"Wolfgang Jäth" <jawo.us...@goldmail.de> schrieb ...
>>
>> Yes. Exactly it should be "{googlegroups/.com$}",
>
>Sorry, spelling mistake; must be "{googlegroups\.com$}".

Don't forget the ">".

References: <foo...@example.net>

It must be "{googlegroups\.com>$}".

Michael

Hamster.user

unread,
Jun 18, 2008, 6:16:38 PM6/18/08
to

On Wed, 18 Jun 2008 21:22:43 +0200 'Michael Jaritz'
wrote this on hamster.en.misc:

Uhgrr. Thanks Michael.
Today, I've been trying out Wolfgang's revised filter and
wondering why nothing appears to be getting caught.
I was going to try again tomorrow and see how it went...

Now I try out your revision with ">" in and see how that goes.

This is a good learning exercise for me :-)

Much appreciated.

Wolfgang Jäth

unread,
Jun 19, 2008, 1:21:51 AM6/19/08
to
"Michael Jaritz" <ewig...@abwesend.de> schrieb ...

>
>>"Wolfgang Jäth" <jawo.us...@goldmail.de> schrieb ...
>>>
>>> Yes. Exactly it should be "{googlegroups/.com$}",
>>
>>Sorry, spelling mistake; must be "{googlegroups\.com$}".
>
> Don't forget the ">".

Yes, of course. :-(

> References: <foo...@example.net>
>
> It must be "{googlegroups\.com>$}".

AOL.

Wolfgang
--

Hamster.user

unread,
Jun 21, 2008, 9:28:46 AM6/21/08
to

On Wed, 18 Jun 2008 23:16:38 +0100 'Hamster.user'
wrote this on hamster.en.misc:


Michael and Wolfgang,
Yes, adding the ">" char to the filter makes it to work perfectly.

Life is becoming blissful ;-)

Many thanks for your help on this, much appreciated.

0 new messages