Article View: news.software.readers
Article #231432Re: [Dialog] Option to retrieve bodies of new posts does not work reliably
From: VanguardLH
Date: Sat, 14 Mar 2009 01:32
Date: Sat, 14 Mar 2009 01:32
102 lines
6843 bytes
6843 bytes
Oliver Cromm wrote:
> * VanguardLH <V@nguard.LH> wrote:
>
>> "Usenet articles are scored twice in Dialog. When you get headers in a
>> group the scoring rules are applied to the available, limited number of
>> headers, however when you retrieve the complete body of the message, the
>> message is scored again and this time all headers can be scored."
>>
>> Oh, goody. That means if a filter tests on a non-overview header (that
>> WILL be available after downloading the body) during its first pass
>> through the filters on downloading just the headers then it can (and
>> does) screw up the filters ran on the 2nd pass when the bodies are
>> downloaded.
>
> I don't quite get your confused description, but I don't see any
> screw-up. Filters that work on non-overview headers are simply not
> applied in the first pass.
That is NOT the behavior that I see. On the first pass (header download
only), messages are getting flagged Ignored where the filter tests on a
non-overview header. Because -@ is used to determine if the header does
not have the specified value, it also does not have this value if the
header does not exist!
So on the first pass (header download only):
- From {\bBruce.*\bHagen}
This matches on posts where "Bruce Hagen" is in the From header,
including those from the imposter.
- -@Header:{^NNTP-Posting-Host:.*\.sd\.cox\.net
This matches because this header is NOT included in the first pass.
It is not an overview header. Because it is absent, it also does not
have this value.
The result is that posts by the true Bruce Hagen get flagged Ignored in
the first pass. Then on the 2nd pass, Ignored posts are not retrieved
so I still don't get the non-overview header on which to test. However,
since the flag got set in the 1st pass, it won't get unflagged in the
2nd pass even if the non-overview header did exist.
> Maybe what you want to do is an Ignore-rule on an overview-header with
> exceptions defined on a non-overview header? Yeah, that won't work. You
> are better off downloading a few more bodies and then ignoring them
> after, or marking them read, even deleting.
The From is an overview header. The NNTP-Posting-Host is a non-overview
header. Both are needed in this case to identify the imposter. The
>From looks for the moniker that is being impostered and the
NNTP-Posting-Host was to check if it was from the real person (and, if
not, then it was the imposter).
> Or do you have filters that combine tests on overview- and non-overview
> headers? In that case, I have no idea what happens, though I would hope
> they will be ignored in the first pass, in which case they could be the
> answer to the problem described in the paragraph before.
There doesn't seem a problem (that I've noticed so far) with side
effects due to the two-pass filtering when +@ is used to include a
header as it must have that value to return a True. However, -@ returns
true if the header exists and does not have the value or if the header
does not exist (which means it also does not have the value) and it is
the latter case that causes the problem in the first pass.
I had to change my rule to look for:
!setcolor(maroon;white),ignore,markread
From {\bBruce.*\bHagen}
+@Header:{^NNTP-Posting-Host:.*\.ph\.cox\.net.*\b68\.104\.158\.220}
The Bruce Hagen imposter, so far, posts through the Phoenix branch of
Cox as their ISP and has this IP address. I could probably eliminate
the IP address and just look on ph.cox.net in the NNTP-Posting-Host
header. Bruce always posts from the San Diego branch (sd.cox.net). So
this altered filter will work for now but not if the imposter decides to
wander around to use different NNTP servers.
I figured that anyone named "Bruce Hagen" (in the particular groups
where he is a long-time regular) and who doesn't post from sd.cox.net is
the imposter. This imposter first started with "t", then another name,
became "Bruce Hagen" (and appeared to deliberately try to defame the
real Bruce), then went to person234 when it became evident everyone
could detect who he was, nymshifted again to person235, and I don't know
who he is now. He might've reformed but I don't care.
I was trying to use whatever all headers provided unique enough
information to identify anyone posting as "Bruce Hagen" but not posting
through sd.cox.net as not the real Bruce. This required a mix of
overview and non-overview headers. The only way to get the non-overview
headers is by downloading the bodies of the articles. However, the
first pass (headers only) that added the Ignore flag would result in
those posts not getting their bodies downloaded in the subsequent 2nd
pass. So not only did I not have the non-overview headers on which to
test but the Ignore flag already got added (and a filter to add the flag
won't remove it if already present but doesn't match the filter).
In my other post, I noted that Hamster includes a "?" operator or prefix
which says the filter is only exercised after the body has been
downloaded. Alas, Dialog doesn't support this operator. That would've
solved the problem right away (once I found out about it because it is
not documented in Dialog's help *if* it had worked).
Technical Details
Message-ID:
<gpf1eh$pv7$1@news.motzarella.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.news-service.com!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mailReferences:
<gpdub0$p8e$1@news.motzarella.org> <gpe0ob$gj5$1@news.motzarella.org> <1fbar2odxwgha.dlg@mid.crommatograph.info>Show Full Headers
Complete Article Headers
Message-ID: <gpf1eh$pv7$1@news.motzarella.org> Subject: Re: [Dialog] Option to retrieve bodies of new posts does not work reliably Date: Fri, 13 Mar 2009 20:32:19 -0500 From: VanguardLH <V@nguard.LH> References: <gpdub0$p8e$1@news.motzarella.org> <gpe0ob$gj5$1@news.motzarella.org> <1fbar2odxwgha.dlg@mid.crommatograph.info> 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.news-service.com!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: 0.35MOA sniper at loose in Usenet Lines: 102 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX19+RONL9tCEHcrcsomCpNXwyUi4hoRml7CwSeue+02CAioVXwVCyt2y2lYf6HB/W1HiSLpxLFFEwTFZ62w4WSdg32RhAqbrVlx976fyBOQlbFkPXBinqpFPpAMYqKw9pZL2oWAPbLOmKA== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Sat, 14 Mar 2009 01:32:01 +0000 (UTC) Keywords: VanguardLH VLH811 X-Auth-Sender: U2FsdGVkX19+iBmeANZRvcKVXASb8G11vRmW/dEGiSNxRvsYxAMCzw== Cancel-Lock: sha1:MM1WCtMWuc+YdoKbYV/hP+vh5lE= 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