home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / man / nn.1.B < prev    next >
Text File  |  1995-04-29  |  38KB  |  979 lines

  1. .\" BEGINPART B
  2. .SH FILE NAME EXPANSION
  3. When the save commands prompts for a file name, the following file
  4. name expansions are performed on the file name you enter:
  5. .TP
  6. \fB+\fP\fIfolder\fP
  7. The
  8. .B +
  9. is replaced by the contents of the
  10. .B folder
  11. variable (default value "~/News/") resulting in the name of a file in the
  12. .I folder
  13. .IR directory .
  14. Examples:
  15. .nf
  16.     +emacs, +nn, +sources/shar/nn
  17. .fi
  18. .TP
  19. \fB+\fP
  20. A single plus is replaced by the expansion of the file name contained in the
  21. .B default-save-file
  22. variable (or by \fBfolder-save-file\fP when saving from a folder).
  23. .TP
  24. \fB~/\fP\fIfile\fP
  25. The
  26. .B ~
  27. is replaced by the contents of the environment variable HOME, i.e. the
  28. path name of your home directory.
  29. Examples:
  30. .nf
  31.     ~/News/emacs, ~/News/nn, ~/src/shar/nn
  32. .fi
  33. .TP
  34. \fB~\fP\fIuser\fP\fB/\fP\fIfile\fP
  35. The \fB~\fP\fIuser\fP part is replaced by the \fIuser\fP's home
  36. directory as defined in the /etc/passwd file.
  37. .TP
  38. \fB|\fP\fIcommand-line\fP
  39. Instead of writing to a file, the articles are piped to the given
  40. shell (/bin/sh) command-line.  Each save or write command will create a
  41. separate pipe, but all articles saved or written in one command (in
  42. selection mode) are given
  43. as input to the same shell command.  Example:
  44. .nf
  45.     | pr | lp
  46. .fi
  47. This will print the articles on the printer after they have been piped
  48. through pr.
  49.     It is possible to create separate pipes for each saved article by
  50. using a double pipe symbol in the beginning of the command, e.g.
  51. .nf
  52.     || cd ~/src/nn ; patch
  53. .fi
  54. .LP
  55. The following symbols are expanded in a file name or command:
  56. .TP
  57. .B $F
  58. will be expanded to the name of the current group with the periods
  59. replaced by slashes, e.g. rec/music/synth.
  60. .TP
  61. .B $G
  62. will be expanded to the name of the current group.
  63. .TP
  64. .B $L
  65. will be expanded to the \fIlast component\fP of the name of the
  66. current group.  You may use this to create default save file names
  67. like +src/$L in the comp.sources groups.
  68. .TP
  69. .B $N
  70. will be expanded to the (local) article number, e.g. 1099.  In
  71. selection mode it is only allowed at the end of the file name!
  72. .TP
  73. .B $(VAR)
  74. is replaced by the string value of the environment variable \fIVAR\fP.
  75. .LP
  76. Using these symbols, a simple naming scheme for `default folder name' is
  77. .B +$G
  78. which will use the group name as folder name.  Another possibility is
  79. .BR +$F/$N .
  80. .LP
  81. As mentioned above, you can also instruct \fInn\fP to save a series of
  82. files in separate, unique files.  All that is required is that the
  83. file name contains an asterisk, e.g.
  84. .nf
  85.     +src/hype/part*.shar
  86. .fi
  87. This will cause each of the articles to be saved in separate, unique
  88. files named part1.shar, part2.shar, and so on, always choosing a part
  89. number that results in a unique file name (i.e. if part1.shar did
  90. already exist, the first article would be saved in part2.shar, the
  91. next in part3.shar, and so on).
  92. .LP
  93. \fBRelated variables\fP:
  94. default-save-file, folder, folder-save-file, save-counter, save-counter-offset.
  95. .SH FILE AND GROUP NAME COMPLETION
  96. When entering a file name or a news group name, a simple
  97. .B completion
  98. feature is available using the \fBspace\fP, \fBtab\fP, and \fB?\fP keys.
  99. .LP
  100. Hitting \fBspace\fP anywhere during input will complete the
  101. .I current
  102. .I component
  103. of the file name or group name with the
  104. .I first
  105. available possibility.
  106. .LP
  107. If this possibility is not the one you want, keep on hitting
  108. .B space
  109. until it appears.
  110. .LP
  111. When the right completion has appeared, you can just continue typing
  112. the file or group name, or you can hit
  113. .B tab
  114. to fix the current component, and get the
  115. .I first
  116. possibility for the next component, and then use
  117. .B space
  118. to go through the other possible completions.
  119. .LP
  120. The
  121. .B ?
  122. key will produce a list of the possible
  123. .I completions
  124. of the current component.  If the list is too long for the available
  125. space on screen, the key can be repeated to get the next part of the
  126. list.
  127. .LP
  128. The current completion can be deleted with the
  129. .B erase
  130. key.
  131. .LP
  132. The default value for a file name is the last file name you have
  133. entered, so if you enter a
  134. .B space
  135. as the first character after the prompt, the last file name will be
  136. repeated (and you can edit it if you like).  In some cases, a string
  137. will already be written for you in the prompt line, and to get the
  138. default value in these cases, use the \fBkill\fP key.  This also means
  139. that if you neither want the initial value, nor the default value, you
  140. will have to hit the \fBkill\fP twice to get a clean prompt line.
  141. .LP
  142. \fBRelated variables\fP:
  143. comp1-key, comp2-key, help-key, suggest-default-save.
  144. .SH POSTING AND RESPONDING TO ARTICLES
  145. In both selection mode and reading mode you can post new articles,
  146. post follow-ups to articles, send replies to the author of an article,
  147. and you can send mail to another user with the option of including an
  148. article in the letter.  In reading mode, a response is made to the
  149. current article, while in selection mode you will be prompted for an
  150. article to respond to.
  151. .LP
  152. The following commands are available (the lower-case equivalents are
  153. also available in reading mode):
  154. .TP
  155. \&\fBR\fP    {\fBreply\fP}
  156. Reply through mail to the author of the article.  This is the preferred
  157. way to respond to an article unless you think your reply is of general
  158. interest.
  159. .TP
  160. \&\fBF\fP    {\fBfollow\fP}
  161. Follow-up with an article in the same newsgroup (unless an alternative
  162. group is specified in the article header).
  163. The distribution of the follow-up is normally the same as the original
  164. article, but this can be modified via the \fBfollow-distribution\fP
  165. variable.
  166. .TP
  167. \&\fBM\fP    {\fBmail\fP}
  168. Mail a letter or
  169. .I forward
  170. an article to a single recipient.
  171. In selection mode, you will be prompted for an article to include
  172. in your letter, and in reading mode you will be asked if the current
  173. article should be included in the letter.
  174. You will then be prompted for the recipient of the letter (default
  175. recipient is yourself)
  176. and the subject of the letter (if an article is included, you may hit
  177. .B space
  178. to get the default subject which is the subject of the included article).
  179.   The header of the article is only included in the posted letter if
  180. it is forwarded (i.e. not edited), or if the variable
  181. \fBinclude-full-header\fP is set.
  182. .TP
  183. \&\fB:post\fP    {\fBpost\fP}
  184. Post a new article to any newsgroup.  This command will prompt you for
  185. a
  186. .I comma-separated
  187. list of newsgroups to post to (you cannot enter a space because
  188. .B space
  189. is used for group name completion as described below).
  190.   If you enter \fB?\fP {\fBhelp-key\fP} as the first key, \fInn\fP
  191. will show you a list of all available news groups and their purpose.
  192. While paging through this list, you can enter \fBq\fP to quit looking
  193. at the list.  You can also enter \fB/\fP followed by a regular
  194. expression (typically a single word) which will cause \fInn\fP to show
  195. a (much shorter) list containing only the lines matching the regular
  196. expression.
  197.    Normally, you will be prompted for the distribution of the article
  198. with the default take from \fBdefault-distribution\fP, but this can be
  199. changed via the \fBpost-distribution\fP variable.
  200. .LP
  201. Generally, \fInn\fP will construct a file with a suitable header, optionally
  202. include a copy of the article in the file with each non-empty line
  203. prefixed by a `>' character (except in mail mode), and invoke an
  204. editor of your choice (using the EDITOR environment variable) on this
  205. file, positioning you on the first line of the body of the article (if
  206. it knows the editor).
  207. .PP
  208. When you have completed editing the message, it will compare it to the
  209. unedited file, and if they are identical (i.e. you did not make any
  210. changes to the file), or it is empty, the operation is cancelled.
  211. Otherwise you will be prompted for an action to take on the
  212. constructed article (enter first letter followed by \fBreturn\fP, or
  213. just \fBreturn\fP to take the default action):
  214. .sp 0.5v
  215. .nf
  216.     a)bort c)c e)dit h)old i)spell m)ail p)ost r)eedit s)end v)iew w)rite 7)bit
  217.     Action: (post article)
  218. .fi
  219. .sp 0.5v
  220. You now have the opportunity to perform one of the following actions:
  221. .LP
  222. .in +2m
  223. .ta 5m
  224. .\"ta 4 9
  225. \fBa\fP    throw the response away (will ask for confirmation),
  226. .br
  227. \fBc\fP    mail a copy of a \fIfollow-up\fP to the poster of the article,
  228. .br
  229. \fBe\fP    edit the file again,
  230. .br
  231. \fBh\fP    hold response for later completion,
  232. .br
  233. \fBi\fP    run an (interactive) \fBspell-checker\fP on the text,
  234. .br
  235. \fBm\fP    mail a (blind) copy to a specified recipient,
  236. .br
  237. \fBn\fP    same as \fBa\fPbort (\fIno\fP don't post),
  238. .br
  239. \fBp\fP    post article (same as \fBs\fPend),
  240. .br
  241. \fBr\fP    throw away the edited text and edit the original text,
  242. .br
  243. \fBs\fP    send the article or letter,
  244. .br
  245. \fBv\fP    view the article (through the \fBpager\fP),
  246. .br
  247. \fBw\fP    append it to a file (before you send it),
  248. .br
  249. \fBy\fP    confirm \fIdefault answer\fP (e.g. \fIyes\fP post it), or
  250. .br
  251. \fB7\fP    strip the high-order bit from all characters in the message
  252. .in -2m
  253. .DT
  254. .LP
  255. If you have selected a 7-bit character set (this is determined by the
  256. values of the \fBcharset\fP and \fBdata-bits\fP variables), \fInn\fP
  257. will not allow you to post an article or send a letter whose body
  258. contains characters with the high-order bit set. It will warn you after
  259. you have first edited the message and disable the c)c, m)ail,
  260. p)ost, s)end and y)es actions. You can then either e)dit the message
  261. to delete those characters, use 7)bit to strip the high-order bits,
  262. a)bort the message, or h)old it and select an 8-bit character set from
  263. \fInn\fP.
  264. .LP
  265. To complete an unfinished response saved by the h)old command, simply
  266. enter any response action, e.g. \fBR\fP {\fBreply\fP}.  This will
  267. notice the unfinished response and ask you whether you want to
  268. complete it now.  Only one unfinished response can exist at a time.
  269. Notice that the $A environment variable may no longer be valid as a
  270. path to the original article when the response is completed.
  271. .LP
  272. If your message contains 8-bit characters, the \fBcharset\fP variable
  273. is not set to "unknown" and the message does not already have a
  274. \fBMIME-Version\fP or \fBContent-\fP\fIXXX\fP header, \fInn\fP will add
  275. the following headers to your message before sending it:
  276. .sp 0.5v
  277. .nf
  278.     MIME-Version: 1.0
  279.     Content-Type: text/plain; charset=\fIcharset\fP
  280.     Content-Transfer-Encoding: 8bit
  281. .fi
  282. .sp 0.5v
  283. It must be noted that sending 8-bit characters over the current news
  284. and mail networks is risky at best; although large parts of the network
  285. will pass through such characters unchanged, high-order bits may occasionally
  286. be stripped. Although the MIME standard provides solutions for this by
  287. encoding the characters, this is not yet supported by \fInn\fP.
  288. Adding the above headers is an interim solution that is compatible with
  289. current practice and is much better than just sending the message without
  290. any hints about the character set used.
  291. .LP
  292. \fBRelated variables\fP:
  293. append-signature-mail, append-signature-post, charset, data-bits,
  294. default-distribution, follow-distribution, post-distribution,
  295. edit-response-check, editor, include-art-id, include-full-header,
  296. included-mark, mail-header, mail-record, mail-script, mailer,
  297. mailer-pipe-input, news-header, news-record, news-script,
  298. orig-to-include-mask, pager, query-signature,
  299. record, response-check-pause, response-default-answer,
  300. save-counter, save-counter-offset, save-report, spell-checker.
  301. .SH JUMPING TO OTHER GROUPS
  302. By default \fInn\fP will present the news groups in a predefined
  303. sequence (see the section on Presentation Sequence later on).
  304. To override this sequence and have a look at any other group the
  305. .B G
  306. {\fBgoto-group\fP} command available in both selection and reading
  307. mode enables you to move freely between all the newsgroups.
  308. .LP
  309. Furthermore, the
  310. .B G
  311. command enables you to open folders and other files, to read old
  312. articles you have read before, and to grep for a specific subject in a
  313. group.
  314. .PP
  315. It is important to notice that normally the goto command is recursive,
  316. i.e. a new \fImenu level\fP is created when the specified group or
  317. folder is presented, and when it has been read, \fInn\fP will continue
  318. the activity in the group that was presented before the goto command
  319. was executed.  However, if there are unread articles in the target
  320. group you can avoid entering a new menu level by using the
  321. .B j
  322. reply described below.  The current menu level (i.e. number of nested
  323. goto commands) will be shown in the prompt line as "<N>" (in reverse
  324. video).
  325. .PP
  326. The goto command is very powerful, but unfortunately also a little bit
  327. tricky at first sight, because the facilities it provides depend on
  328. the context in which the command is used.
  329. .PP
  330. When executed, the goto command will prompt you for the name of the
  331. newsgroup, folder, or file to open.  It will use the first letter
  332. you enter to distinguish these three possibilities:
  333. .TP
  334. .B return
  335. An empty answer is equivalent to the current newsgroup.
  336. .TP
  337. \fIletter\fP
  338. The answer is taken to be the name of a newsgroup.
  339. If a news group with the given name does not exist, \fInn\fP will
  340. treat the answer as a regular expression and locate the first group
  341. in the presentation sequence (or among all groups) whose name matches
  342. the expression.
  343. .TP
  344. .I +
  345. .br
  346. The answer is taken to be the name of a folder.  If only `+' is
  347. entered, it is equivalent to the default save file for the current
  348. group.
  349. .TP
  350. \fI\&/ or ./ or ~/\fP
  351. The answer is taken to be the name of a file, either relative to the
  352. current directory, relative to your home directory, or an absolute
  353. path name for the file.
  354. .TP
  355. .B %
  356. In reading mode, this reply corresponds to reading the current article
  357. (and splitting it as a digest).  In selection mode, it will prompt for
  358. an article on the menu to read.
  359. .TP
  360. .B @
  361. This choice is equivalent to the archive file for the current group.
  362. \fInnmaster\fP maintains archive files with all old and current
  363. articles for the groups which have the auto-archive option set in the
  364. GROUPS file (see \fInnmaster\fP(8)).
  365. .TP
  366. \fB=\fP and \fInumber\fP
  367. These answers are equivalent to the same answers described below
  368. applied to the current group (e.g. \fBG return =\fP and \fBG =\fP are
  369. equivalent).
  370. .LP
  371. Specifying a folder, a file, or an article (with \fB%\fP) will cause
  372. \fInn\fP to treat the file like a digest and split it into separate
  373. articles (not physically!)  which are then presented on a menu in the
  374. usual way, allowing you to read or save individual subarticles from
  375. the folder.
  376. .LP
  377. When you enter a group name, \fInn\fP will ask you how many articles
  378. in the group you want to see on the menu.  You can give the following
  379. answers:
  380. .TP
  381. .I a number N
  382. In this case you will get the newest N articles in the group, or if
  383. you specified the current group (by hitting \fBreturn\fP to the group
  384. name prompt or entering the number directly), you will get that many
  385. \fIextra\fP articles included on the same menu (without creating a new
  386. menu level).
  387. .TP
  388. .B j
  389. This answer can only be given if there are unread articles in the
  390. group.  It will instruct nn to jump directly to the specified group in
  391. the presentation sequence \fIwithout\fP creating a new menu level.
  392. .TP
  393. .B u
  394. This instructs \fInn\fP to present the \fIunread\fP articles in the
  395. group (if there are any).  If you have already read the group (in the
  396. current invocation of \fInn\fP), the \fBu\fP answer will instruct
  397. \fInn\fP to present the articles that were unread when you entered
  398. \fInn\fP.
  399. .TP
  400. .B a
  401. This instruct \fInn\fP to present \fBall\fP articles in the group.
  402. .TP
  403. \fBs\fP\fIword\fP or \fB=\fP\fIword\fP
  404. This instructs \fInn\fP to search \fIall\fP articles in the groups,
  405. but only present the articles containing the word \fIword\fP in the
  406. subject.  Notice that case is ignored when searching for the word in
  407. the subject lines.
  408. .TP
  409. \fBn\fP\fIword\fP
  410. Same as the \fBs\fP form except that it searched for articles where
  411. the sender \fIname\fP matches \fIword\fP.
  412. .TP
  413. \fBe\fP\fIword\fP
  414. Same as the \fBs\fP form except that it Psearched for articles where
  415. \fIeither\fP the subject or the sender name matches \fIword\fP.
  416. .TP
  417. \fIword\fP = \fB/\fP\fIregexp\fP
  418. When the first character of the \fIword\fP specified with the \fBs\fP,
  419. \fBn\fP, and \fBe\fP forms is a slash `/', the rest of the input is
  420. interpreted as a regular expression to search for.  Notice that
  421. regular expression matching is case insensitive when
  422. \fBcase-fold-search\fP is set (default).
  423. .TP
  424. .B return
  425. The meaning of an empty answer depends on the context: if there are
  426. unread articles in the specified group the unread articles will be
  427. presented, otherwise \fIall\fP articles in the group will be included
  428. in the menu.
  429. .LP
  430. If you specified the current group, and the menu already contains all
  431. the available articles, \fInn\fP will directly prompt for a word to
  432. search for in the subject of all articles (the prompt will be an equal
  433. sign.)
  434. .LP
  435. When the goto command creates a new menu level, \fInn\fP will not
  436. perform auto kill or selection in the group.  You can use the \fB+\fP
  437. command in menu mode to perform the auto-selections.
  438. .LP
  439. There are three commands in the goto family:
  440. .TP
  441. \&\fBG\fP    {\fBgoto-group\fP}
  442. This is the general goto command described above.
  443. .TP
  444. \&\fBB\fP    {\fBback-group\fP}
  445. Backup one or more groups.  You can hit this key one or more times to
  446. go back in the groups already presented (including those without new
  447. articles); when you have found the group you are looking for, hit
  448. \fBspace\fP to enter it.
  449. .TP
  450. \&\fBA\fP    {\fBadvance-group\fP}
  451. Advance one or more groups.  This command is similar to the \fBB\fP
  452. command, but operates in the opposite direction.
  453. .TP
  454. \&\fBN\fP    {\fBnext-group\fP}
  455. When used within an \fBA\fP or \fBB\fP command, it skips forward to
  456. the next group in the sequence with unread articles or which has
  457. previously been visited.
  458. .TP
  459. \&\fBP\fP    {\fBprevious\fP}
  460. When used within an \fBA\fP or \fBB\fP command, it skips backwards to
  461. the preceding group in the sequence with unread articles or which has
  462. previously been visited.
  463. .LP
  464. Once you have entered an \fBA\fP or \fBB\fPcommand, you can freely mix
  465. the \fBA\fP, \fBB\fP, \fBP\fP, and \fBN\fP commands to find the group
  466. you want, and you can also use the \fBG\fP command to be prompted for
  467. a group name.
  468. .LP
  469. To show the use of the goto command some typical examples on
  470. its use are given below:
  471. .sp
  472. .nf
  473. .I "Present the unread articles in the dk.general group"
  474. .sp 0.5v
  475.      \fBG\fP dk.general \fBreturn\fP \fBu\fP
  476. .sp
  477. .I "Jump directly to the gnu.emacs group and continue from there"
  478. .sp 0.5v
  479.      \fBG\fP gnu.emacs \fBreturn\fP \fBj\fP
  480. .sp
  481. .I "Include the last 10 READ articles in the current group menu"
  482. .sp 0.5v
  483.      \fBG\fP 10 \fBreturn\fP
  484. .sp
  485. .I "Find all articles in rec.music.misc on the subject Floyd"
  486. .sp 0.5v
  487.      \fBG\fP rec.music.misc \fBreturn\fP
  488.      \fB=\fP floyd \fBreturn\fP
  489. .sp 0.5v
  490. .sp
  491. .I "Open the folder +nn"
  492. .sp 0.5v
  493.      \fBG\fP +nn \fBreturn\fP
  494. .sp
  495. .I "Split current article as a digest (in reading mode)"
  496. .sp 0.5v
  497.      \fBG\fP \fB%\fP
  498.  
  499. .fi
  500. .LP
  501. \fBRelated variables\fP:
  502. case-fold-search, default-save-file, folder-save-file
  503. .SH AUTOMATIC KILL AND SELECTION
  504. When there is a subject or an author which you are either very
  505. interested in, or find completely uninteresting, you can easily
  506. instruct \fInn\fP to \fIauto-select\fP or \fIauto-kill\fP articles
  507. with specific subjects or from specific authors.  These instructions
  508. are stored in a \fIkill file\fP, and the most common types of entries
  509. can be created using the following command:
  510. .TP
  511. \&\fBK\fP    {\fBkill-select\fP}
  512. Create an entry in your personal kill file.  The contents of the entry
  513. is specified during a short dialog that is described in details below.
  514. This command is available in both selection and reading mode.
  515. .LP
  516. Entries in the kill file may apply to a single newsgroup or to all
  517. newsgroups.  Furthermore, entries may be permanent or they may be
  518. expired a given number of days after their entry.
  519. .LP
  520. To increase performance, \fInn\fP uses a compiled version of the kill
  521. file which is read in when \fInn\fP is invoked.  The compiled kill
  522. file will automatically be updated if the normal kill file has been
  523. modified.
  524. .LP
  525. The following dialog is used to build the kill file entry:
  526. .TP
  527. \fIAUTO (k)ill or (s)elect (CR => Kill subject 30 days)\fP
  528. If you simply want \fInn\fP to kill all articles with the subject of
  529. the current article (in reading mode) or a specific article (which
  530. \fInn\fP will prompt for in selection mode), just hit \fBreturn\fP.
  531. This will cause \fInn\fP to create an entry in the kill file to kill
  532. the current (or specified) subject in the current group for a period
  533. of 30 days (which should be enough for the discussion to die out).
  534. .sp 0.5v
  535. You can control the default kill period, or change it into a "select"
  536. period via the \fBdefault-kill-select\fP variable.
  537. .sp 0.5v
  538. If this "default behaviour" is not what you want, just answer either
  539. \fIk\fP or \fIs\fP to kill or select articles, respectively, which
  540. will bring you on to the rest of the questions.
  541. .TP
  542. \fIAUTO SELECT on (s)ubject or (n)ame  (s)\fP
  543. (The \fISELECT\fP will be substituted with \fIKILL\fP depending on the
  544. previous answer).  Here you specify whether you want the kill or
  545. select to depend on the subject of the article (\fBs\fP or
  546. \fBspace\fP), or on the name of the author (\fBn\fP).
  547. .TP
  548. \fISELECT NAME:\fP
  549. (Again \fISELECT\fP may be substituted with \fIKILL\fP and
  550. \fISUBJECT\fP may replace \fINAME\fP).  You must now enter a name (or
  551. subject) to select (or kill).  In reading mode, you may just hit
  552. \fBreturn\fP (or \fB%\fP) to use the name (or subject) of the current
  553. article.  In selection mode, you can use the name (or subject) from an
  554. article on the menu by answering with \fB%\fP followed by the
  555. corresponding article identifier.
  556. .sp 0.5v
  557. When the name or subject is taken from an article (the current or one
  558. from the menu), \fInn\fP will only select or kill articles where the
  559. name or subject matches the original name or subject exactly including
  560. case.
  561. .sp 0.5v
  562. If the first character typed at the prompt is a slash `/', the rest of
  563. the line is used as a \fIregular expression\fP which is used to match
  564. the name or subject (case \fIin\fPsensitive).
  565. .sp 0.5v
  566. Otherwise, \fInn\fP will select or kill articles which \fIcontain\fP
  567. the specified string anywhere in the name or subject (ignoring case).
  568. .TP
  569. \fISELECT in (g)roup `dk.general' or in (a)ll groups  (g)\fP
  570. You must now specify whether the selection or kill should apply to the
  571. current group only (\fBg\fP or \fBspace\fP) or to all groups (\fBa\fP).
  572. .TP
  573. \fILifetime of entry in days (p)ermanent  (30)\fP
  574. You can now specify the lifetime of the entry, either by entering a
  575. number specifying the number of days the entry should be active, or
  576. \fBp\fP to specify the entry as a permanent entry.  An empty reply is
  577. equivalent to 30 days.
  578. .TP
  579. \fICONFIRM SELECT ....\fP
  580. Finally, you will be asked to confirm the entry, and you should
  581. especially note the presence or absence of the word \fBexact\fP which
  582. specify whether an exact match applies for the entry.
  583. .LP
  584. \fBRelated variables\fP:
  585. default-kill-select, kill.
  586. .SH THE FORMAT OF THE KILL FILE
  587. The kill file consists of one line for each entry.  Empty lines and
  588. lines starting with a # character are ignored.  \fInn\fP automatically
  589. places a # character in the first position of expired entries when it
  590. compiles the kill file.  You can then edit the kill file manually from
  591. time to time to clean out these entries.
  592. .LP
  593. Each line has the following format
  594. .nf
  595.     [\fIexpire time\fP :] [\fIgroup name\fP] : \fIflags\fP : \fIstring\fP [: \fIstring\fP]...
  596. .fi
  597. .LP
  598. Permanent entries have no \fIexpire time\fP (in which case the colon
  599. is omitted as well!).  Otherwise, the \fIexpire time\fP defines the
  600. time (as a time_t value) when the entry should be expired.
  601. .LP
  602. The \fIgroup name\fP field can have three forms:
  603. .TP
  604. \fInews.group.name\fP
  605. If it is the name of a single news group (e.g. comp.unix), 
  606. the entry applies to that group only.
  607. .TP
  608. \fB/\fP\fIregular expression\fP
  609. If it starts with a slash `/' followed by a \fIregular expression\fP
  610. (e.g. /^news\e..*), the entry applies to all groups whose name are
  611. matched by the regular expression.
  612. .TP
  613. \fIempty\fP
  614. An empty group field will apply the entry to \fIall\fP groups.
  615. .LP
  616. The \fIflags\fP field consists of a list of characters which
  617. identifies the type of entry, and the interpretation of each
  618. \fIstring\fP field.  When used, the flag characters must be used in
  619. the order in which they are described below:
  620. .TP
  621. \fB~\fP    (optional)
  622. .br
  623. When this flag is present on any of the entries for a specific group,
  624. it causes all entires which \fIare not auto-selected\fP to be killed.
  625. This is a simple way to say: I'm interested in this and that, but
  626. nothing else.
  627. .TP
  628. \fB+\fP    or \fB!\fP (optional)
  629. .br
  630. Specify an auto-select \fB+\fP or an auto-kill \fB!\fP entry,
  631. respectively.  If neither are used, the article is neither selected
  632. nor killed which is useful in combination with the `\fB~\fP' flag.
  633. .TP
  634. \fB>\fP (optional)
  635. When used with a subject (flag \fBs\fP), the kill entry only matches
  636. follow-ups to that subject (i.e. where the Subject: line starts with
  637. Re:).  For example, to kill all "Re:"'s in rec.humor use the following
  638. kill entry: rec.humor:!>s/:.
  639. .TP
  640. \fB<\fP (optional)
  641. When used with a subject (flag \fBs\fP), the kill entry only matches
  642. base articles with that subject (i.e. where the Subject: line does not
  643. start with Re:).  For example, to kill all articles asking for help
  644. (but not follow-ups) in the tex group, add this to your kill file:
  645. .nf
  646.     comp.text.tex:!s</:^HELP
  647. .fi
  648. .TP
  649. \fBn\fP or \fBs\fP or \fBa\fP (mandatory)
  650. .br
  651. Specify whether the corresponding string applies to the name \fBn\fP
  652. or to the subject \fBs\fP of an article.  If flag \fBa\fP is used, the
  653. corresponding string is ignored (but must be present), and the entry
  654. applies to articles with a non-empty References: line.
  655. .TP
  656. \fB/\fP (optional)
  657. .br
  658. Specifies that the corresponding \fIstring\fP is a \fBregular expression\fP
  659. which the sender or subject is matched against.  If not specified, a simple
  660. string match is performed using the given \fIstring\fP.
  661. .TP
  662. \fB=\fP (optional)
  663. .br
  664. Specifies that the match against the name or subject is \fIcase
  665. sensitive\fP.  Furthermore, when regular expression matching
  666. is \fInot\fP used, the name or subject must be of the same length
  667. of the \fIstring\fP to match.
  668. Otherwise, the match will be case insensitive, and a \fIstring\fP may
  669. occur anywhere in the name or subject to match.
  670. .TP
  671. \fB|\fP or \fB&\fP (mandatory if multiple strings)
  672. .br
  673. If more than one string is specified, the set of \fIflags\fP
  674. corresponding to each \fIstring\fP must be separated by either an
  675. \fIor operator\fP `\fB|\fP' or an \fIand operator\fP `\fB&\fP'.  The
  676. and operator has a higher precedence than the or operator, e.g.  a
  677. complex match expression \fIa|b&c|d\fP will succeed if either of
  678. \fIa\fP, \fIb&c\fP, or \fId\fP matches.
  679. .LP
  680. The \fIstring\fP field in the entry is the name, subject or regular
  681. expression that will be matched against the name or subject of each
  682. article in the group (or all groups).  Colons and backslashes must be
  683. escaped with a backslash in the string.
  684. .LP
  685. Example 1:  Auto-select articles from `Tom Collins' (exact) on subject
  686. `News' in all groups:
  687. .sp 0.5v
  688.     :+n=&s:Tom Collins:News
  689. .sp
  690. Example 2:  Kill all articles which are neither from `Tom' or `Eve' in
  691. some.group.  Select only articles from Eve:
  692. .sp 0.5v
  693.     some.group:~n:Tom
  694. .br
  695.     some.group:+n:Eve
  696. .sp
  697. The second example can also be written as a single entry with an or
  698. operator (in this case, the select/kill attribute only applies to the succeeding strings):
  699. .br
  700.     some.group:~n|+n:Tom:Eve
  701. .LP
  702. To remove expired entries, to "undo" a \fBK\fP command, and to make
  703. the more advanced entries with more than one string, you will have to
  704. edit the kill file manually.  To recompile the file, you can use the
  705. \fB:compile\fP command.  When you invoke \fInn\fP, it will also
  706. recompile the kill file if the compiled version is out of dat.
  707. .SH SHELL ESCAPES
  708. The
  709. .B !
  710. commands available in selection and reading mode are identical in
  711. operation (with one exception).  When you enter the shell escape
  712. command, you will be prompted for a shell command.  This command will
  713. be fed to the shell specified in the \fBshell\fP variable (default
  714. loaded from the SHELL environment variable or /bin/sh) after the
  715. following substitutions have been performed on the command:
  716. .TP
  717. \fIFile name expansion\fP
  718. The earlier described file name expansions will be performed on all
  719. arguments.
  720. .TP
  721. .B $G
  722. will be substituted with the name of the current news group.
  723. .TP
  724. .B $L
  725. will be substituted with the \fIlast component\fP of the name of the
  726. current news group.
  727. .TP
  728. .B $F
  729. will be substituted with the name of the current news group with the
  730. periods replaced by slashes.
  731. .TP
  732. .B $N
  733. will be substituted with the (local) article number (only defined in
  734. reading mode).
  735. .TP
  736. .B $A
  737. is replaced by the full path name of the file containing the current article
  738. (only defined in reading mode).
  739. .TP
  740. .B %
  741. Same as $A.
  742. .TP
  743. .B $(VAR)
  744. is replaced by the string value of the environment variable \fIVAR\fP.
  745. .LP
  746. When the shell command is completed, you will be asked to hit any key
  747. to continue.  If you hit the
  748. .B !
  749. key again, you will be prompted for a new shell command.  Any other
  750. key will redraw the screen and return you to the mode you came from.
  751. .LP
  752. \fBRelated variables\fP:
  753. shell, shell-restrictions.
  754. .SH MISCELLANEOUS COMMANDS
  755. Below are more useful commands which are available in both
  756. selection and reading modes.
  757. .TP
  758. \&\fBU\fP    {\fBunsub\fP}
  759. Unsubscribe to the current group.  You will not see this group
  760. any more unless you explicitly request it.  If the variable
  761. \fBunsubscribe-mark-read\fP is set, all articles in the group will be
  762. marked read when you unsubscribe.
  763.   If the variable \fBkeep-unsubscribed\fP is not set, the group will
  764. be removed from .newsrc.  If you are not subscribing to the group, you
  765. will be given the possibility to \fIresubscribe\fP to the group!  This
  766. may be used in connection with the \fBG\fP command to resubscribe a
  767. group.
  768. .TP
  769. \&\fBC\fP    {\fBcancel\fP}
  770. Cancel (delete) an article in the current group or folder.  Cancelling
  771. articles in a folder will cause the folder to be rewritten when it is
  772. closed.  In selection mode, you will be prompted for the identifier of
  773. the article to cancel.  Normal users can only cancel their own
  774. articles.
  775. See also the section on folder maintenance.
  776. .TP
  777. \&\fBY\fP    {\fBoverview\fP}
  778. Provide an overview of the groups with unread articles.
  779. .TP
  780. \&\fB"\fP    {\fBlayout\fP}
  781. Change menu layout in selection mode.  The menu will be redrawn using
  782. the next layout (cycling through ..., 2, 3, 4, 0, 1, ...)
  783. .LP
  784. Most of the commands in \fInn\fP are bound to a key and can be activated
  785. by a single keystroke.  However, there are a few commands that
  786. cannot be bound to a key directly.
  787. .LP
  788. As shown in the keystroke command descriptions, all commands have a
  789. name, and it is possible to activate a command by name with the
  790. \fIextended command\fP key (\fB:\fP).  Hitting this key will prompt
  791. you for the name of a command (and parameters).  For example, an
  792. alternative to hitting the \fBR\fP key to reply to an article is to
  793. enter the extended command \fB:reply\fP followed by \fBreturn\fP.  The
  794. \fB:post\fP and \fB:unshar\fP commands described earlier can also be
  795. bound to a key.  The complete list of commands which can be bound to
  796. keys is provided in the section on Key Mappings below.
  797. .LP
  798. The following extended commands \fIcannot\fP be bound to a key, mainly
  799. because they require additional parameters on the prompt line, or
  800. because it should not be possible to activate them too easily.
  801. .TP
  802. \fB:admin\fP
  803. Enter administrative mode.  This is identical in operation to the
  804. .IR nnadmin (1M)
  805. program.
  806. .TP
  807. \fB:bug\fP
  808. Prepare and send a bug report to the nn-bugs mailing address.
  809. .TP
  810. \fB:cd\fP [ \fIdirectory\fP ]
  811. Change current working directory.  If the directory argument is not provided,
  812. \fInn\fP will prompt for it.
  813. .TP
  814. \fB:clear\fP
  815. Clear the screen (without redraw).  This may be useful at the
  816. beginning of the init file (possibly guarded by "on program nn"), or
  817. in some macros.
  818. .TP
  819. \fB:compile\fP
  820. Recompile the \fIkill\fP file.  This is not necessary under normal
  821. operation since \fInn\fP automatically compiles the file on start-up
  822. if it has changed, but it can be used if you modify the kill file
  823. while \fInn\fP is suspended.
  824. .TP
  825. \fB:coredump\fP
  826. Abort with a core dump.  For debugging purposes only.
  827. .TP
  828. \fB:define\fP \fImacro\fP
  829. Define macro number \fImacro\fP as described in the Macro Definition
  830. section below.  If \fImacro\fP is omitted, the next free macro number
  831. will be chosen.
  832. .TP
  833. \fB:dump\fP \fItable\fP
  834. Same as the \fB:show\fP command described below.
  835. .TP
  836. \fB:help\fP [ \fIsubject\fP ]
  837. Provide online help on the specified subject.  If you omit the
  838. subject, a list of the available topics will be given.
  839. .TP
  840. \fB:load\fP [ \fIfile\fP ]
  841. Load the specified \fIfile\fP.  If the \fIfile\fP argument is omitted,
  842. the init file is reloaded.
  843. The \fBsequence\fP part (if present) is ignored.
  844. .TP
  845. \fB:local\fP \fIvariable\fP [ \fIvalue\fP ]
  846. Make the variable local to the current group.  Subsequent changes to
  847. the variable will only be effective until the current group is left.
  848. If a value is specified, it will be assigned to the local variable.
  849. To assign a new value to a boolean variable, the values \fBon\fP and
  850. \fBoff\fP must be used.
  851. .TP
  852. \fB:lock\fP \fIvariable\fP
  853. Lock the specified \fIvariable\fP so it cannot be modified.
  854. .TP
  855. \fB:man\fP
  856. Call up the online manual.  The manual is presented as a normal folder
  857. with the program name in the `From' field and the section title in the
  858. \&`subject' field.  All the normal commands related to a folder works
  859. for the online manual as well, e.g. you can save and print sections of
  860. the manual.
  861. .TP
  862. \fB:map\fP \fIarguments\fP
  863. This is the command used for binding commands to the keys.  It is
  864. fully described in the Key Mapping section below.
  865. .TP
  866. \fB:mkdir\fP [ \fIdirectory\fP ]
  867. Create the directory (and the directories in its path).  It will
  868. prompt for at directory name if the argument is omitted.
  869. .TP
  870. \fB:motd\fP
  871. Show the \fImessage of the day\fP (maintained by the news
  872. administrator in the file "motd" in the lib directory.  This file is
  873. automatically displayed on start-up whenever it changes if the
  874. \fBmotd\fP variable is set.
  875. .TP
  876. \fB:pwd\fP
  877. Print path name of current working directory on message line.
  878. .TP
  879. \fB:q\fP
  880. Has no effect besides redrawing the screen if necessary.  If an
  881. extended command (one which is prefixed by a :) produces any output
  882. requirering the screen to be redrawn, the screen will not be redrawn
  883. immediately if the variable \fBdelay-redraw\fP is set (useful on
  884. slow terminals).  Instead another \fB:\fP prompt is shown to allow you
  885. to enter a new extended command immediately.  It is sufficient to hit
  886. .B return
  887. to redraw the screen, but it has been my experience that entering
  888. .B q return
  889. in this situation happens quite often, so it was made a no-op.
  890. .TP
  891. \fB:q!\fP
  892. Quit \fInn\fP without updating the \fB.newsrc\fP file.
  893. .TP
  894. \fB:Q\fP
  895. Quit \fInn\fP.  This is equivalent to the normal
  896. .B Q
  897. command.
  898. .TP
  899. \fB:rmail\fP
  900. Open your mailbox (see the \fBmail\fP variable) as a folder to
  901. read the incoming messages.  This is \fInot\fP a full mail interface
  902. (depending on the nn configuration, you may not be able to delete
  903. messages, add cc: on replies, etc), but it can give
  904. you a quick glance at new mail without leaving \fInn\fP.
  905. .TP
  906. \fB:set\fP \fIvariable\fP [ \fIvalue\fP ]
  907. Set a boolean variable to true or assign the value to a string or
  908. integer variable.  The
  909. .B :set
  910. command is described in details in the section on VARIABLES.
  911. .TP
  912. \fB:sh\fP
  913. Suspend \fInn\fP, or if that is not possible, spawn an interactive shell.
  914. .TP
  915. \fB:show groups\fP \fImode\fP
  916. Show the total number or the number of unread articles in the current
  917. group, depending on \fImode\fP: \fBall\fP (list the number of unread
  918. articles in all groups including groups which you have unsubscribed
  919. to), \fBtotal\fP (list the total number of articles in all existing
  920. groups), \fBsequence\fP (list unread groups in presentation sequence
  921. order), \fBsubscr\fP (list all subscribed
  922. groups), \fBunsub\fP (list unsubscribed groups only).  Any other
  923. \fImode\fP results in a listing of the number of unread articles in
  924. all subscribed groups including those you have suppressed with the `!'
  925. symbol in the group presentation sequence.  To get just the currently
  926. unread groups in the presentation sequence, use the `Y'
  927. {\fBoverview\fP} command.
  928. .TP
  929. \fB:show kill\fP
  930. Show the kill entries that applies to the current group and to all groups.
  931. .TP
  932. \fB:show rc\fP [ \fIgroup\fP ]
  933. Show the .newsrc and select file entries for the current or the
  934. specified group.
  935. .TP
  936. \fB:show map\fP [ \fImode\fP ]
  937. Show the key bindings in the current or specified mode.
  938. .TP
  939. \fB:sort\fP [ \fImode\fP ]
  940. Reorder the articles on the menu according to \fImode\fP or if omitted
  941. to the default \fBsort-mode\fP.  The following sorting modes are
  942. available:
  943. .br
  944. \fBarrival\fP: list articles by local article number which
  945. will be the same as the order in which they
  946. arrived on the system (unless groups are merged),
  947. .br
  948. \fBsubject\fP: articles with identical
  949. subjects are grouped and ordered after age of the oldest article in
  950. the group,
  951. .br
  952. \fBlexical\fP: subjects in lexicographical order,
  953. .br
  954. \fBage\fP: articles ordered after posting date only,
  955. .br
  956. \fBsender\fP: articles ordered after sender's name.
  957. .TP
  958. \fB:toggle\fP \fIvariable\fP
  959. Toggle a boolean variable.
  960. .TP
  961. \fB:unread\fP [ \fIgroup\fP ] [ \fIarticles\fP ]
  962. Mark the current (or specified) group as unread.  If the
  963. \fIarticles\fP argument is omitted, the number of unread articles in
  964. the group will be set to the number of unread articles when \fInn\fP
  965. was invoked.  Otherwise, the argument specifies the number of unread
  966. articles.
  967. .TP
  968. \fB:unset\fP \fIvariable\fP
  969. Set a boolean variable to false or clear an integer variable.
  970. .TP
  971. \fB:x\fP
  972. Quit \fInn\fP and \fBmark\fP all articles in the current group as
  973. \fIread\fP!
  974. .LP
  975. \fBRelated variables\fP:
  976. backup, bug-report-address, delay-redraw, keep-unsubscribed,
  977. unsubscribe-mark-read, mail, pager, sort-mode.
  978. .\" ENDPART B
  979.