🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: rocksolid.nodes
8 messages
8 total messages Started by Retro Guy Thu, 10 Oct 2019 09:40
spoolnews update
#112
Author: Retro Guy
Date: Thu, 10 Oct 2019 09:40
19 lines
1941 bytes
  To: rocksolid.nodes
I've made a change to spoolnews that will help with an issue I've been 
aware of when first running it.

It has been saving articles with a timestamp of when they're saved (of 
course), but this is an issue for overboard and possibly other things. 
Overboard would read this as they are all new articles initially, and 
display them. I've been aware of this, but only addressed it now.

Now, spoolnews reads the Date line in the article, and sets the file 
timestamp to match. So now when running the first time, your spool will 
have correct dates right from the start.

I still need to handle timezones, but just testing a bit before that next 
step (which should be pretty simple).

Retro Guy
-- 
Posted on RetroBBS
Re: spoolnews update
#118
Author: trw
Date: Fri, 11 Oct 2019 21:09
4 lines
1143 bytes
>I still need to handle timezones, but just testing a bit before that next step (which should be pretty simple).

My solution to this problem was to convert everything to unixtime, then you can do just a bigger/smaller comparison.
Posted on def3
Re: spoolnews update
#113
Author: Retro Guy Retro Guy
Date: Fri, 11 Oct 2019 22:43
15 lines
1491 bytes
trw wrote:

>>I still need to handle timezones, but just testing a bit before that next 
step (which should be pretty simple).

> My solution to this problem was to convert everything to unixtime, then you 
can do just a bigger/smaller comparison.

That's exactly what I'm doing. Just need to add the comparison, probably 
at the weekend.



-- 
Posted on Rocksolid Light
Re: spoolnews update
#114
Author: Retro Guy Retro Guy
Date: Sat, 12 Oct 2019 10:39
19 lines
1589 bytes
Retro Guy wrote:

> trw wrote:

>>>I still need to handle timezones, but just testing a bit before that next 
> step (which should be pretty simple).

>> My solution to this problem was to convert everything to unixtime, then you 
> can do just a bigger/smaller comparison.

> That's exactly what I'm doing. Just need to add the comparison, probably 
> at the weekend.

And done.



-- 
Posted on Rocksolid Light
Re: spoolnews update
#116
Author: Retro Guy Retro Guy
Date: Mon, 14 Oct 2019 01:46
15 lines
1786 bytes
I noticed a difference in the listing of articles between a spoolnews site 
and an inn site. My first thought of course is "what did I screw up?", 
then realized that spoolnews was putting them in the correct (by date) 
order while inn was listing by received time.

Both ways is fine as received time is pretty close to posted time, but it 
does cause the order to possibly be a little different between two sites 
(not a big deal).

So now just adding expiry features to spoolnews, then should be ready for 
release.

Retro Guy
-- 
Posted on Rocksolid Light
Re: spoolnews update
#117
Author: Neodome Admin
Date: Tue, 15 Oct 2019 05:50
29 lines
2046 bytes
Retro Guy <retro.guy@retrobbs.rocksolidbbs.com.remove-sc8-this> wrote:
>   To: rocksolid.nodes
> I've made a change to spoolnews that will help with an issue I've been 
> aware of when first running it.
> 
> It has been saving articles with a timestamp of when they're saved (of 
> course), but this is an issue for overboard and possibly other things. 
> Overboard would read this as they are all new articles initially, and 
> display them. I've been aware of this, but only addressed it now.
> 
> Now, spoolnews reads the Date line in the article, and sets the file 
> timestamp to match. So now when running the first time, your spool will 
> have correct dates right from the start.

Date header is not always valid. NNTP-Posting-Date should be valid, because
it’s created by server, but Date can be created by client, and not all
servers validate it. In my logs I see few articles being rejected by my
server because of invalid Date. I guess it’s up to you if you want to
support articles with invalid Date headers.

> I still need to handle timezones, but just testing a bit before that next 
> step (which should be pretty simple).
> 
> Retro Guy



-- 
Neodome
Re: spoolnews update
#120
Author: Neodome Admin
Date: Tue, 15 Oct 2019 05:54
38 lines
2305 bytes
Neodome Admin <admin@neodome.net> wrote:
> Retro Guy <retro.guy@retrobbs.rocksolidbbs.com.remove-sc8-this> wrote:
>> To: rocksolid.nodes
>> I've made a change to spoolnews that will help with an issue I've been 
>> aware of when first running it.
>> 
>> It has been saving articles with a timestamp of when they're saved (of 
>> course), but this is an issue for overboard and possibly other things. 
>> Overboard would read this as they are all new articles initially, and 
>> display them. I've been aware of this, but only addressed it now.
>> 
>> Now, spoolnews reads the Date line in the article, and sets the file 
>> timestamp to match. So now when running the first time, your spool will 
>> have correct dates right from the start.
> 
> Date header is not always valid. NNTP-Posting-Date should be valid, because
> it’s created by server,

Correction: Injection-Date, not NNTP-Posting-Date. NNTP-Posting-Date is the
same thing, but Injection-Date is what documented in last RFC.

> but Date can be created by client, and not all
> servers validate it. In my logs I see few articles being rejected by my
> server because of invalid Date. I guess it’s up to you if you want to
> support articles with invalid Date headers.
> 
>> I still need to handle timezones, but just testing a bit before that next 
>> step (which should be pretty simple).
>> 
>> Retro Guy
> 
> 
> 



-- 
Neodome
Re: spoolnews update
#119
Author: Retro Guy Retro Guy
Date: Tue, 15 Oct 2019 08:43
26 lines
2136 bytes
Neodome Admin wrote:

> Neodome Admin <admin@neodome.net> wrote:
>> Retro Guy <retro.guy@retrobbs.rocksolidbbs.com.remove-sc8-this> wrote:
>>> Now, spoolnews reads the Date line in the article, and sets the file 
>>> timestamp to match. So now when running the first time, your spool will 
>>> have correct dates right from the start.
>> 
>> Date header is not always valid. NNTP-Posting-Date should be valid, because
>> it’s created by server,

> Correction: Injection-Date, not NNTP-Posting-Date. NNTP-Posting-Date is the
> same thing, but Injection-Date is what documented in last RFC.

Very true. What the script does is reads the date line, then continues 
through the headers and when/if it finds Injection-Date, that is what is 
used. Any date in the future is saved as the current time, not the date in 
the header.

This can be improved, but for now it should be ok. It's simply for sorting 
of messages in the overboard. 

Retro Guy

-- 
Posted on Rocksolid Light
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