Thread: filter
View Single Post
  #9   Report Post  
Posted to rec.crafts.metalworking
Dennis Dennis is offline
external usenet poster
 
Posts: 27
Default filter

On 20/07/2011 8:26 AM, DoN. Nichols wrote:
On 2011-07-19, Pete wrote:

"T.Alan Kraus" wrote:

Does anyone know how to filter posts that have multiple newsgroups
besides rec.crafts metalworking, in Thunderbird

thanks, Id like to go back to reading metal related posts.


Dunno about Thunderbird, I use NewsProxy to handle my filtering since I
prefer the old Netscape Communicator news reader.


No idea what Thunderbird has for filtering -- but the primary
trick is to look at the "Newsgroups: " header, and count commas. There
will be one more newsgroup than there are commas, so if you find three
commas, you have at least four newsgroups. An example, in my
newsreader, is to look for:

Newsgroups: .*,.*,.*,.*

That is -- any number of characters after the space after the ':',
followed by a comma, followed by any number of characters again, and
another comma, followed again by any number of characters, another
comma, and (this should be optional) any number of characters again.

FWIW In the unix RE (Regular Expression) wildcarding syntax,
'.' represents any single character, and anything followed by a
'*' means any number of that, so "a*" means any number of the
letter 'a', [ab]* means any number of 'a' and or 'b", and
"[a-z]*" means any number of any character between 'a' and 'z'
(in other words, any lower case characters, any count thereof).

Obviously, other systems have other wildcarding practices.

And some don't require the "Newsgroups: " to be part of the
match string -- it is specified somehow else, such as:

"If Newsgroups contains"

or something similar.

Good Luck,
DoN.



Thanks Don - I've added that & will see if it works.