home *** CD-ROM | disk | FTP | other *** search
/ PC go! 1996 January / Image.iso / pcgo / extra2 / faq / nn.txt < prev    next >
Encoding:
Internet Message Format  |  1994-02-21  |  49.4 KB

  1. From: Bill Wohler <wohler@sap-ag.de>
  2. Newsgroups: news.software.nn,news.answers
  3. Subject: NN Frequently Asked Questions (FAQ) with Answers
  4. Supersedes: <nn-faq_758869212@rtfm.mit.edu>
  5. Followup-To: poster
  6. Date: 18 Feb 1994 15:22:51 GMT
  7. Organization: SAP AG, Walldorf, Germany
  8. Lines: 1427
  9. Approved: news-answers-request@MIT.Edu
  10. Expires: 3 Apr 1994 15:11:15 GMT
  11. Message-ID: <nn-faq_761584275@rtfm.mit.edu>
  12. Reply-To: Bill Wohler <wohler@sap-ag.de>
  13. NNTP-Posting-Host: bloom-picayune.mit.edu
  14. Summary: This document answers Frequently Asked Questions about NN, a
  15.      menu-based, point and shoot, USENET news reader.  It should
  16.      be read by anyone who wishes to post to news.software.nn.
  17. Keywords: FAQ nn news question answer newsrc digest article nntp
  18.           newsgroup cancel mail signature header netnews usenet kill
  19. X-Last-Updated: 1993/10/15
  20. Originator: faqserv@bloom-picayune.MIT.EDU
  21.  
  22. Archive-name: nn-faq
  23. Last-modified: 1993/10/15
  24. Version: Revision: 93.3 Supplemental A
  25.  
  26.   This is a living list of frequently asked questions on the Usenet
  27.   news reader NN (No News is Good News).  The point of this is to
  28.   circulate existing information, and avoid rehashing old answers.
  29.   Better to build on top than start again.  Please read this document
  30.   before ever posting to this newsgroup.
  31.  
  32.   This article is posted monthly.  If it has already expired and
  33.   you're not reading this, you can hope that you saved the last bit of
  34.   question 3 so that you can get a copy yourself.
  35.  
  36.   Please do not post an answer when someone posts a frequently asked
  37.   question, as I will always e-mail a reply.  This ensures that
  38.   everybody gets their question answered fully and eliminates
  39.   unnecessary traffic in this newsgroup.
  40.  
  41.   Your comments, additions and fixes to this list are welcome: please
  42.   send them to Bill Wohler <wohler@sap-ag.de>.
  43.  
  44.   Note: I'm taking a year sabbatical, and will be out of e-mail touch
  45.   during this time.  I will collect all correspondence sent to the
  46.   above address roughly in the spring of '94.
  47.  
  48.   
  49. Subject: Table of Contents
  50. From: Preface
  51.  
  52. Legend: + new, - deleted, ! changed
  53.  
  54. Introductory
  55.  
  56.  1.  Why should I use nn?
  57. !2.  What is the current version/status of nn?
  58. !3.  Where can I get nn?
  59.  4.  What references exist for nn?
  60. !5.  How should I report bugs?
  61.  6.  How can I convert from rn to nn?
  62.  7.  How can I make life simpler when starting nn for the first time?
  63. !8.  Is there an X interface to nn?
  64.  
  65. Building nn
  66.  
  67. !10. What machines does nn run on?
  68.  11. Is it possible to restrict the groups that users have access to?
  69.  12. Unofficial patches for various bugs
  70.  
  71. Using nn
  72.  
  73.  20. How do I save files that I can read later with MH, elm, Mail, ...?
  74. !21. How come nn doesn't show the Lines count?
  75.  22. How can I find all articles having to do with a certain topic?
  76.  23. How can I set a different Organization name?
  77. !24. Can all non-selected subjects be automatically placed in my kill file?
  78.  25. Can I automatically kill articles based on the Newsgroups header?
  79.  26. How can I select one article in a thread with auto-select-subject set?
  80.  27. Is there a library of macros and other nn features?
  81. !28. Can one search for patterns in the entire article from the menu?
  82.  29. How can I remove old articles from folders?
  83.  30. What's the best way to save multi-part articles?
  84.  31. When saving in +a/b/c keeps you from saving in +a/b.
  85.  32. Can I use my mailer to send mail?
  86.  33. How can I see the original article with the current subject?
  87. !34. Can I choose newsgroups as I do articles, ie. with a menu?
  88.  35. How can I post prewritten articles with nn?
  89.  36. How can nn automatically append my signature?
  90.  37. How do I eliminate double signatures?
  91.  38. Can the signature come from a different file or program?
  92.  39. How can I make mail replies go to a different machine?
  93.  40. How come more articles get selected than I expect?  
  94. !41. Any plans for trn-ish thread following?  
  95. !42. Setting new-group-action to "ask before adding" doesn't work.
  96.  43. Why does nn crash when a letter one past the highest letter is selected?
  97.  44. Why do articles without a Lines header appear empty?
  98.  45. How do I save my posts and replies automatically?  
  99.  46. How can I change how my real name appears?
  100.  47. How can I customize my mail headers for mail and posting?
  101.  48. Can the article viewer/pager be changed?
  102.  49. How do I search for an author in a menu?
  103.  50. Can nn use aliases when sending mail?
  104. !51. How can I see which newsgroups are available?
  105.  52. How can I read MIME articles?
  106.  53. How do I unsubscribe to all groups?
  107.  
  108. nnmaster
  109.  
  110.  60. Why does nnmaster stop collecting articles at the "junk" group?
  111.  61. How do I cope with "Incomplete MASTER file"?
  112.  62. Why isn't nnmaster working?
  113.  63. Why do I get ".../MASTER not found"?
  114.  64. Why do I get "cannot open 'x' file"
  115.  65. Why do I get "Lost connection to server foobar"
  116.   
  117. Appendix
  118.  
  119.  Glossary, Acknowledgements, Warranty
  120.  pack_date.c
  121.  news.c
  122.  nn-use-mh
  123.  nn_elm
  124.  nnalias
  125.  
  126.   
  127. Subject: Viewing This Article
  128. From: Preface
  129.  
  130.   To skip to a particular question numbered xx, use "/^F.*xx" with most
  131.   pagers.  In GNU Emacs type "M-C-s ^F.*xx", (or C-r to search backwards),
  132.   followed by ESC to end the search.  "-xx" is often sufficient.
  133.  
  134.   To skip to new or changed questions, use "/^S.*[!+]" with most pagers and
  135.   "M-C-s ^S.*[!+]" in GNU Emacs.
  136.  
  137.   This article is in digest format.  Nn may have already broken this
  138.   message into separate articles; if not, then type "G %".  In rn, use
  139.   ^G to skip sections.
  140.  
  141.   This article is treated as an outline when edited by GNU Emacs.
  142.   Run "M-x describe-mode" to see available outline-mode commands.
  143.   Useful commands are "C-c C-s" (show-subtree) and "M-x show-all"
  144.  
  145.   Numbers in square brackets denote the month and year of the last
  146.   update.
  147.  
  148.   
  149. Subject: Why should I use nn?
  150. From: Intro-1
  151.  
  152.   nn is a menu based (point and shoot) netnews reader with a complete
  153.   set of features to satisfy both the expert and the novice user.  Since
  154.   its first release in Denmark in 1984 (!), in Europe in 1988, and the
  155.   global release in June 1989, it has replaced rn and other well-known
  156.   news readers at many sites.
  157.  
  158.   Some of the key features of nn are:
  159.  
  160.   * Menu-based article selection prior to reading the articles with the
  161.     articles sorted according to subject and posting time.
  162.  
  163.     This significantly reduces the time spent on news reading.  No
  164.     keystrokes are wasted on articles you don't want to read, and only
  165.     the articles selected on the menu will be read.
  166.  
  167.   * Release 6.4 uses standard .newsrc, and can leave individual
  168.     articles unread.
  169.  
  170.   * Digests are automatically split and presented as ordinary articles!
  171.     You can transparently save and respond to individual subarticles.
  172.  
  173.   * Full folder support: read, save, and delete individual articles.
  174.  
  175.   * Online help and manual.
  176.  
  177.   * Built-in unshar and patch functions.
  178.   * Built-in uudecode function which will automatically unpack,
  179.     concatenate, and decode multi-part postings.
  180.  
  181.   * Easy remapping of keys with advanced macro definition features.
  182.  
  183.   * Automatic kill & selection of articles based on subject or author.
  184.  
  185.   * User specified presentation sequence of news groups based on the
  186.     news group hierarchy.
  187.  
  188.   * Whole classes of news groups can easily be unsubscribed
  189.     permanently, e.g. talk.all and all.politics
  190.  
  191.   * Related groups can be merged and presented as a single group, e.g.
  192.     comp.emacs and all gnu.emacs groups.
  193.  
  194.   * Blindingly fast 'search for subject'.  On my Texas S1500 system, nn
  195.     uses less than 20 seconds to find all articles on a specific
  196.     subject among 64000 articles in all groups!
  197.  
  198.   * News collection and presentation is extremely fast, because nn uses
  199.     its own database on top of the standard news system.
  200.  
  201.   * In a distributed environment, the database can be shared among all
  202.     hosts on the network.  Only one daemon is needed on the news server
  203.     for all hosts.  This works in a heterogenous environment as well.
  204.  
  205.   * NNTP is also supported (using a local database for speed).
  206.  
  207.   Because of the database, nn starts almost equally fast (in a few
  208.   seconds), no matter whether you have 100 or 10000 unread articles!
  209.   The database takes up some disk space, but dramatically improves speed
  210.   and functionality.  The amount of disk space consumed is approx. 1Mb
  211.   per 10000 articles.
  212.  
  213.   
  214. Subject: ! What is the current version/status of nn?
  215. From: Intro-2
  216.  
  217.   The current version of nn is 6.4.18.
  218.  
  219.   Note: The development of nn has been taken over by Peter Wemm
  220.   <peter@dialix.oz.au>.  Bug reports, fixes and suggestions should be
  221.   sent to nn-bugs@dkuug.dk.
  222.  
  223.   Version 6.5.0 is in the final stages of beta testing.  It will
  224.   include many bug fixes, full NOV capability, a means of
  225.   automatically killing threads of unread articles as well as
  226.   automatically selecting subjects to articles that you've read, a
  227.   mouse sensitive xterm interface, and the program nnsub to subscribe
  228.   to newsgroups.
  229.  
  230.   The adventurous are invited to obtain the beta version.  Please get
  231.   the files README.FIRST and README.b2 in the beta directory, and
  232.   report any bugs to Peter.  See "Where can I get nn" below.  [10.93]
  233.  
  234.   
  235. Subject: ! Where can I get nn?
  236. From: Intro-3
  237.  
  238.   Note that tar files with the name of nn6.4.tar.Z (ie. not
  239.   nn6.4.18.tar.Z) may *not* include the patches.  Don't even think of
  240.   compiling unless the PATCHLEVEL defined in patchlevel.h is 18.  We
  241.   are endeavouring to remedy the situation.
  242.  
  243.   The current master site for nn is uniwa.uwa.edu.au.  See below.
  244.  
  245.   The following is a very old list.  At the moment, only the archives
  246.   noted with the last modification date are known to carry the latest
  247.   sources.  We will be soon trying to update this list.  Until then,
  248.   may I suggest that you use archie to find the nn sources. [10.93]
  249.  
  250.   via anonymous ftp:
  251.     uniwa.uwa.edu.au [130.95.128.1]                [10.93]
  252.       pub/nn/nn-6.18.tar.Z            590k
  253.       pub/nn/nn-6.18.tar.gz             405k
  254.       pub/nn/beta/nn-6.5.0.b2.tar.gz        515k
  255.     chalmers.se [129.16.1.1]                    [12.92]
  256.       pub/nn/nn6.4.18.tar.Z
  257.       pub/nn/patch??.Z
  258.     cs.mun.ca                            [12.92]
  259.       pub/news/nn6.4
  260.     ftp.msen.com [148.59.1.8]                    [1.93]
  261.       pub/packages/nn/nn.patch17.Z        5k
  262.       pub/packages/nn/nn.patch18.Z        6k
  263.       pub/packages/nn/nn6.4.pl16.tar.Z        732k
  264.     dkuug.dk [129.142.96.41]
  265.       pub/nn6.4/nn64.tarZa[a-f]            ~90k each
  266.       pub/nn6.4/nn6.4.patch[1-16].Z        ~25k each
  267.     munnari.oz.au [128.250.1.21]
  268.       pub/news/nn
  269.     sirius.ucs.adelaide.edu.au [129.127.40.3]
  270.       pub/news/nn6.4/nn6.4.tar.Z        485k
  271.       pub/news/nn6.4/nn6.4.patch[1-10].Z     ~25k each
  272.     aupair.cs.athabascau.ca
  273.       pub/usenet/nn/nn6.4.patch18
  274.     mtecv2.mty.itesm.mx [131.178.1.5]
  275.       pub/nn/nn6.4.16.tar.Z
  276.       pub/nn/nn6.4/nn6.4.patch[1-16].Z
  277.       pub/nn/NN_FAQ_with_Answers
  278.     ghost.dsi.unimi.it [131.175.10.64]
  279.       pub/nn.6.4.16.tar.Z            766k
  280.       pub/nntp.1.15.11.tar.Z            284k
  281.     ftp.uu.net [137.39.1.9]
  282.       news/readers/nn/nn6.4.tar.Z        485k
  283.       news/readers/nn/nn6.4.patch[1-16].Z    <30k each
  284.     uk.ac.soton.ecs (NIFTP)
  285.       login ID "guest", password of your mail ID (must include an "@"):
  286.       <PUB>/nn6.4.16.tar.Z            621637
  287.       <PUB>/nn6.4.patch[1-16].Z            ~25000
  288.       <PUB>/nntp-1.5.11.tar.Z            210319
  289.  
  290.   via anonymous uucp:
  291.     Anyone in the U.S. can get nn source and patches by anonymous
  292.     uucp from uunet by using their 900 number which costs 40
  293.     cents/minute (you don't have to be a uunet subscriber).  The
  294.     number is 1-900-468-7727, login: uucp, no password.  See
  295.     uunet!~/help (~5k) for more info or get uunet!~/index/README (~4k)
  296.     for a current full directory listing.  --Gary Morris <garym@telesoft.com>
  297.  
  298.     uunet!~/news/nn/nn6.4.tar.Z       (~485k)
  299.     uunet!~/news/nn/nn6.4.patch1.Z    (~15k)
  300.           ...
  301.     uunet!~/news/nn/nn6.4.patch16.Z   (~24k)
  302.  
  303.   via mail:
  304.     Send a note to ftpmail@decwrl.dec.com whose body contains "help"
  305.     on a line by itself get information on getting ftp sources by
  306.     mail.
  307.  
  308.     Send a note to mail-server@nluug.nl with a body containing one or
  309.     both of the following as desired:
  310.  
  311.       send news/nn/nn6.4.16.tar.Z
  312.       send news/nntp/nntp.1.5.11.tar.Z
  313.  
  314.   mini-inews: 
  315.     
  316.     As well as bringing mini-inews up to date, modifications have been
  317.     made to remove the need for MINI_INEWS_HEADERS when setting up nn.
  318.     Mini-inews will now create whatever headers are required including
  319.     if desired, a Lines header or an incremental Message-ID numbering
  320.     capability. --Jim Jagielski <jim@jagubox.gsfc.nasa.gov>
  321.  
  322.     jagubox.gsfc.nasa.gov    [128.183.44.1]    /pub/inews16.tar.Z    76K
  323.  
  324.   
  325. Subject: What references exist for nn?
  326. From: Intro-4
  327.  
  328.   Book:
  329.     The Whole Internet User's Guide & Catalog, Chapter 8.  Ed Krol.
  330.     ISBN 1-56592-025-2.  $24.95.  376 pages.
  331.     O'Reilly & Associates, Inc.
  332.     Book Orders:
  333.       US and Canada: 800-998-9938.  Fax: 707-829-0104.
  334.  
  335.     To get a list of non-US distributors, send a note to
  336.     nuts@ora.com or call +1-707-829-0515.
  337.  
  338.   Usenet:
  339.     news.software.nn
  340.  
  341.   Mailing list:
  342.  
  343.   NN mailing list archives:
  344.  
  345.   Papers:
  346.     "Intro to nn"
  347.     ux1.cso.uiuc.edu [128.174.5.59]:doc/net/nn.<format>
  348.     where <format> is one from doc, ps, tex, jpn, and hqx.
  349.  
  350.     "A Short Guide to nn"
  351.     unlinfo.unl.edu:pub/crc.docs/NN.doc/nn.manual.ascii
  352.  
  353.   This document:
  354.     via anonymous ftp:
  355.       pit-manager.mit.edu  [18.172.1.27]      /pub/usenet/news.answers/nn-faq.Z
  356.       ftp.uu.net       [137.39.1.9]      /archive/usenet/news.answers/nn-faq.Z
  357.       ftp.cs.ruu.nl       [131.211.80.17]    /pub/NEWS.ANSWERS/nn-faq
  358.  
  359.     via uucp:
  360.       uunet!/archive/usenet/news.answers/nn-faq.Z
  361.  
  362.     via mail:
  363.       Each of the following addresses is following by commands which
  364.       should be included as the body of the message.
  365.       
  366.       mail-server@pit-manager.mit.edu
  367.         send usenet/news.answers/nn-faq
  368.  
  369.       mail-server@cs.ruu.nl
  370.     send pub/NEWS.ANSWERS/nn-faq
  371.  
  372.   
  373. Subject: ! How should I report bugs?
  374. From: Intro-5
  375.  
  376.   Send them to nn-bugs@dkuug.dk.  [10.93]
  377.  
  378.   
  379. Subject: How can I convert from rn to nn?
  380. From: Intro-6
  381.  
  382.   Why bother?  On our system some people use nn and some people use
  383.   rn.  In fact, since they both use the same .newsrc format, it is
  384.   perfectly possible to use both.  --Ian Taylor <ian@airs.com>
  385.  
  386.   
  387. Subject: How can I make life simpler when starting nn for the first time?
  388. From: Intro-7
  389.  
  390.   Use nnsub and eep.  See the enclosed documentation to see which you
  391.   prefer. [note: only available in 6.5.0 beta] --Peter Wemm
  392.   <peter@dialix.oz.au> [10.93]
  393.  
  394.   I think a nice way is to use the catch-up facility.  Start nn -a0
  395.   and let nn catch up automatically.  After some hours restart nn and
  396.   unsubscribe to uninteresting groups having news articles.  Restart
  397.   nn the following day and continue unsubscribing.
  398.  
  399.   After one week, you have a nice .newsrc.  --Joerg Napp
  400.   <napp@uni-paderborn.de>
  401.  
  402.   Another method is to run nn, exit immediately with 'Q', edit
  403.   ~/.newsrc and replace all occurrences of ':' with '!' (ie. sed
  404.   's/:/!/' .newsrc > foo; mv foo .newsrc) and then replace the '!'
  405.   with a ':' for those groups you're interested in.  [3.93]
  406.  
  407.   
  408. Subject: ! Is there an X interface to nn?
  409. From: Intro-8
  410.  
  411.   Almost.  In the 6.5.0 beta version, there is a simple text panel,
  412.   with highlighting and mouse sensitivity within an xterm. [10.93]
  413.  
  414.   
  415. Subject: ! What machines does nn run on?
  416. From: Building nn-10
  417.  
  418.   Please send updates to nn-bugs@dkuug.edu. [10.93]
  419.  
  420.   Operating systems:
  421.  
  422.   3b1 (UNIX-pc) with GCC        SunOS 3
  423.   NeXT 1.0                SunOS 4.0
  424.   AIX 2.2.1                SunOS 4.1 SysV environment
  425.   A/UX 1.1                System V
  426.   4.2 BSD and Ultrix systems        Motorola System V/88 Release 3
  427.   4.3 BSD systems            Texas Instruments System 1500
  428.   dnix 5.2 on DIAB DS90            NCR tower
  429.   dnix 5.3 on DIAB DS90            ULTRIX systems (4.2 based)
  430.   Dynix 3.0 on Symmetry            Mips running riscos 4.0 or greater
  431.   Fortune 32:16                Riscos 4.5 and later
  432.   HPUX (series 300)            Microport UNIX V.2
  433.   HPUX 2.1 (series 800)            Amdahl UTS 2.0
  434.   HPUX 3.0 (series 800)            SCO Xenix 2.2.1 (286) -- terminfo
  435.   HPUX 6.5 or newer (series 300)    SCO Xenix 286 -- termcap
  436.   HPUX 7.0                Xenix386 [termcap version]
  437.   Interactive UNIX on 386        Xenix386 2.3.2 w/development system
  438.   Dynix/PTX on symmetry            Tandy 68000/Xenix 3.2
  439.   Pyramid (and Targon 35)
  440.   SCO UNIX V on 386
  441.   IRIX 3.1/3.2
  442.   Siemens SINIX
  443.  
  444.   Hardware platforms:
  445.  
  446.   3b1 with GCC [no networking]        MIPS processors
  447.   Amdahl 5890 (big iron)        Siemens MX300
  448.   AT&T 3b2                Pyramid (and Targon 35)
  449.   Convex                IBM 6150
  450.   DECstation 3100            Silicon Graphics 4D series
  451.   Gould PN6000                SPARC processors
  452.   HP9000 series 320 and 800 (at least)    80386 based SUNs [have network support]
  453.   Intel 80286 [no networking]        Sequent Symmetry
  454.   Intel 80386 [no networking]        VAX family
  455.   Motorola 68000 family
  456.   Motorola 88000 risc
  457.  
  458.   
  459. Subject: Is it possible to restrict the groups that users have access to?
  460. From: Building nn-11
  461.  
  462.   Create a new group for the people who can read the special groups.
  463.   Call it "privnews", for example. (In /etc/group put the userid of
  464.   each person who's in that group on that group's line.)  Then change
  465.   the group of the spool directory which contains the restricted
  466.   newsgroup to "privnews" (leaving the owner as news), and set the
  467.   mode to 750. --Alexis Rosen <alexis@panix.com>
  468.  
  469.   Note that this only works if you are not using NNTP to read news.
  470.   There is currently no mechanism that will allow this to work with
  471.   NNTP. --Steve Simmons <scs@wotan.iti.org> [1.93]
  472.  
  473.   
  474. Subject: Unofficial patches for various bugs
  475. From: Building nn-12 
  476.  
  477.   Several bugs have been reported and fixed and the patches are
  478.   available here for those not patient enough to wait until the next
  479.   release.  
  480.  
  481.   Remember, these are *unofficial* patches so back them out before
  482.   patching in the next release of nn.  You do not have to strip the
  483.   two leading spaces before these patches.  In fact you can run "patch
  484.   -s -N < this-entire-faq", within the newsreader even!
  485.  
  486.   The patch in appendix "pack_date.c" fixes NN dateline parsing.
  487.   Also, NN mishandles non-GMT time zones near short month boundaries
  488.   due to NN's, er, somewhat unusual time stamp encoding.  It is
  489.   included in nn version 6.5.0.  --Paul Eggert <eggert@twinsun.com>
  490.   [10.93]
  491.  
  492.   
  493. Subject: Can I set up nn securely?
  494. From: Building nn-13
  495.  
  496.   Diffs are unfortunately not included, but this is what you can do:
  497.  
  498.   o Set shell-restrictions in the setup file.
  499.   o Set and lock *every* variable which is used to execute commands.
  500.   o Modify the source to avoid display/save/print files above the
  501.     home-directory if shell-restrictions is set (mainly in save.c).
  502.   o Modify the source to avoid changing directories if shell-restrictions
  503.     is set.
  504.   o Modify the source to avoid showing the contents of locked variables.
  505.  
  506.   In particular, the following variables should be locked:
  507.  
  508.   backup-folder-path, backup-suffix, bug-report-address, decode-header-file,
  509.   editor, folder, inews, mail, mail-record, mailer, news-record, newsrc,
  510.   pager, patch-command, printer, record, spell-checker, unshar-header-file  
  511.  
  512.   
  513. Subject: How do I save files that I can read later with MH, elm, Mail, ...?
  514. From: Using nn-20 
  515.  
  516.   MH:
  517.      Save your files with +$F/$N.  For example, if you save message 10
  518.      in news.software.nn in this way, you will create a file called
  519.      ~/News/news/software/nn/10.  If you have a symbolic link from
  520.      ~/Mail/news to ~/News, then you can look at your saved nn
  521.      messages with "scan +news/news/software/nn".
  522.  
  523.   Mail
  524.      Add "set mail-format" to your init file.  
  525.  
  526.   
  527. Subject: ! How come nn doesn't show the Lines count?
  528. From: Using nn-21 
  529.  
  530.   Karl Kleinpaste writes:
  531.     C News sites can turn on Lines: header creation (we do here), but
  532.     the default has it turned off.  I wish more would turn it on, as
  533.     several newsreaders put it to use, and it's the most easily
  534.     available metric of article size when showing the user a menu of
  535.     available articles.
  536.  
  537.   Henry Spencer replies:
  538.     We're unenthusiastic about Lines:, which is why it's off by default
  539.     and little-documented.  *The* most easily available metric of
  540.     article size is not line count -- which is often slightly wrong, by
  541.     the way -- but byte count, which is available without even parsing
  542.     the headers.
  543.  
  544.     You can tell C News to add Lines: headers to articles *posted*
  545.     locally, but C News has no provision for adding headers to traffic
  546.     coming in from other sites.  [Specifically, search for the string
  547.     "uncomment" in inews, and uncomment those lines. --bw]
  548.  
  549.   But Paul Eggert <eggert@twinsun.com> and Luc Rooijakkers
  550.   <lwj@cs.kun.nl> provide a solution:
  551.  
  552.     Remember, these are *unofficial* patches so back them out before
  553.     patching in the next release of nn.  You do not have to strip the
  554.     two leading spaces before these patches.  In fact you can run
  555.     "patch -s -N < this-entire-faq", within the newsreader even!  A
  556.     variation of this patch is included in nn version 6.5.0.  See
  557.     appendix "news.c" [10.93]
  558.  
  559.   Finally, Peter Wemm <peter@dialix.oz.au> says that you'll always get
  560.   the lines header if you run INN.
  561.  
  562.   
  563. Subject: How can I find all articles having to do with a certain topic?
  564. From: Using nn-22
  565.  
  566.   nngrab invokes nn on all articles whose subject or keyword fields
  567.   contain a desired keyword.  This shows one how important it is to
  568.   use descriptive subjects and keywords when posting articles.  For
  569.   more information, read the manual page.
  570.  
  571.   
  572. Subject: How can I set a different Organization name?
  573. From: Using nn-23
  574.  
  575.   See "How can I update my mail headers?" [9.92]
  576.  
  577.   
  578. Subject: ! Can all non-selected subjects be automatically placed in my kill file?
  579. From: Using nn-24
  580.  
  581.   The two variables, ignore-re and auto-select-rw, accomplish this
  582.   task.  They are available in version 6.5.0.  In the meantime,
  583.   patches may be obtained from dkuug.dk:/pub/nn6.4/nn6.4.killunread.
  584.   --Keld J|rn Simonsen <keld@dkuug.dk>. [1.93]
  585.  
  586.   
  587. Subject: Can I automatically kill articles based on the Newsgroups header?
  588. From: Using nn-25
  589.  
  590.   This is how one can automatically kill crossposted articles, etc.
  591.  
  592.   First, manually either add the following to your .newsrc to mark all
  593.   articles read forever:
  594.  
  595.     alt.flame: 1-2147483647
  596.  
  597.   or add the following to your .nn/kill file to kill all articles in
  598.   the group:
  599.  
  600.     alt.flame:!s/:^
  601.  
  602.   The former method may break down if you ever use nngoback to reset
  603.   numbers in your .newsrc.  The latter method could cause difficulty
  604.   if you ever actually want to read articles in that group.
  605.  
  606.   Near the top of your sequence in your init file put
  607.  
  608.     !alt.flame.
  609.     alt.flame
  610.  
  611.   This makes alt.flame, but not its subgroups, be included as the first
  612.   thing in your sequence; so all articles in it are killed before they
  613.   appear in any other groups.  You might want to put NEW above this so
  614.   you can see if new groups are getting off to a bad start with lots of
  615.   alt.flame crossposting.  Later in the sequence put
  616.  
  617.     % alt %
  618.  
  619.   This allows the rest of the alt hierarchy, including subgroups such
  620.   as alt.flame.spelling (if you subscribe to it), to get included at
  621.   that point in the sequence.
  622.  
  623.   Along with using the default settings of cross-filter-seq=true and
  624.   cross-post=false, this works fine to nuke the crossposted articles.
  625.   --Richard M. Mathews <richard@locus.com> & Dave Shaver <shaver@convex.com>
  626.  
  627.   
  628. Subject: How can I select one article in a thread with auto-select-subject set?
  629. From: Using nn-26
  630.  
  631.   Define the following macro to toggle auto-select-subject.  --Steven
  632.   Grady <grady@fx.com>
  633.  
  634.     map menu A (
  635.         :local auto-select-subject
  636.         :toggle auto-select-subject
  637.         ?auto-select-subject=on echo "Auto-select on"
  638.         ?auto-select-subject=off echo "Auto-select off"
  639.     )
  640.  
  641.   Use the '.' command.
  642.  
  643.   
  644. Subject: Is there a library of macros and other nn features?
  645. From: Using nn-27
  646.  
  647.   When complete, it will be a companion posting to this one.  If you
  648.   have not mailed me <wohler@sap-ag.de> your init file, or you have
  649.   made substantial changes since the last time, please send it in.  If
  650.   anyone is handy in perl or awk and would like to write some scripts
  651.   to reduce multiple init files to variable summaries (like the one I
  652.   posted a long time ago), macro definitions and presentation sequence
  653.   tricks, I would like to talk to you.
  654.  
  655.   
  656. Subject: ! Can one search for patterns in the entire article from the menu?
  657. From: Using nn-28
  658.  
  659.   No.  However, in 6.5.0, there will be an additional option under the
  660.   'G' command to create a submenu containing articles that contain the
  661.   desired string.  As it is not yet well tested, it will be a compile
  662.   time feature.  --Peter Wemm <peter@dialix.oz.au> [10.93]
  663.  
  664.   
  665. Subject: How can I remove old articles from folders?
  666. From: Using nn-29
  667.  
  668.   Just open the folder in the usual way and C(ancel) the articles you
  669.   want to remove from the folder.  When you leave the folder, nn will
  670.   rewrite the folder with the "cancel"ed articles removed.  --Kim
  671.   Storm <storm@olicom.dk>
  672.  
  673.   
  674. Subject: What's the best way to save multi-part articles?
  675. From: Using nn-30
  676.  
  677.   All you have to do is to save the articles from the menu, e.g.
  678.  
  679.     W(rite) +file.* a b c d... <space>
  680.  
  681.   where a b c d... are the articles on the menu you want to save.  You
  682.   can also save the selected articles on the menu with * (only on
  683.   current page) or + (on all menu pages).  --Kim Storm <storm@olicom.dk>
  684.  
  685.   
  686. Subject: When saving in +a/b/c keeps you from saving in +a/b.
  687. From: Using nn-31 
  688.  
  689.   This happens when default-save-file is $F.  Try changing
  690.   default-save-file to $F/$N (my favorite) to get, for example,
  691.   +news/software/nn/1022, or $G to put everything in
  692.   +news.software.nn.  Finally, if you really did want the behavior of
  693.   +$F, a compromise would be to use +$F. (Andrew's favorite) instead
  694.   (one can use anything other than '.'). --Bill Wohler & Andrew Swann
  695.   <swann@imada.ou.dk>
  696.  
  697.   Alternatively, use +$F/$L, to place articles for news.software.nn in
  698.   the file +/news/software/nn/nn.  This has two advantages:
  699.   1) You can later read through the folder "nn" and save some of the
  700.     articles under new folder names having to do with the topic.  For
  701.     example, you might save auto-select topics under +$F/auto-sel,
  702.     that is, +/news/software/nn/auto-sel.
  703.   2) If at a later date, a new newsgroup is added below nn, articles
  704.     can still be saved under that subgroup since +/news/software/nn is
  705.     already a directory, not a folder.  --Harry Herman <herman@corpane.uucp>
  706.  
  707.   
  708. Subject: Can I use my mailer to send mail?
  709. From: Using nn-32 
  710.  
  711.   Yes.  See the variables mail-script, mailer, and mailer-pipe-input.
  712.   The following show how you can have nn use elm and MH to mail
  713.   messages.  [1.93]
  714.  
  715.   The original idea of using MH (namely, comp) to send mail from nn
  716.   came from Jaap Vermeulen <jaap@sequent.com>, but he wouldn't
  717.   recognize what I did to it.  I also used a suggestion from John
  718.   Romine <jromine@ics.uci.edu> and Tom McCain <tom@dynamo.ecn.purdue.edu>.
  719.  
  720.   Add
  721.  
  722.     set mail-script nn-use-mh
  723.  
  724.   to your init file.  See appendix "nn-use-mh" for the script.
  725.  
  726.   In addition, you can contact Ray Davis <rdavis@convex.com> for some
  727.   scripts that sort of turn nn into a MH front end by providing macros
  728.   to save, delete and refile articles in MH folders.
  729.  
  730.   To use elm to send the messages, add the following to ~/.nn/init:
  731.  
  732.     set   mailer              nn_elm
  733.     unset mailer-pipe-input
  734.  
  735.   and see appendix "nn_elm" for the script. [1.93]
  736.  
  737.   
  738. Subject: How can I see the original article with the current subject?
  739. From: Using nn-33 
  740.  
  741.   While reading an article, use "G RET RET RET".
  742.  
  743.   
  744. Subject: ! Can I choose newsgroups as I do articles, ie. with a menu?
  745. From: Using nn-34
  746.  
  747.   No, not yet.  Sorry.  However, progress in this direction has been
  748.   made--if you care to finish the work, please contact Peter Wemm
  749.   <peter@dialix.oz.au>. [12.92]
  750.  
  751.   See also "How can see which newsgroups are available?"  [1.93]
  752.  
  753.   Outside of nn, you may wish to check out eep which is in the
  754.   contributed area in 6.5.0.  --Peter Wemm <peter@dialix.oz.au> [10.93]
  755.   
  756. Subject: How can I post prewritten articles with nn?
  757. From: Using nn-35
  758.  
  759.   nnpost will construct the header for the posted article, so it
  760.   requires several arguments to be specified before the article is
  761.   posted, e.g. a newsgroup name and a subject.  If some arguments are
  762.   missing, nnpost will prompt for the missing arguments.
  763.  
  764.   If your pre-written article includes a full header, then you should
  765.   not use nnpost; instead you should feed the article to "inews -h"
  766.   directly (which is what nnpost does after building the header from
  767.   the arguments).  --Kim Storm <storm@olicom.dk>
  768.  
  769.   
  770. Subject: How can nn automatically append my signature?
  771. From: Using nn-36
  772.  
  773.   Put your signature in a file called .signature in your home
  774.   directory, and use:
  775.  
  776.     set append-signature-post
  777.     set append-signature-mail    # if desired
  778.     set query-signature        # if you want confirmation.
  779.  
  780.   See also "How do I eliminate double signatures?" and
  781.   "Can the signature come from a different file or program?" [3.93]
  782.  
  783.   
  784. Subject: How do I eliminate double signatures?
  785. From: Using nn-37
  786.  
  787.   Double signatures occur when both nn and inews append $HOME/.signature.
  788.  
  789.   If you want just inews to append your signature, use:
  790.  
  791.     unset append-signature-post
  792.  
  793.   This is actually the default, but you can unset this variable if
  794.   your nn administrator has mistakenly turned it on.
  795.  
  796.   If you want just nn to append your signature, move your signature to
  797.   some other place than $HOME/.signature.  Then see, "Can the signature
  798.   come from a different file or program?"
  799.  
  800.   
  801. Subject: Can the signature come from a different file or program?
  802. From: Using nn-38
  803.  
  804.   If you want nn to append your .signature file, you can copy nn's aux
  805.   file (ie. /usr/local/lib/nn/aux) to your .nn directory and set the
  806.   mail-script and news-script variables to ~/.nn/aux.  In your copy of
  807.   the aux script, you can either specify a different place for your
  808.   .signature file (like $HOME/.nn/signature) or you can get fancy: you
  809.   can use specific .signatures for certain groups (saved in variable
  810.   "G"), or use the output of a program.  --Bill Wohler
  811.  
  812.   Tired of the same old signature?  Want different signatures for
  813.   different newsgroups?  Here's a program to help you out.
  814.  
  815.   The way it works is to have .signature be a named pipe, so if you
  816.   don't have named points, just say 'n'.
  817.  
  818.   The sigrand program then feeds stuff down the pipe everytime someone
  819.   wants to read it.  That way it works for more than just news, but
  820.   for anything that wants to read your .signature, like a mailer.
  821.  
  822.   You have your choice of three kinds of signatures:
  823.  
  824.       1) random (short) fortune from "fortune -s"; you get these if
  825.      you don't have a global sig file.
  826.       2) random fortune from ~/News/SIGNATURES [global sig file]
  827.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  828.  
  829.   Ask Tom Christiansen <tchrist@convex.com> for more details.
  830.  
  831.   
  832. Subject: How can I make mail replies go to a different machine?
  833. From: Using nn-39
  834.  
  835.   See "How can I update my mail headers?"  [9.92]
  836.  
  837.   
  838. Subject: How come more articles get selected than I expect?  
  839. From: Using nn-40
  840.  
  841.   Check the setting of subject-match-parts. If this is on, then your subjects
  842.   are considered matched if they match up to the first digit. For example
  843.   if subject-match-parts is on, the subjects:
  844.  
  845.     someprogram Part 1/5
  846.     someprogram Part 2/5
  847.  
  848.   are considered matches. So are
  849.  
  850.     v12345: someprogram Part 1/5
  851.     v12346: anotherprogram Part 1/23
  852.  
  853.   as the "v" is identical up to the first digit. If you want to use
  854.   subject-match-parts in a "comp.sources" type group, set
  855.   subject-match-offset (the character position that matches are
  856.   started from) to be beyond any digits that might appear in the first
  857.   part of the subject.  --Dave Hayes <dave@elxr.jpl.nasa.gov>
  858.  
  859.   
  860. Subject: ! Any plans for trn-ish thread following?  
  861. From: Using nn-41
  862.  
  863.   "Yes, it's planned."  --Peter Wemm <peter@dialix.oz.au> [10.93]
  864.  
  865.   
  866. Subject: ! Setting new-group-action to "ask before adding" doesn't work.
  867. From: Using nn-42
  868.  
  869.   Take NEW out of your sequence--it's redundant.
  870.  
  871.   There was also a small bug (fixed in 6.5.0) which caused it to
  872.   not to work in certain situations. --Peter Wemm <peter@dialix.oz.au>
  873.   [10.93] 
  874.  
  875.   
  876. Subject: Why does nn crash when a letter one past the highest letter is selected?
  877. From: Using nn-43
  878.  
  879.   This is fixed in patch 17.  [9.92]
  880.  
  881.   Your terminal modes will be screwed up after such an event, so
  882.   you'll have to type ^J (or LINE-FEED) repeatedly until a prompt is
  883.   seen, and then run
  884.  
  885.     stty -sane^J
  886.  
  887.   or
  888.  
  889.     reset
  890.  
  891.   
  892. Subject: Why do articles without a Lines header appear empty?
  893. From: Using nn-44
  894.  
  895.   This problem only shows up if you have header-lines set to a string
  896.   that includes "L".  It is suspected that having the line count patch
  897.   sets something that makes nn think there is a Lines header and then
  898.   the header-string is telling it to display the Lines header but
  899.   there isn't one and things get messed up.  --Gary Morris
  900.   <garym@telesoft.com>
  901.  
  902.   
  903. Subject: How do I save my posts, followups and replies automatically?  
  904. From: Using nn-45
  905.  
  906.   In your nn init file, use the following lines:
  907.  
  908.     set news-record file
  909.     set mail-record file
  910.  
  911.   to place posts and followups in one file and replies in another, or
  912.   to put everything in a single file, use:
  913.  
  914.     set record file
  915.  
  916.   Replace "file" with the absolute path (~ == home directory ok) of
  917.   your desired file.  All files are saved in mailbox format.  --Don
  918.   Mullins <mullins@convex.com> [9.92]
  919.  
  920.   
  921. Subject: How can I change how my real name appears?
  922. From: Using nn-46
  923.  
  924.   On BSD UNIX systems, you can run the command chfn(1) to change 
  925.   your real name.  If you don't want to do this, or can't, please 
  926.   see "How can I update my mail headers?"  [9.92]
  927.  
  928.   
  929. Subject: How can I customize my mail headers for mail and posting?
  930. From: Using nn-47
  931.  
  932.   Headers can be modified or appended to by creating the variables
  933.   mail-header (for replies) and news-header (for posts and followups)
  934.   in the init file. You can include any headers that you want;
  935.   separate multiple headers with semi-colons.  For example:
  936.  
  937.   set mail-header From: Joe Smith <js@cc.edu>;Reply-To: js@cc.edu;
  938.           Organization: CC University
  939.   set news-header From: Joe Smith <js@cc.edu>;Reply-To: js@cc.edu;
  940.           Organization: CC University
  941.  
  942.   Note that these lines are split for readability--the value of these
  943.   variables must appear on a single line.  In addition, do not insert a
  944.   space between semi-colons and the next header.
  945.  
  946.   A Reply-To header is useful when your system generates either an
  947.   unwanted or blatantly wrong return address for you.  If this header
  948.   is present, then mailers use it instead of the system generated From
  949.   header.
  950.  
  951.   A From header is useful when you want to change how your real name
  952.   appears to nn readers, but you don't want to change it (or can't) on
  953.   your system.  Warning: only do this if you're sure you can create a
  954.   RFC 822 compliant From header.  [9.92]
  955.  
  956.   
  957. Subject: Can the article viewer/pager be changed?
  958. From: Using nn-48
  959.  
  960.   No.  And for good reason.  There are too many commands in nn's pager
  961.   that less, for example, doesn't know anything about.
  962.  
  963.   
  964. Subject: How do I search for an author in a menu?
  965. From: Using nn-49
  966.  
  967.   Add the following macro to your init file (~/.nn/init) and invoke
  968.   via '_' (underscore).
  969.  
  970.   # _ does search on sender (as = does a search on subject)
  971.   map menu _ (
  972.     :set select-on-sender
  973.     find input
  974.     :unset select-on-sender
  975.     message
  976.   )
  977.  
  978.   [1.93]
  979.  
  980.   
  981. Subject: Can nn use aliases when sending mail?
  982. From: Using nn-50
  983.  
  984.   Yes.  See the variable mail-alias-expander, and use the script in
  985.   appendix "nnalias."  [1.93]
  986.  
  987.   
  988. Subject: ! How can I see which newsgroups are available?
  989. From: Using nn-51
  990.  
  991.   To see a list of all news groups with a short description, use the
  992.   command ":post" and type '?'.  To list groups that match a regular
  993.   expression (ie. pattern), use "/pattern" instead of '?'.  --<Sven
  994.   Guckes> guckes@math.fu-berlin.de
  995.  
  996.   Also try using '?' when going to a group with the 'G' command.  Note
  997.   that successive '?'s will display more groups when there is not
  998.   enough room to display all choices at once.  Group completion is
  999.   achieved with ' ' (space).
  1000.  
  1001.   Finally, the programs "nnsub" or "eep" can be used to easily view
  1002.   newsgroup names and descriptions and also to subscribe to groups.
  1003.   These programs are in the "contrib" area of the sources in 6.5.0.
  1004.   
  1005.   [10.93]
  1006.  
  1007.   
  1008. Subject: How can I read MIME articles?
  1009. From: Using nn-52
  1010.  
  1011.   Using metamail, you can do one of the following:
  1012.  
  1013.   "Print" the message.  Use the "P" command and:
  1014.  
  1015.     set printer metamail
  1016.  
  1017.   "save" the message.  Use "s" and specify "|metamail" as a filename.
  1018.  
  1019.   metamail can be found at:
  1020.  
  1021.     thumper.bellcore.com     [128.96.41.1]    /pub/nsb/mm.tar.Z
  1022.  
  1023.   [3.93]
  1024.  
  1025.   
  1026. Subject: How do I unsubscribe to all groups?
  1027. From: Using nn-53
  1028.  
  1029.   The file .newsrc in your home directory contains the information
  1030.   about the newsgroups, their subscription status and the numbers of
  1031.   the read articles.  A colon (':') indicates a subscribed group, and
  1032.   an exclamation mark ('!') indicates an unsubscribed group.  All you
  1033.   need to do for unsubscribing to all newsgroups is to edit .newsrc.
  1034.   You can do this with your favourite editor, or
  1035.  
  1036.     sed -e 's/:/!/' $HOME/.newsrc > foo
  1037.     mv foo .newsrc
  1038.  
  1039.   If you use csh, you have to escape the '!' with a '\'.  --Sven
  1040.   Guckes <guckes@math.fu-berlin.de> [3.93]
  1041.  
  1042.   
  1043. Subject: Why does nnmaster stop collecting articles at the "junk" group?
  1044. From: nnmaster-60
  1045.  
  1046.   This can occur when you access news via NNTP.  Older nntp servers
  1047.   have a limitation of 4000 articles in a group, and junk may easily
  1048.   exceed this which makes the nntp server crash.
  1049.  
  1050.   To overcome the problem, edit the GROUPS file to add the X flag on
  1051.   the junk group, run nnmaster -G, and then nnmaster will ignore the
  1052.   junk group.  --Kim Storm <storm@olicom.dk>
  1053.  
  1054.   In nntp_dir/common/conf.h, you can either increase MAX_GROUPS
  1055.   (normally 4096) or you can set #define DYNAMIC_ART_ARRAY (normally
  1056.   #undefed).  In either case, you obviously have to recompile nntp.
  1057.  
  1058.   Normally, new groups are added as they come in, but the news
  1059.   administrator should monitor the junk newsgroup and either make new
  1060.   newsgroups for the orphan messages, or ensure that the feed stops
  1061.   sending bogus messages.  --Mark Rawling
  1062.   <Mark.Rawling@mel.dit.csiro.au> [3.93]
  1063.  
  1064.   
  1065. Subject: How do I cope with "Incomplete MASTER file"?
  1066. From: nnmaster-61
  1067.  
  1068.   See "Why isn't nnmaster working?"  
  1069.  
  1070.   
  1071. Subject: Why isn't nnmaster working?
  1072. From: nnmaster-62 
  1073.  
  1074.   After the make, did you remember to:
  1075.  
  1076.     Run ./inst <options> to install the files?
  1077.     Run ./inst INIT to initialize the database?
  1078.  
  1079.   Nnmaster mails error messages to the user who owns him (typically
  1080.   "news").  Check this mailbox for clues.
  1081.  
  1082.   If nnmaster -r or -D did not work, then neither did nnmaster -I (or
  1083.   ./inst INIT from the install directory).  Once you fix the
  1084.   permissions (see Paul's answer below), you need to rerun the
  1085.   initialization step.  --Stew Ellis <ellis@nova.gmi.edu>
  1086.  
  1087.   If nnmaster dies and updates the Log file with "Incomplete MASTER
  1088.   file", it could be you're not running the latest version.  --David
  1089.   R. Hieb <David.R.Hieb@magi.rootgroup.com>
  1090.  
  1091.   If, when you start your nnmaster, it just exits quietly, it could be
  1092.   that your permissions are incorrect.  Ensure that all directories in
  1093.   the nn library are owned by news (or the owner that you configured
  1094.   nn with).  --Paul Bickerstaff <pbickers@tamaluit.phys.uidaho.edu>
  1095.  
  1096.   Make sure that there is a 'news' entry in passwd and group since
  1097.   nnmaster is run setuid/setgid to news and the files and directories
  1098.   that nnmaster needs to access are owned and writable by news.  --Jim
  1099.   Jagielski <jim@jagubox.gsfc.nasa.gov> [9.92]
  1100.  
  1101.   Another problem could be in the way it is started.  Two related
  1102.   solutions are presented.
  1103.  
  1104.   /etc/rc exits before the child has had the chance to setpgrp().
  1105.   Putting "sleep 5" at the end of /etc/rc fixed it. --David B. Thomas
  1106.   <dt@yenta.alb.nm.us>
  1107.  
  1108.   Another similar solution involved inserting a "sleep 10" at the
  1109.   beginning of /etc/daemons/nnmaster.init file.
  1110.   --Jeffery Small <jeff@cjsa.wa.com>
  1111.  
  1112.   It could be you're not running the latest version.  --David R. Hieb
  1113.   <David.R.Hieb@magi.rootgroup.com>
  1114.  
  1115.   
  1116. Subject: Why do I get ".../MASTER not found"?
  1117. From: nnmaster-63
  1118.  
  1119.   The problem of the NN port to the Atari ST is, that you have to
  1120.   build an "active" file (NN format, not HERMES-like!!) in
  1121.   /usr/lib/news before running nnadmin -I.
  1122.  
  1123.   You can build this file by using the included "buildact.tos."
  1124.   Buildact.tos creates a UNIX-like /usr/lib/news/active from
  1125.   /usr/lib/hermes/active. [9.92]
  1126.  
  1127.   
  1128. Subject: Why do I get "cannot open 'x' file"
  1129. From: nnmaster-64
  1130.  
  1131.   If you get a message like,
  1132.  
  1133.     Fatal system error:
  1134.     alt.activism (6): cannot open 'x' file (mode=82, errno=2)
  1135.  
  1136.   you haven't initialized your database.  As root, run the following
  1137.   command "./inst INIT" in the nn source directory.  See the file
  1138.   INSTALLATION for more information.  --Sami Tikka <Sami.Tikka@hut.fi>
  1139.   [1.93]
  1140.  
  1141.   
  1142. Subject: Why do I get "Lost connection to server foobar"
  1143. From: nnmaster-65
  1144.  
  1145.   It's possible that the two database files for a newsgroup (nnn.x and
  1146.   nnn.d) don't exist.  Go into nnadmin and force a recollect of the
  1147.   newsgroup.  Most of the newsgroups (which are missing nnn.x and
  1148.   nnn.d files) after the first problem newsgroup might be
  1149.   automatically collected without a problem.  If there are a large
  1150.   number of these problem groups, it might be easier just to rebuild
  1151.   the whole database: kill nnmaster, run "./inst INIT" as root in the
  1152.   source directory and restart nnmaster.  --Jeff Beckley
  1153.   <beckley@qualcomm.com>
  1154.  
  1155.   If the group in question has too many articles (>4000), it will
  1156.   cause older NNTP implementations to choke.  See "Why does nnmaster
  1157.   stop collecting articles at the "junk" group?" for a fix. [3.93]
  1158.   
  1159.   
  1160. Subject: Glossary
  1161. From: Appendix
  1162.  
  1163.   MIME        Multi-purpose Internet Mail Extensions
  1164.   NNTP        Network News Transport Protocol (see RFC 977)
  1165.   INN        Inter-Network News
  1166.  
  1167.   
  1168. Subject: Acknowledgements
  1169. From: Appendix
  1170.  
  1171. I'd like to thank the following people for providing ideas on the
  1172. layout of this article:
  1173.  
  1174. Joe Wells <jbw@bigbird.bu.edu>          Richard M. Stallman <rms@gnu.ai.mit.edu>
  1175. David Elliott <dce@smsc.sony.com>     Tom Christiansen <tchrist@convex.com>
  1176. Eugene N. Miya <eugene@nas.nasa.gov>
  1177.  
  1178.  
  1179. We are also grateful to the individuals mentioned below and in the
  1180. text of this document who have provided answers or other information
  1181. to make this a better document.  I regret that it is possible that
  1182. some names have been accidently omitted.  I would also like to thank
  1183. all the readers of news.software.nn.
  1184.  
  1185. Kim Storm <storm@olicom.dk>           Sven Guckes <guckes@math.fu-berlin.de>
  1186.  
  1187.   
  1188. Subject: Warranty
  1189. From: Appendix
  1190.  
  1191. [The following statement epitomizes the ridiculous state of affairs in
  1192. our country (I'm an American) and can be ignored outside the US...]
  1193.  
  1194. No Warranty: Because this article is provided free of charge as a
  1195. service to news.software.nn readers, we provide absolutely no
  1196. warranty, to the extent permitted by applicable state law.  This
  1197. article is provided "as is" without warranty of any kind, either
  1198. expressed or implied, including, but not limited to, the implied
  1199. warranties of merchantability and fitness for a particular purpose.
  1200. Should the information prove defective, you assume the cost of all
  1201. necessary servicing, repair or correction.
  1202.  
  1203.   
  1204. Subject: pack_date.c
  1205. From: Appendix
  1206.  
  1207.   *** old/pack_date.c    Wed Apr 17 01:32:40 1991
  1208.   --- new/pack_date.c    Thu Jun  4 20:03:02 1992
  1209.   ***************
  1210.   *** 4,9 ****
  1211.   --- 4,11 ----
  1212.      *    Calculate an approximate "time_stamp" value for a date
  1213.      *    string.  The actual value is not at all critical,
  1214.      *    as long as the "ordering" is ok.
  1215.   +  *    The current algorithm mishandles non-GMT time zones near
  1216.   +  *    short month boundaries, but this is rare in real news.
  1217.      *
  1218.      *    The result is NOT a time_t value, i.e. ctime() will
  1219.      *    not produce the original Date string.
  1220.   ***************
  1221.   *** 256,262 ****
  1222.         res *= 24 * 60;
  1223.         res += (hour * 60) + min;
  1224.     
  1225.   !     return res + tzone(date);
  1226.     }
  1227.     
  1228.     
  1229.   --- 258,264 ----
  1230.         res *= 24 * 60;
  1231.         res += (hour * 60) + min;
  1232.     
  1233.   !     return res - tzone(date);
  1234.     }
  1235.  
  1236.   
  1237. Subject: news.c
  1238. From: Appendix
  1239.  
  1240.   RCS file: news.c,v
  1241.   retrieving revision 1.1
  1242.   diff -c2 -r1.1 news.c
  1243.   *** news.c    1990/10/23 21:37:38    1.1
  1244.   --- news.c    1992/06/19 23:17:05
  1245.   ***************
  1246.   *** 231,235 ****
  1247.         char *parse_header();
  1248.         struct stat statb;
  1249.   !     int retry;
  1250.         FILE *f;
  1251.     #ifdef NNTP
  1252.   --- 231,235 ----
  1253.         char *parse_header();
  1254.         struct stat statb;
  1255.   !     int c, retry;
  1256.         FILE *f;
  1257.     #ifdef NNTP
  1258.   ***************
  1259.   *** 300,309 ****
  1260.         body = parse_header(f, art_hdr_field, modes, buffer1);
  1261.     
  1262.   -     news.ng_lines = news.ng_xlines ? atoi(news.ng_xlines) : -1;
  1263.         if (news.ng_from == NULL) news.ng_from = news.ng_sender;
  1264.     
  1265.   !     if (modes & FILL_OFFSETS) {
  1266.             art->fpos = news.ng_fpos = ftell(f);
  1267.     
  1268.             fseek(f, (off_t)0, 2);
  1269.             news.ng_lpos = ftell(f);
  1270.   --- 300,328 ----
  1271.         body = parse_header(f, art_hdr_field, modes, buffer1);
  1272.     
  1273.         if (news.ng_from == NULL) news.ng_from = news.ng_sender;
  1274.     
  1275.   !     if (modes & FILL_OFFSETS)
  1276.             art->fpos = news.ng_fpos = ftell(f);
  1277.     
  1278.   +     if (news.ng_xlines)
  1279.   +         news.ng_lines = atoi(news.ng_xlines);
  1280.   +     else {
  1281.   + #ifdef NNTP
  1282.   +         if (use_nntp && lazy) {
  1283.   +         off_t fpos = ftell(f);
  1284.   +         fclose(f);
  1285.   +         f = nntp_get_article(art->a_number, 2);
  1286.   +         if (f == NULL) return NULL;
  1287.   +         lazy = 0;
  1288.   +         fseek(f, fpos, 0);
  1289.   +         }
  1290.   + #endif
  1291.   +         news.ng_lines = 0;
  1292.   +         while ((c = getc(f)) != EOF)
  1293.   +         if (c == '\n')
  1294.   +             news.ng_lines++;
  1295.   +     }
  1296.   + 
  1297.   +     if (modes & FILL_OFFSETS) {
  1298.             fseek(f, (off_t)0, 2);
  1299.             news.ng_lpos = ftell(f);
  1300.  
  1301.   
  1302. Subject: nn-use-mh
  1303. From: Appendix
  1304.  
  1305. #!/bin/sh
  1306.  
  1307. # Obtain value of $WORK and $RECORD
  1308. . ${HOME}/.nn/.param
  1309.  
  1310. # Append Fcc: +folder to headers.  The folder is specified in
  1311. # mail-record.
  1312. if [ "$RECORD" != "" ]; then
  1313.       awk '
  1314.       {
  1315.           if ($0 == "" && !done) {
  1316.               print "Fcc: +'$RECORD'";
  1317.               done = 1;
  1318.           }
  1319.           print;
  1320.       }' $WORK > /tmp/aux.$$ && mv /tmp/aux.$$ $WORK
  1321. fi
  1322.  
  1323. # Compose and send the mail
  1324. comp -form $WORK
  1325.  
  1326.   
  1327. Subject: nn_elm
  1328. From: Appendix
  1329.  
  1330. #!/bin/sh
  1331. #
  1332. # nn_elm
  1333. #
  1334. # 07 Aug 91             V1.0
  1335. #
  1336. # Massage a mail message from nn into a form that elm can use
  1337. # (c) 1991 Phil Kernick <phil@adam.adelaide.edu.au> Wizard Software
  1338. #
  1339.  
  1340. eval `awk '
  1341. BEGIN {
  1342.   FS = ":";
  1343.   dq = sprintf("%c", 34);
  1344.  
  1345.   headers = 0;
  1346.   to = "";
  1347.   subject = "";
  1348. }
  1349.  
  1350. /^.*: / {
  1351.   headers++;
  1352.   if($1 == "To")
  1353.     to = dq substr($0, 5) dq;
  1354.   if($1 == "Subject")
  1355.     subject = dq substr($0, 10) dq;
  1356. }
  1357.  
  1358. /^$/ {
  1359.     printf("tail +%d %s | elm -s %s %s > /dev/null\n", headers+2, mail, subject, to);
  1360.     exit;
  1361. }' mail=$1 $1`
  1362.  
  1363. exit $?
  1364.  
  1365.   
  1366. Subject: nnalias
  1367. From: Appendix
  1368.  
  1369. #!/bin/sh
  1370. #
  1371. # nnalias -- expands aliases from ~/.mailrc file for nn.
  1372. #
  1373. # To use, put the following in your ~/.nn/init file:
  1374. #
  1375. #    set mail-alias-expander nnalias
  1376. # and put this file somewhere in your path, making it executable.  I use
  1377. #    set mail-alias-expander /usr/local/lib/nnalias
  1378. # but the choice is up to you.
  1379. #
  1380. # Written by Scott Hannahs, Bitter National Magnet Lab, MIT, August 1991
  1381. # Complaints, comments, ideas to sth@slipknot.mit.edu
  1382. # Tested on Silicon Graphics, IRIX 3.3.1
  1383. #
  1384. # Minor banging by <rreiner@nexus.yorku.ca> to handle alias value fields
  1385. # which contain doublequote characters, e.g.
  1386. #
  1387. #    alias Foo "Foobar the Great <foo@bar.com>"
  1388. #
  1389. # (the doublequotes are stripped in the expansion), and to handle multiple
  1390. # spaces after the token "alias".
  1391. #
  1392. # Also added some error detection and signal traps; tested on SunOS 4.1.1.
  1393. #
  1394. #    Exit codes:     0 -- normal termination
  1395. #            1 -- parm error
  1396. #            2 -- file does not exist
  1397. #            3 -- trap
  1398. #
  1399. # Thanks to bug reports from
  1400. #  Andy Jacobs and others
  1401. #
  1402. if [ z$1 = z ]; then
  1403.   myname=`basename $0`
  1404.   echo "$myname: usage is  $myname workfile"
  1405.   exit 1
  1406. fi
  1407.  
  1408. if [ ! -f $1 ]; then
  1409.   myname=`basename $0`
  1410.   echo "$myname: $1 does not exist or is a directory"
  1411.   exit 2
  1412. fi
  1413.  
  1414. TMP_DIR=/usr/tmp
  1415.  
  1416. trap "rm -f ${TMP_DIR}/nn.alias.$$ ; exit 3" 0 1 2 3 15
  1417.  
  1418. ALIAS_LIST=""
  1419. ADDRESS_LIST="`head -1 $1 | sed -e s/To://`"
  1420. until [ "$ALIAS_LIST" = "$ADDRESS_LIST" ] ; do
  1421.   ALIAS_LIST="`echo "$ADDRESS_LIST"| sed -e 's/,/ /g' `"
  1422.   ADDRESS_LIST=""
  1423.     for ALIAS in $ALIAS_LIST ; do
  1424.       ADDRESS=`grep '^[     ]*alias[     ][     ]*'"$ALIAS"'[     ]' ${HOME}/.mailrc |\
  1425.       sed      -e s/'^[     ]*alias[     ][     ]*'"$ALIAS"'[     ][     ]*'// |\
  1426.       sed -e s/'"'//g`
  1427.       if [ "$ADDRESS" ] ; then
  1428.     ADDRESS_LIST="$ADDRESS_LIST $ADDRESS"
  1429.       else
  1430.     ADDRESS_LIST="$ADDRESS_LIST $ALIAS"
  1431. #      for elm alias expansion use the following line instead of the previous.
  1432. #      ADDRESS_LIST="$ADDRESS_LIST "`elm -c "$ALIAS" | cut -f3 -d\ `
  1433.       fi
  1434.     done
  1435.   done
  1436. echo "To:${ADDRESS_LIST}" > ${TMP_DIR}/nn.alias.$$
  1437. tail +2 $1 >> ${TMP_DIR}/nn.alias.$$
  1438. mv -f ${TMP_DIR}/nn.alias.$$ $1
  1439.  
  1440. exit 0
  1441.  
  1442.  
  1443. Local Variables:
  1444. mode: outline
  1445. outline-regexp: "^Subject:"
  1446. fill-prefix: "  "  
  1447. eval: (progn (setq buffer-read-only nil) (hide-body))
  1448. End:
  1449.  
  1450.  
  1451.