The sys file, located in /usr/lib/news, controls which hierarchies you receive and forward to other sites. Although there are maintenance tools named addfeed and delfeed, I think it's better to maintain this file by hand.
The sys file contains entries for each site you forward news to, as well as a description of the groups you will accept. An entry looks like
site[/exclusions]:grouplist[/distlist][:flags[:cmds]]Entries may be continued across newlines using a backslash (\). A hash sign (#) denotes a comment.
The special site name ME denotes your site. The ME entry defines all groups you are willing to store locally. Articles that aren't matched by the ME line will go to the junk group.
Since C News checks site against the site names in the Path: header field, you have to make sure they really match. Some sites use their fully qualified domain name in this field, or an alias like news.site.domain. To prevent any articles from being returned to these sites, you have to add these to the exclusion list, separated by commas.
For the entry applying to site moria, for instance, the site field would contain moria/moria.orcnet.org.
A hierarchy or group is excluded from forwarding by pre- ceding it with an exclamation mark. If a newsgroup is checked against the list, the longest match applies. For example, if grouplist contains
If the site requests to be forwarded all news you receive yourself, enter all as grouplist.
For example, you may use a distribution list of all,!local to prevent news for local use only from being sent to remote sites.
There are usually at least two distributions: world, which is often the default distribution used when none is specified by the user, and local. There may be other distributions that apply to a certain region, state, country, etc. Finally, there are two distributions used by C News only; these are sendme and ihave, and are used for the sendme/ihave protocol.
The use of distributions is a subject of debate. For one, some newsreaders create bogus distributions by simply using the top level hierarchy, for example comp when posting to comp.os.linux. Distributions that apply to regions are often questionable, too, because news may travel outside of your region when sent across the Internet.(3) Distributions apply- ing to an organization, however, are very meaningful, for example to prevent confidential information from leaving the company network. This purpose, however, is generally served better by creating a separate newsgroup or hierarchy.
The default command is
uux - -r -z system!rnews
The default search path for commands given in this field is /bin:/usr/bin:/usr/lib/news/bin/batch. The latter directory contains a number of shell scripts whose name starts with via; they are briefly described later in this chapter.
If batching is enabled using either of the F or f, I or n flags, C News expects to find a file name in this field rather than a command. If the file name does not begin with a slash (/), it is assumed to be relative to /var/spool/news/out.going. If the field is empty, it defaults to system/togo.
# We take whatever they give us. ME:all/all:: # We send everything we receive to moria, except for local and # brewery-related articles. We use batching. moria/moria.orcnet.org:all,!to,to.moria/all,!local,!brewery:f: # We mail comp.risks to firstname.lastname@example.org ponderosa:comp.risks/all::rmail email@example.com # swim gets a minor feed swim/swim.twobirds.com:comp.os.linux,rec.humor.oracle/all,!local:f: # Log mail map articles for later processing usenet-maps:comp.mail.maps/all:F:/var/spool/uumaps/work/batch
Thu Mar 7 23:22:06 EST 1996