🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Ron Sat, 13 Feb 2021 15:12
Re: 40tude Dialog scoring/filter on Date: header
#264691
Author: 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}
Re: 40tude Dialog scoring/filter on Date: header
#264693
Author: Bernd Rose
Date: Sat, 13 Feb 2021 16:47
27 lines
1692 bytes
On Sat, 13th Feb 2021 15:12:35 -0000 (UTC), Ron wrote:

>>-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.  

You can filter on Dates or Age for messages without bodies, but not on
the string content of the Date header.

> Date becomes available for scoring/filtering when the body is pulled and
> the full article is in Dialog.
> Is that correct?

Yes.
 
> And if I want to score on a time zone ahead of UTC, the + sign must be 
> escaped?  
> -2 Header {^Date[^\r\n]+\+0200}

Yes.

Best wishes
Bernd
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads