🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #58769

Re: Expiry: Is it done on received-date or Date-header ?

#58769
From: 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.
Technical Details
Message-ID: <ylu1pj7c5g.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <udgacnleq94g1f@corp.supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylu1pj7c5g.fsf@windlord.stanford.edu>
Subject: Re: Expiry: Is it done on received-date or Date-header ?
Date: Tue, 07 May 2002 16:48:11 -0700
From: Russ Allbery <rra@stanford.edu>
References: <udgacnleq94g1f@corp.supernews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 50
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1020815292 27488 171.64.13.23 (7 May 2002 23:48:12 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:eHUQ0/mfILj39fWWNa1jKcLt0rE=