🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Johannes Eggers Tue, 07 May 2002 19:21
Expiry: Is it done on received-date or Date-header ?
#58767
Author: Johannes Eggers
Date: Tue, 07 May 2002 19:21
22 lines
1554 bytes
I guess the subject says it all, but another question, while I'm in
asking-mode:  It it legit for a server to re-order the sequence of the
headers, and if not then why not ?

And going back to expiry...  Doesn't expiry require the server to constantly
iterate all news articles in it's database and check each newsgroup in which
the articles appear (Xref field I guess) and compare the article's date
(whichever) against the group's retention period ?  Or is there some smarter
way of doing this ?

The only other thing I could come up with was to calculate the expiration
date of the article at the time it is received, then set the article file's
date to the expiry date and have the filesystem list the files based on
file-date...

Thanks,

 Johannes



Re: Expiry: Is it done on received-date or Date-header ?
#58769
Author: Russ Allbery
Date: Tue, 07 May 2002 23:48
51 lines
3376 bytes
Johannes Eggers <jeggers@tetrix.com> writes:

> I guess the subject says it all,

For INN, it's done on received date, but you can choose to do it on the
Date header by passing the -p option to expireover.  (This varies by
server and isn't really a protocol issue.)

> but another question, while I'm in asking-mode:  It it legit for a
> server to re-order the sequence of the headers, and if not then why not?

Servers should not do this.  It may not break anything specific (although
there is some talk about header signing methods that it could break), but
in general the server should make the minimal possible modifications to
the article.

> And going back to expiry...  Doesn't expiry require the server to
> constantly iterate all news articles in it's database and check each
> newsgroup in which the articles appear (Xref field I guess) and compare
> the article's date (whichever) against the group's retention period ?
> Or is there some smarter way of doing this ?

There are various other ways of doign this.

Some servers use cyclical storage for articles and just start overwriting
the buffer with new articles when it wraps.  For those servers, expiration
is essentially "free" but some other portions of the server (like history
or overview) may not notice the expiration immediately.

The traditional way to do it, found in C News and in INN with most storage
methods, is that one runs a cron job nightly that goes through all
articles on the server, deletes the ones that have expired, and updates
the overview and history databases accordingly.  In older versions of INN,
this decision is done based on the history file, which includes the
newsgroups to which the article was posted.  In newer versions, the
decision is instead done based on the overview database, since the history
file no longer knows about newsgroups.

> The only other thing I could come up with was to calculate the
> expiration date of the article at the time it is received, then set the
> article file's date to the expiry date and have the filesystem list the
> files based on file-date...

You could do that too.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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