‹
We want to describe the newsgroups that our server supports, so we'll build our
rec.crafts.brewing.ales Home brewing Ales and Lagers
rec.crafts.brewing.badtaste Home brewing foul tasting brews
rec.crafts.brewing.brandy Home brewing your own Brandy
rec.crafts.brewing.champagne Home brew your own Champagne
rec.crafts.brewing.private The Virtual Brewery home brewers group
Configuring Newsfeeds
INN provides the news administrator the ability to control which newsgroups are forwarded on to other news servers and how they will be forwarded. The most common method uses the NNTP protocol described earlier, but INN also allows newsfeeds via other protocols, such as UUCP.
The newsfeeds file
The
The format of the
# newsfeeds file format
site:pattern:flags:param
site2:pattern2
:flags2:param2
Each news feed to a site is described by a single line, or may be spread across multiple lines using the continuation character. The: characters delimit the fields in each line. The # character at the start of a line marks that line as a comment.
The
The
rec.crafts.brewing*,!rec.crafts.brewing.poison,@rec.crafts.brewing.private
would send all of the
‹
Article must be less then size bytes.
A
Article checks.
B
Internal buffer size before writing to output.
H [
Article must have less then
I
Internal buffer size (for a file feed).
M
Only moderated groups that match the pattern.
N
Only unmoderated groups that match the pattern.
S
Start spooling if more than size bytes get queued.
T
Feed types: f (file), m (funnel; the
W
What to write: b (article bytesize), f (full path), g (first newsgroup), m (Message ID), n (relative path), s (site that fed article), t (time received), * (names of funnel feed-ins or all sites that get the article), N (newsgroups header), D (distribution header), H (all headers), O (overview data), and R (replication data).
The param field has special coding that is dependent on the type of feed. In the most common configuration it is where you specify the name of the output file to which you will write the outgoing feed. In other configurations you can leave it out. In yet other configurations it takes on different meanings. If you want to do something unusual, the
There is a special site name that should be coded as ME and should be the first entry in the file. This entry is used to control the default settings for your news feeds. If the ME entry has a distribution list associated with it, this list will be prepended to each of the other site entries before they are sent. This allows you to, for example, declare some newsgroups to be automatically fed, or automatically blocked from feeding, without having to repeat the pattern in each site entry.
We mentioned earlier that it was possible to use some special feeds to generate thread data that makes the newsreader's job easier. We'll do this by exploiting the overchan command that is part of the INN distribution. To do this, we've created a special local feed called overview that will pass the news articles to the overchan command for processing into overview data.
Our news server will provide only one external news feed, which goes to the Groucho Marx University, and