Article View: news.software.readers
Article #15045New version of expireunread pending
From: Stephen D. Williams
Date: Sun, 05 Feb 1995 14:54
Date: Sun, 05 Feb 1995 14:54
79 lines
4048 bytes
4048 bytes
[ Article reposted from biz.pagesat ]
[ Author was Stephen D. Williams ]
[ Posted on 5 Feb 1995 14:35:42 GMT ]
Re: to expire most articles in newsgroups that no one is reading.
(The hard part is deciding whether a group is being read.)
For those of you that used my previous dynamic expireer, expireunread,
and especially those who couldn't use it, I've upgraded it
considerably.
The old version, and an optional mode in the current version, worked
by looking at .newsrc files on the news machine. This works fine
for traditional Unix users but doesn't work at all for those
reading remotely via nntp, etc.
The new version has a new program that scans each news directory and
tries to determine whether a group is being read based on past
history, access and modification times.
Here is a summary of the rules (please comment):
Scan each file in sorted order:
Was the file read after creation, and not by a scanning program (which
reads all articles in a short time)? (Ie: scan group is articles
starting with the first that have access times within N seconds of the
first article.)
Was the scan too recent to know if there are readers?
If access time is close to creation time or a bunch are within the
same access time (possibly followed by newer articles) and newer ones
are not read, then 'not read', except if access scan group was too
recent to reliably show whether there are readers.
Memory: (to avoid puring infrequently read groups)
Assuming unread status:
unknown group status, purge and make unread timestamp file.
If unread flag file, purge and update.
If read timestamp flag file, check timestamp and compare to current
time: remove and purge if more than READ_MEMORY seconds old, say read
otherwise.
Assuming read:
If read, delete unread flag file, create read flag file with
timestamp.
If read flag file exists, update timestamp.
This means that all a user has to do to trigger 'protection' of a
group is read one article.
Things considering adding:
group patterns to leave always alone
Emergency script to call when space is low that can modify parameters
to tighten storage in a logical way, starting with the largest
groups for speed.
Quick, often mode and slow, seldom mode that search large/frequent
groups only, or everything, respectively.
The program and script are really pretty simple still.
Please provide suggestions as I want this release to be usable.
sdw
--
Stephen D. Williams 25Feb1965 VW,OH sdw@lig.net http://www.lig.net/sdw
Senior Consultant 513-865-9599 FAX/LIG 513.496.5223 OH Page BA Aug94-Feb95
OO R&D AI:NN/ES crypto By Buggy: 2464 Rosina Dr., Miamisburg, OH 45342-6430
Firewall/WWW srvrs ICBM/GPS: 39 38 34N 84 17 12W home, 37 58 41N 122 01 48W wrk
Pres.: Concinnous Consulting,Inc.;SDW Systems;Local Internet Gateway Co.28Jan95
--
Stephen D. Williams 25Feb1965 VW,OH sdw@lig.net http://www.lig.net/sdw
Senior Consultant 513-865-9599 FAX/LIG 513.496.5223 OH Page BA Aug94-Feb95
OO R&D AI:NN/ES crypto By Buggy: 2464 Rosina Dr., Miamisburg, OH 45342-6430
Firewall/WWW srvrs ICBM/GPS: 39 38 34N 84 17 12W home, 37 58 41N 122 01 48W wrk
Pres.: Concinnous Consulting,Inc.;SDW Systems;Local Internet Gateway Co.28Jan95
Technical Details
Message-ID:
<3h2oqj$ntm@sdwsys.lig.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!hookup!news.sprintlink.net!malgudi.oar.net!sdwsys.lig.net!lig.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3h2oqj$ntm@sdwsys.lig.net> Subject: New version of expireunread pending Date: Sun, 05 Feb 1995 14:54:11 +0000 From: sdw@lig.net (Stephen D. Williams) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!hookup!news.sprintlink.net!malgudi.oar.net!sdwsys.lig.net!lig.net!not-for-mail Newsgroups: news.software.readers Organization: Local Internet Gateway Co. Lines: 79 NNTP-Posting-Host: sdwsys.lig.net X-Newsreader: TIN [UNIX 1.3 941107BETA PL0]