threading, because the time required for this is proportional to the square of the number of articles.
We will not go into how the user interfaces are built here. All newsreaders currently available for Linux have a good help function; please refer to it for more details.
In the following sections, we will deal only with administrative tasks. Most of these relate to the creation of threads databases and accounting.
tin Configuration
The most versatile newsreader with respect to threading is tin. It was written by Iain Lea and is loosely modeled on an older newsreader named tass (written by Rich Skrenta). It does its threading when the user enters the newsgroup, and it is pretty fast unless you're getting posts via NNTP.
On a 486DX50, it takes roughly 30 seconds to thread 1,000 articles when reading directly from disk. It would take more than 5 minutes over NNTP to reach a loaded news server. [140] You may improve this time by regularly updating your index file by invoking tin with the
Usually, tin dumps its threading databases in the user's home directory below
The version of tin included in some Linux distributions is compiled without NNTP support, but most do have it now. When invoked as rtin or with the
trn Configuration
trn is also the successor to an older newsreader, namely rn (which means
Unlike tin, trn has no provision for generating its threading database at runtime. Instead, it uses those prepared by a program called mthreads that has to be invoked regularly from cron to update the index files.
You can still access new articles if you're not running mthreads, but you will have all those 'A GENUINE INVESTMENT OPPORTUNITY' articles scattered across your article selection menu, instead of a single thread you may easily skip.
To turn on threading for particular newsgroups, invoke mthreads with the list of newsgroups on the command line. The format of the list is the same as the one in the C News
$ mthreads 'comp,rec,!rec.games.go'
This command enables threading for all of comp and rec, except for rec.games.go (people who play Go don't need fancy threads). After that, you simply invoke mthreads with no options at all to make it thread any newly arrived articles. Threading of all groups found in your
If you're receiving news during the night, you will customarily run mthreads once in the morning, but you can also to do so more frequently if necessary. Sites that have very heavy traffic may want to run mthreads in daemon mode. When it is started at boot time using the
/usr/local/bin/rn/mthreads -deav
The
Old articles that are no longer available must be removed from the index files regularly. By default, only articles with a number below the low-water mark will be removed.[142] Articles above this number that have been expired (because the oldest article has been assigned a long expiration date by an
nn Configuration
nn, written by Kim F. Storm, claims to be a newsreader whose ultimate goal is not to read news. Its name stands for 'No News,' and its motto is 'No news is good news. nn is better.'
To achieve this ambitious goal, nn comes with a large assortment of maintenance tools that not only allow thread generation, but also extensive database consistency checks, accounting, gathering of usage statistics, and access restrictions. There is also an administration program called nnadmin, which allows you to perform these tasks interactively. It is very intuitive, so we will not dwell on these aspects, but deal only with the generation of the index files.
The nn threads database manager is called nnmaster. It is usually run as a daemon, started from an
/usr/local/lib/nn/nnmaster -l -r -C
This enables threading for all newsgroups present in your
Equivalently, you may invoke nnmaster periodically from cron, giving it a list of groups to act upon. This list is very similar to the subscription list in the
# /usr/local/lib/nn/nnmaster!rec.games.go rec comp
Note that the order is significant. The leftmost group specification that matches always wins. Thus, if we had put
nn offers several methods to remove expired articles from its databases. The first is to update the database by scanning the newsgroup directories and discarding the entries whose corresponding article has exceeded its expiration date. This is the default operation obtained by invoking nnmaster with the
The second method behaves exactly like a default expiration run of mthreads; it removes only those entries that refer to articles with numbers below the low-water mark in the
Finally, the third strategy discards the entire database and recollects all articles. It may be enabled using the
The list of groups to be expired is given by the