home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / NN / _NN-SPOO.TAR / usr / lib / nn / help / Manual < prev   
Encoding:
Internet Message Format  |  1994-09-13  |  253.4 KB

  1. From: NN
  2. Subject: - efficient net news interface (No News is good news)
  3.  
  4. nn - efficient net news interface (No News is good news)
  5.  
  6.  
  7. From: NN
  8. Subject: SYNOPSIS
  9.  
  10. nn [ options ] [ newsgroup | +folder | file ]...
  11. nn -g [ -r ]
  12. nn -a0 [ newsgroup ]...
  13.  
  14. From: NN
  15. Subject: DESCRIPTION
  16.  
  17. Net news is a world-wide information exchange service covering numerous topics
  18. in science and every day life. Topics are organized in news\ groups, and these
  19. groups are open for everybody to post articles on a subject related to the
  20. topic of the group.
  21.  
  22. Nn is a `point-and-shoot' net news interface program, or a news reader for
  23. short (not to be confused with the human news reader). When you use nn, you
  24. can decide which of the many news groups you are interested in, and you can
  25. unsubscribe to those which don't interest you. nn will let you read the new
  26. (and old) articles in each of the groups you subscribe to using a menu based
  27. article selection prior to reading the articles in the news group.
  28.  
  29.     When a news group is entered, nn will locate all the presently unread
  30. articles in the group, and extract their sender, subject, and other relevant
  31. information. This information is then rearranged, sorted, and marked in
  32. various ways to give it a pleasant format when it is presented on the screen.
  33.  
  34.     This will be done very quickly, because nn uses its own database to
  35. maintain all the necessary information on a directly accessible form (this
  36. database is built and maintained by the nnmaster(8) program).
  37.  
  38.     When the article menu appears on the screen, nn will be in a mode called
  39. selection mode. In this mode, the articles which seems to be interesting can
  40. be selected by single keystrokes (using the keys a-z and 0-9). When all the
  41. interesting articles among the ones presently displayed have been selected,
  42. the space bar is hit, which causes nn to enter reading mode.
  43.  
  44.     In reading mode, each of the selected articles will be presented. You use
  45. the space bar to go on to the next page of the current article, or to the next
  46. article. Of course, there are all sorts of commands to scroll text up and
  47. down, skip to the next article, responding to an article, decrypt an article,
  48. and so on.
  49.  
  50.     When all the selected articles in the current group have been read, the
  51. last hit on the space bar will cause nn will continue to the next group with
  52. unread articles, and enter selection mode on that group.
  53.  
  54. From: NN
  55. Subject: FREQUENTLY USED OPTIONS
  56.  
  57. nn accepts a lot of command line options, but here only the frequently used
  58. options are described. Options can also be set permanently by including
  59. appropriate variable settings in the init file described later. All options
  60. are described in the section on Command Line Options towards the end of this
  61. manual.
  62.  
  63. The frequently used command line options are:
  64.  
  65. -a0  Catch up on unread articles and groups. See the section "Catch up" below.
  66.  
  67. -g   Prompt for the name of a news group or folder to be entered (with
  68.      completion).
  69.  
  70. -r   Used with -g to repeatedly prompt for groups to enter.
  71.  
  72. -lN  Print only the first N lines of the first page of each article before
  73.      prompting to continue. This is useful on slow terminals and modem lines
  74.      to be able to see the first few lines of longer articles.
  75.  
  76. -sWORD
  77.      Collect only articles which contain the string WORD in their subject
  78.      (case is ignored). This is normally combined with the -x and -m options
  79.      to find all articles on a specific subject.
  80.  
  81. -s/regexp
  82.      Collect only articles whose subject matches the regular expression regexp
  83.      . This is normally combined with the -x and -m options to find all
  84.      articles on a specific subject.
  85.  
  86. -nWORD or -n/regexp
  87.      Same as -s except that it matches on the sender's name instead of the
  88.      article's subject. This is normally combined with the -x and -m options
  89.      to find all articles from a specific author. It cannot be mixed with the
  90.      -s option!
  91.  
  92. -i   Normally searches with -n and -s are case independent. Using this option,
  93.      the case becomes significant.
  94.  
  95. -m   Merge all articles into one `meta group' instead of showing them one
  96.      group at a time. This is normally used together with the -x and -s
  97.      options to get all the articles on a specific subject presented on a
  98.      single menu (when you don't care about which group they belong to). When
  99.      -m is used, no articles will be marked as read.
  100.  
  101. -x[N]
  102.      Present (or scan) all (or the last N) unread as well as read articles.
  103.      When this option is used, nn will never mark unread articles as read
  104.      (i.e. .newsrc is not updated).
  105.  
  106. -X   Read/scan unsubscribed groups also. Most useful when looking for a
  107.      specific subject in all groups, e.g.
  108.            nn -mxX -sSubject all
  109.  
  110. news.group  or  file  or  +folder
  111.      If none of these arguments are given, all subscribed news groups will be
  112.      used. Otherwise, only the specified news groups and/or files will be
  113.      collected and presented. In specifying a news groups, the following `meta
  114.      notation' can be used:
  115.      If the news group ends with a `.' (or `.all'), all subgroups of the news
  116.      group will be collected, e.g.
  117.            comp.sources.
  118.      If a news group starts with a `.' (or `all.'), all the matching subgroups
  119.      will be collected, e.g.
  120.            .sources.unix
  121.      The argument `all' identifies all (subscribed) news groups.
  122.  
  123. From: NN
  124. Subject: COMMAND INPUT
  125.  
  126. In general, nn commands consist of one or two key-strokes, and nn reacts
  127. instantly to the commands you give it; you don't have to enter return after
  128. each command (except where explicitly stated).
  129.  
  130. Some commands have more serious effects than others, and therefore nn requests
  131. you to confirm the command. You confirm by hitting the the y key, and reject
  132. by hitting the n key. Some `trivial' requests may also be confirmed simply by
  133. hitting space. For example, to confirm the creation of a save file, just hit
  134. space, but if one or more directories also have to be created, you must enter
  135. y.
  136.  
  137. Many commands will require that you enter a line of text, e.g. a file name or
  138. a shell command. If you enter space as the first character on a line, the line
  139. will be filled with a default value (if one is defined). For example, the
  140. default value for a file name is the last file name you have entered, and the
  141. default shell command is your previous shell command. You can edit this
  142. default value as well as a directly typed text, using the following editing
  143. commands. The erase, kill, and interrupt keys are the keys defined by the
  144. current tty settings. On systems without job control, the suspend key will be
  145. control-Z while it is the current suspend character on system with job
  146. control.
  147.  
  148. erase
  149.      Delete the last character on the line.
  150.  
  151. delete-word   (normally ^W)
  152.      Delete the last word or component of the input.
  153.  
  154. kill
  155.      Delete all characters on the line.
  156.  
  157. interrupt  and  control-G
  158.      Cancel the command which needs the input.
  159.  
  160. suspend
  161.      Suspend nn if supported by the system. Otherwise, spawn an interactive
  162.      shell.
  163.  
  164. return
  165.      Terminate the line, and continue with the command.
  166.  
  167. Related variables: erase-key, flow-control, flush-typeahead, help-key,
  168. kill-key, word-key.
  169.  
  170. From: NN
  171. Subject: BASIC COMMANDS
  172.  
  173. There are numerous commands in nn, and most of them can be invoked by a single
  174. keystroke. The descriptions in this manual are based on the standard bindings
  175. of the commands to the keys, but it is possible to customize these using the
  176. map command described later. For each of the keystroke commands described in
  177. this manual, the corresponding command name will also be shown in curly
  178. braces, e.g. {command}.
  179.  
  180. The following commands work in both selection mode and in reading mode. The
  181. notation ^X means `control X':
  182.  
  183. ?    {help}
  184.      Help. Gives a one page overview of the commands available in the current
  185.      mode.
  186.  
  187. ^L    {redraw}
  188.      Redraw screen.
  189.  
  190. ^R    {redraw}
  191.      Redraw screen (Same as ^L).
  192.  
  193. ^P    {message}
  194.      Repeat the last message shown on the message line. The command can be
  195.      repeated to successively show previous messages (the maximum number of
  196.      saved messages is controlled via the message-history variable.)
  197.  
  198. !    {shell}
  199.      Shell escape. The user is prompted for a command which is executed by
  200.      your favorite shell (see the shell variable). Shell escapes are described
  201.      in detail later on.
  202.  
  203. Q    {quit}
  204.      Quit nn. When you use this command, you neither lose unread articles in
  205.      the current group nor the selections you might have made (unless the
  206.      articles are expired in the meantime of course).
  207.  
  208. V    {version}
  209.      Print release and version information.
  210.  
  211. :command  {command}
  212.      Execute the command by name. This form can be used to invoke any of nn's
  213.      commands, also those which cannot be bound to a key (such as :coredump),
  214.      or those which are not bound to a key by default (such as post and
  215.      unshar).
  216.  
  217. Related and basic variables: backup, backup-suffix, confirm-auto-quit, expert,
  218. mail, message-history, new-group-action, newsrc, quick-count.
  219.  
  220. From: NN
  221. Subject: SELECTION MODE
  222.  
  223. In selection mode, the screen is divided into four parts: the header line
  224. showing the name of the news group and the number of articles, the menu lines
  225. which show the collected articles - one article per line, the prompt line
  226. where you enter commands, and the message line where nn prints various
  227. messages to you.
  228.  
  229. Each menu line begins with an article id which is a unique letter (or digit if
  230. your screen can show more than 26 menu lines). To select an articles for
  231. reading, you simply enter the corresponding id, and the menu line will be
  232. high-lighted to indicate that the article is selected. When you have selected
  233. all the interesting articles on the present menu, you simply hit space.
  234.  
  235. If there are more articles collected for the current group than could be
  236. presented on one screenful of text, you will be presented with the next
  237. portion of articles to select from. When you have had the opportunity to
  238. select among all the articles in the group, hitting space will enter reading
  239. mode.
  240.  
  241. If no articles have been selected in the current group, hitting space will
  242. enter selection mode on the next news group, or exit nn if the current group
  243. was the last news group with unread articles. It is thus possible to go
  244. through ALL unread articles (without reading any of them) just by hitting
  245. space a few times.
  246.  
  247. The articles will be presented on the menu using one of the following layouts:
  248.  
  249. 0:   x Name......... Subject.............. +123
  250.  
  251. 1:   x Name......... 123 Subject..............
  252.  
  253. 2:   x 123 Subject...................................
  254.  
  255. 3:   x Subject...........................................
  256.  
  257. 4:   x Subject........................................
  258.  
  259. Here x is the letter or digit that must be entered to select the article, Name
  260. is the real name of the sender (or the mail address if the real name cannot be
  261. found), Subject is the contents of the "Subject:" line in the article, and 123
  262. is the number of lines in the article.
  263.  
  264. Layout 0 and 1 are just two ways to present the same information, while layout
  265. 2 and 3 are intended for groups whose articles have very long subject lines,
  266. e.g. comp.sources.
  267.  
  268.     Layout 4 is a hybrid between layout 1 and 3. It will normally use layout 1,
  269. but it will use layout 3 (with a little indentation) for menu lines where the
  270. subject is longer than the space available with layout 1.
  271.  
  272. Layout 1 is the default layout, and an alternative menu line layout is
  273. selected using the -L option or by setting the layout variable. Once nn is
  274. started the layout can be changed at any time using the " key {layout}.
  275.  
  276. The Name is limited to 16 characters, and to make maximum use of this space,
  277. nn will perform a series of simplifications on the name, e.g. changing first
  278. names into initials, removing domain names from mail addresses (if the real
  279. name is not found) etc. It does a good job, but some people on the net put
  280. weird things into the From: field (or actually into their password file) which
  281. result in nn producing quite cryptic, and sometimes funny "names".
  282.  
  283. One a usual 80 column terminal, the Subject is limited to about 60 characters
  284. (75 in layout 3) and is thus only an approximation to the actual subject line
  285. which may be much longer. To get as much out of this space, Re: prefixes (in
  286. various forms) are recognized and replaced by a single `>' character (see the
  287. re-layout variable).
  288.  
  289.     Since articles are sorted according to the subject, two or more adjacent
  290. articles may share the same subject (ignoring any `>'s). In this case, only
  291. the first article will show the subject of the article; the rest will only
  292. show the `>' character in the subject field (or a `-' if there is no `>' at
  293. the beginning of the line). A typical menu will thus only show each subject
  294. once, saving a lot of time in scanning the news articles.
  295.  
  296. If consolidated menus (see section below) are enabled, adjacent articles
  297. sharing the same subject will be shown with a single line on the menu
  298. corresponding to the first of the articles. The number of articles with the
  299. same subject will be shown as a braketed number in front of the subject, e.g.
  300. with layout 1:
  301.       x Name......... 123 [4] Subject..............
  302. For further information see the section on consolidated menus below.
  303.  
  304. Related variables: collapse-subject, columns, confirm-entry,
  305. confirm-entry-limit, entry-report-limit, fsort, kill, layout, limit, lines,
  306. long-menu, re-layout, repeat, slow-mode, sort, sort-mode, split,
  307. subject-match-limit, subject-match-offset, subject-match-parts.
  308.  
  309. From: NN
  310. Subject: ARTICLE ATTRIBUTES
  311.  
  312. While nn is running and between invocations, nn associates an attribute with
  313. each article on your system. These attributes are used to differentiate
  314. between read and unread articles, selected articles, articles marked for later
  315. treatment, etc. Depending on how nn is configured, these attributes can be
  316. saved between invocations of nn, or some of them may only be used while nn is
  317. running.
  318.  
  319. The attribute is shown on the menu using either a single character following
  320. the article id or by high-lighting the menu line, depending on the attribute
  321. and the capabilities of the terminal. You can also change the attributes to
  322. your own taste (see the attributes variable).
  323.  
  324. The attribute of an article can be changed explicitly using the selection mode
  325. commands described below, or it will change automatically for example when you
  326. have read or saved a selected article. If a command may change any article
  327. attributes, it will be noted in the description of the command. The following
  328. descriptions of the attributes will only mention the most important commands
  329. that may set (or preserve) the attribute.
  330.  
  331. The following attributes may be associated with an article:
  332.  
  333. read Menu attribute "." - indicates that the article has been read or saved.
  334.      When you leave the group, these articles will be marked permanently read,
  335.      and are not presented the next time you enter the group.
  336.  
  337. seen Menu attribute "," - indicates that the article is unread, but that it
  338.      has been presented on a menu. Depending on how nn is configured, these
  339.      articles will automatically be marked read when you leave the group, they
  340.      may remain seen, or they may just be unread the next time you enter the
  341.      group (see the auto-junk-seen, confirm-junk-seen, and retain-seen-status
  342.      variables).
  343.      Only the commands continue (space) and read-skip (X) will mark unread
  344.      articles on the current (or all) menu pages as seen when they are used.
  345.      Other commands that scroll through the menu pages or enter reading mode
  346.      will let unread articles remain unread.
  347.  
  348. unread
  349.      Menu attribute " " - indicates an unread article. These articles were
  350.      unread when you entered the group, and they may remain unread when you
  351.      leave the group, unless they have been marked seen by the command that
  352.      you used to leave the group or enter reading mode.
  353.  
  354. selected
  355.      Menu line high-lighted (or menu attribute "*") - indicates that you have
  356.      selected the article. If you leave the group, the selected articles will
  357.      remain selected the next time you enter the group. When you have read a
  358.      selected article, the attribute will automatically change to read.
  359.  
  360. auto-selected
  361.      These articles have the same appearance as selected articles on the menu,
  362.      and the only difference is that these articles have been selected
  363.      automatically via the auto-selection facility rather than manually by
  364.      you. Very few commands differentiate between these attributes and if they
  365.      do, it is explicitly stated in this manual. The main difference is that
  366.      these articles are only marked as unread when you leave the group
  367.      (supposing they will also be auto-selected the next the group is
  368.      entered). This simplifies the house-keeping between invocations of nn.
  369.  
  370. leave
  371.      Menu attribute "+" - indicates that the article is marked for later
  372.      treatment by the leave-article (l) command. These articles may be
  373.      selected (on demand) when you have read all selected articles in a group.
  374.      However, if you do not select them then immediately, they are stored as
  375.      the leave-next attribute described below.
  376.  
  377. leave-next
  378.      Menu attribute "=" - indicates that the article is marked for later
  379.      treatment by the leave-next (L) command. This is a permanent attribute,
  380.      which will remain on the article until you either read the article,
  381.      change the attribute, or it is expired. So assinging this attribute to an
  382.      article will effectively keep it unread until you do something. If the
  383.      variable select-leave-next is set, nn will ask whether these articles
  384.      should be selected on entry to a group (but naturally, doing so will
  385.      change the leave-next attribute to select).
  386.  
  387. cancelled
  388.      Menu attribute "#" - indicates that the article has been cancelled. This
  389.      is mainly useful when tidying a folder; it is set by the cancel (C)
  390.      command, and can be cleared by any command that change attributes, e.g.
  391.      you can select and deselect the article.
  392.  
  393. killed
  394.      Menu attribute "!" - indicates that the article has been killed (e.g. by
  395.      the K {kill-select} command). Killed articles are immediately removed
  396.      from the menu, so you should not normally see articles with this
  397.      attribute. If you do, report it as a bug!
  398.  
  399. The attributes are saved in two files: .newsrc (read articles) and .nn/select
  400. (other attributes). Plain unread articles are saved by not occurring in either
  401. of these files. Both files are described in more detail later on.
  402.  
  403. Related variables: attributes, auto-junk-seen, confirm-junk-seen,
  404. retain-seen-status, select-leave-next.
  405.  
  406. From: NN
  407. Subject: SELECTION MODE COMMANDS
  408.  
  409. The primary purpose of the selection mode is of course to select the articles
  410. to be read, but numerous other commands may also be performed in this mode:
  411. saving of articles in files, replying and following up on articles,
  412. mailing/forwarding articles, shell escapes etc.
  413.  
  414.     As described above, the selected articles are marked either by showing the
  415. corresponding menu line in standout mode (reverse video), or if the terminal
  416. does not have this capability by placing an asterisk (*) after the selection
  417. letter or digit.
  418.  
  419. Most commands which are used to select articles will work as toggle commands.
  420. If the article is not already selected, the selectedattribute on the
  421. article(s), independent on the previous attribute. Otherwise, the article(s)
  422. will be deselected and marked unread. Consequently, any article can be marked
  423. unread simply be selecting and deselecting it.
  424.  
  425. During selection, the cursor will normally be placed on the article following
  426. the last article whose attribute was changed (initially the first article).
  427. The article pointed out by the cursor is called the current article, and the
  428. following commands work relative to the current article and cursor position.
  429.  
  430. abc...z 01..9  {article N}
  431.      The article with the given identification letter or digit is selected or
  432.      deselected. The following article becomes the current article. If the
  433.      variable auto-select-subject is set, all articles with the same subject
  434.      as the given article are selected.
  435.  
  436. .    {select}
  437.      Select or deselect the current article and move the cursor to the next
  438.      article.
  439.  
  440. ,    {line+1}
  441.      Move the cursor to the next article. You can use the down arrow as well.
  442.  
  443. /    {line-1}
  444.      Move cursor to previous article. You can use the up arrow as well.
  445.  
  446. *    {select-subject}
  447.      Select or deselect all articles with same subject as current article.
  448.      This will work across several menu pages if necessary.
  449.  
  450. -x    {select-range}
  451.      Select or deselect the range of articles between the current article and
  452.      the article specified by x. For example you can select all articles from
  453.      e to k by simply typing e-k.
  454.  
  455. The following commands may change the attributes on all articles on the
  456. current menu page, or on all articles on all menu pages.
  457.  
  458. @    {select-invert}
  459.      Reverse selections. All selected articles on the current page are
  460.      deselected, and vice-versa. (Use the find command to select all
  461.      articles.)
  462.  
  463. ~    {unselect-all}
  464.      Deselect all auto-selected articles in the group (this works across all
  465.      menu pages). If the command is executed twice, the selected articles will
  466.      also be deselected.
  467.  
  468. +    {select-auto}
  469.      Perform auto-selections in the group (see the section on "auto
  470.      kill/select" below).
  471.  
  472. =    {find}
  473.      Prompts for a regular expression, and selects all articles on the menu
  474.      (all pages) which matches the regular expression. Depending on the
  475.      variable select-on-sender matching is performed against the subject
  476.      (default) or the sender of the articles. An empty answer (= return) will
  477.      reuse the previous expression. Example: The command = . return will
  478.      select all articles in the group.
  479.  
  480. J    {junk-articles}
  481.      This is a very versatile command which can be used to perform all sorts
  482.      of attribute changes, either on individual articles, all articles on the
  483.      current menu page, all articles with a specific attribute, or all
  484.      available articles. To access all the functions of this command, the J
  485.      key may have to be hit up to four times, to loop through different
  486.      one-line menus. The full functionality of the junk-articles command is
  487.      described in a separate section below.
  488.  
  489. L    {leave-next}
  490.      This is a specialized version of the generic J {junk-articles} command to
  491.      set the leave-next attribute on a subset of the articles on the menu. It
  492.      is also described further below.
  493.  
  494. The following commands move between the pages belonging to the same news group
  495. when there are more articles than will fit on a single page. These commands
  496. will not change any article attributes.
  497.  
  498. >    {page+1}
  499.      Goto next menu page.
  500.  
  501. <    {page-1}
  502.      Goto previous menu page, or to last menu page if on first menu page.
  503.  
  504. $    {page=$}
  505.      Goto last menu page.
  506.  
  507. ^    {page=1}
  508.      Goto first menu page.
  509.  
  510. The following commands are used to enter reading mode for the selected
  511. articles, and to move between news groups (in selection mode). They may change
  512. article attributes if noted below.
  513.  
  514. space    {continue}
  515.      Continue to next menu page, or if on last menu page, read the selected
  516.      articles. If no articles have been selected, continue to the next news
  517.      group. The unread articles on the current menu page will automatically be
  518.      marked seen.
  519.  
  520. return    {continue-no-mark}
  521.      Identical to the continue command, except that the unread articles on the
  522.      current menu page will remain unread. (The newline key has the same
  523.      effect).
  524.  
  525. Z    {read-return}
  526.      Enter reading mode immediately with the currently selected articles. When
  527.      all articles have been read, return to selection mode in the current
  528.      group. It will mark selected articles read as they are read, but unread
  529.      articles are not normally changed (can be controlled with the variable
  530.      marked-by-read-return.)
  531.  
  532. X    {read-skip}
  533.      Mark all unmarked articles seen on all menu pages (or the pages defined
  534.      by the marked-by-read-skip variable), and enter reading mode immediately
  535.      with the currently selected articles. As the selected articles are read,
  536.      they are marked read. When all selected articles have been read, nn will
  537.      enter selection mode in the next news group. When no articles are
  538.      selected, it goes directly to the next group. This can be used to skip
  539.      all the articles in a large news group without having to go through all
  540.      the menu pages.
  541.  
  542. If you don't want to read the current group now, but want to keep it for
  543. later, you can use the following commands which will only mark seen and read
  544. articles as read. Currently selected articles will still be selected the next
  545. time you enter the group. None of these commands will change any attributes
  546. themselves (by default).
  547.  
  548. N    {next-group}
  549.      Go forward to the next group in the presentation sequence. If the
  550.      variable marked-by-next-group is set articles on the menu can optionally
  551.      be marked seen
  552.  
  553. P    {previous}
  554.      Go back to the previous group. This command will enter selection mode on
  555.      the last active group (two P commands in sequence will bring you to the
  556.      current group). If there are still some unread articles in the group,
  557.      only those articles will be shown. Otherwise, all the articles which were
  558.      unread when nn was invoked will be shown marked with the read attribute
  559.      (which can be changed as usual).
  560.  
  561. As described in the "Article Attributes" section, the read and seen articles
  562. will normally be marked read when you leave the group, and these articles are
  563. not shown the next time you enter the group.
  564.  
  565. In all releases prior to release 6.4, it was impossible to have individual
  566. articles in a group marked unread when you left a group, and the default
  567. behaviour of release 6.4 will closely match the traditional behaviour. This
  568. means that the seen and read articles are treated alike for most practical
  569. purposes with the default variable settings.
  570.  
  571. If you don't like nn to silently mark the seen articles read, you can set the
  572. variable confirm-junk-seen to get nn to prompt you for confirmation before
  573. doing this, or you can unset the variable auto-junk-seen to simply keep the
  574. seen articles for the next time you enter the group. You then have to use the
  575. J {junk-articles} to mark articles read.
  576.  
  577. Using return {continue-no-mark} will also allow you to keep articles unread
  578. rather than marking them seen when scrolling through the menu pages and
  579. entering reading mode. If this is your preferred reading style, you can remap
  580. space to this command.
  581.  
  582. Related variables: auto-junk-seen, auto-preview-mode, auto-select-subject,
  583. case-fold-search, confirm-auto-quit, confirm-entry, confirm-junk-seen,
  584. marked-by-next-group, marked-by-read-return, marked-by-read-skip,
  585. retain-seen-status, select-on-sender.
  586.  
  587. From: NN
  588. Subject: CONSOLIDATED MENUS
  589.  
  590. Normally, nn will use one menu line for each article, so if there are many
  591. articles with identical subjects, each menu page will only contain a few
  592. different subjects. To have each subject occur only once on the menu, nn can
  593. operate with consolidated menus by setting the variable consolidated-menu.
  594.  
  595. When consolidated menus are used, nn operates with two kinds of subjects: open
  596. and closed.
  597.  
  598. An open subject is a subject which is shown in the traditional way with one
  599. menu line for each article with the given subject. In other words, when
  600. consolidated menus are not used, all subjects are open (by default).
  601.  
  602. A closed subject is a multi-article subject which is presented by a single
  603. menu line. This line will be the normal menu line for the first (oldest)
  604. article with the subject, but with the subject field annotated with a
  605. bracketed number showing the number of articles with that subject, e.g.
  606.       a Kim F. Storm 12 [4] Future plans for nn
  607.       b.Kim F. Storm 43 [3] More plans for nn
  608. In this example, there are four unread articles with subject `a' of which the
  609. first is posted by me and has 12 lines. The rest of the articles are hidden,
  610. and will only be shown on request. The `.' marker on subject `b' shows that
  611. all three articles within that subject have been read (or seen).
  612.  
  613. To select (or deselect) ALL the articles within a closed subject, simply
  614. select the article shown on the menu; this will automatically select (or
  615. deselect) the rest (see auto-select-closed). When all the unread articles
  616. within a closed subject are selected, the menu line will be high-lighted.
  617.  
  618. If you want to view the individual articles in a subject (maybe to select
  619. individual articles), you can open the subject with the commands:
  620.  
  621. (x   Open subject x on menu.
  622.  
  623. ((   Open current subject.
  624.  
  625. When you have completed viewing the opened subject, you can close it again
  626. using the commands:
  627.  
  628. )x   Close subject x on menu (x is any article with the subject).
  629.  
  630. ))   Close current subject.
  631.  
  632. In the basic layout of the menu line for a closed subject as shown above, ALL
  633. articles in the closed subject are supposed to be either:
  634.  
  635. unread
  636.      The menu line is not high-lighted.
  637.  
  638. selected
  639.      Menu line is fully high-lighted (if all UNREAD are selected).
  640.  
  641. read/seen
  642.      There is a `.' (read attribute) following the article id.
  643.  
  644. If neither of these cases apply, i.e. there is a mixture of unread, selected,
  645. and seen/read articles, the bracketed number will have one of the following
  646. formats:
  647.  
  648. [U:T]
  649.      There are U unread articles of T total (U<T).
  650.  
  651. [S/T]
  652.      There are S selected articles of T total (S<U=T).
  653.  
  654. [S/U:T]
  655.      There are S selected of U unread of T total (S<U<T).
  656.  
  657. If there are any selected articles (S>0), the information between the brackets
  658. will be high-lighted (to show that something is selected, but not all the
  659. unread articles).
  660.  
  661. Notice: Consolidated menus only work with the `subject' and `lexical' sorting
  662. methods.
  663.  
  664. Variables related to consolidated menus are: auto-select-closed,
  665. consolidated-menu, counter-delim-left, counter-delim-right, counter-padding,
  666. save-closed-mode.
  667.  
  668. From: NN
  669. Subject: THE JUNK-ARTICLES AND LEAVE-NEXT COMMANDS
  670.  
  671. The J {junk-articles} command is a very flexible command which can perform all
  672. sorts of attribute changes, either on individual articles, all articles on the
  673. current menu page, all articles with a specific attribute, or all available
  674. articles.
  675.  
  676. To access all the functions of this command, the J key may have to be hit up
  677. to four times, to loop through different one-line menus:
  678.  
  679. Mark Read
  680.      This submenu allows you to mark articles read.
  681.  
  682. Unmark
  683.      This submenu allows you to mark articles unread.
  684.  
  685. Select
  686.      This submenu allows you to select articles based on their attribute.
  687.  
  688. Kill This submenu allows you to mark articles read and remove them from the
  689.      menu based on their attribute.
  690.  
  691. The L {leave-next} command is an extension of the J command with a fifth menu:
  692.  
  693. Leave
  694.      This menu allows you to mark articles for later handling with the
  695.      leave-next attribute which will keep the article unread until you
  696.      explicitly change the attribute (e.g. by reading it) or it is expired.
  697.  
  698. For each of these submenus, nn will list the most plausible choices you may
  699. use, but all of the following answers can be used at all submenus. When you
  700. have entered a choice, nn will afterward ask whether the change should be made
  701. to all menu pages or only the current page.
  702.  
  703. J    Show next submenu.
  704.  
  705. L    Change attribute on all leave articles.
  706.  
  707. N    Change attribute on all leave-next articles.
  708.  
  709. R    Change attribute on all read articles.
  710.  
  711. S    Change attribute on all seen articles.
  712.  
  713. U    Change attribute on all unmarked (i.e. unread) articles.
  714.  
  715. A    Change attribute on all articles no matter their current attribute.
  716.  
  717. *    Change attribute on all selected articles on the current page.
  718.  
  719. +    Change attribute on all selected articles on all pages.
  720.  
  721. a-z0-9
  722.      Change attribute on one or more specific articles on the current page.
  723.      You end the list of articles by a space or by using one of the other
  724.      choices described above.
  725.  
  726. .    Change attribute on current article.
  727.  
  728. , /  Move the current article down or up the menu without changing any
  729.      attributes.
  730.  
  731. From: NN
  732. Subject: READING MODE COMMANDS
  733.  
  734. In reading mode, the selected articles are presented one page at a time. To
  735. get the next page of an article, simply hit space, and when you are on the
  736. last page of an article, hit space to get to the next selected article.
  737. Articles are normally marked read when you go to the next article, while going
  738. back to the menu, quitting nn, etc. will retain the attribute on the current
  739. article.
  740.  
  741. When you are on the last page of the last article, hit space to enter
  742. selection mode on the next group (or the current group if reading mode was
  743. entered using the Z command).
  744.  
  745. To read an article, the following text scrolling commands are available:
  746.  
  747. space    {continue}
  748.      Scroll one page forward or continue with the next article or group as
  749.      described above.
  750.  
  751. backspace / delete  {page-1}
  752.      Go one page backwards in article.
  753.  
  754. d    {page+1/2}
  755.      Scroll one half page forward.
  756.  
  757. u    {page-1/2}
  758.      Go one half page backwards.
  759.  
  760. return    {line+1}
  761.      Scroll one line forward in the article.
  762.  
  763. tab    {skip-lines}
  764.      Skip over lines starting with the same character as the last line on the
  765.      current page. This is useful to skip over included text or to the next
  766.      file in a shell archive.
  767.  
  768. ^    {page=1}
  769.      Move to the first page (excluding the header) of the article.
  770.  
  771. $    {page=$}
  772.      Move to the last page of the article.
  773.  
  774. gN    {line=@}
  775.      Move to line N in the article.
  776.  
  777. /regexp    {find}
  778.      Search forward for text matching the regular expression regexp in the
  779.      article. If a matching text is found, it will be high-lighted.
  780.  
  781. .    {find-next}
  782.      Repeat search for last regular expression.
  783.  
  784. h    {page=0}
  785.      Show the header of the article, and continue from the top of the article.
  786.  
  787. H    {full-digest}
  788.      If the current article is extracted from a digest, show the entire digest
  789.      article including its header. Another H command will return to the
  790.      current subarticle.
  791.  
  792. D    {rot13}
  793.      Turn rot13 (caesar) decryption on and off for the current article, and
  794.      redraw current page. If the article is saved while it is decrypted on the
  795.      screen, it will be saved in decrypted form as well!
  796.  
  797. c    {compress}
  798.      Turn compression on and off for the current article and redraw current
  799.      page. With compression turned on, multiple spaces and tabs are shown as a
  800.      single space. This makes it much easier to read right justified text
  801.      which separate words with several spaces. (See also the compress
  802.      variable)
  803.  
  804. The following commands are used to move among the selected articles.
  805.  
  806. n    {next-article}
  807.      Move to next selected article. This command skips the rest of the current
  808.      article, marks it read, and jumps directly to the first page of the next
  809.      selected article (or to the next group if it was the last selected
  810.      article).
  811.  
  812. l    {leave-article}
  813.      Mark the current article with the leave attribute and continue with the
  814.      next selected article. When all the selected articles in the current
  815.      group have been read, these left over articles can be automatically
  816.      selected and shown once more, or the treatment can be postponed to the
  817.      next time you enter the group.
  818.            This is particularly useful if you see an article which you may want
  819.      to respond to unless one the following articles is already saying what
  820.      you intended to say.
  821.  
  822. L    {leave-next}
  823.      Mark the current article with the leave-next attribute and continue with
  824.      the next selected article.
  825.  
  826. p    {previous}
  827.      Goto previous article.
  828.  
  829. k    {next-subject}
  830.      Kill subject. Skips rest of current article, and all following articles
  831.      with the same subject. The skipped articles are marked read. To kill a
  832.      subject permanently use the K command.
  833.  
  834. *    {select-subject}
  835.      Show next article with same subject (even if it is not selected). This
  836.      command will select all following articles with the same subject as the
  837.      current article (similar to the `*' command in selection mode). This can
  838.      be used to select only the first article on a subject in selection mode,
  839.      and then select all follow-ups in reading mode if you find the article
  840.      interesting.
  841.  
  842. a    {advance-article}
  843.      Goto the following article on the menu even if it is not selected. This
  844.      command skips the rest of the current article and jumps directly to the
  845.      first page of the next article (it will not skip to the next group if it
  846.      is the last article). The attribute on the current article will be
  847.      restored, except for the unread attribute which will be changed to seen.
  848.  
  849. b    {back-article}
  850.      Goto the article before current article on the menu even if it is not
  851.      selected. This is similar to the a command, except for the direction.
  852.  
  853. The following commands perform an immediate return from reading mode to
  854. selection mode in the current group or skip to the next group.
  855.  
  856. =    {goto-menu}
  857.      Return to selection mode in the current group (think of = as the "icon"
  858.      of the selection menu). The articles read so far will be marked read.
  859.  
  860. N    {next-group}
  861.      Skip the rest of the selected and unread articles in the current group
  862.      and go directly to the next group. Only the read (and seen) articles in
  863.      the current group are marked as read.
  864.  
  865. X    {read-skip}
  866.      Mark all articles in the current group as read and go directly to the
  867.      next group. (You will be asked to confirm this command.)
  868.  
  869. Related variables: case-fold-search, compress, data-bits, date, header-lines,
  870. mark-overlap, monitor, overlap, scroll-clear-page, stop, trusted-escape-codes,
  871. wrap-header-margin.
  872.  
  873. From: NN
  874. Subject: PREVIEWING ARTICLES IN SELECTION MODE
  875.  
  876. In selection mode, it is possible to read a specific article on the menu
  877. without entering reading mode for all the selected articles on the menu. Using
  878. the commands described below will enter reading mode for one article only, and
  879. then return to the menu mode immediately after (depending on the setting of
  880. the preview-continuation variable).
  881.  
  882.     If there are more than 5 free lines at the bottom of the menu screen, nn
  883. will use that space to show the article (a minimal preview window can be
  884. permanently allocated with the window variable). Otherwise, the screen will be
  885. cleared to show the article.
  886.  
  887.     After previewing an article, it will be marked read (if the
  888. preview-mark-read variable is set), and the following article will become the
  889. current article.
  890.  
  891. %x    {preview}
  892.      Preview article x.
  893.  
  894. %%    {preview}
  895.      Preview the current article.
  896.  
  897. When the article is being shown, the following reading mode commands are very
  898. useful:
  899.  
  900. =    {goto-menu}
  901.      Skip the rest of the current article, and return to menu mode.
  902.  
  903. n    {next-article}
  904.      Skip the rest of the current article, and preview the next article.
  905.  
  906. l    {leave-article}
  907.      Mark the article as selected (!) on the menu for handling later on. Then
  908.      skip the rest of the current article, and preview the next article.
  909.  
  910. %y    {preview}
  911.      Preview article y .
  912.  
  913. If the variable auto-preview-mode is set, just hitting the article id in menu
  914. mode will enter preview mode on the specified article.
  915.  
  916. Related variables: auto-preview-mode, min-window, preview-continuation,
  917. preview-mark-read, window.
  918.  
  919. From: NN
  920. Subject: SAVING ARTICLES
  921.  
  922. The following commands are used to save articles in files, unpack archives,
  923. decode binaries, etc. It is possible to use the commands in both reading mode
  924. to save the current article and in selection mode to save one or more articles
  925. on the menu.
  926.  
  927. The saved articles will be appended to the specified file(s) followed by an
  928. empty line each. Both files and directories will be created as needed. When an
  929. article has been saved in a file, a message reporting the number of lines
  930. saved will be shown if the save-report variable is set (default on).
  931.  
  932. S    {save-full}
  933.      Save articles including the full article header.
  934.  
  935. O    {save-short}
  936.      Save articles with a short header containing only the name of the sender,
  937.      the subject, and the posting date of the article.
  938.  
  939. W    {save-body}
  940.      Write article without a header.
  941.  
  942. :print    {print}
  943.      Print article. Instead of a file name, this command will prompt for the
  944.      print command to which the current article will be piped. The default
  945.      print command is specified at compile time, but it can be changed by
  946.      setting the printer variable. The output will be identical to that of the
  947.      O command.
  948.  
  949. :patch    {patch}
  950.      Send articles through patch(1) (or the program defined in the
  951.      patch-command variable). Instead of a file name, you will be prompted for
  952.      the name of a directory in which you want the patch command to be
  953.      executed. nn will then pipe the body of the article through the patch
  954.      command.
  955.            The output from the patch process will be shown on the screen and
  956.      also appended to a file named Patch.Result in the patch directory.
  957.  
  958. :unshar    {unshar}
  959.      Unshar articles. You will be prompted for the name of a directory in
  960.      which you want nn to unshar the articles. nn will then pipe the proper
  961.      parts of the article body into a Bourne Shell whose working directory
  962.      will be set to the specified directory.
  963.            During the unpacking, the normal output from the unshar process will
  964.      appear on the screen, and the menu or article text will be redrawn when
  965.      the process is finished.
  966.            The output is also appended to a file named Unshar.Result in the
  967.      unshar directory.
  968.            The file specified in unshar-header-file (default "Unshar.Headers")
  969.      in the unshar directory will contain the header and initial text (before
  970.      the shar data) from the article. You can use the `G' {goto-group} command
  971.      to look at the Unshar.Headers file.
  972.  
  973. :decode    {decode}
  974.      Decode uuencoded articles into binary files. You will be prompted for the
  975.      name of a directory in which you want nn to place the decoded binary
  976.      files (the file names are taken from the uuencoded data).
  977.            nn will combine several articles into single files as needed, and
  978.      you can even decode unrelated packages (into the same directory) with one
  979.      decode command.
  980.            To be able to decode a binary file which spans several articles, nn
  981.      may have to ignore lines which fail the normal sanity checks on uuencoded
  982.      data instead of treating them as transmission errors. Consequently, it is
  983.      strongly recommended to check the resulting decoded file using the
  984.      checksum which is normally contained in the original article. (Actually,
  985.      you are also supposed to do this after decoding with a stand-alone
  986.      uudecode program).
  987.            The header and initial information in the decoded articles are saved
  988.      in the file specified in decode-header-file (default "Decode.Headers") in
  989.      the same directory as the decoded files.
  990.            If decode-skip-prefix is non-null, :decode will attempt to ignore up
  991.      to that many characters on each line to find the encoded data. This is
  992.      particularly useful in some binaries groups where files are both
  993.      uuencoded and packed with shar; nn will ignore the prefix added to each
  994.      line by shar, and thus be able to unshar, concatenate, and decode
  995.      multi-part postings automatically.
  996.  
  997. In reading mode, the following keys can also be used to invoke the save
  998. commands:
  999.  
  1000. s    Same as S.
  1001.  
  1002. o    Same as O.
  1003.  
  1004. w    Same as W.
  1005.  
  1006. P    Same as :print.
  1007.  
  1008. The save commands will prompt for a file name which is expanded according to
  1009. the rules described in the section on file name expansion below. For each
  1010. group, it is possible to specify a default save file in the init file, either
  1011. in connection with the group presentation sequence or in a separate save-files
  1012. section (see below). If a default save file is specified for the group, nn
  1013. will show this on the prompt line when it prompts for the file name. You can
  1014. edit this name as usual, but if you kill the entire name immediately, nn will
  1015. replace the default name with the last file name you entered. If you kill this
  1016. as well, nn will leave you with a blank line.
  1017.  
  1018. If the quick-save variable is set, nn will only prompt for a save file name
  1019. when the current article is inside a folder; otherwise, the default save file
  1020. defined in the init file will be used unconditionally.
  1021.  
  1022. If the file (and directories in the path) does not exist, nn will ask whether
  1023. the file (and the directories) should be created.
  1024.  
  1025. If the file name contains an asterisk, e.g.
  1026.       part*.shar
  1027. nn will save each of the articles in uniquely named files constructed by
  1028. replacing the asterisk by numbers from the sequence 1, 2, 3, etc. The format
  1029. of the string that replaces the * can be changed with the save-counter
  1030. variable, and the first number to use can be changed via save-counter-offset.
  1031.  
  1032.     In selection mode, nn will prompt you for the identifier of one or more
  1033. articles you want to save. When you don't want to save more articles, just hit
  1034. space. The saved articles will be marked read.
  1035.  
  1036. If you enter an asterisk `*' when you are prompted for an article to save, nn
  1037. will automatically save all the selected articles on the current menu page and
  1038. mark them read.
  1039.  
  1040. Likewise, if you enter a plus `+', nn will save all the selected articles on
  1041. all menu pages and mark them read.
  1042.  
  1043. This is very useful to unpack an entire package using the :unshar and :decode
  1044. commands. It can also be used in combination with the save selected articles
  1045. feature to save a selection of articles in separate, successively numbered
  1046. files. But do not confuse these two concepts! The S* and S+ commands can be
  1047. used to save the selected articles in a single file as well as in separate
  1048. files, and the save in separate files feature can be used also when saving
  1049. individual articles, either in the selection mode, or in the article reading
  1050. mode.
  1051.  
  1052. When articles are saved in a file with a full or partial header, any header
  1053. lines in the body of the article will be escaped by a tilde (e.g. ~From: ...)
  1054. to enable nn to split the folder into separate articles. The escape string can
  1055. be redefined via the embedded-header-escape variable.
  1056.  
  1057. Articles can optionally be saved in MAIL or MMDF compatible format by setting
  1058. the mail-format and mmdf-format variables. These variables only specify the
  1059. format used when creating a new folder, while appending to an existing folder
  1060. will be done in the format of the folder (unless folder-format-check is
  1061. false).
  1062.  
  1063. Related variables: confirm-append, confirm-create, decode-header-file,
  1064. decode-skip-prefix, default-save-file, folder-save-file, edit-patch-command,
  1065. edit-print-command, edit-unshar-command, folder, folder-format-check,
  1066. mail-format, mmdf-format, patch-command, printer, quick-save, save-counter,
  1067. save-counter-offset, save-report, suggest-default-save, unshar-command,
  1068. unshar-header-file.
  1069.  
  1070. From: NN
  1071. Subject: FOLDER MAINTENANCE
  1072.  
  1073. When more than one article is saved in a folder, nn is able to split the
  1074. folder, and each article in the folder can be treated like a separate article.
  1075.  
  1076. This means that you can save, decode, reply, follow-up, etc. just as with the
  1077. original article.
  1078.  
  1079. You can also cancel (delete) individual articles in a folder using the normal
  1080. C {cancel} command described later. When you quit from the folder, you will
  1081. then be given the option to remove the cancelled articles from the folder.
  1082.  
  1083. The original folder is saved in a file named `BackupFolder~' in the .nn
  1084. directory (see the backup-folder-path variable) by renaming or copying the old
  1085. folder as appropriate. When the folder has been compressed, the backup folder
  1086. will be removed unless the variable keep-backup-folder is set.
  1087.  
  1088. If all articles in a folder are cancelled, the folder will be removed or
  1089. truncated to zero length (whatever is allowed by directory and file
  1090. permissions). In this case no backup folder is retained even when
  1091. keep-backup-folder is set!
  1092.  
  1093. If the variable trace-folder-packing is set, nn will show which articles are
  1094. kept and which are removed as the folder is rewritten.
  1095.  
  1096. Folders are rewritten in the format of the original folder, i.e. the
  1097. mail-format and mmdf-format variables are ignored.
  1098.  
  1099. Related variables: backup-folder-path, keep-backup-folder,
  1100. trace-folder-packing.
  1101.  
  1102. From: NN
  1103. Subject: FILE NAME EXPANSION
  1104.  
  1105. When the save commands prompts for a file name, the following file name
  1106. expansions are performed on the file name you enter:
  1107.  
  1108. +folder
  1109.      The + is replaced by the contents of the folder variable (default value
  1110.      "~/News/") resulting in the name of a file in the folder directory.
  1111.      Examples:
  1112.            +emacs, +nn, +sources/shar/nn
  1113.  
  1114. +    A single plus is replaced by the expansion of the file name contained in
  1115.      the default-save-file variable (or by folder-save-file when saving from a
  1116.      folder).
  1117.  
  1118. ~/file
  1119.      The ~ is replaced by the contents of the environment variable HOME, i.e.
  1120.      the path name of your home directory. Examples:
  1121.            ~/News/emacs, ~/News/nn, ~/src/shar/nn
  1122.  
  1123. ~user/file
  1124.      The ~user part is replaced by the user's home directory as defined in the
  1125.      /etc/passwd file.
  1126.  
  1127. |command-line
  1128.      Instead of writing to a file, the articles are piped to the given shell
  1129.      (/bin/sh) command-line. Each save or write command will create a separate
  1130.      pipe, but all articles saved or written in one command (in selection
  1131.      mode) are given as input to the same shell command. Example:
  1132.            | pr | lp
  1133.      This will print the articles on the printer after they have been piped
  1134.      through pr.
  1135.            It is possible to create separate pipes for each saved article by
  1136.      using a double pipe symbol in the beginning of the command, e.g.
  1137.            || cd ~/src/nn ; patch
  1138.  
  1139. The following symbols are expanded in a file name or command:
  1140.  
  1141. $F   will be expanded to the name of the current group with the periods
  1142.      replaced by slashes, e.g. rec/music/synth.
  1143.  
  1144. $G   will be expanded to the name of the current group.
  1145.  
  1146. $L   will be expanded to the last component of the name of the current group.
  1147.      You may use this to create default save file names like +src/$L in the
  1148.      comp.sources groups.
  1149.  
  1150. $N   will be expanded to the (local) article number, e.g. 1099. In selection
  1151.      mode it is only allowed at the end of the file name!
  1152.  
  1153. $(VAR)
  1154.      is replaced by the string value of the environment variable VAR.
  1155.  
  1156. Using these symbols, a simple naming scheme for `default folder name' is +$G
  1157. which will use the group name as folder name. Another possibility is +$F/$N.
  1158.  
  1159. As mentioned above, you can also instruct nn to save a series of files in
  1160. separate, unique files. All that is required is that the file name contains an
  1161. asterisk, e.g.
  1162.       +src/hype/part*.shar
  1163. This will cause each of the articles to be saved in separate, unique files
  1164. named part1.shar, part2.shar, and so on, always choosing a part number that
  1165. results in a unique file name (i.e. if part1.shar did already exist, the first
  1166. article would be saved in part2.shar, the next in part3.shar, and so on).
  1167.  
  1168. Related variables: default-save-file, folder, folder-save-file, save-counter,
  1169. save-counter-offset.
  1170.  
  1171. From: NN
  1172. Subject: FILE AND GROUP NAME COMPLETION
  1173.  
  1174. When entering a file name or a news group name, a simple completion feature is
  1175. available using the space, tab, and ? keys.
  1176.  
  1177. Hitting space anywhere during input will complete the current component of the
  1178. file name or group name with the first available possibility.
  1179.  
  1180. If this possibility is not the one you want, keep on hitting space until it
  1181. appears.
  1182.  
  1183. When the right completion has appeared, you can just continue typing the file
  1184. or group name, or you can hit tab to fix the current component, and get the
  1185. first possibility for the next component, and then use space to go through the
  1186. other possible completions.
  1187.  
  1188. The ? key will produce a list of the possible completions of the current
  1189. component. If the list is too long for the available space on screen, the key
  1190. can be repeated to get the next part of the list.
  1191.  
  1192. The current completion can be deleted with the erase key.
  1193.  
  1194. The default value for a file name is the last file name you have entered, so
  1195. if you enter a space as the first character after the prompt, the last file
  1196. name will be repeated (and you can edit it if you like). In some cases, a
  1197. string will already be written for you in the prompt line, and to get the
  1198. default value in these cases, use the kill key. This also means that if you
  1199. neither want the initial value, nor the default value, you will have to hit
  1200. the kill twice to get a clean prompt line.
  1201.  
  1202. Related variables: comp1-key, comp2-key, help-key, suggest-default-save.
  1203.  
  1204. From: NN
  1205. Subject: POSTING AND RESPONDING TO ARTICLES
  1206.  
  1207. In both selection mode and reading mode you can post new articles, post
  1208. follow-ups to articles, send replies to the author of an article, and you can
  1209. send mail to another user with the option of including an article in the
  1210. letter. In reading mode, a response is made to the current article, while in
  1211. selection mode you will be prompted for an article to respond to.
  1212.  
  1213. The following commands are available (the lower-case equivalents are also
  1214. available in reading mode):
  1215.  
  1216. R    {reply}
  1217.      Reply through mail to the author of the article. This is the preferred
  1218.      way to respond to an article unless you think your reply is of general
  1219.      interest.
  1220.  
  1221. F    {follow}
  1222.      Follow-up with an article in the same newsgroup (unless an alternative
  1223.      group is specified in the article header). The distribution of the
  1224.      follow-up is normally the same as the original article, but this can be
  1225.      modified via the follow-distribution variable.
  1226.  
  1227. M    {mail}
  1228.      Mail a letter or forward an article to a single recipient. In selection
  1229.      mode, you will be prompted for an article to include in your letter, and
  1230.      in reading mode you will be asked if the current article should be
  1231.      included in the letter. You will then be prompted for the recipient of
  1232.      the letter (default recipient is yourself) and the subject of the letter
  1233.      (if an article is included, you may hit space to get the default subject
  1234.      which is the subject of the included article).
  1235.            The header of the article is only included in the posted letter if
  1236.      it is forwarded (i.e. not edited), or if the variable include-full-header
  1237.      is set.
  1238.  
  1239. :post    {post}
  1240.      Post a new article to any newsgroup. This command will prompt you for a
  1241.      comma-separated list of newsgroups to post to (you cannot enter a space
  1242.      because space is used for group name completion as described below).
  1243.            If you enter ? {help-key} as the first key, nn will show you a list
  1244.      of all available news groups and their purpose. While paging through this
  1245.      list, you can enter q to quit looking at the list. You can also enter /
  1246.      followed by a regular expression (typically a single word) which will
  1247.      cause nn to show a (much shorter) list containing only the lines matching
  1248.      the regular expression.
  1249.            Normally, you will be prompted for the distribution of the article
  1250.      with the default take from default-distribution, but this can be changed
  1251.      via the post-distribution variable.
  1252.  
  1253. Generally, nn will construct a file with a suitable header, optionally include
  1254. a copy of the article in the file with each non-empty line prefixed by a `>'
  1255. character (except in mail mode), and invoke an editor of your choice (using
  1256. the EDITOR environment variable) on this file, positioning you on the first
  1257. line of the body of the article (if it knows the editor).
  1258.  
  1259.     When you have completed editing the message, it will compare it to the
  1260. unedited file, and if they are identical (i.e. you did not make any changes to
  1261. the file), or it is empty, the operation is cancelled. Otherwise you will be
  1262. prompted for an action to take on the constructed article (enter first letter
  1263. followed by return, or just return to take the default action):
  1264.       a)bort c)c e)dit h)old i)spell m)ail r)eedit s)end v)iew w)rite
  1265.       Action: (post article)
  1266. You now have the opportunity to perform one of the following actions:
  1267.  
  1268.     a    throw the response away (will ask for confirmation),
  1269.     c    mail a copy of a follow-up to the poster of the article,
  1270.     e    edit the file again,
  1271.     h    hold response for later completion,
  1272.     i    run an (interactive) spell-checker on the text,
  1273.     m    mail a (blind) copy to a specified recipient,
  1274.     n    same as abort (no don't post)
  1275.     p    post article (same as send)
  1276.     r    throw away the edited text and edit the original text,
  1277.     s    send the article or letter,
  1278.     v    view the article (through the pager), or
  1279.     w    append it to a file (before you send it).
  1280.     y    confirm default answer (e.g. yes post it)
  1281.  
  1282. To complete an unfinished response saved by the h)old command, simply enter
  1283. any response action, e.g. R {reply}. This will notice the unfinished response
  1284. and ask you whether you want to complete it now. Only one unfinished response
  1285. can exist at a time. Notice that the $A environment variable may no longer be
  1286. valid as a path to the original article when the response is completed.
  1287.  
  1288. Related variables: append-signature-mail, append-signature-post,
  1289. default-distribution, follow-distribution, post-distribution,
  1290. edit-response-check, editor, include-art-id, include-full-header,
  1291. included-mark, mail-header, mail-record, mail-script, mailer,
  1292. mailer-pipe-input, news-header, news-record, news-script,
  1293. orig-to-include-mask, pager, query-signature, record, response-check-pause,
  1294. response-default-answer, save-counter, save-counter-offset, save-report,
  1295. spell-checker.
  1296.  
  1297. From: NN
  1298. Subject: JUMPING TO OTHER GROUPS
  1299.  
  1300. By default nn will present the news groups in a predefined sequence (see the
  1301. section on Presentation Sequence later on). To override this sequence and have
  1302. a look at any other group the G {goto-group} command available in both
  1303. selection and reading mode enables you to move freely between all the
  1304. newsgroups.
  1305.  
  1306. Furthermore, the G command enables you to open folders and other files, to
  1307. read old articles you have read before, and to grep for a specific subject in
  1308. a group.
  1309.  
  1310.     It is important to notice that normally the goto command is recursive, i.e.
  1311. a new menu level is created when the specified group or folder is presented,
  1312. and when it has been read, nn will continue the activity in the group that was
  1313. presented before the goto command was executed. However, if there are unread
  1314. articles in the target group you can avoid entering a new menu level by using
  1315. the j reply described below. The current menu level (i.e. number of nested
  1316. goto commands) will be shown in the prompt line as "<N>" (in reverse video).
  1317.  
  1318.     The goto command is very powerful, but unfortunately also a little bit
  1319. tricky at first sight, because the facilities it provides depend on the
  1320. context in which the command is used.
  1321.  
  1322.     When executed, the goto command will prompt you for the name of the
  1323. newsgroup, folder, or file to open. It will use the first letter you enter to
  1324. distinguish these three possibilities:
  1325.  
  1326. return
  1327.      An empty answer is equivalent to the current newsgroup.
  1328.  
  1329. letter
  1330.      The answer is taken to be the name of a newsgroup. If a news group with
  1331.      the given name does not exist, nn will treat the answer as a regular
  1332.      expression and locate the first group in the presentation sequence (or
  1333.      among all groups) whose name matches the expression.
  1334.  
  1335. +   
  1336.      The answer is taken to be the name of a folder. If only `+' is entered,
  1337.      it is equivalent to the default save file for the current group.
  1338.  
  1339. / or ./ or ~/
  1340.      The answer is taken to be the name of a file, either relative to the
  1341.      current directory, relative to your home directory, or an absolute path
  1342.      name for the file.
  1343.  
  1344. %    In reading mode, this reply corresponds to reading the current article
  1345.      (and splitting it as a digest). In selection mode, it will prompt for an
  1346.      article on the menu to read.
  1347.  
  1348. @    This choice is equivalent to the archive file for the current group.
  1349.      nnmaster maintains archive files with all old and current articles for
  1350.      the groups which have the auto-archive option set in the GROUPS file (see
  1351.      nnmaster(8)).
  1352.  
  1353. = and number
  1354.      These answers are equivalent to the same answers described below applied
  1355.      to the current group (e.g. G return = and G = are equivalent).
  1356.  
  1357. Specifying a folder, a file, or an article (with %) will cause nn to treat the
  1358. file like a digest and split it into separate articles (not physically!) which
  1359. are then presented on a menu in the usual way, allowing you to read or save
  1360. individual subarticles from the folder.
  1361.  
  1362. When you enter a group name, nn will ask you how many articles in the group
  1363. you want to see on the menu. You can give the following answers:
  1364.  
  1365. a number N
  1366.      In this case you will get the newest N articles in the group, or if you
  1367.      specified the current group (by hitting return to the group name prompt
  1368.      or entering the number directly), you will get that many extra articles
  1369.      included on the same menu (without creating a new menu level).
  1370.  
  1371. j    This answer can only be given if there are unread articles in the group.
  1372.      It will instruct nn to jump directly to the specified group in the
  1373.      presentation sequence without creating a new menu level.
  1374.  
  1375. u    This instructs nn to present the unread articles in the group (if there
  1376.      are any). If you have already read the group (in the current invocation
  1377.      of nn), the u answer will instruct nn to present the articles that were
  1378.      unread when you entered nn.
  1379.  
  1380. a    This instruct nn to present all articles in the group.
  1381.  
  1382. sword or =word
  1383.      This instructs nn to search all articles in the groups, but only present
  1384.      the articles containing the word word in the subject. Notice that case is
  1385.      ignored when searching for the word in the subject lines.
  1386.  
  1387. nword
  1388.      Same as the s form except that it searched for articles where the sender
  1389.      name matches word.
  1390.  
  1391. eword
  1392.      Same as the s form except that it Psearched for articles where either the
  1393.      subject or the sender name matches word.
  1394.  
  1395. word = /regexp
  1396.      When the first character of the word specified with the s, n, and e forms
  1397.      is a slash `/', the rest of the input is interpreted as a regular
  1398.      expression to search for. Notice that regular expression matching is case
  1399.      insensitive when case-fold-search is set (default).
  1400.  
  1401. return
  1402.      The meaning of an empty answer depends on the context: if there are
  1403.      unread articles in the specified group the unread articles will be
  1404.      presented, otherwise all articles in the group will be included in the
  1405.      menu.
  1406.  
  1407. If you specified the current group, and the menu already contains all the
  1408. available articles, nn will directly prompt for a word to search for in the
  1409. subject of all articles (the prompt will be an equal sign.)
  1410.  
  1411. When the goto command creates a new menu level, nn will not perform auto kill
  1412. or selection in the group. You can use the + command in menu mode to perform
  1413. the auto-selections.
  1414.  
  1415. There are three commands in the goto family:
  1416.  
  1417. G    {goto-group}
  1418.      This is the general goto command described above.
  1419.  
  1420. B    {back-group}
  1421.      Backup one or more groups. You can hit this key one or more times to go
  1422.      back in the groups already presented (including those without new
  1423.      articles); when you have found the group you are looking for, hit space
  1424.      to enter it.
  1425.  
  1426. A    {advance-group}
  1427.      Advance one or more groups. This command is similar to the B command, but
  1428.      operates in the opposite direction.
  1429.  
  1430. N    {next-group}
  1431.      When used within an A or B command, it skips forward to the next group in
  1432.      the sequence with unread articles or which has previously been visited.
  1433.  
  1434. P    {previous}
  1435.      When used within an A or B command, it skips backwards to the preceding
  1436.      group in the sequence with unread articles or which has previously been
  1437.      visited.
  1438.  
  1439. Once you have entered an A or Bcommand, you can freely mix the A, B, P, and N
  1440. commands to find the group you want, and you can also use the G command to be
  1441. prompted for a group name.
  1442.  
  1443. To show the use of the goto command some typical examples on its use are given
  1444. below:
  1445. "Present the unread articles in the dk.general group"
  1446.       G dk.general return u
  1447. "Jump directly to the gnu.emacs group and continue from there"
  1448.       G gnu.emacs return j
  1449. "Include the last 10 READ articles in the current group menu"
  1450.       G 10 return
  1451. "Find all articles in rec.music.misc on the subject Floyd"
  1452.       G rec.music.misc return
  1453.       = floyd return
  1454. "Open the folder +nn"
  1455.       G +nn return
  1456. "Split current article as a digest (in reading mode)"
  1457.       G %
  1458.  
  1459. Related variables: case-fold-search, default-save-file, folder-save-file
  1460.  
  1461. From: NN
  1462. Subject: AUTOMATIC KILL AND SELECTION
  1463.  
  1464. When there is a subject or an author which you are either very interested in,
  1465. or find completely uninteresting, you can easily instruct nn to auto-select or
  1466. auto-kill articles with specific subjects or from specific authors. These
  1467. instructions are stored in a kill file, and the most common types of entries
  1468. can be created using the following command:
  1469.  
  1470. K    {kill-select}
  1471.      Create an entry in your personal kill file. The contents of the entry is
  1472.      specified during a short dialog that is described in details below. This
  1473.      command is available in both selection and reading mode.
  1474.  
  1475. Entries in the kill file may apply to a single newsgroup or to all newsgroups.
  1476. Furthermore, entries may be permanent or they may be expired a given number of
  1477. days after their entry.
  1478.  
  1479. To increase performance, nn uses a compiled version of the kill file which is
  1480. read in when nn is invoked. The compiled kill file will automatically be
  1481. updated if the normal kill file has been modified.
  1482.  
  1483. The following dialog is used to build the kill file entry:
  1484.  
  1485. AUTO (k)ill or (s)elect (CR => Kill subject 30 days)
  1486.      If you simply want nn to kill all articles with the subject of the
  1487.      current article (in reading mode) or a specific article (which nn will
  1488.      prompt for in selection mode), just hit return. This will cause nn to
  1489.      create an entry in the kill file to kill the current (or specified)
  1490.      subject in the current group for a period of 30 days (which should be
  1491.      enough for the discussion to die out).
  1492.      You can control the default kill period, or change it into a "select"
  1493.      period via the default-kill-select variable.
  1494.      If this "default behaviour" is not what you want, just answer either k or
  1495.      s to kill or select articles, respectively, which will bring you on to
  1496.      the rest of the questions.
  1497.  
  1498. AUTO SELECT on (s)ubject or (n)ame  (s)
  1499.      (The SELECT will be substituted with KILL depending on the previous
  1500.      answer). Here you specify whether you want the kill or select to depend
  1501.      on the subject of the article (s or space), or on the name of the author
  1502.      (n).
  1503.  
  1504. SELECT NAME:
  1505.      (Again SELECT may be substituted with KILL and SUBJECT may replace NAME).
  1506.      You must now enter a name (or subject) to select (or kill). In reading
  1507.      mode, you may just hit return (or %) to use the name (or subject) of the
  1508.      current article. In selection mode, you can use the name (or subject)
  1509.      from an article on the menu by answering with % followed by the
  1510.      corresponding article identifier.
  1511.      When the name or subject is taken from an article (the current or one
  1512.      from the menu), nn will only select or kill articles where the name or
  1513.      subject matches the original name or subject exactly including case.
  1514.      If the first character typed at the prompt is a slash `/', the rest of
  1515.      the line is used as a regular expression which is used to match the name
  1516.      or subject (case insensitive).
  1517.      Otherwise, nn will select or kill articles which contain the specified
  1518.      string anywhere in the name or subject (ignoring case).
  1519.  
  1520. SELECT in (g)roup `dk.general' or in (a)ll groups  (g)
  1521.      You must now specify whether the selection or kill should apply to the
  1522.      current group only (g or space) or to all groups (a).
  1523.  
  1524. Lifetime of entry in days (p)ermanent  (30)
  1525.      You can now specify the lifetime of the entry, either by entering a
  1526.      number specifying the number of days the entry should be active, or p to
  1527.      specify the entry as a permanent entry. An empty reply is equivalent to
  1528.      30 days.
  1529.  
  1530. CONFIRM SELECT ....
  1531.      Finally, you will be asked to confirm the entry, and you should
  1532.      especially note the presence or absence of the word exact which specify
  1533.      whether an exact match applies for the entry.
  1534.  
  1535. Related variables: default-kill-select, kill.
  1536.  
  1537. From: NN
  1538. Subject: THE FORMAT OF THE KILL FILE
  1539.  
  1540. The kill file consists of one line for each entry. Empty lines and lines
  1541. starting with a # character are ignored. nn automatically places a # character
  1542. in the first position of expired entries when it compiles the kill file. You
  1543. can then edit the kill file manually from time to time to clean out these
  1544. entries.
  1545.  
  1546. Each line has the following format
  1547.       [expire time :] [group name] : flags : string [: string]...
  1548.  
  1549. Permanent entries have no expire time (in which case the colon is omitted as
  1550. well!). Otherwise, the expire time defines the time (as a time_t value) when
  1551. the entry should be expired.
  1552.  
  1553. The group name field can have three forms:
  1554.  
  1555. news.group.name
  1556.      If it is the name of a single news group (e.g. comp.unix), the entry
  1557.      applies to that group only.
  1558.  
  1559. /regular expression
  1560.      If it starts with a slash `/' followed by a regular expression (e.g.
  1561.      /^news\..*), the entry applies to all groups whose name are matched by
  1562.      the regular expression.
  1563.  
  1564. empty
  1565.      An empty group field will apply the entry to all groups.
  1566.  
  1567. The flags field consists of a list of characters which identifies the type of
  1568. entry, and the interpretation of each string field. When used, the flag
  1569. characters must be used in the order in which they are described below:
  1570.  
  1571. ~    (optional)
  1572.      When this flag is present on any of the entries for a specific group, it
  1573.      causes all entires which are not auto-selected to be killed. This is a
  1574.      simple way to say: I'm interested in this and that, but nothing else.
  1575.  
  1576. +    or ! (optional)
  1577.      Specify an auto-select + or an auto-kill ! entry, respectively. If
  1578.      neither are used, the article is neither selected nor killed which is
  1579.      useful in combination with the `~' flag.
  1580.  
  1581. > (optional)
  1582.      When used with a subject (flag s), the kill entry only matches follow-ups
  1583.      to that subject (i.e. where the Subject: line starts with Re:). For
  1584.      example, to kill all "Re:"'s in rec.humor use the following kill entry:
  1585.      rec.humor:!>s/:.
  1586.  
  1587. < (optional)
  1588.      When used with a subject (flag s), the kill entry only matches base
  1589.      articles with that subject (i.e. where the Subject: line does not start
  1590.      with Re:). For example, to kill all articles asking for help (but not
  1591.      follow-ups) in the tex group, add this to your kill file:
  1592.            comp.text.tex:!s</:^HELP
  1593.  
  1594. n or s or a (mandatory)
  1595.      Specify whether the corresponding string applies to the name n or to the
  1596.      subject s of an article. If flag a is used, the corresponding string is
  1597.      ignored (but must be present), and the entry applies to articles with a
  1598.      non-empty References: line.
  1599.  
  1600. / (optional)
  1601.      Specifies that the corresponding string is a regular expression which the
  1602.      sender or subject is matched against. If not specified, a simple string
  1603.      match is performed using the given string.
  1604.  
  1605. = (optional)
  1606.      Specifies that the match against the name or subject is case sensitive.
  1607.      Furthermore, when regular expression matching is not used, the name or
  1608.      subject must be of the same length of the string to match. Otherwise, the
  1609.      match will be case insensitive, and a string may occur anywhere in the
  1610.      name or subject to match.
  1611.  
  1612. | or & (mandatory if multiple strings)
  1613.      If more than one string is specified, the set of flags corresponding to
  1614.      each string must be separated by either an or operator `|' or an and
  1615.      operator `&'. The and operator has a higher precedence than the or
  1616.      operator, e.g. a complex match expression a|b&c|d will succeed if either
  1617.      of a, b&c, or d matches.
  1618.  
  1619. The string field in the entry is the name, subject or regular expression that
  1620. will be matched against the name or subject of each article in the group (or
  1621. all groups). Colons and backslashes must be escaped with a backslash in the
  1622. string.
  1623.  
  1624. Example 1: Auto-select articles from `Tom Collins' (exact) on subject `News'
  1625. in all groups:
  1626.       :+n=&s:Tom Collins:News
  1627. Example 2: Kill all articles which are neither from `Tom' or `Eve' in
  1628. some.group. Select only articles from Eve:
  1629.       some.group:~n:Tom
  1630.       some.group:+n:Eve
  1631. The second example can also be written as a single entry with an or operator
  1632. (in this case, the select/kill attribute only applies to the succeeding
  1633. strings):
  1634.       some.group:~n|+n:Tom:Eve
  1635.  
  1636. To remove expired entries, to "undo" a K command, and to make the more
  1637. advanced entries with more than one string, you will have to edit the kill
  1638. file manually. To recompile the file, you can use the :compile command. When
  1639. you invoke nn, it will also recompile the kill file if the compiled version is
  1640. out of dat.
  1641.  
  1642. From: NN
  1643. Subject: SHELL ESCAPES
  1644.  
  1645. The ! commands available in selection and reading mode are identical in
  1646. operation (with one exception). When you enter the shell escape command, you
  1647. will be prompted for a shell command. This command will be fed to the shell
  1648. specified in the shell variable (default loaded from the SHELL environment
  1649. variable or /bin/sh) after the following substitutions have been performed on
  1650. the command:
  1651.  
  1652. File name expansion
  1653.      The earlier described file name expansions will be performed on all
  1654.      arguments.
  1655.  
  1656. $G   will be substituted with the name of the current news group.
  1657.  
  1658. $L   will be substituted with the last component of the name of the current
  1659.      news group.
  1660.  
  1661. $F   will be substituted with the name of the current news group with the
  1662.      periods replaced by slashes.
  1663.  
  1664. $N   will be substituted with the (local) article number (only defined in
  1665.      reading mode).
  1666.  
  1667. $A   is replaced by the full path name of the file containing the current
  1668.      article (only defined in reading mode).
  1669.  
  1670. %    Same as $A.
  1671.  
  1672. $(VAR)
  1673.      is replaced by the string value of the environment variable VAR.
  1674.  
  1675. When the shell command is completed, you will be asked to hit any key to
  1676. continue. If you hit the ! key again, you will be prompted for a new shell
  1677. command. Any other key will redraw the screen and return you to the mode you
  1678. came from.
  1679.  
  1680. Related variables: shell, shell-restrictions.
  1681.  
  1682. From: NN
  1683. Subject: MISCELLANEOUS COMMANDS
  1684.  
  1685. Below are more useful commands which are available in both selection and
  1686. reading modes.
  1687.  
  1688. U    {unsub}
  1689.      Unsubscribe to the current group. You will not see this group any more
  1690.      unless you explicitly request it. If the variable unsubscribe-mark-read
  1691.      is set, all articles in the group will be marked read when you
  1692.      unsubscribe.
  1693.            If the variable keep-unsubscribed is not set, the group will be
  1694.      removed from .newsrc. If you are not subscribing to the group, you will
  1695.      be given the possibility to resubscribe to the group! This may be used in
  1696.      connection with the G command to resubscribe a group.
  1697.  
  1698. C    {cancel}
  1699.      Cancel (delete) an article in the current group or folder. Cancelling
  1700.      articles in a folder will cause the folder to be rewritten when it is
  1701.      closed. In selection mode, you will be prompted for the identifier of the
  1702.      article to cancel. Normal users can only cancel their own articles. See
  1703.      also the section on folder maintenance.
  1704.  
  1705. Y    {overview}
  1706.      Provide an overview of the groups with unread articles.
  1707.  
  1708. "    {layout}
  1709.      Change menu layout in selection mode. The menu will be redrawn using the
  1710.      next layout (cycling through ..., 2, 3, 4, 0, 1, ...)
  1711.  
  1712. Most of the commands in nn are bound to a key and can be activated by a single
  1713. keystroke. However, there are a few commands that cannot be bound to a key
  1714. directly.
  1715.  
  1716. As shown in the keystroke command descriptions, all commands have a name, and
  1717. it is possible to activate a command by name with the extended command key
  1718. (:). Hitting this key will prompt you for the name of a command (and
  1719. parameters). For example, an alternative to hitting the R key to reply to an
  1720. article is to enter the extended command :reply followed by return. The :post
  1721. and :unshar commands described earlier can also be bound to a key. The
  1722. complete list of commands which can be bound to keys is provided in the
  1723. section on Key Mappings below.
  1724.  
  1725. The following extended commands cannot be bound to a key, mainly because they
  1726. require additional parameters on the prompt line, or because it should not be
  1727. possible to activate them too easily.
  1728.  
  1729. :admin
  1730.      Enter administrative mode. This is identical in operation to the nnadmin
  1731.      (1M) program.
  1732.  
  1733. :bug Prepare and send a bug report to the nn-bugs mailing address.
  1734.  
  1735. :cd [ directory ]
  1736.      Change current working directory. If the directory argument is not
  1737.      provided, nn will prompt for it.
  1738.  
  1739. :clear
  1740.      Clear the screen (without redraw). This may be useful at the beginning of
  1741.      the init file (possibly guarded by "on program nn"), or in some macros.
  1742.  
  1743. :compile
  1744.      Recompile the kill file. This is not necessary under normal operation
  1745.      since nn automatically compiles the file on start-up if it has changed,
  1746.      but it can be used if you modify the kill file while nn is suspended.
  1747.  
  1748. :coredump
  1749.      Abort with a core dump. For debugging purposes only.
  1750.  
  1751. :define macro
  1752.      Define macro number macro as described in the Macro Definition section
  1753.      below. If macro is omitted, the next free macro number will be chosen.
  1754.  
  1755. :dump table
  1756.      Same as the :show command described below.
  1757.  
  1758. :help [ subject ]
  1759.      Provide online help on the specified subject. If you omit the subject, a
  1760.      list of the available topics will be given.
  1761.  
  1762. :load [ file ]
  1763.      Load the specified file. If the file argument is omitted, the init file
  1764.      is reloaded. The sequence part (if present) is ignored.
  1765.  
  1766. :local variable [ value ]
  1767.      Make the variable local to the current group. Subsequent changes to the
  1768.      variable will only be effective until the current group is left. If a
  1769.      value is specified, it will be assigned to the local variable. To assign
  1770.      a new value to a boolean variable, the values on and off must be used.
  1771.  
  1772. :lock variable
  1773.      Lock the specified variable so it cannot be modified.
  1774.  
  1775. :man Call up the online manual. The manual is presented as a normal folder
  1776.      with the program name in the `From' field and the section title in the
  1777.      `subject' field. All the normal commands related to a folder works for
  1778.      the online manual as well, e.g. you can save and print sections of the
  1779.      manual.
  1780.  
  1781. :map arguments
  1782.      This is the command used for binding commands to the keys. It is fully
  1783.      described in the Key Mapping section below.
  1784.  
  1785. :mkdir [ directory ]
  1786.      Create the directory (and the directories in its path). It will prompt
  1787.      for at directory name if the argument is omitted.
  1788.  
  1789. :motd
  1790.      Show the message of the day (maintained by the news administrator in the
  1791.      file "motd" in the lib directory. This file is automatically displayed on
  1792.      start-up whenever it changes if the motd variable is set.
  1793.  
  1794. :pwd Print path name of current working directory on message line.
  1795.  
  1796. :q   Has no effect besides redrawing the screen if necessary. If an extended
  1797.      command (one which is prefixed by a :) produces any output requirering
  1798.      the screen to be redrawn, the screen will not be redrawn immediately if
  1799.      the variable delay-redraw is set (useful on slow terminals). Instead
  1800.      another : prompt is shown to allow you to enter a new extended command
  1801.      immediately. It is sufficient to hit return to redraw the screen, but it
  1802.      has been my experience that entering q return in this situation happens
  1803.      quite often, so it was made a no-op.
  1804.  
  1805. :q!  Quit nn without updating the .newsrc file.
  1806.  
  1807. :Q   Quit nn. This is equivalent to the normal Q command.
  1808.  
  1809. :rmail
  1810.      Open your mailbox (see the mail variable) as a folder to read the
  1811.      incoming messages. This is not a full mail interface (depending on the nn
  1812.      configuration, you may not be able to delete messages, add cc: on
  1813.      replies, etc), but it can give you a quick glance at new mail without
  1814.      leaving nn.
  1815.  
  1816. :set variable [ value ]
  1817.      Set a boolean variable to true or assign the value to a string or integer
  1818.      variable. The :set command is described in details in the section on
  1819.      VARIABLES.
  1820.  
  1821. :sh  Suspend nn, or if that is not possible, spawn an interactive shell.
  1822.  
  1823. :show groups mode
  1824.      Show the total number or the number of unread articles in the current
  1825.      group, depending on mode: all (list the number of unread articles in all
  1826.      groups including groups which you have unsubscribed to), total (list the
  1827.      total number of articles in all existing groups), sequence (list unread
  1828.      groups in presentation sequence order), subscr (list all subscribed
  1829.      groups), unsub (list unsubscribed groups only). Any other mode results in
  1830.      a listing of the number of unread articles in all subscribed groups
  1831.      including those you have suppressed with the `!' symbol in the group
  1832.      presentation sequence. To get just the currently unread groups in the
  1833.      presentation sequence, use the `Y' {overview} command.
  1834.  
  1835. :show kill
  1836.      Show the kill entries that applies to the current group and to all
  1837.      groups.
  1838.  
  1839. :show rc [ group ]
  1840.      Show the .newsrc and select file entries for the current or the specified
  1841.      group.
  1842.  
  1843. :show map [ mode ]
  1844.      Show the key bindings in the current or specified mode.
  1845.  
  1846. :sort [ mode ]
  1847.      Reorder the articles on the menu according to mode or if omitted to the
  1848.      default sort-mode. The following sorting modes are available:
  1849.      arrival: list articles by local article number which will be the same as
  1850.      the order in which they arrived on the system (unless groups are merged),
  1851.      subject: articles with identical subjects are grouped and ordered after
  1852.      age of the oldest article in the group,
  1853.      lexical: subjects in lexicographical order,
  1854.      age: articles ordered after posting date only,
  1855.      sender: articles ordered after sender's name.
  1856.  
  1857. :toggle variable
  1858.      Toggle a boolean variable.
  1859.  
  1860. :unread [ group ] [ articles ]
  1861.      Mark the current (or specified) group as unread. If the articles argument
  1862.      is omitted, the number of unread articles in the group will be set to the
  1863.      number of unread articles when nn was invoked. Otherwise, the argument
  1864.      specifies the number of unread articles.
  1865.  
  1866. :unset variable
  1867.      Set a boolean variable to false or clear an integer variable.
  1868.  
  1869. :x   Quit nn and mark all articles in the current group as read!
  1870.  
  1871. Related variables: backup, bug-report-address, delay-redraw,
  1872. keep-unsubscribed, unsubscribe-mark-read, mail, pager, sort-mode.
  1873.  
  1874. From: NN
  1875. Subject: CATCH UP
  1876.  
  1877. If you have not read news for some time, there are probably more news than you
  1878. can cope with. Using the option -a0 nn will put you into catch-up mode.
  1879.  
  1880. The first question you will get is whether to catch up interactively or
  1881. automatically. If you instruct nn to catch up automatically, it will simply
  1882. mark all articles in all groups as read, thus bringing you completely
  1883. up-to-date.
  1884.  
  1885. If you choose the interactive mode, nn will locate all groups with unread
  1886. articles, and for each group it will prompt you for an action to take on the
  1887. group. An action is selected using a single letter followed by return. The
  1888. following actions are available:
  1889.  
  1890. y    Mark all articles as read in current group.
  1891.  
  1892. n    Do not update group (this is the default action if you just hit return).
  1893.  
  1894. r    Enter reading mode to read the group.
  1895.  
  1896. U    Unsubscribe to the group.
  1897.  
  1898. ?    Give a list of actions.
  1899.  
  1900. q    Quit. When you quit, nn will ask whether the rest of the groups should be
  1901.      updated unconditionally or whether they should remain unread.
  1902.  
  1903. From: NN
  1904. Subject: VARIABLES AND OPTIONS
  1905.  
  1906. It is possible to control the behaviour of nn through the setting (and
  1907. unsetting) of the variables described below. There are several ways of setting
  1908. variables:
  1909. - Through command line options when nn is invoked.
  1910. - Through assignments on the command line when nn is invoked.
  1911. - Through global set commands in the init file.
  1912. - Through set or local commands executed from entry macros.
  1913. - Through the :set extended command when you run nn.
  1914.  
  1915. There are four types of variables:
  1916. - Boolean variables
  1917. - Integer variables
  1918. - String variables
  1919. - Key variables
  1920.  
  1921. Boolean variables control a specific function in nn, e.g. whether the current
  1922. time is shown in the prompt line. A boolean variable is set to true with the
  1923. command
  1924.       set variable
  1925. and it is set to false with either of the following (equivalent) commands:
  1926.       unset variable
  1927.       set novariable
  1928.  
  1929. You can also toggle the value of a boolean variable using the command:
  1930.       toggle variable
  1931.  
  1932. For example:
  1933.       set time
  1934.       unset time
  1935.       set notime
  1936.       toggle time
  1937.  
  1938. Integer variables control an amount e.g. the size of the preview window, or
  1939. the maximum number of articles to read in each group. They are set with the
  1940. following command:
  1941.       set variable value
  1942. In some cases, not setting an integer value has a special meaning, for
  1943. example, not having a minimal preview window or reading all articles in the
  1944. groups no matter how many there are. The special meaning can be re-established
  1945. by the following command:
  1946.       unset variable
  1947. For example:
  1948.       set window 7
  1949.       unset limit
  1950.  
  1951. String variables may specify directory names, default values for prompts, etc.
  1952. They are set using the command
  1953.       set variable string
  1954. Normally, the string value assigned to the variable value starts at the first
  1955. non-blank character after the variable name and ends with the last non-blank
  1956. character (excluding comments) on the line. To include leading or trailing
  1957. blanks, or the comment start symbol, #, in the string they must be escaped
  1958. using a backslash `\', e.g. to set included-mark to the string " # ", the
  1959. following assignment can be used:
  1960.       set included-mark \\ \#\\ \ \ # blank-#-blank
  1961. To include a backslash in the string, it must be duplicated `\\'. A backslash
  1962. may also be used to include the following special characters in the string:
  1963. \a=alarm, \b=backspace, \e=escape, \f=form-feed, \n=new-line, \r=return,
  1964. \t=tab.
  1965.  
  1966. Key variables control the keys used to control special functions during user
  1967. input such as line editing and completion. They are set using the command
  1968.       set variable key-name
  1969.  
  1970. A variable can be locked which makes further modification of the variable
  1971. impossible:
  1972.       lock variable
  1973. This can be used in the setup init file which is loaded unconditionally to
  1974. enforce local conventions or restrictions. For example, to fix the
  1975. included-mark variable to the string ">", the following commands can be placed
  1976. in the setup file:
  1977.       set included-mark >
  1978.       lock included-mark
  1979.  
  1980. The current variable settings can be shown with the :set command:
  1981.  
  1982. :set (without arguments)
  1983.      This will give a listing of the variables which have been set in either
  1984.      the init file or interactively.
  1985.  
  1986. :set all
  1987.      This will give a listing of all variables. Modified variables will be
  1988.      marked with a `*' and local variables will be marked with a `>'. A locked
  1989.      variable is marked with a `!'.
  1990.  
  1991. :set /regexp
  1992.      This will give a listing of all variables whose name matches the given
  1993.      regular expression.
  1994.  
  1995. :set partial-name space
  1996.      The space (comp1-key) key will complete the variable name as usual, but
  1997.      as a side effect it will display the variable's current value in the
  1998.      message line.
  1999.  
  2000. Variables are global by default, but a local instantiation of the variable can
  2001. be created using the :local command. The local variable will overlay the
  2002. global variable as long as the current group is active, i.e. the global
  2003. variable will be used again when you exit the current group. The initial value
  2004. of the local variable will be the same as the global variable, unless a new
  2005. value is specified in the :local command:
  2006.       :local variable [ value ]
  2007.  
  2008. The following variables are available:
  2009.  
  2010. also-full-digest    (boolean, default false)
  2011.      When a digest is split, the digest itself is not normally included on the
  2012.      menu, and as such the initial adminstrative information is not available.
  2013.      Setting also-full-digest will cause the (unsplit) digest to be included
  2014.      on the menu. These articles are marked with a @ at the beginning of the
  2015.      subject.
  2016.  
  2017. also-subgroups    (boolean, default true)
  2018.      When set, a group name in the presentation sequence will also cause all
  2019.      the subgroups of the group to be included, for example, comp.unix will
  2020.      also include comp.unix.questions, etc. When also-subgroups is not set,
  2021.      subgroups are only included if the group name is followed by a `.' in
  2022.      which case the main group is not included, i.e. `comp.unix' is not
  2023.      included when `comp.unix.' is specified in the presentation sequence, and
  2024.      vice-versa. Following a group name by an asterisk `*', e.g. comp.unix*,
  2025.      will include the group as well as all subgroups independently of the
  2026.      setting of also-subgroups.
  2027.  
  2028. append-signature-mail    (boolean, default false)
  2029.      When false, it is assumed that the .signature file is automatically
  2030.      appended to responses sent via E-mail. If true, .signature will be
  2031.      appended to the letter (see query-signature).
  2032.  
  2033. append-signature-post    (boolean, default false)
  2034.      When false, it is assumed that the .signature file is automatically
  2035.      appended to posted articles. If true, .signature will explicitly be
  2036.      appended to posted articles (see query-signature).
  2037.  
  2038. attributes symbols    (string, default ....)
  2039.      Each element in this string represents a symbol used to represent an
  2040.      article attribute when displayed on the screen. See the section on
  2041.      Marking Articles and Attributes.
  2042.  
  2043. auto-junk-seen    (boolean, default true)
  2044.      When set, articles which have the seen attribute (,) will be marked read
  2045.      when the current group is left. If not set, these articles will still be
  2046.      either unread or marked seen the next time the group is entered (see also
  2047.      confirm-junk-seen and retain-seen-status).
  2048.  
  2049. auto-preview-mode        (boolean, default false)
  2050.      Enables Auto Preview Mode. In this mode, selecting an article on the menu
  2051.      using its article id (letter a-z) will enter preview mode on that article
  2052.      immediately. Furthermore, the `n' {next-article} command will preview the
  2053.      next article on the menu only if it has the same subject as the current
  2054.      article; otherwise, it will return to the menu with the cursor placed on
  2055.      the next article. The continue command at the end of the article and the
  2056.      `=' {goto-menu} returns to the menu immediately as usual.
  2057.  
  2058. auto-read-mode-limit N    (integer, default 0)
  2059.      When operating in auto reading mode, nn will auto-select all unread
  2060.      articles in the group, skip the article selection phase, and enter
  2061.      reading mode directly after entry to the group.
  2062.            Auto reading mode is disabled when auto-read-mode-limit is zero; it
  2063.      is activated unconditionally if the value is negative, and conditionally
  2064.      if the value is greater than zero and the number of unread articles in
  2065.      the current group does not exceed the given value.
  2066.  
  2067. auto-select-closed mode    (integer, default 1)
  2068.      Normally, selecting a closed subject (usually in consolidated menu mode)
  2069.      will select (or deselect) all unread articles with the given subject (or
  2070.      all articles if they are all read). This behaviour can be changed via the
  2071.      value of this variable as follows: 0: select only the first article with
  2072.      the subject (shown on menu). 1: select only the unread articles with the
  2073.      subject. 2: select all available articles with the subject.
  2074.  
  2075. auto-select-subject    (boolean, default false)
  2076.      When set, selecting an article from the menu using the article id (a-z),
  2077.      all articles on the menu with the same subject will automatically be
  2078.      selected as well.
  2079.  
  2080. backup    (boolean, default true)
  2081.      When set, a copy of the initial .newsrc and select files will save be the
  2082.      first time they are changed. nn remembers the initial contents of these
  2083.      files internally, so the backup variable can be set any time if not set
  2084.      on start-up.
  2085.  
  2086. backup-folder-path file    (string, default "BackupFolder~")
  2087.      When removing deleted articles from a folder, this variable defines the
  2088.      name of the file where a (temporary) copy of the original folder is
  2089.      saved. If the file name doesn't contain a `/', the file will be located
  2090.      in the .nn directory. Otherwise the file name is used directly as the
  2091.      relative or full path name of the backup file. If possible, the old
  2092.      folder will be renamed to the backup folder name; otherwise the old
  2093.      folder is copied to the backup folder.
  2094.  
  2095. backup-suffix suffix    (string, default ".bak")
  2096.      The suffix appended to file names to make the corresponding backup file
  2097.      name (see backup).
  2098.  
  2099. bug-report-address address    (string, default nn-bugs@dkuug.dk)
  2100.      The mail address to which bug reports created with the :bug command are
  2101.      sent.
  2102.  
  2103. case-fold-search        (boolean, default true)
  2104.      When set, string and regular expression matching will be case
  2105.      independent. This is related to all commands matching on names or
  2106.      subjects, except in connection with auto-kill and auto-select where the
  2107.      individual kill file entries specifies this property.
  2108.  
  2109. check-db-update-time H    (integer, default 12)
  2110.      When non-zero, nn will issue a warning if the database has not been
  2111.      updated in the last H hours. The warning will tell you whether no news
  2112.      has arrived (feed broken?), or whether it is just nnmaster which has not
  2113.      updated the database (dead?).
  2114.  
  2115. check-group-access    (boolean, default false)
  2116.      When set, nn will perform a check on the readability of a group's
  2117.      readability before showing the menu for that group. Normally, this is not
  2118.      necessary since all users traditionally have access to all news groups.
  2119.      Setting (and locking) this variable may be used to limit access to a news
  2120.      group via the permissions and ownership of the group's spool directory
  2121.      (this will only work for non-NNTP sites).
  2122.  
  2123. collapse-subject offset    (integer, default 25)
  2124.      When set (non-negative), subject lines which are too long to be presented
  2125.      in full on the menus will be "collapsed" by removing a sufficient number
  2126.      of characters from the subject starting at the given offset in the
  2127.      subject. This is useful in source groups where the "Part (01/10)" string
  2128.      sometimes disappears from the menu. When not set (or negative), the
  2129.      subjects are truncated.
  2130.  
  2131. columns col    (integer, default screen width)
  2132.      This variable contains the screen width i.e. character positions per
  2133.      line.
  2134.  
  2135. comp1-key key    (key, default space)
  2136.      The key which gives the first/next completion, and the default value when
  2137.      nn is prompting for a string, e.g. a file name.
  2138.  
  2139. comp2-key key    (key, default tab)
  2140.      The key which ends the current completion and gives the first completion
  2141.      for the next component when nn is prompting for a string, e.g. a file
  2142.      name.
  2143.  
  2144. compress        (boolean, default false)
  2145.      This variable controls whether text compression (see the compress
  2146.      command) is turned on or off when an article is shown. The compression is
  2147.      still toggled for the current article with the compress command key.
  2148.  
  2149. confirm-append        (boolean, default false)
  2150.      When set, nn will ask for confirmation before appending an article to an
  2151.      existing file (see also confirm-create).
  2152.  
  2153. confirm-auto-quit        (boolean, default false)
  2154.      When set, nn will ask for confirmation before quitting after having read
  2155.      the last group. If not confirmed, nn will recycle the presentation
  2156.      sequence looking for groups that were skipped with the `N' {next-group}
  2157.      command. But it will not look for new articles arrived since the
  2158.      invocation of nn.
  2159.  
  2160. confirm-create        (boolean, default true)
  2161.      When set, nn will ask for confirmation before creating a new file or
  2162.      directory when saving or unpacking an article (see also confirm-append).
  2163.  
  2164. confirm-entry        (boolean, default false)
  2165.      When set, nn will ask for confirmation before entering a group with more
  2166.      than confirm-entry-limit unread articles (on the first menu level). It is
  2167.      useful on slow terminals if you don't want to wait until nn has drawn the
  2168.      first menu to be able to skip the group.
  2169.            Answering no to the "Enter?" prompt will cause nn to skip to the
  2170.      next group without marking the current group as read. If you answer by
  2171.      hitting interrupt, nn will ask the question "Mark as read?" which allows
  2172.      you to mark the current group as read before going to the next group. If
  2173.      this second question is also answered by hitting interrupt, nn will quit
  2174.      immediately.
  2175.  
  2176. confirm-entry-limit articles    (integer, default 0)
  2177.      Specifies the minimum number of unread articles in a group for which the
  2178.      confirm-entry functionality is activated.
  2179.  
  2180. confirm-junk-seen        (boolean, default false)
  2181.      When set, nn will require confirmation before marking seen articles as
  2182.      read when auto-junk-seen is set.
  2183.  
  2184. confirm-messages        (boolean, default false)
  2185.      In some cases, nn will sleep one second (or more) when it has shown a
  2186.      message to the user, e.g. in connection with macro debugging. Setting
  2187.      confirm-messages will cause nn to wait for you to confirm all messages by
  2188.      hitting any key. (It will show the symbol <> to indicate that it is
  2189.      awaiting confirmation.)
  2190.  
  2191. consolidated-manual    (boolean, default false)
  2192.      When set, the online manual will be presented with one menu line for each
  2193.      program in the nn package.
  2194.  
  2195. consolidated-menu        (boolean, default false)
  2196.      When set, nn will automatically close all multi-article subjects on entry
  2197.      to a group, so that each subject only occur once on the menu page.
  2198.  
  2199. counter-delim-left    (string, default "[")
  2200.      The delimiter string output to the left of the article counter in a
  2201.      closed subject's menu line.
  2202.  
  2203. counter-delim-right    (string, default "] ")
  2204.      The delimiter string output to the right of the article counter in a
  2205.      closed subject's menu line.
  2206.  
  2207. counter-padding pad        (integer, default 5)
  2208.      On a consolidated menu, the subjects may not be very well aligned because
  2209.      the added [...] counters have varying length. To (partially) remedy this,
  2210.      all counters (and subjects without counters) are prefixed by up to pad
  2211.      spaces to get better alignment. Increasing it further may yield
  2212.      practially perfect alignment at the cost of less space for the subject
  2213.      itself.
  2214.  
  2215. cross-filter-seq        (boolean, default true)
  2216.      When set, cross posted articles will be presented in the first possible
  2217.      group, i.e. according to the current presentation sequence (cross-post
  2218.      filtering on sequence). The article is automatically marked read in the
  2219.      other cross posted groups unless you unsubscribe to the first group in
  2220.      which it was shown before reading the other groups. Likewise, it is
  2221.      sufficient to leave the article unread in the first group to keep it for
  2222.      later handling.
  2223.            If not set, cross-postings are shown in the first group occurring on
  2224.      the Newsgroups: line which the user subscribes to (i.e. you let the
  2225.      poster decide which group is most appropriate to read his posting).
  2226.  
  2227. cross-post        (boolean, default false)
  2228.      Normally, nn will only show cross-posted articles in the first subscribed
  2229.      group on the Newsgroups: line. When cross-post is set, nn will show
  2230.      cross-posted articles in all subscribed groups to which they are posted.
  2231.  
  2232. data-bits bits    (integer, default 7)
  2233.      When set to 7, nn will display characters with the 8th bit set using a
  2234.      meta-notation M-7bit-char. If set to 8, these characters are sent
  2235.      directly to the screen (unless monitor is set).
  2236.      It also controls whether keyboard input is 7 or 8 bits, and thus whether
  2237.      key maps contain 127 or 255 entries. See the key mapping section for more
  2238.      details.
  2239.  
  2240. date        (boolean, default true)
  2241.      If set nn will show the article posting date when articles are read.
  2242.  
  2243. debug mask    (integer, default 0)
  2244.      Look in the source if you are going to use this.
  2245.  
  2246. decode-header-file file    (string, default "Decode.Headers")
  2247.      The name of the file in which the header and initial text of articles
  2248.      decoded with the :decode command is saved. Unless the file name starts
  2249.      with a `/', the file will be created in the same directory as the decoded
  2250.      files. The information is not saved if this variable is not set.
  2251.  
  2252. decode-skip-prefix N    (integer, default 2)
  2253.      When non-null, the :decode command will automatically skip upto N
  2254.      characters at the beginning of each line to find valid uuencoded data.
  2255.      This allows nn to automatically decode (multi-part) postings which are
  2256.      both uuencoded and packed with shar.
  2257.  
  2258. default-distribution distr    (string, default "world")
  2259.      The distribution to use as the default suggestion when posting articles
  2260.      using the follow and post commands if the corresponding
  2261.      follow-distribution or post-distribution variable contains the default
  2262.      option.
  2263.  
  2264. default-kill-select [1]days    (number, default 30)
  2265.      Specifies the default action for the K {kill-select} command if the first
  2266.      prompt is answered by return. It contains the number of days to keep the
  2267.      kill or select entry in the kill file (1-99 days). If it has the value
  2268.      days+100 (e.g. 130), it denotes that the default action is to select
  2269.      rather than kill on the subject for the specified period.
  2270.  
  2271. default-save-file file    (string, default +$F)
  2272.      The default save file used when saving articles in news groups where no
  2273.      save file has been specified in the init file (either in a save-files
  2274.      section or in the presentation sequence). It can also be specified using
  2275.      the abbreviation "+" as the file name when prompted for a file name even
  2276.      in groups with their own save file.
  2277.  
  2278. delay-redraw        (boolean, default false)
  2279.      Normally, nn will redraw the screen after extended commands (:cmd) that
  2280.      clear the screen. When delay-redraw is set nn will prompt for another
  2281.      extended command instead of redrawing the screen (hit return to redraw).
  2282.  
  2283. echo-prefix-key        (boolean, default true)
  2284.      When true, hitting a prefix key (see the section on key mapping below)
  2285.      will cause the prefix key to be echoed in the message line to indicate
  2286.      that another key is expected.
  2287.  
  2288. edit-patch-command    (boolean, default true)
  2289.      When true, the :patch command will show the current patch-command and
  2290.      give you a chance to edit it before applying it to the articles.
  2291.  
  2292. edit-print-command    (boolean, default true)
  2293.      When true, the print command will show the current printer command and
  2294.      give you a chance to edit it before printing the articles. Otherwise the
  2295.      articles are just printed using the current printer command.
  2296.  
  2297. edit-response-check    (boolean, default true)
  2298.      When editing a response to an article, it normally does not have any
  2299.      meaning to send the initial file prepared by nn unaltered, since it is
  2300.      either empty or only contains included material. When this variable is
  2301.      set, exiting the editor without having changed the file will
  2302.      automatically abort the response action without confirmation.
  2303.  
  2304. edit-unshar-command    (boolean, default false)
  2305.      When true, the :unshar command will show the current unshar-command and
  2306.      give you a chance to edit it before applying it to the articles.
  2307.  
  2308. editor command    (string, default not set)
  2309.      When set, it will override the current EDITOR environment variable when
  2310.      editing responses and new articles.
  2311.  
  2312. embedded-header-escape string    (string, default '~')
  2313.      When saving an article to a file, header lines embedded in the body of
  2314.      the article are escaped using this string to make it possible for nn to
  2315.      split the folder correctly afterwards. Header lines are not escaped if
  2316.      this variable is not set.
  2317.  
  2318. enter-last-read-mode mode    (integer, default 1)
  2319.      Normally, nn will remember which group is active when you quit, and offer
  2320.      to jump directly to this group when you start nn the next time. This
  2321.      variable is used to control this behaviour. The following mode values are
  2322.      recognized: 0: Ignore the remembered group (r.g.). 1: Enter r.g. if the
  2323.      group is unread (with user confirmation) 2: Enter r.g. or first unread
  2324.      group after it in the sequence (w/conf). 3: Enter r.g. if the group is
  2325.      unread (no confirmation) 4: Enter r.g. or first unread group after it in
  2326.      the sequence (no conf).
  2327.  
  2328. entry-report-limit articles    (integer, default 300)
  2329.      Normally, nn will just move the cursor to the upper left corner of the
  2330.      screen while it is reading articles from the database on entry to a
  2331.      group. For large groups this may take more than a fraction of a second,
  2332.      and nn can then report what it is doing. If it must read more articles
  2333.      than the number specified by this variable, nn will report which group
  2334.      and how many articles it is reading.
  2335.  
  2336. erase-key key    (key, default tty erase key)
  2337.      The key which erases the last input character when nn is prompting for a
  2338.      string, e.g. a file name.
  2339.  
  2340. expert        (boolean, default false)
  2341.      If set nn will use slightly shorter prompts (e.g. not tell you that ?
  2342.      will give you help), and be a bit less verbose in a few other cases (e.g.
  2343.      not remind you that posted articles are not available instantly).
  2344.  
  2345. expired-message-delay pause    (integer, default 1)
  2346.      If a selected article is found to have been expired, nn will normally
  2347.      give a message about this and sleep for a number of seconds specified by
  2348.      this variable. Setting this variable to zero will still make nn give the
  2349.      message without sleeping afterwards. Setting it to -1 will cause the
  2350.      message not to be shown at all.
  2351.  
  2352. flow-control    (boolean, default true)
  2353.      When set, nn will turn on xon/xoff flow-control before writing large
  2354.      amounts of text to the screen. This should guard against lossage of
  2355.      output, but in some network configurations it has had the opposite
  2356.      effect, losing several lines of the output. This variable is always true
  2357.      on systems with CBREAK capabilities which can do single character reads
  2358.      without disabling flow control.
  2359.  
  2360. flush-typeahead    (boolean, default false)
  2361.      When true, nn will flush typeahead prior to reading commands from the
  2362.      keyboard. It will not flush typeahead while reading parameters for a
  2363.      command, e.g. file names etc.
  2364.  
  2365. folder directory    (string, default ~/News)
  2366.      The full pathname of the folder directory which will replace the + in
  2367.      folder names. It will be initialized from the FOLDER environment variable
  2368.      if it is not set in the init file.
  2369.  
  2370. folder-format-check    (boolean, default true)
  2371.      When saving an article with a full or partial header in an existing
  2372.      folder, nn will check the format of the folder to be able to append the
  2373.      article in the proper format. If this variable is not set, folders are
  2374.      assumed to be in the format specified via the mmdf-format and mail-format
  2375.      variables, and articles are saved in that format without checking.
  2376.      Otherwise, the *-format variables are only used to determine the format
  2377.      for new folders.
  2378.  
  2379. folder-save-file file    (string, default not set)
  2380.      The default save file used when saving articles from a folder.
  2381.  
  2382. follow-distribution words    (string, default see below)
  2383.      This variable controls how the Distribution: header is constructed for a
  2384.      follow-up to an original article. Its value is a list of words selected
  2385.      from the following list:
  2386.      [ [ always ] same ] [ ask ] [ default | distribution ]
  2387.      This is interpreted in two steps:
  2388.      - First the default distribution is determined. If same is specified and
  2389.      the original article has a Distribution: header, that header is used.
  2390.      Else if default is specified (or distribution is omitted), the value of
  2391.      default-distribution is used. And finally, if only a distribution (any
  2392.      word) is specified that is used as the default.
  2393.      - Then if ask is specified, the user will be asked to confirm the default
  2394.      distribution or provide another distribution. However, if always (and
  2395.      same) is specified, and the default was taken from the original article's
  2396.      distribution, the original distribution is used without confirmation.
  2397.      The default value of follow-distribution is always same default, i.e. use
  2398.      either the original distribution or the default-distribution without
  2399.      confirmation in either case.
  2400.  
  2401. from-line-parsing strictness    (integer, default 2)
  2402.      Specifies how strict nn must parse a "From " line in a folder to
  2403.      recognize it as a mail format message separator line. The following
  2404.      strictness values determine whether a line starting with "From " will be
  2405.      recognized as a separator line:
  2406.            0: Always.
  2407.            1: Line must have at least 8 fields.
  2408.            2: Line must contain a valid date and time (ctime style).
  2409.  
  2410. fsort        (boolean, default true)
  2411.      When set, folders are sorted alphabetically according to the subject (and
  2412.      age). Otherwise, the articles in a folder will be presented in the
  2413.      sequence in which they were saved.
  2414.  
  2415. guard-double-slash    (boolean, default false)
  2416.      Normally, when entering a file name, entering two slashes `//' in a row
  2417.      (or following a slash by a plus `/+') will cause nn to erase the entire
  2418.      line and replace it with the `/' (or `+'). On some systems, two slashes
  2419.      are used in network file names, and on those systems guard-double-slash
  2420.      can be set; that will cause nn to require three slashes in a row to clear
  2421.      the input.
  2422.  
  2423. header-lines list    (string, no default)
  2424.      When set, it determines the list of header fields that are shown when an
  2425.      article is read instead of the normal one line header showing the author
  2426.      and subject. See the full description in the section on Customized
  2427.      Article Headers below.
  2428.  
  2429. help-key key    (key, default ?)
  2430.      The key which ends the current completion and gives a list of possible
  2431.      completions for the next component when nn is prompting for a string,
  2432.      e.g. a file name.
  2433.  
  2434. ignore-xon-xoff        (boolean, default false)
  2435.      Normally, nn will ignore ^S and ^Q in the input from the terminal (if
  2436.      they are not handled in the tty driver). Setting this variable will treat
  2437.      these characters as normal input.
  2438.  
  2439. include-art-id        (boolean, default false)
  2440.      The first line in a response with included material normally reads
  2441.      "...somebody... writes:" without a reference to the specific article from
  2442.      which the quotation was taken (this is found in the References: line).
  2443.      When this variable is set, the line will also include the article id of
  2444.      the referenced article: "In ...article... ... writes:".
  2445.  
  2446. include-full-header    (boolean, default false)
  2447.      When set, the mail (M) command will always include the full header of the
  2448.      original article. If it is not set, it only includes the header when the
  2449.      article is forwarded without being edited.
  2450.  
  2451. include-mark-blank-lines    (boolean, default false)
  2452.      When set, the included-mark is placed on blank lines in included
  2453.      articles. Otherwise, blank lines are left blank (to make it easy to
  2454.      delete whole paragraphs with `d}' in vi and `C-@ M-] C-W' in emacs).
  2455.  
  2456. included-mark string    (string, default ">")
  2457.      This string is prefixed to all lines in the original article that are
  2458.      included in a reply or a follow-up. (Now you have the possibility to
  2459.      change it, but please don't. Lines with a mixture of prefixes like
  2460.            : orig-> <> } ] #- etc.
  2461.      are very difficult to comprehend. Let's all use the standard folks! (And
  2462.      hack inews if it is the 50% rule that bothers you.)
  2463.  
  2464. inews shell-command    (string, default "INEWS_PATH -h")
  2465.      The program which is invoked by nn to deliver an article to the news
  2466.      transport. The program will be given a complete article including a
  2467.      header containing the newsgroups to which the article is to be posted.
  2468.      See also inews-pipe-input. It is not used when cancelling an article!
  2469.  
  2470. inews-pipe-input        (boolean, default true)
  2471.      When set, the article to be posted will be piped into the inews program.
  2472.      Otherwise, the file containing the article will be given as the first
  2473.      (and only) argument to the inews command.
  2474.  
  2475. initial-newsrc-file file    (string, default '.defaultnewsrc')
  2476.      Defines the name of a file which is used as the initial .newsrc file for
  2477.      new users. The name may be a full path name, or as the default a file
  2478.      name which will be looked for in a number of places: in the standard news
  2479.      lib directory (where it can be shared with other news readers), in nn's
  2480.      lib directory, and in the database directory. Groups which are not
  2481.      present in the initial .newsrc file will be automatically unsubscribed
  2482.      provided new-group-action is set to a value allowing unsubscribed groups
  2483.      to be omitted from .newsrc.
  2484.  
  2485. keep-backup-folder    (boolean, default false)
  2486.      When set, the backup folder (see backup-folder-path) created when
  2487.      removing deleted articles from a folder is not removed. Notice that a
  2488.      backup folder is not created if all articles are removed from a folder!
  2489.  
  2490. keep-unsubscribed        (boolean, default true)
  2491.      When set, unsubscribed groups are kept in .newsrc. If not set, nn will
  2492.      automatically remove all unsubscribed from .newsrc if tidy-newsrc is set.
  2493.      See also unsubscribe-mark-read.
  2494.  
  2495. kill        (boolean, default true)
  2496.      If set, nn performs automatic kill and selection based on the kill file.
  2497.  
  2498. kill-debug        (boolean, default false)
  2499.      When set, nn will display a trace of the auto-kill/select process on
  2500.      entry to a group. It is automatically turned off if `q' is entered as the
  2501.      answer to a "hit any key" prompt during the debug output.
  2502.  
  2503. kill-key key    (key, default tty kill key)
  2504.      The key which deletes the current line when nn is prompting for a string,
  2505.      e.g. a file name.
  2506.  
  2507. kill-reference-count N    (integer, default 0)
  2508.      When this variable is non-zero, all articles which have N or more
  2509.      references on the References: line (corresponding to the number of >>'s
  2510.      on the menu line) will be auto-killed if they are not auto-selected (or
  2511.      preserved) via an entry in the kill file. It should probably not be used
  2512.      globally for all groups, but can be set on a per-group via the entry
  2513.      macros.
  2514.  
  2515. layout number    (integer, default 1)
  2516.      Set the menu layout. The argument must be a number between 0 and 4.
  2517.  
  2518. limit max-articles    (integer, default infinite)
  2519.      Limit the maximum number of articles presented in each group to
  2520.      max-articles. The default is to present all unread articles no matter how
  2521.      many there are. Setting this variable, only the most recent max-articles
  2522.      articles will be presented, but all the articles will still be marked as
  2523.      read. This is useful to get up-to-date quickly if you have not read news
  2524.      for a longer period.
  2525.  
  2526. lines lin    (integer, default screen height)
  2527.      This variable contains the screen height i.e. number of lines.
  2528.  
  2529. long-menu        (boolean, default false)
  2530.      If set nn will not put an empty line after the header line and an empty
  2531.      line before the prompt line; this gives you two extra menu lines.
  2532.  
  2533. macro-debug    (boolean, default false)
  2534.      If set nn will trace the execution of all macros. Prior to the execution
  2535.      of each command or operation in a macro, it will show the name of the
  2536.      command or the input string or key stroke at the bottom of the screen.
  2537.  
  2538. mail file    (string, default not set)
  2539.      file must be a full path name of a file. If defined, nn will check for
  2540.      arrival of new mail every minute or so by looking at the specified file.
  2541.  
  2542. mail-alias-expander program    (string, default not set)
  2543.      When set, aliases used in mail responses may be expanded by the specified
  2544.      program. The program will be given the completed response in a file as
  2545.      its only argument, and the aliases should be expanded directly in this
  2546.      file (of course the program may use temporary files and other means to
  2547.      expand the aliases as long the the result is stored in the provided
  2548.      file).
  2549.      Notice: currently there are no alias expanders delivered with nn.
  2550.      Warning: Errors in the expansion process may lead to the response not
  2551.      being sent.
  2552.  
  2553. mail-format    (boolean, default false)
  2554.      When set, nn will save articles in a format that is compatible with
  2555.      normal mail folders. Unless folder-format-check is false, it is only used
  2556.      to specify the format used when new folders are created. This variable is
  2557.      ignored if mmdf-format is set.
  2558.  
  2559. mail-header headers    (string, default not set)
  2560.      The headers string specifies one or more extra header lines (separated by
  2561.      semi-colons `;') which are added to the header of mail sent from nn using
  2562.      the reply and mail commands. For example:
  2563.            set mail-header Reply-To: storm@texas.dk;Organization: TI - DK
  2564.  
  2565. mail-record file    (string, default not set)
  2566.      file must be a full path name of a file. If defined, all replies and mail
  2567.      will be saved in this file in standard mailbox format, i.e. you can use
  2568.      you favourite mailer (and nn) to look at the file.
  2569.  
  2570. mail-script file    (string, default not set)
  2571.      When set, nn will use the specified file instead of the standard aux
  2572.      script when executing the reply and mail commands.
  2573.  
  2574. mailer shell-command    (string, default REC_MAIL)
  2575.      The program which is invoked by nn to deliver a message to the mail
  2576.      transport. The program will be given a complete mail message including a
  2577.      header containing the recipient's address. See also mailer-pipe-input.
  2578.  
  2579. mailer-pipe-input        (boolean, default true)
  2580.      When set, the message to be sent will be piped into the mailer program.
  2581.      Otherwise, the file containing the message will be given as the first
  2582.      (and only) argument to the mailer command.
  2583.  
  2584. marked-by-next-group N    (integer, default 0)
  2585.      Specifies the amount of (unmarked) articles on the menu marked seen by
  2586.      the N {next-group} command in selection mode. See marked-by-read-skip for
  2587.      possible values of N.
  2588.  
  2589. marked-by-read-return N    (integer, default 0)
  2590.      Specifies the amount of (unmarked) articles on the menu marked seen by
  2591.      the Z {read-return} command in selection mode. See marked-by-read-skip
  2592.      for possible values of N.
  2593.  
  2594. marked-by-read-skip N    (integer, default 4)
  2595.      Specifies the amount of (unmarked) articles on the menu marked seen by
  2596.      the X {read-skip} command in selection mode. The following values of N
  2597.      are recognized:
  2598.            0: No articles are marked seen
  2599.            1: Current page is marked seen
  2600.            2: Previous pages are marked seen
  2601.            3: Previous and current pages are marked seen
  2602.            4: All pages are marked seen
  2603.  
  2604. mark-overlap    (boolean, default false)
  2605.      When set, nn will draw a line (using the underline capabilities of the
  2606.      terminal if possible) to indicate the end of the overlap (see the overlap
  2607.      variable).
  2608.  
  2609. mark-overlap-shading    (boolean, default false)
  2610.      When set, nn will shade overlapping lines (see the overlap variable)
  2611.      using the attributes defined by the shading-on and shading-off variables
  2612.      (of if not set, with the underline attribute). This is typically used to
  2613.      give overlapping lines a different colour on terminals which have this
  2614.      capability.
  2615.  
  2616. menu-spacing mode    (integer, default 0)
  2617.      When mode is a non-zero number as described below, nn will add blank
  2618.      lines between the lines on the menu to increase readability at the cost
  2619.      of presenting fewer articles on each page. The following values of mode
  2620.      are recognized: 0: Don't add blank lines between menu lines. 1: Add a
  2621.      blank line between articles with different subjects. 2: Add a blank line
  2622.      between all articles.
  2623.  
  2624. merge-report-rate rate    (integer, default 1)
  2625.      When nn is invoked with the -m option (directly or via nngrap), a status
  2626.      report of the merging process is displayed and updated on the screen
  2627.      every rate seconds. The report contains the time used so far and an
  2628.      estimate of the time needed to complete the merge.
  2629.  
  2630. message-history N    (integer, default 15)
  2631.      Specifies the maximum number, N, of older messages which can be recalled
  2632.      with the ^P {message} command.
  2633.  
  2634. min-window size    (integer, default 7)
  2635.      When the window variable is not set, nn will clear the screen to preview
  2636.      an article if there are less than size unused lines at the bottom of the
  2637.      menu screen.
  2638.  
  2639. mmdf-format    (boolean, default false)
  2640.      When set, nn will save articles in MMDF format. Unless
  2641.      folder-format-check is false, it is only used to specify the format used
  2642.      when new folders are created.
  2643.  
  2644. monitor        (boolean, default false)
  2645.      When set, nn will show all characters in the received messages using a
  2646.      "cat -v" like format. Otherwise, only the printable characters are shown
  2647.      (default).
  2648.  
  2649. motd        (boolean, default true)
  2650.      When set, nn will display the message of the day on start-up if it has
  2651.      changed since it was last shown. The message is taken from the file
  2652.      "motd" in the lib directory. It can also be shown (again) using the :motd
  2653.      command.
  2654.  
  2655. multi-key-guard-time timeout    (integer, default 2)
  2656.      When reading a multi-key sequence from the keyboard, nn will expect the
  2657.      characters constituting the multi-key to arrive "quickly" after each
  2658.      other. When a partial multi-key sequence is read, nn will wait (at least)
  2659.      timeout tenths of a second for each of the following characters to arrive
  2660.      to complete the multi-key sequence. If the multi-key sequence is not
  2661.      completed within this period, nn will read the partial multi-key sequence
  2662.      as individual characters instead. This way it is still possible to use
  2663.      for example the ESC key on a terminal with vt100 like arrow keys. When nn
  2664.      is used via an rlogin connection, you may have to increase the timeout to
  2665.      get reliable recognition of multi-keys.
  2666.  
  2667. new-group-action action    (integer, default 3)
  2668.      This variable controls how new groups are treated by nn. It is an integer
  2669.      variable, and the following values can be used. Some of these actions
  2670.      (marked with an *) will only work when keep-unsubscribed is set, since
  2671.      the presence of a group in .newsrc is the only way to recognize it as an
  2672.      old group:
  2673.      0) Ignore groups which are not in .newsrc. This will obviously include
  2674.      new groups.
  2675.      1*) Groups not in .newsrc are considered to be new, and are inserted at
  2676.      the beginning of the .newsrc file.
  2677.      2*) Groups not in .newsrc are considered to be new, and are appended to
  2678.      the end of the .newsrc file.
  2679.      3) New groups are recognized via a time-stamp saved in the file .nn/LAST
  2680.      and in the database, i.e. it is not dependent on the groups currently in
  2681.      .newsrc. The new groups are automatically appended to .newsrc with
  2682.      subscription. Old groups not present in .newsrc will be considered to be
  2683.      unsubscribed.
  2684.      4) As 3, but the user is asked to confirm that the new group should be
  2685.      appended to .newsrc. If rejected, the group will not be appended to
  2686.      .newsrc, and thus be regarded as unsubscribed.
  2687.      5) As 4, except that the information is stored in a format compatible
  2688.      with the rn news reader (.rnlast). This needs to be tested!
  2689.  
  2690. new-style-read-prompt    (boolean, default true)
  2691.      When set, the reading mode prompt line includes the group name and the
  2692.      number of selected articles in the group.
  2693.  
  2694. news-header headers    (string, default not set)
  2695.      The headers string specifies one or more extra header lines (separated by
  2696.      semi-colons `;') which are added to the header of articles posted from nn
  2697.      using the follow and post commands. See mail-header for an example.
  2698.  
  2699. news-record file    (string, default not set)
  2700.      Save file for follow-ups and postings. Same rules and format as the
  2701.      mail-record variable.
  2702.  
  2703. news-script file    (string, default not set)
  2704.      When set, nn will use the specified file instead of the standard aux
  2705.      script when executing the follow and post commands.
  2706.  
  2707. newsrc file        (string, default "~/.newsrc")
  2708.      Specifies the file used by nn to register which groups and articles have
  2709.      been read. The default setting corresponds to the .newsrc file used by
  2710.      other news readers. Notice that nn release 6.4 does allow individual
  2711.      articles to be marked unread, and some articles marked unread, and thus
  2712.      no longer messes up .newsrc for other news readers!
  2713.  
  2714. nntp-cache-dir directory    (string, default "~/.nn")
  2715.      When NNTP is used, nn needs to store articles temporarily on disk. This
  2716.      variable specifies which directory nn will use to hold these files. The
  2717.      default value may be changed during configuration. This variable can only
  2718.      be set in the init file.
  2719.  
  2720. nntp-cache-size size    (integer, default 10, maximum 10)
  2721.      Specifies the number of temporary files in the nntp cache. The default
  2722.      and maximum values may be changed during configuration.
  2723.  
  2724. nntp-debug    (boolean, default false)
  2725.      When set, a trace of the nntp related traffic is displayed in the message
  2726.      line on the screen.
  2727.  
  2728. old [max-articles]    (integer, default not set)
  2729.      When old is set, nn will present (or scan) all (or the last max-articles)
  2730.      unread as well as read articles. While old is set, nn will never mark any
  2731.      unread articles as read.
  2732.  
  2733. orig-to-include-mask N    (integer, default 3)
  2734.      When replying to an article, nn will include some of the header lines
  2735.      which may be used to construct a proper mail address for the poster of
  2736.      the original article. These addresses are placed on Orig-To: lines in the
  2737.      reply header and will automatically be removed before the letter is sent.
  2738.      This variable specifies which headers from the article are included; its
  2739.      value N is the sum of the following values:
  2740.            1: Reply-To:
  2741.            2: From:
  2742.            4: Path:
  2743.  
  2744. overlap lines    (integer, default 2)
  2745.      Specifies the number of overlapping lines from one page to the next when
  2746.      paging through an article in reading mode. The last line from the
  2747.      previous page will be underlined if the terminal has that capability.
  2748.  
  2749. pager shell-command        (string, default $PAGER)
  2750.      This is the pager used by the :admin command (and nnadmin) when it
  2751.      executes certain commands, e.g. grepping in the Log file.
  2752.  
  2753. patch-command shell-command    (string, default "patch -p0")
  2754.      This is the command which is invoked by the :patch command.
  2755.  
  2756. post-distribution words    (string, default see below)
  2757.      This variable controls how the Distribution: header is constructed when
  2758.      posting an original article. Its value is a list of words selected from
  2759.      the following list:
  2760.      [ ask ] [ default | distribution ]
  2761.      This is interpreted in two steps:
  2762.      - First the default distribution is determined. If default is specified
  2763.      (or distribution is omitted), the value of default-distribution is used.
  2764.      Otherwise, the specified distribution (any word) is used as the default.
  2765.      - Then if ask is specified, the user will be asked to confirm the default
  2766.      distribution or provide another distribution.
  2767.      The default value of post-distribution is ask default, i.e. use the
  2768.      default-distribution with confirmation from the user.
  2769.  
  2770. preview-continuation cond    (integer, default 12)
  2771.      This variable determines on what terms the following article should be
  2772.      automatically shown when previewing an article, and the next-article
  2773.      command is used, or continue is used at the end of the article. The
  2774.      following values can be used:
  2775.      0 - never show the next article (return to the menu).
  2776.      1 - always show the next article (use 'q' to return to the menu).
  2777.      2 - show the next article if it has the same subject as the current
  2778.      article, else return to the menu.
  2779.      The value should be the sum of two values: one for the action after using
  2780.      continue on the last page of the article, and one for the action
  2781.      performed when the next-article command is used multiplied by 10.
  2782.  
  2783. preview-mark-read        (boolean, default true)
  2784.      When set, previewing an article will mark the article as read.
  2785.  
  2786. previous-also-read    (boolean, default true)
  2787.      When set, going back to the previously read group with P {previous} will
  2788.      include articles read in the current invocation of nn even if there are
  2789.      still unread articles in the group.
  2790.  
  2791. print-header-lines fields    (string, default "FDGS")
  2792.      Specifies the list of header fields that are output when an article is
  2793.      printed via the :print command and print-header-type is 1 (short header).
  2794.      The fields specification is desctribed in the section on Customized
  2795.      Article Headers below.
  2796.  
  2797. print-header-type N    (integer, default 1)
  2798.      Specifies what kind of header is printed by the :print command,
  2799.      corresponding to the three save-* commands: 0 prints only the article
  2800.      body (no header), 1 prints a short header, and 2 prints the full article
  2801.      header.
  2802.  
  2803. printer shell-command    (string, default is system dep.)
  2804.      This is the default value for the print command. It should include an
  2805.      option which prevents the spooler from echoing a job-id or similar to the
  2806.      terminal to avoid problems with screen handling (e.g. lp -s on System V).
  2807.  
  2808. query-signature        (boolean, default ...)
  2809.      Will cause nn to require confirmation before appending the .signature
  2810.      file to out-going mail or news if the corresponding append-sig-...
  2811.      variable is set.
  2812.  
  2813. quick-count    (boolean, default true)
  2814.      When set, calculating the total number of unread articles at start-up is
  2815.      done by simple subtracting the first unread article number from the total
  2816.      number of articles in each group. This is very fast, and fairly accurate
  2817.      but it may be a bit too large. If not set, each line in .newsrc will be
  2818.      interpreted to count every unread article, thus giving a very accurate
  2819.      number. This variable is also used by nncheck.
  2820.  
  2821. quick-save    (boolean, default false)
  2822.      When set, nn will not prompt for a file name when an article is saved
  2823.      (unless it belongs to a folder). Instead it uses the save file specified
  2824.      for the current group in the init file or the default save file.
  2825.  
  2826. re-layout N        (integer, default 0)
  2827.      Normally on the menu, nn will prefix the subject a number of `>'s
  2828.      corresponding to the number of references on the References: line. The
  2829.      re-layout variable may be set to use a different prefix on the subjects:
  2830.            0: One `>' per reference is shown (default).
  2831.            1: A single `>' is shown if the Subject contains Re:.
  2832.            2: The number of references is shown as `n>'
  2833.            3: A single Re: is shown.
  2834.            4: If any references use layout 0, else layout 1.
  2835.  
  2836. re-layout-read N    (integer, default -1)
  2837.      When the header-lines variable is not set, or contains the "*" field
  2838.      specifier, a line similar to the menu line will be used as the header of
  2839.      the article in reading mode, including the sender's name and the
  2840.      article's subject. When this variable is negative, the subject on this
  2841.      header line will be prefixed according to the re-layout variable.
  2842.      Otherwise, it will define the format of the "Re:" prefix to be used
  2843.      instead of the re-layout used on the menu.
  2844.  
  2845. read-return-next-page    (boolean, default false)
  2846.      When set, the Z {read-return} command will return to the next menu page
  2847.      rather than the current menu page.
  2848.  
  2849. record file    (string, no default)
  2850.      Setting this pseudo variable will set both the mail-record and the
  2851.      news-record variables to the specified pathname.
  2852.  
  2853. repeat        (boolean, default false)
  2854.      When set, nn will not eliminate duplicated subject lines on menus (I
  2855.      cannot imagine why anyone should want that, but....)
  2856.  
  2857. repeat-group-query    (boolean, default false)
  2858.      When set, invoking nn with the -g option will always repeat the query for
  2859.      a group to enter until you quit explicitly. (Same as setting the -r
  2860.      option permanently).
  2861.  
  2862. report-cost        (boolean, default true)
  2863.      This variable is ignored unless nn is running with accounting enabled
  2864.      (see nnacct). When set, nn will report the cost of the current session
  2865.      and the total on exit.
  2866.  
  2867. response-check-pause pause    (integer, default 2)
  2868.      Specifies the number of seconds to wait after posting an article to see
  2869.      whether the action *might* have failed. Some commands run in the
  2870.      background and may thus not have completed during this period, so even
  2871.      when nn says "Article posted", it may still fail (in which case you are
  2872.      informed via mail).
  2873.  
  2874. response-default-answer action    (string, default "send")
  2875.      The default action to be taken when hitting return to the "response
  2876.      action" prompt (abort, edit, send, view, write). If it is unset, no
  2877.      default action is defined.
  2878.  
  2879. retain-seen-status    (boolean, default false)
  2880.      Normally, seen articles will just be unread the next time the group is
  2881.      entered (unless they were marked read by auto-junk-seen). If
  2882.      retain-seen-status is set, the seen attribute on the articles will
  2883.      survive to the next time the group is entered. (This is not recommended
  2884.      because it may result in very large select files).
  2885.  
  2886. retry-on-error times    (integer, default 0)
  2887.      When set, nn will try the specified number of times to open an article
  2888.      before reporting that the article does not exist any more. This may be
  2889.      necessary in some network environments.
  2890.  
  2891. save-closed-mode mode    (integer, default 13)
  2892.      When saving an article in selection mode (i.e. by selecting it from the
  2893.      menu), nn will simply save the specified article if the article's subject
  2894.      is open. When the selected menu entry is a closed subject, the
  2895.      save-closed-mode variable determines how many articles among the closed
  2896.      articles should be saved: 0: save root article (the one on the menu) only
  2897.      1: save selected articles within subject 2: save unread (excl selected)
  2898.      articles within subject 3: save selected+unread articles within subject
  2899.      4: save all articles within subject If `10' is added to the above values,
  2900.      nn will not save the selected subject immediately; instead it will ask
  2901.      which articles to save using the above value as the default answer.
  2902.  
  2903. save-counter format    (string, default "%d")
  2904.      This is the printf-format which nn uses to create substitution string for
  2905.      the trailing * in save file names. You can set this to more complex
  2906.      formats if you like, but be sure that it will produce different strings
  2907.      for different numbers. An alternative format which seems to be popular is
  2908.      ".%02d" .
  2909.  
  2910. save-counter-offset N    (integer, default 0)
  2911.      Normally, file names created with the part.* form will substitute the *
  2912.      with successive numbers starting from one. Setting this variable will
  2913.      cause these numbers to start from N+1.
  2914.  
  2915. save-header-lines fields    (string, default "FDNS")
  2916.      Specifies the list of header fields that are saved when an article is
  2917.      saved via the O {save-short} command. The fields specification is
  2918.      desctribed in the section on Customized Article Headers below.
  2919.  
  2920. save-report    (boolean, default true)
  2921.      When set, a message reporting the number of lines written is shown after
  2922.      saving an article. Since messages are shown for a few seconds, this may
  2923.      slow down the saving of many articles (e.g. using the S* command).
  2924.  
  2925. scroll-clear-page        (boolean, default true)
  2926.      Determines whether nn clears the screen before showing each new page of
  2927.      an article.
  2928.  
  2929. scroll-last-lines N        (integer, default 0)
  2930.      Normally, nn will show each new page of an article from the top of the
  2931.      screen (with proper marking of the overlap). When this variable is set to
  2932.      a negative value, nn will scroll the text of the new pages from the
  2933.      bottom of the screen instead. If it is set to a positive value, nn will
  2934.      show pages from the top as usual, but switch to scrolling when there are
  2935.      less than the specified number of lines left in the article.
  2936.  
  2937. select-leave-next        (boolean, default false)
  2938.      When set, you will be asked whether to select articles with the
  2939.      leave-next attribute on entry to a group with left over articles.
  2940.  
  2941. select-on-sender        (boolean, default false)
  2942.      Specifies whether the find (=) command in article selection mode will
  2943.      match on the subject or the sender.
  2944.  
  2945. shading-on code...    (control string, default not set)
  2946.      Specifies the escape code to be sent to the terminal to cause "shading"
  2947.      of the following output to the screen. This is used if the
  2948.      mark-overlap-shading is set, and by the `+' attribute in the header-lines
  2949.      variable.
  2950.  
  2951. shading-off code...    (control string, default not set)
  2952.      Specifies the escape code to be sent to the terminal to turn off the
  2953.      shading defined by shading-on. Shading will typically be done by changing
  2954.      the foreground colour to change, e.g.
  2955.            on term ti924-colour
  2956.            set shading-on ^[ [ 3 2 m
  2957.            set shading-off ^[ [ 3 7 m
  2958.            set mark-overlap-shading
  2959.            unset mark-overlap
  2960.            end
  2961.  
  2962. shell program    (string, default $SHELL)
  2963.      The shell program used to execute shell escapes.
  2964.  
  2965. shell-restrictions    (boolean, default false)
  2966.      When set (in the init file), nn will not allow the user to invoke the
  2967.      shell in any way, including saving on pipes. It also prevents the user
  2968.      from changing certain variables containing commands.
  2969.  
  2970. show-purpose-mode N        (integer, default 1)
  2971.      Normally, nn will show the purpose of a group the first time it is read,
  2972.      provided a purpose is known. Setting this variable, this behaviour can be
  2973.      changed as follows:
  2974.            0: Never show the purpose.
  2975.            1: Show the purpose for new groups only.
  2976.            2: Show the purpose for all groups.
  2977.  
  2978. silent        (boolean, default false)
  2979.      When set, nn wont print the logo or "No News" if there are no unread
  2980.      articles. Only useful to set in the init file or with the -Q option.
  2981.  
  2982. slow-mode        (boolean, default false)
  2983.      When set, nn will cut down on the screen output to give better response
  2984.      time at low speed. Normally, nn will use standout mode (if possible) to
  2985.      mark selected articles on the menu, but when slow-mode is set, nn will
  2986.      just put an asterisk `*' next to the article identifier on selected
  2987.      articles. Also when slow-mode is set nn will avoid redrawing the screen
  2988.      in the following cases: After a goto-group command an empty menu is shown
  2989.      (hit space to make it appear), and after responding to an article, only
  2990.      the prompt line is shown (use ^L to redraw the screen). To avoid
  2991.      redrawing the screen after an extended command, set the delay-redraw
  2992.      variable as well.
  2993.  
  2994. slow-speed speed    (integer, default 1200)
  2995.      If the terminal is running at this baud rate or lower, the on slow (see
  2996.      the section on init files) condition will be true, and the on fast will
  2997.      be false (and vice-versa).
  2998.  
  2999. sort        (boolean, default true)
  3000.      When set, nn will sort articles according to the current sort-mode on
  3001.      entry to a group. Otherwise, articles will be presented in order of
  3002.      arrival. If not set on entry to a menu for merged groups, the articles
  3003.      from each group will be kept together on the menu. If sort is unset while
  3004.      merged groups are presented on the menu, the articles will be reordered
  3005.      by local article number (which may not keep articles from the same group
  3006.      together).
  3007.  
  3008. sort-mode mode    (integer, default 1)
  3009.      The default sort algorithm used to sort the articles on entry to a news
  3010.      group. It is a numeric value corresponding to one of the sorting methods
  3011.      described in connection with the :sort command:
  3012.            0 - arrival (ordered by article number)
  3013.            1 - subject (subjects ordered after age of first article)
  3014.            2 - lexical (subjects in lexicographical order)
  3015.            3 - age (articles ordered after posting date only)
  3016.            4 - sender (articles ordered after sender's name)
  3017.  
  3018. spell-checker shell-command    (string, default not set)
  3019.      When set, responses can be checked for spelling mistakes via the (i)spell
  3020.      action. The command to perform the spelling is given the file containing
  3021.      the full article including header as its only argument. If the spell
  3022.      checker can fix spelling mistakes, it must apply the changes directly to
  3023.      this file.
  3024.  
  3025. split        (boolean, default true)
  3026.      When set, digests will automatically and silently be split into
  3027.      sub-articles which are then handled transparently as normal articles.
  3028.      Otherwise, digests are presented as one article (which you can split on
  3029.      demand with the G command).
  3030.  
  3031. stop lines    (integer, default not set)
  3032.      When stop is set, nn will only show the first lines lines of the of each
  3033.      article before prompting you to continue. This is useful on slow
  3034.      terminals and modem lines to be able to see the first few lines of longer
  3035.      articles (and skipping the rest with the n command).
  3036.  
  3037. subject-match-limit length    (integer, default 256)
  3038.      Subjects will be considered identical if their first length characters
  3039.      match. Setting this uncritically to a low value may cause unexpected
  3040.      results!
  3041.  
  3042. subject-match-offset offset    (integer, default 0)
  3043.      When set to a positive number, that many characters at the beginning of
  3044.      the subject will be ignored when comparing subjects for ordering and
  3045.      equality purposes.
  3046.  
  3047. subject-match-parts    (boolean, default false)
  3048.      When set, two subjects will be considered equal if they are identical up
  3049.      to the first (differing) digit. Together with the subject-match-offset
  3050.      variable, this can be used in source groups where the subject often has a
  3051.      format like:
  3052.            vXXXXXX: Name of the package (Part 01/04)
  3053.      Setting subject-match-offset to 8 and subject-match-parts to true will
  3054.      make nn consider all four parts of the package having the same subject
  3055.      (and thus be selectable with `*').
  3056.      Notice that changing the subject-match-... variables manually will not
  3057.      have an immediate effect. To reorder the menu, an explicit :sort command
  3058.      must be performed. These variables are mainly intended to be set using
  3059.      the :local command in on entry macros for source and binary groups (entry
  3060.      macros are evaluated before the menu is collected and sorted).
  3061.  
  3062. suggest-default-save    (boolean, default true)
  3063.      When set, nn will present the default-save-file when prompting for a save
  3064.      file name in a group without a specific save file, or folder-save-file
  3065.      when saving from a folder. When not set, no file name is presented, and
  3066.      to use the default save file, a single + must be specified.
  3067.  
  3068. tidy-newsrc        (boolean, default false)
  3069.      When set, nn will automatically remove lines from .newsrc which represent
  3070.      groups not found in the active file or unsubscribed groups if
  3071.      keep-unsubscribed is not set.
  3072.  
  3073. time        (boolean, default true)
  3074.      When set, nn will show the current time in the prompt line. This is
  3075.      useful on systems without a sysline (1) utility.
  3076.  
  3077. trace-folder-packing    (boolean, default true)
  3078.      When set, a trace of the retained and deleted messages is printed when a
  3079.      folder is rewritten.
  3080.  
  3081. trusted-escape-codes codes    (string, default none)
  3082.      When set to a list of one or more characters, nn will trust and output
  3083.      escape characters in an article if it is followed by one of the
  3084.      characters in the list. For example, to switch to or from kanji mode,
  3085.      control codes like "esc\ $" and "esc\ (\ J" may be present in the text.
  3086.      To allow these codes, use the following command:
  3087.            set trusted-escape-codes ($
  3088.      You can also set it to all to pass all espace codes through to the
  3089.      screen. Notice that nn thinks all characters (including esc) output to
  3090.      the screen as occupy one column.
  3091.  
  3092. unshar-command shell-command    (string, default "/bin/sh")
  3093.      This is the command which is invoked by the unshar command.
  3094.  
  3095. unshar-header-file file    (string, default "Unshar.Headers")
  3096.      The name of the file in which the header and initial text of articles
  3097.      unpacked with the :unshar command is saved. Unless the file name starts
  3098.      with a `/', the file will be created in the same directory as the
  3099.      unpacked files. The information is not saved if this variable is not set.
  3100.      Setting it to "Unshar.Result" will cause the headers and the results from
  3101.      the unpacking process to be merged in a meaningful way (unless
  3102.      mmdf-format is set).
  3103.  
  3104. unsubscribe-mark-read    (boolean, default true)
  3105.      When set, unsubscribing to a group will automatically mark all current
  3106.      articles read; this is recommended to keep the size of .newsrc down.
  3107.      Otherwise, unread articles in the unsubscribe groups are kept in .newsrc.
  3108.      If keep-unsubscribed is false, this variable has no effect.
  3109.  
  3110. update-frequency        (integer, default 1)
  3111.      Specifies how many changes need to be done to the .newsrc or select files
  3112.      before they are written back to disk. The default setting causes .newsrc
  3113.      to be updated every time a group has been read.
  3114.  
  3115. use-path-in-from        (boolean, default false)
  3116.      When mail-format is set, saved articles will be preceded by a specially
  3117.      formatted "From\ " line:
  3118.            From origin date
  3119.      Normally, the origin will be the name of the news group where the article
  3120.      appeared, but if use-path-in-from is set, the contents of the "Path:"
  3121.      header will be used as the origin.
  3122.  
  3123. use-selections        (boolean, default true)
  3124.      When set, nn uses the selections and other article attributes saved last
  3125.      time nn was used. If not set, nn ignores the select file.
  3126.  
  3127. visible-bell    (boolean, default true)
  3128.      When set, nn will flash the screen instead of "ringing the bell" if the
  3129.      visible bell (flash) capability is defined in the termcap/terminfo
  3130.      database.
  3131.  
  3132. window size    (integer, default not set)
  3133.      When set, nn will reserve the last size lines of the menu screen for a
  3134.      preview window. If not set, nn will clear the screen to preview an
  3135.      article if there are less than min-window lines at the bottom of the
  3136.      screen. As a side effect, it can also be used to reduce the size of the
  3137.      menus, which may be useful on slow terminals.
  3138.  
  3139. word-key key    (key, default ^W)
  3140.      The key which erases the last input component or word when nn is
  3141.      prompting for a string, e.g. the last name in a path name.
  3142.  
  3143. wrap-header-margin size    (integer, default 6)
  3144.      When set (non-negative), the customized header fields specified in
  3145.      header-lines will be split across several lines if they don't fit on one
  3146.      line. When size is greater than zero, lines will be split at the first
  3147.      space occurring in the last size columns of the line. If not set (or
  3148.      negative), long header lines will be truncated if they don't fit on a
  3149.      single line.
  3150.  
  3151. From: NN
  3152. Subject: CUSTOMIZED ARTICLE HEADER PRESENTATION
  3153.  
  3154. Normally, nn will just print a (high-lighted) single line header containing
  3155. the author, subject, and date (optional) of the article when it is read.
  3156.  
  3157. By setting the header-lines variable as described below, it is possible to get
  3158. a more informative multi line header with optional high-lighting and
  3159. underlining.
  3160.  
  3161. The header-lines variable is set to a list of header line identifiers, and the
  3162. customized headers will then contain exactly these header lines in the
  3163. specified order.
  3164.  
  3165. The same specifications are also used by the :print and save-short commands
  3166. via the print-header-lines and save-header-lines variables.
  3167.  
  3168. The following header line identifiers are recognized in the header-lines,
  3169. print-header-lines, and save-header-lines variables:
  3170.  
  3171.     A    Approved:
  3172.     a    Spool-File:(path of spool file containing the article)
  3173.     B    Distribution:
  3174.     C    Control:
  3175.     D    Date:
  3176.     d    Date-Received:
  3177.     F    From:
  3178.     f    Sender:
  3179.     G    Newsgroup:(current group)
  3180.     g    Newsgroup:(current group if cross-posted or merged)
  3181.     I    Message-Id:
  3182.     K    Keywords:
  3183.     L    Lines:
  3184.     N    Newsgroups:
  3185.     n    Newsgroups:   (but only if cross posted)
  3186.     O    Organization:
  3187.     P    Path:
  3188.     R    Reply-To:
  3189.     S    Subject:
  3190.     v    Save-File:(the default save file for this article)
  3191.     W    Followup-To:
  3192.     X    References:
  3193.     x    Back-References:
  3194.     Y    Summary:
  3195.  
  3196. The 'G' and 'g' fields will include the local article number if it is known,
  3197. e.g.
  3198.       Newsgroup: news.software.nn/754
  3199.  
  3200. The following special symbols are recognized in the header-lines variable (and
  3201. ignored otherwise):
  3202.  
  3203. Preceding the identifier with an equal sign "=" or an underscore "_" will
  3204. cause the header field contents to be high-lighted or underlined.
  3205.  
  3206. A plus sign "+" will use the shading attribute defined by shading-on and
  3207. shading-off to high-light the field contents. If no shading attribute is
  3208. defined it will underline the field instead.
  3209.  
  3210. Including an asterisk "*" in the list will produce the standard one line
  3211. header at that point.
  3212.  
  3213. Example: The following setting of the header-lines variable will show the
  3214. author (underlined), organization, posting date, and subject (high-lighted)
  3215. when articles are read:
  3216.       set header-lines _FOD=S
  3217.  
  3218. From: NN
  3219. Subject: COMMAND LINE OPTIONS
  3220.  
  3221. Some of the command line options have already been described, but below we
  3222. provide a complete list of the effect of each option by showing the equivalent
  3223. set, unset, or toggle command.
  3224.  
  3225. Besides the options described below, you can set any of nn's variables
  3226. directly on the command line via an argument of the following format:
  3227.       variable=value
  3228. To set or unset a boolean variable, the value can be specified as on or off (t
  3229. and f will also work).
  3230.  
  3231. Notice that the init files are read before the options are parsed (unless you
  3232. use the -I option). Therefore, the options which are related to boolean
  3233. variables set in the init file will toggle the value set there, rather than
  3234. the default value. Consequently, the meaning of the options are also
  3235. user-defined.
  3236.  
  3237. The explanations below describe the effect related to the default setting of
  3238. the variables, with the `reverse' effect in square brackets.
  3239.  
  3240. -aN    {set limit N}
  3241.      Limit the maximum number of articles presented in each group to N. This
  3242.      is useful to get up-to-date quickly if you have not read news for a
  3243.      longer period.
  3244.  
  3245. -a0  Mark all unread articles as read. See the full explanation at the
  3246.      beginning of this manual.
  3247.  
  3248. -B    {toggle backup}
  3249.      Do not [do] backup the rc file.
  3250.  
  3251. -d    {toggle split}
  3252.      Do not [do] split digests into separate articles.
  3253.  
  3254. -f    {toggle fsort}
  3255.      Do not [do] sort folders according to the subject (present the articles
  3256.      in a folder in the sequence in which they were saved).
  3257.  
  3258. -g   Prompt for the name of a news group or folder to be entered
  3259.  
  3260. -i    {toggle case-fold-search}
  3261.      Normally searches with -n and -s are case independent. Using this option,
  3262.      the case becomes significant.
  3263.  
  3264. -I   Do not read the init file. This must be the first option!! The global
  3265.      setup file is still read.
  3266.  
  3267. -Ifile-list
  3268.      Specifies an alternate list of init files to be loaded instead of the
  3269.      standard global and private init files. The list is a comma-separated
  3270.      list of file names. Names which does not contain a `/' are looked for in
  3271.      the ~/.nn directory. An empty element in the list is interpreted as the
  3272.      global init file. The list of init files must not be separated from the
  3273.      -I option by blanks, and it must be the first option. Example: The
  3274.      default behaviour corresponds to using -I,init (first the global file,
  3275.      then the file ~/.nn/init). The global setup file is still read as the
  3276.      first init file independently of the -I option used.
  3277.  
  3278. -k    {toggle kill}
  3279.      Do not [do] perform automatic kill and selection of articles.
  3280.  
  3281. -lN    {set stop N}
  3282.      Stop after printing the first N lines of each article. This is useful on
  3283.      slow terminals.
  3284.  
  3285. -L[f]    {set layout f}
  3286.      Select alternative menu layout f (0 to 4). If f is omitted, menu layout 3
  3287.      is selected.
  3288.  
  3289. -m    {no corresponding variable}
  3290.      Merge all articles into one `meta group' instead of showing them one
  3291.      group at a time. When -m is used, no articles will be marked as read.
  3292.  
  3293. -nWORD
  3294.      Collect only articles which contain the string WORD in the sender's name
  3295.      (case is ignored). If WORD starts with a slash `/', the rest of the
  3296.      argument is used as a regular expression instead of a fixed string.
  3297.  
  3298. -N    {no corresponding variable}
  3299.      Disable updating of the rc file. This includes not recording that groups
  3300.      have been read or unsubscribed to (although nn will think so until you
  3301.      quit).
  3302.  
  3303. -q    {toggle sort}
  3304.      Do not [do] sort the articles (q means quick, but it isn't any quicker in
  3305.      practice!)
  3306.  
  3307. -Q    {toggle silent}
  3308.      Quiet mode - don't [do] print the logo or "No News" messages.
  3309.  
  3310. -r    {toggle repeat-group-query}
  3311.      Make -g repeat query for a group to enter.
  3312.  
  3313. -sWORD
  3314.      Collect only articles which contain the string WORD in their subject
  3315.      (case is ignored). If WORD starts with a slash `/', the rest of the
  3316.      argument is used as a regular expression instead of a fixed string.
  3317.  
  3318. -S    {toggle repeat}
  3319.      Do not [do] eliminate duplicated subject lines on menus.
  3320.  
  3321. -T    {toggle time}
  3322.      Do not [do] show the current time in the prompt line.
  3323.  
  3324. -w[N]    {set window N}
  3325.      Reserve N lines of the menu screen for a preview window. If N is omitted,
  3326.      the preview window is set to 5 lines.
  3327.  
  3328. -W    {toggle confirm-messages}
  3329.      [Don't] Wait for confirmation on all messages.
  3330.  
  3331. -x[N]    {set old N}
  3332.      Present (or scan) all (or the last N) unread as well as read articles.
  3333.      This will never mark unread articles as read.
  3334.  
  3335. -X    {no corresponding variable}
  3336.      Read/scan unsubscribed groups also. Most useful when looking for a
  3337.      specific subject in all groups, e.g.
  3338.            nn -mxX -sSubject all
  3339.      
  3340.  
  3341. From: NN
  3342. Subject: MACRO DEFINITIONS
  3343.  
  3344. Practically any combination of commands and key strokes can be defined as a
  3345. macro which can be bound to a single key in menu and/or reading mode.
  3346.  
  3347. The macro definition must specify a sequence of commands and key strokes as if
  3348. they were typed directly from the keyboard. For example, a string specifying a
  3349. file name must follow a save command. This manual does not give a complete
  3350. specification of all the input required by the various commands; it is
  3351. recommended to execute the desired command sequence from the keyboard prior to
  3352. defining the macro to get the exact requirements of each command.
  3353.  
  3354. Although it is possible to define temporary macros interactively using the
  3355. :define command, macro definitions are normally placed in the init file.
  3356. Macros are numbered from 0 to 100, i.e. it is possible to define a total of
  3357. 101 different macros (implicit macros defined with the map command uses
  3358. internal numbers from 101 to 200).
  3359.  
  3360. To define macro number M, the following construction is used (the line breaks
  3361. are mandatory):
  3362.       define M
  3363.       body
  3364.       end
  3365.  
  3366. The body consists of a sequence of tokens separated by white space (blanks or
  3367. newlines). However, certain tokens continue to the end of the current line.
  3368.  
  3369. The following tokens may occur in the macro body:
  3370.  
  3371. Comments
  3372.      Empty lines and text following a # character (preceded by white space) is
  3373.      ignored.
  3374.  
  3375. Command Names
  3376.      Any command name listed in the key mapping section can be included in a
  3377.      macro causing that command to be invoked when the macro is executed.
  3378.  
  3379. Extended Commands
  3380.      All the extended commands which can be executed through the command
  3381.      command (normally bound to the : key) can also be executed in a macro. An
  3382.      extended command starts with a colon (:) and continues to the end of the
  3383.      current line. Example:
  3384.            :show groups total
  3385.  
  3386. Key Strokes
  3387.      A key stroke (which is normally mapped into a command depending on the
  3388.      current mode) is specified as a key name enclosed in single quotes.
  3389.      Examples (A-key, left arrow key, RETURN key):
  3390.            'A' 'left' '^M'
  3391.  
  3392. Shell Commands
  3393.      External commands can be invoked as part of a macro execution. There are
  3394.      two forms of shell command invocations available depending on whether a
  3395.      command may produce output or require user input, or it is guaranteed to
  3396.      complete without input or output to the terminal. The difference is that
  3397.      in the latter case, nn does not prepare the terminal to be used by
  3398.      another program. When the command completes, the screen is not redrawn
  3399.      automatically; you should use the redraw command to do that. The tho
  3400.      forms are:
  3401.            :!echo this command uses the terminal
  3402.            :!!echo this command does not > /tmp/file
  3403.  
  3404. Strings
  3405.      Input to commands prompting for a string, e.g. a file name, can be
  3406.      specified in a macro as a double quoted string. Example (save without
  3407.      prompting for a file name):
  3408.            save-short "+$G"
  3409.  
  3410. Conditionals
  3411.      Conditionals may occur anywhere in a macro; a conditional is evaluated
  3412.      when the macro is executed, and if the condition is false the rest of the
  3413.      current line is ignored. The following conditionals are available:
  3414.            ?menu True in menu mode
  3415.            ?show True in reading mode
  3416.            ?folder True when looking at a folder
  3417.            ?group True when looking at a news group
  3418.            ?yes Query user, true if answer is yes
  3419.            ?no Query user, true if answer is no Example (stop macro execution
  3420.      if user rejects to continue):
  3421.            prompt "continue? " ?no break
  3422.      In addition to these conditionals, it is possible to test the current
  3423.      value of boolean and integer variables using the following form:
  3424.            ?variable=value
  3425.      This conditional will be true (1) if the variable is an integer variable
  3426.      whose current value is the one specified, or (2) if the variable is a
  3427.      boolean variable which is either on or off. Examples:
  3428.            ?layout=3 :set layout 1
  3429.            ?monitor=on break
  3430.            ?sort=off :sort age
  3431.  
  3432. break
  3433.      Terminate macro execution completely. This includes nested macros.
  3434.      Example (stop if looking at a folder):
  3435.            ?folder break
  3436.  
  3437. return
  3438.      Terminate execution of current macro. If the current macro is called from
  3439.      another macro, execution of that macro continues immediately.
  3440.  
  3441. input
  3442.      Query the user for a key stroke or a string, for example a file name.
  3443.      Example (prompt the user for a file name in the usual way):
  3444.            save-short input
  3445.  
  3446. yes  Confirm unconditionally if a command requires confirmation. It is ignored
  3447.      if the command does not require confirmation. Example (confirm creation
  3448.      of new files):
  3449.            save-short "+$G" yes
  3450.  
  3451. no   Terminate execution of current macro if a command requires confirmation;
  3452.      otherwise ignore it. If neither yes nor no is specified when a command
  3453.      requires confirmation, the user must answer the question as usual - if
  3454.      the user confirms the action execution continues normally; otherwise the
  3455.      execution of the current macro is terminated. Example (do not create new
  3456.      files):
  3457.            save-short "+$L/misc" no
  3458.  
  3459. prompt string
  3460.      Print the string in the prompt line (highlighted). The string must be
  3461.      enclosed in double quotes. Example:
  3462.            prompt "Enter recipient name"
  3463.      When the macro terminates, the original prompt shown on entry to the
  3464.      macro will automatically be redrawn. If this is not desirable (e.g. if
  3465.      the macro goes from selection to reading mode), the redrawing of the
  3466.      prompt can be disabled by using a prompt command with an empty string
  3467.      (""). Example:
  3468.            prompt "Enter reading mode?" # old prompt is saved
  3469.            ?no return # and old prompt is restored
  3470.            read-skip # changes the prompt
  3471.            prompt "" # so forget old prompt
  3472.  
  3473. echo string
  3474.      Display the string in the prompt line for a short period. Example:
  3475.            ?show echo "Cannot be used in reading mode" break
  3476.  
  3477. puts string-to-end-of-line
  3478.      The rest of the line is output directly to the terminal without
  3479.      interpretation.
  3480.  
  3481. macro M
  3482.      Invoke macro number M. The maximum macro nesting level is five (also
  3483.      catches macro loops).
  3484.  
  3485. I use the following macro to quickly save all the selected files in a file
  3486. whose name is entered as usual. It also works in reading mode (saving just the
  3487. current article).
  3488.       define 1
  3489.       :unset save-report
  3490.       save-short input yes
  3491.       ?menu '+'
  3492.       :set save-report
  3493.       end
  3494.  
  3495. From: NN
  3496. Subject: KEY MAPPINGS
  3497.  
  3498. The descriptions of the keys and commands provided in this manual reflects the
  3499. default key mappings in nn. However, you can easily change these mappings to
  3500. match your personal demands, and it is also possible to remap keys depending
  3501. on the terminal in use. Permanent remapping of keys must be done through the
  3502. init file, while temporary changes (for the duration of the current invocation
  3503. of nn) can be made with the :map command.
  3504.  
  3505. The binding and mapping of keys are controlled by four tables:
  3506.  
  3507. The multikey definition table
  3508.      This table is used for mapping multicharacter key sequences into single
  3509.      characters. By default the table contains the mappings for the four
  3510.      cursor keys, and there is room for 10 user-defined multikeys. The
  3511.      fourteen multikeys are named: up, down, right, left (the four arrow keys),
  3512.      and #0 through #9 for the user-defined keys.
  3513.      Multikey #i (where i is a digit or an arrow key name) is defined using
  3514.      the following command:
  3515.            map #i key-sequence
  3516.      where the sequence is a list of 7-bit character names (see below)
  3517.      separated by spaces. For example, if the HOME key sends the sequence ESC
  3518.      [ H, you can define multikey #0 to be the home key using the command:
  3519.            map #0 ^[ [ H
  3520.  
  3521. The input key mapping table
  3522.      All characters that are read from the keyboard will be mapped through the
  3523.      input mapping table. Consequently, you can globally remap one key to
  3524.      produce any other key value. By default all keys are mapped into
  3525.      themselves.
  3526.      An entry in the input key mapping table to map input-key into new-key is
  3527.      made with the command
  3528.            map key input-key new-key
  3529.      For example, to make your ESC key function as interrupt you can use the
  3530.      command
  3531.            map key ^[ ^G
  3532.  
  3533. The selection mode key binding table
  3534.      This table defines for each key which command should be invoked when that
  3535.      key is pressed in selection mode, i.e. when the article menu is shown.
  3536.      The command to bind a key to a command in selection mode is:
  3537.            map menu key command
  3538.      For example, to have the HOME key defined as multikey #0 above bound to
  3539.      the select command, the following command is used:
  3540.            map menu #0 select
  3541.      To remap a key to select a specific article on the menu (which the `a'
  3542.      through `z' keys do by default), the command must be specified as
  3543.      `article N' where N is the entry number on the menu counted from zero
  3544.      (i.e. a=0, b=1, ..., z=25, 0=26, ..., 9=35). For example, to map `J' to
  3545.      select article `j', the following command is used:
  3546.            map menu J article 9
  3547.  
  3548. The reading mode key binding table
  3549.      This table defines for each key which command should be invoked when that
  3550.      key is pressed in reading mode, i.e. when the article text is shown. The
  3551.      command to bind a key to a command in reading mode is:
  3552.            map show key command
  3553.  
  3554. In addition to the direct mappings described above, the following variations
  3555. of the map command are available:
  3556.  
  3557. User defined keymaps
  3558.      Additional keymaps can be defined using the command
  3559.            make map newmap
  3560.      This will create a new keymap which can initialized using normal map
  3561.      commands, e.g.
  3562.            map newmap key command
  3563.      To activate a user-defined keymap, it must be bound to a prefix key:
  3564.            map base-map prefix-key prefix newmap
  3565.      When used, the prefix key itself does not activate a command, but instead
  3566.      it require another key to be entered and then execute the command bound
  3567.      to that key in the keymap which is bound to the prefix key.
  3568.            For example, to let the key sequence "^X i" execute macro number 10
  3569.      in both modes, the following commands can be used:
  3570.            make map ctl-x
  3571.            map ctl-x i macro 10
  3572.            map both ^X prefix ctl-x
  3573.  
  3574. Mapping keys in both modes
  3575.      Using the pseudo-keymap `both', it is possible to map a key to a command
  3576.      in both selection and reading mode at once. For example, to map the home
  3577.      key to macro number 5 in both modes, the following command can be used:
  3578.            map both #0 macro 5
  3579.  
  3580. Aliasing
  3581.      A key can also be mapped directly to the command currently bound to
  3582.      another key. Later remapping of the other key will not change the mapping
  3583.      of the `aliased' key. This is done using the following command:
  3584.            map keymap new-key as old-key
  3585.  
  3586. Binding macros to keys
  3587.      A previously defined macro can be bound to a key using the command:
  3588.            map keymap key macro macro-number
  3589.  
  3590. Implicit macro definitions
  3591.      An implicit macro can also be defined directly in connection with the map
  3592.      command:
  3593.            map keymap key (
  3594.            body...
  3595.            )
  3596.  
  3597. Keys and character names are specified using the following notation:
  3598.  
  3599. C    A single printable character represents the key or character itself.
  3600.  
  3601. ^C   This notation represents a control key or character. DEL is written as ^?
  3602.  
  3603. 125, 0175, 0x7D
  3604.      Characters and keys can be specified by their ordinal value in decimal,
  3605.      octal, and hexadecimal notation.
  3606.  
  3607. up, down, right, left
  3608.      These names represent the cursor keys.
  3609.  
  3610. #0  through  #9
  3611.      These symbols represent the ten user-defined multikeys.
  3612.  
  3613. If the variable data-bits is 7, key maps can specify binding of all keys in
  3614. the range 0x00 to 0x7F, and the 8th bit will be stripped in all keyboard
  3615. input. If the variable data-bits is 8, the 8th bit is not cleared, and key
  3616. maps are extended to allow binding of keys in the range 0xA0 to 0xFE
  3617. (corresponding to the national characters defined by the ISO 8859 character
  3618. sets). Binding commands to these keys can be done either by using their
  3619. numeric value, or directly specifying the 8 bit character in the map command,
  3620. e.g.
  3621.       map menu 0xC8 macro 72
  3622.       map key \o'\(aae' %
  3623.  
  3624. To show the current contents of the four tables, the following versions of the
  3625. :map command are available:
  3626.  
  3627. :map Show the current mode's key bindings.
  3628.  
  3629. :map menu
  3630.      Show the selection mode key bindings.
  3631.  
  3632. :map show
  3633.      Show the reading mode key bindings.
  3634.  
  3635. :map #
  3636.      Show the multikey definition table.
  3637.  
  3638. :map key
  3639.      Show the input key mapping table.
  3640.  
  3641. From: NN
  3642. Subject: STANDARD KEY BINDINGS
  3643.  
  3644. Below is a list of all the commands that can be bound to keys, either in
  3645. selection mode, in reading mode, or both. For each command the default command
  3646. key bindings in both modes are shown. If the key is not bound in one of the
  3647. modes, but it can be bound, the corresponding part will just be empty. If the
  3648. command cannot be bound in one of the modes, that mode will contain the word
  3649. nix.
  3650.  
  3651.     Function              Selection mode  Reading mode
  3652.     advance-article       nix             a
  3653.     advance-group         A               A
  3654.     article N             a-z0-9          nix
  3655.     back-article          nix             b
  3656.     back-group            B               B
  3657.     cancel                C               C
  3658.     command               :               :
  3659.     compress              nix             c
  3660.     continue              space           space
  3661.     continue-no-mark      return          nix
  3662.     decode
  3663.     find                  =               /
  3664.     find-next             nix             .
  3665.     follow                F               fF
  3666.     full-digest           nix             H
  3667.     goto-group            G               G
  3668.     goto-menu             nix             = Z
  3669.     help                  ?               ?
  3670.     junk-articles         J               nix
  3671.     kill-select           K               K
  3672.     layout                "               nix
  3673.     leave-article         nix             l
  3674.     leave-next            L               L
  3675.     line+1                ,  down         return
  3676.     line-1                /               nix
  3677.     line=@                nix             g
  3678.     macro M
  3679.     mail                  M               m M
  3680.     message               ^P              ^P
  3681.     next-article          nix             n
  3682.     next-group            N               N
  3683.     next-subject          nix             k
  3684.     nil
  3685.     overview              Y               Y
  3686.     page+1                >               nix
  3687.     page+1/2              nix             d
  3688.     page-1                <               delete  backspace
  3689.     page-1/2              nix             u
  3690.     page=0                nix             h
  3691.     page=1                ^               ^
  3692.     page=$                $               $
  3693.     patch
  3694.     post
  3695.     preview               %               %
  3696.     previous              P               p
  3697.     print                                 P
  3698.     quit                  Q               Q
  3699.     read-return           Z               nix
  3700.     read-skip             X               X
  3701.     redraw                ^L ^R           ^L ^R
  3702.     reply                 R               r R
  3703.     rot13                 nix             D
  3704.     save-body             W               w W
  3705.     save-full             S               s S
  3706.     save-short            O               o O
  3707.     select                .               nix
  3708.     select-auto           +               nix
  3709.     select-invert         @               nix
  3710.     select-range          -               nix
  3711.     select-subject        *               *
  3712.     shell                 !               !
  3713.     skip-lines            nix             tab
  3714.     unselect-all          ~               nix
  3715.     unshar
  3716.     unsub                 U               U
  3717.     version               V               V
  3718.  
  3719. See the descriptions of the default bindings for a description of the
  3720. commands. The pseudo command nil is used to unbind a key.
  3721.  
  3722. From: NN
  3723. Subject: THE INIT FILES
  3724.  
  3725. The init files are used to customize nn's behaviour to local conventions and
  3726. restrictions and to satisfy each user's personal taste.
  3727. Normally, nn reads upto three init files on start-up if they exist (all init
  3728. files are optional):
  3729.  
  3730. $LIB/setup
  3731.      A system-wide file located in the library directory. This file is always
  3732.      loaded before any other init file (even when the -I option is specified).
  3733.      It cannot contain a group presentation sequence.
  3734.  
  3735. $LIB/init
  3736.      Another system-wide (global) init file located in the library directory.
  3737.      This file may be ignored via the -I option.
  3738.  
  3739. ~/.nn/init
  3740.      The private init file located in the user's .nn directory. It is read
  3741.      after the global init file to allow the user to change the default setup.
  3742.  
  3743. The init file is parsed one line at a time. If a line ends with a backslash
  3744. `\', the backslash is ignored, and the following line is appended to the
  3745. current line.
  3746.  
  3747. The init file may contain the following types of commands (and data):
  3748.  
  3749. Comments
  3750.      Empty lines and lines with a # character as the first non-blank character
  3751.      are ignored. Except where # has another meaning defined by the command
  3752.      syntax (e.g. multi-keys are named #n), trailing comments on input lines
  3753.      are ignored.
  3754.  
  3755. Variable settings
  3756.      You can set (or unset) all the variables described earlier to change nn's
  3757.      behaviour permanently. The set and unset commands you can use in the init
  3758.      file have exactly the same format as the :set and :unset commands
  3759.      described earlier (except that the : prefix is omitted.)
  3760.      Variables can also be locked via the lock command; this is typically done
  3761.      in the setup file to enforce local policies.
  3762.  
  3763. Key mappings
  3764.      You can use all the versions of the map command in the init file.
  3765.  
  3766. Macro Definitions
  3767.      You can define sequences of commands and key strokes using the
  3768.      define...end construction, which can then be bound to single keys with
  3769.      the map command.
  3770.  
  3771. Load terminal specific files
  3772.      You can load a terminal specific file using the
  3773.            load file
  3774.      The character @ in the file will be replaced by the terminal type defined
  3775.      in the TERM environment variable. nn silently ignores the load command if
  3776.      the file does not exist (so you don't have to have a specific init file
  3777.      for terminals which does not require remapping). If the file is not
  3778.      specified by an absolute pathname, it must reside in your ~/.nn
  3779.      directory. Examples:
  3780.            # load local customizations
  3781.            load /usr/lib/nninit
  3782.            # load personal terminal specific customizations
  3783.            load init.@
  3784.  
  3785. Switch to loading a different init file
  3786.      You can skip the rest of the current init file and start loading a
  3787.      different init file with the following command:
  3788.            chain file
  3789.      If this occur in the private or global init file, the chained init file
  3790.      may contain a sequence part which will replace the private or global
  3791.      presentation sequence respectively.
  3792.  
  3793. Stop loading current init file
  3794.      You can skip the rest of the current init file with the following
  3795.      command:
  3796.            stop
  3797.  
  3798. Give error messages and/or terminate
  3799.      If an error is detected in the init file, the following commands can be
  3800.      used to print an error message and/or terminate execution:
  3801.      error fatal error message...
  3802.            Print the message and terminate execution.
  3803.      echo warning message...
  3804.            Print the message and continue.
  3805.      exit [ status ]
  3806.            Terminate nn with the specified exit status or 0 if omitted.
  3807.  
  3808. Change working directory of nn
  3809.      You can use the cd command to change the working directory whenever you
  3810.      enter nn. Example:
  3811.            # Use folder directory as working directory inside nn
  3812.            cd ~/News
  3813.  
  3814. Command groups
  3815.      The init file can contain groups of commands which are executed under
  3816.      special conditions. The command groups are described in the section on
  3817.      command groups below.
  3818.  
  3819. One or more save-files sections
  3820.      A save-files section is used to assign default save files to specific
  3821.      groups:
  3822.            save-files
  3823.            group-name (pattern) file-name
  3824.            ...
  3825.            end
  3826.      The group name (patterns) and save file names are specified in the same
  3827.      way as in the presentation sequence (see below). Example:
  3828.            save-files
  3829.            news* +news/$L
  3830.            comp.sources* /u/src/$L/
  3831.            end
  3832.  
  3833. The news group presentation sequence
  3834.      The last part of the init file may specify the sequence in which you want
  3835.      the news groups to be presented. This part starts with the command
  3836.      sequence and continues to the end of the init file.
  3837.  
  3838. Both init files may contain a presentation sequence. In this case, the global
  3839. sequence is appended to the private sequence.
  3840.  
  3841. From: NN
  3842. Subject: COMMAND GROUPS
  3843.  
  3844. Command groups may only occur in the init file, and they provide a way to have
  3845. series of commands executed at certain points during news reading.
  3846.  
  3847. In release 6.4, these possibilities are still rather rudimentary, and a
  3848. mixture of normal init file syntax and macro syntax is used depending on
  3849. whether the command group is only executed on start-up or several times during
  3850. the nn session.
  3851.  
  3852. A command group begins with the word on and ends with the word end. The
  3853. following command groups are conditionally executed during the parsing of the
  3854. init file if the specified condition is true. They may also have an optional
  3855. else part which is executed if the condition is false:
  3856.       on condition
  3857.       commands
  3858.       [ else
  3859.       commands ]
  3860.       end
  3861.  
  3862. The following conditional command groups may be used in the init file to be
  3863. executed at start-up:
  3864.  
  3865. on [ test ]
  3866.      The commands (init file syntax) in the group are executed only if the
  3867.      specified test is true. A shell is spawned to execute the command "[ test
  3868.      ]", so all the options of the test(1) command is available. For example,
  3869.      to unset the flow-control variable if the tty is a pseudo-tty, the
  3870.      following conditional can be used:
  3871.            on [ -n "`tty | grep ttyp`" ]
  3872.            unset flow-control
  3873.            end
  3874.  
  3875. on !shell command
  3876.      The command group is executed if the given shell command exits with 0
  3877.      status (success). Care should be taken that the command does not produce
  3878.      any output, e.g. by redirecting its output to /dev/null. For example, to
  3879.      prevent people from reading news if load is above a specific level, the
  3880.      following conditional might be placed in the global setup file.
  3881.            on !load-above 5
  3882.            error load is too high, try again later.
  3883.            end
  3884.  
  3885. on `shell command\|` string...
  3886.      The command group is executed if the first output line from executing the
  3887.      specified shell command is listed among the specified string values. The
  3888.      shell command can be omitted on subsequent occurrences of this
  3889.      conditional, in which case the output from the last shell command is
  3890.      used. For example, the following conditional can be used to switch to an
  3891.      init file which has a limited sequence for news reading during working
  3892.      hours, evenings, and nights:
  3893.            on `date +%H` 9 10 11 12 13 14 15 16
  3894.            chain init.work
  3895.            end
  3896.            on `` 17 18 19 20 21
  3897.            chain init.evening
  3898.            else
  3899.            chain init.night
  3900.            end
  3901.  
  3902. on `` string...
  3903.      This is equivalent to the previous form except that instead of executing
  3904.      a shell command, the output from the previous
  3905.  
  3906. on $variable [ value ]
  3907.      If no value strings are specified, the command group is executed if the
  3908.      given variable is defined in the environment. Otherwise, the command
  3909.      group is executed only if the value of the variable occur in the value
  3910.      list. For example, if you want nn to look for mail in whatever $MAIL is
  3911.      set to - if it is set - you can use the following code:
  3912.            on $MAIL
  3913.            set mail $(MAIL)
  3914.            end
  3915.  
  3916. on slow
  3917.      The commands (init file syntax) in the group are executed only if the
  3918.      current terminal output speed is less than or equal to the baud rate set
  3919.      in the slow-speed variable. This can be used to optimize the
  3920.      user-interface for slow terminals by setting suitable variables:
  3921.            on slow
  3922.            set confirm-entry
  3923.            set slow-mode
  3924.            set delay-redraw
  3925.            unset visible-bell
  3926.            set compress
  3927.            unset header-lines
  3928.            set stop 5
  3929.            set window 10
  3930.            end
  3931.  
  3932. on fast
  3933.      Same as on slow except that the commands are only executed when the
  3934.      terminal is running at a speed above the slow-speed value.
  3935.  
  3936. on term term-type...
  3937.      The commands are executed if one of the term-type names is identical to
  3938.      value of the TERM environment variable.
  3939.  
  3940. on host host-name...
  3941.      The commands are executed if the local host's name occur in the host-name
  3942.      list.
  3943.  
  3944. on program program-name...
  3945.      The commands are executed if the current program (nn, nncheck, etc) in
  3946.      the program-name list.
  3947.  
  3948. The following on command groups are really macros which may be executed during
  3949. nn's normal processing, and as such they cannot have an else part.
  3950.  
  3951. on entry [ group list ]
  3952.      These commands (macro format!) are executed every time nn enters a news
  3953.      group. If a group list is not specified, the commands are associated with
  3954.      all groups which don't have its own entry macro specified in the group
  3955.      sequence. Otherwise, the entry macro will be associated with the groups
  3956.      in the list. The group list is specified using the meta-notations
  3957.      described in the presentation sequence section.
  3958.      All `:' commands at the beginning of the command group are executed
  3959.      before nn collects the articles in the group, so it is possible to set or
  3960.      unset variables like cross-post and auto-read-mode before any articles
  3961.      are collected and the menu is (not) shown.
  3962.            The non-`:' commands, and `:' commands that follows a command of
  3963.      another type will be executed immediately after the first menu page is
  3964.      presented. The execution of a `:' command can be postponed by using a
  3965.      double `::' as the command prefix.
  3966.            on entry comp.sources* alt.sources
  3967.            :set cross-post on # set before collection
  3968.            :local auto-read-mode on # set before showing menu
  3969.            ::unset cross-post # set after collection
  3970.            end
  3971.  
  3972. on start-up
  3973.      These `:' commands (macro format!) are executed on start-up just before
  3974.      nn enters the first news group. However, postponed commands (i.e. non-`:'
  3975.      commands) will not be executed until the first group is shown (it works
  3976.      like an entry macro).
  3977.  
  3978. From: NN
  3979. Subject: GROUP PRESENTATION SEQUENCE
  3980.  
  3981. News groups are normally presented in the sequence defined in the system-wide
  3982. init file in nn's library directory.
  3983.  
  3984. You can personalize the presentation sequence by specifying an alternative
  3985. sequence in the private init file. The sequence in the private init file is
  3986. used before the global presentation sequence, and need only describe the
  3987. deviations from the default presentation sequence.
  3988.  
  3989. The presentation sequence must start with the word
  3990.       sequence
  3991. followed by a list of the news group names in the order you want them to be
  3992. presented. The group names must be separated by white space. The sequence list
  3993. must be the last part of the init file (the parsing of commands from the init
  3994. file stops when the word sequence is encountered).
  3995.  
  3996. You may use a full group name like "comp.unix.questions", or just the name of
  3997. a main group or subgroup, e.g. "comp" or "comp.unix". However, if "comp"
  3998. precedes "comp.unix.questions" in the list, this subgroup will be placed in
  3999. the normal alphabetic sequence during the collection of all the "comp" groups.
  4000.  
  4001. Groups which are not explicitly mentioned in any of the sequence files will be
  4002. placed after the mentioned groups, unless `!!' is used and it has not been
  4003. disabled (as described below).
  4004.  
  4005. Each group name may be followed by a file or folder name (must start with
  4006. either of `/' `~' or `+') which will specify the default save file for that
  4007. group (and its subgroups). A single `+' following the group name is an
  4008. abbreviation for the last save file name used. For example, the following two
  4009. sequences are equivalent:
  4010.       group1 +file group2 +file group3 +file
  4011.       group1 +file group2 + group3 +
  4012.  
  4013. When an article is saved, the default save name will be used as the initial
  4014. contents of the file name prompt for further editing. It therefore does not
  4015. need to be be a complete file name (unless you use the quick save mode).
  4016.  
  4017. Each group name may also be associated with a so-called entry action. This is
  4018. basically an (unnamed) macro which is invoked on entry to the group (following
  4019. the same rules as the `on entry' command group related to :set and :unset
  4020. commands).
  4021.  
  4022. The entry action begins with a left parenthesis `(' and ends with a right
  4023. parenthesis `)' on an otherwise empty line:
  4024.       comp.sources. +src/$L/ (
  4025.       :set cross-post
  4026.       )
  4027. The last entry action can be repeated by specifying an empty set of
  4028. parenthesis, e.g.
  4029.       comp.unix. +unix ()
  4030. The entry action of a preceding group in the sequence can be associated with
  4031. the current group(s) by specifying the name of the group in the parentheses
  4032. instead of the commands, e.g.
  4033.       comp.unix. +unix (comp.sources.unix)
  4034. A macro can also be associated with the entry action by specifying its number
  4035. in the same way as the group name above, e.g.
  4036.       rec.music. +music (30)
  4037. Notice that it is the current definition of the macro which is associated with
  4038. the group, so if the macro is later redefined with the `:define' command, it
  4039. will not have any effect on the entry action.
  4040.  
  4041. Group names can be specified using the following notations:
  4042.  
  4043. group.name
  4044.      Append the group (if it exists) to the presentation sequence list. If
  4045.      also-subgroups is set (default), all subscribed subgroups of the group
  4046.      will be included as well (if there are any). Examples: "comp",
  4047.      "comp.unix", "comp.unix.questions". If the group does not exits (e.g.
  4048.      "comp"), the subgroups will be included even when also-subgroups is not
  4049.      set, i.e. "comp" is equivalent to "comp.".
  4050.  
  4051. group.name.
  4052.      Append the subgroups of the specified group to the presentation sequence.
  4053.      The group itself (if it exists) is not included. Examples: "comp.",
  4054.      "comp.unix.".
  4055.  
  4056. .group.name
  4057.      Append the groups whose name ends with the specified name to the
  4058.      sequence. Example: ".test".
  4059.  
  4060. group.name*
  4061.      Append the group and its subgroups to the presentation sequence list
  4062.      (even when also-subgroups is not set). Example: "comp.unix*".
  4063.  
  4064. The following meta notation can be used in a sequence file. The group.name can
  4065. be specified using any of the forms described above:
  4066.  
  4067. ! groups
  4068.      Completely ignore the group or groups specified unless they are already
  4069.      in the presentation sequence (i.e. has been explicitly mentioned earlier
  4070.      in the sequence).
  4071.  
  4072. !:code groups
  4073.      Ignore a selection of groups based on the given code letter (see below),
  4074.      unless they are already included in the sequence. Notice that these forms
  4075.      only excludes groups from the presentation sequence, i.e. they do not
  4076.      include the remaining groups at this point; that must be done explicitly
  4077.      elsewhere.
  4078.  
  4079. !:U groups
  4080.      Ignore unsubscribed groups, i.e. if they are neither new, nor present and
  4081.      subscribed in .newsrc. This is useful to ignore a whole hierarchy except
  4082.      for a few groups which are explicitly mentioned in .newsrc and still see
  4083.      new groups as they are created.
  4084.  
  4085. !:X groups
  4086.      Ignore unsubscribed and new groups, i.e. if they are not currently
  4087.      present and subscribed in .newsrc. This is useful to ignore a whole
  4088.      hierarchy except for a few groups which are explicitly mentioned in
  4089.      .newsrc. New groups in the hierarchy are ignored unless `NEW' occurs
  4090.      earlier in the sequence.
  4091.  
  4092. !:O groups
  4093.      Ignore old groups, i.e. unless they are new. This is useful to ignore a
  4094.      whole hierarchy but still see new groups which are created in the
  4095.      hierarchy (it might become interesting some day). Individual groups can
  4096.      still be included in the sequence if they are specified before the `!:O'
  4097.      entry.
  4098.  
  4099. !:N groups
  4100.      Ignore new groups in the hierarchy.
  4101.  
  4102. !!   Stop building the presentation sequence. This eliminates all groups that
  4103.      are not already in the presentation sequence.
  4104.  
  4105. NEW  This is a pseudo group name which matches all new groups; you could place
  4106.      this symbol early in your presentation sequence to see new groups `out of
  4107.      sequence' (to attract your attention to them).
  4108.  
  4109. RC   This is a pseudo group name which matches all groups occurring in the
  4110.      .newsrc file. It will cause the groups in .newsrc to be appended to the
  4111.      presentation sequence in the sequence in which they are listed in
  4112.      .newsrc.
  4113.  
  4114. RC:number
  4115.      Similar to the RC entry, but limited to the first number lines of the
  4116.      .newsrc file. Example: RC:10 (use 10 lines of .newsrc).
  4117.  
  4118. RC:string
  4119.      Similar to the RC entry, but limited to the lines up to (and including)
  4120.      the first line (i.e. group) starting with the given string. For example:
  4121.      RC:alt.sources
  4122.  
  4123. < group.name
  4124.      Place the group (and its subgroups) at the beginning of the presentation
  4125.      sequence. Notice that each `<' entry will place the group(s) at the
  4126.      beginning of the current sequence, i.e. < A < B < C will generate the
  4127.      sequence C B A.
  4128.  
  4129. > group.name
  4130.      Place the group (and its subgroups) after all other groups that are and
  4131.      will be entered into the presentation sequence.
  4132.  
  4133. @    Disable the `!!' command. This can be included in the personal
  4134.      presentation sequence if the global sequence file contains a !! entry
  4135.      (see example 1 below).
  4136.  
  4137. % .... %
  4138.      Starts and ends a region of the sequence where it is possible to include
  4139.      groups which has been eliminated earlier. This may be useful to alter the
  4140.      sequence of some groups, e.g. to place comp.sources.bugs after all other
  4141.      source groups, the following sequence can be used:
  4142.      ! comp.sources.bugs comp.sources* % comp.sources.bugs %
  4143.  
  4144. Example 1: In a company where ordinary users only should read the local news
  4145. groups, and ignore the rest (including new news groups which are otherwise
  4146. always subscribed to initially), can use the following global presentation
  4147. sequence:
  4148.       general
  4149.       follow
  4150.       ! local.test
  4151.       local
  4152.       !!
  4153. The "expert" users in the company must put the @ command somewhere in their
  4154. private sequence to avoid losing news groups which they have not explicitly
  4155. mentioned in their init file.
  4156. Example 2: This is the global sequence for systems with heavy news addicts who
  4157. setup their own sequences anyway.
  4158.       # all must read the general news first
  4159.       < general
  4160.       # test is test, and junk is junk,
  4161.       # so it is placed at the very end
  4162.       > test
  4163.       > .test
  4164.       > junk
  4165.       # this is the standard sequence which everybody may
  4166.       # change to their own liking
  4167.       local # our local groups
  4168.       dk # the Danish groups
  4169.       eunet.general # to present it before eunet.followup
  4170.       eunet # the other European groups
  4171.       comp # the serious groups
  4172.       news # news on news
  4173.       sci # other serious groups
  4174.       rec # not really that important (don't quote me)
  4175.       misc # well, it must be somewhere
  4176.       # the groups that are not listed above goes here
  4177. Notice the use of comments in the sequence where they are allowed at the end
  4178. of non-empty lines as well.
  4179. Example 3: My own presentation sequence (in the init file) simply lists my
  4180. favourite groups and the corresponding default save files:
  4181.       sequence
  4182.       !:U alt* # ignore unsubscribed alt groups
  4183.       news.software.nn +nn
  4184.       comp.sys.ti* +ti/$L
  4185.       NEW # show new groups here
  4186.       news*
  4187.       rec.music.synth +synth/
  4188.       comp.emacs*,gnu.emacs +emacs/misc
  4189.       comp.risks +risks
  4190.       eunet.sources +src/unix/
  4191.       comp.sources* +src/$L/
  4192. The presentation sequence is not used when nn is called with one or more news
  4193. group names on the command line; it is thus possible to read ignored groups
  4194. (on explicit request) wihtout changing the init file. (Of course, you can also
  4195. use the G command to read ignored groups).
  4196.  
  4197. From: NN
  4198. Subject: MERGING NEWS GROUPS
  4199.  
  4200. The third example above contains the following line:
  4201.       comp.emacs*,gnu.emacs +emacs/misc
  4202. This is the syntax used to merge groups. When two or more groups are merged,
  4203. all new articles in these groups are presented together as if they were one
  4204. group. To merge groups, their names must be listed together in the sequence,
  4205. and only separated by a single comma. To merge the groups resulting from a
  4206. single group pattern (e.g. comp.emacs*), the group pattern must be followed by
  4207. a comma and a blank (e.g. comp.emacs*, ...).
  4208.  
  4209. Merged groups are presented as the first group in the "list", and the word
  4210. "MERGED" will be shown after the group name. The Y {overview} command will
  4211. still show merged groups as individual groups, but they will be annotated with
  4212. the symbol `&' on the first of the groups, and a `+' on the rest of the
  4213. groups.
  4214.  
  4215. In the current version, the concept of the current group in connection with
  4216. merged groups is a bit fuzzy. This should only be noticeable with the G
  4217. command, which will take the most recently used group among the merged groups
  4218. as the current group. So things like G = ... may not always work as expected.
  4219.  
  4220. From: NN
  4221. Subject: ENVIRONMENT
  4222.  
  4223. The following environment variables are used by nn:
  4224.  
  4225. EDITOR. The editor invoked when editing replies, follow-ups, and composing
  4226. mail. nn knows about the following editors: vi, ded, GNU emacs, and
  4227. micro-emacs, and will try to position the cursor on the first line following
  4228. the header, i.e. after the blank line which must not be deleted! If an article
  4229. has been included, the cursor is placed on the first line of the included text
  4230. (to allow you to delete sections easily).
  4231.  
  4232. LOGNAME. This is taken as the login name of the current user. It is used by nn
  4233. to return failed mail. If it is not defined, nn will use the value of USER, or
  4234. if that is not defined either, nn will use the call `who am i' to get this
  4235. information. If all attempts fail, the failed mail is dropped in the bit
  4236. bucket.
  4237.  
  4238. PAGER. This is used as the initial value of the pager variable.
  4239.  
  4240. SHELL. This is the shell which is spawned if the system cannot suspend nn, and
  4241. it will be used to execute the shell escapes.
  4242.  
  4243. TERM. The terminal type.
  4244.  
  4245. From: NN
  4246. Subject: FILES
  4247.  
  4248. ~/.newsrc             The record of read articles.
  4249. ~/.nn/select          The record of selected and seen articles.
  4250. ~/.nn/init            Personal configuration and presentation sequence.
  4251. ~/.nn/kill            The automatic kills and selections.
  4252. ~/.nn/KILL.COMP       The compiled kill file.
  4253. ~/.nn/LAST            The time stamp of the last news group we have seen.
  4254. ~/.nn/NEXTG           Active group last time nn was quit.
  4255. ~/.nn/.param          Parameter file for the aux script
  4256. $lib/setup            System-wide setup - always read first.
  4257. $lib/init             System-wide setup and presentation sequence.
  4258. $lib/aux              The response edit and send script.
  4259. $lib/routes           Mapping rules for mail addresses (on non-domain systems).
  4260. $db/*                 The news data base.
  4261. /etc/termcap          Terminal data base [BSD].
  4262. /usr/lib/terminfo/*   Terminal data base [SysV].
  4263. /usr/lib/nntp-server  Name of remote nntp server.
  4264. The name $lib and $db are the directories used for the auxiliary files and the
  4265. news data base respectively. Their name and location is defined at compile
  4266. time. Common choices are /usr/local/lib/nn or /usr/lib/news/nn for $lib and
  4267. /usr/spool/nn or /usr/spool/news/.nn for $db.
  4268.  
  4269. From: NN
  4270. Subject: SEE ALSO
  4271.  
  4272. Other netnews documentation.
  4273. nncheck(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
  4274. nnadmin(1M), nnusage(1M), nnmaster(8), nnspew(8)
  4275.  
  4276. From: NN
  4277. Subject: AUTHOR
  4278.  
  4279. Kim F. Storm, Texas Instruments A/S, Denmark
  4280. E-mail: storm@texas.dk (but see the addresses below)
  4281.  
  4282. The NNTP support was designed and implemented by Ren\o'\(aae' Seindal,
  4283. Institute of Datalogy, University of Copenhagen, Denmark.
  4284.  
  4285. Bugs and fixes, suggestions, ideas, critique, etc. can be sent to the
  4286. following address:
  4287.       nn-bugs@dkuug.dk
  4288.  
  4289. The news.software.nn group is used for discussion on all subjects related to
  4290. the nn news reader. This includes, but is not limited to, questions, answers,
  4291. ideas, hints, information from the development group, patches, etc.
  4292.  
  4293. From: NNACCT
  4294. Subject: - news accounting and access authorization (nn)
  4295.  
  4296. nnacct - news accounting and access authorization (nn)
  4297.  
  4298.  
  4299. From: NNACCT
  4300. Subject: SYNOPSIS
  4301.  
  4302. nnacct -r [ -f file ] [ -a ] [ user ]...
  4303. nnacct [ -ppolicy ] [ -qquota ] user...
  4304. nnacct -ZERO
  4305.  
  4306. From: NNACCT
  4307. Subject: DESCRIPTION
  4308.  
  4309. The nnacct command provides an optional accounting and access authorization
  4310. for news reading via the nn news reader.
  4311.  
  4312. The first form (-r) is used to print accounting reports. If a file is
  4313. specified data from a saved accounting file; otherwise the data is read from
  4314. the current accounting file.
  4315.  
  4316. If -a is specified, the report will contain accounting data for all users.
  4317. Otherwise, if one or more users are specified, the data for these users will
  4318. be printed. If neiter is specified, only the accounting data for the current
  4319. user is printed.
  4320.       Only the super-user can generate reports for other users than the caller.
  4321.  
  4322. The second form (-p and/or -q) assigns the specified access policy and/or
  4323. quota to the specified users. If a given user is not already known in the
  4324. accounting file, a new entry with the specified policy and quota is created
  4325. (default values are used if both are not specified).
  4326.  
  4327. The third form (-ZERO) will clear the usage counts for all users. Individual
  4328. usage counts cannot be cleared. The original accounting file is saved with a
  4329. .old suffix.
  4330.  
  4331. The following policies are currently implemented:
  4332.  
  4333. 0    No access. The user is not allowed to read news at all.
  4334.  
  4335. 1    Privileged user. The user can read news at all times and no accounting
  4336.      information is saved. This is obviously the policy for system
  4337.      administrators :-)
  4338.  
  4339. 2    Full time access. The user can access news at all times.
  4340.  
  4341. 3    Off-hours access. The user can only access news at off hours, i.e. in the
  4342.      morning, in the evening, on week-ends, and on holidays (not complete -
  4343.      check the source :-)
  4344.  
  4345. The quota specifies a number of hours which the user is allowed to read news.
  4346. When this quota is used up, access will be blocked. A quota of zero gives
  4347. unlimited access.
  4348.  
  4349. New users will get the default policy and quota defined in account.c. If this
  4350. allows new users to read news at only specific times, this form can be used to
  4351. permit individual users to read news at all times, or it can be used to
  4352. prevent them from reading news at all. If the default policy does not allow
  4353. new users to read news, this form must be used to authorize them to read news.
  4354.  
  4355. From: NNACCT
  4356. Subject: HOW IT WORKS
  4357.  
  4358. If authorization is enabled, the nn news reader will call nnacct on start-up
  4359. to check whether the policy and quota defined for the current user allows him
  4360. to read news at this time (or at all).
  4361.  
  4362. If accounting is enabled, the nn news reader will call nnacct on exit to
  4363. register the time spent on news reading. If account logging is also defined
  4364. (see account.c), an line is also added to the accounting log file.
  4365.  
  4366. When accounting is defined, the user can use the :cost command to get the
  4367. current accounting data, and if the variable report-cost is set, nn will print
  4368. accounting information on exit.
  4369.  
  4370. From: NNACCT
  4371. Subject: CONTIGURATION AND NEW POLICIES
  4372.  
  4373. The use of nnacct is enabled via the ACCOUNTING and AUTHORIZE symbols in nn's
  4374. configuration file. Further configuration of cost calculations, logging,
  4375. default policy, default quotas, etc. is done directly in the source file
  4376. account.c. New access policies can also be defined in this file. This allows
  4377. you to change the policies or prices without having to recompile the whole
  4378. package since only nnacct is modified.
  4379.  
  4380. From: NNACCT
  4381. Subject: PRIVILEGED USERS
  4382.  
  4383. Normally, only root is allowed to change user policy or quota, list all user's
  4384. accounting data etc. This privilege can be shared with other users by listing
  4385. their login name in the file $CLIENT/admins. There should be exactly one login
  4386. name per line, and no blanks are allowed.
  4387.  
  4388. From: NNACCT
  4389. Subject: FILES
  4390.  
  4391. $db/acct        accounting data (accumulated per user)
  4392. $db/acctlog     accounting log (grows indefinitely)
  4393. $lib/admins     login names of privileged nnacct users.
  4394.  
  4395.  
  4396. From: NNACCT
  4397. Subject: SEE ALSO
  4398.  
  4399. nn(1), nnusage(1)
  4400.  
  4401. From: NNACCT
  4402. Subject: BUGS
  4403.  
  4404. There should be some tools to mess around with the accounting files, e.g. to
  4405. make summaries, clear usage counters, etc.
  4406.  
  4407. From: NNACCT
  4408. Subject: AUTHOR
  4409.  
  4410. Kim F. Storm, Texas Instruments A/S, Denmark
  4411. E-mail: storm@texas.dk
  4412.  
  4413. From: NNADMIN
  4414. Subject: - nn database administration
  4415.  
  4416. nnadmin - nn database administration
  4417.  
  4418.  
  4419. From: NNADMIN
  4420. Subject: SYNOPSIS
  4421.  
  4422. nnadmin [ commands ]
  4423.  
  4424. From: NNADMIN
  4425. Subject: DESCRIPTION
  4426.  
  4427. nnadmin is a control program for the nnmaster(1M) daemon which is responsible
  4428. for building and maintaining the database used by the nn(1) news reader.
  4429.  
  4430. nnadmin allows you to display extracts from the log file, display the "raw"
  4431. contents of the database, make consistency checks on the database, instruct
  4432. the running nnmaster to expire one or more groups, alter the options of the
  4433. running nnmaster, and much more.
  4434.  
  4435. nnadmin runs in two modes: interactive and non-interactive.
  4436.  
  4437. In interactive mode, simple one line menus are used to show the available
  4438. operations which are then selected by typing the letter associated with the
  4439. command (normally the first letter in the command name).
  4440.  
  4441. In non-interactive mode, the commands argument will be used as a series of
  4442. key-strokes which are interpreted exactly as if they were typed in from the
  4443. keyboard in interactive mode. For example, to stop the nnmaster, the following
  4444. invokation of nnadmin can be used:
  4445.       nnadmin MK
  4446. which will select the (M)aster submenu from the main menu, and then the (K)ill
  4447. entry from the submenu.
  4448.  
  4449. In non-interactive mode, the menus are not displayed and the commands are not
  4450. echoed! nnadmin will exit when there are no more key-strokes to be read from
  4451. the commands argument. It is not possible to specify a group name in the
  4452. commands argument, so the functionalities of nnadmin that relates to specific
  4453. groups are only available in interactive mode.
  4454.  
  4455. Some "dangerous" commands will require that you confirm them by following them
  4456. by "Y" on the command line. The most noteable are IY (initialize database) and
  4457. EY (expire all groups). These commands will be marked with a [Y] following the
  4458. command name.
  4459.  
  4460. You can also invoke an interactive nnadmin using the :admin command in nn.
  4461.  
  4462. From: NNADMIN
  4463. Subject: SHELL ESCAPES
  4464.  
  4465. At all prompts you can hit `!' to spawn a subshell.
  4466.  
  4467. The working directory of the subshell will be changed to the database
  4468. directory when invoked from the MASTER or DUMP menus, and it will changed to
  4469. the group's spool directory (if it exists) when invoked from the GROUP menu.
  4470.  
  4471. From: NNADMIN
  4472. Subject: MAIN MENU
  4473.  
  4474. From the main menu (identified by the ADMIN prompt) you can select the
  4475. following operations:
  4476.  
  4477. C)onf
  4478.      Show current configuration parameters such as directories, files,
  4479.      programs, network usage, etc.
  4480.  
  4481. E)xpire [Y]
  4482.      Send a request to the nnmaster daemon to schedule (and run) expire for
  4483.      all groups in the database.
  4484.  
  4485. G)roups
  4486.      Enter the GROUP submenu.
  4487.  
  4488. I)nit [Y]
  4489.      Send a request to the nnmaster daemon to recollect all groups in the
  4490.      database.
  4491.  
  4492. L)og
  4493.      Enter the LOG submenu.
  4494.  
  4495. M)aster
  4496.      Enter the MASTER submenu.
  4497.  
  4498. Q)uit
  4499.      Quit nnadmin.
  4500.  
  4501. S)tat
  4502.      Print general statistics about the database. See the section on Database
  4503.      Statistics below.
  4504.  
  4505. U)pdate
  4506.      Update the incore copy of the database master index.
  4507.  
  4508. V)alidate
  4509.      Make a thorough consistency check on the database. If inconsistencies are
  4510.      found in a group, you will be asked whether a request should be sent to
  4511.      the nnmaster daemon to recollect the group (in non-interactive mode,
  4512.      requests will be sent automatically for all corrupted groups).
  4513.  
  4514. W)akeup
  4515.      Send a wakeup signal to the nnmaster daemon to have it receive messages
  4516.      sent to it, perform the required actions, and then collect articles as
  4517.      necessary.
  4518.  
  4519. Z (silent validation)
  4520.      This operation is identical to the Validate operation, expect that no
  4521.      output is produced during the consistency check; this operation is used
  4522.      by the nnmaster to execute the -C option.
  4523.  
  4524. From: NNADMIN
  4525. Subject: THE MASTER MENU
  4526.  
  4527. The master menu (identified by the MASTER prompt) provides access to overall
  4528. database information, and to send control messages to the nnmaster daemon.
  4529.  
  4530. C)heck
  4531.      In interactive mode and in verbose batch mode (nnadmin MC), print a
  4532.      message telling whether nnmaster is running or not. In silent batch mode
  4533.      (nnadmin =MC) exit with a status code of 0 if nnmaster is running and 1
  4534.      otherwise; this may be useful is administrative scripts.
  4535.  
  4536. D)ump
  4537.      Enter the DUMP submenu.
  4538.  
  4539. F)iles
  4540.      Print a listing (using ls(1)) of all the data and index files in the
  4541.      database.
  4542.  
  4543. G)roup
  4544.      Print the master index entry for a single group identified by its
  4545.      internal group number.
  4546.  
  4547. K)ill
  4548.      Stop the nnmaster when it has finished its current task.
  4549.  
  4550. O)ptions
  4551.      Change the runtime options of the running nnmaster daemon. Currently,
  4552.      only the value of the -r and -e options can be modified.
  4553.  
  4554. S)tat
  4555.      Print general statistics about the database. See the section on Database
  4556.      Statistics below.
  4557.  
  4558. T)race
  4559.      Turn the trace option -t on or off in the running nnmaster.
  4560.  
  4561. From: NNADMIN
  4562. Subject: THE DUMP MENU
  4563.  
  4564. The dump menu (identified by the DUMP prompt) allows you to print the master
  4565. index entry for various selections of groups in the database.
  4566.  
  4567. A)ll
  4568.      Print all groups in the database.
  4569.  
  4570. E)mpty
  4571.      Print the empty groups in the database.
  4572.  
  4573. H)oles
  4574.      Print the groups where the `min' field in the active file is not the
  4575.      first article saved in the database (because it doesn't exist or because
  4576.      it is ignored for some other reason, e.g. bad or old).
  4577.  
  4578. I)gnored
  4579.      Print groups which are ignored, either in the GROUPS file or because of
  4580.      some other condition (mainly no spool directory).
  4581.  
  4582. N)on-empty
  4583.      Print the non-empty groups in the database.
  4584.  
  4585. V)alid
  4586.      Print the groups which are present in the active file.
  4587.  
  4588. in(W)alid
  4589.      Print the groups in the database which are not present in the active
  4590.      file.
  4591.  
  4592. From: NNADMIN
  4593. Subject: THE LOG MENU
  4594.  
  4595. The log menu (identified by the LOG prompt) enables you the extract specific
  4596. entries from the log file, and to truncate the log file.
  4597.  
  4598. The entries in the log file share the following format:
  4599.       <class>: <date> <time> (<user>): <message>
  4600. where <class> identifies the message class, the <date> and <time> specify when
  4601. the entry was made, the <user> specifies who created the entry (the letter "M"
  4602. denote the nnmaster), and the <message> is the text of the entry.
  4603.  
  4604. To extract the log file entries of a specific class, simply enter the letter
  4605. identifying the class:
  4606.  
  4607. A - admin to master communication
  4608.      This class of messages are related to the sending of messages from an
  4609.      nnadmin program to the nnmaster daemon.
  4610.  
  4611. B - bad articles
  4612.      Reports about bad articles which have been ignored or removed (controlled
  4613.      by the -b and -B options to nnmaster).
  4614.  
  4615. C - collection statistics
  4616.      Statistics about collection of new articles. The message has the format:
  4617.            Collect: nnn art, ppp gr, ttt s
  4618.      meaning that nnn articles in ppp groups were collected in ttt seconds
  4619.      (real time).
  4620.  
  4621. E - fatal errors
  4622.      Fatal errors encountered during operation. These errors require manual
  4623.      intervention to be fixed (some of the fatal errors occur if thing that
  4624.      "cannot happen" happens anyway, and may indicate a bug in the software).
  4625.  
  4626. M - nnmaster messages.
  4627.      Master start/stop messages.
  4628.  
  4629. N - NNTP related messages
  4630.      Various messages related to the NNTP part of the nnmaster, mostly about
  4631.      lost connections and failed attempts to connect to the NNTP server. These
  4632.      messages should only appear if you use NNTP, and your NNTP server is down
  4633.      for some reason.
  4634.  
  4635. O - old articles
  4636.      Reports related to ignoring (and removing) old articles when building the
  4637.      database (controlled by the -O and -B options to nnmaster).
  4638.  
  4639. R - reports
  4640.      Non-fatal error which enables the nnmaster to continue operation, but may
  4641.      prevent a user to run nn (file access problems). Reported problems should
  4642.      be checked. The most common report message will probably be
  4643.            some.group: no directory
  4644.      which indicates that the spool directory for that group has disappeared
  4645.      (most likely because it has been rmgroup'ed).
  4646.  
  4647. T - trace output
  4648.      Messages produced as a result of using the -t option on the nnmaster.
  4649.      This is primarily for debugging purposes.
  4650.  
  4651. U - usage statistics
  4652.      If nn is compiled with the STATISTICS option enabled, an entry will be
  4653.      made in the log file every time a user has spent more than five minutes
  4654.      on news reading. The message will have the following format:
  4655.            USAGE hours.minutes
  4656.      Since it is possible to suspend nn, or leave the terminal while nn is
  4657.      active, nn tries to be intelligent when it calculates the usage time so
  4658.      it will reflect the actual time spent on news reading. The usage
  4659.      statistics can be summarized using the nnusage(1M) program.
  4660.  
  4661. V - validation errors
  4662.      When inconsistencies are detected in the database during validation, an
  4663.      entry for each corrupted group will be entered in the log file.
  4664.  
  4665. X - expire statistics
  4666.      Messages similar to the Collect statistics reporting the result of
  4667.      running expire on the database. Reports related to ignoring, removing,
  4668.      renumbering, and reactivation of groups are also given class X.
  4669.  
  4670. To extract a specific entry class, grep(1) is used, so it may take a while on a
  4671. large log file.
  4672.  
  4673. There are also a few special operations on the log file:
  4674.  
  4675. G)roup
  4676.      Extract the entries which refers to a specified group.
  4677.  
  4678. (1-9) tail
  4679.      Invoke tail(1) to extract the last 10-90 entries in the log file.
  4680.  
  4681. space
  4682.      Equivalent to 1 (list last 10 lines of log).
  4683.  
  4684. (.) all
  4685.      Display the complete log file.
  4686.  
  4687. (@) clean [Y]
  4688.      Move the Log file to Log.old, and create a new empty Log file. If you
  4689.      want to clean out the old log file as well, simply repeat the clean
  4690.      operation (this will result in an empty Log.old file.)
  4691.  
  4692. From: NNADMIN
  4693. Subject: THE GROUP MENU
  4694.  
  4695. When you enter the group menu (identified by the GROUP prompt), nnadmin will
  4696. prompt you for the name of a news group, which you can enter with the usual
  4697. completion feature described in the nn(1) manual. You can then perform the
  4698. following operations on the specified group:
  4699.  
  4700. C)lear_flag
  4701.      Clear a group specific flag. See the section on group flags below.
  4702.  
  4703. D)ata
  4704.      Dump the contents of the data file containing the extracted article
  4705.      headers for the group.
  4706.  
  4707. E)xpire
  4708.      Request the nnmaster to run expire on the group.
  4709.  
  4710. F)iles
  4711.      List the files (using ls(1)) containing the index and data for the group.
  4712.  
  4713. G)roup
  4714.      Switch to another group.
  4715.  
  4716. H)eader
  4717.      Dump the master index entry for the group.
  4718.  
  4719. R)ecollect
  4720.      Request the nnmaster to recollect all articles in the group.
  4721.  
  4722. S)et_flag
  4723.      Set a group specific flag. See the section on group flags below.
  4724.  
  4725. V)alidate
  4726.      Perform validation on the group's database information.
  4727.  
  4728. Z)ap [Y]
  4729.      Remove group from news system - this will be done by running the rmgroup
  4730.      program which must reside in the NEWS_LIB directory. Of course, this
  4731.      should be done with great caution.
  4732.  
  4733. From: NNADMIN
  4734. Subject: INDIVIDUAL GROUP FLAGS
  4735.  
  4736. You can set and clear the following flags for individual groups to control the
  4737. future behaviour of nnmaster on that group.
  4738.  
  4739. Notice that these flags will be reset to their default value if you
  4740. reinitialize the database using nnmaster -I. To change these flags
  4741. permanently, they should be set or cleared in the GROUPS file.
  4742.  
  4743. A)lways_digest
  4744.      Normally, nnmaster will only attempt to split digests into individual
  4745.      articles if it can easily recognize an article as a digest. This requires
  4746.      that the word "digest" appears somewhere in the subject line, and that
  4747.      one of the first few lines in the body of the article loosely matches the
  4748.      subject. A few news groups frequently receives digests which break one or
  4749.      both of these requirements. To have nnmaster split these digests into
  4750.      individual articles anyway, you can turn on the "always digest" flag on
  4751.      these news groups. This will instruct nnmaster to treat all articles in
  4752.      the group as digests (naturally, articles which are then found not to
  4753.      contain other articles are still treated as normal articles.)
  4754.  
  4755. C)ontrol
  4756.      This is a special flag for the control group. It indicates that the
  4757.      "Newsgroups:" field in the article header cannot be trusted (it does not
  4758.      specify the groups to which the article has been posted.)
  4759.  
  4760. D)irectory missing
  4761.      This flag indicates that the spool directory for the news group cannot be
  4762.      found (the group has probably been removed with rmgroup(1M)). It is set
  4763.      automatically be the nnmaster if it cannot access the directory. When the
  4764.      flag is set, nnmaster completely ignores the group, so it can be used to
  4765.      disable news collection in specific groups. If you recreate the group or
  4766.      the directory manually, you must also clear this flag to have the
  4767.      nnmaster recognize the group again.
  4768.  
  4769. M)oderated
  4770.      Indicates that the group is moderated. This flag is normally initialized
  4771.      automatically from the active file, and it should not be changed lightly.
  4772.  
  4773. N)ever_digest
  4774.      This is the opposite of the "always digest" flag; when set, the nnmaster
  4775.      will never attempt to split any articles in that group into subarticles.
  4776.  
  4777. From: NNADMIN
  4778. Subject: DATABASE STATISTICS DISPLAY
  4779.  
  4780. When you select the (S)tat operation in the main or master menus, you will get
  4781. some general statistics about the database:
  4782.  
  4783. initialized
  4784.      The time when the database was last rebuild using nnmaster -I.
  4785.  
  4786. last_scan, last_size
  4787.      The time stamp on the active file and its size the last time the nnmaster
  4788.      read it.
  4789.  
  4790. no of groups
  4791.      The total number of groups in the database.
  4792.  
  4793. Articles
  4794.      The total number of articles in all groups. This is not an exact number,
  4795.      because it will count split digests as a single article (making the
  4796.      number too small), and it may count some articles that have been expired
  4797.      (making the number too large).
  4798.  
  4799. Disk usage
  4800.      The total number of (1 kbyte) disk blocks occupied by the database.
  4801.  
  4802. From: NNADMIN
  4803. Subject: MASTER INDEX ENTRIES
  4804.  
  4805. The master index entries displayed when you select the (H)eader operation in
  4806. the master and group menus contain the following information:
  4807.  
  4808. group_name  group_number
  4809.      The first line of the display will show the name of the group and the
  4810.      internal group number which is used to identify the group in the
  4811.      database.
  4812.  
  4813. first/last art
  4814.      This is the numbers of the first and last article that are currently
  4815.      stored in the database.
  4816.  
  4817. active info
  4818.      This is the numbers of the first and last article in the news system as
  4819.      read from the active file. They will normally match the numbers above,
  4820.      but they may differ while the nnmaster is working on the group (or it has
  4821.      not yet collected all the articles in the group).
  4822.  
  4823. Offsets: index->..., data->...
  4824.      These values show the starting position for the next write operation on
  4825.      the index and data files. They are primarily used for consistency
  4826.      checking and recovery after a system crash, but after an "expire by
  4827.      rewrite" operation (expire method 2) which is performed "in-situ", the
  4828.      data and index files may physically be longer than the actual data stored
  4829.      in them.
  4830.  
  4831. Flags:
  4832.      This shows the current flags set for this group. If no flags are set, the
  4833.      field is omitted from the display. One extra flag which was not explained
  4834.      above is the BLOCKED flag; it is a temporary locking flag set on a group
  4835.      by the nnmaster while it is updating the database files for that group to
  4836.      prevent nn clients to access that group.
  4837.  
  4838. From: NNADMIN
  4839. Subject: RAW DATABASE DISPLAY
  4840.  
  4841. When you select the (D)ata operation on the group menu, you will get a
  4842. combined display of the raw data and index files for that group. The index
  4843. file contains a single 32 bit value for each existing article number. This
  4844. value is an offset into the data file pointing to the header for the
  4845. corresponding article.
  4846.  
  4847. When nn want to access the article from number N to the last article, it looks
  4848. up the offset for article number N in the index file, and uses this as the
  4849. starting point for reading article header information in the data file. It
  4850. then simply reads to the end of the data file in which the article headers for
  4851. articles number N+1, N+2, and so on follows immediately after the header for
  4852. article number N.
  4853.  
  4854. The article header information is presented in a very terse form; each of the
  4855. output lines are described below for reference purposes:
  4856.  
  4857. offset = xxxx    , article # = nnnnn   (type)
  4858.      This shows the offset into the data file and the article number. The
  4859.      offset is stored in the index file for quick access. If no type is
  4860.      printed it is a normal article. Other types are: "digest header" and
  4861.      "digest sub-article".
  4862.  
  4863. xpost(count):  nnn, nnn, nnn, ...
  4864.      Cross-postings to other groups are encoded as a list of internal group
  4865.      numbers.
  4866.  
  4867. ts=nn hp=nn fp=nn lp=nn ref=nn[+Re] lines=nn
  4868.      These values are used by nn to sort, present, and access an article:
  4869.      ts is the time stamp on the article; it is a simple encoding of the
  4870.      posting date and time found in the Date: field.
  4871.      hp, fp, and lp are offsets into the file containing the article text: the
  4872.      header position, first text position, and last text position. The first
  4873.      will be zero for normal articles, but not for articles in a split digest.
  4874.      The last will be equal to the length of the file for normal articles, but
  4875.      not inside digests.
  4876.      ref is the number of references on the Reference: line. If "+Re" follows
  4877.      the number, the subject line contained a "Re:" prefix which has been
  4878.      removed.
  4879.  
  4880. Sender(length): name
  4881.      The name of the sender in "ready to print" format, i.e. reduced to 16
  4882.      characters as explained in the nn manual.
  4883.  
  4884. Subj(length): subject
  4885.      This is the full subject line from the article header (except for Re:
  4886.      prefixes in various formats).
  4887.  
  4888. From: NNADMIN
  4889. Subject: FILES
  4890.  
  4891. The $db, $lib, and $news used below are synonyms for the DB_DIRECTORY,
  4892. LIB_DIRECTORY, and the news system's lib directories respectively.
  4893. $db/MASTER      Database master index
  4894. $db/GROUPS      News group names in MASTER file order
  4895. $db/DATA/nnn.x  Index file for group number nnn
  4896. $db/DATA/nnn.d  Data file for group number nnn
  4897. $master/GATE    Message channel from nnadmin to nnmaster
  4898. $master/MPID    The process id of the nnmaster daemon.
  4899. $Log            The log file (truncate it regularly!)
  4900.  
  4901. The MASTER file contains a record for each news group, occurring in the same
  4902. sequence as the group names in the GROUPS file. The sequence also defines the
  4903. group numbers used to identify the files in the database and in a few other
  4904. places.
  4905.  
  4906. The GATE file will be created by nnadmin when needed, and removed by nnmaster
  4907. when it has read it. Therefore, to send a message to the nnmaster requires
  4908. that you are allowed to write in the $master directory.
  4909.  
  4910. From: NNADMIN
  4911. Subject: SEE ALSO
  4912.  
  4913. nn(1), nncheck(1), nngrep(1), nntidy(1)
  4914. nnquery(1M), nnusage(1M), nnmaster(8)
  4915.  
  4916. From: NNADMIN
  4917. Subject: WARNINGS
  4918.  
  4919. The GATE file is created with the owner and modes of the user that runs
  4920. nnadmin which may cause problems if the owner of the nnmaster process
  4921. (normally "news") is not allowed to read the created GATE file (a "umask" of
  4922. 022 is ok.) Unless you allow ordinary users to create files in the LIB
  4923. directory where the GATE file resides, only the owner of the directory
  4924. (normally "news") and "root" can use nnadmin to send messages to the nnmaster.
  4925. However, to send a wakeup signal to the master, anybody can run
  4926.       nnmaster -w
  4927.  
  4928. From: NNADMIN
  4929. Subject: BUGS
  4930.  
  4931. The user interface is completely out of line with the rest of the nn family,
  4932. and the way to run nnadmin in the non-interactive mode is a bit bizarre. This
  4933. is not likely to change, because I believe there are more important things to
  4934. do!
  4935.  
  4936. From: NNADMIN
  4937. Subject: AUTHOR
  4938.  
  4939. Kim F. Storm, Texas Instruments A/S, Denmark
  4940. E-mail: storm@texas.dk
  4941.  
  4942. From: NNCHECK
  4943. Subject: - check for unread articles
  4944.  
  4945. nncheck - check for unread articles
  4946.  
  4947.  
  4948. From: NNCHECK
  4949. Subject: SYNOPSIS
  4950.  
  4951. nncheck [ -Q -r -t ] [ -f format ]
  4952.  
  4953. From: NNCHECK
  4954. Subject: DESCRIPTION
  4955.  
  4956. nncheck will report if there are some articles on the system which you have
  4957. not read.
  4958.  
  4959. Without options, nncheck will simply print a message reporting the number of
  4960. unread articles with the following format:
  4961.       There are 327 unread articles in 25 groups
  4962. and when there are no unread articles, the following message will be printed:
  4963.       No News (is good news)
  4964.  
  4965. nncheck will exit with a value of 0 if there are unread articles, and 99 if
  4966. there is no news (see the exception for the -r option.)
  4967.  
  4968. It is important to notice that even though unread articles have been reported
  4969. by nncheck, the actual number of unread articles may be much lower (or even
  4970. zero) when nn is invoked to read the articles. This is because the calculation
  4971. of the number of unread articles is only based on recorded article number
  4972. intervals. Invoking nn to read the articles may reveal that the articles have
  4973. previously been read in another news group, have been expired, or are killed
  4974. using the auto-kill facility.
  4975.  
  4976. The following options are used to modify the amount and format of the output
  4977. from nncheck:
  4978.  
  4979. -Q   Quiet operation. No output is produced, only the exit status indicate
  4980.      whether there is unread news.
  4981.  
  4982. -t   Print the name of each group with unread articles, and how many unread
  4983.      articles there are (not counting split digests!).
  4984.  
  4985. -r   Output a single integer value specifying the number of unread articles,
  4986.      and exit with a 0 status (somebody told me this would be useful).
  4987.  
  4988. -f format
  4989.      Output the number of unread articles using the specified format. The
  4990.      format is a text that may contain the following %-escapes:
  4991.           %-code    resulting output
  4992.           %u        "uuu unread articles"
  4993.           %g        "ggg groups"
  4994.           %i        "is" if 1 unread article, else "are"
  4995.           %U        "uuu"
  4996.           %G        "ggg"
  4997.      where uuu is the number of unread articles, and ggg is the number of
  4998.      groups with unread articles.
  4999.      For example, the default output format is
  5000.            "There %i %u in %g"
  5001.      which I prefer to the following less perfect format:
  5002.            "There are %U unread article(s) in %G group(s)"
  5003.  
  5004.  
  5005.  
  5006. From: NNCHECK
  5007. Subject: FILES
  5008.  
  5009. ~/.newsrc   The record of read articles
  5010. $db/MASTER  The database master index
  5011.  
  5012.  
  5013. From: NNCHECK
  5014. Subject: SEE ALSO
  5015.  
  5016. nn(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
  5017. nnadmin(1M), nnusage(1M), nnmaster(1M)
  5018.  
  5019. From: NNCHECK
  5020. Subject: AUTHOR
  5021.  
  5022. Kim F. Storm, Texas Instruments A/S, Denmark
  5023. E-mail: storm@texas.dk
  5024.  
  5025. From: NNGOBACK
  5026. Subject: - make news articles unread on a day-by-day basis (nn)
  5027.  
  5028. nngoback - make news articles unread on a day-by-day basis (nn)
  5029.  
  5030.  
  5031. From: NNGOBACK
  5032. Subject: SYNOPSIS
  5033.  
  5034. nngoback [ -NQvi ] [-d] days [ group ]...
  5035.  
  5036. From: NNGOBACK
  5037. Subject: DESCRIPTION
  5038.  
  5039. nngoback will rewind the .newsrc record file of nn(1) one or more days. It can
  5040. be used to rewind all groups, or only a specified set of groups. In other
  5041. words, nngoback can mark news articles which have arrived on the system during
  5042. the last days days unread.
  5043.  
  5044. Only subscribed groups that occur in the current presentation sequence are
  5045. rewound. That means that if no group arguments are specified, all groups
  5046. occurring in the sequence defined in the init file will be rewound. Otherwise,
  5047. only the groups specified on the argument line will be rewound.
  5048.  
  5049. When a group is rewound, the information about selections, partially read
  5050. digests etc. are discarded. It will print notifications about this unless the
  5051. -Q (quiet) option is used.
  5052.  
  5053. If the -i (interactive) option is specified, nngoback will report for each how
  5054. many articles can be marked unread, and ask for confirmation before going back
  5055. in that group.
  5056.  
  5057. If the -v (verbose) option is specified, nngoback will report how many
  5058. articles are marked unread.
  5059.  
  5060. If the -N (no-update) option is specified, nngoback will perform the entire
  5061. goback operation, but not update the .newsrc file.
  5062.  
  5063. If you are not up-to-date with your news reading, you can also use nngoback to
  5064. catch up to only have the last few days of news waiting to be read in the
  5065. following way:
  5066.       nn -a0
  5067.       nngoback 3
  5068. The nn command will mark all articles in all groups as read (answer all to the
  5069. catch-up question.) The following nngoback will then make the last three days
  5070. of news unread again.
  5071.  
  5072. Examples:
  5073.  
  5074. nngoback 0
  5075.      Mark the articles which have arrived today as unread.
  5076.  
  5077. nngoback 1
  5078.      Mark the articles which have arrived yesterday and today as unread.
  5079.  
  5080. nngoback 6
  5081.      Mark the articles which have arrived during the last week as unread.
  5082.  
  5083. You cannot go more than 14 days back with nngoback. (You can change this limit
  5084. as described below.)
  5085.  
  5086. From: NNGOBACK
  5087. Subject: THE BACK_ACT DAEMON
  5088.  
  5089. It is a prerequisite for the use of nngoback that the script back_act is
  5090. executed at an appropriate time once (and only once) every day. Preferably
  5091. this is done by cron right before the bacth of news for `today' is received.
  5092. back_act will maintain copies of the active file for the last 14 days.
  5093.  
  5094. Optionally, the back_act program accepts a single numerical argument
  5095. specifying how many copies of the active file it should maintain. This is
  5096. useful if news is expired after 7 days, in which case keeping more than 7 days
  5097. of active file copies is wasteful.
  5098.  
  5099. From: NNGOBACK
  5100. Subject: FILES
  5101.  
  5102. ~/.newsrc            The record of read articles.
  5103. ~/.newsrc.goback     The original rc file before goback.
  5104. $db/active.N         The N days `old' active file.
  5105. $master/back_act     Script run by cron to maintain old active files.
  5106.  
  5107.  
  5108. From: NNGOBACK
  5109. Subject: SEE ALSO
  5110.  
  5111. nn(1), nncheck(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
  5112. nnadmin(1M), nnusage(1M), nnmaster(8)
  5113.  
  5114. From: NNGOBACK
  5115. Subject: NOTES
  5116.  
  5117. nngoback does not check the age of the `old' active files; it will blindly
  5118. believe that active.0 was created today, and that active.7 is really seven
  5119. days old! Therefore, the back_act script should be run once and only once
  5120. every day for nngoback to work properly.
  5121.  
  5122. The days are counted relative to the time the active files were copied.
  5123.  
  5124. From: NNGOBACK
  5125. Subject: AUTHOR
  5126.  
  5127. Kim F. Storm, Texas Instruments A/S, Denmark
  5128. E-mail: storm@texas.dk
  5129.  
  5130. From: NNGRAB
  5131. Subject: - news retrieval by keyword (nn)
  5132.  
  5133. nngrab - news retrieval by keyword (nn)
  5134.  
  5135.  
  5136. From: NNGRAB
  5137. Subject: SYNOPSIS
  5138.  
  5139. nngrab [ -c ] keyword
  5140.  
  5141. From: NNGRAB
  5142. Subject: DESCRIPTION
  5143.  
  5144. nngrab invokes nn on all USENET articles whose subject (or keyword) field(s)
  5145. contain an instance of keyword. nngrab is a fast equivalent for:
  5146.       nn -mxX -s/keyword all
  5147.  
  5148. For example,
  5149.       nngrab tesla
  5150. will retrieve items concerning Nikola Tesla.
  5151.  
  5152. Keyword case is ignored unless -c is specified, and the keyword can be a
  5153. regular expressions (escaped to avoid conflicts with the shell). For example,
  5154.       nngrab "n.*tesla"
  5155.  
  5156. The range of search includes all newsgroups on the system, including ones
  5157. which are unsubscribed.
  5158.  
  5159. From: NNGRAB
  5160. Subject: FILES
  5161.  
  5162. $db/subjects    subject database
  5163.  
  5164.  
  5165. From: NNGRAB
  5166. Subject: SEE ALSO
  5167.  
  5168. nn(1), nnspew(8), egrep(1)
  5169.  
  5170. From: NNGRAB
  5171. Subject: NOTES
  5172.  
  5173. nngrab can be much faster than the equivalent command shown above, if the
  5174. tertiary news subject database generated by the nnspew(8) daemon exists. To
  5175. enable the faster operation, nnspew must be executed regularly by cron.
  5176.  
  5177. nngrab uses egrep(1) to scan the subject database, so if you are not running
  5178. fast egrep (GNU-style) this is all for naught.
  5179.  
  5180. nngrab will use a subject database generated by nnspew independent of its age.
  5181. Thus, if you stop running nnspew, remember to remove the subjects file as
  5182. well.
  5183.  
  5184. From: NNGRAB
  5185. Subject: BUGS
  5186.  
  5187. Under version 6.4, search of the "Keywords:" field is not supported.
  5188. Search on name is not possible either.
  5189.  
  5190. From: NNGRAB
  5191. Subject: AUTHOR
  5192.  
  5193. James A. Woods, NASA Ames Research Center
  5194. E-mail: jaw@ames.arc.nasa.gov
  5195.  
  5196. From: NNGREP
  5197. Subject: - grep for news group names (nn)
  5198.  
  5199. nngrep - grep for news group names (nn)
  5200.  
  5201.  
  5202. From: NNGREP
  5203. Subject: SYNOPSIS
  5204.  
  5205. nngrep [ -ainprsu ] [ -l ] [ pattern ]
  5206.  
  5207. From: NNGREP
  5208. Subject: DESCRIPTION
  5209.  
  5210. nngrep can print various selections of the available news groups.
  5211.  
  5212. Without options, nngrep will list all currently subscribed newsgroups whose
  5213. name matches any of the specified patterns. If no pattern is specified, all
  5214. subscribed groups will be listed.
  5215.  
  5216. The selection of news groups against which the patterns are matches, and
  5217. subsequently printed by nngrep can be limited or expanded using the following
  5218. command line options and arguments:
  5219.  
  5220. -a   Use both subscribed and unsubscribed groups. Overrides the -u option.
  5221.  
  5222. -i   Use only ignored groups, i.e. which are not in the presentation sequence.
  5223.  
  5224. -n   Use only new groups. Notice that nn considers a group to be new until you
  5225.      have read at least one article in the group, or you have unsubscribed to
  5226.      the group. This means that even reasonable active news groups may remain
  5227.      "new" for quite some time if it only contains articles which are
  5228.      cross-posted to other groups which occur earlier in your presentation
  5229.      sequence.
  5230.  
  5231. -p   Use only groups with unread (pending) articles.
  5232.  
  5233. -r   Use only read groups, i.e. without unread articles.
  5234.  
  5235. -s   Use only groups which are in the presentation sequence.
  5236.  
  5237. -u   Use only unsubscribed groups.
  5238.  
  5239. These options can be combined if they don't logically exclude each other.
  5240.  
  5241. For example, to get the names of all "source" groups, you can use the command
  5242.       nngrep source
  5243.  
  5244. You can use this to read a specific subset of news groups with nn; for example
  5245.       nn `nngrep -sp source`
  5246.  
  5247. From: NNGREP
  5248. Subject: LONG LISTING
  5249.  
  5250. A long listing of the matched groups can be requested with the -l option. It
  5251. will include the following information:
  5252.  
  5253. SUBSCR      Specifies whether the group is subscribed or not (yes/no).
  5254. NEW         Specifies whether the group is new or not (yes/no).
  5255. UNREAD      Shows the number of unread articles in the group (if any).
  5256. SEQUENCE    Shows the group's index in the presentation sequence.
  5257. GROUP       The name of the group.
  5258.  
  5259.  
  5260. From: NNGREP
  5261. Subject: FILES
  5262.  
  5263. ~/.newsrc   The record of read articles
  5264. ~/.nn/init  The presentation sequence
  5265.  
  5266.  
  5267. From: NNGREP
  5268. Subject: SEE ALSO
  5269.  
  5270. nn(1), nncheck(1), nngoback(1), nngrab(1), nnpost(1), nntidy(1)
  5271. nnadmin(1M), nnusage(1M), nnmaster(8)
  5272.  
  5273. From: NNGREP
  5274. Subject: AUTHOR
  5275.  
  5276. Kim F. Storm, Texas Instruments A/S, Denmark
  5277. E-mail: storm@texas.dk
  5278.  
  5279. From: NNMASTER
  5280. Subject: - nn database manager
  5281.  
  5282. nnmaster - nn database manager
  5283.  
  5284.  
  5285. From: NNMASTER
  5286. Subject: SYNOPSIS
  5287.  
  5288. nnmaster -I [lmit]
  5289. nnmaster -w
  5290. nnmaster -v
  5291. nnmaster -l [ "lock message" ]
  5292. nnmaster [ options ] [ groups ]
  5293. nnmaster -F [ options ] [ groups ]
  5294.  
  5295. From: NNMASTER
  5296. Subject: DESCRIPTION
  5297.  
  5298. nnmaster is the daemon which is responsible for building and maintaining the
  5299. database used by the nn(1) news reader.
  5300.  
  5301. Normally, nnmaster is started when the system enters multi-user mode, and runs
  5302. until system shutdown. To facilitate this, you should place the following call
  5303. in /etc/rc (or similar) to invoke the nnmaster daemon:
  5304.       $master/nnmaster -l -r -C
  5305. where $master is the MASTER_DIRECTORY defined during configuration of nn.
  5306.  
  5307. When nnmaster is started as specified above, it will first unlock the database
  5308. in case it was locked (-l), perform a thorough consistency check on the
  5309. database (-C).
  5310.  
  5311. Then, every 10 minutes (-r), it will look at the time-stamp of the news active
  5312. file to see whether new articles have arrived on the system (or whether
  5313. articles have been expired).
  5314.  
  5315. If the active file has been modified, nnmaster will collect the header
  5316. information from the new articles and enter them into the database (or remove
  5317. the headers of the expired articles from the database).
  5318.  
  5319. If it detects that some articles have been expired, it will automatically
  5320. remove the header information of the expired articles from the database.
  5321.  
  5322. From: NNMASTER
  5323. Subject: ARTICLE COLLECTION OPTIONS
  5324.  
  5325. Normally, nnmaster will collect all available news groups defined in the news
  5326. active file. The set of collected groups can be controlled via the argument
  5327. line. Groups can be either included or excluded:
  5328. A group name, e.g. comp, will cause the group and all its subgroups to be
  5329. collected. Individual groups, e.g. news.software.nn, can also be specified
  5330. A group name preceded by an exclamation mark, e.g. !talk.politics, will cause
  5331. the group and all its subgroups to be ignored.
  5332. An empty argument, i.e. "", will cause all groups that are not ignored to be
  5333. collected. For example, to collect everything but rec and misc, use the
  5334. following command:
  5335.       nnmaster -r !rec !misc ""
  5336. If the empty argument had been omitted, nothing would be collected, since the
  5337. presence of any groups arguments causes nnmaster to ignore all groups which
  5338. are not explicitly mentioned.
  5339. Example 1: The following commands can be executed by cron to collect different
  5340. sets of groups at different intervals or under different conditions:
  5341.       nnmaster -B -O14 rec misc sci -LBO -u
  5342.       nnmaster !rec !misc !sci "" -u
  5343. Example 2: The group arguments are used in the given sequence, e.g. to leave
  5344. out comp.sys, but still collect comp.sys.ibm.pc, use the command:
  5345.       nnmaster -r comp.sys.ibm.pc !comp.sys ""
  5346. The use of the -u option in the first example is essential, since each of the
  5347. commands will update the active file time stamp which will prevent the other
  5348. command from detecting new articles that have arrived.
  5349. Using this method to keep specific groups out of the database must be used
  5350. with great caution; just a single invocation of nnmaster without any arguments
  5351. will collect all the otherwise ignored groups!
  5352.  
  5353. From: NNMASTER
  5354. Subject: COLLECTION OF ARTICLES
  5355.  
  5356. The following options control how nnmaster performs the collection of new
  5357. articles.
  5358.  
  5359. -r [ min ]
  5360.      Daemon mode. The nnmaster will put itself in the background (unless -f is
  5361.      also specified), and will checks for arrival of new articles and expired
  5362.      articles every min minutes (and update the database accordingly). If min
  5363.      is omitted, the default is to check every 10 minutes.
  5364.      Without the -r option, the nnmaster will just perform a single collection
  5365.      of new articles (if any) and then exit. This can be used to have the
  5366.      nnmaster started by cron(8) at regular intervals instead of having it as a
  5367.      daemon which sleeps between checking for new articles. Since the nnmaster
  5368.      is a bit expensive to start up (it has to read a few files), it is up to
  5369.      you to decide which mode is best on your system. (I have also heard that
  5370.      it works to call nnmaster without -r from inews(1). I cannot recommend
  5371.      this unless you receive batched news; invoking nnmaster for every
  5372.      received article sounds too expensive to me.)
  5373.  
  5374. -h [ sec ]
  5375.      Hold collection of new articles until next scan if new articles have
  5376.      arrived withing the last sec [60] seconds. This is useful to prevent
  5377.      nnmaster from competing for disk i/o with an rnews process which is
  5378.      unbatching incoming news, or a running expire process. It will have the
  5379.      side effect of limiting the number of C: entries in the log, since
  5380.      collection of incoming batches will typically be done in larger thunks.
  5381.  
  5382. -f   Run nnmaster in foreground in daemon mode (see -r). Useful if nnmaster is
  5383.      invoked from inittab. (Notice that if you use a respawn entry in inittab,
  5384.      you will not be able to stop nnmaster using the -k option, since init
  5385.      will immediately start another master.)
  5386.  
  5387. -C   Perform a consistency check on the database on start-up, and rebuild
  5388.      corrupted database files. This operation can be quite time-consuming
  5389.      since it reads through all the database files.
  5390.  
  5391. -b   Normally, articles without a proper news header (no Newsgroups: line) are
  5392.      ignored. Specifying the -b option causes these `bad' articles to be
  5393.      included in the database (normally with no sender or subject).
  5394.  
  5395. -B   Remove `bad' articles. Sometimes, articles without a header ends up in
  5396.      the news spool directory. These articles have no article id, and
  5397.      therefore, they will never be expired by expire(8). This option will
  5398.      allow the nnmaster to silently remove these articles (a `B' entry will
  5399.      occur in the log file).
  5400.  
  5401. -O days
  5402.      Ignore articles which are older than the given number of days. This may
  5403.      help keep old 'stray' articles out of the database. If the -B options is
  5404.      also specified, the old articles will be removed from the news spool
  5405.      directories. Old ignored or removed articles will be reported with an `O'
  5406.      entry in the log file. This option can be disable for individual groups
  5407.      by the O flag in the GROUPS file (see below).
  5408.  
  5409. -R N Specifies how the auto-recollect operation is performed on the groups
  5410.      having this option set in the GROUPS file (see below). Four methods are
  5411.      available (default is method 1):
  5412.      1: Run expire on the group when new articles arrive.
  5413.      2: Run expire on the group on every scan.
  5414.      3: Recollect all articles when new articles arrive.
  5415.      4: Recollect all articles on every scan.
  5416.  
  5417. -M mode
  5418.      Normally, nnmaster will send a message via mail to the news administrator
  5419.      (OWNER) when an error or potential problems (primarily nntp related)
  5420.      occur. This can be restricted to only fatal errors (nnmaster terminated)
  5421.      if mode is 1, and disabled completely if mode is 0.
  5422.  
  5423. -Q   Normally, nnmaster will print a message on the system console or in the
  5424.      syslog if a fatal error happens. This option will prevent this, so only a
  5425.      type 'E' entry is written to the Log file.
  5426.  
  5427. From: NNMASTER
  5428. Subject: DATABASE EXPIRATION
  5429.  
  5430. Since articles does not stay forever in the news system, the database must be
  5431. cleaned up regularly to remove the information stored for expired articles.
  5432. Expiration of the database is normally scheduled using the nnadmin(1M) command
  5433. executed by cron at a suitable time when expire on the news articles has
  5434. completed. The following command will send a message to the nnmaster and cause
  5435. it to initiate expire on all news groups:
  5436.       nnadmin =EYW
  5437.  
  5438. Selective expiration of individual groups can be done from nnadmin
  5439. (interactive mode). It can also be done by invoking nnmaster with the -F
  5440. option. For example, the following command will run expire on all groups
  5441. except the `rec' groups:
  5442.       nnmaster -F -k !rec ""
  5443. The -k option is required to terminate the currently running master since two
  5444. daemons cannot be running at the same time. Thus to run expire (on all groups)
  5445. in this way from cron, the following commands must be used:
  5446.       nnmaster -Fk "" ; nnmaster -r ...
  5447.  
  5448. It is also possible to have nnmaster detect expiration automatically (see -e).
  5449. This requires that the min field in the active file is updated by the news
  5450. expire (this is not the default case when Cnews is used). However, this is not
  5451. always a safe indication since the first article may not have been expired,
  5452. while a lot of other articles have been deleted.
  5453.  
  5454. There are several strategies available in the nnmaster to do this clean-up,
  5455. each having their strengths and weaknesses.
  5456.  
  5457. Method 1 (default): Rebuilds the database from the existing database
  5458. information by comparing the current database contents with the contents of
  5459. the news group directories, eliminating entries whose file no longer exists.
  5460. This method is guaranteed to eliminate all expired articles from the database,
  5461. and it is reasonably fast because it only has to read the directories, not
  5462. each article file.
  5463.       If news is accessed remotely via nntp, the list of existing articles
  5464. cannot efficiently be fetched by reading a local directory. Instead an XHDR
  5465. request is sent to the nntp server to get a list of articles.
  5466.  
  5467. Method 2: Eliminates only the expired articles before the first article in the
  5468. group. This is very fast since only the active file and the database itself is
  5469. accessed, but it will obviously leave some expired articles in the database.
  5470. This method requires that the min field in the active file is updated by
  5471. expire.
  5472.  
  5473. Method 3: Discard the current database information and recollects all
  5474. articles. This is obviously very time consuming, and it is therefore not
  5475. recommended, especially not with nntp.
  5476.  
  5477. The options related to database expiration are:
  5478.  
  5479. -E N Select expire method N. (If N is omitted, the default method is used).
  5480.  
  5481. -e [N]
  5482.      Automatically run expire in the database on groups where the min number
  5483.      in the active file has increased by N (1 if omitted) articles. This is
  5484.      disabled by default (since the min field is often unreliable).
  5485.  
  5486. -F   Run expire once and exit. If a list of groups is specified on the command
  5487.      line, the matched groups (see the rules above) will be marked for
  5488.      expiration. If no groups are specified, only the groups already scheduled
  5489.      for expire will be expired. Consequently, to expire all groups, a blank
  5490.      argument "" (matching all groups) must be specified.
  5491.  
  5492. From: NNMASTER
  5493. Subject: DATABASE LOCKING
  5494.  
  5495. The database can be locked centrally, which will normally disallow all access
  5496. to the database, and even block nnmaster from being (accidentally) started.
  5497. When a lock is set on the database, all currently running clients will
  5498. terminate the next time they try to access the database. Setting a lock on the
  5499. database can thus also be used to force running clients to terminate.
  5500.  
  5501. The following options set and clear locks on the database:
  5502.  
  5503. -l message
  5504.      Locks the database with the given message. The message will be displayed
  5505.      every time a program tries to access the database.
  5506.  
  5507. -l   Unlock the database if it was locked.
  5508.  
  5509. -i   Ignore a possible lock and continue. This can be used to have nnmaster
  5510.      operate on a database which is blocked from normal user access.
  5511.  
  5512. Since only one nnmaster can operate on the database at any one time, a running
  5513. nnmaster daemon must be stopped before a lock can be set on the database. If
  5514. neither -f nor -r is specified with the -l option (in both forms), nnmaster
  5515. will terminate after setting or clearing the lock.
  5516.  
  5517. From: NNMASTER
  5518. Subject: DATABASE INITIALIZATION
  5519.  
  5520. The following options are used to initialize and update the central database
  5521. files:
  5522.  
  5523. -I [limit]
  5524.      Initialize database. This option will erase an existing database, and
  5525.      create an empty database containing entries for the currently known
  5526.      groups. nnmaster will offer you to use an existing GROUPS file when
  5527.      initializing the database.
  5528.      The optional limit can be used to put a limit on the number of articles
  5529.      that will be collected in each group during the first collection of
  5530.      articles following the database initialization. This is useful on systems
  5531.      where the 'min' field in the active file is unreliable or not maintained
  5532.      (Cnews doesn't) to limit the work done to do the initial collection of
  5533.      news after the initialization of the database. If news is accessed
  5534.      remotely from an NNTP server, this is even more important! If limit is
  5535.      omitted, or is zero, nnmaster will trust the min field and collect all
  5536.      articles in the range min..last.
  5537.  
  5538. -G   Reread the GROUPS file. This option is used to instruct nnmaster to parse
  5539.      the GROUPS file after it has been edited. See the section on the GROUPS
  5540.      file below.
  5541.  
  5542. From: NNMASTER
  5543. Subject: MISCELLANEOUS OPTIONS
  5544.  
  5545. The following options controls various details of the nnmaster's behaviour:
  5546.  
  5547. -D [ N ]
  5548.      Run nnmaster in "debug mode". If N is omitted, or equals 1 or 3, this
  5549.      will produce a compact but still very informative trace of the collection
  5550.      or expire process directly on the terminal. This is most useful when
  5551.      doing the first collection of articles after initializing the database
  5552.      with -I. If N is 2 or 3, a trace of the NNTP traffic is written to a file
  5553.      nnmaster.log in the TMP directory. This option disables -r.
  5554.  
  5555. -H   Identifies the host which nnmaster is running on as the nntp-server for
  5556.      its clients, i.e. that it can access the news spool directory locally
  5557.      without using NNTP. Normally, nnmaster will detect this by itself by
  5558.      comparing the host name to the contents of the nntp_server file, so this
  5559.      option should really be superfluous.
  5560.  
  5561. -y retries
  5562.      In some networked environment, opening an article (shared from another
  5563.      machine via NFS) may fail for no obvious reason. Using this option, it is
  5564.      possible to cause nnmaster to perform retries attempts to open an article
  5565.      before marking the article as non-existing in the database.
  5566.  
  5567. -L types
  5568.      Exclude the specified entry types from the log file. This is normally
  5569.      used to exclude the 'C'ollecting and e'X'pire entries (-LCXO).
  5570.  
  5571. -t   Trace the collection process. This will place a lot of information into
  5572.      the log file (T: entries).
  5573.  
  5574. -u   Normally, nnmaster will just compare the time-stamp on the active file
  5575.      with a time-stamp saved in the database to see if new articles have
  5576.      arrived. The -u option forces the nnmaster to read the active file on
  5577.      start-up to see if new articles have arrived.
  5578.  
  5579. -v   Print the release and version identification for nnmaster, and exit.
  5580.  
  5581. -w   Wakeup the real nnmaster. Send a signal to the nnmaster daemon to have it
  5582.      check for new articles immediately.
  5583.  
  5584. -k   Kill the already running nnmaster daemon before proceeding with the
  5585.      operation specified by the other options (or terminate if no other
  5586.      operation is requested).
  5587.  
  5588. From: NNMASTER
  5589. Subject: THE GROUPS FILE
  5590.  
  5591. The primary purpose of the GROUPS file is to store the names of the news
  5592. groups represented in the database. Each line in the file corresponds to an
  5593. entry in the (binary) MASTER file, and the sequence of the lines in the GROUPS
  5594. file must never be changed unless the database is reinitialized afterwards.
  5595.  
  5596. However, the contents of the lines in the GROUPS file can be edited to control
  5597. how the nnmaster should handle each individual group.
  5598.  
  5599. The format of each line is:
  5600.       news.group.name [ timestamp ] [ flags ]
  5601.  
  5602. The news group name is the name of the group, and must not be changed in any
  5603. way. If the group is no longer in the news active file, and consequently the
  5604. group does no longer exist, group name can be replaced by a `@' character
  5605. which will instruct nnmaster to ignore this entry without having to rebuild
  5606. the entire database.
  5607.  
  5608. The optional time stamp indicates when the line was added to the GROUPS file
  5609. and is used by nn to detect new groups. When the GROUPS file is built
  5610. initially from the active file, the time stamps are omitted which simply means
  5611. that they are "old".
  5612.  
  5613. One or more of the following flags can be added to the GROUPS line to control
  5614. nnmaster's handling of the group:
  5615.  
  5616. D    Causes nnmaster to treat all articles in the group as digests, even when
  5617.      they don't initially look like digests. Articles which are found not to
  5618.      be digests after all, are still not digested.
  5619.  
  5620. N    Instructs nnmaster to never digest any articles in the group.
  5621.  
  5622. O    Disables the -O option for this group, i.e. all existing articles will be
  5623.      included in the database (and they will not be removed if the -B option
  5624.      is specified). This flag should be set on groups which you never expire,
  5625.      or have a very long expire time!
  5626.  
  5627. R    Causes nnmaster to recollect all available articles in the group whenever
  5628.      a new article is received. This is said to be useful is some high-traffic
  5629.      clarinet groups with many cancelled articles.
  5630.  
  5631. >file
  5632.      Instructs nnmaster to append all new articles to the specified file. This
  5633.      makes it possible to keep specific groups out of the way of expire. The
  5634.      archive file can be access directly from the nn client using the
  5635.      goto-group command. The file name must be a full path name to a file in
  5636.      an existing, writeable directory.
  5637.  
  5638. @    Instructs nnmaster to completely ignore this group - this is equivalent
  5639.      to setting the group name to `@' as described above.
  5640.  
  5641. ! or X
  5642.      Causes nnmaster to ignore the group and not collect the group's articles
  5643.      in the database.
  5644.  
  5645. Comments (starting with `#' and continuing to the end of line) and empty lines
  5646. are allow in the GROUPS file, but it is strongly recommended to keep the
  5647. changes to the GROUPS file as small as possible, because of the implicit
  5648. correspondence with the binary MASTER file.
  5649.  
  5650. It is not recommended to edit the GROUPS file while nnmaster is running
  5651. because it may add new groups to the file. After editing the GROUPS file, the
  5652. command
  5653.       nnmaster -G
  5654. must be run before restarting the nnmaster to parse and verify the new GROUPS
  5655. file.
  5656.  
  5657. From: NNMASTER
  5658. Subject: NNTP SUPPORT
  5659.  
  5660. The nnmaster can access the news articles from a local news spool directory as
  5661. well as from an NNTP server. When compiled with NNTP enabled, nnmaster will
  5662. compare the name of the NNTP server and the name of the local host; if they
  5663. are identical, nnmaster will bypass NNTP and access the articles directly.
  5664.  
  5665. When it has to access the news articles via NNTP, it cannot time-stamp the
  5666. active file, so instead it transfers the entire active file from the NNTP
  5667. server and compares it with a local copy of the last active file fetched from
  5668. the NNTP server. This is not very expensive in terms of cpu-cycles, disk-load,
  5669. or net-bandwidth, but to stay on friendly terms with the NNTP server
  5670. administrator, you should probably not use shorter update intervals than the
  5671. standard 10 minutes.
  5672.  
  5673. Setting a much higher update interval than the standard 10 minutes is not
  5674. really recommended either, since an update normally implies fetching a burst
  5675. of news articles from the NNTP server, so setting the interval too long may
  5676. imply that the load on the NNTP server will be more un-even.
  5677.  
  5678. In expire method 1, the use of XHDR just to get a list of existing articles in
  5679. a group is definitely a waste of resources on the nntp server (but still lower
  5680. than using method 3). Before using the XHDR request, nnmaster will send a
  5681. non-standard "LISTGROUP" request; if the nntp server supports this request, it
  5682. should return an OK_HEAD status followed by an (unordered) list of article
  5683. numbers (one per line) terminated by a `.' line. The nntp servers supporting
  5684. this request will be much less loaded during expire.
  5685.  
  5686. The -O option does not work with NNTP. The -B option will only work with NNTP
  5687. if the nnmaster is running on the NNTP server.
  5688.  
  5689. From: NNMASTER
  5690. Subject: FILES
  5691.  
  5692. The $db, $master, and $news names used below are synonyms for the
  5693. DB_DIRECTORY, MASTER_DIRECTORY, and NEWS_LIB_DIRECTORY defined during
  5694. configuration.
  5695.  
  5696. $db/MASTER          Database master index
  5697. $db/GROUPS          News group names and flags in MASTER file order
  5698. $db/DATA/nnn.[dx]   Database files for group number nnn
  5699. .../.nn[dx]         Database files if located in the group directories
  5700. $master/GATE        Message channel from nnadmin to nnmaster
  5701. $master/MPID        The process id of the nnmaster daemon.
  5702. $Log                The log file (the location is configuration dependent)
  5703. $news/active        Existing articles and groups
  5704. /usr/lib/nntp_serverContains the name of the NNTP server.
  5705.  
  5706. The MASTER file contains a record for each news group, occurring in the same
  5707. sequence as the group names in the GROUPS file. The sequence also defines the
  5708. group numbers used to identify the files in the database's DATA directory.
  5709.  
  5710. The GATE file will be created by nnadmin when needed, and removed by nnmaster
  5711. when it has read it. Therefore, to send a message to the nnmaster requires
  5712. that you are allowed to write in the $master directory.
  5713.  
  5714. The contents of the Log file are described in the nnadmin manual.
  5715.  
  5716. From: NNMASTER
  5717. Subject: SEE ALSO
  5718.  
  5719. nn(1), nncheck(1), nngrep(1), nntidy(1)
  5720. nnadmin(1M), nnspew(8), nnusage(1M)
  5721.  
  5722. From: NNMASTER
  5723. Subject: AUTHOR
  5724.  
  5725. Kim F. Storm, Texas Instruments A/S, Denmark
  5726. E-mail: storm@texas.dk
  5727.  
  5728. From: NNPOST
  5729. Subject: - post news articles (nn)
  5730.  
  5731. nnpost - post news articles (nn)
  5732.  
  5733.  
  5734. From: NNPOST
  5735. Subject: SYNOPSIS
  5736.  
  5737. nnpost [ -dksy string ] [ -f file ] [ -p ] [ group... ]
  5738.  
  5739. From: NNPOST
  5740. Subject: DESCRIPTION
  5741.  
  5742. nnpost is used to post new articles using nn's normal interface, but without
  5743. entering nn in reading mode.
  5744.  
  5745. When started, it reads the init file and then directly executes nn's :post
  5746. command.
  5747.  
  5748. It will prompt for a (comma-separated) list of news groups, the article
  5749. subject, a list of keywords, a summary, and the distribution of the article.
  5750. Each of these prompts can also be supplied via command line options or
  5751. arguments as described below.
  5752.  
  5753. When prompted for the "Newsgroup:", entering a ? as the first key will cause
  5754. nnpost to list all the known news groups and their purpose (if this
  5755. information is available). You can also enter / followed by a word or regular
  5756. expression which will cause nnpost to produce a (much) shorter listing only
  5757. containing the groups whose name and/or purpose description matches the
  5758. regular expression. When paging through either list, you can enter q to quit
  5759. the listing.
  5760.  
  5761. If a source file is specified with -f it will be used as the initial article
  5762. body. If the -p option is also specified, the article is posted directly
  5763. without editing.
  5764.  
  5765. nnpost can be used to do unattended postings if sufficient arguments are
  5766. provided on the command line to build the header and the body of the article.
  5767. The required arguments are: one or more newsgroups, a subject (-s), a source
  5768. file (-f), a distribution (-d), and the -p option. Other fields which are not
  5769. specified (e.g. keywords) will not be included in the header. The contents of
  5770. the news-header variable in the init file will be included in the header.
  5771.  
  5772. From: NNPOST
  5773. Subject: OPTIONS
  5774.  
  5775.  
  5776. -d distribution
  5777.      Use the specified distribution for the article.
  5778.  
  5779. -k "keywords"
  5780.      Associate the specified keywords with the article.
  5781.  
  5782. -s "subject"
  5783.      Use the specified subject for the new article.
  5784.  
  5785. -y "summary"
  5786.      Include the given summary in the article header.
  5787.  
  5788. -f file
  5789.      Read the article body from the specified file.
  5790.  
  5791. -p   Post the article specified with -f without editing.
  5792.  
  5793. From: NNPOST
  5794. Subject: FILES
  5795.  
  5796. ~/.nn/init  The control variables for nnpost.
  5797.  
  5798.  
  5799. From: NNPOST
  5800. Subject: SEE ALSO
  5801.  
  5802. nn(1)
  5803.  
  5804. From: NNPOST
  5805. Subject: AUTHOR
  5806.  
  5807. Kim F. Storm, Texas Instruments A/S, Denmark
  5808. E-mail: storm@texas.dk
  5809.  
  5810. From: NNSPEW
  5811. Subject: - subject database manager (nn)
  5812.  
  5813. nnspew - subject database manager (nn)
  5814.  
  5815.  
  5816. From: NNSPEW
  5817. Subject: SYNOPSIS
  5818.  
  5819. nnspew
  5820.  
  5821. From: NNSPEW
  5822. Subject: DESCRIPTION
  5823.  
  5824. nnspew builds a sorted database of all available subjects in the nn article
  5825. database for fast access via the nngrab utility.
  5826.  
  5827. nnspew should be activated regularly to rebuild the subject database, e.g. by
  5828. cron. For example:
  5829.       2 6,9,12,15,18,21 * * * root /bin/nice /usr/lib/nn/nnspew
  5830.  
  5831. Cross posted articles are only represented in the database once, and identical
  5832. subjects in each group are merged into one to use a minimum of disk space.
  5833. This saves about 50% of the disk space otherwise required.
  5834.  
  5835. From: NNSPEW
  5836. Subject: FILES
  5837.  
  5838. $db/subjects    subject database
  5839.  
  5840.  
  5841. From: NNSPEW
  5842. Subject: SEE ALSO
  5843.  
  5844. nn(1), nngrab(1), egrep(1)
  5845.  
  5846. From: NNSPEW
  5847. Subject: NOTES
  5848.  
  5849. nngrap will use the subject database generated by nnspew independent of its
  5850. age. Thus, if you stop running nnspew, remember to remove the subjects file as
  5851. well.
  5852.  
  5853. From: NNSPEW
  5854. Subject: BUGS
  5855.  
  5856. nnmaster should automatically append new articles to the subject database to
  5857. keep it up-to-date, and thus require less frequent rebuilding using nnspew.
  5858.  
  5859. From: NNSPEW
  5860. Subject: AUTHOR
  5861.  
  5862. James A. Woods, NASA Ames Research Center
  5863. E-mail: jaw@ames.arc.nasa.gov
  5864.  
  5865. From: NNSTATS
  5866. Subject: - display nnmaster collection and expire statistics
  5867.  
  5868. nnstats - display nnmaster collection and expire statistics
  5869.  
  5870.  
  5871. From: NNSTATS
  5872. Subject: SYNOPSIS
  5873.  
  5874. nnstats [ -lt ] [ -d month day ] [ -m month ] [ logfile ]...
  5875.  
  5876. From: NNSTATS
  5877. Subject: DESCRIPTION
  5878.  
  5879. nnstats will extract the collection (C) and expiration (X) entries from the
  5880. log file and calculate total and average number of articles, groups and
  5881. elapsed time per day, per month, or for the duration of the whole log file.
  5882.  
  5883. Normally only a summary for the specified period is printed. If -l is
  5884. specified, the statistics for each day in the period is also printed, and if
  5885. -t is specified the summary is not printed.
  5886.  
  5887. Normally the statistics is collected for all days in the log files (or the
  5888. current log file if one is not specified).
  5889.  
  5890. If "-m month" is specified, the statistics for that month is calculated. The
  5891. month is specified in normal date notation, i.e. a capitalized three letter
  5892. abbreviation like Jan, Feb, ...
  5893.  
  5894. If "-d month day" is specified, the statistics for that date only is
  5895. calculated and printed.
  5896.  
  5897. From: NNSTATS
  5898. Subject: FILES
  5899.  
  5900. .../Log             The log file
  5901.  
  5902.  
  5903. From: NNSTATS
  5904. Subject: SEE ALSO
  5905.  
  5906. nn(1), nnusage(1M), nnadmin(1M), nnmaster(8)
  5907.  
  5908. From: NNSTATS
  5909. Subject: NOTES
  5910.  
  5911. If nnmaster is run with options -LCX, nnstats will not work, because the
  5912. necessary entries are not written to the log file.
  5913.  
  5914. From: NNSTATS
  5915. Subject: AUTHORS
  5916.  
  5917. Mark Moraes <moraes@csri.toronto.edu>
  5918. Kim F. Storm <storm@texas.dk>
  5919.  
  5920. From: NNTIDY
  5921. Subject: - tidy your personal .newsrc file
  5922.  
  5923. nntidy - tidy your personal .newsrc file
  5924.  
  5925.  
  5926. From: NNTIDY
  5927. Subject: SYNOPSIS
  5928.  
  5929. nntidy [ -aciNQrsuv ] [ group ]...
  5930.  
  5931. From: NNTIDY
  5932. Subject: DESCRIPTION
  5933.  
  5934. nntidy will clean out non-existing groups, adjust obviously wrong article
  5935. numbers, and remove badly formed lines from your .newsrc file.
  5936.  
  5937. It may optionally remove ignored groups, unsubscribed groups, and groups which
  5938. are not part of your presentation sequence or the groups specified on the
  5939. command line.
  5940.  
  5941. You should run nntidy if your rc file has been corrupted for some reason.
  5942.  
  5943. From: NNTIDY
  5944. Subject: OPTIONS
  5945.  
  5946.  
  5947. -a   Equivalent to -cisu.
  5948.  
  5949. -c   Remove unrecognized lines. This will also remove the `options' line used
  5950.      by some older news readers, such as readnews(1)
  5951.  
  5952. -i   Remove entries for groups which are ignored in the database, e.g. entries
  5953.      marked with `X' in the GROUPS file.
  5954.  
  5955. -r   Remove entries for unsubscribed groups.
  5956.  
  5957. -s   Remove entries which are not included in the group presentation sequence
  5958.      defined in the init file. If one or more groups are specified on the
  5959.      command line, entries not matched by these groups (and their subgroups
  5960.      etc) will be removed.
  5961.      Notice that depending on how you construct the presentation sequence,
  5962.      this may cause unsubscribed groups to be removed from .newsrc, but this
  5963.      will not normally happen.
  5964.  
  5965. -u   Truncate entries for unsubscribed groups, by removing the article numbers
  5966.      and leaving only the news group name and the `!' mark.
  5967.  
  5968. -v   Verbose operation. Reports each change made to the .newsrc file.
  5969.  
  5970. -N   No update mode. The requested operations are performed, but the result is
  5971.      not written back to disk. This can be used with the -v option to see
  5972.      whether tidying is required.
  5973.  
  5974. -Q   Quiet operation. The version information is not printed.
  5975.  
  5976. From: NNTIDY
  5977. Subject: FILES
  5978.  
  5979. ~/.newsrc           The record of read articles
  5980. ~/.newsrc.tidy      The original rc file before tidy
  5981.  
  5982.  
  5983. From: NNTIDY
  5984. Subject: SEE ALSO
  5985.  
  5986. nn(1), nncheck(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1)
  5987. nnadmin(1M), nnusage(1M), nnmaster(8)
  5988.  
  5989. From: NNTIDY
  5990. Subject: AUTHOR
  5991.  
  5992. Kim F. Storm, Texas Instruments A/S, Denmark
  5993. E-mail: storm@texas.dk
  5994.  
  5995. From: NNUSAGE
  5996. Subject: - display nn usage statistics
  5997.  
  5998. nnusage - display nn usage statistics
  5999.  
  6000.  
  6001. From: NNUSAGE
  6002. Subject: SYNOPSIS
  6003.  
  6004. nnusage [ -at ]
  6005.  
  6006. From: NNUSAGE
  6007. Subject: DESCRIPTION
  6008.  
  6009. nnusage will extract the usage entries from the log file and calculate the
  6010. total usage time for the current user, or for all nn users if -a is specified.
  6011.  
  6012. When -t is used with the -a option, nnusage will list the users ordered after
  6013. the total usage time. Otherwise, the output will be sorted according to user
  6014. names.
  6015.  
  6016. Since it is possible to suspend nn, or leave the terminal while nn is active,
  6017. nn tries to be intelligent when it calculates the usage time so it will truly
  6018. report the actual time spent on news reading.
  6019.  
  6020. From: NNUSAGE
  6021. Subject: FILES
  6022.  
  6023. .../Log             The log file
  6024.  
  6025.  
  6026. From: NNUSAGE
  6027. Subject: SEE ALSO
  6028.  
  6029. nn(1), nncheck(1), nngoback(1), nngrep(1), nntidy(1)
  6030. nnacct(1m), nnadmin(1M), nnquery(1M), nnmaster(8)
  6031.  
  6032. From: NNUSAGE
  6033. Subject: NOTES
  6034.  
  6035. If nn is compiled with ACCOUNTING turned on, then calls to nnusage are
  6036. converted into equivalent calls to nnacct.
  6037.  
  6038. The nn package must have been compiled with the STATISTICS option turned on to
  6039. produce the usage entries in the log file.
  6040.  
  6041. Only nn sessions longer than 5 minutes are registered in the log file.
  6042.  
  6043. From: NNUSAGE
  6044. Subject: AUTHOR
  6045.  
  6046. Kim F. Storm, Texas Instruments A/S, Denmark
  6047. E-mail: storm@texas.dk
  6048.  
  6049.