Article View: news.software.readers
Article #233481Re: [XPN] How to filter more NGs with one scorefile entry?
From: VanguardLH
Date: Mon, 01 Jun 2009 21:08
Date: Mon, 01 Jun 2009 21:08
60 lines
4560 bytes
4560 bytes
Alfred Weidlich wrote:
> I want to filter all groups with the string "reader" in it but all my
> regex and other filters dont wirk.
> XPN seems to have other filter synthax than slrn.
So what is it that you want? You want to eliminate all posts from those
that included a "reader" newsgroup? Well, you would filter on the
Newsgroups or Xref header to look for that string (can't give you a
specific string because you didn't give examples of newsgroup names).
Or do you want your filter to only apply to groups that have "reader"
somewhere in them (although examples would have helped to better suggest
a regex)? If so, why not use regex in the group name specified in the
newsgroup section delimiter?
[*]
Filters here apply to all groups.
[{*reader*}]
Filters here apply only to groups with "reader" somewhere in their name.
This is a bit generic and could include groups that you did not intend
to apply these filters. Something like {\.reader(|s)$} would ensure
that "reader" or "readers" was the last level in the hierarchy. Since
you didn't give specific examples of newsgroups you want to include,
responses will be just as vague.
[* -{\.reader(|s)}]
Filters apply to all groups except to those that have ".reader" or
".readers" at the end of their name. If you don't want to includes
groups that have this string somewhere in the middle of their name but
only at the end, use the "$" end-of-line anchor, as in {\.reader(|s)$}.
[* -{^microsoft\.(public|private)\..*}]
!ignore,markread Message-ID {<.+\.googlegroups\.com>}
Apply the filter to all groups except under the microsoft groups. For
example, I use this to hide posts from Google Groupers except in the
Microsoft newsgroups. The Microsoft groups aren't anywhere near as
afflicted with Google Groups spam. I use a view to hide ignored posts
(rather than delete them since replies to them would then show up), and
configure Dialog to apply the ignore flag to the entire subthread (since
I don't care about replies to Google Groupers in non-Microsoft groups).
[alt.comp.freeware]
Filters here eliminate all the noise in that group. Regex is not used
here so don't escape the period characters.
In 40tude Dialog (that I use), the braces delimit regular expressions.
The examples I gave above were from Dialog (which, I've been told, mimic
the syntax used in Hamster). I don't know if XPN uses the same syntax.
It's possible they use different delimiters than braces, like forward
slashes (which Javascript uses). The article to which Whiskers linked
gives an XPN example that looks for "googlegroups" to appear anywhere as
a *substring* in the Message-ID header. I'm a little more specific as
to where I look for it: at the end of the value and butted against the
closing angle bracket, that it includes the TLD, and that it occurs
somewhere after the opening bracket but that there is also at least 1
character before the "googlegroups.com" string). By being more
specific, I eliminate false matches. The XPN example doesn't use regex
so it is a bad example for what you want.
Technical Details
Message-ID:
<h01fvg$4nr$1@news.eternal-september.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!news.eternal-september.org!not-for-mailReferences:
<20090601154046.4688.48113.XPN@shak.user.open-news-network.org>Show Full Headers
Complete Article Headers
Message-ID: <h01fvg$4nr$1@news.eternal-september.org> Subject: Re: [XPN] How to filter more NGs with one scorefile entry? Date: Mon, 1 Jun 2009 16:08:01 -0500 From: VanguardLH <V@nguard.LH> References: <20090601154046.4688.48113.XPN@shak.user.open-news-network.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!news.eternal-september.org!not-for-mail Newsgroups: news.software.readers Organization: 0.35MOA sniper at loose in Usenet Lines: 60 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX191ZuhRwuyJDgRCxKa/WAP4mqDTy8Z+IIjpHZma+o98cmUpLMPI0IAmfqLZleQFYLOKexLNjdVAz1CpoL95ywecqcuqIU7wWa7dGl5TQhvk02VZYd96E1CxN4iL7SDrriQhIXtEZvXERg== X-Complaints-To: abuse@eternal-september.org NNTP-Posting-Date: Mon, 1 Jun 2009 21:08:00 +0000 (UTC) Keywords: VanguardLH VLH811 X-Auth-Sender: U2FsdGVkX19z0+B4wc7wp26UvUHgPk0qppVaF7PpjWvR6Moyrh+J7g== Cancel-Lock: sha1:uX3e+2gLl+Zt43qVdmDcfRTiAqQ= User-Agent: 40tude_Dialog/2.0.15.41 X-MOTD: It is wiser to remain silent and let others ponder your ignorance than to speak and remove all doubt