Metalworking (rec.crafts.metalworking) Discuss various aspects of working with metal, such as machining, welding, metal joining, screwing, casting, hardening/tempering, blacksmithing/forging, spinning and hammer work, sheet metal work.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 416
Default Need regex code for counting newsgroups

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?

Thanks,

Joe Gwinn
  #2   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 327
Default Need regex code for counting newsgroups

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn
wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?

Thanks,

Joe Gwinn


You can set that in Agent 6.0 in folder properties. Today, I've been
using the Message-ID field for the new flock of bozos. When I see a
message id containing "theremailer" or "dont-email.me", it's a pretty
good bet for the bin.

Pete Keillor
  #3   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 416
Default Need regex code for counting newsgroups

In article , Pete Keillor
wrote:

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn
wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?

Thanks,

Joe Gwinn


You can set that in Agent 6.0 in folder properties. Today, I've been
using the Message-ID field for the new flock of bozos. When I see a
message id containing "theremailer" or "dont-email.me", it's a pretty
good bet for the bin.


Except that I cannot use Agent, because there is no Mac version.

I am using Thoth under MacOS, and Thoth follows Perl's version of regex.

Joe Gwinn
  #4   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 247
Default Need regex code for counting newsgroups

On Sat, 17 Aug 2013 17:58:13 -0400, Joe Gwinn wrote:

Except that I cannot use Agent, because there is no Mac version.


Runs great under Crossover Office on Linux, others have reported the MAC
version is just as good. Turning on a signature I normally use only in the
Forte Agent beta group...
--
William
Mandriva 2008.1 Linux, KDE, Cross Over Office 11.3.1, Athlon 64 X2 Dual-Core
4600+ (2.4GHz), 2GB RAM, ext3 file system, Gigabyte GA-M61PME-S2P, GeForce 6100
(built in), NVIDIA-x86-100.14.11 accelerated driver, 1280x1024x60Hz
  #5   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 9,025
Default Need regex code for counting newsgroups

On Sat, 17 Aug 2013 12:56:55 -0500, Pete Keillor
wrote:

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn
wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?

Thanks,

Joe Gwinn


You can set that in Agent 6.0 in folder properties. Today, I've been
using the Message-ID field for the new flock of bozos. When I see a
message id containing "theremailer" or "dont-email.me", it's a pretty
good bet for the bin.


How are you doing that, Pete? I only see a Message-ID field in
filtering emails, not Usenet posts.

--
Truth loves to go naked.
--Dr. Thomas Fuller, Gnomologia, 1732


  #6   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 2,584
Default Need regex code for counting newsgroups

On 2013-08-17, Joe Gwinn wrote:
There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?


The way I do it is based on the commas in the "Newgsgroups: "
header.

Two newgroups .*,.*
Three newsgroups .*,.*,.*
Four newsgroups .*,.*,.*,.*

Whe ".*" means any number of any characters.
',' means itself -- a plain old comma.

Exactly how you tell your newsreader to use those varies. I
would do something like "-10" for each one of those, so two newsgroups
would be -10, three would be -20, four (or more) would be -30, and set
the auto-kill threshold to -15. (Three is too many in cross-posting.) I
also use + scores on the "Subject: " header for the very few things
which I want to see which are cross-posted, such as the "What Is It"
weekly puzzle posting thread.

Enjoy,
DoN.

