Expiring News
In B News, expiration needs to be performed by a program called
expire, which took a list of newsgroups as arguments,
along with a time specification after which articles had to be expired.
To have different hierarchies expire at different times, you had to write a
script that invoked expire for each of them separately.
C News offers a more convenient solution. In a file called
explist
, you may specify newsgroups and expiration
intervals. A command called doexpire is usually run once
a day from cron and processes all groups according to this
list.
Occasionally, you may want to retain articles from certain groups even
after they have been expired; for example, you might want to keep
programs posted to comp.sources.unix
.
This is called archiving. explist
permits you to mark groups for archiving.
An entry in explist
looks like this:
grouplist
perm
times
archive
grouplist
is a comma-separated list of
newsgroups to which the entry applies. Hierarchies may be specified by
giving the group name prefix, optionally appended with all
. For example, for an entry applying to
all groups below comp.os
,
enter either comp.os
or
comp.os.all
.
When expiring news from a group, the name is
checked against all entries in explist
in the
order given. The first matching entry applies. For example, to throw
away the majority of comp
after four days, except for comp.os.linux.announce
, which you want to keep for a week, you simply have an entry for the latter, which specifies a seven-day ...
Get Linux Network Administrator's Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.