Thread View: news.software.readers
1 messages
1 total messages
Started by Stephen D. Williams
Sun, 05 Feb 1995 14:54
New version of expireunread pending
Author: 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
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