🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #231422

Re: [Dialog] Option to retrieve bodies of new posts does not work reliably

#231422
From: VanguardLH
Date: Fri, 13 Mar 2009 18:38
82 lines
5077 bytes
Rom wrote:

> On Fri, 13 Mar 2009 10:33:24 -0500, VanguardLH wrote:
> 
>> Under the default group options, in the Retrieving category of options,
>> I enabled the option "Retrieve bodies for all new posts".  All group use
>> the default group options.  Yet when there are new posts to retrieve and
>> after retrieving their headers, there are still many posts that are
>> either:
>> 
>> - Their bodies are not downloaded.
> 
> Ignore doesn't download the bodies, unless an ignore matches a
> non-overview Header filter.

However, I *was* testing on a non-overview header: NNTP-Posting-Host.
Yet the first pass (download headers) had the filter flag the "Bruce
Hagen" articles as Ignored so on the second pass (download bodies) those
articles were NOT downloaded.

>> My filter looks like (all on one line but split here for clarity):
>> 
>> !setcolor(maroon;white),ignore,markread	
>>   From {\bBruce.*\bHagen} 
>>   -@Header:{^NNTP-Posting-Host:.*\.sd\.cox\.net}
> 
> Try changing the filter so From uses Header too, and adjust From, e.g.
> 
> !setcolor(maroon;white),ignore,markread
>  Header {^From: \bBruce.*\bHagen}
>  -@Header:{^NNTP-Posting-Host:.*\.sd\.cox\.net}

That doesn't work.  The absence of the NNTP-Posting-Host header in the
first pass (headers only) is what fires the filter to commit its action
(flag as Ignored) although that non-overview header is available in the
2nd pass (download bodies).  Alas, on the 2nd pass, the Ignore flag
doesn't get unflagged.

... a possible solution ...

I think I found an answer but have yet to test.  I read that Dialog uses
the scoring rules and syntax as used by Hamster.  I also read that I
need to see the scores.hst file for Hamster to understand all the syntax
for filter rules but which Dialog omits from describing in their help.
I found scores.hst at:

http://home.hetnet.nl/~ojb-hamster/EnWIP/EnWeb/html/file3vao.htm

Scrolling down to the "Score Rules (tested AFTER loading an article)"
section says that I can use "?" (instead of the "!") leading character
in a filter which makes that filter only apply after the 2nd pass (after
bodies have been downloaded).  So I would change my filter to:

?setcolor(maroon;white),ignore,markread	
  From {\bBruce.*\bHagen} 
  -@Header:{^NNTP-Posting-Host:.*\.sd\.cox\.net}

Since the "?" prefix means to run the filter AFTER the body has been
downloaded, it seems this should be used (instead of "!") on any filter
in which any header on which it tests is a non-overview header.  The
non-overview header won't be available until after the article [body] is
downloaded and that's after which the filter should be applied.

... well, it would've worked if ...

Turns out Dialog does NOT support all the scoring syntax of Hamster.
When "?" is used as the prefix, Dialog will bitch that an illegal
character was used.  So this functionality (of exercising a rule AFTER
the body has been downloaded) is not available in Dialog.

Dialog makes 2 passes on articles (for those that are downloaded) and
yet it doesn't support the "?" qualifier to exercise filters only after
the 2nd pass.  Oh great!

Too bad Dialog doesn't bypass a filter if a header specified within it
does not currently exist in the current instance of the article.  After
the 1st pass, the non-overview header won't be there.  A filter that
specifies a non-overview header can have side effects because -@ on a
missing header returns True.

Doesn't seem to be a workaround to Dialog's screwup when twice
exercising its filters on articles.
Technical Details
Message-ID: <gpe94s$420$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-mail
References: <gpdub0$p8e$1@news.motzarella.org> <iiv9a6o6vk9q.1fdfyo1g9liu1.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <gpe94s$420$1@news.motzarella.org>
Subject: Re: [Dialog] Option to retrieve bodies of new posts does not work reliably
Date: Fri, 13 Mar 2009 13:38:04 -0500
From: VanguardLH <V@nguard.LH>
References: <gpdub0$p8e$1@news.motzarella.org> <iiv9a6o6vk9q.1fdfyo1g9liu1.dlg@40tude.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!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: 82
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX1+NiaeFygmfV575PNqCSZFQd9NYmtxzMliQJj+o/FJCOEsKPH44i0dVxYJ2mbA6JF8TYeFmvP2cGvQIsqPNLsiwPMf4oVRZaYKmkj6l3vICQuqUBgxxHwXXOO6xj4/IC+g=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 13 Mar 2009 18:37:16 +0000 (UTC)
Keywords: VanguardLH VLH811
X-Auth-Sender: U2FsdGVkX19Qx+CmtYAEVDpwfIwAUNQAYcMIFc2ejLzxS//3WPMZUw==
Cancel-Lock: sha1:l/GJ0f8WCk9Hp0gBX9cf7lWIchA=
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