šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
21 messages
21 total messages Started by Rene Kita Mon, 09 Oct 2023 07:55
[tin] Filtering for Message-ID
#266271
Author: Rene Kita
Date: Mon, 09 Oct 2023 07:55
19 lines
1292 bytes
Due to recent events I finally tried to filter Google Groups users with
tin. I do not want to filter followups to posts from GG users.

AFAIU GG posters have a Message-ID which always ends with
'@googlegroups.com'.

I have the following regex in my filter file:
group=*
case=0
score=-25
msgid=.*@googlegroups.com>

The above filter entry does not match initial articles. I tried multiple
versions, including using msgid_last and msgid_only, but could not
achieve what I wanted. I did not spot a pattern what is matched.

Can I somehow see what tin filters to debug this?

Does someone here has a working filter and would share it?
Re: [tin] Filtering for Message-ID
#266272
Author: Ralph Fox
Date: Mon, 09 Oct 2023 08:25
33 lines
2010 bytes
On Mon, 9 Oct 2023 07:55:13 -0000 (UTC), Rene Kita wrote:

> Due to recent events I finally tried to filter Google Groups users with
> tin. I do not want to filter followups to posts from GG users.
> 
> AFAIU GG posters have a Message-ID which always ends with
> '@googlegroups.com'.
> 
> I have the following regex in my filter file:
> group=*
> case=0
> score=-25
> msgid=.*@googlegroups.com>
> 
> The above filter entry does not match initial articles. I tried multiple
> versions, including using msgid_last and msgid_only, but could not
> achieve what I wanted. I did not spot a pattern what is matched.
> 
> Can I somehow see what tin filters to debug this?
> 
> Does someone here has a working filter and would share it?


This site is now a few years old, but its tin filter may still work.

    "The Usenet Improvement Project - Filters Examples 3"
    <http://twovoyagers.com/improve-usenet.org/filters_ex3.html>


-- 
Kind regards
Ralph Fox
🦊 
Re: [tin] Filtering for Message-ID
#266276
Author: issdr
Date: Mon, 09 Oct 2023 08:25
7 lines
1186 bytes
Rene Kita wrote:

> AFAIU GG posters have a Message-ID which always ends with
> '@googlegroups.com'.

