🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #4121

Re: Clarification of /remember/ line in expire.ctl

#4121
From: Michael M. Levin
Date: Sat, 20 Jan 1996 00:00
77 lines
4281 bytes
jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
> In article <4dojoj$fit@infa.central.susx.ac.uk> andy@central.susx.ac.uk (Andy Clews) writes:
> >
> >And lo, thus spake Greg Andrews unto the assembled multitudes:
> >>     /remember/:15
> >>     *:A:1:7:7
> >> The wording of the man page tends to indicate that the message-id will
> >> stay for 8 more days, which is the difference between the /remember/
> >> line and the other line.
> 
> Yes, that is how it works.
> 
> >The expire.ctl(5) man page says:
> >
> >		/remember/:days
> >	Where 'days' is a floating point number that specifies the upper
> >	limit to remember a Message-ID, even if the article has already
> >	expired.                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> The documetation could be clearer.  In several places, such as the
> example you listed, it uses slightly vague or incorect syntax in 
> describing what happens.
> 
> >	## How long to keep expired history
> >	/remember/:5
> >	## Most things stay for two weeks
> >	*:A:14:14:14
> >
> >Which would seem to confirm that message-id's are kept in the history file
> >for 5 days after the article has been expired. This makes sense, because if
> >message-id's were removed from history before the article was expired, the
> >reference to that article would be lost and it would never be deleted (and
> >your disk would fill up in no time :-)
> 
> OK, so how does expire know when it is 5 days after an article was
> expired?  All it has in the history file are the posting and arrival
> dates.  It doesn't even have the newgroup information anymore?
> 
> What really happens in expire, based on the code:
> 
> The history file is read one entry at a time.  If an entry has no
> groups listed, i.e. they have all expired, then the arrival date of the
> article is compared to the /remember/ time.  If the date is older than
> the /remember/ time that entry is just dropped from the history file.
> Otherwise that entry is maintained in the history file.  (To protect
> against a feed sending you an old copy of an article already expired.)
> (This is a minor bug.  The posting date should be used.)
> 
> Entries that do still have groups listed are compared on a group by
> group basis to the limits established by the expire.ctl file.
> Individual group/number entries are removed (or logged for later
> fastrm).  Note that expire makes no special check for removal of all
> the groups thus it wall ALWAYS write a history only entry at least once
> regardless of the /remember/ value.
> 
> Thus the /remember/ time specifies how long a history only entry will
> be kept measured from the arrival time.  If the expire value is 14 days
> and the /remember/ time is 5 then entries will be kept for 15 days.
> This is because the /remember/ only applies to entries after that
> articles have expired.  It can not force a history entry to be removed
> before the article is expired.  The extra day beyond expire might be
> considered a harmless bug in expire.
> 
> Such a configation would effect the /remember/ time for entries
> that were canceled or had explicit expiration dates.  Thus is someone
> posted an announcement with a 2 day expiration time the history entry
> would be kept for 5 days.  Also canceled articles are remembered  that
> long so you would not get a second copy of either.
> 
> Ideally the /remember/ value should correspond to the "cutoff" value
> you configured news for.  That way a duplicate will be refused via the
> history file entry up to the point that it is rejected as being too
> old.  Many find that the longer /remember/ time makes their history
> file too large and risk a smaller value.


Technical Details
Message-ID: <4drskn$2li@atlas.tncnet.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!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4drskn$2li@atlas.tncnet.com>
Subject: Re: Clarification of /remember/ line in expire.ctl
Date: Sat, 20 Jan 1996 00:00:00 +0000
From: Michael M. Levin <mlevin19@wavenet.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!not-for-mail
X-Deja-AN: 135879284
Distribution: inet
Organization: VisiCom Network Services
Newsgroups: news.software.nntp