old-www/LDP/nag2/x-087-2-newsreaders.trn.html

368 lines
6.1 KiB
HTML

<HTML
><HEAD
><TITLE
>trn Configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="Linux Network Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="Newsreader Configuration"
HREF="x-087-2-newsreaders.html"><LINK
REL="PREVIOUS"
TITLE="tin Configuration"
HREF="x-087-2-newsreaders.tin.html"><LINK
REL="NEXT"
TITLE="nn Configuration"
HREF="x-087-2-newsreaders.nn.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Network Administrators Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x-087-2-newsreaders.tin.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 24. Newsreader Configuration</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x-087-2-newsreaders.nn.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="X-087-2-NEWSREADERS.TRN"
>24.2. trn Configuration</A
></H1
><P
><B
CLASS="COMMAND"
>trn</B
> is also the successor to an older newsreader, namely
<B
CLASS="COMMAND"
>rn</B
> (which means <I
CLASS="EMPHASIS"
>read news</I
>). The
&#8220;t&#8221; in its name stands for &#8220;threaded.&#8221; It was
written by Wayne Davidson.</P
><P
>&#13;Unlike <B
CLASS="COMMAND"
>tin</B
>, <B
CLASS="COMMAND"
>trn</B
> has no provision for
generating its threading database at runtime. Instead, it uses those prepared
by a program called <B
CLASS="COMMAND"
>mthreads</B
> that has to be invoked
regularly from <B
CLASS="COMMAND"
>cron</B
> to update the index files.</P
><P
>&#13;You can still access new articles if you're not running
<B
CLASS="COMMAND"
>mthreads</B
>, but you will have all those
&#8220;A GENUINE INVESTMENT OPPORTUNITY&#8221; articles scattered across your
article selection menu, instead of a single thread you may easily skip.</P
><P
>To turn on threading for particular newsgroups, invoke
<B
CLASS="COMMAND"
>mthreads</B
> with the list of newsgroups on the command line.
The format of the list is the same as the one in the C News
<TT
CLASS="FILENAME"
>sys</TT
> file:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>$ <TT
CLASS="USERINPUT"
><B
>mthreads &#8217;comp,rec,!rec.games.go&#8217;</B
></TT
></PRE
></TD
></TR
></TABLE
></P
><P
>This command enables threading for all of
<SPAN
CLASS="SYSTEMITEM"
>comp</SPAN
> and
<SPAN
CLASS="SYSTEMITEM"
>rec</SPAN
>, except for
<SPAN
CLASS="SYSTEMITEM"
>rec.games.go</SPAN
> (people who play Go don't
need fancy threads). After that, you simply invoke <B
CLASS="COMMAND"
>mthreads</B
>
with no options at all to make it thread any newly arrived articles. Threading
of all groups found in your <TT
CLASS="FILENAME"
>active</TT
> file can be turned on
by invoking <B
CLASS="COMMAND"
>mthreads</B
> with a group list of
<SPAN
CLASS="SYSTEMITEM"
>all</SPAN
>.</P
><P
>If you're receiving news during the night, you will customarily run
<B
CLASS="COMMAND"
>mthreads</B
> 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 <B
CLASS="COMMAND"
>mthreads</B
> in daemon mode. When it is started at boot
time using the <TT
CLASS="OPTION"
>&#8211;d</TT
> option, it puts itself in the
background, wakes up every ten minutes to check if there are any newly arrived
articles, and threads them. To run <B
CLASS="COMMAND"
>mthreads</B
> in daemon
mode, put the following line in your <TT
CLASS="FILENAME"
>rc.news</TT
> script:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>/usr/local/bin/rn/mthreads -deav</PRE
></TD
></TR
></TABLE
></P
><P
>The <TT
CLASS="OPTION"
>&#8211;a</TT
> option makes <B
CLASS="COMMAND"
>mthreads</B
>
automatically turn on threading for new groups as they are created;
<TT
CLASS="OPTION"
>&#8211;v</TT
> enables verbose log messages to the
<B
CLASS="COMMAND"
>mthreads</B
> log file <TT
CLASS="FILENAME"
>mt.log</TT
> in
the directory where you have <B
CLASS="COMMAND"
>trn</B
> installed.</P
><P
>&#13;
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.<A
NAME="X-087-2-FNNR04"
HREF="#FTN.X-087-2-FNNR04"
>[1]</A
>
Articles above this number that have been expired (because the
oldest article has been assigned a long expiration date by an
<TT
CLASS="REPLACEABLE"
><I
>Expires:</I
></TT
> header field) may nevertheless be removed by giving
<B
CLASS="COMMAND"
>mthreads</B
> the <TT
CLASS="OPTION"
>&#8211;e</TT
> option to force an
&#8220;enhanced&#8221; expiry run. When <B
CLASS="COMMAND"
>mthreads</B
> is running
in daemon mode, the <TT
CLASS="OPTION"
>&#8211;e</TT
> option makes
<B
CLASS="COMMAND"
>mthreads</B
> put in such an enhanced expiry run once a day,
shortly after midnight.</P
></DIV
><H3
CLASS="FOOTNOTES"
>Notes</H3
><TABLE
BORDER="0"
CLASS="FOOTNOTES"
WIDTH="100%"
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.X-087-2-FNNR04"
HREF="x-087-2-newsreaders.trn.html#X-087-2-FNNR04"
>[1]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>Note that C News (described in <A
HREF="x-087-2-cnews.html"
>Chapter 21</A
>) doesn't update
this low-water mark automatically; you have to run <B
CLASS="COMMAND"
>updatemin</B
>
to do so. </P
></TD
></TR
></TABLE
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x-087-2-newsreaders.tin.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x-087-2-newsreaders.nn.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>tin Configuration</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-newsreaders.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>nn Configuration</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>