--
Remove oil spill source from e-mail
Email: | (KV4PH) Voice (all times): (703) 938-4564
(too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---
  #7   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 257
Default Need regex code for counting newsgroups

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?


The third link in google for terms
newsgroup filter crosspost count
looks like an r.c.m thread from 31 Aug 2011,
subject = "Agent kill filter help please". See eg
https://groups.google.com/forum/#!topic/rec.crafts.metalworking/P_jb3KpxUaU

You could also add a term for your specific newsreader.

--
jiw
  #8   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 327
Default Need regex code for counting newsgroups

On Sat, 17 Aug 2013 19:03:28 -0700, Larry Jaques
wrote:

On Sat, 17 Aug 2013 12:56:55 -0500, Pete Keillor
wrote:

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn
wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?

Thanks,

Joe Gwinn


You can set that in Agent 6.0 in folder properties. Today, I've been
using the Message-ID field for the new flock of bozos. When I see a
message id containing "theremailer" or "dont-email.me", it's a pretty
good bet for the bin.


How are you doing that, Pete? I only see a Message-ID field in
filtering emails, not Usenet posts.


H key to show the headers, then make a new filter with the message id
in the filter expression like below.

Message-ID: {googlegroups\.com}

The "\" is needed in front of the "." in the regular expression
language so that it isn't interpreted as a wildcard.

Pete Keillor
  #9   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 9,025
Default Need regex code for counting newsgroups

On Sun, 18 Aug 2013 06:37:29 -0500, Pete Keillor
wrote:

On Sat, 17 Aug 2013 19:03:28 -0700, Larry Jaques
wrote:

On Sat, 17 Aug 2013 12:56:55 -0500, Pete Keillor
wrote:

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn
wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?

Thanks,

Joe Gwinn

You can set that in Agent 6.0 in folder properties. Today, I've been
using the Message-ID field for the new flock of bozos. When I see a
message id containing "theremailer" or "dont-email.me", it's a pretty
good bet for the bin.


How are you doing that, Pete? I only see a Message-ID field in
filtering emails, not Usenet posts.


H key to show the headers, then make a new filter with the message id
in the filter expression like below.

Message-ID: {googlegroups\.com}

The "\" is needed in front of the "." in the regular expression
language so that it isn't interpreted as a wildcard.


Aha! Peachy. I'll give that a try. Thanks. Maybe this will work
for reference headers, too. If I can catch the orig. message (he's
filtered in my reader) when he's being referred to, I can end the spam
created when good folks (guilttripping Gunner, et al) reply to said
spammers.

I've been asking Agent techs (Beck, Gold, Prince) for text (or more
header) filtering for a decade now, to no avail.

--
Truth loves to go naked.
--Dr. Thomas Fuller, Gnomologia, 1732
  #10   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 416
Default Need regex code for counting newsgroups

In article , DoN.
Nichols wrote:

On 2013-08-17, Joe Gwinn wrote:
There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?


The way I do it is based on the commas in the "Newgsgroups: "
header.

Two newgroups .*,.*
Three newsgroups .*,.*,.*
Four newsgroups .*,.*,.*,.*

Whe ".*" means any number of any characters.
',' means itself -- a plain old comma.


That's what I was trying to remember. I knew there was a simple,
battle-tested solution. Thanks


Exactly how you tell your newsreader to use those varies.


I use Thoth, which uses the Perl regex engine PCRE
http://www.pcre.org/.


I would do something like "-10" for each one of those, so two newsgroups
would be -10, three would be -20, four (or more) would be -30, and set
the auto-kill threshold to -15. (Three is too many in cross-posting.)


Wonder if there is a direct way to count commas and kill if count
exceeds some threshold.


I also use + scores on the "Subject: " header for the very few things
which I want to see which are cross-posted, such as the "What Is It"
weekly puzzle posting thread.


I can also put the subject header test earlier in the processing, and
terminate filter processing for the correct subject.


Joe Gwinn


  #11   Report Post  
Posted to rec.crafts.metalworking
external usenet poster
 
Posts: 416
Default Need regex code for counting newsgroups

In article , James Waldby
wrote:

On Sat, 17 Aug 2013 12:51:54 -0400, Joe Gwinn wrote:

There was a thread some time ago on ways to kill postings with too many
cross-posts. Some of these methods involved regular expressions, most
likely counting commas in the newsgroups header. Can anyone provide a
pointer to the thread, or related threads?


The third link in google for terms
newsgroup filter crosspost count
looks like an r.c.m thread from 31 Aug 2011,
subject = "Agent kill filter help please". See eg
https://groups.google.com/forum/#!topic/rec.crafts.metalworking/P_jb3KpxUaU


I did do that and got flooded with suggestions that I use some other
newsreader, but I was looking for actual regex code, because the reader
I currently use (Thoth) does accept regex, so step one is to try that.


You could also add a term for your specific newsreader.


Hmm. Thoth is uncommon, so I didn't think to try that.

But I just tried it, using "thoth regex cross posting" (without
quotes), and it yielded another regex expression "x-ref matches Regular
Expression" from


http://compgroups.net/comp.sys.mac.s...sted-messages-
in-thoth/1154581 and

http://macusenet.com/archive/index-t-9149.html

Joe Gwinn
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
4000 and counting ... Steve R.[_3_] Metalworking 6 March 30th 08 08:04 PM
4000 and counting Ignoramus17370 Metalworking 4 March 29th 08 07:38 AM
Crap about crap flooding the newsgroups, floods the newsgroups! Twayne Woodworking 1 January 15th 08 05:26 AM
Cyclone seperator counting down on the'ba# Right now! [email protected] Woodworking 1 December 10th 05 09:05 PM
five weeks without hot water and counting [email protected] UK diy 13 April 27th 05 12:30 AM


All times are GMT +1. The time now is 06:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"