gnus-tut.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. From lars Thu Feb 23 23:20:38 1995
  2. From: larsi@ifi.uio.no (ding)
  3. Date: Fri Feb 24 13:40:45 1995
  4. Subject: So you want to use the new Gnus
  5. Message-ID: <lars-doc1@eyesore.no>
  6. Actually, since you are reading this, chances are you are already
  7. using the new Gnus. Congratulations.
  8. This entire newsgroup you are reading is, in fact, no real newsgroup
  9. at all, in the traditional sense. It is an example of one of the
  10. "foreign" select methods that Gnus may use.
  11. The text you are now reading is stored in the "etc" directory with the
  12. rest of the Emacs sources. You are using the "nndoc" backend for
  13. accessing it. Scary, isn't it?
  14. This isn't the real documentation. `M-x info', `m gnus <RET>' to read
  15. that. This "newsgroup" is intended as a kinder, gentler way of getting
  16. people started.
  17. Gnus is a rewrite of GNUS 4.1, written by Masanobu Umeda. The rewrite
  18. was done by moi, yours truly, your humble servant, Lars Magne
  19. Ingebrigtsen. If you have a WWW browser, you can investigate to your
  20. heart's delight at <URL:http://www.ifi.uio.no/~larsi/larsi.html>.
  21. ;; Copyright (C) 1995, 2001-2012 Free Software Foundation, Inc.
  22. ;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
  23. ;; Keywords: news
  24. ;; This file is part of GNU Emacs.
  25. ;; GNU Emacs is free software: you can redistribute it and/or modify
  26. ;; it under the terms of the GNU General Public License as published by
  27. ;; the Free Software Foundation, either version 3 of the License, or
  28. ;; (at your option) any later version.
  29. ;; GNU Emacs is distributed in the hope that it will be useful,
  30. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. ;; GNU General Public License for more details.
  33. ;; You should have received a copy of the GNU General Public License
  34. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  35. From lars Thu Feb 23 23:20:38 1995
  36. From: larsi@ifi.uio.no (ding)
  37. Date: Fri Feb 24 13:40:45 1995
  38. Subject: Starting up
  39. Message-ID: <lars-doc2@eyesore.no>
  40. If you are having problems with Gnus not finding your server, you have
  41. to set `gnus-select-method'. A "method" is a way of specifying *how*
  42. the news is to be found, and from *where*.
  43. Say you want to read news from you local, friendly nntp server
  44. "news.my.local.server".
  45. (setq gnus-select-method '(nntp "news.my.local.server"))
  46. Quite easy, huh?
  47. From the news spool:
  48. (setq gnus-select-method '(nnspool ""))
  49. From your mh-e spool:
  50. (setq gnus-select-method '(nnmh ""))
  51. There's a whole bunch of other methods for reading mail and news, see
  52. the "Foreign groups" article for that.
  53. From lars Thu Feb 23 23:20:38 1995
  54. From: larsi@ifi.uio.no (ding)
  55. Date: Fri Feb 24 13:40:45 1995
  56. Subject: Where are all the groups, then?
  57. Message-ID: <lars-doc3@eyesore.no>
  58. If this is the first time you have used a newsreader, you won't have a
  59. .newsrc file. This means that Gnus will think that all the newsgroups
  60. on the server are "new", and kill them all.
  61. If you have a .newsrc file, the new groups will be processed with the
  62. function in the `gnus-subscribe-newsgroup-method' variable, which is
  63. `gnus-subscribe-zombies' by default.
  64. This means that all the groups have been made into "zombies" - not
  65. quite dead, but not exactly alive, either.
  66. Jump back to the *Group* buffer, and type `A z' to list all the zombie
  67. groups. Look though the list, and subscribe to the groups you want to
  68. read by pressing `u' on the one you think look interesting.
  69. If all the groups have been killed, type `A k' to list all the killed
  70. groups. Subscribe to them the same way.
  71. When you are satisfied, press `S z' to kill all the zombie groups.
  72. Now you should have a nice list of all groups you are interested in.
  73. (If you later want to subscribe to more groups, press `A k' to
  74. list all the kill groups, and repeat. You can also type `U' and be
  75. prompted for groups to subscribe to.)
  76. From lars Thu Feb 23 23:20:38 1995
  77. From: larsi@ifi.uio.no (ding)
  78. Date: Fri Feb 24 13:40:45 1995
  79. Subject: I want to read my mail!
  80. Message-ID: <lars-doc4@eyesore.no>
  81. Yes, Virginia, you can read mail with Gnus.
  82. First you have to decide which mail backend you want to use. You have
  83. nnml, which is a one-file-one-mail backend, which is quite nice, but
  84. apt to make your systems administrator go crazy and come after you
  85. with a shotgun.
  86. nnmbox uses a Unix mail box to store mail. Nice, but slow.
  87. nnmh uses mh-e folders, which is also a one-file-one-mail thingie, but
  88. slower than nnml. (It doesn't support NOV files.)
  89. So if you want to go with nnmbox, you can simply say:
  90. (setq gnus-secondary-select-methods '((nnmbox "")))
  91. (The same for the other methods, kind of.)
  92. You should also set `nnmail-split-methods' to something sensible:
  93. (setq nnmail-split-methods
  94. '(("mail.junk" "From:.*Lars")
  95. ("mail.misc "")))
  96. This will put all mail from me in you junk mail group, and the rest in
  97. "mail.misc".
  98. These groups will be subscribe the same way as the normal groups, so
  99. you will probably find them among the zombie groups after you set
  100. these variables and re-start Gnus.
  101. From lars Thu Feb 23 23:20:38 1995
  102. From: larsi@ifi.uio.no (ding)
  103. Date: Fri Feb 24 13:40:45 1995
  104. Subject: Foreign newsgroups
  105. Message-ID: <lars-doc5@eyesore.no>
  106. These are groups that do not come from `gnus-select-method'.
  107. Say you want to read "alt.furniture.couches" from "news.funet.fi". You
  108. can then either type `B news.funet.fi <RET>' to browse that server and
  109. subscribe to that group, or you can type
  110. `G m alt.furniture.couches<RET>nntp<RET>news.funet.fi<RET>', if you
  111. like to type a lot.
  112. If you want to read a directory as a newsgroup, you can create an
  113. nndir group, much the same way. There's a shorthand for that,
  114. though. If, for instance, you want to read the (ding) list archives,
  115. you could type `G d /ftp <RET>'.
  116. There's lots more to know about foreign groups, but you have to read
  117. the info pages to find out more.
  118. From lars Thu Feb 23 23:20:38 1995
  119. From: larsi@ifi.uio.no (ding)
  120. Date: Fri Feb 24 13:40:45 1995
  121. Subject: Low level changes in GNUS, or, Wrong type argument: stringp, nil
  122. Message-ID: <lars-doc6@eyesore.no>
  123. Gnus really isn't GNUS, even though it looks like it. If you scrape
  124. the surface, you'll find that most things have changed.
  125. This means that old code that relies on GNUS internals will fail.
  126. In particular, `gnus-newsrc-hashtb', `gnus-newsrc-assoc',
  127. `gnus-killed-list', the `nntp-header-' macros and the display formats
  128. have all changed. If you have some code lying around that depend on
  129. these, or change these, you'll have to re-write your code.
  130. Old hilit19 code does not work at all. In fact, you should probably
  131. remove all hilit code from all the Gnus hooks
  132. (`gnus-group-prepare-hook', `gnus-summary-prepare-hook' and
  133. `gnus-summary-article-hook'). (Well, at the very least the first
  134. two.) Gnus provides various integrated functions for highlighting,
  135. which are both faster and more accurate.
  136. There is absolutely no chance, whatsoever, of getting Gnus to work
  137. with Emacs 18. It won't even work on Emacsen older than Emacs
  138. 19.30/XEmacs 19.13. Upgrade your Emacs or die.
  139. From lars Thu Feb 23 23:20:38 1995
  140. From: larsi@ifi.uio.no (ding)
  141. Date: Fri Feb 24 13:40:45 1995
  142. Subject: How do I re-scan my mail groups?
  143. Message-ID: <lars-doc8@eyesore.no>
  144. Reading the active file from the nntp server is a drag.
  145. Just press `M-g' on the mail groups, and they will be re-scanned.
  146. You can also re-scan all the mail groups by putting them on level 1
  147. (`S l 1'), and saying `1 g' to re-scan all level 1 groups.
  148. From lars Thu Feb 23 23:20:38 1995
  149. From: larsi@ifi.uio.no (ding)
  150. Date: Fri Feb 24 13:40:45 1995
  151. Subject: How do I set up virtual newsgroups?
  152. Message-ID: <lars-doc9@eyesore.no>
  153. Virtual newsgroups are collections of other newsgroups. Why people
  154. want this is beyond me, but here goes:
  155. Create the group by saying
  156. `G m my.virtual.newsgroup<RET>nnvirtual<RET>^rec\.aquaria\.*<RET>'
  157. This will create the group "nnvirtual:my.virtual.newsgroup", which
  158. will collect all articles from all the groups in the "rec.aquaria"
  159. hierarchy.
  160. If you want to edit the regular expression, just type `M-e' on the
  161. group line.
  162. Note that all the groups that are part of the virtual group have to be
  163. alive. This means that the cannot, absolutely not, be zombie or
  164. killed. They can be unsubscribed; that's no problem.
  165. You can combine groups from different servers in the same virtual
  166. newsgroup, something that may actually be useful. Say you have the
  167. group "comp.headers" on the server "news.server.no" and the same group
  168. on "news.server.edu". If people have posted articles with Distribution
  169. headers that stop propagation of their articles, combining these two
  170. newsgroups into one virtual newsgroup should give you a better view of
  171. what's going on.
  172. One caveat, though: The virtual group article numbers from the first
  173. source group (group A) will always be lower than the article numbers
  174. from the second (group B). This means that Gnus will believe that
  175. articles from group A are older than articles from group B. Threading
  176. will lessen these problems, but it might be a good idea to sort the
  177. threads over the date of the articles to get a correct feel for the
  178. flow of the groups:
  179. (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date))
  180. If you only want this in virtual groups, you could say something along
  181. the lines of:
  182. (setq gnus-select-group-hook
  183. (lambda ()
  184. (if (eq 'nnvirtual (car (gnus-find-method-for-group
  185. gnus-newsgroup-name)))
  186. (progn
  187. (make-local-variable 'gnus-thread-sort-functions)
  188. (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date))))))
  189. From lars Thu Feb 23 23:20:38 1995
  190. From: larsi@ifi.uio.no (ding)
  191. Date: Fri Feb 24 13:40:45 1995
  192. Subject: Bugs & stuff
  193. Message-ID: <lars-doc7@eyesore.no>
  194. If you want to report a bug, please type `M-x gnus-bug'. This will
  195. give me a precise overview of your Gnus and Emacs version numbers,
  196. along with a look at all Gnus variables you have changed.
  197. Du not expect a reply back, but your bug should be fixed in the next
  198. version. If the bug persists, please re-submit your bug report.
  199. When a bug occurs, I need a recipe for how to trigger the bug. You
  200. have to tell me exactly what you do to uncover the bug, and you should
  201. (setq debug-on-error t) and send me the backtrace along with the bug
  202. report.
  203. If I am not able to reproduce the bug, I won't be able to fix it.
  204. I would, of course, prefer that you locate the bug, fix it, and mail
  205. me the patches, but one can't have everything.
  206. If you have any questions on usage, the "ding@ifi.uio.no" mailing list
  207. is where to post the questions.