Article View: news.software.readers
Article #242070Re: [Dialog] Scoring not matching newsgroups
From: VanguardLH
Date: Wed, 11 Aug 2010 18:27
Date: Wed, 11 Aug 2010 18:27
170 lines
9361 bytes
9361 bytes
Sqwertz wrote:
> I just had to re-setup my Dialog installation since my new hard drive
> decided to die right on the sectors holding Dialog.
>
> I know this is going to be something stupid on my part, so break it to me
> gently.
>
> Why doesn't:
>
> # Evil Crossposting Groups
> [soc.support rec.knives rec.sport rec.travel]
> !markread,ignore message-id *
>
> Match:
>
> Newsgroups: [no CRLF here]
> alt.flame,rec.sport.football.college,soc.support.fat-acceptance,rec.food.cooking
> Message-ID: <qig066plklg70i0gqg71v9bgl5mp3jif7a@4ax.com>
> Xref: Hurricane-Charley alt.flame:209039 rec.sport.football.college:1421855
> soc.support.fat-acceptance:78978 rec.food.cooking:1183530
>
> I've also tried with wildcards:
> [soc.support.* rec.knives rec.sport.* rec.travel.*]
>
> I know this is going to be something stupid, so break it to me gently. It
> worked for a few header retreivals then I added a couple groups and now it
> fails to match anything.
>
> -sw
Simple. The newsgroup selection line (the "[grouplist]" to which
newsgroup a filter gets applied) is NOT the same as looking in the
Newsgroups header to see in which groups a post was submitted. Do you
actually visit those groups? If so, why? If you don't want to see any
posts in those *newsgroups* then don't visit there. Simple solution.
You don't need to filter out posts for groups to which you don't
subscribe.
If you don't want to see any posts that have been cross-posted to those
groups (when you are visiting a DIFFERENT group) then you need to test
if the group has been specified *in* the headers of the post. That
means testing on either the Newsgroups or Xref headers. The Newsgroups
header is not part of the overview header set when your newsreader
retrieves headers to find new posts. To get the Newsgroups header means
trying to figure out how to get Dialog to use the XHDR command (I
haven't figure it out) or configure Dialog to download the bodies of the
posts so you get ALL their headers (I do this because there are lots of
non-overview headers on which I test, and I only visit text groups and
no binary groups with huge-sized posts).
To see what headers are included in the overview header set, telnet into
your NNTP server to list the overview headers (only works if logging on
isn't required to do some commands):
telnet <yourNNTPserver> 119
list overview.fmt
quit
If Xref is an included overview header (it should be) then you need to
use THAT header to look for cross-postings into OTHER newsgroups than
you actually visit. Otherwise, you'll have to configure Dialog to
download the bodies of the posts so you get ALL of their headers (Group
-> Default Group -> Retrieving -> Retrieve bodies for all new messages)
so you can test for the "bad" newsgroups in the Newsgroups header. If
you're going to the expense of downloading the bodies to test on
non-overview headers, you should probably also test if the bad groups
were specified in a FollowUp-To header, too, since that is a typical
ploy by flamers.
Regarding the FollowUp-To header, you can configure Dialog to colorize
that header, if present, shown in the preview pane. That way, you can
see when some asshole is trying to redirect replies to another group or
when some boob is misusing this header (there are extremely rare
instances where the use of FollowUp-To is actually valid). Right-click
in the header pane of the preview panel and select Edit Visible Headers.
I have the following colorizations defined:
Purpose: Boob wants to redirect post to another group
Caption: ALERT --> FollowUp-To
Content: FollowUp-To
Colorize: Always
Bold: Always
Underline: Never
Purpose: Boob wants to take discussion offline via e-mail
Caption: Alert --> FollowUp-To: poster (email)
Content: FollowUpTo: poster
Colorize: Always
Bold: Always
Underline: Never
Purpose: Warn of assholes that like to punch holes in archived threads.
Caption: WARN --> X-No-Archive
Content: X-No-Archive
Colorize: Always
Bold: Always
Underline: Never
Although the first two (for FollowUp-To) appear that the 2nd would be
covered by the first, I want the alert shown in the header pane to tell
me, in the special 2nd case, when someone is trying to waylay the
discussion by taking it offline (or trying to Joe Job someone else by
sending Usenet-originated e-mails there, like a flammer trying to
lambast someone's e-mail account). The 2nd is a spcial case of the 1st
but I want it separately alerted. The result is that if those headers
(defined by the Content field) are used in a post then it gets displayed
in color and bolded in the header pane to warn me of its use.
Back to your original question, don't test on the message-id header for
posts you retrieved from a newsgroup. If you don't want to visit that
newsgroup then don't. Unsubscribe from it. The "[grouplist]" delimiter
says to which groups the following filters will apply. Well, if you
don't visit those newsgroups then those filter will obviously never get
applied. Test for the bad group in the Xref header. If you have Dialog
downloading the bodies of the posts (do this if you only visit text
groups) so you can test on all headers instead of just the overview
headers, you can then chose to test on the Newsgroups header. However,
at that point, you might as well as test on the FollowUp-To header, too.
Here's my filter (because I do have the Newsgroups header on which to
test):
!ignore,markread Header
{^(Newsgroups|FollowUp-To):.*\b(2600|kook(|s)|warez|test(|en)\b|soc(\.|i)|pol(\.|iti)|hate|relig)}
I'm not interested in posts that are [cross]posted to the 2600 (cracks),
kook, warez (pirateware), test, sociology, political, hate, or religious
newsgroups. In your case for your much fewer list of unwanted groups,
and not having the Newsgroups or FollowUp-To header on which to filter
but just Xref, you would use:
!ignore,markread Header
{^Xref:.*\b(soc\.support|rec\.(knives|sport|travel))}
This might work, too:
!ignore,markread Xref {\b(soc\.support|rec\.(knives|sport|travel))}
Dialog performs 2 passes on its filters if you download the bodies. The
first pass applies the filters against just the retrieved headers. If a
filter tags a post as ignored, the body for that post won't get
downloaded on the 2nd pass. The 2nd pass is for when you download the
bodies and the filters get reapplied on the posts (that weren't already
tagged in the 1st pass). So you could actually use both of the above
filters. The one testing on Xref would get exercised in the first pass
and tag the unwanted posts. In the second pass, the 2nd filter (using
the Newsgroups or FollowUp-To headers) wouldn't get exercised because
the posts on which it would match have already been tagged in the 1st
pass. You don't need to ignore and already ignored post. However, it
is possible your Xref filter has slightly different criteria than your
Newsgroups filter and why you would still have the Newsgroups filter to
test in the 2nd pass. The 2nd pass will take longer since the bodies
are getting downloaded.
If you want your filter to apply on all posts in all newsgroups then you
list it after the all-groups delimiter:
[*]
If you find that it is just in some groups where you encounter posters
that cross-post to the "bad" newsgroups then you list the filter after
THAT group delimiter, like:
[24hoursupport.helpdesk,alt.comp.freeware,microsoft.*]
Those would have to be groups to which you actually subscribe to get
posts from those newsgroups. Having a group delimiter specifying to
look at those posts from those groups won't work if you don't *retrieve*
any posts from those groups.
Technical Details
Message-ID:
<i3uq1r$hut$1@news.albasani.net>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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!feeder.news-service.com!news.mixmin.net!news.albasani.net!not-for-mailReferences:
<qxshr7pexvqq.dlg@sqwertz.com>Show Full Headers
Complete Article Headers
Message-ID: <i3uq1r$hut$1@news.albasani.net> Subject: Re: [Dialog] Scoring not matching newsgroups Date: Wed, 11 Aug 2010 13:27:17 -0500 From: VanguardLH <V@nguard.LH> References: <qxshr7pexvqq.dlg@sqwertz.com> 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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!feeder.news-service.com!news.mixmin.net!news.albasani.net!not-for-mail Newsgroups: news.software.readers Organization: 0.35MOA sniper at loose in Usenet Lines: 170 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net iXCdvz32OkDF6kup/OfHhwTh9eVOFN+lLf/JlaVcL7TtXo2eUK/+Ij7mg6CiYZmCBj2mqIjAc4fVBMH7AXHfSir5U7XZT6CBCDaHhIJDonVguWfP6QP6yoLhpDBWwG5v X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Wed, 11 Aug 2010 18:27:07 +0000 (UTC) Keywords: VanguardLH VLH811 X-User-ID: gxUtiy4QKQ+odWnaPE6YVy3d+NxSF2pcyR7ok1a3IzdZClcBrzvfe8e5tLsodPCM4ZfheU/hXGNWWZ5AmdI2ow== Cancel-Lock: sha1:bAjuK60A3cSBHOeWtleRtyAkT1g= User-Agent: 40tude_Dialog/2.0.15.41 X-NNTP-Posting-Host: in6FScKvut1lD3x+VPRk60IPVLDh3Ft1sPOpC4v9RMc= X-MOTD: It is wiser to remain silent and let others ponder your ignorance than to speak and remove all doubt