🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81816

Re: INN's expire program and memory usage:

#81816
From: Julien ÉLIE
Date: Sun, 16 Aug 2009 22:00
84 lines
4696 bytes
Hi Russ,

>> Shouldn't we move "-p" to an inn.conf parameter? (which will be used with
>> consistency for article expiration and history)
>
> Well, you may want history entries and articles handled differently.  The
> reason why articles are expired based on arrival date instead of posting
> time is that if articles are dated in the past (composed off-line, for
> instance), they could get an extremely short expiration depending on the
> expire time of the group and expire before anyone can read them.  I think
> it makes more sense as a default to keep articles around for N days from
> the point from which they were first available to readers.
>
> History retention for articles not in the spool has a different set of
> concerns.

All right, that's indeed wise.


>> And I am rather inclined to change the default behaviour (using the
>> posting/injection date instead of the arrival date).  I think it fits
>> better what a news administrator wishes to do by default.
>
> I think that for trash (articles not in the spool), we should use the
> posting date rather than the arrival date, but keep using the arrival date
> for article expiration.
>
> I haven't looked at how hard this might be.

It's not hard to do.  In fact, there are more changes in documentation
than anything else (in order to be more precise on how article expiration
and history retention work).
Impacted files are:

M      innd/nc.c
M      innd/util.c
M      innd/art.c
M      innd/innd.h
M      contrib/makeexpctl.in
M      history/hisv6/hisv6.c
M      history/his.c
M      samples/expire.ctl
M      doc/pod/libinnhist.pod
M      doc/pod/news.pod
M      doc/pod/expire.ctl.pod
M      doc/pod/expireover.pod
M      doc/pod/install.pod
M      doc/pod/inn.conf.pod
M      doc/FAQ


My only concern is for articles rejected at arrival time.  We currently
have in history API:

    bool HISremember(struct history *history, const char *key, time_t arrived);

because we write something like:

    [EDD7A9AFDD5560BD0F1C731C8BEB5F8A]      1250458751~-

with only an arrival time, in order to remember the rejected article.
It would be better to have:

    bool HISremember(struct history *history, const char *key, time_t arrived, time_t posted);

in order to write something like:

    [EDD7A9AFDD5560BD0F1C731C8BEB5F8A]      1250458751~-~1250458749


Is it wise to do that?  (an API change for INN 2.5.1)
I could also give the posting time to HISremember instead of the arrival time,
when it is known... but the first field would be diverted from its use...
(No problem after an article expiration; we can remember the posting date when rewriting
the history line.  The only issue is with HISremember.)

Any suggestion?

-- 
Julien ÉLIE

« -- C'est une bonne situation ça, scribe ?
  -- Oh, c'est une situation assise. » (Astérix) 
Technical Details
Message-ID: <h69vj0$qeb$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu><h4lq1g$4kc$1@snarked.org> <h4mt3v$777$1@remote5bge0.ripco.com><h5tamr$m0u$1@cs6.cmpublishers.com><h5uoqh$e8a$1@remote5bge0.ripco.com> <h5v7h0$k5h$1@snarked.org><h5v7uc$13mo$1@bdhi.local> <h60lnv$a34$1@news.trigofacile.com><87eirf4pdl.fsf@windlord.stanford.edu><h61ion$5b4$1@news.trigofacile.com><87k517r4ty.fsf@windlord.stanford.edu><h6360l$lsg$1@news.trigofacile.com><87eirevmev.fsf@windlord.stanford.edu><h63cub$sg8$1@news.trigofacile.com> <87y6pml49x.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <h69vj0$qeb$1@news.trigofacile.com>
Subject: Re: INN's expire program and memory usage:
Date: Mon, 17 Aug 2009 00:00:59 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu><h4lq1g$4kc$1@snarked.org> <h4mt3v$777$1@remote5bge0.ripco.com><h5tamr$m0u$1@cs6.cmpublishers.com><h5uoqh$e8a$1@remote5bge0.ripco.com> <h5v7h0$k5h$1@snarked.org><h5v7uc$13mo$1@bdhi.local> <h60lnv$a34$1@news.trigofacile.com><87eirf4pdl.fsf@windlord.stanford.edu><h61ion$5b4$1@news.trigofacile.com><87k517r4ty.fsf@windlord.stanford.edu><h6360l$lsg$1@news.trigofacile.com><87eirevmev.fsf@windlord.stanford.edu><h63cub$sg8$1@news.trigofacile.com> <87y6pml49x.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 84
NNTP-Posting-Host: amontpellier-159-1-41-85.w90-57.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1250460065 27083 90.57.68.85 (16 Aug 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sun, 16 Aug 2009 22:01:05 +0000 (UTC)
In-Reply-To: <87y6pml49x.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049