don't know specifically about tin, but... i'd use `$' (end of line) on
my regex
Re: [tin] Filtering for Message-ID
#266279
Author: issdr
Date: Mon, 09 Oct 2023 08:34
7 lines
1090 bytes
Rene Kita wrote:

> msgid=.*@googlegroups.com>

try this:

msgid=.*@googlegroups\.com
Re: [tin] Filtering for Message-ID
#266273
Author: issdr
Date: Mon, 09 Oct 2023 08:46
14 lines
1255 bytes
issdr wrote:

> Rene Kita wrote:
>
>> msgid=.*@googlegroups.com>
>
> try this:
>
> msgid=.*@googlegroups\.com

nevermind. you should check tin's wildcard variable; however, this
should work in any case:

msgid_only:@googlegroups.com
Re: [tin] Filtering for Message-ID
#266274
Author: Rene Kita
Date: Mon, 09 Oct 2023 08:51
37 lines
1947 bytes
Ralph Fox <-rf-nz-@-.invalid> wrote:
> On Mon, 9 Oct 2023 07:55:13 -0000 (UTC), Rene Kita wrote:
> 
>> Due to recent events I finally tried to filter Google Groups users with
>> tin. I do not want to filter followups to posts from GG users.
>> 
>> AFAIU GG posters have a Message-ID which always ends with
>> '@googlegroups.com'.
>> 
>> I have the following regex in my filter file:
>> group=*
>> case=0
>> score=-25
>> msgid=.*@googlegroups.com>
>> 
>> The above filter entry does not match initial articles. I tried multiple
>> versions, including using msgid_last and msgid_only, but could not
>> achieve what I wanted. I did not spot a pattern what is matched.
>> 
>> Can I somehow see what tin filters to debug this?
>> 
>> Does someone here has a working filter and would share it?
> 
> 
> This site is now a few years old, but its tin filter may still work.
> 
>     "The Usenet Improvement Project - Filters Examples 3"
>     <http://twovoyagers.com/improve-usenet.org/filters_ex3.html>

To quote the important part from that site:
group=*
case=0
score=kill
msgid_only=googlegroups

I tried that and articles with a Message-Id containing googlegroups are
not killed.
Re: [tin] Filtering for Message-ID
#266277
Author: Rene Kita
Date: Mon, 09 Oct 2023 08:56
26 lines
1306 bytes
issdr <p_u_n_k_i_n_d@yahoo.it> wrote:
> issdr wrote:
> 
>> Rene Kita wrote:
>>
>>> msgid=.*@googlegroups.com>
>>
>> try this:
>>
>> msgid=.*@googlegroups\.com
> 
> nevermind. you should check tin's wildcard variable;

wildcard is set to 1 in my tinrc.

> however, this should work in any case:
> 
> msgid_only:@googlegroups.com

I suppose you meant
msgid_only=@googlegroups.com

Does not work.

E.g. Message-ID: <ab3059fc-cab2-4048-b901-f43283285324n@googlegroups.com>
still has a score of 0 here.
Re: [tin] Filtering for Message-ID
#266278
Author: DV
Date: Mon, 09 Oct 2023 09:07
18 lines
2736 bytes
Rene Kita wrote:

> AFAIU GG posters have a Message-ID which always ends with
> '@googlegroups.com'.

I found a message posted via Google Groups whose M-ID doesn't end with
@googlegroups.com (but it's from 2012):

<5593130.935.1330589899531.JavaMail.geo-discussion-forums@ynjc20>

I think the best header field to filter Google Groups messages is
Injection-Info, which always contains the string ’googlegroups’.

-- 
Denis

Serveurs de news et passerelles web : <http://usenet-fr.yakakwatik.org>
Lecteurs de news : <http://usenet-fr.yakakwatik.org/lecteurs-de-news.html>
Re: [tin] Filtering for Message-ID
#266280
Author: DrunkenThon
Date: Mon, 09 Oct 2023 09:07
22 lines
1312 bytes
Rene Kita <mail@rkta.de> wrote:
> To quote the important part from that site:
> group=*
> case=0
> score=kill
> msgid_only=googlegroups
> 
> I tried that and articles with a Message-Id containing googlegroups are
> not killed.

For *wildmat* this will work:
 msgid_only=*@googlegroups.com*

For *rexexp* use this:
 msgid_only=@googlegroups\.com

You can set this option (wildcard) to either 0 or 1 (0 for wildmat
and 1 for regex) in your tinrc file (tipically its ~/.tin/tinrc).

-- 
Best regards,
DrunkenThon.
Re: [tin] Filtering for Message-ID
#266281
Author: Rene Kita
Date: Mon, 09 Oct 2023 09:15
26 lines
1621 bytes
Rene Kita <mail@rkta.de> wrote:
> Due to recent events I finally tried to filter Google Groups users with
> tin. I do not want to filter followups to posts from GG users.
> 
> AFAIU GG posters have a Message-ID which always ends with
> '@googlegroups.com'.
> 
> I have the following regex in my filter file:
> group=*
> case=0
> score=-25
> msgid=.*@googlegroups.com>
> 
> The above filter entry does not match initial articles. I tried multiple
> versions, including using msgid_last and msgid_only, but could not
> achieve what I wanted. I did not spot a pattern what is matched.
> 
> Can I somehow see what tin filters to debug this?
> 
> Does someone here has a working filter and would share it?

As always, it was a PEBKAC. I had another rule that also matched.
Apparently, if you have a msgid and a from in one rule those are not
ANDed but ORed.

Sorry for the noise and thanks for rubber-ducking.
Re: [tin] Filtering for Message-ID
#266282
Author: Sn!pe
Date: Mon, 09 Oct 2023 09:44
30 lines
2402 bytes
Rene Kita <mail@rkta.de> wrote:

> Due to recent events I finally tried to filter Google Groups users with
> tin. I do not want to filter followups to posts from GG users.
> 
> AFAIU GG posters have a Message-ID which always ends with
> '@googlegroups.com'.
> 
> I have the following regex in my filter file:
> group=*
> case=0
> score=-25
> msgid=.*@googlegroups.com>
> 
> The above filter entry does not match initial articles. I tried multiple
> versions, including using msgid_last and msgid_only, but could not
> achieve what I wanted. I did not spot a pattern what is matched.
> 
> Can I somehow see what tin filters to debug this?
> 
> Does someone here has a working filter and would share it?
>

In MacSOUP I kill Google posts with 'User-Agent contains "G2/1.0"'
Perhaps that could work for tin too.

-- 
^Ə^.         Sn!pe         <https://youtu.be/_kqytf31a8E>

 My pet rock Gordon just is.    
Re: [tin] Filtering for Message-ID
#266283
Author: Urs Janßen
Date: Mon, 09 Oct 2023 10:51
40 lines
2041 bytes
>> I do not want to filter followups to posts from GG users.

then you should use msgid_only instead of msgid

>> I have the following regex in my filter file:
>> group=*
>> case=0
>> score=-25
>> msgid=.*@googlegroups.com>

the leading .* is unnecessary when using regex-filters, but the dot should
be escaped:

msgid_only=@googlegroups\.com>

and I would make the search case insensitive via either

case=1

or by prefixing the regexp with (?i):

case=0
msgid_only=(?i)@googlegroups\.com>

>> Can I somehow see what tin filters to debug this?

If tin is compiled with debugging support and started with "-D 2"
it will create $TMPDIR/FILTER (details about the filter rules) and
$TMPDIR/ARTS (status of the articles after applying the rules), but
those files are hard to read without having some knowledge about the
data-structures used. there is no simply "article killed due to the
following rule" output available.

> As always, it was a PEBKAC. I had another rule that also matched.
> Apparently, if you have a msgid and a from in one rule those are not
> ANDed but ORed.

yes, there is currently no AND (but you could use scores with sum up to
score_limit_kill/score_limit_select only if all the rules are matched as
some kind of a workaroud.
Re: [tin] Filtering for Message-ID
#266284
Author: John McCue
Date: Mon, 09 Oct 2023 18:12
26 lines
1383 bytes
Rene Kita <mail@rkta.de> wrote:
> Due to recent events I finally tried to filter Google Groups users with
> tin. I do not want to filter followups to posts from GG users.
> 
> AFAIU GG posters have a Message-ID which always ends with
> '@googlegroups.com'.
> 
> I have the following regex in my filter file:
> group=*
> case=0
> score=-25
> msgid=.*@googlegroups.com>

A few years ago tin made changes to their filter logic and I
found this works for me:

group=*
case=0
score=kill
msgid_last=*<*@googlegroups.com>*

> Does someone here has a working filter and would share it?

just did :)

HTH
Re: [tin] Filtering for Message-ID
#266285
Author: Rene Kita
Date: Tue, 10 Oct 2023 07:29
26 lines
2024 bytes
Urs Janßen <urs@buil.tin.org> wrote:
>>> Can I somehow see what tin filters to debug this?
> 
> If tin is compiled with debugging support and started with "-D 2"
> it will create $TMPDIR/FILTER (details about the filter rules) and
> $TMPDIR/ARTS (status of the articles after applying the rules), but
> those files are hard to read without having some knowledge about the
> data-structures used. there is no simply "article killed due to the
> following rule" output available.

I will try this out. Seeing that an article is matched by multiple rules
would have been enough in my case.

>> As always, it was a PEBKAC. I had another rule that also matched.
>> Apparently, if you have a msgid and a from in one rule those are not
>> ANDed but ORed.
> 
> yes, there is currently no AND (but you could use scores with sum up to
> score_limit_kill/score_limit_select only if all the rules are matched as
> some kind of a workaroud.

This was what I was trying to do. There is a user who sometimes posts
via Google Groups. My idea was to apply a positive score when he posts
via GG, but not when he uses a proper news reader.

Thanks for the detailed answer.
Re: [tin] Filtering for Message-ID
#266286
Author: Rene Kita
Date: Tue, 10 Oct 2023 07:36
26 lines
1481 bytes
John McCue <jmccue@fuzzball.jmcunx.com> wrote:
> Rene Kita <mail@rkta.de> wrote:
>> Due to recent events I finally tried to filter Google Groups users with
>> tin. I do not want to filter followups to posts from GG users.
>> 
>> AFAIU GG posters have a Message-ID which always ends with
>> '@googlegroups.com'.
>> 
>> I have the following regex in my filter file:
>> group=*
>> case=0
>> score=-25
>> msgid=.*@googlegroups.com>
> 
> A few years ago tin made changes to their filter logic and I
> found this works for me:
> 
> group=*
> case=0
> score=kill
> msgid_last=*<*@googlegroups.com>*

Thanks for sharing.

Urs recommended to use msgid_only. What difference does msgid_last make
here? I guess some replies will be killed, too.
Re: [tin] Filtering for Message-ID
#266287
Author: Urs Janßen
Date: Tue, 10 Oct 2023 11:06
42 lines
2446 bytes
In <ug2utl$10f6d$2@dont-email.me> on Tue, 10 Oct 2023 09:36:23,
    Rene Kita wrote:
> Urs recommended to use msgid_only. What difference does msgid_last make
> here? I guess some replies will be killed, too.

[tin(5)]
|     ${TIN_HOMEDIR:-"$HOME"}/.tin/filter
 [...]
|          msgid_last
|               Match  against  ’’Message-ID:’’  and last ’’References:’’
|               entry only. The matching type used (wildmat or regex) de‐
|               pends on the setting of the tinrc variable wildcard.
|
|          msgid_only
|               Match against ’’Message-ID:’’.  The  matching  type  used
|               (wildmat  or  regex)  depends on the setting of the tinrc
|               variable wildcard.

so with msgid_last direct responses would be matched too.

JFTR I've added the following to tin(5) to clarify things:

#v+
== modified file 'doc/tin.5'
--- old/doc/tin.5       2023-07-31 06:03:39 +0000
+++ new/doc/tin.5       2023-10-09 19:57:53 +0000
@@ -759 +759,3 @@
-lines beginning with a '#' are ignored.
+lines beginning with a '#' are ignored. Multiple matching-rules in the same
+scope are all applied individually and not only when they all hit at the
+same time (logical OR not AND).
@@ -879,0 +882,9 @@
+
+comment=downscore postings in nsr from google base on
+comment=message-id or path, if both hit they end up with
+comment=a score of -66 which is enough to mark them killed
+group=news.software.readers
+case=1
+score=-33
+path=\\.googlegroups\\.com!not-for-mail$
+msgid_only=@googlegroups\\.com>
#v-
Re: [tin] Filtering for Message-ID
#266288
Author: Rene Kita
Date: Wed, 11 Oct 2023 07:24
48 lines
2693 bytes
Urs Janßen <urs@buil.tin.org> wrote:
> In <ug2utl$10f6d$2@dont-email.me> on Tue, 10 Oct 2023 09:36:23,
>     Rene Kita wrote:
>> Urs recommended to use msgid_only. What difference does msgid_last make
>> here? I guess some replies will be killed, too.
> 
> [tin(5)]
> |     ${TIN_HOMEDIR:-"$HOME"}/.tin/filter
>  [...]
> |          msgid_last
> |               Match  against  ’’Message-ID:’’  and last ’’References:’’
> |               entry only. The matching type used (wildmat or regex) de‐
> |               pends on the setting of the tinrc variable wildcard.
> |
> |          msgid_only
> |               Match against ’’Message-ID:’’.  The  matching  type  used
> |               (wildmat  or  regex)  depends on the setting of the tinrc
> |               variable wildcard.
> 
> so with msgid_last direct responses would be matched too.

Maybe you could clarify this too. For me it was not obvious that 'last
References entry' means direct responses.

> JFTR I've added the following to tin(5) to clarify things:
> 
> #v+
> == modified file 'doc/tin.5'
> --- old/doc/tin.5       2023-07-31 06:03:39 +0000
> +++ new/doc/tin.5       2023-10-09 19:57:53 +0000
> @@ -759 +759,3 @@
> -lines beginning with a '#' are ignored.
> +lines beginning with a '#' are ignored. Multiple matching-rules in the same
> +scope are all applied individually and not only when they all hit at the
> +same time (logical OR not AND).
> @@ -879,0 +882,9 @@
> +
> +comment=downscore postings in nsr from google base on
> +comment=message-id or path, if both hit they end up with
> +comment=a score of -66 which is enough to mark them killed
> +group=news.software.readers
> +case=1
> +score=-33
> +path=\\.googlegroups\\.com!not-for-mail$
> +msgid_only=@googlegroups\\.com>
> #v-

Thanks for this.
Re: [tin] Filtering for Message-ID
#266289
Author: Urs Janßen
Date: Wed, 11 Oct 2023 08:16
14 lines
1443 bytes
Rene Kita wrote:
> Maybe you could clarify this too. For me it was not obvious that 'last
> References entry' means direct responses.

I've updated it to

|   msgid_last
|        Match against ''Message-ID:''  and  last  ''References:''
|        entry  (direct  responses)  only.  The matching type used
|        (wildmat or regex) depends on the setting  of  the  tinrc
|        variable wildcard.

keep in mind that this is the man page about the various file-formats
used by tin and not to explain usenet (headers) in details.
Re: [tin] Filtering for Message-ID
#266292
Author: Milo Asher
Date: Thu, 12 Oct 2023 20:00
2 lines
1097 bytes
Buy ozempic online mexico without prescription 
https://buyozempiconlinemexico.com/
Re: [tin] Filtering for Message-ID
#266293
Author: Milo Asher
Date: Thu, 12 Oct 2023 20:01
2 lines
1167 bytes
Buy ozempic online mexico without prescription 
https://buyozempiconlinemexico.com/
Re: ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowflake ā„ā„ Snowf...
#266304
Author: šŸŒˆšŸ’šŸŒ»šŸŒŗšŸŒ¹šŸŒ»šŸ’šŸŒ·šŸŒŗšŸŒˆJenšŸŒˆšŸ’šŸŒ»šŸŒŗšŸŒ¹šŸŒ»šŸ’šŸŒ·šŸŒŗšŸŒˆ Dershmen...
Date: Tue, 17 Oct 2023 16:21
50 lines
7018 bytes
On Mon, 9 Oct 2023 10:44:41 +0100, LO AND BEHOLD; WARNING:
"Injection-Info: snipe.eternal-september.org" detected, therefore some 
british guy who was apprehended by bobbies in Lancashire having been
accused of molesting several stones and pebbles in the area is on the
loose once again.  He may possibly be spotted in his natural
environment of usenet ko0k froups demonstrating his UPA where he
pretends that he's a bird that somehow is also a telepathic/spiritual
conduit for a pet rock named Gordon that he purchased from a Roma
fortune teller while completely fscked on lsd in 1971.  He presently
poasts his fascist and white supremacist-leaning sentiments using
upwards of 3 ridiculous nyms including: "snipeco.2@gmail.com (Sn!pe)"
DO NOT APPROACH HIM, as he has a pointy beak and is very very angry at 
the way that the tide is turning for white privilege and he determined
that the following was of great importance and subsequently decided to 
freely share it with us in
<1qibxph.183zkkmt7nnvfN%snipeco.2@gmail.com>:
 
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔Rene✔Kita✔<mail@rkta.de>✔wrote:
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔Due✔to✔recent✔events✔I✔finally✔tried✔to✔filter✔Google✔Groups✔users✔with✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔tin.✔I✔do✔not✔want✔to✔filter✔followups✔to✔posts✔from✔GG✔users.✔AFAIU✔GG✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔posters✔have✔a✔Message-ID✔which✔always✔ends✔with✔'@googlegroups.com'.✔I✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔have✔the✔following✔regex✔in✔my✔filter✔file:✔group=*✔case=0✔score=-25
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔msgid=.*@googlegroups.com>✔The✔above✔filter✔entry✔does✔not✔match
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔initial✔articles.✔I✔tried✔multiple✔versions,✔including✔using✔msgid_last
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔and✔msgid_only,✔but✔could✔not✔achieve✔what✔I✔wanted.✔I✔did✔not✔spot✔a
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔pattern✔what✔is✔matched.✔Can✔I✔somehow✔see✔what✔tin✔filters✔to✔debug
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔this?✔Does✔someone✔here✔has✔a✔working✔filter✔and✔would✔share✔it?✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔In✔MacSOUP✔I✔kill✔Google✔posts✔with✔'User-Agent✔contains✔"G2/1.0"'
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔Perhaps✔that✔could✔work✔for✔tin✔too.✔
=?UTF-8?B?8J+Ps++4j+KAjfCfjIg=?=✔

What's hilarious is that you do that and yet you still pollute usenet complaining about everything you've "blocked".

-- 

Golden Killfile, June 2005
KOTM, November 2006
Bob Allisat Memorial Hook, Line & Sinker, November 2006
Special Ops Cody Memorial Purple Heart, November 2006
Special Ops Cody Memorial Purple Heart, September 2007
Tony Sidaway Memorial "Drama Queen" Award, November 2006
Busted Urinal Award, April 2007
Order of the Holey Sockpuppet, September 2007
Barbara Woodhouse Memorial Dog Whistle, September 2006
Barbara Woodhouse Memorial Dog Whistle, April 2008
Tinfoil Sombrero, February 2007
AUK Mascot, September 2007
Putting the Awards Out of Order to Screw With the OCD Fuckheads, March 2016 
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