home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso / answers / nn-faq < prev    next >
Internet Message Format  |  1993-12-18  |  49KB

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