🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264691

Re: 40tude Dialog scoring/filter on Date: header

#264691
From: Ron
Date: Sat, 13 Feb 2021 15:12
33 lines
2028 bytes
Bernd wrote:

>On Fr, 12th Feb 2021 20:28:51 -0000 (UTC), Ron wrote:
>
>> Am trying to use 
>> -2 Date: "-1000" 
>> But no scoring is happening.
>> 
>> How do I score/filter on the timezone (-1000) in the date header?
>
>Although the Date header is part of the XOver group and therefore should be 
>available for direct scoring by its name, it receives a special treatment,
>that prevents your filter string to match. Date is not stored as unaltered
>string in the header overview part of the Dialog database, but as real date
>number. (From this, the virtual Age header is also derived, btw.)
>
>To filter on timezone, you need to do it on the virtual "Header" header, 
>that includes every header line, instead. - This should work:
>
>-2 Header {\^Date[^\r\n]+-1000}

That works for me.  Thank you.

Just so I understand -
Even though Date is included in the XOver group (overview.fmt), it is 
not available for scoring/filtering when the head is pulled.  Date 
becomes available for scoring/filtering when the body is pulled and
the full article is in Dialog.
Is that correct?

And if I want to score on a time zone ahead of UTC, the + sign must be 
escaped?  
-2 Header {^Date[^\r\n]+\+0200}
Technical Details
Message-ID: <s08q93$4c5$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <s06oe3$188$1@dont-email.me><1lyg7s5idn1yx.dlg@b.rose.tmpbox.news.arcor.de>

Show Full Headers
Complete Article Headers
Message-ID: <s08q93$4c5$1@dont-email.me>
Subject: Re: 40tude Dialog scoring/filter on Date: header
Date: Sat, 13 Feb 2021 15:12:35 +0000
From: Ron <Ron@is.invalid>
References: <s06oe3$188$1@dont-email.me><1lyg7s5idn1yx.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
User-Agent: 40tude_Dialog/2.0.15.41
Organization: A noiseless patient Spider
Lines: 33
Newsgroups: news.software.readers
Content-Type: text/plain; charset="us-ascii"
Injection-Date: Sat, 13 Feb 2021 15:12:35 -0000 (UTC)
Content-Transfer-Encoding: 7bit
Cancel-Lock: sha1:nktF2m3eeoC2LDrtoZ0v2jjqZoY=
Mime-Version: 1.0