🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #26409

Re: Does XRN thread? (was: Re: Newsreader for X with threading?)

#26409
From: Jonathan I. Kamens
Date: Fri, 27 Sep 1996 00:00
146 lines
8006 bytes
In article <52f4ci$oo5@uuneo.neosoft.com>, conrads@dolphin.neosoft.com (Conrad Sabatier) writes:
|> Knews is OK, but for the rather limited killfile capabilities (as compared
|> to, say, trn).  How does xrn stack up in this department?

Here's what XRN can do with kill files in the <A
HREF="http://ftp.cam.ov.com/pub/xrn/beta.tgz">current beta release</A>
(I'm quoting from the man page), and I hope to add more to the
kill-file functionality before it is officially released:

KILL FILE FORMAT
       xrn  supports  a  super-subset  of  the kill-file commands
       supported by rn(1) (i.e.,  some  of  its  features  are  a
       subset  of  rn's  and are compatible with it, and some are
       incompatible with rn and you should use them only  if  you
       have  no  interest in your xrn kill files being compatible
       with rn).  For compatibility with rn, lines in kill  files
       beginning  with  `&'  are  ignored.  Blank lines (or lines
       containing only whitespace) and lines beginning  with  `#'
       are also ignored.

       A  line  beginning  with "THRU " is assumed to contain the
       last article number previously killed  in  the  newsgroup,
       and  this line is updated by xrn after processing the kill
       file for the newsgroup.

       A line of the form "include  name"  directs  xrn  to  read
       another  kill  file  and  process the commands in it as if
       they appear at that  point  in  the  including  file.   If
       "name" is the name of a newsgroup, the local kill file for
       that newsgroup is used. Otherwise, if "name"  starts  with
       `/' or `~', it is treated as an absolute file name to use.
       Otherwise, "name" is treated as a file  name  relative  to
       the  setting  of  the  "saveDir" option (see above), which
       defaults to "~/News".

       Kill-file  inclusion   is   subject   to   the   following
       constraints:

       o  "THRU"  lines  in nested include files are ignored (but
          will be written intact back to the included  kill  file
          if  it  is later saved by xrn, e.g., if kill-file entry
          timeouts in it have been updated).

       o  Loops and multiple inclusions of the same kill file are
          silently ignored.

       o  Kill files won't necessarily be updated properly if the
          user does any of the following:

          o  Includes a newsgroup's kill file by  specifying  its
             file  name  instead  of  by specifying its newsgroup
             name.

          o  Includes the global kill file in another kill  file.

          o  Includes the same kill file using two different file
             names in two different files (e.g., with an absolute
             path in one and a relative path in another).

       Any  line  in  the  format  "/pattern/options:command"  is
       interpreted as a kill-file command; its components are:

       pattern
          A regular expression which is matched  against  article
          header  fields to determine to which articles "command"
          should be applied.  Slashes in the expression should be
          quoted  with  a  backslash  to  prevent them from being
          interpreted as the end of the expression.

       options
          The option `h' affects which header fields the  regular
          expression  is matched against, as described below.  If
          `h' is not specified, the regular expression is matched
          against the "From" and "Subject" fields of the article.

          The  option  `t',  followed  by  a  positive   integer,
          specifies the number of idle days after which the entry
          should automatically be expired.  That  is,  any  kill-
          file  command  which contains a `t' option and does not
          match any articles for the number of days specified  in
          that option is automatically removed from the kill file
          by xrn when the kill file is updated.

          The option `u', followed by a positive integer, is used
          by  xrn  to  keep track of when a kill-file command was
          last used, for purposes of deciding when to expire  it.

          Any other values will cause xrn to display an error and
          ignore the command.

          Note that the `t' and `u' options are incompatible with
          rn.   Therefore,  if  you choose to use the `t' option,
          either  manually  or  automatically  by   setting   the
          "killTimeout"  X  resource (see below), you will not be
          able to use your xrn kill files with rn.  In this case,
          if  you  use  both xrn and rn, you may wish to consider
          setting the "killFileName" X resource  (see  below)  so
          that  your  xrn  kill  files are stored separately from
          your ir kill files.

       command
          A single letter, either `j' (mark  the  article  read),
          `m' (mark the article unread), or `s' (save the article
          in the default save file for the newsgroup).

       If the first character in the options field is  `h',  then
       xrn  will  check  to  see if the regular expression starts
       with  "^From:",  "^Subject:",  "^Newsgroups:",   "^Date:",
       "^Message-ID:"  or  "^References:".   If it does, then the
       pattern will be matched against the  corresponding  header
       field  in the article.  The comparison will be "anchored",
       that is, the pattern must match from the beginning of  the
       field value in order to be considered a match.

       For   example   "/jik/:j"   will  mark  read  any  article
       containing the string "jik" in  its  "Subject"  or  "From"
       line;   "/^From:   .*jik/h:j"   will  mark  read  articles
       containing "jik" in their "From" lines (but  not  articles
       containing  "jik"  only  in  their  "Subject"  lines); and
       "/^Newsgroups:.*,.*,/h:j"  will  mark  read  any  articles
       cross-posted to three or more newsgroups.

       If  the `h' option is specified and the regular expression
       doesn't start with one of the field names mentioned above,
       then  it  will  be  compared  against  all  of  the fields
       mentioned above.

       Note that normally, xrn doesn't  fetch  the  "Newsgroups",
       "Date",  "Message-ID"  or "References" fields of articles;
       it fetches them only when it notices  while  processing  a
       kill   file   entry  that  they  are  needed.   Therefore,
       specifying kill file entries which must be matched against
       one  of those fields may cause xrn to take longer to fetch
       newsgroups, since  it  will  have  to  fetch  extra  data.
       However,  if  you're  using a sorting algorithm which uses
       some  or  all  of  these  fields,  as  described  in   the
       documentation  below  for  the  "sortedSubjects" resource,
       then the fields being used for sorting are  already  being
       fetched and no additional data need be fetched in order to
       match kill file entries against them.

       Any line not in one of the already mentioned formats  will
       cause xrn to display an error.

Technical Details
Message-ID: <52gp3r$15c@jik.saturn.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <52814t$p8e@due.unit.no> <52ds0t$110@annex-1-slip-jik.cam.ov.com> <52f4ci$oo5@uuneo.neosoft.com>

Show Full Headers
Complete Article Headers
Message-ID: <52gp3r$15c@jik.saturn.net>
Subject: Re: Does XRN thread? (was: Re: Newsreader for X with threading?)
Date: Fri, 27 Sep 1996 00:00:00 +0000
From: jik@annex-1-slip-jik.cam.ov.com (Jonathan I. Kamens)
References: <52814t$p8e@due.unit.no> <52ds0t$110@annex-1-slip-jik.cam.ov.com> <52f4ci$oo5@uuneo.neosoft.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 185654649
Sender: jik@jik.saturn.net (Jonathan I. Kamens)
Organization: Jik's Linux box
Newsgroups: news.software.readers