32fe5f6f1228eb3cb5c0ea4e35cb8bd068aa1c04
[gnus] / texi / gnus.texi
1 \input texinfo                  @c -*-texinfo-*-
2 @comment %**start of header (This is for running Texinfo on a region.)
3 @setfilename gnus.info
4 @settitle September Gnus Manual
5 @synindex fn cp
6 @synindex vr cp
7 @synindex pg cp
8 @iftex
9 @finalout
10 @end iftex
11 @setchapternewpage odd
12 @c      @smallbook
13 @comment %**end of header (This is for running Texinfo on a region.)
14 @tex
15 \overfullrule=0pt
16 %\global\baselineskip 30pt      % For printing in double spaces
17 @end tex
18
19 @ifinfo
20
21 This file documents Gnus, the GNU Emacs newsreader.
22
23 Copyright (C) 1995 Free Software Foundation, Inc.
24
25 Permission is granted to make and distribute verbatim copies of
26 this manual provided the copyright notice and this permission notice
27 are preserved on all copies.
28
29 @ignore
30 Permission is granted to process this file through Tex and print the
31 results, provided the printed document carries copying permission
32 notice identical to this one except for the removal of this paragraph
33 (this paragraph not being relevant to the printed manual).
34
35 @end ignore
36 Permission is granted to copy and distribute modified versions of this
37 manual under the conditions for verbatim copying, provided also that the
38 entire resulting derived work is distributed under the terms of a
39 permission notice identical to this one.
40
41 Permission is granted to copy and distribute translations of this manual
42 into another language, under the above conditions for modified versions.
43 @end ifinfo
44
45 @iftex
46
47 @titlepage
48 @title September Gnus Manual
49
50 @author by Lars Magne Ingebrigtsen
51 @page
52 @vskip 0pt plus 1filll
53 Copyright @copyright{} 1995 Free Software Foundation, Inc. 
54
55 Permission is granted to make and distribute verbatim copies of
56 this manual provided the copyright notice and this permission notice
57 are preserved on all copies.
58
59 Permission is granted to copy and distribute modified versions of this
60 manual under the conditions for verbatim copying, provided that the
61 entire resulting derived work is distributed under the terms of a
62 permission notice identical to this one.
63
64 Permission is granted to copy and distribute translations of this manual
65 into another language, under the above conditions for modified versions.
66
67 Cover art by Etienne Suvasa.
68 @end titlepage
69 @page
70
71 @end iftex
72
73 @node Top
74 @top The Gnus Newsreader
75
76 You can read news (and mail) from within Emacs by using Gnus.  The news
77 can be gotten by any nefarious means you can think of---@sc{nntp}, local
78 spool or your mbox file.  All at the same time, if you want to push your
79 luck.
80
81 @menu
82 * History::                 How Gnus got where it is today.
83 * Terminology::             We use really difficult, like, words here.
84 * Starting Up::             Finding news can be a pain.
85 * The Group Buffer::        Selecting, subscribing and killing groups.
86 * The Summary Buffer::      Reading, saving and posting articles.
87 * The Article Buffer::      Displaying and handling articles.
88 * The Server Buffer::       Making and editing virtual servers.
89 * Scoring::                 Assigning values to articles.
90 * Various::                 General purpose settings.
91 * Customization::           Tailoring Gnus to your needs.
92 * Troubleshooting::         What you might try if things do not work.
93 * The End::                 Farewell and goodbye.
94 * Appendix::                Technical stuff for technical people.
95 * Index::                   Variable, function and concept index.
96 * Key Index::               Key Index.
97 @end menu
98
99 @node History
100 @chapter History
101
102 @cindex history
103 @sc{gnus} was written by Masanobu UMEDA.  When autumn crept up in '94,
104 Lars Magne Ingebrigtsen grew bored and decided to rewrite Gnus.
105
106 If you want to investigate the person responsible for this outrage, you
107 can point your (feh!) web browser to
108 @file{http://www.ifi.uio.no/~larsi/}.  This is also the primary
109 distribution point for the new and spiffy versions of Gnus, also know as
110 The Site That Destroys Newsrcs And Drives People Mad.
111
112 During the first extended alpha period of develpment, the new Gnus was
113 called "(ding) Gnus".  @dfn{(ding)}, is, of course, short for @dfn{ding
114 is not Gnus}, which is a total and utter lie, but who cares? (Besides,
115 the "Gnus" in this abbreviation should probably be pronounced "news" as
116 UMEDA intended, which makes it a more appropriate name, don't you
117 think?)
118
119 In any case, after spending all that energy with coming up with a new
120 and spiffy name, we decided that the name was @emph{too} spiffy, so we
121 renamamed it back again to "Gnus".  But in mixed case.  "Gnus" vs.
122 "@sc{gnus}".  New vs. old.
123
124 Incidentally, the next Gnus generation will be called "September Gnus",
125 and won't be released until February.  Confused?  You will be.
126
127 @menu
128 * Why?::                What's the point of Gnus?
129 * Compatibility::       Just how compatible is Gnus with @sc{gnus}?
130 * Conformity::          Gnus tries to conform to all standards.
131 * Emacsen::             Gnus can be run on a few modern Emacsen.
132 * Contributors::        Oodles of people.  
133 * New Features::        Pointers to some of the new stuff in Gnus.
134 * Newest Features::     Features so new that they haven't been written yet.
135 @end menu
136
137 @node Why?
138 @section Why?
139
140 What's the point of Gnus?  
141
142 I want to provide a "rad", "happening", "way cool" and "hep" newsreader,
143 that lets you do anything you can think of.  That was my original
144 motivation, but while working on Gnus, it has become clear to me that
145 this generation of newsreaders really belong in the stone age.
146 Newsreaders haven't developed much since the infancy of the net.  If the
147 volume continues to rise with the current rate of increase, all current
148 newsreaders will be pretty much useless.  How do you deal with
149 newsgroups that have hundreds (or thousands) of new articles each day? 
150
151 Gnus offer no real solutions to these questions, but I would very much
152 like to see Gnus being used as a testing ground for new methods of
153 reading and fetching news. Expanding on Umeda-san's wise decision to
154 separate the newsreader from the backends, Gnus now offers a simple
155 interface for anybody who wants to write new backends for fetching mail
156 and news from different sources. I have added hooks for customizations
157 everywhere I can imagine useful. By doing so, I'm inviting every one of
158 you to explore and invent new ways of reading news.
159
160 May Gnus never be complete. @kbd{C-u 100 M-x hail-emacs}. 
161
162 @node Compatibility
163 @section Compatibility
164
165 @cindex compatibility
166 Gnus was designed to be fully compatible with @sc{gnus}.  Almost all key
167 bindings have been kept.  More key bindings have been added, of course,
168 but only in one or two obscure cases have old bindings been changed.
169
170 Our motto is:
171 @quotation
172 @cartouche
173 @center In a cloud bones of steel.
174 @end cartouche
175 @end quotation
176
177 All commands have kept their names.  Some internal functions have changed
178 their names.
179
180 The @code{gnus-uu} package has changed drastically. @xref{Decoding
181 Articles}. 
182
183 One major compatibility question if the presence of several summary
184 buffers.  All variables that are relevant while reading a group are
185 buffer-local to the summary buffer they belong in.  Although most
186 important variables have their values copied into their global
187 counterparts whenever a command is executed in the summary buffer, this
188 change might lead to incorrect values being used unless you are careful.
189
190 All code that relies on knowledge of @sc{gnus} internals will probably
191 fail.  To take two examples: Sorting @code{gnus-newsrc-assoc} (or
192 changing it in any way, as a matter of fact) is strictly verboten.  Gnus
193 maintains a hash table that points to the entries in this assoc (which
194 speeds up many functions), and changing the assoc directly will lead to
195 peculiar results.
196
197 @cindex hilit19
198 @cindex highlighting
199 Old hilit19 code does not work at all.  In fact, you should probably
200 remove all hilit code from all Gnus hooks
201 (@code{gnus-group-prepare-hook}, @code{gnus-summary-prepare-hook} and
202 @code{gnus-summary-article-hook}).  (Well, at the very least the first
203 two.)  Gnus provides various integrated functions for highlighting.
204 These are faster and more accurate.  To make life easier for everybody,
205 Gnus will by default remove all hilit calls from all hilit hooks.
206 Uncleanliness!  Away!
207
208 Packages like @code{expire-kill} will no longer work.  As a matter of
209 fact, you should probably remove all old @sc{gnus} packages (and other
210 code) when you start using Gnus.  More likely than not, Gnus already
211 does what you have written code to make @sc{gnus} do.  (Snicker.)
212
213 Even though old methods of doing things are still supported, only the
214 new methods are documented in this manual.  If you detect a new method of
215 doing something while reading this manual, that does not mean you have
216 to stop doing it the old way.
217
218 Gnus understands all @sc{gnus} startup files.
219
220 @kindex M-x gnus-bug
221 Overall, a casual user who hasn't written much code that depends on
222 @sc{gnus} internals should suffer no problems.  If problems occur,
223 please let me know (@kbd{M-x gnus-bug}).
224
225
226 @node Conformity
227 @section Conformity
228
229 No rebels without a clue here, ma'am.  We conform to all standards known
230 to (wo)man.  Except for those standards and/or conventions we disagree
231 with, of course.
232
233 @table @strong
234
235 @item RFC 822
236 There are no known breaches of this standard.
237
238 @item RFC 1036
239 There are no known breaches of this standard, either.
240
241 @item Usenet Seal of Approval
242 Gnus hasn't been formally through the Seal process, but I have read
243 through the Seal text and I think Gnus would pass.
244
245 @item Son-of-RFC 1036
246 We do have some breaches to this one.
247
248 @table @emph
249 @item MIME
250 Gnus does no MIME handling, and this standard-to-be seems to think that
251 MIME is the bees' knees, so we have major breakage here.
252 @item X-Newsreader
253 This is considered to be a "vanity header", while I consider it to be
254 consumer information.  After seeing so many badly formatted articles
255 coming from @code{tin} and @code{Netscape} I know not to use either of
256 those for posting articles.  I would not have known that if it wasn't
257 for the @code{X-Newsreader} header.
258 @item References
259 Gnus breaks lines if this header is long.  I infer from RFC1036 that
260 being conservative in what you output is not creating 5000-character
261 lines, so it seems like a good idea to me.  However, this standard-to-be
262 says that whitespace in the @code{References} header is to be preserved,
263 so...  It doesn't matter one way or the other to Gnus, so if somebody
264 tells me what The Way is, I'll change it.  Or not.
265 @end table
266
267 @end table
268
269 If you ever see Gnus act noncompliantly to the texts mentioned above,
270 don't hesitate to drop a note to Gnus Towers and let us know.
271
272
273 @node Emacsen
274 @section Emacsen
275 @cindex Emacsen
276 @cindex XEmacs
277 @cindex Mule
278 @cindex Emacs
279
280 Gnus should work on :
281
282 @itemize @bullet 
283
284 @item
285 Emacs 19.26 and up.
286
287 @item
288 XEmacs 19.12 and up.
289
290 @item 
291 Mule versions based on Emacs 19.26 and up.
292
293 @end itemize
294
295 Gnus will absolutely not work on any Emacsen older than that.  Not
296 reliably, at least. 
297
298 There are some vague differences in what Gnus does, though:
299
300 @itemize @bullet
301
302 @item
303 The mouse-face on Gnus lines under Emacs and Mule is delimited to
304 certain parts of the lines while they cover the entire line under
305 XEmacs. 
306
307 @item 
308 The same with current-article marking---XEmacs puts an underline under
309 the entire summary line while Emacs and Mule are nicer and kinder.
310
311 @item
312 XEmacs features more graphics---a logo and a toolbar.
313
314 @item
315 Citation highlighting us better under Emacs and Mule than under XEmacs.
316
317 @item
318 Emacs 19.26-19.28 have tangible hidden headers, which can be a bit
319 confusing. 
320
321 @end itemize
322
323
324 @node Contributors
325 @section Contributors
326 @cindex contributors
327
328 The new Gnus version couldn't have been done without the help of all the
329 people on the (ding) mailing list.  Every day for months I have gotten
330 tens of nice bug reports from them, filling me with joy, every single
331 one of them.  Smooches.  The people on the list have been tried beyond
332 endurance, what with my "oh, that's a neat idea <type type>, yup, I'll
333 release it right away <ship off> no wait, that doesn't work at all <type
334 type>, yup, I'll ship that one off right away <ship off> no, wait, that
335 absolutely does not work" policy for releases.  Micro$oft---bah.
336 Amateurs.  I'm @emph{much} worse.  (Or is that "worser"? "much worser"?
337 "worsest"?)
338
339 I would like to take this opportunity to thank the Academy for...  oops,
340 wrong show.
341
342 @itemize @bullet
343 @item
344 Of course, GNUS was written by Masanobu UMEDA.
345 @item 
346 Many excellent functions, especially dealing with scoring and
347 highlighting (as well as the soon-to-come @sc{soup} support) was written
348 by Per Abrahamsen.
349 @item
350 Innumerable bug fixes were written by Sudish Joseph.
351 @item 
352 @code{gnus-topic} was written by Ilja Weis.
353 @item
354 The refcard was written by Vladimir Alexiev.
355 @item
356 I stole some pieces from the XGnus distribution by Felix Lee and JWZ.
357 @item 
358 @code{nnfolder} has been much enhanced by Scott Byer.
359 @item
360 The orphan scoring was written by Peter Mutsaers.
361 @item 
362 GNU XEmacs support has been added by Fabrice Popineau. 
363 @item 
364 Various bits and pieces, especially dealing with .newsrc files, were
365 suggested and added by Hallvard B Furuseth.
366 @item 
367 Brian Edmonds has written @code{gnus-bbdb}.
368 @item 
369 Ricardo Nassif did the proof-reading.
370 @item
371 Kevin Davidson came up with the name @dfn{ding}, so blame him.
372 @item 
373 Stainless Steel Rat, Ulrik Dickow, Jack Vinson, Daniel Quinlan, Frank
374 D. Cringle, Geoffrey T. Dairiki and Andrew Eskilsson have all
375 contributed code and suggestions.
376 @end itemize
377
378
379 @node New Features
380 @section New Features
381 @cindex new features
382
383 @itemize @bullet
384
385 @item
386 The look of all buffers can be changed by setting format-like variables
387 (@pxref{Group Buffer Format} and @pxref{Summary Buffer Format}). 
388  
389 @item 
390 Local spool and several @sc{nntp} servers can be used at once
391 (@pxref{Foreign Groups}).  
392
393 @item 
394 You can combine groups into virtual groups (@pxref{nnvirtual}). 
395
396 @item 
397 You can read a number of different mail formats (@pxref{Reading Mail}).
398 All the mail backends implement a convenient mail expiry scheme
399 (@pxref{Expiring Old Mail Articles}). 
400
401 @item
402 Gnus can use various strategies for gathering threads that have lost
403 their roots (thereby gathering loose sub-threads into one thread) or it
404 can go back and retrieve enough headers to build a complete thread
405 (@pxref{Customizing Threading}).
406
407 @item 
408 Killed groups can be displayed in the group buffer, and you can read
409 them as well.
410
411 @item 
412 Gnus can do partial group updates---you do not have to retrieve the
413 entire active file just to check for new articles in a few groups
414 (@pxref{The Active File}).
415
416 @item 
417 Gnus implements a sliding scale of subscribedness to groups
418 (@pxref{Group Levels}).
419
420 @item 
421 You can score articles according to any number of criteria
422 (@pxref{Scoring}).  You can even get Gnus to find out how to score
423 articles for you (@pxref{Adaptive Scoring}).
424
425 @item 
426 Gnus maintains a dribble buffer that is auto-saved the normal Emacs
427 manner, so it should be difficult to lose much data on what you have
428 read if your machine should go down (@pxref{Auto Save}). 
429
430 @item 
431 Gnus now has its own startup file to avoid cluttering up the
432 @file{.emacs} file.
433
434 @item 
435 You can set the process mark on both groups and articles and perform
436 operations on all the marked items (@pxref{Process/Prefix}).
437
438 @item 
439 You can grep through a subset of groups and create a group from the
440 results (@pxref{nnkiboze}). 
441
442 @item 
443 You can list subsets of groups according to, well, anything
444 (@pxref{Listing Groups}). 
445
446 @item 
447 You can browse foreign servers and subscribe to groups from those
448 servers (@pxref{Browse Foreign Server}). 
449
450 @item 
451 Gnus can fetch articles asynchronously on a second connection to the
452 server (@pxref{Asynchronous Fetching}).
453
454 @item 
455 You can cache articles locally (@pxref{Article Caching}). 
456
457 @item 
458 The uudecode functions have been expanded and generalized
459 (@pxref{Decoding Articles}). 
460
461 @item
462 You can still post uuencoded articles, which was a little-known feature
463 of @sc{gnus} past (@pxref{Uuencoding & Posting}).
464
465 @item
466 Fetching parents (and other articles) now actually works without
467 glitches (@pxref{Finding the Parent}). 
468
469 @item
470 Gnus can fetch FAQs and group descriptions (@pxref{Group Information}).
471
472 @item
473 Digests (and other files) can be used as the basis for groups
474 (@pxref{nndoc}).
475
476 @item 
477 Articles can be highlighted and customized (@pxref{Customizing
478 Articles}). 
479
480 @item 
481 URLs and other external references can be buttonized (@pxref{Article
482 Buttons}). 
483
484 @item
485 All Gnus buffers can be customized in a difficult fashion
486 (@pxref{Windows Configuration}). 
487
488 @item
489 You can click on buttons instead of using the keyboard
490 (@pxref{Buttons}). 
491
492 @end itemize
493
494 This is, of course, just a @emph{short} overview of the @emph{most}
495 important new features.  No, really.  There are tons more.  Yes, we have
496 feeping creaturism in full effect, but nothing too gratuitous, I would
497 hope. 
498
499
500 @node Newest Features
501 @section Newest Features
502 @cindex todo
503
504 Also known as the @dfn{todo list}.  Sure to be implemented before the
505 next millennium. 
506
507 Be afraid.  Be very afraid.
508
509 @itemize @bullet
510 @item
511 Native @sc{mime} support is something that should be done.  
512 @item
513 @code{trn}-like trees.
514 @item
515 @code{nn}-like pick-and-read summary interface.
516 @item 
517 NoCeM support.
518 @item 
519 Frame configuration.
520 @item 
521 Floating point group levels and group bubbling.
522 @item 
523 Automatic re-scan of incoming mail.
524 @item
525 Buttonize more stuff in the article buffer.
526 @item
527 A better and simpler method for specifying mail composing methods. 
528 @item 
529 Marks for saved, forwarded, etc articles.
530 @item 
531 Speed up caching and adaptive scoring.
532 @item
533 Gather thread by filling in missing Message-IDs.
534 @item 
535 PGP support.
536 @item
537 Allow posting through mail-to-news gateways.
538 @item
539 Speed up massive group massacres.
540 @item
541 @code{jka-compr} isn't fully supported.
542 @item
543 Create better digests.
544 @item
545 Do better word-wrap on cited text.
546 @item 
547 Better X-Face support with X-Face databases and stuff. 
548 @item
549 Support SELF-DISCIPLINE pins.
550 @item
551 Really do unbinhexing.
552 @item
553 Listing of all active groups.
554 @item
555 XEmacs toolbar.
556 @item
557 Do the X-Receipt-To thing.
558 @item
559 Don't kill summary buffers upon exit from the groups.
560 @item
561 Allow adaption on secondary marks.
562 @end itemize
563
564 And much, much, much more.  There is more to come than has already been
565 implemented.  (But that's always true, isn't it?)
566
567 @code{<URL:http://www.ifi.uio.no/~larsi/sgnus/todo>} is where the actual
568 up-to-the-second todo list is located, so if you're really curious, you
569 could point your Web browser over that-a-way.
570
571 @node Terminology
572 @chapter Terminology
573
574 @cindex terminology
575 @table @dfn
576 @item news
577 @cindex news
578 This is what you are supposed to use this thing for---reading news.
579 News is generally fetched from a nearby @sc{nntp} server, and is
580 generally publicly available to everybody.  If you post news, the entire
581 world is likely to read just what you have written, and they'll all
582 snigger mischievously.  Behind your back.
583 @item mail
584 @cindex mail
585 Everything that's delivered to you personally is mail.  Some news/mail
586 readers (like Gnus) blur the distinction between mail and news, but
587 there is a difference.  Mail is private.  News is public.  Mailing is
588 not posting, and replying is not following up.
589 @item reply
590 Send a mail to the person who has written what you are reading.
591 @item follow up
592 Post an article to the current newsgroup responding to the article you
593 are reading.
594 @item backend
595 Gnus gets fed articles from a number of backends, both news and mail
596 backends.  Gnus does not handle the underlying media, so to speak---this
597 is all done by the backends.
598 @item native
599 Gnus will always use one method (and backend) as the @dfn{native}, or
600 default, way of getting news.
601 @item foreign
602 You can also have any number of foreign groups at the same time.  These
603 are groups that use different backends for getting news.
604 @item head
605 @cindex head
606 The top part of an article, where administration information (etc.) is
607 put. 
608 @item body
609 @cindex body
610 The rest of an article. Everything that is not in the head is in the
611 body. 
612 @item header
613 @cindex header
614 A line from the head of an article. 
615 @item headers
616 @cindex headers
617 A collection of such lines, or a collection of heads.  Or even a
618 collection of @sc{nov} lines.
619 @item @sc{nov}
620 @cindex nov
621 When Gnus enters a group, it asks the backend for the headers for all
622 the unread articles in the group.  Most servers support the News OverView
623 format, which is much smaller and much faster to read than the normal
624 HEAD format. 
625 @item level
626 @cindex levels
627 Each group is subscribed at some @dfn{level} or other (1-9).  The ones
628 that have a lower level are "more" subscribed than the groups with a
629 higher level.  In fact, groups on levels 1-5 are considered
630 @dfn{subscribed}; 6-7 are @dfn{unsubscribed}; 8 are @dfn{zombies}; and 9
631 are @dfn{killed}.  Commands for listing groups and scanning for new
632 articles will all use the numeric prefix as @dfn{working level}.
633 @item killed groups
634 @cindex killed groups
635 No information on killed groups is stored or updated, which makes killed
636 groups much easier to handle than subscribed groups.
637 @item zombie groups
638 @cindex zombie groups
639 Just like killed groups, only slightly less dead.
640 @item active file
641 @cindex active file
642 The news server has to keep track of what articles it carries, and what
643 groups exist.  All this information in stored in the active file, which
644 is rather large, as you might surmise.
645 @item bogus groups
646 @cindex bogus groups
647 A group that exists in the @file{.newsrc} file, but isn't known to the
648 server (i. e.,  it isn't in the active file), is a @emph{bogus group}.
649 This means that the group probably doesn't exist (any more).
650 @end table
651
652 @node Starting Up
653 @chapter Starting Gnus
654 @cindex starting up
655
656 @kindex M-x gnus
657 If your system administrator has set things up properly, starting Gnus
658 and reading news is extremely easy---you just type @kbd{M-x gnus}.
659
660 If things do not go smoothly at startup, you have to twiddle some
661 variables. 
662
663 @menu
664 * Finding the News::    Choosing a method for getting news.
665 * The First Time::      What does Gnus do the first time you start it?
666 * The Server is Down::  How can I read my mail then?
667 * Slave Gnusii::        You can have more than one Gnus active at a time.
668 * Fetching a Group::    Starting Gnus just to read a group.
669 * New Groups::          What is Gnus supposed to do with new groups?
670 * Startup Files::       Those pesky startup files---@file{.newsrc}.
671 * Auto Save::           Recovering from a crash.
672 * The Active File::     Reading the active file over a slow line Takes Time.
673 * Startup Variables::   Other variables you might change.
674 @end menu
675
676 @node Finding the News
677 @section Finding the News
678
679 @vindex gnus-select-method
680 The @code{gnus-select-method} variable controls how Gnus finds news.
681 This variable should be a list where the first element says @dfn{how}
682 and the second element says @dfn{where}.  This method is is your native
683 method.  All groups that are not fetched with this method are foreign
684 groups.
685
686 For instance, if you want to get your daily dosage of news from the
687 @samp{news.somewhere.edu} @sc{nntp} server, you'd say:
688
689 @lisp
690 (setq gnus-select-method '(nntp "news.somewhere.edu"))
691 @end lisp
692
693 If you want to read directly from the local spool, say:
694
695 @lisp
696 (setq gnus-select-method '(nnspool ""))
697 @end lisp
698
699 If you can use a local spool, you probably should, as it will almost
700 certainly be much faster.
701
702 @vindex gnus-nntpserver-file
703 @cindex NNTPSERVER
704 @cindex @sc{nntp} server
705 If this variable is not set, Gnus will take a look at the
706 @code{NNTPSERVER} environment variable.  If that variable isn't set,
707 Gnus will see whether @code{gnus-nntpserver-file} (default
708 @file{/etc/nntpserver}) has any opinions in the matter.  It that fails
709 as well, Gnus will will try to use the machine that is running Emacs as
710 an @sc{nntp} server.  That's a longshot, though.
711
712 @vindex gnus-nntp-server
713 If @code{gnus-nntp-server} is set, this variable will override
714 @code{gnus-select-method}.  You should therefore set
715 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
716
717 @vindex gnus-secondary-servers
718 You can also make Gnus prompt you interactively for the name of an
719 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
720 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
721 in the @code{gnus-secondary-servers} list (if any).  You can also just
722 type in the name of any server you feel like visiting.
723
724 However, if you use one @sc{nntp} server regularly, and are just
725 interested in a couple of groups from a different server, you would be
726 better served by using the @code{gnus-group-browse-foreign-server}
727 command from the group buffer.  It will let you have a look at what
728 groups are available, and you can subscribe to any of the groups you
729 want to.  This also makes @file{.newsrc} maintenance much tidier.
730 @xref{Foreign Groups}.
731
732 @vindex gnus-secondary-select-methods
733 A slightly different approach to foreign groups is to set the
734 @code{gnus-secondary-select-methods} variable.  The select methods
735 listed in this variable are in many ways just as native as the
736 @code{gnus-select-method} server.  They will also be queried for active
737 files during startup (if that's required), and new newsgroups that
738 appear on these servers will be subscribed (or not) just as native
739 groups are.
740
741 For instance, if you use the @code{nnmbox} backend to read you mail, you
742 would typically set this variable to
743
744 @lisp
745 (setq gnus-secondary-select-methods '((nnmbox "")))
746 @end lisp
747
748 @node The First Time
749 @section The First Time
750 @cindex first time usage
751
752 If no startup files exist, Gnus will try to determine what groups should
753 be subscribed by default.
754
755 @vindex gnus-default-subscribed-newsgroups
756 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
757 will subscribe you to just those groups in that list, leaving the rest
758 killed.  Your system administrator should have set this variable to
759 something useful.
760
761 Since she hasn't, Gnus will just subscribe you to a few randomly picked
762 groups (i.e., @samp{*.newusers}).  (@dfn{Random} is here defined as
763 "whatever Lars thinks you should read".)
764
765 You'll also be subscribed to the Gnus documentation group, which should
766 help you with most common problems.  
767
768 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
769 use the normal functions for handling new groups, and not do anything
770 special.
771
772 @node The Server is Down
773 @section The Server is Down
774 @cindex server errors
775
776 If the default server is down, Gnus will understandably have some
777 problems starting.  However, if you have some mail groups in addition to
778 the news groups, you may want to start Gnus anyway.
779
780 Gnus, being the trusting sort of program, will ask whether to proceed
781 without a native select method if that server can't be contacted.  This
782 will happen whether the server doesn't actually exist (i.e., you have
783 given the wrong address) or the server has just momentarily taken ill
784 for some reason or other.  
785
786 If Gnus says "nntp server on <your server> can't be opened. Continue?",
787 you do not want to continue unless you have some foreign groups that you
788 want to read.  Even if you don't, Gnus will let you continue, but you'll
789 find it difficult to actually do anything in the group buffer.  But,
790 hey, that's your problem.  Blllrph!
791
792 @findex gnus-no-server
793 If you know that the server is definitely down, or you just want to read
794 your mail without bothering with the server at all, you can use the
795 @code{gnus-no-server} command to start Gnus.  That might come in handy
796 if you're in a hurry as well.
797
798
799 @node Slave Gnusii
800 @section Slave Gnusii
801 @cindex slave
802
803 You might want to run more than one Emacs with more than one Gnus at the
804 same time.  If you are using different @file{.newsrc} files (eg., if you
805 are using the two different Gnusii to read from two different servers),
806 that is no problem whatsoever.  You just do it.
807
808 The problem appears when you want to run two Gnusii that use the same
809 @code{.newsrc} file.
810
811 To work around that problem some, we here at the Think-Tank at the Gnus
812 Towers have come up with a new concept: @dfn{Masters} and
813 @dfn{servants}.  (We have applied for a patent on this concept, and have
814 taken out a copyright on those words.  If you wish to use those words in
815 conjunction with each other, you have to send $1 per usage instance to
816 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
817 Applications}) will be much more expensive, of course.)
818
819 Anyways, you start one Gnus up the normal way with @kbd{M-x gnus} (or
820 however you do it).  Each subsequent slave Gnusii should be started with
821 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
822 files, but some slave files that contains information only on what
823 groups have been read in the slave session.  When a master Gnus starts,
824 it will read (and delete) these slave files, incorporating all
825 information from all of them.  (The slave files will be read in the
826 sequence they were created, so the latest changes will have precedence.)
827
828 Information from the slave files has, of course, presedence over the
829 information in the normal (i. e., master) @code{.newsrc} file.
830
831
832 @node Fetching a Group
833 @section Fetching a Group
834
835 @findex gnus-fetch-group
836 It it sometime convenient to be able to just say "I want to read this
837 group and I don't care whether Gnus has been started or not".  This is
838 perhaps more useful for people who write code than for users, but the
839 command @code{gnus-fetch-group} provides this functionality in any
840 case.  It takes the group name as a paramenter.
841
842
843 @node New Groups
844 @section New Groups
845 @cindex new groups
846
847 @vindex gnus-subscribe-newsgroup-method
848 What Gnus does when it encounters a new group is determined by the
849 @code{gnus-subscribe-newsgroup-method} variable.
850
851 This variable should contain a function.  Some handy pre-fab values
852 are:
853
854 @table @code
855 @item gnus-subscribe-randomly
856 @vindex gnus-subscribe-randomly
857 Subscribe all new groups randomly.
858 @item gnus-subscribe-alphabetically
859 @vindex gnus-subscribe-alphabetically
860 Subscribe all new groups alphabetically.
861 @item gnus-subscribe-hierarchically
862 @vindex gnus-subscribe-hierarchically
863 Subscribe all new groups hierarchically.
864 @item gnus-subscribe-interactively
865 @vindex gnus-subscribe-interactively
866 Subscribe new groups interactively.  This means that Gnus will ask
867 you about @strong{all} new groups.
868 @item gnus-subscribe-zombies
869 @vindex gnus-subscribe-zombies
870 Make all new groups zombies.  You can browse the zombies later and
871 either kill them all off properly, or subscribe to them.  This is the
872 default.
873 @end table
874
875 @vindex gnus-subscribe-hierarchical-interactive
876 A closely related variable is
877 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
878 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
879 hierarchical fashion whether to subscribe to new groups or not.  Gnus
880 will ask you for each sub-hierarchy whether you want to descend the
881 hierarchy or not.
882
883 One common way to control which new newsgroups should be subscribed or
884 ignored is to put an @dfn{options} line at the start of the
885 @file{.newsrc} file.  Here's an example:
886
887 @example
888 options -n !alt.all !rec.all sci.all
889 @end example
890
891 @vindex gnus-subscribe-options-newsgroup-method
892 This line obviously belongs to a serious-minded intellectual scientific
893 person (or she may just be plain old boring), because it says that all
894 groups that have names beginning with @samp{alt} and @samp{rec} should
895 be ignored, and all groups with names beginning with @samp{sci} should
896 be subscribed.  Gnus will not use the normal subscription method for
897 subscribing these groups.
898 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
899 variable defaults to @code{gnus-subscribe-alphabetically}.
900
901 @vindex gnus-options-not-subscribe
902 @vindex gnus-options-subscribe
903 If you don't want to mess with your @file{.newsrc} file, you can just
904 set the two variables @code{gnus-options-subscribe} and
905 @code{gnus-options-not-subscribe}.  These two variables do exactly the
906 same as the @file{.newsrc} options -n trick.  Both are regexps, and if
907 the the new group matches the first, it will be unconditionally
908 subscribed, and if it matches the latter, it will be ignored.
909
910 @vindex gnus-auto-subscribed-groups
911 Yet another variable that meddles here is
912 @code{gnus-auto-subscribed-groups}.  It works exactly like
913 @code{gnus-options-subscribe}, and is therefore really superfluos, but I
914 thought it would be nice to have two of these.  This variable is more
915 meant for setting some ground rules, while the other variable is used
916 more for user fiddling.  By default this variable makes all new groups
917 that come from mail backends (@code{nnml}, @code{nnbabyl},
918 @code{nnfolder}, @code{nnmbox}, and @code{nnmh}) subscribed.  If you
919 don't like that, just set this variable to @code{nil}.
920
921 @vindex gnus-check-new-newsgroups
922 If you are satisfied that you really never want to see any new groups,
923 you could set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
924 also save you some time at startup.  Even if this variable is
925 @code{nil}, you can always subscribe to the new groups just by pressing
926 @kbd{U} in the group buffer (@pxref{Group Maintenance}).
927
928 Gnus normally determines whether a group is new or not by comparing the
929 list of groups from the active file(s) with the lists of subscribed and
930 dead groups.  This isn't a particularly fast method.  If
931 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
932 server for new groups since the last time.  This is both faster &
933 cheaper.  This also means that you can get rid of the list of killed
934 groups altogether, so you may set @code{gnus-save-killed-list} to
935 @code{nil}, which will save time both at startup, at exit, and all over.
936 Saves disk space, too.  Why isn't this the default, then?
937 Unfortunately, not all servers support this function. 
938
939 This variable can also be a list of select methods.  If so, Gnus will
940 issue an @code{ask-server} command to each of the select methods, and
941 subscribe them (or not) using the normal methods.  This might be handy
942 if you are monitoring a few servers for new groups.  A side effect is
943 that startup will take much longer, so you can meditate while waiting.
944 Use the mantra "dingnusdingnusdingnus" to achieve permanent happiness.
945
946 @node Startup Files
947 @section Startup Files
948 @cindex startup files
949 @cindex .newsrc
950
951 Now, you all know about the @file{.newsrc} file.  All subscription
952 information is traditionally stored in this file.
953
954 Things got a bit more complicated with @sc{gnus}.  In addition to
955 keeping the @file{.newsrc} file updated, it also used a file called
956 @file{.newsrc.el} for storing all the information that didn't fit into
957 the @file{.newsrc} file.  (Actually, it duplicated everything in the
958 @file{.newsrc} file.)  @sc{gnus} would read whichever one of these files
959 that were the most recently saved, which enabled people to swap between
960 @sc{gnus} and other newsreaders.
961
962 That was kinda silly, so Gnus went one better: In addition to the
963 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
964 @file{.newsrc.eld}.  It will read whichever of these files that are most
965 recent, but it will never write a @file{.newsrc.el} file.
966
967 @vindex gnus-save-newsrc-file
968 You can also turn off writing the @file{.newsrc} file by setting
969 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
970 the file and save some space, as well as making exit from Gnus faster.
971 However, this will make it impossible to use other newsreaders than
972 Gnus.  But hey, who would want to, right?
973
974 @vindex gnus-save-killed-list
975 If @code{gnus-save-killed-list} is @code{nil}, Gnus will not save the
976 list of killed groups to the startup file.  This will save both time
977 (when starting and quitting) and space (on disk).  It will also means
978 that Gnus has no record of what groups are new or old, so the automatic
979 new groups subscription methods become meaningless.  You should always
980 set @code{gnus-check-new-newsgroups} to @code{nil} or @code{ask-server}
981 if you set this variable to @code{nil} (@pxref{New Groups}).
982
983 @vindex gnus-startup-file
984 The @code{gnus-startup-file} variable says where the startup files are.
985 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
986 file being whatever that one is with a @samp{.eld} appended.
987
988 @vindex gnus-save-newsrc-hook
989 @vindex gnus-save-quick-newsrc-hook
990 @vindex gnus-save-standard-newsrc-hook
991 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
992 files, while @code{gnus-save-quick-newsrc-hook} is called just before
993 saving the @file{.newsrc.eld} file, and
994 @code{gnus-save-standard-newsrc-hook} is called just before saving the
995 @file{.newsrc} file.  The latter two are commonly used to tern version
996 control on or off.
997
998 @node Auto Save
999 @section Auto Save
1000 @cindex dribble file
1001 @cindex auto-save
1002
1003 Whenever you do something that changes the Gnus data (reading articles,
1004 catching up, killing/subscribing groups), the change is added to a
1005 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
1006 Emacs way.  If your Emacs should crash before you have saved the
1007 @file{.newsrc} files, all changes you have made can be recovered from
1008 this file.
1009
1010 If Gnus detects this file at startup, it will ask the user whether to
1011 read it. The auto save file is deleted whenever the real startup file is
1012 saved.
1013
1014 @vindex gnus-use-dribble-file
1015 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1016 maintain a dribble buffer.
1017
1018 @vindex gnus-dribble-directory
1019 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
1020 this variable is @code{nil}, which it is by default, Gnus will dribble
1021 into the same directory as the @file{.newsrc} file is located.  (This is
1022 normally the user's home directory.)
1023
1024 @node The Active File
1025 @section The Active File
1026 @cindex active file
1027 @cindex ignored groups
1028
1029 When Gnus starts, or indeed whenever it tries to determine whether new
1030 articles have arrived, it reads the active file.  This is a very large
1031 file that lists all the active groups and articles on the @sc{nntp}
1032 server.
1033
1034 @vindex gnus-ignored-newsgroups
1035 Before examining the active file, Gnus deletes all lines that match the
1036 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
1037 any groups with bogus names, but you can use this variable to make Gnus
1038 ignore hierarchies you aren't ever interested in.  This variable is
1039 @code{nil} by default, and will slow down active file handling somewhat
1040 if you set it to anything else.
1041
1042 @vindex gnus-read-active-file
1043 The active file can be rather Huge, so if you have a slow network, you
1044 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1045 reading the active file.
1046
1047 Gnus will try to make do by just getting information on the groups
1048 that you actually subscribe to.
1049
1050 Note that if you subscribe to lots and lots of groups, setting this
1051 variable to @code{nil} will probably make Gnus slower, not faster.  At
1052 present, having this variable @code{nil} will slow Gnus down
1053 considerably, unless you read news over a 2400 baud modem.  
1054
1055 This variable can also have the value @code{some}.  Gnus will then
1056 attempt to read active info only on the subscribed groups.  On some
1057 servers this is quite fast (on sparkling, brand new INN servers that
1058 support the @samp{LIST ACTIVE group} command), on others this is not
1059 fast at all.  In any case, @code{some} should be faster than @code{nil},
1060 and is certainly faster than @code{t} over slow lines.
1061
1062 If this variable is @code{nil}, Gnus will as for group info in total
1063 lock-step, which isn't very fast.  If it is @code{some} and you use an
1064 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
1065 read all the replies in one swoop.  This will normally result in better
1066 performance, but if the server does not support the aforementioned
1067 @samp{LIST ACTIVE group} command, this isn't very nice to the server.
1068
1069 In any case, if you use @code{some} or @code{nil}, you should kill all
1070 groups that you aren't interested in.
1071
1072 @node Startup Variables
1073 @section Startup Variables
1074
1075 @table @code
1076 @item gnus-load-hook
1077 @vindex gnus-load-hook
1078 A hook that is run while Gnus is being loaded.  Note that this hook will
1079 normally be run just once in each Emacs session, no matter how many
1080 times you start Gnus.
1081
1082 @item gnus-startup-hook
1083 @vindex gnus-startup-hook
1084 A hook that is run after starting up Gnus successfully.
1085
1086 @item gnus-check-bogus-newsgroups
1087 @vindex gnus-check-bogus-newsgroups
1088 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1089 startup.  A @dfn{bogus group} is a group that you have in your
1090 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
1091 bogus groups isn't very quick, so to save time and resources, it's best
1092 to leave this option off, and instead do the checking for bogus groups
1093 once in a while from the group buffer (@pxref{Group Maintenance}).
1094
1095 @item gnus-inhibit-startup-message
1096 @vindex gnus-inhibit-startup-message
1097 If non-@code{nil}, the startup message won't be displayed.  That way,
1098 your boss might not notice that you are reading news instead of doing
1099 your job.
1100
1101 @item gnus-no-groups-message
1102 @vindex gnus-no-groups-message
1103 Message displayed by Gnus when no groups are available.
1104 @end table
1105
1106 @node The Group Buffer
1107 @chapter The Group Buffer
1108 @cindex group buffer
1109
1110 The @dfn{group buffer} lists all (or parts) of the available groups.  It
1111 is the first buffer shown when Gnus starts, and will never be killed as
1112 long as Gnus is active.
1113
1114 @menu
1115 * Group Buffer Format::    Information listed and how you can change it.
1116 * Group Maneuvering::      Commands for moving in the group buffer.
1117 * Selecting a Group::      Actually reading news.
1118 * Subscription Commands::  Unsubscribing, killing, subscribing.
1119 * Group Levels::           Levels? What are those, then?
1120 * Marking Groups::         You can mark groups for later processing.
1121 * Foreign Groups::         How to create foreign groups.
1122 * Group Parameters::       Each group may have different parameters set.
1123 * Listing Groups::         Gnus can list various subsets of the groups.
1124 * Group Maintenance::      Maintaining a tidy @file{.newsrc} file.
1125 * Browse Foreign Server::  You can browse a server.  See what if has to offer.
1126 * Exiting Gnus::           Stop reading news and get some work done.
1127 * Group Topics::           A folding group mode divided into topics.
1128 * Misc Group Stuff::       Other stuff that you can to do.
1129 @end menu
1130
1131 @node Group Buffer Format
1132 @section Group Buffer Format
1133 @cindex group buffer format
1134
1135 The default format of the group buffer is nice and dull, but you can
1136 make it as exciting and ugly as you feel like.
1137
1138 Here's a couple of example group lines:
1139
1140 @example
1141      25: news.announce.newusers
1142  *    0: alt.fan.andrea-dworkin
1143 @end example
1144
1145 Quite simple, huh?
1146
1147 You can see that there are 25 unread articles in
1148 @samp{news.announce.newusers}.  There are no unread articles, but some
1149 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1150 asterisk at the beginning of the line?)
1151
1152 @vindex gnus-group-line-format
1153 You can fuck that up to your heart's delight by fiddling with the
1154 @code{gnus-group-line-format} variable.  This variable works along the
1155 lines of a @code{format} specification, which is pretty much the same as
1156 a @code{printf} specifications, for those of you who use (feh!) C.
1157
1158 In addition to the normal "padding" specs that @code{format} supports
1159 (eg. @samp{%7d}), specifications like @samp{%7,12s} are allowed.  A spec
1160 of this type means that the field will be at least 7 characters long,
1161 and never more that 12 characters long.
1162
1163 The default value that produced those lines above is 
1164 @samp{"%M%S%5y: %(%g%)\n"}.
1165
1166 There should always be a colon on the line; the cursor always moves to
1167 the colon after performing an operation.  Nothing else is required---not
1168 even the group name.  All displayed text is just window dressing, and is
1169 never examined by Gnus.  Gnus stores all real information it needs using
1170 text properties.
1171
1172 (Note that if you make a really strange, wonderful, spreadsheet-like
1173 layout, everybody will believe you are hard at work with the accounting
1174 instead of wasting time reading news.)
1175
1176 Here's a list of all available format characters:
1177
1178 @table @samp
1179 @item M    
1180 Only marked articles.
1181 @item S
1182 Whether the group is subscribed.
1183 @item L    
1184 Level of subscribedness.
1185 @item N
1186 Number of unread articles.
1187 @item I
1188 Number of dormant articles.
1189 @item T
1190 Number of ticked articles.
1191 @item R
1192 Number of read articles.
1193 @item t
1194 Total number of articles.
1195 @item y
1196 Number of unread, unticked, non-dormant articles.
1197 @item i
1198 Number of ticked and dormant articles.
1199 @item g
1200 Full group name.
1201 @item G
1202 Group name.
1203 @item D
1204 Newsgroup description.
1205 @item o
1206 Moderated.
1207 @item O
1208 Moderated.
1209 @item s
1210 Select method.
1211 @item n
1212 Select from where.
1213 @item z
1214 A string that looks like @samp{<%s:%n>} if a foreign select method is
1215 used.
1216 @item u
1217 User defined specifier.  The next character in the format string should
1218 be a letter.  @sc{gnus} will call the function
1219 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1220 following @samp{%u}.  The function will be passed the current headers as
1221 argument.  The function should return a string, which will be inserted
1222 into the buffer just like information from any other specifier.
1223 @end table
1224
1225 @cindex *
1226 All the "number-of" specs will be filled with an asterisk (@samp{*}) if
1227 no info is available---for instance, if it is a non-activated foreign
1228 group, or a bogus (or semi-bogus) native group.
1229
1230 @vindex gnus-group-mode-line-format
1231 The mode line can be changed by setting
1232 (@code{gnus-group-mode-line-format}).  It doesn't understand that many
1233 format specifiers:
1234
1235 @table @samp
1236 @item S
1237 Default news server.
1238 @item M
1239 Default select method.
1240 @end table
1241
1242 @node Group Maneuvering
1243 @section Group Maneuvering
1244 @cindex group movement
1245
1246 All movement commands understand the numeric prefix and will behave as
1247 expected, hopefully. 
1248
1249 @table @kbd
1250 @item n
1251 @kindex n (Group)
1252 @findex gnus-group-next-unread-group
1253 Go to the next group that has unread articles
1254 (@code{gnus-group-next-unread-group}).
1255 @item p
1256 @itemx DEL
1257 @kindex DEL (Group)
1258 @kindex p (Group)
1259 @findex gnus-group-prev-unread-group
1260 Go to the previous group group that has unread articles
1261 (@code{gnus-group-prev-unread-group}).
1262 @item N
1263 @kindex N (Group)
1264 @findex gnus-group-next-group
1265 Go to the next group (@code{gnus-group-next-group}).
1266 @item P
1267 @kindex P (Group)
1268 @findex gnus-group-prev-group
1269 Go to the previous group (@code{gnus-group-prev-group}).
1270 @item M-p
1271 @kindex M-p (Group)
1272 @findex gnus-group-next-unread-group-same-level
1273 Go to the next unread group on the same level (or lower)
1274 (@code{gnus-group-next-unread-group-same-level}). 
1275 @item M-n
1276 @kindex M-n (Group)
1277 @findex gnus-group-prev-unread-group-same-level
1278 Go to the previous unread group on the same level (or lower)
1279 (@code{gnus-group-prev-unread-group-same-level}). 
1280 @end table
1281
1282 Three commands for jumping to groups:
1283
1284 @table @kbd
1285 @item j
1286 @kindex j (Group)
1287 @findex gnus-group-jump-to-group
1288 Jump to a group (and make it visible if it isn't already)
1289 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
1290 like living groups.
1291 @item ,
1292 @kindex , (Group)
1293 @findex gnus-group-best-unread-group
1294 Jump to the unread group with the lowest level
1295 (@code{gnus-group-best-unread-group}). 
1296 @item .
1297 @kindex . (Group)
1298 @findex gnus-group-first-unread-group
1299 Jump to the first group with unread articles
1300 (@code{gnus-group-first-unread-group}).  
1301 @end table
1302
1303 @vindex gnus-group-goto-unread
1304 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
1305 commands will move to the next group, not the next unread group.  Even
1306 the commands that say they move to the next unread group. 
1307
1308 @node Selecting a Group
1309 @section Selecting a Group
1310 @cindex group selection
1311
1312 @table @kbd
1313
1314 @item SPACE
1315 @kindex SPACE (Group)
1316 @findex gnus-group-read-group
1317 Select the current group, switch to the summary buffer and display the
1318 first unread article (@code{gnus-group-read-group}).  If there are no
1319 unread articles in the group, or if you give a non-numerical prefix to
1320 this command, Gnus will offer to fetch all the old articles in this
1321 group from the server.  If you give a numerical prefix @var{N}, Gnus
1322 will fetch @var{N} number of articles.  If @var{N} is positive, fetch
1323 the @var{N} newest articles, if @var{N} is negative, fetch the
1324 @var{abs(N)} oldest articles.
1325
1326 @item RET
1327 @kindex RET (Group)
1328 @findex gnus-group-select-group
1329 Select the current group and switch to the summary buffer
1330 (@code{gnus-group-select-group}).  Takes the same arguments as
1331 @code{gnus-group-read-group}---the only difference is that this command
1332 does not display the first unread article automatically upon group
1333 entry. 
1334
1335 @item M-RET
1336 @kindex M-RET (Group)
1337 @findex gnus-group-quick-select-group
1338 This does the same as the command above, but tries to do it with the
1339 minimum amount off fuzz (@code{gnus-group-quick-select-group}).  No
1340 scoring/killing will be performed, there will be no highlights and no
1341 expunging.  This might be useful if you're in a real hurry and have to
1342 enter some humongous groups.
1343
1344 @item c
1345 @kindex c (Group)
1346 @findex gnus-group-catchup-current
1347 Mark all unticked articles in this group as read
1348 (@code{gnus-group-catchup-current}). 
1349
1350 @item C
1351 @kindex C (Group)
1352 @findex gnus-group-catchup-current-all
1353 Mark all articles in this group, even the ticked ones, as read
1354 (@code{gnus-group-catchup-current-all}). 
1355 @end table
1356
1357 @vindex gnus-large-newsgroup
1358 The @code{gnus-large-newsgroup} variable says what Gnus should consider
1359 to be a big group.  If the group has more unread articles than this,
1360 Gnus will query the user before entering the group.  The user can then
1361 specify how many articles should be fetched from the server.  If the
1362 user specifies a negative number (@samp{-n}), the @samp{n} oldest
1363 articles will be fetched.  If it is positive, the @samp{n} articles that
1364 have arrived most recently will be fetched.
1365
1366 @vindex gnus-select-group-hook
1367 @vindex gnus-auto-select-first
1368 If @code{gnus-auto-select-first} is non-@code{nil}, the first unread
1369 article in the group will be displayed when you enter the group.  If you
1370 want to prevent automatic selection in some group (say, in a binary
1371 group with Huge articles) you can set this variable to @code{nil} in
1372 @code{gnus-select-group-hook}, which is called when a group is selected.
1373
1374 @findex gnus-thread-sort-by-total-score
1375 @findex gnus-thread-sort-by-date
1376 @findex gnus-thread-sort-by-score
1377 @findex gnus-thread-sort-by-subject
1378 @findex gnus-thread-sort-by-author
1379 @findex gnus-thread-sort-by-number
1380 @vindex gnus-thread-sort-functions
1381 If you are using a threaded summary display, you can sort the threads by
1382 setting @code{gnus-thread-sort-functions}, which is a list of functions.
1383 By default, sorting is done on article numbers.  Ready-made sorting
1384 functions include @code{gnus-thread-sort-by-number},
1385 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-subject},
1386 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-score},
1387 @code{gnus-thread-sort-by-total-score}.
1388
1389 Each function takes two threads and return non-@code{nil} if the first
1390 thread should be sorted before the other.  If you use more than one
1391 function, the primary sort key should be the last function in the list.
1392
1393 If you would like to sort by score, then by subject, and finally by
1394 date, you could do something like:
1395
1396 @lisp
1397 (setq gnus-thread-sort-functions 
1398       '(gnus-thread-sort-by-date
1399         gnus-thread-sort-by-subject
1400         gnus-thread-sort-by-score))
1401 @end lisp
1402
1403 @vindex gnus-thread-score-function
1404 The function in the @code{gnus-thread-score-function} variable (default
1405 @code{+}) is used for calculating the total score of a thread.  Useful
1406 functions might be @code{max}, @code{min}, or squared means, or whatever
1407 tickles you fancy.
1408
1409 @node Subscription Commands
1410 @section Subscription Commands
1411 @cindex subscribing
1412
1413 @table @kbd
1414 @item S t
1415 @itemx u
1416 @kindex S t (Group)
1417 @kindex u (Group)
1418 @findex gnus-group-unsubscribe-current-group
1419 Toggle subscription to the current group
1420 (@code{gnus-group-unsubscribe-current-group}).  
1421 @item S s
1422 @itemx U
1423 @kindex S s (Group)
1424 @kindex U (Group)
1425 @findex gnus-group-unsubscribe-group
1426 Prompt for a group to subscribe, and then subscribe it.  If it was
1427 subscribed already, unsubscribe it instead
1428 (@code{gnus-group-unsubscribe-group}).
1429 @item S k
1430 @itemx C-k
1431 @kindex S k (Group)
1432 @kindex C-k (Group)
1433 @findex gnus-group-kill-group
1434 Kill the current group (@code{gnus-group-kill-group}).
1435 @item S y
1436 @itemx C-y
1437 @kindex S y (Group)
1438 @kindex C-y (Group)
1439 @findex gnus-group-yank-group
1440 Yank the last killed group (@code{gnus-group-yank-group}).
1441 @item S w
1442 @itemx C-w
1443 @kindex S w (Group)
1444 @kindex C-w (Group)
1445 @findex gnus-group-kill-region
1446 Kill all groups in the region (@code{gnus-group-kill-region}). 
1447 @item S z
1448 @kindex S z (Group)
1449 @findex gnus-group-kill-all-zombies
1450 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
1451 @end table
1452
1453 Also @xref{Group Levels}.
1454
1455 @node Group Levels
1456 @section Group Levels
1457 @cindex group level
1458
1459 All groups have a level of @dfn{subscribedness}.  For instance, if a
1460 group is on level 2, it is more subscribed than a group on level 5.  You
1461 can ask Gnus to just list groups on a given level or lower
1462 (@pxref{Listing Groups}), or to just check for new articles in groups on
1463 a given level or lower (@pxref{Misc Group Stuff}).
1464
1465 @table @kbd
1466 @item S l
1467 @kindex S l (Group)
1468 @findex gnus-group-set-current-level
1469 Set the level of the current group.  If a numeric prefix is given, the
1470 next @var{n} groups will have their levels set.  The user will be
1471 prompted for a level.
1472 @end table
1473
1474 @vindex gnus-level-killed
1475 @vindex gnus-level-zombie
1476 @vindex gnus-level-unsubscribed
1477 @vindex gnus-level-subscribed
1478 Gnus considers groups on between levels 1 and
1479 @code{gnus-level-subscribed} (inclusive) to be subscribed,
1480 @code{gnus-level-subscribed} (exclusive) and
1481 @code{gnus-level-unsubscribed} (inclusive) to be unsubscribed,
1482 @code{gnus-level-zombie} to be zombies (walking dead) and
1483 @code{gnus-level-killed} to be killed, completely dead.  Gnus treats
1484 subscribed and unsubscribed groups exactly the same, but zombie and
1485 killed groups have no information on what articles you have read, etc,
1486 stored.  This distinction between dead and living groups isn't done
1487 because it is nice or clever, it is done purely for reasons of
1488 efficiency. 
1489
1490 It is recommended that you keep all your mail groups (if any) on quite
1491 low levels (eg. 1 or 2).
1492
1493 If you want to play with the level variables, you should show some care.
1494 Set them once, and don't touch them ever again.  Better yet, don't touch
1495 them at all unless you know exactly what you're doing.
1496
1497 @vindex gnus-level-default-unsubscribed
1498 @vindex gnus-level-default-subscribed
1499 Two closely related variables are @code{gnus-level-default-subscribed}
1500 and @code{gnus-level-default-unsubscribed}, which are the levels that new
1501 groups will be put on if they are (un)subscribed.  These two variables
1502 should, of course, be inside the relevant legal ranges.
1503
1504 @vindex gnus-keep-same-level
1505 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
1506 will only move to groups that are of the same level (or lower).  In
1507 particular, going from the last article in one group to the next group
1508 will go to the next group of the same level (or lower).  This might be
1509 handy if you want to read the most important groups before you read the
1510 rest.
1511
1512 @vindex gnus-group-default-list-level
1513 All groups with a level less than or equal to
1514 @code{gnus-group-default-list-level} will be listed in the group buffer
1515 by default.
1516
1517 @vindex gnus-group-use-permament-levels
1518 If @code{gnus-group-use-permament-levels} is non-@code{nil}, once you
1519 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
1520 use this level as the "work" level.
1521
1522 @node Marking Groups
1523 @section Marking Groups
1524 @cindex marking groups
1525
1526 If you want to perform some command on several groups, and they appear
1527 subsequently in the group buffer, you would normally just give a
1528 numerical prefix to the command.  Most group commands will then do your
1529 bidding on those groups.
1530
1531 However, if the groups are not in sequential order, you can still
1532 perform a command on several groups.  You simply mark the groups first
1533 with the process mark and then execute the command.
1534
1535 @table @kbd
1536
1537 @item #
1538 @kindex # (Group)
1539 @itemx M m
1540 @kindex M m (Group)
1541 @findex gnus-group-mark-group
1542 Set the mark on the current group (@code{gnus-group-mark-group}). 
1543
1544 @item M-#
1545 @kindex M-# (Group)
1546 @itemx < u
1547 @kindex M u (Group)
1548 @findex gnus-group-unmark-group
1549 Remove the mark from the current group
1550 (@code{gnus-group-unmark-group}). 
1551
1552 @item M w
1553 @kindex M w (Group)
1554 @findex gnus-group-mark-region
1555 Mark all groups between point and mark (@code{gnus-group-mark-region}). 
1556 @end table
1557
1558 Also @xref{Process/Prefix}.
1559
1560
1561 @node Foreign Groups
1562 @section Foreign Groups
1563 @cindex foreign groups
1564
1565 A @dfn{foreign group} is a group that is not read by the usual (or
1566 default) means.  It could be, for instance, a group from a different
1567 @sc{nntp} server, it could be a virtual group, or it could be your own
1568 personal mail group.
1569
1570 A foreign group (or any group, really) is specified by a @dfn{name} and
1571 a @dfn{select method}.  To take the latter first, a select method is a
1572 list where the first element says what backend to use (eg. @code{nntp},
1573 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
1574 name}.  There may be additional elements in the select method, where the
1575 value may have special meaning for the backend in question.
1576
1577 One could say that a select method defines a @dfn{virtual server}---so
1578 we do just that (@pxref{The Server Buffer}).
1579
1580 The @dfn{name} of the group is the name the backend will recognize the
1581 group as.
1582
1583 For instance, the group @samp{soc.motss} on the @sc{nntp} server
1584 @samp{some.where.edu} will have the name @samp{soc.motss} and select
1585 method @code{(nntp "some.where.edu")}.  Gnus will call this group, in
1586 all circumstances, @samp{nntp+some.where.edu:soc.motss}, even though the
1587 @code{nntp} backend just knows this group as @samp{soc.motss}.
1588
1589 Here are some commands for making and editing general foreign groups,
1590 and some commands to ease the creation of some special-purpose groups:
1591
1592 @table @kbd
1593 @item G m
1594 @kindex G m (Group)
1595 @findex gnus-group-make-group
1596 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
1597 for a name, a method and possibly an @dfn{address}.  For an easier way
1598 to subscribe to @sc{nntp} groups, @xref{Browse Foreign Server}.
1599
1600 @item G r
1601 @kindex G m (Group)
1602 @findex gnus-group-rename-group
1603 Rename the current group to something else
1604 (@code{gnus-group-rename-group}).  This is legal only on some groups --
1605 mail groups mostly.  This command might very well be quite slow on some
1606 backends. 
1607
1608 @item G e
1609 @kindex G e (Group)
1610 @findex gnus-group-edit-group-method
1611 Enter a buffer where you can edit the select method of the current
1612 group (@code{gnus-group-edit-group-method}).
1613
1614 @item G p
1615 @kindex G p (Group)
1616 @findex gnus-group-edit-group-parameters
1617 Enter a buffer where you can edit the group parameters
1618 (@code{gnus-group-edit-group-parameters}). 
1619
1620 @item G E
1621 @kindex G E (Group)
1622 @findex gnus-group-edit-group
1623 Enter a buffer where you can edit the group info
1624 (@code{gnus-group-edit-group}).
1625
1626 @item G d
1627 @kindex G d (Group)
1628 @findex gnus-group-make-directory-group
1629 Make a directory group.  You will be prompted for a directory name
1630 (@code{gnus-group-make-directory-group}).  
1631
1632 @item G h 
1633 @kindex G h (Group)
1634 @findex gnus-group-make-help-group
1635 Make the Gnus help group (@code{gnus-group-make-help-group}).
1636
1637 @item G a
1638 @kindex G a (Group)
1639 @findex gnus-group-make-archive-group
1640 @vindex gnus-group-archive-directory
1641 @vindex gnus-group-recent-archive-directory
1642 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
1643 default a group pointing to the most recent articles will be created
1644 (@code{gnus-group-recent-archibe-directory}), but given a prefix, a full
1645 group will be created from from @code{gnus-group-archive-directory}.
1646
1647 @item G k
1648 @kindex G k (Group)
1649 @findex gnus-group-make-kiboze-group
1650 Make a kiboze group.  You will be prompted for a name, for a regexp to
1651 match groups to be "included" in the kiboze group, and a series of
1652 strings to match on headers (@code{gnus-group-make-kiboze-group}).
1653
1654 @item G D
1655 @kindex G D (Group)
1656 @findex gnus-group-enter-directory
1657 Read a random directory as if with were a newsgroup with the
1658 @code{nneething} backend (@code{gnus-group-enter-directory}).
1659
1660 @item G f
1661 @kindex G f (Group)
1662 @findex gnus-group-make-doc-group
1663 Make a group based on some file or other
1664 (@code{gnus-group-make-doc-group}).  You will be prompted for a file
1665 name and a file type.  Currently supported types are @code{babyl},
1666 @code{mbox} and @code{digest}.
1667
1668 @item G DEL
1669 @kindex G DEL (Group)
1670 @findex gnus-group-delete-group
1671 This function will delete the current group
1672 (@code{gnus-group-delete-group}).  If given a prefix, this function will
1673 actually delete all the articles in the group, and forcibly remove the
1674 group itself from the face of the Earth.  Use a prefix only if you are
1675 sure of what you are doing.  
1676
1677 @item G V
1678 @kindex G V (Group)
1679 @findex gnus-group-make-empty-virtual
1680 Make a new, fresh, empty @code{nnvirtual} group
1681 (@code{gnus-group-make-empty-virtual}).
1682
1683 @item G v
1684 @kindex G v (Group)
1685 @findex gnus-group-add-to-virtual
1686 Add the current group to an @code{nnvirtual} group
1687 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
1688 @end table
1689
1690 The different methods all have their peculiarities, of course.
1691
1692 @menu
1693 * nntp::             Reading news from a different @sc{nntp} server.
1694 * nnspool::          Reading news from the local spool.
1695 * nnvirtual::        Combining articles from many groups.
1696 * nnkiboze::         Looking through parts of the newsfeed for articles.
1697 * nndir::            You can read a directory as if it was a newsgroup.
1698 * nneething::          Dired? Who needs dired?
1699 * nndoc::            Single files can be the basis of a group.
1700 * Reading Mail::     Reading your personal mail with Gnus.
1701 @end menu
1702
1703 @vindex gnus-activate-foreign-newsgroups
1704 If the @code{gnus-activate-foreign-newsgroups} is a positive number,
1705 Gnus will check all foreign groups with this level or lower at startup.
1706 This might take quite a while, especially if you subscribe to lots of
1707 groups from different @sc{nntp} servers.  It is @code{nil} by default,
1708 which means that you won't be told whether there are new articles in
1709 these groups.  How many unread articles there are will be determined
1710 when, or if, you decide to enter them.  You can also activate any group
1711 with @kbd{M-g} to see how many unread articles there are.
1712
1713 @node nntp
1714 @subsection nntp
1715 @cindex @sc{nntp}
1716
1717 Subscribing to a foreign group from an @sc{nntp} server is rather easy.
1718 You just specify @code{nntp} as method and the address of the @sc{nntp}
1719 server as the, uhm, address.
1720
1721 If the @sc{nntp} server is located at a non-standard port, setting the
1722 third element of the select method to this port number should allow you
1723 to connect to the right port.  You'll have to edit the group info for
1724 that (@pxref{Foreign Groups}).
1725
1726 The name of the foreign group can be the same as a native group.  In
1727 fact, you can subscribe to the same group from as many different servers
1728 you feel like.  There will be no name collisions.
1729
1730 The following variables can be used to create a virtual @code{nntp}
1731 server: 
1732
1733 @table @code
1734 @item nntp-server-opened-hook
1735 @vindex nntp-server-opened-hook
1736 @cindex @sc{mode reader}
1737 @cindex authinfo
1738 @cindex authentification
1739 @cindex nntp authentification
1740 @findex nntp-send-authinfo
1741 @findex nntp-send-mode-reader
1742 @code{nntp-server-opened-hook} is run after a connection has been made.
1743 It can be used to send commands to the @sc{nntp} server after it has
1744 been contacted.  By default is sends the command @samp{MODE READER} to
1745 the server with the @code{nntp-send-mode-reader} function.  Another
1746 popular function is @code{nntp-send-authinfo}, which will prompt you for
1747 an @sc{nntp} password and stuff.
1748
1749 @item nntp-maximum-request
1750 @vindex nntp-maximum-request
1751 If the @sc{nntp} server doesn't support @sc{nov} headers, this backend
1752 will collect headers by sending a series of @code{head} commands.  To
1753 speed things up, the backend sends lots of these commands without
1754 waiting for reply, and then reads all the replies.  This is controlled
1755 by the @code{nntp-maximum-request} variable, and is 400 by default.  If
1756 your network is buggy, you should set this to 1.
1757
1758 @item nntp-connection-timeout
1759 @vindex nntp-connection-timeout
1760 If you have lots of foreign @code{nntp} groups that you connect to
1761 regularly, you're sure to have problems with @sc{nntp} servers not
1762 responding properly, or being too loaded to reply within reasonable
1763 time.  This is can lead to awkward problems, which can be helped
1764 somewhat by setting @code{nntp-connection-timeout}.  This is an integer
1765 that says how many seconds the @code{nntp} backend should wait for a
1766 connection before giving up.  If it is @code{nil}, which is the default,
1767 no timeouts are done.
1768
1769 @item nntp-server-hook
1770 @vindex nntp-server-hook
1771 This hook is run as the last step when connecting to an @sc{nntp}
1772 server.
1773
1774 @c @findex nntp-open-rlogin
1775 @c @findex nntp-open-network-stream
1776 @c @item nntp-open-server-function
1777 @c @vindex nntp-open-server-function
1778 @c This function is used to connect to the remote system.  Two pre-made
1779 @c functions are @code{nntp-open-network-stream}, which is the default, and
1780 @c simply connects to some port or other on the remote system.  The other
1781 @c is @code{nntp-open-rlogin}, which does an rlogin on the remote system,
1782 @c and then does a telnet to the @sc{nntp} server available there.
1783 @c 
1784 @c @item nntp-rlogin-parameters
1785 @c @vindex nntp-rlogin-parameters
1786 @c If you use @code{nntp-open-rlogin} as the
1787 @c @code{nntp-open-server-function}, this list will be used as the
1788 @c parameter list given to @code{rsh}.
1789 @c 
1790 @c @item nntp-rlogin-user-name
1791 @c @vindex nntp-rlogin-user-name
1792 @c User name on the remote system when using the @code{rlogin} connect
1793 @c function. 
1794
1795 @item nntp-address
1796 @vindex nntp-address
1797 The address of the remote system running the @sc{nntp} server.
1798
1799 @item nntp-port-number
1800 @vindex nntp-port-number
1801 Port number to connect to when using the @code{nntp-open-network-stream}
1802 connect function.
1803
1804 @item nntp-buggy-select
1805 @vindex nntp-buggy-select
1806 Set this to non-@code{nil} if your select routine is buggy.
1807
1808 @item nntp-nov-is-evil 
1809 @vindex nntp-nov-is-evil 
1810 If the @sc{nntp} server does not support @sc{nov}, you could set this
1811 variable to @code{t}, but @code{nntp} usually checks whether @sc{nov}
1812 can be used automatically.
1813
1814 @item nntp-xover-commands
1815 @vindex nntp-xover-commands
1816 List of strings that are used as commands to fetch @sc{nov} lines from a
1817 server.  The default value of this variable is @code{("XOVER"
1818 "XOVERVIEW")}. 
1819
1820 @item nntp-nov-gap
1821 @vindex nntp-nov-gap
1822 @code{nntp} normally sends just one big request for @sc{nov} lines to
1823 the server.  The server responds with one huge list of lines.  However,
1824 if you have read articles 2-5000 in the group, and only want to read
1825 article 1 and 5001, that means that @code{nntp} will fetch 4999 @sc{nov}
1826 lines that you do not want, and will not use.  This variable says how
1827 big a gap between two consecutive articles is allowed to be before the
1828 @code{XOVER} request is split into several request.  Note that if your
1829 network is fast, setting this variable to a really small number means
1830 that fetching will probably be slower.  If this variable is @code{nil},
1831 @code{nntp} will never split requests.
1832
1833 @item nntp-prepare-server-hook
1834 @vindex nntp-prepare-server-hook
1835 A hook run before attempting to connect to an @sc{nntp} server.
1836
1837 @item nntp-async-number
1838 @vindex nntp-async-number
1839 How many articles should be pre-fetched when in asynchronous mode.  If
1840 this variable is @code{t}, @code{nntp} will pre-fetch all the articles
1841 that it can without bound.  If it is @code{nil}, no pre-fetching will be
1842 made.
1843
1844 @item nntp-warn-about-losing-connection
1845 @vindex nntp-warn-about-losing-connection
1846 If this variable is non-@code{nil}, some noise will be made when a
1847 server closes connection.
1848
1849
1850 @end table
1851
1852 @node nnspool
1853 @subsection nnspool
1854 @cindex @code{nnspool}
1855 @cindex news spool
1856
1857 Subscribing to a foreign group from the local spool is extremely easy,
1858 and might be useful, for instance, to speed up reading groups like
1859 @samp{alt.binaries.pictures.furniture}.
1860
1861 Anyways, you just specify @code{nnspool} as the method and @samp{""} (or
1862 anything else) as the address.
1863
1864 If you have access to a local spool, you should probably use that as the
1865 native select method (@pxref{Finding the News}).
1866
1867 @table @code
1868 @item nnspool-inews-program
1869 @vindex nnspool-inews-program
1870 Program used to post an article.
1871
1872 @item nnspool-inews-switches
1873 @vindex nnspool-inews-switches
1874 Parameters given to the inews program when posting an article. 
1875
1876 @item nnspool-spool-directory
1877 @vindex nnspool-spool-directory
1878 Where @code{nnspool} looks for the articles.  This is normally
1879 @file{/usr/spool/news/}.
1880
1881 @item nnspool-nov-directory 
1882 @vindex nnspool-nov-directory 
1883 Where @code{nnspool} will look for @sc{nov} files.  This is normally
1884 @file{/usr/spool/news/over.view/}.
1885
1886 @item nnspool-lib-dir
1887 @vindex nnspool-lib-dir
1888 Where the news lib dir is (@file{/usr/lib/news/} by default).
1889
1890 @item nnspool-active-file
1891 @vindex nnspool-active-file
1892 The path of the active file.
1893
1894 @item nnspool-newsgroups-file
1895 @vindex nnspool-newsgroups-file
1896 The path of the group description file.
1897
1898 @item nnspool-history-file
1899 @vindex nnspool-history-file
1900 The path of the news history file.
1901
1902 @item nnspool-active-times-file
1903 @vindex nnspool-active-times-file
1904 The path of the active date file.
1905
1906 @item nnspool-nov-is-evil
1907 @vindex nnspool-nov-is-evil
1908 If non-@code{nil}, @code{nnspool} won't try to use any @sc{nov} files
1909 that it finds.
1910
1911 @item nnspool-sift-nov-with-sed
1912 @vindex nnspool-sift-nov-with-sed
1913 If non-@code{nil}, which is the default, use @code{sed} to get the
1914 relevant portion from the overview file.  If nil, @code{nnspool} will
1915 load the entire file into a buffer and process it there.
1916
1917 @end table
1918
1919 @node nnvirtual
1920 @subsection nnvirtual
1921 @cindex @code{nnvirtual}
1922 @cindex virtual groups
1923
1924 An @dfn{nnvirtual group} is really nothing more than a collection of
1925 other groups.
1926
1927 For instance, if you are tired of reading many small group, you can
1928 put them all in one big group, and then grow tired of reading one
1929 big, unwieldy group.  The joys of computing!
1930
1931 You specify @code{nnvirtual} as the method.  The address should be a
1932 regexp to match component groups.
1933
1934 All marks in the virtual group will stick to the articles in the
1935 component groups.  So if you tick an article in a virtual group, the
1936 article will also be ticked in the component group from whence it came.
1937 (And vice versa---marks from the component groups will also be shown in
1938 the virtual group.)
1939
1940 Here's an example @code{nnvirtual} method that collects all Andrea Dworkin
1941 newsgroups into one, big, happy newsgroup:
1942
1943 @lisp
1944 (nnvirtual "^alt\\.fan\\.andrea-dworkin$\\|^rec\\.dworkin.*")
1945 @end lisp
1946
1947 The component groups can be native or foreign; everything should work
1948 smoothly, but if your computer explodes, it was probably my fault.
1949
1950 Collecting the same group from several servers might actually be a good
1951 idea if users have set the Distribution header to limit distribution.
1952 If you would like to read @samp{soc.motss} both from a server in Japan
1953 and a server in Norway, you could use the following as the group regexp:
1954
1955 @example
1956 "^nntp+some.server.jp:soc.motss$\\|^nntp+some.server.no:soc.motss$"
1957 @end example
1958
1959 This should work kinda smoothly---all articles from both groups should
1960 end up in this one, and there should be no duplicates.  Threading (and
1961 the rest) will still work as usual, but there might be problems with the
1962 sequence of articles.  Sorting on date might be an option here
1963 (@pxref{Selecting a Group}.
1964
1965 One limitation, however---all groups that are included in a virtual
1966 group has to be alive (i.e., subscribed or unsubscribed).  Killed or
1967 zombie groups can't be component groups for @code{nnvirtual} groups.
1968
1969 @node nnkiboze
1970 @subsection nnkiboze
1971 @cindex @code{nnkiboze}
1972 @cindex kibozing
1973
1974 @dfn{Kibozing} is defined by @sc{oed} as "grepping through (parts of)
1975 the news feed".  @code{nnkiboze} is a backend that will do this for you.  Oh
1976 joy!  Now you can grind any @sc{nntp} server down to a halt with useless
1977 requests!  Oh happiness!
1978
1979 The address field of the @code{nnkiboze} method is, as with @code{nnvirtual}, a regexp
1980 to match groups to be "included" in the @code{nnkiboze} group.  There most
1981 similarities between @code{nnkiboze} and @code{nnvirtual} ends.
1982
1983 In addition to this regexp detailing component groups, an @code{nnkiboze} group
1984 must have a score file to say what articles that are to be included in
1985 the group (@pxref{Scoring}).
1986
1987 @kindex M-x nnkiboze-generate-groups
1988 @findex nnkiboze-generate-groups
1989 You must run @kbd{M-x nnkiboze-generate-groups} after creating the
1990 @code{nnkiboze} groups you want to have.  This command will take time.  Lots of
1991 time.  Oodles and oodles of time.  Gnus has to fetch the headers from
1992 all the articles in all the components groups and run them through the
1993 scoring process to determine if there are any articles in the groups
1994 that are to be part of the @code{nnkiboze} groups.
1995
1996 Please limit the number of component groups by using restrictive
1997 regexps.  Otherwise your sysadmin may become annoyed with you, and the
1998 @sc{nntp} site may throw you off and never let you back in again.
1999 Stranger things have happened.
2000
2001 @code{nnkiboze} component groups do not have to be alive---they can be dead,
2002 and they can be foreign.  No restrictions.
2003
2004 @vindex nnkiboze-directory
2005 The generation of an @code{nnkiboze} group means writing two files in
2006 @code{nnkiboze-directory}, which is @file{~/News/} by default.  One
2007 contains the @sc{nov} header lines for all the articles in the group,
2008 and the other is an additional @file{.newsrc} file to store information
2009 on what groups that have been searched through to find component
2010 articles.
2011
2012 Articles that are marked as read in the @code{nnkiboze} group will have their
2013 @sc{nov} lines removed from the @sc{nov} file.
2014
2015 @node nndir
2016 @subsection nndir
2017 @cindex @code{nndir}
2018 @cindex directory groups
2019
2020 If you have a directory that has lots of articles in separate files in
2021 it, you might treat it as a newsgroup.  The files have to have numerical
2022 names, of course.
2023
2024 This might be an opportune moment to mention @code{ange-ftp}, that most
2025 wonderful of all wonderful Emacs packages.  When I wrote @code{nndir}, I
2026 didn't think much about it---a backend to read directories.  Big deal.
2027
2028 @code{ange-ftp} changes that picture dramatically.  For instance, if you
2029 enter @file{"/ftp@@sina.tcamc.uh.edu:/pub/emacs/ding-list/"} as the the
2030 directory name, ange-ftp will actually allow you to read this directory
2031 over at @samp{sina} as a newsgroup.  Distributed news ahoy!
2032
2033 @code{nndir} will use @sc{nov} files if they are present.
2034
2035 @code{nndir} is a "read-only" backend---you can't delete or expire
2036 articles with this method.  You can use @code{nnmh} or @code{nnml} for
2037 whatever you use @code{nndir} for, so you could switch to any of those
2038 methods if you feel the need to have a non-read-only @code{nndir}.
2039
2040 @node nneething
2041 @subsection nneething
2042 @cindex @code{nneething}
2043
2044 From the @code{nndir} backend (which reads a single spool-like
2045 directory), it's just a hop and a skip to @code{nneething}, which
2046 pretends that any random directory is a newsgroup. Strange, but true.
2047
2048 When @code{nneething} is presented with a directory, it will scan this
2049 directory and assign article numbers to each file. When you enter such a
2050 group, @code{nneething} must create "headers" that Gnus can use. After
2051 all, Gnus is a newsreader, in case you're forgetting. @code{nneething}
2052 does this in a two-step process. First, it snoops each file in question.
2053 If the file looks like an article (i.e., the first few lines look like
2054 headers), it will use this as the head. If this is just some random file
2055 without a head (eg. a C source file), @code{nneething} will cobble up a
2056 header out of thin air. It will use file ownership, name and date and do
2057 whatever it can with these elements.
2058
2059 All this should happen automatically for you, and you will be presented
2060 with something that looks very much like a newsgroup. Totally like a
2061 newsgroup, to be precise. If you select an article, it will be displayed
2062 in the article buffer, just as usual.
2063
2064 If you select a line that represents a directory, Gnus will pop you into
2065 a new summary buffer for this @code{nneething} group. And so on. You can
2066 traverse the entire disk this way, if you feel like, but remember that
2067 Gnus is not dired, really, and does not intend to be, either.
2068
2069 There are two overall modes to this action---ephemeral or solid. When
2070 doing the ephemeral thing (i.e., @kbd{G D} from the group buffer), Gnus
2071 will not store information on what files you have read, and what files
2072 are new, and so on. If you create a solid @code{nneething} group the
2073 normal way with @kbd{G m}, Gnus will store a mapping table between
2074 article numbers and file names, and you can treat this group like any
2075 other groups. When you activate a solid @code{nneething} group, you will
2076 be told how many unread articles it contains, etc., etc.
2077
2078 Some variables:
2079
2080 @table @code
2081 @item nneething-map-file-directory
2082 @vindex nneething-map-file-directory
2083 All the mapping files for solid @code{nneething} groups will be stored
2084 in this directory, which defaults to @file{~/.nneething/}.
2085
2086 @item nneething-exclude-files
2087 @vindex nneething-exclude-files
2088 All files that match this regexp will be ignored. Nice to use to exclude
2089 auto-save files and the like, which is what it does by default.
2090
2091 @item nneething-map-file
2092 @vindex nneething-map-file
2093 Name of the map files.
2094 @end table
2095
2096
2097 @node nndoc
2098 @subsection nndoc
2099 @cindex @code{nndoc}
2100 @cindex documentation group
2101 @cindex help group
2102
2103 @code{nndoc} is a cute little thing that will let you read a single file as a
2104 newsgroup.  Currently supported file types are @code{babyl}, @code{mbox}
2105 and @code{digest}. 
2106
2107 @code{nndoc} will not try to change the file or insert any extra headers into
2108 it---it will simply, like, let you use the file as the basis for a
2109 group.  And that's it.
2110
2111 Virtual server variables:
2112
2113 @table @code
2114 @item nndoc-article-type
2115 @vindex nndoc-article-type
2116 This should be one of @code{mbox}, @code{babyl} or @code{digest}. 
2117 @end table
2118
2119 @node Reading Mail
2120 @subsection Reading Mail
2121 @cindex reading mail
2122 @cindex mail
2123
2124 Reading mail with a newsreader---isn't that just plain WeIrD? But of
2125 course.
2126
2127 Gnus will read the mail spool when you activate a mail group.  The mail
2128 file is first copied to your home directory.  What happens after that
2129 depends on what format you want to store your mail in.
2130
2131 @menu
2132 * Creating Mail Groups::         How to create mail groups.
2133 * Fancy Mail Splitting::         Gnus can do hairy splitting of incoming mail.
2134 * Mail & Procmail::              Reading mail groups that procmail create.
2135 * Expiring Old Mail Articles::   Getting rid of unwanted mail.
2136 * Not Reading Mail::             Using mail backends for reading other files.
2137 * nnmbox::                       Using the (quite) standard Un*x mbox.
2138 * nnbabyl::                      Emacs programs use the rmail babyl format.
2139 * nnml::                         Store your mail in a private spool?
2140 * nnmh::                         An mhspool-like backend.
2141 * nnfolder::                     Having one file for each group.
2142 @end menu
2143
2144 @vindex nnmail-read-incoming-hook
2145 The mail backends all call @code{nnmail-read-incoming-hook} after
2146 reading new mail.  You can use this hook to notify any mail watch
2147 programs, if you want to.
2148
2149 @vindex nnmail-spool-file
2150 @code{nnmail-spool-file} says where to look for new mail.  If this
2151 variable is @code{nil}, the mail backends will never attempt to fetch
2152 mail by themselves.  It is quite likely that Gnus supports POP-mail.
2153 Set this variable to begin with the string @samp{po:}, and everything
2154 should go smoothly, even though I have never tested this.
2155
2156 @vindex nnmail-use-procmail
2157 If @code{nnmail-use-procmail} is non-@code{nil}, the mail backends will
2158 look in @code{nnmail-procmail-directory} for incoming mail.  All the
2159 files in that directory that have names ending in
2160 @code{gnus-procmail-suffix} will be considered incoming mailboxes, and
2161 will be searched for new mail.
2162
2163 @vindex nnmail-prepare-incoming-hook
2164 @code{nnmail-prepare-incoming-hook} is run in a buffer that holds all
2165 the new incoming mail, and can be used for, well, anything, really.
2166
2167 @vindex nnmail-tmp-directory
2168 @code{nnmail-tmp-directory} says where to move the incoming mail to
2169 while processing it.  This is usually done in the same directory that
2170 the mail backend inhabits (i.e., @file{~/Mail/}), but if this variable is
2171 non-@code{nil}, it will be used instead.
2172
2173 @vindex nnmail-movemail-program
2174 @code{nnmail-movemail-program} is executed to move mail from the user's
2175 inbox to her home directory. The default is @samp{"movemail"}.
2176
2177 @vindex nnmail-delete-incoming
2178 If @code{nnmail-delete-incoming} is non-@code{nil}, the mail backends
2179 will delete the temporary incoming file after splitting mail into the
2180 proper groups.  This is @code{nil} by default for reasons of security. 
2181
2182 @vindex nnmail-message-id-cache-length
2183 @vindex nnmail-message-id-cache-file
2184 @vindex nnmail-delete-duplicates
2185 @cindex duplicate mails
2186 If you are a member of a couple of mailing list, you will sometime
2187 receive two copies of the same mail. This can be quite annoying, so
2188 @code{nnmail} checks for and discards any duplicates it might find. To
2189 do this, it keeps a cache of old @code{Message-ID}s -
2190 @code{nnmail-message-id-cache-file}, which is @file{~/.nnmail-cache} by
2191 default. The approximate maximum number of @code{Message-ID}s stored
2192 there is controlled by the @code{nnmail-message-id-cache-length}
2193 variable, which is 1000 by default. (So 1000 @code{Message-ID}s will be
2194 stored.) If all this sounds scary to you, you can set
2195 @code{nnmail-delete-duplicates} to @code{nil} (which is what it is by
2196 default), and @code{nnmail} won't do any duplicate checking.
2197
2198 Here's a neat feature: If you know that the recipient reads her mail
2199 with Gnus, and that she has @code{nnmail-delete-duplicates} set to
2200 @code{t}, you can send her as many insults as you like, just by using a
2201 @code{Message-ID} of a mail that you know that she's already received.
2202 Think of all the fun! She'll never see any of it! Whee!
2203
2204 Gnus gives you all the opportunity you could possibly want for shooting
2205 yourself in the foot.  Let's say you create a group that will contain
2206 all the mail you get from your boss.  And then you accidentally
2207 unsubscribe from the group.  Gnus will still put all the mail from your
2208 boss in the unsubscribed group, and so, when your boss mails you "Have
2209 that report ready by Monday or you're fired!", you'll never see it and,
2210 come Tuesday, you'll still believe that you're gainfully employed while
2211 you really should be out collecting empty bottles to save up for next
2212 month's rent money.
2213
2214 @node Creating Mail Groups
2215 @subsubsection Creating Mail Groups
2216 @cindex creating mail groups
2217
2218 You can make Gnus read your personal, private, secret mail.
2219
2220 You should first set @code{gnus-secondary-select-methods} to, for
2221 instance, @code{((nnmbox ""))}.  When you start up Gnus, Gnus will ask
2222 this backend for what groups it carries (@samp{mail.misc} by default)
2223 and subscribe it the normal way.  (Which means you may have to look for
2224 it among the zombie groups, I guess, all depending on your
2225 @code{gnus-subscribe-newsgroup-method} variable.)
2226
2227 @vindex nnmail-split-methods
2228 Then you should set the variable @code{nnmail-split-methods} to specify
2229 how the incoming mail is to be split into groups.
2230
2231 @lisp
2232 (setq nnmail-split-methods
2233   '(("mail.junk" "^From:.*Lars Ingebrigtsen")
2234     ("mail.crazy" "^Subject:.*die\\|^Organization:.*flabby")
2235     ("mail.other" "")))
2236 @end lisp
2237
2238 This variable is a list of lists, where the first element of each of
2239 these lists is the name of the mail group (they do not have to be called
2240 something beginning with @samp{mail}, by the way), and the second
2241 element is a regular expression used on the header of each mail to
2242 determine if it belongs in this mail group.
2243
2244 The second element can also be a function.  In that case, it will be
2245 called narrowed to the headers with the first element of the rule as the
2246 argument.  It should return a non-@code{nil} value if it thinks that the
2247 mail belongs in that group.
2248
2249 The last of these groups should always be a general one, and the regular
2250 expression should @emph{always} be @samp{""} so that it matches any
2251 mails that haven't been matched by any of the other regexps.
2252
2253 If you like to tinker with this yourself, you can set this variable to a
2254 function of your choice. This function will be called without any
2255 arguments in a buffer narrowed to the headers of an incoming mail
2256 message. The function should return a list of groups names that it
2257 thinks should carry this mail message.
2258
2259 @vindex nnmail-crosspost
2260 The mail backends all support cross-posting.  If several regexps match,
2261 the mail will be "cross-posted" to all those groups.
2262 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
2263 that no articles are crossposted to the general (@samp{""}) group. 
2264
2265 @node Fancy Mail Splitting
2266 @subsubsection Fancy Mail Splitting
2267 @cindex mail splitting
2268 @cindex fancy mail splitting
2269
2270 @vindex nnmail-split-fancy
2271 @findex nnmail-split-fancy
2272 If the rather simple, standard method for specifying how to split mail
2273 doesn't allow you to do what you want, you can set
2274 @code{nnmail-split-methods} to @code{nnmail-split-fancy}.  Then you can
2275 play with the @code{nnmail-split-fancy} variable. 
2276
2277 Let's look at an example value of this variable first:
2278
2279 @lisp
2280 ;; Messages from the mailer daemon are not crossposted to any of
2281 ;; the ordinary groups.  Warnings are put in a separate group
2282 ;; from real errors.
2283 (| ("from" mail (| ("subject" "warn.*" "mail.warning")
2284                    "mail.misc"))
2285    ;; Non-error messages are crossposted to all relevant
2286    ;; groups, but we don't crosspost between the group for the
2287    ;; (ding) list and the group for other (ding) related mail.
2288    (& (| (any "ding@@ifi\\.uio\\.no" "ding.list")
2289          ("subject" "ding" "ding.misc"))
2290       ;; Other mailing lists...
2291       (any "procmail@@informatik\\.rwth-aachen\\.de" "procmail.list")
2292       (any "SmartList@@informatik\\.rwth-aachen\\.de" "SmartList.list")
2293       ;; People...
2294       (any "larsi@@ifi\\.uio\\.no" "people.Lars Magne Ingebrigtsen"))
2295    ;; Unmatched mail goes to the catch all group.
2296    "misc.misc"))")
2297 @end lisp
2298
2299 This variable has the format of a @dfn{split}.  A split is a (possibly)
2300 recursive structure where each split may contain other splits.  Here are
2301 the four possible split syntaxes:
2302
2303 @table @dfn
2304 @item GROUP 
2305 If the split is a string, that will be taken as a group name. 
2306 @item (FIELD VALUE SPLIT)
2307 If the split is a list, and the first element is a string, then that
2308 means that if header FIELD (a regexp) contains VALUE (also a regexp),
2309 then store the message as specified by SPLIT.
2310 @item (| SPLIT...)
2311 If the split is a list, and the first element is @code{|} (vertical
2312 bar), then process each SPLIT until one of them matches.  A SPLIT is
2313 said to match if it will cause the mail message to be stored in one or
2314 more groups.
2315 @item (& SPLIT...)
2316 If the split is a list, and the first element is @code{&}, then process
2317 all SPLITs in the list.
2318 @end table
2319
2320 In these splits, FIELD must match a complete field name.  VALUE must
2321 match a complete word according to the fundamental mode syntax table.
2322 You can use @code{.*} in the regexps to match partial field names or
2323 words.
2324
2325 @vindex nnmail-split-abbrev-alist
2326 FIELD and VALUE can also be lisp symbols, in that case they are expanded
2327 as specified by the variable @code{nnmail-split-abbrev-alist}.  This is
2328 an alist of cons cells, where the car of the cells contains the key, and
2329 the cdr contains a string.
2330
2331 @node Mail & Procmail
2332 @subsubsection Mail & Procmail
2333 @cindex procmail
2334
2335 Many people use @code{procmail} to split incoming mail into groups.  If
2336 you do that, you should set @code{nnmail-spool-file} to @code{procmail}
2337 to ensure that the mail backends never ever try to fetch mail by
2338 themselves.
2339
2340 This also means that you probably don't want to set
2341 @code{nnmail-split-methods} either, which has some, perhaps, unexpected
2342 side effects.
2343
2344 When a mail backend is queried for what groups it carries, it replies
2345 with the contents of that variable, along with any groups it has figured
2346 out that it carries by other means.  None of the backends (except
2347 @code{nnmh}) actually go out to the disk and check what groups actually
2348 exist.  (It's not trivial to distinguish between what the user thinks is
2349 a basis for a newsgroup and what is just a plain old file or directory.)
2350
2351 This means that you have to tell Gnus (and the backends) what groups
2352 exist by hand.
2353
2354 Let's take the @code{nnmh} backend as an example. 
2355
2356 The folders are located in @code{nnmh-directory}, say, @file{~/Mail/}.
2357 There are three folders, @file{foo}, @file{bar} and @file{mail.baz}.
2358
2359 Go to the group buffer and type @kbd{G m}.  When prompted, answer
2360 @samp{foo} for the name and @samp{nnmh} for the method.  Repeat
2361 twice for the two other groups, @samp{bar} and @samp{mail.baz}.  Be sure
2362 to include all your mail groups.
2363
2364 That's it.  You are now set to read your mail.  An active file for this
2365 method will be created automatically.
2366
2367 @vindex nnmail-procmail-suffix
2368 @vindex nnmail-procmail-directory
2369 If you use @code{nnfolder} or any other backend that store more than a
2370 single article in each file, you should never have procmail add mails to
2371 the file that Gnus sees.  Instead, procmail should put all incoming mail
2372 in @code{nnmail-procmail-directory}.  To arrive at the file name to put
2373 the incoming mail in, append @code{nnmail-procmail-suffix} to the group
2374 name.  The mail backends will read the mail from these files.
2375
2376 @vindex nnmail-resplit-incoming
2377 When Gnus reads a file called @file{mail.misc.spool}, this mail will be
2378 put in the @code{mail.misc}, as one would expect.  However, if you want
2379 Gnus to split the mail the normal way, you could set
2380 @code{nnmail-resplit-incoming} to @code{t}.
2381
2382 @vindex nnmail-keep-last-article
2383 If you use @code{procmail} to split things directory into an @code{nnmh}
2384 directory (which you shouldn't do), you should set
2385 @code{nnmail-keep-last-article} to non-@code{nil} to prevent Gnus from
2386 ever expiring the final article in a mail newsgroup. This is quite,
2387 quite important.
2388
2389
2390 @node Expiring Old Mail Articles
2391 @subsubsection Expiring Old Mail Articles
2392 @cindex article expiry
2393
2394 Traditional mail readers have a tendency to remove mail articles when
2395 you mark them as read, in some way.  Gnus takes a fundamentally
2396 different approach to mail reading.
2397
2398 Gnus basically considers mail just to be news that has been received in
2399 a rather peculiar manner.  It does not think that it has the power to
2400 actually change the mail, or delete any mail messages.  If you enter a
2401 mail group, and mark articles as "read", or kill them in some other
2402 fashion, the mail articles will still exist on the system.  I repeat:
2403 Gnus will not delete your old, read mail.  Unless you ask it to, of
2404 course.
2405
2406 To make Gnus get rid of your unwanted mail, you have to mark the
2407 articles as @dfn{expirable}.  This does not mean that the articles will
2408 disappear right away, however.  In general, a mail article will be
2409 deleted from your system if, 1) it is marked as expirable, AND 2) it is
2410 more than one week old.  If you do not mark an article as expirable, it
2411 will remain on your system until hell freezes over.  This bears
2412 repeating one more time, with some spurious capitalizations: IF you do
2413 NOT mark articles as EXPIRABLE, Gnus will NEVER delete those ARTICLES.
2414
2415 @vindex gnus-auto-expirable-newsgroups
2416 You do not have to mark articles as expirable by hand.  Groups that
2417 match the regular expression @code{gnus-auto-expirable-newsgroups} will
2418 have all articles that you read marked as expirable automatically.  All
2419 articles that are marked as expirable have an @samp{E} in the first
2420 column in the summary buffer.
2421
2422 Let's say you subscribe to a couple of mailing lists, and you want the
2423 articles you have read to disappear after a while:
2424
2425 @lisp
2426 (setq gnus-auto-expirable-newsgroups 
2427       "mail.nonsense-list\\|mail.nice-list")
2428 @end lisp
2429
2430 Another way to have auto-expiry happen is to have the element
2431 @code{auto-expire} in the select method of the group. 
2432
2433 @vindex nnmail-expiry-wait
2434 The @code{nnmail-expiry-wait} variable supplies the default time an
2435 expirable article has to live.  The default is seven days.
2436
2437 Gnus also supplies a function that lets you fine-tune how long articles
2438 are to live, based on what group they are in.  Let's say you want to
2439 have one month expiry period in the @samp{mail.private} group, a one day
2440 expiry period in the @samp{mail.junk} group, and a six day expiry period
2441 everywhere else:
2442
2443 @lisp
2444 (setq nnmail-expiry-wait-function
2445       (lambda (group)
2446        (cond ((string= group "mail.private")
2447                31)
2448              ((string= group "mail.junk")
2449                1)
2450              (t
2451                6))))
2452 @end lisp
2453
2454 @vindex nnmail-keep-last-article
2455 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never
2456 expire the final article in a mail newsgroup.  This is to make life
2457 easier for procmail users.
2458
2459 @vindex gnus-total-expirable-newsgroups
2460 By the way, that line up there about Gnus never expiring non-expirable
2461 articles is a lie.  If you put @code{total-expire} in the group
2462 parameters, articles will not be marked as expirable, but all read
2463 articles will be put through the expiry process.  Use with extreme
2464 caution.  Even more dangerous is the
2465 @code{gnus-total-expirable-newsgroups} variable.  All groups that match
2466 this regexp will have all read articles put through the expiry process,
2467 which means that @emph{all} old mail articles in the groups in question
2468 will be deleted after a while.  Use with extreme caution, and don't come
2469 crying to me when you discover that the regexp you used matched the
2470 wrong group and all your important mail has disappeared.  Be a
2471 @emph{man}!  Or a @emph{woman}!  Whatever you feel more comfortable
2472 with!  So there!
2473
2474
2475 @node Not Reading Mail
2476 @subsubsection Not Reading Mail
2477
2478 If you start using any of the mail backends, they have the annoying
2479 habit of assuming that you want to read mail with them.  This might not
2480 be unreasonable, but it might not be what you want.
2481
2482 If you set @code{nnmail-spool-file} to @code{nil}, none of the backends
2483 will ever attempt to read incoming mail, which should help.
2484
2485 @vindex nnbabyl-get-new-mail
2486 @vindex nnmbox-get-new-mail
2487 @vindex nnml-get-new-mail
2488 @vindex nnmh-get-new-mail
2489 @vindex nnfolder-get-new-mail
2490 This might be too much, if, for instance, you are reading mail quite
2491 happily with @code{nnml} and just want to peek at some old @sc{rmail}
2492 file you have stashed away with @code{nnbabyl}.  All backends have
2493 variables called backend-@code{get-new-mail}.  If you want to disable
2494 the @code{nnbabyl} mail reading, you edit the virtual server for the
2495 group to have a setting where @code{nnbabyl-get-new-mail} to @code{nil}.
2496
2497 All the mail backends will call @code{nn}*@code{-prepare-save-mail-hook}
2498 narrowed to the article to be saved before saving it when reading
2499 incoming mail.
2500
2501 @node nnmbox
2502 @subsubsection nnmbox
2503 @cindex @code{nnmbox}
2504 @cindex unix mail box
2505
2506 @vindex nnmbox-active-file
2507 @vindex nnmbox-mbox-file
2508 The @dfn{nnmbox} backend will use the standard Un*x mbox file to store
2509 mail.  @code{nnmbox} will add extra headers to each mail article to say
2510 which group it belongs in.
2511
2512 Virtual server settings:
2513
2514 @table @code
2515 @item nnmbox-mbox-file
2516 @vindex nnmbox-mbox-file
2517 The name of the mail box in the user's home directory. 
2518
2519 @item nnmbox-active-file
2520 @vindex nnmbox-active-file
2521 The name of the active file for the mail box.
2522
2523 @item nnmbox-get-new-mail
2524 @vindex nnmbox-get-new-mail
2525 If non-@code{nil}, @code{nnmbox} will read incoming mail and split it
2526 into groups.
2527 @end table
2528
2529 @node nnbabyl
2530 @subsubsection nnbabyl
2531 @cindex @code{nnbabyl}
2532 @cindex rmail mbox
2533
2534 @vindex nnbabyl-active-file
2535 @vindex nnbabyl-mbox-file
2536 The @dfn{nnbabyl} backend will use a babyl mail box (aka. @dfn{rmail
2537 mbox}) to store mail. @code{nnbabyl} will add extra headers to each mail
2538 article to say which group it belongs in.
2539
2540 Virtual server settings:
2541
2542 @table @code
2543 @item nnbabyl-mbox-file
2544 @vindex nnbabyl-mbox-file
2545 The name of the rmail mbox file.
2546
2547 @item nnbabyl-active-file
2548 @vindex nnbabyl-active-file
2549 The name of the active file for the rmail box.
2550
2551 @item nnbabyl-get-new-mail
2552 @vindex nnbabyl-get-new-mail
2553 If non-@code{nil}, @code{nnbabyl} will read incoming mail. 
2554 @end table
2555
2556 @node nnml
2557 @subsubsection nnml
2558 @cindex @code{nnml}
2559 @cindex mail @sc{nov} spool
2560
2561 The @dfn{nnml} spool mail format isn't compatible with any other known
2562 format.  It should be used with some caution.
2563
2564 @vindex nnml-directory
2565 If you use this backend, Gnus will split all incoming mail into files;
2566 one file for each mail, and put the articles into the correct
2567 directories under the directory specified by the @code{nnml-directory}
2568 variable.  The default value is @file{~/Mail/}.
2569
2570 You do not have to create any directories beforehand; Gnus will take
2571 care of all that.
2572
2573 If you have a strict limit as to how many files you are allowed to store
2574 in your account, you should not use this backend.  As each mail gets its
2575 own file, you might very well occupy thousands of inodes within a few
2576 weeks.  If this is no problem for you, and it isn't a problem for you
2577 having your friendly systems administrator walking around, madly,
2578 shouting "Who is eating all my inodes?! Who? Who!?!", then you should
2579 know that this is probably the fastest format to use.  You do not have
2580 to trudge through a big mbox file just to read your new mail.
2581
2582 @code{nnml} is probably the slowest backend when it comes to article
2583 splitting.  It has to create lots of files, and it also generates
2584 @sc{nov} databases for the incoming mails.  This makes is the fastest
2585 backend when it comes to reading mail.
2586
2587 Virtual server settings:
2588
2589 @table @code
2590 @item nnml-directory
2591 @vindex nnml-directory
2592 All @code{nnml} directories will be placed under this directory. 
2593
2594 @item nnml-active-file
2595 @vindex nnml-active-file
2596 The active file for the @code{nnml} server.
2597
2598 @item nnml-newsgroups-file
2599 @vindex nnml-newsgroups-file
2600 The @code{nnml} group description file.
2601
2602 @item nnml-get-new-mail
2603 @vindex nnml-get-new-mail
2604 If non-@code{nil}, @code{nnml} will read incoming mail.
2605
2606 @item nnml-nov-is-evil
2607 @vindex nnml-nov-is-evil
2608 If non-@code{nil}, this backend will ignore any @sc{nov} files.  
2609
2610 @item nnml-nov-file-name
2611 @vindex nnml-nov-file-name
2612 The name of the @sc{nov} files.  The default is @file{.overview}. 
2613
2614 @end table
2615
2616 @findex nnml-generate-nov-databases
2617 If your @code{nnml} groups and @sc{nov} files get totally out of whack,
2618 you can do a complete update by typing @kbd{M-x
2619 nnml-generate-nov-databases}.  This command will trawl through the
2620 entire @code{nnml} hierarchy, looking at each and every article, so it
2621 might take a while to complete.
2622
2623 @node nnmh
2624 @subsubsection nnmh
2625 @cindex @code{nnmh}
2626 @cindex mh-e mail spool
2627
2628 @code{nnmh} is just like @code{nnml}, except that is doesn't generate
2629 @sc{nov} databases and it doesn't keep an active file.  This makes
2630 @code{nnmh} a @emph{much} slower backend than @code{nnml}, but it also
2631 makes it easier to write procmail scripts for.
2632
2633 Virtual server settings:
2634
2635 @table @code
2636 @item nnmh-directory
2637 @vindex nnmh-directory
2638 All @code{nnmh} directories will be located under this directory.
2639
2640 @item nnmh-get-new-mail
2641 @vindex nnmh-get-new-mail
2642 If non-@code{nil}, @code{nnmh} will read incoming mail.
2643
2644 @item nnmh-be-safe
2645 @vindex nnmh-be-safe
2646 If non-@code{nil}, @code{nnmh} will go to ridiculous lengths to make
2647 sure that the articles in the folder is actually what Gnus think they
2648 are.  It will check date stamps, and stat everything in sight, so
2649 setting this to @code{t} will mean a serious slow-down.  If you never
2650 use anything by Gnus to read the @code{nnmh} articles, you do not have to set
2651 this variable to @code{t}. 
2652 @end table
2653
2654 @node nnfolder
2655 @subsubsection nnfolder
2656 @cindex @code{nnfolder}
2657 @cindex mbox folders
2658
2659 @code{nnfolder} is a backend for storing each mail group in a separate
2660 file.  Each file is in the standard Un*x mbox format.  @code{nnfolder}
2661 will add extra headers to keep track of article numbers and arrival
2662 dates.
2663
2664 Virtual server settings:
2665
2666 @table @code
2667 @item nnfolder-directory
2668 @vindex nnfolder-directory
2669 All the @code{nnfolder} mail boxes will be stored under this directory. 
2670
2671 @item nnfolder-active-file
2672 @vindex nnfolder-active-file
2673 The name of the active file.
2674
2675 @item nnfolder-newsgroups-file
2676 @vindex nnfolder-newsgroups-file
2677 The name of the group description file.
2678
2679 @item nnfolder-get-new-mail
2680 @vindex nnfolder-get-new-mail
2681 If non-@code{nil}, @code{nnfolder} will read incoming mail.
2682 @end table
2683
2684
2685 @node Group Parameters
2686 @section Group Parameters
2687 @cindex group parameters
2688
2689 Gnus stores all information on a group in a list that is usually known
2690 as the @dfn{group info}.  This list has from three to six elements.
2691 Here's an example info.
2692
2693 @lisp
2694 ("nnml:mail.ding" 3 ((1 . 232) 244 (256 . 270)) ((tick 246 249))
2695                   (nnml "private") ((to-address . "ding@@ifi.uio.no")))
2696 @end lisp
2697
2698 The first element is the @dfn{group name}, as Gnus knows the group,
2699 anyway.  The second element is the @dfn{subscription level}, which
2700 normally is a small integer.  The third element is a list of ranges of
2701 read articles.  The fourth element is a list of lists of article marks
2702 of various kinds.  The fifth element is the select method (or virtual
2703 server, if you like).  The sixth element is a list of @dfn{group
2704 parameters}, which is what this section is about.
2705
2706 Any of the last three elements may be missing if they are not required.
2707 In fact, the vast majority of groups will normally only have the first
2708 three elements, which saves quite a lot of cons cells.
2709
2710 The group parameters store information local to a particular group:
2711
2712 @table @code
2713 @item to-address
2714 @cindex to-address
2715 If the group parameter list contains an element that looks like
2716 @samp{(to-address .  "some@@where.com")}, that address will be used by
2717 the backend when doing followups and posts.  This is primarily useful in
2718 mail groups that represent mailing lists.  You just set this address to
2719 whatever the list address is.
2720
2721 This trick will actually work whether the group is foreign or not.
2722 Let's say there's a group on the server that is called @samp{fa.4ad-l}.
2723 This is a real newsgroup, but the server has gotten the articles from a
2724 mail-to-news gateway.  Posting directly to this group is therefore
2725 impossible---you have to send mail to the mailing list address instead.
2726 Also @xref{Mail & Post}. 
2727
2728 @item to-group
2729 @cindex to-group
2730 If the group parameter list contains an element like @code{(to-group
2731 . "some.group.name")}, all posts will be sent to that group.
2732
2733 @item topic
2734 @cindex topic
2735 If the group parameter list contains an element like @code{(topic
2736 . "some-topic")}, the group will become a member of the topic in
2737 question (@pxref{Group Topics}). 
2738
2739 @item auto-expire
2740 @cindex auto-expire
2741 If this symbol is present in the group parameter list, all articles that
2742 are read will be marked as expirable.  For an alternative approach,
2743 @xref{Expiring Old Mail Articles}.
2744
2745 @item total-expire
2746 @cindex total-expire
2747 If this symbol is present, all read articles will be put through the
2748 expiry process, even if they are not marked as expirable.  Use with
2749 caution. 
2750
2751 @item @var{(variable form)}
2752 You can use the group parameters to set variables local to the group you
2753 are entering.  Say you want to turn threading off in
2754 @samp{news.answers}.  You'd then put @code{(gnus-show-threads nil)} in
2755 the group parameters of that group.  @code{gnus-show-threads} will be
2756 made into a local variable in the summary buffer you enter, and the form
2757 @code{nil} will be @code{eval}ed there.  
2758
2759 This can also be used as a group-specific hook function, if you'd like.
2760 If you want to hear a beep when you enter the group
2761 @samp{alt.binaries.pictures.furniture}, you could put something like
2762 @code{(dummy-variable (ding))} in the parameters of that group.
2763 @code{dummy-variable} will be set to the result of the @code{(ding)}
2764 form, but who cares?
2765
2766 @end table
2767
2768 If you want to change the group info you can use the @kbd{G E} command
2769 to enter a buffer where you can edit it.
2770
2771 You usually don't want to edit the entire group info, so you'd be better
2772 off using the @kbd{G p} command to just edit the group parameters.
2773
2774 @node Listing Groups
2775 @section Listing Groups
2776 @cindex group listing
2777
2778 These commands all list various slices of the groups that are available.
2779
2780 @table @kbd
2781
2782 @item l
2783 @itemx A s
2784 @kindex A s (Group)
2785 @kindex l (Group)
2786 @findex gnus-group-list-groups
2787 List all groups that have unread articles
2788 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
2789 command will list only groups of level ARG and lower.  By default, it
2790 only lists groups of level five or lower (i.e., just subscribed groups).
2791
2792 @item L
2793 @itemx A u
2794 @kindex A u (Group)
2795 @kindex L (Group)
2796 @findex gnus-group-list-all-groups
2797 List all groups, whether they have unread articles or not
2798 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
2799 this command will list only groups of level ARG and lower.  By default,
2800 it lists groups of level seven or lower (i.e., just subscribed and
2801 unsubscribed groups).
2802
2803 @item A k
2804 @kindex A k (Group)
2805 @findex gnus-group-list-killed
2806 List all killed groups (@code{gnus-group-list-killed}).
2807
2808 @item A z
2809 @kindex A z (Group)
2810 @findex gnus-group-list-zombies
2811 List all zombie groups (@code{gnus-group-list-zombies}).
2812
2813 @item A m
2814 @kindex A m (Group)
2815 @findex gnus-group-list-matching
2816 List all subscribed groups with unread articles that match a regexp
2817 (@code{gnus-group-list-matching}). 
2818
2819 @item A M
2820 @kindex A M (Group)
2821 @findex gnus-group-list-all-matching
2822 List groups that match a regexp (@code{gnus-group-list-all-matching}).
2823
2824 @item A A
2825 @kindex A A (Group)
2826 @findex gnus-group-list-active
2827 List absolutely all groups that are in the active file(s) of the
2828 server(s) you are connected to (@code{gnus-group-list-active}).  This
2829 might very well take quite a while.  It might actually be a better idea
2830 to do a @kbd{A m} to list all matching, and just give @samp{.} as the
2831 thing to match on.
2832
2833 @end table
2834
2835 @node Group Maintenance
2836 @section Group Maintenance
2837 @cindex bogus groups
2838
2839 @table @kbd
2840 @item b
2841 @kindex b (Group)
2842 @findex gnus-group-check-bogus-groups
2843 Find bogus groups and delete them
2844 (@code{gnus-group-check-bogus-groups}).
2845 @item F
2846 @kindex F (Group)
2847 @findex gnus-find-new-newsgroups
2848 Find new groups and process them (@code{gnus-find-new-newsgroups}).
2849 @item C-c C-x
2850 @kindex C-c C-x (Group)
2851 @findex gnus-group-expire-articles
2852 Run all expirable articles in the current group through the expiry
2853 process (if any) (@code{gnus-group-expire-articles}).
2854
2855 @item C-c M-C-x
2856 @kindex C-c M-C-x (Group)
2857 @findex gnus-group-expire-all-groups
2858 Run all articles in all groups through the expiry process
2859 (@code{gnus-group-expire-all-groups}).
2860
2861 @item C-c C-s
2862 @kindex C-c C-s (Group)
2863 @findex gnus-group-sort-groups
2864 @vindex gnus-group-sort-function
2865 Sort the groups according to the function given by the
2866 @code{gnus-group-sort-function} variable
2867 (@code{gnus-group-sort-groups}).  Available sorting functions include:
2868
2869 @table @code
2870
2871 @item gnus-group-sort-by-alphabet
2872 @findex gnus-group-sort-by-alphabet
2873 Sort the group names alphabetically.  This is the default.
2874
2875 @item gnus-group-sort-by-level
2876 @findex gnus-group-sort-by-level
2877 Sort by group level.
2878
2879 @item gnus-group-sort-by-unread
2880 @findex gnus-group-sort-by-unread
2881 Sort by number of unread articles.
2882
2883 @item gnus-group-sort-by-method
2884 @findex gnus-group-sort-by-method
2885 Sort by alphabetically on the select method.
2886
2887 @end table
2888
2889 @code{gnus-group-sort-function} can also be a list of sorting
2890 functions.  In that case, the most significant sort key function must be
2891 the last one.
2892 @end table
2893
2894 @node Browse Foreign Server
2895 @section Browse Foreign Server
2896 @cindex foreign servers
2897 @cindex browsing servers
2898
2899 @table @kbd
2900 @item B
2901 @kindex B (Group)
2902 @findex gnus-group-browse-foreign-server
2903 You will be queried for a select method and a server name.  Gnus will
2904 then attempt to contact this server and let you browse the groups there
2905 (@code{gnus-group-browse-foreign-server}).
2906 @end table
2907
2908 @findex gnus-browse-server-mode
2909 A new buffer with a list of available groups will appear.  This buffer
2910 will be use the @code{gnus-browse-server-mode}.  This buffer looks a bit
2911 (well, a lot) like a normal group buffer, but with one major difference
2912 - you can't enter any of the groups.  If you want to read any of the
2913 news available on that server, you have to subscribe to the groups you
2914 think may be interesting, and then you have to exit this buffer.  The
2915 new groups will be added to the group buffer, and then you can read them
2916 as you would any other group.
2917
2918 Future versions of Gnus may possibly permit reading groups straight from
2919 the browse buffer.
2920
2921 Here's a list of keystrokes available in the browse mode:
2922
2923 @table @kbd
2924 @item n
2925 @kindex n (Browse)
2926 @findex gnus-group-next-group
2927 Go to the next group (@code{gnus-group-next-group}).
2928
2929 @item p
2930 @kindex p (Browse)
2931 @findex gnus-group-prev-group
2932 Go to the previous group (@code{gnus-group-prev-group}).
2933
2934 @item SPC
2935 @kindex SPC (Browse)
2936 @findex gnus-browse-read-group
2937 Enter the current group and display the first article
2938 (@code{gnus-browse-read-group}). 
2939
2940 @item RET
2941 @kindex RET (Browse)
2942 @findex gnus-browse-select-group
2943 Enter the current group (@code{gnus-browse-select-group}). 
2944
2945 @item u
2946 @kindex u (Browse)
2947 @findex gnus-browse-unsubscribe-current-group
2948 Unsubscribe to the current group, or, as will be the case here,
2949 subscribe to it (@code{gnus-browse-unsubscribe-current-group}). 
2950
2951 @item l
2952 @itemx q
2953 @kindex q (Browse)
2954 @kindex l (Browse)
2955 @findex gnus-browse-exit
2956 Exit browse mode (@code{gnus-browse-exit}).
2957
2958 @item ?
2959 @kindex ? (Browse)
2960 @findex gnus-browse-describe-briefly
2961 Describe browse mode briefly (well, there's not much to describe, is
2962 there) (@code{gnus-browse-describe-briefly}).
2963 @end table
2964
2965 @node Exiting Gnus
2966 @section Exiting Gnus
2967 @cindex exiting Gnus
2968
2969 Yes, Gnus is ex(c)iting.
2970
2971 @table @kbd
2972 @item z
2973 @kindex z (Group)
2974 @findex gnus-group-suspend
2975 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
2976 but it kills all buffers except the Group buffer.  I'm not sure why this
2977 is a gain, but then who am I to judge?
2978 @item q
2979 @kindex q (Group)
2980 @findex gnus-group-exit
2981 Quit Gnus (@code{gnus-group-exit}).
2982 @item Q
2983 @kindex Q (Group)
2984 @findex gnus-group-quit
2985 Quit Gnus without saving any startup files (@code{gnus-group-quit}).
2986 @end table
2987
2988 @vindex gnus-exit-gnus-hook
2989 @vindex gnus-suspend-gnus-hook
2990 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
2991 @code{gnus-exit-gnus-hook} is called when you quit Gnus.
2992
2993 @findex gnus-unload
2994 @cindex unloading
2995 If you wish to completely unload Gnus and all its adherents, you can use
2996 the @code{gnus-unload} command.  This command is also very handy when
2997 trying to custoize meta-variables.
2998
2999 Note:
3000
3001 @quotation
3002 Miss Lisa Cannifax, while sitting in English class, feels her feet go
3003 numbly heavy and herself fall into a hazy trance as the boy sitting
3004 behind her drew repeated lines with his pencil across the back of her
3005 plastic chair.
3006 @end quotation
3007
3008
3009 @node Group Topics
3010 @section Group Topics
3011 @cindex topics
3012
3013 If you read lots and lots of groups, it might be convenient to group
3014 them according to topics.  You put your Emacs groups over here, your sex
3015 groups over there, and the rest (what, two groups or so?) you put in
3016 some misc section that you never bother with anyway.
3017
3018 To get this @emph{fab} functionality, you set
3019 @code{gnus-group-prepare-function} to @code{gnus-group-prepare-topics}.
3020 Go ahead, just try it.  I'll still be here when you get back.  La de
3021 dum...  Nice tune, that... la la la...  What, you're back? Yes, and now
3022 press @kbd{l}.  There.  All your groups are now listed under
3023 @samp{misc}.  Doesn't that make you feel all warm and fuzzy?  Hot and
3024 bothered?
3025
3026 @vindex gnus-group-topics
3027 To get an even more exciting division, you have to fiddle with
3028 @code{gnus-group-topics}.  That is an alist where each entry looks like
3029 this: 
3030
3031 @lisp
3032 (TOPIC REGEXP SHOW)
3033 @end lisp
3034
3035 As you've already guessed (only geniï read manuals anyway), all
3036 groups that match @var{regexp} gets put into a section called
3037 @var{topic}.  If @var{show} is non-@code{nil}, it overrides
3038 @code{gnus-group-topic-topics-only}.  In specific, if @var{show} is
3039 @code{t}, all groups with this topic are always shown, and if it is a
3040 number, these groups are never shown.
3041
3042 @vindex gnus-group-topic-topics-only
3043 Whoo, this is complicated.  If @code{gnus-group-topic-topics-only} is
3044 @code{nil}, all groups and topics will be listed, as you would expect.
3045 If this variable is non-@code{nil}, only the topics will be listed, and
3046 the groups will not be listed. This makes the group buffer much shorter,
3047 I'm sure you'll agree.  This is all modified on a topic-by-topic basis
3048 by the @var{show} parameter.   It makes perfect sense, really.
3049
3050 @vindex gnus-group-topic-face
3051 Topics are shown with @code{gnus-group-topic-face}.
3052
3053 @vindex{gnus-topic-unique}
3054 If @code{gnus-topic-unique} is non-@code{nil}, each group will be member
3055 of (tops) one topic each.  If this is @code{nil}, each group might end
3056 up being a member of several topics.
3057
3058 You can also put a @code{topic} in the group parameters (@pxref{Group
3059 Parameters}). 
3060
3061 Now, if you select a topic, if will fold/unfold that topic, which is
3062 really neat, I think.
3063
3064 Here's an example @code{gnus-group-topics}:
3065
3066 @lisp
3067 (("Emacs - the Spice of Life" "^gnu.emacs\\|comp.emacs" t)
3068  ("Alternativeness" "^alt" 0)
3069  ("Hard Stuff" "^comp" nil)
3070  ("The Rest" "." nil))
3071 @end lisp
3072
3073
3074 @node Misc Group Stuff
3075 @section Misc Group Stuff
3076
3077 @table @kbd
3078
3079 @item g
3080 @kindex g (Group)
3081 @findex gnus-group-get-new-news
3082 Check the server(s) for new articles.  If the numerical prefix is used,
3083 this command will check only groups of level @var{arg} and lower
3084 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
3085 command will force a total rereading of the active file(s) from the
3086 backend(s).
3087
3088 @item M-g
3089 @kindex M-g (Group)
3090 @findex gnus-group-get-new-news-this-group
3091 Check whether new articles have arrived in the current group
3092 (@code{gnus-group-get-new-news-this-group}).
3093
3094 @item ^
3095 @kindex ^ (Group)
3096 @findex gnus-group-enter-server-mode
3097 Enter the server buffer (@code{gnus-group-enter-server-mode}). @xref{The
3098 Server Buffer}.
3099
3100 @item M-f
3101 @kindex M-f (Group)
3102 @findex gnus-group-fetch-faq
3103 Try to fetch the FAQ for the current group
3104 (@code{gnus-group-fetch-faq}).  Gnus will try to get the FAQ from
3105 @code{gnus-group-faq-directory}, which is usually a directory on a
3106 remote machine.  @code{ange-ftp} will be used for fetching the file.
3107 @item R
3108 @kindex R (Group)
3109 @findex gnus-group-restart
3110 Restart Gnus (@code{gnus-group-restart}).
3111 @item r
3112 @kindex r (Group)
3113 @findex gnus-group-read-init-file
3114 @vindex gnus-init-file
3115 Read the init file (@code{gnus-init-file}, which defaults to
3116 @file{~/.gnus}) (@code{gnus-group-read-init-file}).
3117 @item s
3118 @kindex s (Group)
3119 @findex gnus-group-save-newsrc
3120 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
3121 (@code{gnus-group-save-newsrc}).
3122 @item Z
3123 @kindex Z (Group)
3124 @findex gnus-group-clear-dribble
3125 Clear the dribble buffer (@code{gnus-group-clear-dribble}).
3126 @item D
3127 @kindex D (Group)
3128 @findex gnus-group-describe-group
3129 Describe the current group (@code{gnus-group-describe-group}).  If given
3130 a prefix, force Gnus to re-read the description from the server.
3131 @item G a
3132 @kindex G a (Group)
3133 @findex gnus-group-apropos
3134 List all groups that have names that match a regexp
3135 (@code{gnus-group-apropos}).
3136 @item G d
3137 @kindex G d (Group)
3138 @findex gnus-group-description-apropos
3139 List all groups that have names or descriptions that match a regexp
3140 (@code{gnus-group-description-apropos}).
3141 @item a
3142 @kindex a (Group)
3143 @findex gnus-group-post-news
3144 Post an article to a group (@code{gnus-group-post-news}).
3145 @item m
3146 @kindex m (Group)
3147 @findex gnus-group-mail
3148 Mail a message somewhere (@code{gnus-group-mail}).
3149 @item C-x C-t
3150 @kindex C-x C-t (Group)
3151 @findex gnus-group-transpose-groups
3152 Transpose two groups (@code{gnus-group-transpose-groups}).
3153 @item V
3154 @kindex V (Group)
3155 @findex gnus-version
3156 Display current Gnus version numbers (@code{gnus-version}).
3157 @item M-d
3158 @kindex M-d (Group)
3159 @findex gnus-group-describe-all-groups
3160 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
3161 prefix, force Gnus to re-read the description file from the server.
3162 @item ?
3163 @kindex ? (Group)
3164 @findex gnus-group-describe-briefly
3165 Give a very short help message (@code{gnus-group-describe-briefly}).
3166 @item C-c C-i
3167 @kindex C-c C-i (Group)
3168 @findex gnus-info-find-node
3169 Go to the Gnus info node (@code{gnus-info-find-node}).
3170 @end table
3171
3172 @vindex gnus-group-prepare-hook
3173 @code{gnus-group-prepare-hook} is called after the group buffer is
3174 generated.  It may be used to modify the buffer in some strange,
3175 unnatural way.
3176
3177 @node The Summary Buffer
3178 @chapter The Summary Buffer
3179 @cindex summary buffer
3180
3181 A line for each article is displayed in the summary buffer.  You can
3182 move around, read articles, post articles and reply to articles.
3183
3184 @menu
3185 * Summary Buffer Format::       Deciding how the summary buffer is to look.
3186 * Summary Maneuvering::         Moving around the summary buffer.
3187 * Choosing Articles::           Reading articles.
3188 * Paging the Article::          Scrolling the current article.
3189 * Reply Followup and Post::     Posting articles.
3190 * Canceling and Superseding::   "Whoops, I shouldn't have called him that."
3191 * Marking Articles::            Marking articles as read, expirable, etc.
3192 * Limiting::                    You can limit the summary buffer.
3193 * Threading::                   How threads are made.
3194 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
3195 * Article Caching::             You may store articles in a cache.
3196 * Article Backlog::             Having already read articles hang around.
3197 * Exiting the Summary Buffer::  Returning to the Group buffer.
3198 * Process/Prefix::              A convention used by many treatment commands.
3199 * Saving Articles::             Ways of customizing article saving.
3200 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
3201 * Article Treatment::           The article buffer can be mangled at will.
3202 * Summary Sorting::             You can sort the summary buffer four ways.
3203 * Finding the Parent::          No child support? Get the parent.
3204 * Mail Group Commands::         Some commands can only be used in mail groups.
3205 * Various Summary Stuff::       What didn't fit anywhere else.
3206 @end menu
3207
3208
3209 @node Summary Buffer Format
3210 @section Summary Buffer Format
3211 @cindex summary buffer format
3212
3213 @menu
3214 * Summary Buffer Lines::     You can specify how summary lines should look.
3215 * Summary Buffer Mode Line:: You can say how the mode line should look.
3216 @end menu
3217
3218 @findex mail-extract-address-components
3219 @findex gnus-extract-address-components
3220 @vindex gnus-extract-address-components
3221 Gnus will use the value of the @code{gnus-extract-address-components}
3222 variable as a function for getting the name and address parts of a
3223 @code{From} header.  Two pre-defined function exist:
3224 @code{gnus-extract-address-components}, which is the default, quite
3225 fast, and too simplistic solution, and
3226 @code{mail-extract-address-components}, which works very nicely, but is
3227 slower.
3228
3229 @vindex gnus-summary-same-subject
3230 @code{gnus-summary-same-subject} is a string indicating that the current
3231 article has the same subject as the previous.  This string will be used
3232 with those specs that require it.
3233
3234 @node Summary Buffer Lines
3235 @subsection Summary Buffer Lines
3236
3237 @vindex gnus-summary-line-format
3238 You can change the format of the lines in the summary buffer by changing
3239 the @code{gnus-summary-line-format} variable.  It works along the same
3240 lines a a normal @code{format} string, with some extensions.
3241
3242 The default string is @samp{"%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n"}.
3243
3244 The following format specification characters are understood:
3245
3246 @table @samp
3247 @item N 
3248 Article number.
3249 @item S
3250 Subject string.
3251 @item s
3252 Subject if the article is the root, @code{gnus-summary-same-subject}
3253 otherwise. 
3254 @item F
3255 Full @code{From} line.
3256 @item n
3257 The name (from the @code{From} header).
3258 @item a
3259 The name (from the @code{From} header). This differs from the @code{n}
3260 spec in that it uses @code{gnus-extract-address-components}, which is
3261 slower, but may be more thorough.
3262 @item A
3263 The address (from the @code{From} header). This works the same way as
3264 the @code{a} spec.
3265 @item L
3266 Number of lines in the article.
3267 @item c
3268 Number of characters in the article.
3269 @item I
3270 Indentation based on thread level (@pxref{Customizing Threading}).
3271 @item T
3272 Nothing if the article is a root and lots of spaces if it isn't (it
3273 pushes everything after it off the screen).
3274 @item \[
3275 Opening bracket, which is normally @samp{\[}, but can also be @samp{<}
3276 for adopted articles.
3277 @item \]
3278 Closing bracket, which is normally @samp{\]}, but can also be @samp{>}
3279 for adopted articles.
3280 @item <
3281 One space for each thread level.
3282 @item >
3283 Twenty minus thread level spaces.
3284 @item U
3285 Unread.
3286 @item R
3287 Replied.
3288 @item i
3289 Score as a number.
3290 @item z
3291 @vindex gnus-summary-zcore-fuzz
3292 Zcore, @samp{+} if above the default level and @samp{-} if below the
3293 default level.  If the difference between
3294 @code{gnus-summary-default-level} and the score is less than
3295 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
3296 @item x
3297 @code{Xref}.
3298 @item D
3299 @code{Date}.
3300 @item M
3301 @code{Message-Id}.
3302 @item r
3303 @code{References}.
3304 @item t
3305 Number of articles in the current sub-thread.  Using this spec will slow
3306 down summary buffer generation somewhat.
3307 @item e
3308 A single character will be displayed if the article has any children. 
3309 @item u
3310 User defined specifier.  The next character in the format string should
3311 be a letter.  @sc{gnus} will call the function
3312 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
3313 following @samp{%u}.  The function will be passed the current header as
3314 argument.  The function should return a string, which will be inserted
3315 into the summary just like information from any other summary specifier.
3316 @end table
3317
3318 Text between @samp{%(} and @samp{%)} will be highlighted with
3319 @code{gnus-mouse-face} when the mouse point is placed inside the area.
3320 There can only be one such area.
3321
3322 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
3323 have to be handled with care.  For reasons of efficiency, Gnus will
3324 compute what column these characters will end up in, and "hard-code"
3325 that.  This means that it is illegal to have these specs after a
3326 variable-length spec.  Well, you might not be arrested, but your summary
3327 buffer will look strange, which is bad enough.
3328
3329 The smart choice is to have these specs as far to the left as possible.
3330 (Isn't that the case with everything, though?  But I digress.)
3331
3332 This restriction may disappear in later versions of Gnus.
3333
3334 @node Summary Buffer Mode Line
3335 @subsection Summary Buffer Mode Line
3336
3337 @vindex gnus-summary-mode-line-format
3338 You can also change the format of the summary mode bar.  Set
3339 @code{gnus-summary-mode-line-format} to whatever you like.  Here are the
3340 elements you can play with:
3341
3342 @table @samp
3343 @item G
3344 Group name.
3345 @item p
3346 Unprefixed group name.
3347 @item A
3348 Current article number.
3349 @item V
3350 Gnus version.
3351 @item U
3352 Number of unread articles in this group.
3353 @item e
3354 Number of unselected articles in this group.
3355 @item Z
3356 A string with the number of unread and unselected articles represented
3357 either as @samp{<%U(+%u) more>} if there are both unread and unselected
3358 articles, and just as @samp{<%U more>} if there are just unread articles
3359 and no unselected ones.
3360 @item g
3361 Shortish group name. For instance, @samp{rec.arts.anime} will be
3362 shortened to @samp{r.a.anime}. 
3363 @item S
3364 Subject of the current article.
3365 @item u
3366 Used-defined spec.
3367 @item s
3368 Name of the current score file.
3369 @item d
3370 Number of dormant articles.
3371 @item t
3372 Number of ticked articles.
3373 @item r
3374 Number of articles that have been marked as read in this session. 
3375 @item E
3376 Number of articles expunged by the score files.
3377 @end table
3378
3379
3380 @node Summary Maneuvering
3381 @section Summary Maneuvering
3382 @cindex summary movement
3383
3384 All the straight movement commands understand the numeric prefix and
3385 behave pretty much as you'd expect. 
3386
3387 None of these commands select articles.
3388
3389 @table @kbd
3390 @item G M-n
3391 @itemx M-n
3392 @kindex M-n (Summary)
3393 @kindex G M-n (Summary)
3394 @findex gnus-summary-next-unread-subject
3395 Go to the next summary line of an unread article
3396 (@code{gnus-summary-next-unread-subject}). 
3397 @item G M-p
3398 @itemx M-p
3399 @kindex M-p (Summary)
3400 @kindex G M-p (Summary)
3401 @findex gnus-summary-prev-unread-subject
3402 Go to the previous summary line of an unread article
3403 (@code{gnus-summary-prev-unread-subject}). 
3404 @item G g
3405 @itemx j
3406 @kindex j (Summary)
3407 @kindex G g (Summary)
3408 @findex gnus-summary-goto-subject
3409 Ask for an article number and then go to this summary line
3410 (@code{gnus-summary-goto-subject}). 
3411 @end table
3412
3413 @vindex gnus-auto-select-next
3414 If you are at the end of the group and issue one of the movement
3415 commands, Gnus will offer to go to the next group.  If
3416 @code{gnus-auto-select-next} is @code{t} and the next group is empty,
3417 Gnus will exit summary mode and return to the group buffer.  If this
3418 variable is neither @code{t} nor @code{nil}, Gnus will select the next
3419 group, no matter whether it has any unread articles or not.  As a
3420 special case, if this variable is @code{quietly}, Gnus will select the
3421 next group without asking for confirmation.  If this variable is
3422 @code{almost-quietly}, the same will happen only if you are located on
3423 the last article in the group.  Also @xref{Group Levels}.
3424
3425 If Gnus asks you to press a key to confirm going to the next group, you
3426 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
3427 buffer, searching for the next group to read without actually returning
3428 to the group buffer.
3429
3430 @vindex gnus-auto-select-same
3431 If @code{gnus-auto-select-same} is non-@code{nil}, all the movement
3432 commands will try to go to the next article with the same subject as the
3433 current.  This variable is not particularly useful if you use a threaded
3434 display.
3435
3436 @vindex gnus-summary-check-current
3437 If @code{gnus-summary-check-current} is non-@code{nil}, all the "unread"
3438 movement commands will not proceed to the next (or previous) article if
3439 the current article is unread.  Instead, they will choose the current
3440 article.  
3441
3442 @vindex gnus-auto-center-summary
3443 If @code{gnus-auto-center-summary} is non-@code{nil}, Gnus will keep the
3444 point in the summary buffer centered at all times.  This makes things
3445 quite tidy, but if you have a slow network connection, or simply do not
3446 like this un-Emacsism, you can set this variable to @code{nil} to get
3447 the normal Emacs scrolling action.
3448
3449 @node Choosing Articles
3450 @section Choosing Articles
3451 @cindex selecting articles
3452
3453 None of the following movement commands understand the numeric prefix,
3454 and they all select and display an article.
3455
3456 @table @kbd
3457 @item SPACE
3458 @kindex SPACE (Summary)
3459 @findex gnus-summary-next-page
3460 Select the current article, or, if that one's read already, the next
3461 unread article (@code{gnus-summary-next-page}).
3462 @item G n
3463 @itemx n
3464 @kindex n (Summary)
3465 @kindex G n (Summary)
3466 @findex gnus-summary-next-unread-article
3467 Go to next unread article (@code{gnus-summary-next-unread-article}).
3468 @item G p
3469 @itemx p
3470 @kindex p (Summary)
3471 @findex gnus-summary-prev-unread-article
3472 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
3473 @item G N
3474 @itemx N
3475 @kindex N (Summary)
3476 @kindex G N (Summary)
3477 @findex gnus-summary-next-article
3478 Go to the next article (@code{gnus-summary-next-article}).
3479 @item G P
3480 @itemx P
3481 @kindex P (Summary)
3482 @kindex G P (Summary)
3483 @findex gnus-summary-prev-article
3484 Go to the previous article (@code{gnus-summary-prev-article}).
3485 @item G C-n
3486 @kindex G C-n (Summary)
3487 @findex gnus-summary-next-same-subject
3488 Go to the next article with the same subject
3489 (@code{gnus-summary-next-same-subject}). 
3490 @item G C-p
3491 @kindex G C-p (Summary)
3492 @findex gnus-summary-prev-same-subject
3493 Go to the previous article with the same subject
3494 (@code{gnus-summary-prev-same-subject}). 
3495 @item G f
3496 @itemx .
3497 @kindex G f  (Summary)
3498 @kindex .  (Summary)
3499 @findex gnus-summary-first-unread-article
3500 Go to the first unread article
3501 (@code{gnus-summary-first-unread-article}).
3502 @item G b
3503 @itemx ,
3504 @kindex G b (Summary)
3505 @kindex , (Summary)
3506 Go to the article with the highest score
3507 (@code{gnus-summary-best-unread-article}). 
3508 @item G l
3509 @itemx l
3510 @kindex l (Summary)
3511 @kindex G l (Summary)
3512 @findex gnus-summary-goto-last-article
3513 Go to the previous article read (@code{gnus-summary-goto-last-article}).
3514 @item G p
3515 @kindex G p (Summary)
3516 @findex gnus-summary-pop-article
3517 Pop an article off the summary history and go to this article
3518 (@code{gnus-summary-pop-article}).  This command differs from the
3519 command above in that you can pop as many previous articles off the
3520 history as you like.
3521 @end table
3522
3523 Some variables that are relevant for moving and selecting articles:
3524
3525 @table @code
3526 @item gnus-auto-extend-newsgroup
3527 @vindex gnus-auto-extend-newsgroup
3528 All the movement commands will try to go to the previous (or next)
3529 article, even if that article isn't displayed in the Summary buffer if
3530 this variable is non-@code{nil}.  Gnus will then fetch the article from
3531 the server and display it in the article buffer.
3532 @item gnus-select-article-hook
3533 @vindex gnus-select-article-hook
3534 This hook is called whenever an article is selected.  By default it
3535 exposes any threads hidden under the selected article.
3536 @item gnus-mark-article-hook
3537 @vindex gnus-mark-article-hook
3538 This hook is called whenever an article is selected.  It is intended to
3539 be used for marking articles as read.
3540 @item gnus-visual-mark-article-hook
3541 @vindex gnus-visual-mark-article-hook
3542 This hook is run after selecting an article.  It is meant to be used for
3543 highlighting the article in some way.  It is not run if
3544 @code{gnus-visual} is @code{nil}.
3545 @item gnus-summary-update-hook
3546 @vindex gnus-summary-update-hook
3547 This hook is called when a summary line is changed.  It is not run if
3548 @code{gnus-visual} is @code{nil}.
3549 @item gnus-summary-selected-face
3550 @vindex gnus-summary-selected-face
3551 This is the face (or @dfn{font} as some people call it) that is used to
3552 highlight the current article in the summary buffer.
3553 @item gnus-summary-highlight
3554 @vindex gnus-summary-highlight
3555 Summary lines are highlighted according to this variable, which is a
3556 list where the elements are on the format @code{(FORM . FACE)}.  If you
3557 would, for instance, like ticked articles to be italic and high-scored
3558 articles to be bold, you could set this variable to something like
3559 @lisp
3560 (((eq mark gnus-ticked-mark) . italic)
3561  ((> score default) . bold))
3562 @end lisp
3563 As you may have guessed, if @var{FORM} returns a non-@code{nil} value,
3564 @var{FACE} will be applied to the line.
3565 @end table
3566
3567 @node Paging the Article
3568 @section Scrolling the Article
3569 @cindex article scrolling
3570
3571 @table @kbd
3572
3573 @item SPACE
3574 @kindex SPACE (Summary)
3575 @findex gnus-summary-next-page
3576 Pressing @kbd{SPACE} will scroll the current article forward one page,
3577 or, if you have come to the end of the current article, will choose the
3578 next article (@code{gnus-summary-next-page}).
3579
3580 @item DEL
3581 @kindex DEL (Summary)
3582 @findex gnus-summary-prev-page
3583 Scroll the current article back one page (@code{gnus-summary-prev-page}). 
3584 @item RET
3585 @kindex RET (Summary)
3586 @findex gnus-summary-scroll-up
3587 Scroll the current article one line forward
3588 (@code{gnus-summary-scroll-up}).
3589
3590 @item A <
3591 @itemx <
3592 @kindex < (Summary)
3593 @kindex A < (Summary)
3594 @findex gnus-summary-beginning-of-article
3595 Scroll to the beginning of the article
3596 (@code{gnus-summary-beginning-of-article}).
3597
3598 @item A >
3599 @itemx >
3600 @kindex > (Summary)
3601 @kindex A > (Summary)
3602 @findex gnus-summary-end-of-article
3603 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
3604
3605 @item A s 
3606 @kindex A s (Summary)
3607 @findex gnus-summary-isearch-article
3608 Perform an isearch in the article buffer
3609 (@code{gnus-summary-isearch-article}). 
3610
3611 @end table
3612
3613 @node Reply Followup and Post
3614 @section Reply, Followup and Post
3615 @cindex reply
3616 @cindex followup
3617 @cindex post
3618
3619 @kindex C-c C-c (Post)
3620 All the commands for posting and mailing will put you in a post or mail
3621 buffer where you can edit the article all you like, before you send the
3622 article by pressing @kbd{C-c C-c}.  If you are in a foreign news group,
3623 and you wish to post the article using the foreign server, you can give
3624 a prefix to @kbd{C-c C-c} to make Gnus try to post using the foreign
3625 server. 
3626
3627 @menu 
3628 * Mail::                 Mailing & replying.
3629 * Post::                 Posting and following up.
3630 * Mail & Post::          Mailing and posting at the same time.
3631 * Drafts::               Postponing messages and rejected messages.
3632 * Rejected Articles::    What happens if the server doesn't like your article?
3633 @end menu
3634
3635 @node Mail
3636 @subsection Mail
3637
3638 Commands for composing a mail message:
3639
3640 @table @kbd
3641 @item S r
3642 @itemx r
3643 @kindex S r (Summary)
3644 @kindex r (Summary)
3645 @findex gnus-summary-reply
3646 Mail a reply to the author of the current article
3647 (@code{gnus-summary-reply}). 
3648 @item S R
3649 @itemx R
3650 @kindex R (Summary)
3651 @kindex S R (Summary)
3652 @findex gnus-summary-reply-with-original
3653 Mail a reply to the author of the current article and include the
3654 original message (@code{gnus-summary-reply-with-original}).  This
3655 command uses the process/prefix convention.
3656 @item S o m
3657 @kindex S o m (Summary)
3658 @findex gnus-summary-mail-forward
3659 Forward the current article to some other person
3660 (@code{gnus-summary-mail-forward}). 
3661 @item S o p
3662 @kindex S o p (Summary)
3663 @findex gnus-summary-post-forward
3664 Forward the current article to a newsgroup
3665 (@code{gnus-summary-post-forward}).
3666 @item S m
3667 @itemx m
3668 @kindex m (Summary)
3669 @kindex S m (Summary)
3670 @findex gnus-summary-mail-other-window
3671 Send a mail to some other person
3672 (@code{gnus-summary-mail-other-window}).
3673 @item S D b
3674 @kindex S D b (Summary)
3675 @findex gnus-summary-resend-bounced-mail
3676 If you have sent a mail, but the mail was bounced back to you for some
3677 reason (wrong address, transient failure), you can use this command to
3678 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
3679 will be popped into a mail buffer where you can edit the headers before
3680 sending the mail off again.  The headers that match the regexp
3681 @code{gnus-bounced-headers-junk} (default @samp{^Received:}) are
3682 automatically deleted first.  If you give a prefix to this command, and
3683 the bounced mail is a reply to some other mail, Gnus will try to fetch
3684 that mail and display it for easy perusal of its headers.  This might
3685 very well fail, though.
3686 @item S O m
3687 @kindex S O m (Summary)
3688 @findex gnus-uu-digest-mail-forward
3689 Digest the current series and forward the result using mail
3690 (@code{gnus-uu-digest-mail-forward}).  This command uses the
3691 process/prefix convention (@pxref{Process/Prefix}). 
3692 @item S O p
3693 @kindex S O p (Summary)
3694 @findex gnus-uu-digest-post-forward
3695 Digest the current series and forward the result to a newsgroup
3696 (@code{gnus-uu-digest-mail-forward}).  
3697 @end table
3698
3699 Variables for customizing outgoing mail:
3700
3701 @table @code
3702 @item gnus-reply-to-function
3703 @vindex gnus-reply-to-function
3704 Gnus uses the normal methods to determine where replies are to go, but
3705 you can change the behavior to suit your needs by fiddling with this
3706 variable.
3707
3708 If you want the replies to go to the @samp{Sender} instead of the
3709 @samp{From} in the group @samp{mail.stupid-list}, you could do something
3710 like this:
3711
3712 @lisp
3713 (setq gnus-reply-to-function
3714       (lambda (group)
3715        (cond ((string= group "mail.stupid-list")
3716                (mail-fetch-field "sender"))
3717              (t
3718               nil))))
3719 @end lisp
3720
3721 This function will be called narrowed to the head of the article that is
3722 being replied to.
3723
3724 As you can see, this function should return a string if it has an
3725 opinion as to what the To header should be.  If it does not, it should
3726 just return @code{nil}, and the normal methods for determining the To
3727 header will be used.
3728
3729 This function can also return a list.  In that case, each list element
3730 should be a cons, where the car should be the name of an header
3731 (eg. @samp{Cc}) and the cdr should be the header value
3732 (eg. @samp{larsi@@ifi.uio.no}).  All these headers will be inserted into
3733 the head of the outgoing mail. 
3734
3735 @item gnus-mail-send-method
3736 @vindex gnus-mail-send-method
3737 This variable says how a mail should be mailed.  It uses the function in
3738 the @code{send-mail-function} variable as the default.
3739
3740 @item gnus-uu-digest-headers
3741 @vindex gnus-uu-digest-headers
3742 List of regexps to match headers included in digested messages.  The
3743 headers will be included in the sequence they are matched.
3744
3745 @item gnus-mail-hook
3746 @vindex gnus-mail-hook
3747 Hook called as the last thing after setting up a mail buffer.
3748
3749 @item gnus-required-mail-headers
3750 @vindex gnus-required-mail-headers
3751 Gnus will generate headers in all outgoing mail instead of letting
3752 @code{sendmail} do it for us.  This makes it possible to do more neat
3753 stuff, like putting mail without sending it, do hairy @code{Fcc}
3754 handling, and much more.  This variable controls what headers Gnus will
3755 generate, and is of the exact same form as @code{gnus-required-headers},
3756 which does the same for news articles (@pxref{Post}). 
3757
3758 The @code{Newsgroups} header is illegal in this list, while @code{To} is
3759 required, and @code{X-Mailer} can be added if you so should want.
3760
3761 @end table
3762
3763 @kindex C-c C-c (Mail)
3764 @kindex C-c C-p (Mail)
3765 @findex gnus-put-message
3766 You normally send a mail message by pressing @kbd{C-c C-c}.  However,
3767 you may wish to just put the mail message you have just written in your
3768 own local mail group instead of sending it.  Sounds quite unlikely, but
3769 I found that useful, so you can now also press @kbd{C-c C-p} to
3770 @dfn{put} the article in the current mail group, or, if there is no such
3771 thing, you will be prompted for a mail group, and then the article will
3772 be put there.  This means that the article is @dfn{not} mailed.  
3773
3774 There are three "methods" for handling all mail.  The default is
3775 @code{sendmail}.  Some people like what @code{mh} does better, and some
3776 people prefer @code{vm}.
3777
3778 Three variables for customizing what to use when:
3779
3780 @table @code
3781
3782 @vindex gnus-mail-reply-method
3783 @item gnus-mail-reply-method
3784 This function is used to compose replies.  The three functions avaibale
3785 are:
3786
3787 @findex gnus-mail-reply-using-vm
3788 @findex gnus-mail-reply-using-mhe
3789 @findex gnus-mail-reply-using-mail
3790 @itemize @bullet
3791 @item 
3792 @code{gnus-mail-reply-using-mail} (sendmail)
3793 @item 
3794 @code{gnus-mail-reply-using-mhe} (mh)
3795 @item
3796 @code{gnus-mail-reply-using-vm} (vm)
3797 @end itemize
3798
3799 @vindex gnus-mail-forward-method
3800 @item gnus-mail-forward-method
3801 This function is used to forward messages.  The three functions avaibale
3802 are:
3803
3804 @findex gnus-mail-forward-using-vm
3805 @findex gnus-mail-forward-using-mhe
3806 @findex gnus-mail-forward-using-mail
3807 @itemize @bullet
3808 @item 
3809 @code{gnus-mail-forward-using-mail} (sendmail)
3810 @item 
3811 @code{gnus-mail-forward-using-mhe} (mh)
3812 @item
3813 @code{gnus-mail-forward-using-vm} (vm)
3814 @end itemize
3815
3816 @vindex gnus-mail-other-window-method
3817 @item gnus-mail-other-window-method
3818 This function is used to send mails.  The three functions avaibale are:
3819
3820 @findex gnus-mail-other-window-using-vm
3821 @findex gnus-mail-other-window-using-mhe
3822 @findex gnus-mail-other-window-using-mail
3823 @itemize @bullet
3824 @item 
3825 @code{gnus-mail-other-window-using-mail} (sendmail)
3826 @item 
3827 @code{gnus-mail-other-window-using-mhe} (mh)
3828 @item
3829 @code{gnus-mail-other-window-using-vm} (vm)
3830 @end itemize
3831
3832 @end table
3833
3834
3835 @node Post
3836 @subsection Post
3837
3838 Commands for posting an article:
3839
3840 @table @kbd
3841 @item S p
3842 @itemx a
3843 @kindex a (Summary)
3844 @kindex S p (Summary)
3845 @findex gnus-summary-post-news
3846 Post an article to the current group
3847 (@code{gnus-summary-post-news}).
3848 @item S f
3849 @itemx f
3850 @kindex f (Summary)
3851 @kindex S f (Summary)
3852 @findex gnus-summary-followup
3853 Post a followup to the current article (@code{gnus-summary-followup}).
3854 @item S F
3855 @itemx F
3856 @kindex S F (Summary)
3857 @kindex F (Summary)
3858 @findex gnus-summary-followup-with-original
3859 Post a followup to the current article and include the original message
3860 (@code{gnus-summary-followup-with-original}).   This command uses the
3861 process/prefix convention.
3862 @item S u
3863 @kindex S u (Summary)
3864 @findex gnus-uu-post-news
3865 Uuencode a file, split it into parts, and post it as a series
3866 (@code{gnus-uu-post-news}). 
3867 @c (@pxref{Uuencoding & Posting}). 
3868 @end table
3869
3870 @vindex gnus-required-headers
3871 @code{gnus-required-headers} a list of header symbols.  These headers
3872 will either be automatically generated, or, if that's impossible, they
3873 will be prompted for.  The following symbols are legal:
3874
3875 @table @code
3876 @item From
3877 This required header will be filled out with the result of the
3878 @code{gnus-inews-user-name} function, which depends on the
3879 @code{gnus-user-from-line}, @code{gnus-user-login-name},
3880 @code{gnus-local-domain} and @code{user-mail-address} variables.
3881 @item Subject
3882 This required header will be prompted for if not present already. 
3883 @item Newsgroups
3884 This required header says which newsgroups the article is to be posted
3885 to.  If it isn't present already, it will be prompted for.
3886 @item Organization
3887 @cindex organization
3888 @vindex gnus-local-organization
3889 @vindex gnus-organization-file
3890 This optional header will be filled out depending on the
3891 @code{gnus-local-organization} variable.  @code{gnus-organization-file}
3892 will be used if that variable is nil.
3893 @item Lines
3894 This optional header will be computed by Gnus.
3895 @item Message-ID
3896 This required header will be generated by Gnus.  A unique ID will be
3897 created based on date, time, user name and system name.
3898 @item X-Newsreader
3899 This optional header will be filled out with the Gnus version numbers. 
3900 @end table
3901
3902 In addition, you can enter conses into this list.  The car of this cons
3903 should be a symbol. This symbol's name is the name of the header, and
3904 the cdr can either be a string to be entered verbatim as the value of
3905 this header, or it can be a function to be called.  This function should
3906 return a string to be inserted.  For instance, if you want to insert
3907 @samp{Mime-Version: 1.0}, you should enter @code{(Mime-Version . "1.0")}
3908 into the list.  If you want to insert a funny quote, you could enter
3909 something like @code{(X-Yow . yow)} into the list.  The function
3910 @code{yow} will then be called without any arguments.
3911
3912 The list contains a cons where the car of the cons is @code{optional},
3913 the cdr of this cons will only be inserted if it is non-@code{nil}.
3914
3915 Other variables for customizing outgoing articles:
3916
3917 @table @code
3918 @item gnus-post-method
3919 @vindex gnus-post-method
3920 If non-@code{nil}, Gnus will use this method instead of the default
3921 select method when posting.
3922
3923 @item nntp-news-default-headers
3924 @vindex nntp-news-default-headers
3925 If non-@code{nil}, this variable will override
3926 @code{mail-default-headers} when posting.  This variable should then be
3927 a string.  This string will be inserted, as is, in the head of all
3928 outgoing articles.
3929
3930 @item gnus-use-followup-to
3931 @vindex gnus-use-followup-to
3932 If @code{nil}, always ignore the Followup-To header.  If it is @code{t},
3933 use its value, but ignore the special value @samp{poster}, which will
3934 send the followup as a reply mail to the person you are responding to.
3935 If it is the symbol @code{ask}, query the user before posting.
3936 If it is the symbol @code{use}, always use the value.
3937
3938 @item gnus-followup-to-function
3939 @vindex gnus-followup-to-function
3940 This variable is most useful in mail groups, where "following up" really
3941 means sending a mail to a list address.  Gnus uses the normal methods to
3942 determine where follow-ups are to go, but you can change the behavior
3943 to suit your needs by fiddling with this variable.
3944
3945 If you want the followups to go to the @samp{Sender} instead of the
3946 @samp{From} in the group @samp{mail.stupid-list}, you could do something
3947 like this:
3948
3949 @lisp
3950 (setq gnus-followup-to-function
3951       (lambda (group)
3952        (cond ((string= group "mail.stupid-list")
3953                (mail-fetch-field "sender"))
3954              (t
3955               nil))))
3956 @end lisp
3957
3958 This function will be called narrowed to header of the article that is
3959 being followed up.
3960
3961 @item gnus-removable-headers
3962 @vindex gnus-removable-headers
3963 Some headers that are generated are toxic to the @sc{nntp} server.
3964 These include the @code{NNTP-Posting-Host}, @code{Bcc} and @code{Xref},
3965 so these headers are deleted if they are present in this list of
3966 symbols.
3967
3968 @item gnus-deletable-headers
3969 @vindex gnus-deletable-headers
3970 Headers in this list that were previously generated by Gnus will be
3971 deleted before posting.  Let's say you post an article.  Then you decide
3972 to post it again to some other group, you naughty boy, so you jump back
3973 to the @code{*post-buf*} buffer, edit the @code{Newsgroups} line, and
3974 ship it off again.  By default, this variable makes sure that the old
3975 generated @code{Message-ID} is deleted, and a new one generated.  If
3976 this isn't done, the entire empire would probably crumble, anarchy would
3977 prevail, and cats would start walking on two legs and rule the world.
3978 Allegedly. 
3979
3980 @item gnus-signature-function
3981 @vindex gnus-signature-function
3982 If non-@code{nil}, this variable should be a function that returns a
3983 signature file name.  The function will be called with the name of the
3984 group being posted to.  If the function returns a string that doesn't
3985 correspond to a file, the string itself is inserted.  If the function
3986 returns @code{nil}, the @code{gnus-signature-file} variable will be used
3987 instead.
3988
3989 @item gnus-post-prepare-function
3990 @vindex gnus-post-prepare-function
3991 This function is called with the name of the current group after the
3992 post buffer has been initialized, and can be used for inserting a
3993 signature.  Nice if you use different signatures in different groups.
3994
3995 @item gnus-post-prepapare-hook
3996 @vindex gnus-post-prepapare-hook
3997 This hook is called after a post buffer has been prepared. If you want
3998 to insert a signature at this point, you could put
3999 @code{gnus-inews-insert-signature} into this hook.
4000
4001 @item news-reply-header-hook
4002 @vindex news-reply-header-hook
4003 A related variable when following up and replying is this variable,
4004 which inserts the @dfn{quote line}.  The default value is:
4005
4006 @lisp
4007 (defvar news-reply-header-hook
4008   (lambda ()
4009     (insert "In article " news-reply-yank-message-id
4010             " " news-reply-yank-from " writes:\n\n")))
4011 @end lisp
4012
4013 This will create lines like:
4014
4015 @example
4016 In article <zngay8jrql@@eyesore.no> Lars Mars <lars@@eyesore.no> writes:
4017 @end example
4018
4019 Having the @code{Message-Id} in this line is probably overkill, so I
4020 would suggest this hook instead:
4021
4022 @lisp
4023 (setq news-reply-header-hook
4024   (lambda () (insert news-reply-yank-from " writes:\n\n")))
4025 @end lisp
4026
4027 @item gnus-prepare-article-hook
4028 @vindex gnus-prepare-article-hook
4029 This hook is called before the headers have been prepared.  By default
4030 it inserts the signature specified by @code{gnus-signature-file}.
4031
4032 @item gnus-inews-article-function
4033 @vindex gnus-inews-article-function
4034 This function is used to do the actual article processing and header
4035 checking/generation.  
4036
4037 @item gnus-inews-article-hook
4038 @vindex gnus-inews-article-hook
4039 This hook is called right before the article is posted.  By default it
4040 handles FCC processing (i.e., saving the article to a file.)
4041
4042 @item gnus-inews-article-header-hook
4043 @vindex gnus-inews-article-header-hook
4044 This hook is called after inserting the required headers in an article
4045 to be posted.  The hook is called from the @code{*post-news*} buffer,
4046 narrowed to the head, and is intended for people who would like to
4047 insert additional headers, or just change headers in some way or other.
4048
4049 @item gnus-check-before-posting
4050 @vindex gnus-check-before-posting
4051 If non-@code{nil}, Gnus will attempt to check the legality of the
4052 headers, as well as some other stuff, before posting.  You can control
4053 the granularity of the check by adding or removing elements from this
4054 list.  Legal elemetents are:
4055
4056 @table @code
4057 @item subject-cmsg 
4058 Check the subject for commands.
4059 @item sender
4060 Insert a new @code{Sender} header if the @code{From} header looks odd. 
4061 @item multiple-headers 
4062 Check for the existence of multiple equal headers.
4063 @item sendsys 
4064 Check for the existence of version and sendsys commands.
4065 @item message-id
4066 Check whether the @code{Message-ID} looks ok.
4067 @item from
4068 Check whether the @code{From} header seems nice.
4069 @item long-lines 
4070 Check for too long lines.
4071 @item control-chars
4072 Check for illegal characters.
4073 @item size
4074 Check for excessive size.
4075 @item new-text
4076 Check whether there is any new text in the messages.
4077 @item signature
4078 Check the length of the signature.
4079 @item approved
4080 Check whether the article has an @code{Approved} header, which is
4081 something only moderators should include.
4082 @end table
4083
4084 @end table
4085
4086
4087 @node Mail & Post
4088 @subsection Mail & Post
4089
4090 Commands for sending mail and post at the same time:
4091
4092 @table @kbd
4093 @item S b
4094 @kindex S b (Summary)
4095 @findex gnus-summary-followup-and-reply
4096 Post a followup and send a reply to the current article
4097 (@code{gnus-summary-followup-and-reply}).
4098 @item S B
4099 @kindex S B (Summary)
4100 @findex gnus-summary-followup-and-reply-with-original
4101 Post a followup and send a reply to the current article and include the
4102 original message (@code{gnus-summary-followup-and-reply-with-original}).
4103 This command uses the process/prefix convention.
4104 @end table
4105
4106 Here's a list of variables that are relevant to both mailing and
4107 posting:
4108
4109 @table @code
4110 @item gnus-signature-file
4111 @itemx mail-signature
4112 @vindex mail-signature
4113 @vindex gnus-signature-file
4114 @cindex double signature
4115 @cindex signature
4116 If @code{gnus-signature-file} is non-@code{nil}, it should be the name
4117 of a file containing a signature (@samp{~/.signature} by default).  This
4118 signature will be appended to all outgoing post.  Most people find it
4119 more convenient to use @code{mail-signature}, which (sort of) does the
4120 same, but inserts the signature into the buffer before you start editing
4121 the post (or mail).  So---if you have both of these variables set, you
4122 will get two signatures.  Note that @code{mail-signature} does not work
4123 the same way as @code{gnus-signature-file}, which is a bit confusing.
4124 If @code{mail-signature} is @code{t}, it will insert
4125 @file{~/.signature}.  If it is a string, this string will be inserted. 
4126
4127 Note that RFC1036 says that a signature should be preceded by the three
4128 characters @samp{-- } on a line by themselves.  This is to make it
4129 easier for the recipient to automatically recognize and process the
4130 signature.  So don't remove those characters, even though you might feel
4131 that they ruin you beautiful design, like, totally.
4132
4133 Also note that no signature should be more than four lines long.
4134 Including ASCII graphics is an efficient way to get everybody to believe
4135 that you are silly and have nothing important to say.
4136
4137 @item mail-yank-prefix
4138 @vindex mail-yank-prefix
4139 @cindex yanking
4140 @cindex quoting
4141 When you are replying to or following up an article, you normally want
4142 to quote the person you are answering.  Inserting quoted text is done by
4143 @dfn{yanking}, and each quoted line you yank will have
4144 @code{mail-yank-prefix} prepended to it.  This is @samp{ } by default,
4145 which isn't very pretty.  Most everybody prefers that lines are
4146 prepended with @samp{> }, so @code{(setq mail-yank-prefix "> ")} in your
4147 @file{.emacs} file.
4148
4149 @item mail-yank-ignored-headers
4150 @vindex mail-yank-ignored-headers
4151 When you yank a message, you do not want to quote any headers, so
4152 @code{(setq mail-yank-ignored-headers ":")}.
4153
4154 @item user-mail-address
4155 @vindex user-mail-address
4156 If all of @code{gnus-user-login-name}, @code{gnus-use-generic-from} and
4157 @code{gnus-local-domain} are @code{nil}, Gnus will use
4158 @code{user-mail-address} as the address part of the @code{From} header.
4159
4160 @item gnus-user-from-line
4161 @vindex gnus-user-from-line
4162 Your full, complete e-mail address with name.  This variable overrides
4163 the other Gnus variables if it is non-@code{nil}.
4164
4165 Here are two example values of this variable: @samp{"larsi@@ifi.uio.no
4166 (Lars Magne Ingebrigtsen)"} and @samp{"Lars Magne Ingebrigtsen
4167 <larsi@@ifi.uio.no>"}. The latter version is recommended in news (and is
4168 probably illegal in mail), but the name has to be quoted if it contains
4169 non-alpha-numerical characters---@samp{"\"Lars M. Ingebrigtsen\"
4170 <larsi@@ifi.uio.no>"}.
4171
4172 @item mail-default-headers
4173 @vindex mail-default-headers
4174 This is a string that will be inserted into the header of all outgoing
4175 mail messages and news articles.  Convenient to use to insert standard
4176 headers.  If @code{nntp-news-default-headers} is non-@code{nil}, that
4177 variable will override this one when posting articles.
4178
4179 @item gnus-auto-mail-to-author
4180 @vindex gnus-auto-mail-to-author
4181 If @code{ask}, you will be prompted for whether you want to send a mail
4182 copy to the author of the article you are following up.  If
4183 non-@code{nil} and not @code{ask}, Gnus will send a mail with a copy of
4184 all follow-ups to the authors of the articles you follow up.  It's nice
4185 in one way---you make sure that the person you are responding to gets
4186 your response.  Other people loathe this method and will hate you dearly
4187 for it, because it means that they will first get a mail, and then have
4188 to read the same article later when they read the news.  It is
4189 @code{nil} by default.
4190
4191 @item gnus-mail-courtesy-message
4192 @vindex gnus-mail-courtesy-message
4193 This is a string that will be prepended to all mails that are the result
4194 of using the variable described above.  
4195
4196 @item gnus-outgoing-message-group 
4197 @vindex gnus-outgoing-message-group 
4198 All outgoing messages will be put in this group.  If you want to store
4199 all your outgoing mail and articles in the group @samp{nnml:archive},
4200 you set this variable to that value. This variable can also be a list of
4201 group names.
4202
4203 If you want to have greater control over what group to put each
4204 message in, you can set this variable to a function that checks the
4205 current newsgroup name and then returns a suitable group name (or list
4206 of names).
4207
4208 @item gnus-mailing-list-groups
4209 @findex gnus-mailing-list-groups
4210 @cindex mailing lists
4211
4212 If your newsserver offer groups that are really mailing lists that are
4213 gatewayed to the @sc{nntp} server, you can read those groups without
4214 problems, but you can't post/followup to them without some difficulty.
4215 One solution is to add a @code{to-address} to the group parameters
4216 (@pxref{Group Parameters}).  An easier thing to do is set the
4217 @code{gnus-mailing-list-groups} to a regexp that match the groups that
4218 really are mailing lists.  Then, at least, followups to the mailing
4219 lists will work most of the time.  Posting to these groups (@kbd{a}) is
4220 still a pain, though.
4221
4222
4223 @end table
4224
4225 You may want to do spell-checking on messages that you send out.  Or, if
4226 you don't want to spell-check by hand, you could add automatic
4227 spell-checking via the @code{ispell} package:
4228
4229 @vindex news-inews-hook
4230 @lisp
4231 (add-hook 'news-inews-hook 'ispell-message)     ;For news posts
4232 (add-hook 'mail-send-hook 'ispell-message)      ;for mail posts via sendmail
4233 @end lisp
4234
4235 @findex gnus-inews-insert-mime-headers
4236 If you want to insert some @sc{mime} headers into the articles you post,
4237 without doing any actual encoding, you could add
4238 @code{gnus-inews-insert-mime-headers} to @code{gnus-inews-article-hook}.
4239
4240
4241 @node Drafts
4242 @subsection Drafts
4243 @cindex drafts
4244
4245 If you are writing a message (mail or news) and suddenly remember that
4246 you have a steak in the oven (or pesto in the food processor, you craazy
4247 vegetarians), you'll probably wish there was a method to save the
4248 message you are writing so that you can continue editing it some other
4249 day, and send it when you feel its finished.
4250
4251 @kindex C-c C-d (Mail)
4252 @kindex C-c C-d (Post)
4253 @findex gnus-enter-into-draft-group
4254 @vindex gnus-draft-group-directory
4255 What you then do is simply push @kbd{C-c C-d}
4256 (@code{gnus-enter-into-draft-group}).  This will put the current
4257 (unfinished) message in a special draft group (which is implemented as
4258 an @code{nndir} group, if you absolutely have to know) called
4259 @samp{nndir:drafts}.  The variable @code{gnus-draft-group-directory}
4260 controls both the name of the group and the location---the leaf element
4261 in the path will be used as the name of the group.
4262
4263 If the group doesn't exist, it will be created and you'll be subscribed
4264 to it.
4265
4266 @findex gnus-summary-send-draft
4267 @kindex S D c
4268 When you want to continue editing the article, you simply enter the
4269 draft group and push @kbd{S D c} (@code{gnus-summary-send-draft}) to do
4270 that.  You will be placed in a buffer where you left off.
4271
4272 Rejected articles will also be put in this draft group (@pxref{Rejected
4273 Articles}).
4274
4275 @findex gnus-summary-send-all-drafts
4276 If you have lots of rejected messages you want to post (or mail) without
4277 doing further editing, you can use the @kbd{S D a} command
4278 (@code{gnus-summary-send-all-drafts}).  This command understands the
4279 process/prefix convention (@pxref{Process/Prefix}).  
4280
4281
4282 @node Rejected Articles
4283 @subsection Rejected Articles
4284 @cindex rejected articles
4285
4286 Sometimes a news server will reject an article.  Perhaps the server
4287 doesn't like your face.  Perhaps it just feels miserable.  Perhaps
4288 @emph{there be demons}.  Perhaps you have included too much cited text.
4289 Perhaps the disk is full.  Perhaps the server is down.
4290
4291 These situations are, of course, totally beyond the control of Gnus.
4292 (Gnus, of course, loves the way you look, always feels great, has angels
4293 fluttering around inside of it, doesn't care about how much cited text
4294 you include, never runs full and never goes down.)  So Gnus saves these
4295 articles until some later time when the server feels better.
4296
4297 The rejected articles will automatically be put in a special draft group
4298 (@pxref{Drafts}).  When the server comes back up again, you'd then
4299 typically enter that group and send all the articles off.
4300
4301
4302 @node Canceling and Superseding
4303 @section Canceling Articles
4304 @cindex canceling articles
4305 @cindex superseding articles
4306
4307 Have you ever written something, and then decided that you really,
4308 really, really wish you hadn't posted that?
4309
4310 Well, you can't cancel mail, but you can cancel posts.
4311
4312 @findex gnus-summary-cancel-article
4313 @kindex C (Summary)
4314 Find the article you wish to cancel (you can only cancel your own
4315 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
4316 c} (@code{gnus-summary-cancel-article}).  Your article will be
4317 canceled---machines all over the world will be deleting your article. 
4318
4319 Be aware, however, that not all sites honor cancels, so your article may
4320 live on here and there, while most sites will delete the article in
4321 question.
4322
4323 If you discover that you have made some mistakes and want to do some
4324 corrections, you can post a @dfn{superseding} article that will replace
4325 your original article.
4326
4327 @findex gnus-summary-supersede-article
4328 @kindex S (Summary)
4329 Go to the original article and press @kbd{S s}
4330 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
4331 where you can edit the article all you want before sending it off the
4332 usual way.
4333
4334 @vindex gnus-delete-supersedes-headers
4335 You probably want to delete some of the old headers before sending the
4336 superseding article---@code{Path} and @code{Date} are probably
4337 incorrect.  Set @code{gnus-delete-supersedes-headers} to a regexp to
4338 match the lines you want removed.  The default is
4339 @samp{"^Path:\\|^Date"}. 
4340
4341 The same goes for superseding as for canceling, only more so: Some
4342 sites do not honor superseding.  On those sites, it will appear that you
4343 have posted almost the same article twice.
4344
4345 If you have just posted the article, and change your mind right away,
4346 there is a trick you can use to cancel/supersede the article without
4347 waiting for the article to appear on your site first.  You simply return
4348 to the post buffer (which is called @code{*post-buf*}).  There you will
4349 find the article you just posted, with all the headers intact.  Change
4350 the @samp{Message-ID} header to a @samp{Cancel} or @samp{Supersedes}
4351 header by substituting one of those words for @samp{Message-ID}.  Then
4352 just press @kbd{C-c C-c} to send the article as you would do normally.
4353 The previous article will be canceled/superseded.
4354
4355 Just remember, kids: There is no 'c' in 'supersede'.
4356
4357 @node Marking Articles
4358 @section Marking Articles
4359 @cindex article marking
4360 @cindex article ticking
4361 @cindex marks
4362
4363 There are several marks you can set on an article. 
4364
4365 You have marks that decide the @dfn{readed-ness} (whoo, neato-keano
4366 neologism ohoy!) of the article.  Alphabetic marks generally mean
4367 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
4368
4369 In addition, you also have marks that do not affect readedness.
4370
4371 @menu
4372 * Unread Articles::      Marks for unread articles.
4373 * Read Articles::        Marks for read articles.
4374 * Other Marks::          Marks that do not affect readedness.
4375 @end menu
4376
4377 @ifinfo
4378 There's a plethora of commands for manipulating these marks:
4379 @end ifinfo
4380
4381 @menu
4382 * Setting Marks::           How to set and remove marks.
4383 * Setting Process Marks::   How to mark articles for later processing.
4384 @end menu
4385
4386 @node Unread Articles
4387 @subsection Unread Articles
4388
4389 The following marks mark articles as unread, in one form or other.
4390
4391 @vindex gnus-dormant-mark
4392 @vindex gnus-ticked-mark
4393 @table @samp
4394 @item !
4395 @dfn{Ticked articles} are articles that will remain visible always.  If
4396 you see an article that you find interesting, or you want to put off
4397 reading it, or replying to it, until sometime later, you'd typically
4398 tick it.  However, articles can be expired, so if you want to keep an
4399 article forever, you'll have to save it.  Ticked articles have a
4400 @samp{!} (@code{gnus-ticked-mark}) in the first column.
4401 @item ?
4402 A @dfn{dormant} article is marked with a @samp{?}
4403 (@code{gnus-dormant-mark}), and will only appear in the summary buffer
4404 if there are followups to it.
4405 @item SPC
4406 An @dfn{unread} article is marked with a @samp{SPC}
4407 (@code{gnus-unread-mark}).  These are articles that haven't been read at
4408 all yet.
4409 @end table
4410
4411 @node Read Articles
4412 @subsection Read Articles
4413 @cindex expirable mark
4414
4415 All the following marks mark articles as read.
4416
4417 @table @samp
4418 @item r
4419 Articles that are marked as read.  They have a @samp{r}
4420 (@code{gnus-del-mark}) in the first column.  These are articles that the
4421 user has marked as read more or less manually.
4422 @item R
4423 Articles that are actually read are marked with @samp{R}
4424 (@code{gnus-read-mark}). 
4425 @item O
4426 Articles that were marked as read in previous sessions are now
4427 @dfn{old} and marked with @samp{O} (@code{gnus-ancient-mark}). 
4428 @item K
4429 Marked as killed (@code{gnus-killed-mark}).
4430 @item X
4431 Marked as killed by kill files (@code{gnus-kill-file-mark}).
4432 @item Y
4433 Marked as read by having a too low score (@code{gnus-low-score-mark}).
4434 @item C
4435 Marked as read by a catchup (@code{gnus-catchup-mark}).
4436 @item G
4437 Canceled article (@code{gnus-cancelled-mark})
4438 @end table
4439
4440 All these marks just mean that the article is marked as read, really.
4441 They are interpreted differently by the adaptive scoring scheme,
4442 however.
4443
4444 One more special mark, though:
4445
4446 @table @samp
4447 @item E
4448 You can also mark articles as @dfn{expirable} (or have them marked as
4449 such automatically).  That doesn't make much sense in normal groups,
4450 because a user does not control the expiring of news articles, but in
4451 mail groups, for instance, articles that are marked as @dfn{expirable}
4452 can be deleted by Gnus at any time.  Expirable articles are marked with
4453 @samp{E} (@code{gnus-expirable-mark}).
4454 @end table
4455
4456 @node Other Marks
4457 @subsection Other Marks
4458 @cindex process mark
4459 @cindex bookmarks
4460
4461 There are some marks that have nothing to do with whether the article is
4462 read or not.
4463
4464 You can set a bookmark in the current article.  Say you are reading a
4465 long thesis on cat's urinary tracts, and have to go home for dinner
4466 before you've finished reading the thesis.  You can then set a bookmark
4467 in the article, and Gnus will jump to this bookmark the next time it
4468 encounters the article.
4469
4470 All articles that you have replied to or made a followup to (i.e., have
4471 answered) will be marked with an @samp{A} in the second column
4472 (@code{gnus-replied-mark}).
4473
4474 @vindex gnus-not-empty-thread-mark
4475 @vindex gnus-empty-thread-mark
4476 It the @samp{%e} spec is used, the presence of threads or not will be
4477 marked with @code{gnus-not-empty-thread-mark} and
4478 @code{gnus-empty-thread-mark}, respectively.
4479
4480 @vindex gnus-process-mark
4481 Finally we have the @dfn{process mark} (@code{gnus-process-mark}.  A
4482 variety of commands react to the presence of the process mark.  For
4483 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
4484 all articles that have been marked with the process mark.  Articles
4485 marked with the process mark have a @samp{#} in the second column.
4486
4487 @node Setting Marks
4488 @subsection Setting Marks
4489 @cindex setting marks
4490
4491 All the marking commands understand the numeric prefix.
4492
4493 @table @kbd
4494 @item M t
4495 @itemx !
4496 @kindex ! (Summary)
4497 @kindex M t (Summary)
4498 @findex gnus-summary-tick-article-forward
4499 Tick the current article (@code{gnus-summary-tick-article-forward}).
4500 @item M ?
4501 @itemx ?
4502 @kindex ? (Summary)
4503 @kindex M ? (Summary)
4504 @findex gnus-summary-mark-as-dormant
4505 Mark the current article as dormant
4506 (@code{gnus-summary-mark-as-dormant}).
4507 @item M d
4508 @itemx d
4509 @kindex M d (Summary)
4510 @kindex d (Summary)
4511 @findex gnus-summary-mark-as-read-forward
4512 Mark the current article as read
4513 (@code{gnus-summary-mark-as-read-forward}).
4514 @item M k
4515 @itemx k
4516 @kindex k (Summary)
4517 @kindex M k (Summary)
4518 @findex gnus-summary-kill-same-subject-and-select
4519 Mark all articles that have the same subject as the current one as read,
4520 and then select the next unread article
4521 (@code{gnus-summary-kill-same-subject-and-select}).
4522 @item M K
4523 @itemx C-k
4524 @kindex M K (Summary)
4525 @kindex C-k (Summary)
4526 @findex gnus-summary-kill-same-subject
4527 Mark all articles that have the same subject as the current one as read
4528 (@code{gnus-summary-kill-same-subject}).  
4529 @item M C
4530 @kindex M C (Summary)
4531 @findex gnus-summary-catchup
4532 Mark all unread articles in the group as read
4533 (@code{gnus-summary-catchup}).
4534 @item M C-c
4535 @kindex M C-c (Summary)
4536 @findex gnus-summary-catchup-all
4537 Mark all articles in the group as read---even the ticked and dormant
4538 articles (@code{gnus-summary-catchup-all}).
4539 @item M H
4540 @kindex M H (Summary)
4541 @findex gnus-summary-catchup-to-here
4542 Catchup the current group to point
4543 (@code{gnus-summary-catchup-to-here}). 
4544 @item C-w
4545 @kindex C-w (Summary)
4546 @findex gnus-summary-mark-region-as-read
4547 Mark all articles between point and mark as read
4548 (@code{gnus-summary-mark-region-as-read}). 
4549 @item M V k
4550 @kindex M V k (Summary)
4551 @findex gnus-summary-kill-below
4552 Kill all articles with scores below the default score (or below the
4553 numeric prefix) (@code{gnus-summary-kill-below}).
4554 @item M c
4555 @itemx M-u
4556 @kindex M c (Summary)
4557 @kindex M-u (Summary)
4558 @findex gnus-summary-clear-mark-forward
4559 Clear all readedness-marks from the current article
4560 (@code{gnus-summary-clear-mark-forward}).
4561 @item M e
4562 @itemx E
4563 @kindex M e (Summary)
4564 @kindex E (Summary)
4565 @findex gnus-summary-mark-as-expirable
4566 Mark the current article as expirable
4567 (@code{gnus-summary-mark-as-expirable}).
4568 @item M b
4569 @kindex M b (Summary)
4570 @findex gnus-summary-set-bookmark
4571 Set a bookmark in the current article
4572 (@code{gnus-summary-set-bookmark}).
4573 @item M B
4574 @kindex M B (Summary)
4575 @findex gnus-summary-remove-bookmark
4576 Remove the bookmark from the current article
4577 (@code{gnus-summary-remove-bookmark}).
4578 @item M V c
4579 @kindex M V c (Summary)
4580 @findex gnus-summary-clear-above
4581 Clear all marks from articles with scores over the default score (or
4582 over the numeric prefix) (@code{gnus-summary-clear-above}).
4583 @item M V u
4584 @kindex M V u (Summary)
4585 @findex gnus-summary-tick-above
4586 Tick all articles with scores over the default score (or over the
4587 numeric prefix) (@code{gnus-summary-tick-above}).
4588 @item M V m
4589 @kindex M V m (Summary)
4590 @findex gnus-summary-mark-above
4591 Prompt for a mark, and mark all articles with scores over the default
4592 score (or over the numeric prefix) with this mark
4593 (@code{gnus-summary-clear-above}).
4594 @end table
4595
4596 @code{gnus-summary-goto-unread}
4597 The @code{gnus-summary-goto-unread} variable controls what action should
4598 be taken after setting a mark.  If non-@code{nil}, point will move to
4599 the next/previous unread article.  If @code{nil}, point will just move
4600 one line up or down.
4601
4602
4603 @node Setting Process Marks
4604 @subsection Setting Process Marks
4605 @cindex setting process marks
4606
4607 @table @kbd
4608 @item M P p
4609 @itemx #
4610 @kindex # (Summary)
4611 @kindex M P p (Summary)
4612 @findex gnus-summary-mark-as-processable
4613 Mark the current article with the process mark
4614 (@code{gnus-summary-mark-as-processable}). 
4615 @findex gnus-summary-unmark-as-processable
4616 @item M P u 
4617 @itemx M-#
4618 @kindex M P u (Summary)
4619 @kindex M-# (Summary)
4620 Remove the process mark, if any, from the current article
4621 (@code{gnus-summary-unmark-as-processable}).
4622 @item M P U
4623 @kindex M P U (Summary)
4624 @findex gnus-summary-unmark-all-processable
4625 Remove the process mark from all articles
4626 (@code{gnus-summary-unmark-all-processable}). 
4627 @item M P R
4628 @kindex M P R (Summary)
4629 @findex gnus-uu-mark-by-regexp
4630 Mark articles by a regular expression (@code{gnus-uu-mark-by-regexp}). 
4631 @item M P r
4632 @kindex M P r (Summary)
4633 @findex gnus-uu-mark-region
4634 Mark articles in region (@code{gnus-uu-mark-region}).
4635 @item M P t
4636 @kindex M P t (Summary)
4637 @findex gnus-uu-mark-thread
4638 Mark all articles in the current (sub)thread
4639 (@code{gnus-uu-mark-thread}).
4640 @item M P T
4641 @kindex M P T (Summary)
4642 @findex gnus-uu-unmark-thread
4643 Unmark all articles in the current (sub)thread
4644 (@code{gnus-uu-unmark-thread}).
4645 @item M P s
4646 @kindex M P s (Summary)
4647 @findex gnus-uu-mark-series
4648 Mark all articles in the current series (@code{gnus-uu-mark-series}).
4649 @item M P S
4650 @kindex M P S (Summary)
4651 @findex gnus-uu-mark-sparse
4652 Mark all series that have already had some articles marked
4653 (@code{gnus-uu-mark-sparse}).
4654 @item M P a
4655 @kindex M P a (Summary)
4656 @findex gnus-uu-mark-all
4657 Mark all articles in series order (@code{gnus-uu-mark-series}).
4658 @item M P b
4659 @kindex M P b (Summary)
4660 @findex gnus-uu-mark-buffer
4661 Mark all articles in the buffer in the order they appear
4662 (@code{gnus-uu-mark-buffer}). 
4663 @end table
4664
4665
4666 @node Limiting
4667 @section Limiting
4668 @cindex limiting
4669
4670 It can be convenient to limit the summary buffer to just show some
4671 subset of the articles currently in the group.  The effect most limit
4672 commands have is to remove a few (or many) articles from the summary
4673 buffer. 
4674
4675 @table @kbd
4676
4677 @item M N u
4678 @itemx x
4679 @kindex M N u (Summary)
4680 @kindex x (Summary)
4681 @findex gnus-summary-limit-to-unread
4682 Limit the summary buffer to articles that are not marked as read
4683 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
4684 buffer to articles that are strictly unread.  This means that ticked and
4685 dormant articles will also be excluded.
4686
4687 @item M N m
4688 @kindex M N m (Summary)
4689 @findex gnus-summary-limit-to-marks
4690 Ask for a mark and then limit to all articles that have not been marked
4691 with that mark (@code{gnus-summary-limit-to-marks}).
4692
4693 @item M N n
4694 @kindex M N n (Summary)
4695 @findex 
4696 Limit the summary buffer to the current article
4697 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
4698 convention (@pxref{Process/Prefix}).
4699
4700 @item M N w
4701 @kindex M N w (Summary)
4702 @findex gnus-summary-pop-limit
4703 Pop the previous limit off the stack and restore it
4704 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
4705 the stack.
4706
4707 @item M N s
4708 @itemx /
4709 @kindex M N s (Summary)
4710 @kindex / (Summary)
4711 @findex gnus-summary-limit-to-subject
4712 Limit the summary buffer to articles that have a subject that matches a
4713 regexp (@code{gnus-summary-limit-to-subject}).
4714
4715 @item M N v
4716 @kindex M N v (Summary)
4717 @findex gnus-summary-limit-to-score
4718 Limit the summary buffer to articles that have a score at or above some
4719 score (@code{gnus-summary-limit-to-score}).
4720
4721 @item M S
4722 @kindex M S (Summary)
4723 @findex gnus-summary-show-all-expunged
4724 Display all expunged articles (@code{gnus-summary-show-all-expunged}).
4725
4726 @item M N D
4727 @kindex M N D (Summary)
4728 @findex gnus-summary-limit-include-dormant
4729 Display all dormant articles (@code{gnus-summary-limit-include-dormant}).
4730
4731 @item M N d
4732 @kindex M N d (Summary)
4733 @findex gnus-summary-limit-exclude-dormant
4734 Hide all dormant articles (@code{gnus-summary-limit-exclude-dormant}).
4735
4736 @item M N c
4737 @kindex M N c (Summary)
4738 @findex gnus-summary-limit-exclude-childless-dormant
4739 Hide all dormant articles that have no children
4740 (@code{gnus-summary-limit-exclude-childless-dormant}). 
4741
4742 @end table
4743
4744
4745 @node Threading
4746 @section Threading
4747 @cindex threading
4748 @cindex article threading
4749
4750 Gnus threads articles by default.  @dfn{To thread} is to put replies to
4751 articles directly after the articles they reply to---in a hierarchical
4752 fashion.
4753
4754 @menu
4755 * Customizing Threading::     Variables you can change to affect the threading.
4756 * Thread Commands::           Thread based commands in the summary buffer.
4757 @end menu
4758
4759 @node Customizing Threading
4760 @subsection Customizing Threading
4761 @cindex customizing threading
4762 @cindex <
4763 @cindex >
4764
4765 @table @code
4766 @item gnus-show-threads
4767 @vindex gnus-show-threads
4768 If this variable is @code{nil}, no threading will be done, and all of
4769 the rest of the variables here will have no effect.  Turning threading
4770 off will speed group selection up a bit, but it is sure to make reading
4771 slower and more awkward.
4772
4773 @item gnus-fetch-old-headers
4774 @vindex gnus-fetch-old-headers
4775 If non-@code{nil}, Gnus will attempt to build old threads by fetching
4776 more old headers---headers to articles that are marked as read.  If you
4777 would like to display as few summary lines as possible, but still
4778 connect as many loose threads as possible, you should set this variable
4779 to @code{some} or a number.  If you set it to a number, no more than
4780 that number of extra old headers will be fetched.  In either case,
4781 fetching old headers only works if the backend you are using carries
4782 overview files---this would normally be @code{nntp}, @code{nnspool} and
4783 @code{nnml}.  Also remember that if the root of the thread has been
4784 expired by the server, there's not much Gnus can do about that.
4785
4786 @item gnus-summary-gather-subject-limit
4787 Loose threads are gathered by comparing subjects of articles.  If this
4788 variable is @code{nil}, Gnus requires an exact match between the
4789 subjects of the loose threads before gathering them into one big
4790 super-thread.  This might be too strict a requirement, what with the
4791 presence of stupid newsreaders that chop off long subjects lines.  If
4792 you think so, set this variable to, say, 20 to require that only the
4793 first 20 characters of the subjects have to match.  If you set this
4794 variable to a real low number, you'll find that Gnus will gather
4795 everything in sight into one thread, which isn't very helpful.
4796
4797 @cindex fuzzy article gathering
4798 If you set this variable to the special value @code{fuzzy}, Gnus will
4799 use a fuzzy string comparison algorithm on the subjects.
4800
4801 @vindex gnus-summary-gather-exclude-subject
4802 Since loose thread gathering is done on subjects only, that might lead
4803 to many false hits, especially with certain common subjects like
4804 @samp{""} and @samp{"(none)"}.  To make the situation slightly better,
4805 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
4806 what subjects should be excluded from the gathering process.  The
4807 default is @samp{"^ *$\\|^(none)$"}.  
4808
4809 @item gnus-summary-make-false-root
4810 @vindex gnus-summary-make-false-root
4811 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
4812 and create a dummy root at the top.  (Wait a minute.  Root at the top?
4813 Yup.)  Loose subtrees occur when the real root has expired, or you've
4814 read or killed the root in a previous session.
4815
4816 When there is no real root of a thread, Gnus will have to fudge
4817 something.  This variable says what fudging method Gnus should use.
4818 There are four possible values:
4819
4820 @cindex adopting articles
4821
4822 @table @code
4823 @item adopt
4824 Gnus will make the first of the orphaned articles the parent.  This
4825 parent will adopt all the other articles.  The adopted articles will be
4826 marked as such by pointy brackets (@samp{<>}) instead of the standard
4827 square brackets (@samp{[]}).  This is the default method.
4828 @item dummy
4829 Gnus will create a dummy summary line that will pretend to be the
4830 parent.  This dummy line does not correspond to any real article, so
4831 selecting it will just select the first real article after the dummy
4832 article.
4833 @item empty
4834 Gnus won't actually make any article the parent, but simply leave the
4835 subject field of all orphans except the first empty.  (Actually, it will
4836 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
4837 Buffer Format}).)
4838 @item none
4839 Don't make any article parent at all.  Just gather the threads and
4840 display them after one another.
4841 @item nil
4842 Don't gather loose threads.
4843 @end table
4844
4845 @item gnus-thread-hide-subtree
4846 @vindex gnus-thread-hide-subtree
4847 If non-@code{nil}, all threads will be hidden when the summary buffer is
4848 generated.
4849
4850 @item gnus-thread-hide-killed
4851 @vindex gnus-thread-hide-killed
4852 if you kill a thread and this variable is non-@code{nil}, the subtree
4853 will be hidden.
4854
4855 @item gnus-thread-ignore-subject
4856 @vindex gnus-thread-ignore-subject
4857 Sometimes somebody changes the subject in the middle of a thread.  If
4858 this variable is non-@code{nil}, the subject change is ignored.  If it
4859 is @code{nil}, which is the default, a change in the subject will result
4860 in a new thread.
4861
4862 @item gnus-thread-indent-level
4863 @vindex gnus-thread-indent-level
4864 This is a number that says how much each sub-thread should be indented.
4865 The default is @samp{4}.
4866 @end table
4867
4868 @node Thread Commands
4869 @subsection Thread Commands
4870 @cindex thread commands
4871
4872 @table @kbd
4873
4874 @item T k
4875 @itemx M-C-k
4876 @kindex T k (Summary)
4877 @kindex M-C-k (Summary)
4878 @findex gnus-summary-kill-thread
4879 Mark all articles in the current sub-thread as read
4880 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
4881 remove all marks instead.  If the prefix argument is negative, tick
4882 articles instead.
4883
4884 @item T l
4885 @itemx M-C-l
4886 @kindex T l (Summary)
4887 @kindex M-C-l (Summary)
4888 @findex gnus-summary-lower-thread
4889 Lower the score of the current thread
4890 (@code{gnus-summary-lower-thread}). 
4891
4892 @item T i
4893 @kindex T i (Summary)
4894 @findex gnus-summary-raise-thread
4895 Increase the score of the current thread
4896 (@code{gnus-summary-raise-thread}).
4897
4898 @item T #
4899 @kindex T # (Summary)
4900 @findex gnus-uu-mark-thread
4901 Set the process mark on the current thread
4902 (@code{gnus-uu-mark-thread}).
4903
4904 @item T M-#
4905 @kindex T M-# (Summary)
4906 @findex gnus-uu-unmark-thread
4907 Remove the process mark from the current thread
4908 (@code{gnus-uu-unmark-thread}).
4909
4910 @item T T
4911 @kindex T T (Summary)
4912 @findex gnus-summary-toggle-threads
4913 Toggle threading (@code{gnus-summary-toggle-threads}).
4914
4915 @item T s
4916 @kindex T s (Summary)
4917 @findex gnus-summary-show-thread
4918 Expose the thread hidden under the current article, if any
4919 (@code{gnus-summary-show-thread}).
4920
4921 @item T h
4922 @kindex T h (Summary)
4923 @findex gnus-summary-hide-thread
4924 Hide the current (sub)thread (@code{gnus-summary-hide-thread}).
4925
4926 @item T S
4927 @kindex T S (Summary)
4928 @findex gnus-summary-show-all-threads
4929 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
4930
4931 @item T H
4932 @kindex T H (Summary)
4933 @findex gnus-summary-hide-all-threads
4934 Hide all threads (@code{gnus-summary-hide-all-threads}).
4935 @end table
4936
4937 The following commands are thread movement commands.  They all
4938 understand the numeric prefix.
4939
4940 @table @kbd
4941 @item T n
4942 @kindex T n (Summary)
4943 @findex gnus-summary-next-thread
4944 Go to the next thread (@code{gnus-summary-next-thread}).
4945 @item T p
4946 @kindex T p (Summary)
4947 @findex gnus-summary-prev-thread
4948 Go to the previous thread (@code{gnus-summary-prev-thread}).
4949 @item T d
4950 @kindex T d (Summary)
4951 @findex gnus-summary-down-thread
4952 Descend the thread (@code{gnus-summary-down-thread}).
4953 @item T u
4954 @kindex T u (Summary)
4955 @findex gnus-summary-up-thread
4956 Ascend the thread (@code{gnus-summary-up-thread}).
4957 @end table
4958
4959 @vindex gnus-thread-operation-ignore-subject 
4960 If you ignore subject while threading, you'll naturally end up with
4961 threads that have several different subjects in them.  If you then issue
4962 a command like `T k' (@code{gnus-summary-kill-thread}) you might not
4963 wish to kill the entire thread, but just those parts of the thread that
4964 have the same subject as the current article.  If you like this idea,
4965 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If is
4966 is non-@code{nil} (which it is by default), subjects will be ignored
4967 when doing thread commands.  If this variable is @code{nil}, articles in
4968 the same thread with different subjects will not be included in the
4969 operation in question.  If this variable is @code{fuzzy}, only articles
4970 that have subjects that are fuzzily equal will be included.
4971
4972
4973 @node Asynchronous Fetching
4974 @section Asynchronous Article Fetching
4975 @cindex asynchronous article fetching
4976
4977 If you read your news from an @sc{nntp} server that's far away, the
4978 network latencies may make reading articles a chore. You have to wait
4979 for a while after pressing @kbd{n} to go to the next article before the
4980 article appears. Why can't Gnus just go ahead and fetch the article
4981 while you are reading the previous one? Why not, indeed.
4982
4983 First, some caveats.  There are some pitfalls to using asynchronous
4984 article fetching, especially the way Gnus does it.  
4985
4986 Let's say you are reading article 1, which is short, and article 2 is
4987 quite long, and you are not interested in reading that.  Gnus does not
4988 know this, so it goes ahead and fetches article 2.  You decide to read
4989 article 3, but since Gnus is in the process of fetching article 2, the
4990 connection is blocked.
4991
4992 To avoid these situations, Gnus will open two (count 'em two)
4993 connections to the server.  Some people may think this isn't a very nice
4994 thing to do, but I don't see any real alternatives.  Setting up that
4995 extra connection takes some time, so Gnus startup will be slower.
4996
4997 Gnus will fetch more articles than you will read.  This will mean that
4998 the link between your machine and the @sc{nntp} server will become more
4999 loaded than if you didn't use article pre-fetch.  The server itself will
5000 also become more loaded---both with the extra article requests, and the
5001 extra connection.
5002
5003 Ok, so now you know that you shouldn't really use this thing... unless
5004 you really want to.
5005
5006 @vindex gnus-asynchronous
5007 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
5008 happen automatically.
5009
5010 @vindex nntp-async-number
5011 You can control how many articles that are to be pre-fetched by setting
5012 @code{nntp-async-number}.  This is five by default, which means that when
5013 you read an article in the group, @code{nntp} will pre-fetch the next
5014 five articles.  If this variable is @code{t}, @code{nntp} will pre-fetch
5015 all the articles that it can without bound.  If it is @code{nil}, no
5016 pre-fetching will be made.
5017
5018 @vindex gnus-asynchronous-article-function
5019 You may wish to create some sort of scheme for choosing which articles
5020 that @code{nntp} should consider as candidates for pre-fetching.  For
5021 instance, you may wish to pre-fetch all articles with high scores, and
5022 not pre-fetch low-scored articles.  You can do that by setting the
5023 @code{gnus-asynchronous-article-function}, which will be called with an
5024 alist where the keys are the article numbers.  Your function should
5025 return an alist where the articles you are not interested in have been
5026 removed.  You could also do sorting on article score and the like. 
5027
5028 @node Article Caching
5029 @section Article Caching
5030 @cindex article caching
5031 @cindex caching
5032
5033 If you have an @emph{extremely} slow @sc{nntp} connection, you may
5034 consider turning article caching on.  Each article will then be stored
5035 locally under your home directory.  As you may surmise, this could
5036 potentially use @emph{huge} amounts of disk space, as well as eat up all
5037 your inodes so fast it will make your head swim.  In vodka.
5038
5039 Used carefully, though, it could be just an easier way to save articles.
5040
5041 @vindex gnus-use-long-file-name
5042 @vindex gnus-cache-directory
5043 @vindex gnus-use-cache
5044 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
5045 all articles that are ticked or marked as dormant will then be copied
5046 over to your local cache (@code{gnus-cache-directory}).  Whether this
5047 cache is flat or hierarchal is controlled by the
5048 @code{gnus-use-long-file-name} variable, as usual.
5049
5050 When re-select a ticked or dormant article, it will be fetched from the
5051 cache instead of from the server.  As articles in your cache will never
5052 expire, this might serve as a method of saving articles while still
5053 keeping them where they belong.  Just mark all articles you want to save
5054 as dormant, and don't worry.
5055
5056 When an article is marked as read, is it removed from the cache.
5057
5058 @vindex gnus-cache-remove-articles
5059 @vindex gnus-cache-enter-articles
5060 The entering/removal of articles from the cache is controlled by the
5061 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
5062 variables.  Both are lists of symbols.  The first is @code{(ticked
5063 dormant)} by default, meaning that ticked and dormant articles will be
5064 put in the cache.  The latter is @code{(read)} by default, meaning that
5065 articles that are marked as read are removed from the cache.  Possibly
5066 symbols in these two lists are @code{ticked}, @code{dormant},
5067 @code{unread} and @code{read}.
5068
5069 @findex gnus-jog-cache
5070 So where does the massive article-fetching and storing come into the
5071 picture?  The @code{gnus-jog-cache} command will go through all
5072 subscribed newsgroups, request all unread articles, and store them in
5073 the cache.  You should only ever, ever ever ever, use this command if 1)
5074 your connection to the @sc{nntp} server is really, really, really slow
5075 and 2) you have a really, really, really huge disk.  Seriously.
5076
5077 @vindex gnus-uncacheable-groups
5078 It is likely that you do not want caching on some groups.  For instance,
5079 if your @code{nnml} mail is located under your home directory, it makes no
5080 sense to cache it somewhere else under your home directory.  Unless you
5081 feel that it's neat to use twice as much space.  To limit the caching,
5082 you could set the @code{gnus-uncacheable-groups} regexp to
5083 @samp{"^nnml"}, for instance.  This variable is @samp{"^nnvirtual"} by
5084 default, since caching doesn't really work in @code{nnvirtual} groups,
5085 since @code{nnvirtual} assigns random article numbers to its articles.
5086
5087
5088 @node Article Backlog
5089 @section Article Backlog
5090 @cindex backlog
5091 @cindex article backlog
5092
5093 If you have a slow connection, but the idea of using caching seems
5094 unappealing to you (and it is, really), you can help the situation some
5095 by switching on the @dfn{backlog}.  This is where Gnus will buffer
5096 already read articles so that it doesn't have to re-fetch articles
5097 you've already read.  This only helps if you are in the habit of
5098 re-selecting articles you've recently read, of course.  If you never do
5099 that, turning the backlog on will slow Gnus down a little bit, and
5100 increase memory usage some.
5101
5102 @vindex gnus-keep-backlog
5103 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
5104 at most @var{n} old articles in a buffer for later re-fetching.  If this
5105 variable is non-@code{nil} and is not a number, Gnus will store
5106 @emph{all} read articles, which means that your Emacs will group without
5107 bound before exploding and taking your machine down with you.  I put
5108 that in there just to keep y'all on your toes.  
5109
5110 This variable is @code{nil} by default.
5111
5112
5113 @node Exiting the Summary Buffer
5114 @section Exiting the Summary Buffer
5115 @cindex summary exit
5116
5117 Exiting from the summary buffer will normally update all info on the
5118 group and return you to the group buffer. 
5119
5120 @table @kbd
5121 @item Z Z
5122 @itemx q
5123 @kindex Z Z (Summary)
5124 @kindex q (Summary)
5125 @findex gnus-summary-exit
5126 @vindex gnus-summary-exit-hook
5127 @vindex gnus-summary-prepare-exit-hook
5128 Exit the current group and update all information on the group
5129 (@code{gnus-summary-exit}). @code{gnus-summary-prepare-exit-hook} is
5130 called before doing much of the exiting, and calls
5131 @code{gnus-summary-expire-articles} by default.
5132 @code{gnus-summary-exit-hook} is called after finishing the exiting
5133 process. 
5134 @item Z E
5135 @itemx Q
5136 @kindex Z E (Summary)
5137 @kindex Q (Summary)
5138 @findex gnus-summary-exit-no-update
5139 Exit the current group without updating any information on the group
5140 (@code{gnus-summary-exit-no-update}).
5141 @item Z c
5142 @itemx c
5143 @kindex Z c (Summary)
5144 @kindex c (Summary)
5145 @findex gnus-summary-catchup-and-exit
5146 Mark all unticked articles in the group as read and then exit
5147 (@code{gnus-summary-catchup-and-exit}).
5148 @item Z C
5149 @kindex Z C (Summary)
5150 @findex gnus-summary-catchup-all-and-exit
5151 Mark all articles, even the ticked ones, as read and then exit
5152 (@code{gnus-summary-catchup-all-and-exit}).
5153 @item Z n
5154 @kindex Z n (Summary)
5155 @findex gnus-summary-catchup-and-goto-next-group
5156 Mark all articles as read and go to the next group
5157 (@code{gnus-summary-catchup-and-goto-next-group}). 
5158 @item Z R
5159 @kindex Z R (Summary)
5160 @findex gnus-summary-reselect-current-group
5161 Exit this group, and then enter it again
5162 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
5163 all articles, both read and unread.
5164 @item Z G
5165 @itemx M-g
5166 @kindex Z G (Summary)
5167 @kindex M-g (Summary)
5168 @findex gnus-summary-rescan-group
5169 Exit the group, check for new articles in the group, and select the
5170 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
5171 articles, both read and unread.
5172 @item Z N
5173 @kindex Z N (Summary)
5174 @findex gnus-summary-next-group
5175 Exit the group and go to the next group
5176 (@code{gnus-summary-next-group}). 
5177 @item Z P
5178 @kindex Z P (Summary)
5179 @findex gnus-summary-prev-group
5180 Exit the group and go to the previous group
5181 (@code{gnus-summary-prev-group}). 
5182 @end table
5183
5184 @vindex gnus-exit-group-hook
5185 @code{gnus-exit-group-hook} is called when you exit the current
5186 group.  
5187
5188 @vindex gnus-use-cross-reference
5189 The data on the current group will be updated (which articles you have
5190 read, which articles you have replied to, etc.) when you exit the
5191 summary buffer.  If the @code{gnus-use-cross-reference} variable is
5192 @code{t}, articles that are cross-referenced to this group and are
5193 marked as read, will also be marked as read in the other subscribed
5194 groups they were cross-posted to.  If this variable is neither
5195 @code{nil} nor @code{t}, the article will be marked as read in both
5196 subscribed and unsubscribed groups.
5197
5198 Marking cross-posted articles as read ensures that you'll never have to
5199 read the same article more than once.  Unless, of course, somebody has
5200 posted it to several groups separately.  Posting the same article to
5201 several groups (not cross-posting) is called @dfn{spamming}, and you are
5202 by law required to send nasty-grams to anyone who perpetrates such a
5203 heinous crime.
5204
5205 Remember: Cross-posting is kinda ok, but posting the same article
5206 separately to several groups is not.
5207
5208 One thing that may cause Gnus to not do the cross-posting thing
5209 correctly is if you use an @sc{nntp} server that supports @sc{xover}
5210 (which is very nice, because it speeds things up considerably) which
5211 does not include the @code{Xref} header in its @sc{nov} lines.  This is
5212 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
5213 even with @sc{xover} by registering the @code{Xref} lines of all
5214 articles you actually read, but if you kill the articles, or just mark
5215 them as read without reading them, Gnus will not get a chance to snoop
5216 the @code{Xref} lines out of these articles, and will be unable to use
5217 the cross reference mechanism.
5218
5219 @vindex gnus-nov-is-evil
5220 If you want Gnus to get the @code{Xref}s right all the time, you have to
5221 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
5222 considerably.
5223
5224 C'est la vie.
5225
5226 @node Process/Prefix
5227 @section Process/Prefix
5228 @cindex process/prefix convention
5229
5230 Many functions, among them functions for moving, decoding and saving
5231 articles, use what is known as the @dfn{Process/Prefix convention}.
5232
5233 This is a method for figuring out what articles that the user wants the
5234 command to be performed on.
5235
5236 It goes like this:
5237
5238 If the numeric prefix is N, perform the operation on the next N
5239 articles, starting with the current one.  If the numeric prefix is
5240 negative, perform the operation on the previous N articles, starting
5241 with the current one.
5242
5243 If there is no numeric prefix, but some articles are marked with the
5244 process mark, perform the operation on the articles that are marked with
5245 the process mark.
5246
5247 If there is neither a numeric prefix nor any articles marked with the
5248 process mark, just perform the operation on the current article.
5249
5250 Quite simple, really, but it needs to be made clear so that surprises
5251 are avoided.
5252
5253 @node Saving Articles
5254 @section Saving Articles
5255 @cindex saving articles
5256
5257 Gnus can save articles in a number of ways.  Below is the documentation
5258 for saving articles in a fairly straight-forward fashion (i.e., little
5259 processing of the article is done before it is saved).  For a different
5260 approach (uudecoding, unsharing) you should use @code{gnus-uu}
5261 (@pxref{Decoding Articles}).
5262
5263 @vindex gnus-save-all-headers
5264 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
5265 unwanted headers before saving the article.
5266
5267 @vindex gnus-saved-headers
5268 If the preceeding variable is @code{nil}, all headers that match the
5269 @code{gnus-saved-headers} regexp will be kept, while the rest will be
5270 deleted before saving.
5271
5272 @table @kbd
5273
5274 @item O o
5275 @itemx o
5276 @kindex O o (Summary)
5277 @kindex o (Summary)
5278 @findex gnus-summary-save-article
5279 Save the current article using the default article saver
5280 (@code{gnus-summary-save-article}). 
5281
5282 @item O m
5283 @kindex O m (Summary)
5284 @findex gnus-summary-save-article-mail
5285 Save the current article in mail format
5286 (@code{gnus-summary-save-article-mail}). 
5287
5288 @item O r
5289 @kindex O r (Summary)
5290 @findex gnus-summary-save-article-mail
5291 Save the current article in rmail format
5292 (@code{gnus-summary-save-article-rmail}). 
5293
5294 @item O f
5295 @kindex O f (Summary)
5296 @findex gnus-summary-save-article-file
5297 Save the current article in plain file format
5298 (@code{gnus-summary-save-article-file}). 
5299
5300 @item O b
5301 @kindex O b (Summary)
5302 @findex gnus-summary-save-article-body-file
5303 Save the current article body in plain file format
5304 (@code{gnus-summary-save-article-body-file}). 
5305
5306 @item O h
5307 @kindex O h (Summary)
5308 @findex gnus-summary-save-article-folder
5309 Save the current article in mh folder format
5310 (@code{gnus-summary-save-article-folder}). 
5311
5312 @item O p
5313 @kindex O p (Summary)
5314 @findex gnus-summary-pipe-output
5315 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
5316 the current article to a process (@code{gnus-summary-pipe-output}).
5317 @end table
5318
5319 @vindex gnus-prompt-before-saving
5320 All these commands use the process/prefix convention
5321 (@pxref{Process/Prefix}).  If you save bunches of articles using these
5322 functions, you might get tired of being prompted for files to save each
5323 and every article in.  The prompting action is controlled by
5324 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
5325 default, giving you that excessive prompting action you know and
5326 loathe.  If you set this variable to @code{t} instead, you'll be promted
5327 just once for each series of articles you save.  If you like to really
5328 have Gnus do all your thinking for you, you can even set this variable
5329 to @code{nil}, which means that you will never be prompted for files to
5330 save articles in.  Gnus will simply save all the articles in the default
5331 files. 
5332
5333
5334 @vindex gnus-default-article-saver
5335 You can customize the @code{gnus-default-article-saver} variable to make
5336 Gnus do what you want it to.  You can use any of the four ready-made
5337 functions below, or you can create your own.
5338
5339 @table @code
5340
5341 @item gnus-summary-save-in-rmail
5342 @findex gnus-summary-save-in-rmail
5343 This is the default format, @dfn{babyl}.  Uses the function in the
5344 @code{gnus-rmail-save-name} variable to get a file name to save the
5345 article in.  The default is @code{gnus-plain-save-name}.
5346
5347 @item gnus-summary-save-in-mail
5348 @findex gnus-summary-save-in-mail
5349 Save in a Unix mail (mbox) file.  Uses the function in the
5350 @code{gnus-mail-save-name} variable to get a file name to save the
5351 article in.  The default is @code{gnus-plain-save-name}.
5352
5353 @item gnus-summary-save-in-file
5354 @findex gnus-summary-save-in-file
5355 Append the article straight to an ordinary file.  Uses the function in
5356 the @code{gnus-file-save-name} variable to get a file name to save the
5357 article in.  The default is @code{gnus-numeric-save-name}.
5358
5359 @item gnus-summary-save-body-in-file
5360 @findex gnus-summary-save-body-in-file
5361 Append the article body to an ordinary file.  Uses the function in the
5362 @code{gnus-file-save-name} variable to get a file name to save the
5363 article in.  The default is @code{gnus-numeric-save-name}.
5364
5365 @item gnus-summary-save-in-folder
5366 @findex gnus-summary-save-in-folder
5367 Save the article to an MH folder using @code{rcvstore} from the MH
5368 library.
5369
5370 @item gnus-summary-save-in-vm
5371 @findex gnus-summary-save-in-vm
5372 Save the article in a VM folder.  You have to have the VM mail
5373 reader to use this setting.
5374 @end table
5375
5376 All of these functions, except for the last one, will save the article
5377 in the @code{gnus-article-save-directory}, which is initialized from the
5378 @samp{SAVEDIR} environment variable.
5379
5380 As you can see above, the functions use different functions to find a
5381 suitable name of a file to save the article in.  Below is a list of
5382 available functions that generate names:
5383
5384 @table @code
5385 @item gnus-Numeric-save-name
5386 @findex gnus-Numeric-save-name
5387 Generates file names that look like @samp{~/News/Alt.andrea-dworkin/45}.
5388 @item gnus-numeric-save-name
5389 @findex gnus-numeric-save-name
5390 Generates file names that look like @samp{~/News/alt.andrea-dworkin/45}.
5391 @item gnus-Plain-save-name
5392 @findex gnus-Plain-save-name
5393 Generates file names that look like @samp{~/News/Alt.andrea-dworkin}.
5394 @item gnus-plain-save-name
5395 @findex gnus-plain-save-name
5396 Generates file names that look like @samp{~/News/alt.andrea-dworkin}.
5397 @end table
5398
5399 @vindex gnus-use-long-file-name
5400 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
5401 @code{nil}, all the preceding functions will replace all periods
5402 (@samp{.}) in the group names with slashes (@samp{/})---which means that
5403 the functions will generate hierarchies of directories instead of having
5404 all the files in the toplevel directory
5405 (@samp{~/News/alt/andrea-dworkin} instead of
5406 @samp{~/News/alt.andrea-dworkin}.)
5407
5408 This function also affects kill and score file names.  If this variable
5409 is a list, and the list contains the element @code{not-score}, long file
5410 names will not be used for score files, if it contains the element
5411 @code{not-save}, long file names will not be used for saving, and if it
5412 contains the element @code{not-kill}, long file names will not be used
5413 for kill files.
5414
5415 If you'd like to save articles in a hierarchy that looks something like
5416 a spool, you could
5417
5418 @lisp
5419 (setq gnus-use-long-file-name '(not-save)) ; to get a hierarchy
5420 (setq gnus-default-article-save 'gnus-summary-save-in-file) ; no encoding
5421 @end lisp
5422
5423 Then just save with @kbd{o}. You'd then read this hierarchy with
5424 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
5425 the toplevel directory as the argument (@file{~/News/}). Then just walk
5426 around to the groups/directories with @code{nneething}.
5427
5428
5429 @node Decoding Articles
5430 @section Decoding Articles
5431 @cindex decoding articles
5432
5433 Sometime users post articles (or series of articles) that have been
5434 encoded in some way or other.  Gnus can decode them for you.
5435
5436 @menu 
5437 * Uuencoded Articles::    Uudecode articles.
5438 * Shared Articles::       Unshar articles.
5439 * PostScript Files::      Split PostScript.
5440 * Decoding Variables::    Variables for a happy decoding.
5441 * Viewing Files::         You want to look at the result of the decoding?
5442 @end menu
5443
5444 All these functions use the process/prefix convention
5445 (@pxref{Process/Prefix}) for finding out what articles to work on, with
5446 the extension that a "single article" means "a single series".  Gnus can
5447 find out by itself what articles belong to a series, decode all the
5448 articles and unpack/view/save the resulting file(s).
5449
5450 Gnus guesses what articles are in the series according to the following
5451 simplish rule: The subjects must be (nearly) identical, except for the
5452 last two numbers of the line.  (Spaces are largely ignored, however.)
5453
5454 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
5455 will find all the articles that match the regexp @samp{^cat.gif
5456 ([0-9]+/[0-9]+).*$}.  
5457
5458 Subjects that are nonstandard, like @samp{cat.gif (2/3) Part 6 of a
5459 series}, will not be properly recognized by any of the automatic viewing
5460 commands, and you have to mark the articles manually with @key{#}.
5461
5462 @node Uuencoded Articles
5463 @subsection Uuencoded Articles
5464 @cindex uudecode
5465 @cindex uuencoded articles
5466
5467 @table @kbd
5468 @item X u
5469 @kindex X u (Summary)
5470 @findex gnus-uu-decode-uu
5471 Uudecodes the current series (@code{gnus-uu-decode-uu}).
5472 @item X U
5473 @kindex X U (Summary)
5474 @findex gnus-uu-decode-uu-and-save
5475 Uudecodes and saves the current series
5476 (@code{gnus-uu-decode-uu-and-save}).
5477 @item X v u
5478 @kindex X v u (Summary)
5479 @findex gnus-uu-decode-uu-view
5480 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
5481 @item X v U
5482 @kindex X v U (Summary)
5483 @findex gnus-uu-decode-uu-and-save-view
5484 Uudecodes, views and saves the current series
5485 (@code{gnus-uu-decode-uu-and-save-view}). 
5486 @end table
5487
5488 Remember that these all react to the presence of articles marked with
5489 the process mark.  If, for instance, you'd like to uncode and save an
5490 entire newsgroup, you'd typically do @kbd{M P a}
5491 (@code{gnus-uu-mark-all}) and then @kbd{X U}
5492 (@code{gnus-uu-decode-uu-and-save}).
5493
5494 All this is very much different from how @code{gnus-uu} worked with
5495 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
5496 the sun.  This version of @code{gnus-uu} generally assumes that you mark
5497 articles in some way (@pxref{Setting Process Marks}) and then press
5498 @kbd{X u}.
5499
5500 Note: When trying to decode articles that have names matching
5501 @code{gnus-uu-notify-files}, which is hard-coded to
5502 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
5503 automatically post an article on @samp{comp.unix.wizards} saying that
5504 you have just viewed the file in question.  This feature can't be turned
5505 off.
5506
5507 @node Shared Articles
5508 @subsection Shared Articles
5509 @cindex unshar
5510 @cindex shared articles
5511
5512 @table @kbd
5513 @item X s
5514 @kindex X s (Summary)
5515 @findex gnus-uu-decode-unshar
5516 Unshars the current series (@code{gnus-uu-decode-unshar}).
5517 @item X S
5518 @kindex X S (Summary)
5519 @findex gnus-uu-decode-unshar-and-save
5520 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
5521 @item X v s
5522 @kindex X v s (Summary)
5523 @findex gnus-uu-decode-unshar-view
5524 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
5525 @item X v S
5526 @kindex X v S (Summary)
5527 @findex gnus-uu-decode-unshar-and-save-view
5528 Unshars, views and saves the current series
5529 (@code{gnus-uu-decode-unshar-and-save-view}). 
5530 @end table
5531
5532 @node PostScript Files
5533 @subsection PostScript Files
5534 @cindex PostScript
5535
5536 @table @kbd
5537 @item X p
5538 @kindex X p (Summary)
5539 @findex gnus-uu-decode-postscript
5540 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
5541 @item X P
5542 @kindex X P (Summary)
5543 @findex gnus-uu-decode-postscript-and-save
5544 Unpack and save the current PostScript series
5545 (@code{gnus-uu-decode-postscript-and-save}).
5546 @item X v p
5547 @kindex X v p (Summary)
5548 @findex gnus-uu-decode-postscript-view
5549 View the current PostScript series
5550 (@code{gnus-uu-decode-postscript-view}).
5551 @item X v P
5552 @kindex X v P (Summary)
5553 @findex gnus-uu-decode-postscript-and-save-view
5554 View and save the current PostScript series
5555 (@code{gnus-uu-decode-postscript-and-save-view}). 
5556 @end table
5557
5558 @node Decoding Variables
5559 @subsection Decoding Variables
5560
5561 Adjective, not verb.
5562
5563 @menu 
5564 * Rule Variables::          Variables that say how a file is to be viewed.
5565 * Other Decode Variables::  Other decode variables.
5566 * Uuencoding & Posting::    Variables for customizing uuencoding.
5567 @end menu
5568
5569 @node Rule Variables
5570 @subsubsection Rule Variables
5571 @cindex rule variables
5572
5573 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
5574 variables are on the form
5575   
5576 @lisp
5577       (list '(regexp1 command2)
5578             '(regexp2 command2)
5579             ...)
5580 @end lisp
5581
5582 @table @code
5583 @item gnus-uu-user-view-rules
5584 @vindex gnus-uu-user-view-rules
5585 This variable is consulted first when viewing files.  If you wish to use,
5586 for instance, @code{sox} to convert an @samp{.au} sound file, you could
5587 say something like:
5588 @lisp
5589        (setq gnus-uu-user-view-rules
5590          (list '(\"\\\\.au$\" \"sox %s -t .aiff > /dev/audio\")))
5591 @end lisp
5592 @item gnus-uu-user-view-rules-end
5593 @vindex gnus-uu-user-view-rules-end
5594 This variable is consulted if Gnus couldn't make any matches from the
5595 user and default view rules.
5596 @item gnus-uu-user-archive-rules
5597 @vindex gnus-uu-user-archive-rules
5598 This variable can be used to say what commands should be used to unpack
5599 archives.
5600 @end table
5601
5602 @node Other Decode Variables
5603 @subsubsection Other Decode Variables
5604
5605 @table @code
5606 @item gnus-uu-ignore-files-by-name
5607 @vindex gnus-uu-ignore-files-by-name
5608 Files with name matching this regular expression won't be viewed.
5609
5610 @item gnus-uu-ignore-files-by-type
5611 @vindex gnus-uu-ignore-files-by-type
5612 Files with a @sc{mime} type matching this variable won't be viewed.
5613 Note that Gnus tries to guess what type the file is based on the name.
5614 @code{gnus-uu} is not a @sc{mime} package (yet), so this is slightly
5615 kludgey.
5616
5617 @item gnus-uu-tmp-dir
5618 @vindex gnus-uu-tmp-dir
5619 Where @code{gnus-uu} does its work.
5620
5621 @item gnus-uu-do-not-unpack-archives
5622 @vindex gnus-uu-do-not-unpack-archives
5623 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
5624 looking for files to display.
5625
5626 @item gnus-uu-view-and-save
5627 @vindex gnus-uu-view-and-save
5628 Non-@code{nil} means that the user will always be asked to save a file
5629 after viewing it.
5630
5631 @item gnus-uu-ignore-default-view-rules
5632 @vindex gnus-uu-ignore-default-view-rules
5633 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
5634 rules.
5635
5636 @item gnus-uu-ignore-default-archive-rules
5637 @vindex gnus-uu-ignore-default-archive-rules
5638 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
5639 unpacking commands.
5640
5641 @item gnus-uu-kill-carriage-return
5642 @vindex gnus-uu-kill-carriage-return
5643 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
5644 from articles.
5645
5646 @item gnus-uu-unmark-articles-not-decoded
5647 @vindex gnus-uu-unmark-articles-not-decoded
5648 Non-@code{nil} means that @code{gnus-uu} will mark articles that were
5649 unsuccessfully decoded as unread.
5650
5651 @item gnus-uu-correct-stripped-uucode
5652 @vindex gnus-uu-correct-stripped-uucode
5653 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
5654 uuencoded files that have had trailing spaces deleted.
5655
5656 @item gnus-uu-view-with-metamail
5657 @vindex gnus-uu-view-with-metamail
5658 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
5659 commands defined by the rule variables and just fudge a @sc{mime}
5660 content type based on the file name.  The result will be fed to
5661 @code{metamail} for viewing.
5662
5663 @item gnus-uu-save-in-digest
5664 @vindex gnus-uu-save-in-digest
5665 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
5666 decoding, will save in digests.  If this variable is @code{nil},
5667 @code{gnus-uu} will just save everything in a file without any
5668 embellishments.  The digesting almost conforms to RFC1153---no easy way
5669 to specify any meaningful volume and issue numbers were found, so I
5670 simply dropped them.
5671
5672 @end table
5673
5674 @node Uuencoding & Posting
5675 @subsubsection Uuencoding & Posting
5676
5677 @table @code
5678
5679 @item gnus-uu-post-include-before-composing
5680 @vindex gnus-uu-post-include-before-composing
5681 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
5682 before you compose the article.  If this variable is @code{t}, you can
5683 either include an encoded file with @key{C-c C-i} or have one included
5684 for you when you post the article.
5685
5686 @item gnus-uu-post-length
5687 @vindex gnus-uu-post-length
5688 Maximum length of an article.  The encoded file will be split into how
5689 many articles it takes to post the entire file.
5690
5691 @item gnus-uu-post-threaded
5692 @vindex gnus-uu-post-threaded
5693 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
5694 thread.  This may not be smart, as no other decoder I have seen are able
5695 to follow threads when collecting uuencoded articles.  (Well, I have
5696 seen one package that does that---@code{gnus-uu}, but somehow, I don't
5697 think that counts...) Default is @code{nil}.
5698
5699 @item gnus-uu-post-separate-description
5700 @vindex gnus-uu-post-separate-description
5701 Non-@code{nil} means that the description will be posted in a separate
5702 article.  The first article will typically be numbered (0/x).  If this
5703 variable is @code{nil}, the description the user enters will be included
5704 at the beginning of the first article, which will be numbered (1/x).
5705 Default is @code{t}.
5706
5707 @end table
5708
5709 @node Viewing Files
5710 @subsection Viewing Files
5711 @cindex viewing files
5712 @cindex pseudo-articles
5713
5714 After decoding, if the file is some sort of archive, Gnus will attempt
5715 to unpack the archive and see if any of the files in the archive can be
5716 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
5717 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
5718 uncompress and detar the main file, and then view the two pictures.
5719 This unpacking process is recursive, so if the archive contains archives
5720 of archives, it'll all be unpacked.
5721
5722 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
5723 extracted file into the summary buffer.  If you go to these "articles",
5724 you will be prompted for a command to run (usually Gnus will make a
5725 suggestion), and then the command will be run.
5726
5727 @vindex gnus-view-pseudo-asynchronously
5728 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
5729 until the viewing is done before proceeding.
5730
5731 @vindex gnus-view-pseudos
5732 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
5733 the pseudo-articles into the summary buffer, but view them
5734 immediately.  If this variable is @code{not-confirm}, the user won't even
5735 be asked for a confirmation before viewing is done.
5736
5737 @vindex gnus-view-pseudos-separately 
5738 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
5739 pseudo-article will be created for each file to be viewed.  If
5740 @code{nil}, all files that use the same viewing command will be given as
5741 a list of parameters to that command.
5742
5743 So; there you are, reading your @emph{pseudo-articles} in your
5744 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
5745 Why isn't anything real anymore? How did we get here?
5746
5747
5748 @node Article Treatment
5749 @section Article Treatment
5750
5751 Reading through this huge manual, you may have quite forgotten that the
5752 object of newsreaders are to actually, like, read what people have
5753 written.  Reading articles.  Unfortunately, people are quite bad at
5754 writing, so there are tons of functions and variables to make reading
5755 these articles easier.
5756
5757 @menu
5758 * Article Highlighting::    You want to make the article look like fruit salad.
5759 * Article Hiding::          You also want to make certain info go away.
5760 * Article Washing::         Lots of way-neat functions to make life better.
5761 * Article Buttons::         Clcik on URLs, Message-IDs, addresses and the like.
5762 * Article Date::            Grumble, UT!
5763 @end menu
5764
5765
5766 @node Article Highlighting
5767 @subsection Article Highlighting
5768 @cindex highlight
5769
5770 Not only do you want your article buffer to look like fruit salad, but
5771 you want it to look like technicolor fruit salad.
5772
5773 @table @kbd
5774
5775 @item W H a
5776 @kindex W H a
5777 @findex gnus-article-highlight
5778 Highlight the current article (@code{gnus-article-highlight}).
5779
5780 @item W H h
5781 @kindex W H h
5782 @findex gnus-article-highlight-headers
5783 @vindex gnus-header-face-alist
5784 Highlight the headers (@code{gnus-article-highlight-headers}).  The
5785 highlighting will be done according to the @code{gnus-header-face-alist}
5786 variable, which is a list where each element has the form @var{(regexp
5787 name content)}.  @var{regexp} is a regular expression for matching the
5788 header,  @var{name} is the face used for highling the header name and
5789 @var{content} is the face for highlighting the header value.  The first
5790 match made will be used.
5791
5792 @item W H c
5793 @kindex W H c
5794 @findex gnus-article-highlight-citation
5795 Highlight cited text (@code{gnus-article-highlight-citation}). 
5796
5797 Some variables to customize the citation highlights:
5798
5799 @table @code
5800 @vindex gnus-cite-parse-max-size
5801 @item gnus-cite-parse-max-size
5802 If the article size if bigger than this variable (which is 25000 by
5803 default), no citation highlighting will be performed.  
5804
5805 @item gnus-cite-prefix-regexp
5806 @vindex gnus-cite-prefix-regexp
5807 Regexp mathcing the longest possible citation prefix on a line. 
5808
5809 @item gnus-cite-max-prefix
5810 @vindex gnus-cite-max-prefix
5811 Maximum possible length for a citation prefix (default 20).
5812
5813 @item gnus-supercite-regexp
5814 @vindex gnus-supercite-regexp
5815 Regexp matching normal SuperCite attribution lines.  
5816
5817 @item gnus-supercite-secondary-regexp
5818 @vindex gnus-supercite-secondary-regexp
5819 Regexp matching mangled SuperCite attribution lines.
5820
5821 @item gnus-cite-minimum-match-count
5822 @vindex gnus-cite-minimum-match-count
5823 Minimum number of identical prefixes we have to see before we believe
5824 that it's a citation.
5825
5826 @item gnus-cite-attribution-prefix
5827 @vindex gnus-cite-attribution-prefix
5828 Regexp matching the beginning of an attribution line.
5829
5830 @item gnus-cite-addtribution-suffix
5831 @vindex gnus-cite-addtribution-suffix
5832 Regexp matching the end of an attribution line.
5833
5834 @item gnus-cite-attribution-face
5835 @vindex gnus-cite-attribution-face
5836 Face used for attribution lines.  It is merged with the face for the
5837 cited text belonging to the attribution.
5838
5839 @end table
5840
5841
5842 @item W H s
5843 @kindex W H s
5844 @vindex gnus-signature-separator
5845 @findex gnus-article-highlight-signature
5846 Highlight the signature (@code{gnus-article-highlight-signature}).
5847 Everything after @code{gnus-signature-separator} in an article will be
5848 considered a signature.
5849
5850 @end table
5851
5852
5853 @node Article Hiding
5854 @subsection Article Hiding
5855 @cindex article hiding
5856
5857 Or rather, hiding certain things in each article.  There usually is much
5858 to much gruft in most articles.  
5859
5860 @table @kbd
5861
5862 @item W W a
5863 @kindex W W a (Summary)
5864 @findex gnus-article-hide
5865 Do maximum hiding on the summary buffer (@kbd{gnus-article-hide}). 
5866
5867 @item W W h
5868 @kindex W W h (Summary)
5869 @findex gnus-article-hide-headers
5870 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
5871 Headers}. 
5872
5873 @item W W s
5874 @kindex W W s (Summary)
5875 @findex gnus-article-hide-signature
5876 Hide signature (@code{gnus-article-hide-signature}).
5877
5878 @item W W p
5879 @kindex W W p (Summary)
5880 @findex gnus-article-hide-pgp
5881 Hide @sc{pgp} signatures (@code{gnus-article-hide-pgp}). 
5882
5883 @item W W c
5884 @kindex W W c (Summary)
5885 @findex gnus-article-hide-citation
5886 Hide citation (@code{gnus-article-hide-citation}).  Two variables for
5887 customizing the hiding:
5888
5889 @table @code
5890
5891 @item gnus-cite-hide-percentage
5892 @vindex gnus-cite-hide-percentage
5893 If the cited text is of a bigger percentage than this variable (default
5894 50), hide the cited text.
5895
5896 @item gnus-cite-hide-absolute
5897 @vindex gnus-cite-hide-absolute
5898 The cited text must be have at least this length (default 10) before it
5899 is hidden.
5900
5901 @end table
5902
5903 Also see @xref{Article Highlighting} for further variables for
5904 citation customization.
5905
5906 @end table
5907
5908
5909 @node Article Washing
5910 @subsection Article Washing
5911 @cindex washing
5912 @cindex article washing
5913
5914 We call this "article washing" for a really good reason.  Namely, the
5915 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
5916
5917 @dfn{Washing} is defined by us as "changing something from something to
5918 something else", but normally results in something looking better.
5919 Cleaner, perhaps.
5920
5921 @table @kbd
5922
5923 @item W l
5924 @kindex W l (Summary)
5925 @findex gnus-summary-stop-page-breaking
5926 Remove page breaks from the current article
5927 (@code{gnus-summary-stop-page-breaking}).
5928
5929 @item W r
5930 @kindex W r (Summary)
5931 @findex gnus-summary-caesar-message
5932 Do a Caesar rotate (rot13) on the article buffer
5933 (@code{gnus-summary-caesar-message}). 
5934
5935 @item A g
5936 @kindex A g (Summary)
5937 @findex gnus-summary-show-article
5938 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
5939 given a prefix, fetch the current article, but don't run any of the
5940 article treatment functions.  This will give you a "raw" article, just
5941 the way it came from the server.
5942
5943 @item W t
5944 @kindex W t (Summary)
5945 @findex gnus-summary-toggle-header
5946 Toggle whether to display all headers in the article buffer
5947 (@code{gnus-summary-toggle-header}). 
5948
5949 @item W m
5950 @kindex W m (Summary)
5951 @findex gnus-summary-toggle-mime
5952 Toggle whether to run the article through @sc{mime} before displaying
5953 (@code{gnus-summary-toggle-mime}).
5954
5955 @item W o
5956 @kindex W o (Summary)
5957 @findex gnus-article-treat-overstrike
5958 Treat overstrike (@code{gnus-article-treat-overstrike}).
5959
5960 @item W w
5961 @kindex W w (Summary)
5962 @findex gnus-article-word-wrap
5963 Do word wrap (@code{gnus-article-word-wrap}).
5964
5965 @item W c
5966 @kindex W c (Summary)
5967 @findex gnus-article-remove-cr
5968 Remove CR (@code{gnus-article-remove-cr}).
5969
5970 @item W q
5971 @kindex W q (Summary)
5972 @findex gnus-article-de-quoted-unreadable
5973 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
5974
5975 @item W f
5976 @kindex W f (Summary)
5977 @cindex x-face
5978 @findex gnus-article-display-x-face
5979 @findex gnus-article-x-face-command
5980 @vindex gnus-article-x-face-command
5981 @vindex gnus-article-x-face-too-ugly
5982 Look for and display any X-Face headers
5983 (@code{gnus-article-display-x-face}). The command executed by this
5984 function is given by the @code{gnus-article-x-face-command} variable. If
5985 this variable is a string, this string will be executed in a sub-shell.
5986 If it is a function, this function will be called with the face as the
5987 argument. If the @code{gnus-article-x-face-too-ugly} (which is a regexp)
5988 matches the @code{From} header, the face will not be shown.
5989
5990 @item W b
5991 @kindex W b (Summary)
5992 @findex gnus-article-add-buttons
5993 Add clickable buttons to the article (@code{gnus-article-add-buttons}). 
5994
5995 @item W B
5996 @kindex W B (Summary)
5997 @findex gnus-article-add-buttons-to-head
5998 Add clickable buttons to the article headers
5999 (@code{gnus-article-add-buttons-to-head}).  
6000
6001 @end table
6002
6003
6004 @node Article Buttons
6005 @subsection Article Buttons
6006 @cindex buttons
6007
6008 People often include references to other stuff in articles, and it would
6009 be nice if Gnus could just fetch whatever it is that people talk about
6010 with the minimum of fuzz.
6011
6012 Gnus adds @dfn{buttons} to certain standard references by default:
6013 Well-formed URLs, mail addresses and Message-IDs.  This is controlled by
6014 two variables, one that handles article bodies and one that handles
6015 article heads:
6016
6017 @table @code
6018
6019 @item gnus-button-alist
6020 @vindex gnus-header-button-alist
6021 This is an alist where each entry has this form:
6022
6023 @lisp
6024 (REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
6025 @end lisp
6026
6027 @table @var
6028
6029 @item regexp
6030 All text that match this regular expression will be considered an
6031 external reference.  Here's a typical regexp that match embedded URLs:
6032 @samp{"<URL:\\([^\n\r>]*\\)>"}. 
6033
6034 @item button-par
6035 Gnus has to know which parts of the match is to be highlighted.  This is
6036 a number that says what sub-expression of the regexp that is to be
6037 highlighted.  If you want it all highlighted, you use @samp{0} here.
6038
6039 @item use-p
6040 This form will be @code{eval}ed, and if the result is non-@code{nil},
6041 this is considered a match.  This is useful if you want extra sifting to
6042 avoid false matches.
6043
6044 @item function
6045 This function will be called when you click on this button.
6046
6047 @item data-par
6048 As with @var{button-par}, this is a sub-expression number, but this one
6049 says which part of the match is to be sent as data to @var{function}. 
6050
6051 @end table
6052
6053 So the full entry for buttonizing URLs is then
6054
6055 @lisp
6056 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
6057 @end lisp
6058
6059 @item gnus-header-button-alist
6060 @vindex gnus-header-button-alist
6061 This is just like the other alist, except that it is applied to the
6062 article head only, and that each entry has an additional element that is
6063 used to say what headers to apply the buttonize coding to:
6064
6065 @lisp
6066 (HEADER REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
6067 @end lisp
6068
6069 @var{header} is a regular expression.
6070
6071 @end table
6072
6073 @vindex gnus-article-button-face
6074 @vindex gnus-article-mouse-face
6075 Buttons are highlighted with @code{gnus-article-button-face}, while
6076 @code{gnus-article-mouse-face} is used when the mouse cursor is over the
6077 button.
6078
6079
6080 @node Article Date
6081 @subsection Article Date
6082
6083 The date is most likely generated in some obscure timezone you've never
6084 heard of, so it's quite nice to be able to find out what the time was
6085 when the article was sent.
6086
6087 @table @kbd
6088
6089 @item W T u
6090 @kindex W T u (Summary)
6091 @findex gnus-article-date-ut
6092 Display the date in UT (aka. GMT, aka ZULU)
6093 (@code{gnus-article-date-ut}). 
6094
6095 @item W T l
6096 @kindex W T l (Summary)
6097 @findex gnus-article-date-local
6098 Display the date in the local timezone (@code{gnus-article-date-local}).
6099
6100 @item W T e
6101 @kindex W T e (Summary)
6102 @findex gnus-article-date-lapsed
6103 Say how much time has (e)lapsed between the article was posted and now
6104 (@code{gnus-article-date-lapsed}).
6105
6106 @item W T o
6107 @kindex W T o (Summary)
6108 @findex gnus-article-date-original
6109 Display the original date (@code{gnus-article-date-original}).  This can
6110 be useful if you normally use some other conversion function and is
6111 worried that it might be doing something totally wrong.  Say, claiming
6112 that the article was posted in 1854.  Although something like that is
6113 @emph{totally} impossible.  Don't you trust me? *titter*
6114
6115 @end table
6116
6117
6118 @node Summary Sorting
6119 @section Summary Sorting
6120 @cindex summary sorting
6121
6122 You can have the summary buffer sorted in various ways, even though I
6123 can't really see why you'd want that.
6124
6125 @table @kbd
6126 @item C-c C-s C-n
6127 @kindex C-c C-s C-n (Summary)
6128 @findex gnus-summary-sort-by-number
6129 Sort by article number (@code{gnus-summary-sort-by-number}).
6130 @item C-c C-s C-a
6131 @kindex C-c C-s C-a (Summary)
6132 @findex gnus-summary-sort-by-author
6133 Sort by author (@code{gnus-summary-sort-by-author}).
6134 @item C-c C-s C-s
6135 @kindex C-c C-s C-s (Summary)
6136 @findex gnus-summary-sort-by-subject
6137 Sort by subject (@code{gnus-summary-sort-by-subject}).
6138 @item C-c C-s C-d
6139 @kindex C-c C-s C-d (Summary)
6140 @findex gnus-summary-sort-by-date
6141 Sort by date (@code{gnus-summary-sort-by-date}).
6142 @item C-c C-s C-i
6143 @kindex C-c C-s C-i (Summary)
6144 @findex gnus-summary-sort-by-score
6145 Sort by score (@code{gnus-summary-sort-by-score}).
6146 @end table
6147
6148 These functions will work both when you use threading and when you don't
6149 use threading.  In the latter case, all summary lines will be sorted,
6150 line by line.  In the former case, sorting will be done on a
6151 root-by-root basis, which might not be what you were looking for.  To
6152 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
6153 Commands}).
6154
6155
6156 @node Finding the Parent
6157 @section Finding the Parent
6158 @cindex parent articles
6159 @cindex referring articles
6160
6161 @findex gnus-summary-refer-parent-article
6162 @kindex ^ (Summary)
6163 If you'd like to read the parent of the current article, and it is not
6164 displayed in the article buffer, you might still be able to.  That is,
6165 if the current group is fetched by @sc{nntp}, the parent hasn't expired
6166 and the @code{References} in the current article are not mangled, you
6167 can just press @kbd{^} or @kbd{A r}
6168 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
6169 you'll get the parent.  If the parent is already displayed in the
6170 summary buffer, point will just move to this article.
6171
6172 @findex gnus-summary-refer-references
6173 @kindex A R (Summary)
6174 You can have Gnus fetch all articles mentioned in the @code{References}
6175 header of the article by pushing @kbd{A R}
6176 (@code{gnus-summary-refer-references}). 
6177
6178 @findex gnus-summary-refer-article
6179 @kindex M-^ (Summary)
6180 You can also ask the @sc{nntp} server for an arbitrary article, no
6181 matter what group it belongs to.  @kbd{M-^}
6182 (@code{gnus-summary-refer-article}) will ask you for a
6183 @code{Message-Id}, which is one of those long thingies that look
6184 something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.  You have to get
6185 it all exactly right.  No fuzzy searches, I'm afraid.
6186
6187 @vindex gnus-refer-article-method
6188 If the group you are reading is located on a backend that does not
6189 support fetching by @code{Message-Id} very well (like @code{nnspool}),
6190 you can set @code{gnus-refer-article-method} to an @sc{nntp} method.  It
6191 would, perhaps, be best if the @sc{nntp} server you consult is the same
6192 as the one that keeps the spool you are reading from updated, but that's
6193 not really necessary.
6194
6195 Most of the mail backends support fetching by @code{Message-ID}, but do
6196 not do a particularly excellent job of it.  That is, @code{nnmbox} and
6197 @code{nnbabyl} are able to locate articles from any groups, while
6198 @code{nnml} and @code{nnfolder} are only able to locate articles that
6199 have been posted to the current group.  (Anything else would be too time
6200 consuming.)  @code{nnmh} does not support this at all.
6201
6202
6203 @node Mail Group Commands
6204 @section Mail Group Commands
6205 @cindex mail group commands
6206
6207 Some commands only make sense in mail groups.  If these commands are
6208 illegal in the current group, they will raise a hell and let you know.
6209
6210 All these commands (except the expiry and edit commands) use the
6211 process/prefix convention (@pxref{Process/Prefix}).
6212
6213 @table @kbd
6214 @item B e
6215 @kindex B e (Summary)
6216 @findex gnus-summary-expire-articles
6217 Expire all expirable articles in the group
6218 (@code{gnus-summary-expire-articles}).
6219
6220 @item B M-C-e
6221 @kindex B M-C-e (Summary)
6222 @findex gnus-summary-expire-articles-now
6223 Expunge all the expirable articles in the group
6224 (@code{gnus-summary-expire-articles-now}). This means that @strong{all}
6225 articles that are eligeble for expiry in the current group will
6226 disappear forever into that big @file{/dev/null} in the sky.
6227
6228 @item B DEL
6229 @kindex B DEL (Summary)
6230 @findex gnus-summary-delete-articles
6231 Delete the mail article.  This is "delete" as in "delete it from your
6232 disk forever and ever, never to return again." Use with caution.
6233 (@code{gnus-summary-delete-article}).
6234
6235 @item B m
6236 @kindex B m (Summary)
6237 @cindex move mail
6238 @findex gnus-summary-move-article
6239 Move the article from one mail group to another
6240 (@code{gnus-summary-move-article}). 
6241
6242 @item B c
6243 @kindex B c (Summary)
6244 @cindex copy mail
6245 @findex gnus-summary-copy-article
6246 Copy the article from one group (mail group or not) to a mail group
6247 (@code{gnus-summary-copy-article}).
6248
6249 @item B i
6250 @kindex B i (Summary)
6251 @findex gnus-summary-import-article
6252 Import a random file into the current mail newsgroup
6253 (@code{gnus-summary-import-article}).  You will be prompted for a file
6254 name, a @code{From} header and a @code{Subject} header.
6255
6256 Something similar can be done by just starting to compose a mail
6257 message.  Instead of typing @kbd{C-c C-c} to mail it off, you can type
6258 @kbd{C-c C-p} instead.  This will put the message you have just created
6259 into the current mail group.
6260
6261 @item B r
6262 @kindex B r (Summary)
6263 @findex gnus-summary-respool-article
6264 Respool the mail article (@code{gnus-summary-move-article}).
6265
6266 @item B w
6267 @itemx e
6268 @kindex B w (Summary)
6269 @kindex e (Summary)
6270 @findex gnus-summary-edit-article
6271 @kindex C-c C-c (Article)
6272 Edit the current article (@code{gnus-summary-edit-article}).  To finish
6273 editing and make the changes permanent, type @kbd{C-c C-c}
6274 (@kbd{gnus-summary-edit-article-done}).
6275
6276 @item B q
6277 @kindex B q (Summary)
6278 @findex gnus-summary-respool-query
6279 If you want to respool an article, you might be curious as to what group
6280 the article will end up in before you do the respooling.  This command
6281 will tell you (@code{gnus-summary-fancy-query}). 
6282 @end table
6283
6284 @node Various Summary Stuff
6285 @section Various Summary Stuff
6286
6287 @menu
6288 * Group Information::                 Information oriented commands.
6289 * Searching for Articles::            Multiple article commands.
6290 * Really Various Summary Commands::   Those pesky non-conformant commands.
6291 @end menu
6292
6293 @vindex gnus-summary-prepare-hook
6294 @code{gnus-summary-prepare-hook} is called after the summary buffer has
6295 been generated.  You might use it to, for instance, highlight lines or
6296 modify the look of the buffer in some other ungodly manner.  I don't
6297 care.
6298
6299 @node Group Information
6300 @subsection Group Information
6301
6302 @table @kbd
6303 @item H f
6304 @kindex H f (Summary)
6305 @findex gnus-summary-fetch-faq
6306 @vindex gnus-group-faq-directory
6307 Try to fetch the FAQ (list of frequently asked questions) for the
6308 current group (@code{gnus-summary-fetch-faq}).  Gnus will try to get the
6309 FAQ from @code{gnus-group-faq-directory}, which is usually a directory
6310 on a remote machine.  This variable can also be a list of directories.
6311 In that case, giving a prefix to this command will allow you to choose
6312 between the various sites.  @code{ange-ftp} probably will be used for
6313 fetching the file.
6314 @item H d
6315 @kindex H d (Summary)
6316 @findex gnus-summary-describe-group
6317 Give a brief description of the current group
6318 (@code{gnus-summary-describe-group}).  If given a prefix, force
6319 rereading the description from the server.
6320 @item H h
6321 @kindex H h (Summary)
6322 @findex gnus-summary-describe-briefly
6323 Give a very brief description of the most important summary keystrokes
6324 (@code{gnus-summary-describe-briefly}). 
6325 @item H i
6326 @kindex H i (Summary)
6327 @findex gnus-info-find-node
6328 Go to the Gnus info node (@code{gnus-info-find-node}).
6329 @end table
6330
6331 @node Searching for Articles
6332 @subsection Searching for Articles
6333
6334 @table @kbd
6335 @item M-s
6336 @kindex M-s (Summary)
6337 @findex gnus-summary-search-article-forward
6338 Search through all subsequent articles for a regexp
6339 (@code{gnus-summary-search-article-forward}). 
6340 @item M-r
6341 @kindex M-r (Summary)
6342 @findex gnus-summary-search-article-backward
6343 Search through all previous articles for a regexp
6344 (@code{gnus-summary-search-article-backward}). 
6345 @item &
6346 @kindex & (Summary)
6347 @findex gnus-summary-execute-command
6348 This command will prompt you for a header field, a regular expression to
6349 match on this field, and a command to be executed if the match is made
6350 (@code{gnus-summary-execute-command}).
6351 @item M-&
6352 @kindex M-& (Summary)
6353 @findex gnus-summary-universal-argument
6354 Perform any operation on all articles that have been marked with
6355 the process mark (@code{gnus-summary-universal-argument}).
6356 @end table
6357
6358 @node Really Various Summary Commands
6359 @subsection Really Various Summary Commands
6360
6361 @table @kbd
6362 @item A D
6363 @kindex A D (Summary)
6364 @findex gnus-summary-enter-digest-group
6365 If the current article is a digest, you might use this command to enter
6366 you into a group based on the current digest to ease reading
6367 (@code{gnus-summary-enter-digest-group}).
6368 @item C-t
6369 @kindex C-t (Summary)
6370 @findex gnus-summary-toggle-truncation
6371 Toggle truncation of summary lines (@code{gnus-summary-toggle-truncation}).
6372 @item =
6373 @kindex = (Summary)
6374 @findex gnus-summary-expand-window
6375 Expand the summary buffer window (@code{gnus-summary-expand-window}).
6376 If given a prefix, force an @code{article} window configuration. 
6377 @end table
6378
6379 @node The Article Buffer
6380 @chapter The Article Buffer
6381 @cindex article buffer
6382
6383 The articles are displayed in the article buffer, of which there is only
6384 one.  All the summary buffer share the same article buffer.
6385
6386 @menu
6387 * Hiding Headers::        Deciding what headers should be displayed.
6388 * Using Mime::            Pushing articles through @sc{mime} before reading them.
6389 * Customizing Articles::  Tailoring the look of the articles.
6390 * Article Keymap::        Keystrokes available in the article buffer
6391 * Misc Article::          Other stuff.
6392 @end menu
6393
6394 @node Hiding Headers
6395 @section Hiding Headers
6396 @cindex hiding headers
6397 @cindex deleting headers
6398
6399 The top section of each article is the @dfn{head}.  (The rest is the
6400 @dfn{body}, but you may have guessed that already.)
6401
6402 @vindex gnus-show-all-headers
6403 There is a lot of useful information in the head: the name of the person
6404 who wrote the article, the date it was written and the subject of the
6405 article.  That's well and nice, but there's also lots of information
6406 most people do not want to see---what systems the article has passed
6407 through before reaching you, the @code{Message-Id}, the
6408 @code{References}, etc. ad nauseum---and you'll probably want to get rid
6409 of some of those lines.  If you want to keep all those lines in the
6410 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
6411
6412 Gnus provides you with two variables for sifting headers:
6413
6414 @table @code
6415 @item gnus-visible-headers
6416 @vindex gnus-visible-headers
6417 If this variable is non-@code{nil}, it should be a regular expression
6418 that says what headers you wish to keep in the article buffer.  All
6419 headers that do not match this variable will be hidden.
6420
6421 For instance, if you only want to see the name of the person who wrote
6422 the article and the subject, you'd say:
6423
6424 @lisp
6425 (setq gnus-visible-headers "^From:\\|^Subject:")
6426 @end lisp
6427
6428 @item gnus-ignored-headers
6429 @vindex gnus-ignored-headers
6430 This variable is the reverse of @code{gnus-visible-headers}.  If this
6431 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
6432 should be a regular expression that matches all lines that you want to
6433 hide.  All lines that do not match this variable will remain visible.
6434
6435 For instance, if you just want to get rid of the @code{References} line
6436 and the @code{Xref} line, you might say:
6437
6438 @lisp
6439 (setq gnus-ignored-headers "^References:\\|^Xref:")
6440 @end lisp
6441
6442 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
6443 variable will have no effect.
6444 @end table
6445
6446 @vindex gnus-sorted-header-list
6447 Gnus can also sort the headers for you.  (It does this by default.)  You
6448 can control the sorting by setting the @code{gnus-sorted-header-list}
6449 variable.  It is a list of regular expressions that says in what order
6450 the headers are to be displayed.
6451
6452 For instance, if you want the name of the author of the article first,
6453 and then the subject, you might say something like:
6454
6455 @lisp
6456 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
6457 @end lisp
6458
6459 Any headers that are to remain visible, but are not listed in this
6460 variable, will be displayed in random order after all the headers that
6461 are listed in this variable.
6462
6463 @node Using Mime
6464 @section Using Mime
6465 @cindex @sc{mime}
6466
6467 Mime is a standard for waving your hands through the air, aimlessly,
6468 while people stand around yawning.
6469
6470 @sc{mime}, however, is a standard for encoding your articles, aimlessly,
6471 while all newsreaders die of fear.
6472
6473 @sc{mime} may specify what character set the article uses, the encoding
6474 of the characters, and it also makes it possible to embed pictures and
6475 other naughty stuff in innocent-looking articles.
6476
6477 @vindex gnus-show-mime
6478 @vindex gnus-show-mime-method
6479 Gnus handles @sc{mime} by shoving the articles through
6480 @code{gnus-show-mime-method}, which is @code{metamail-buffer} by
6481 default.  If @code{gnus-strict-mime} is non-@code{nil}, the @sc{mime}
6482 method will only be used it there are @sc{mime} headers in the article.
6483 Set @code{gnus-show-mime} to @code{t} if you want to use @sc{mime} all
6484 the time; it might be best to just use the toggling functions from the
6485 summary buffer to avoid getting nasty surprises. (For instance, you
6486 enter the group @samp{alt.sing-a-long} and, before you know it,
6487 @sc{mime} has decoded the sound file in the article and some horrible
6488 sing-a-long song comes streaming out out your speakers, and you can't
6489 find the volume button, because there isn't one, and people are starting
6490 to look at you, and you try to stop the program, but you can't, and you
6491 can't find the program to control the volume, and everybody else in the
6492 room suddenly decides to look at you disdainfully, and you'll feel
6493 rather stupid.)
6494
6495 Any similarity to real events and people is purely coincidental.  Ahem.
6496
6497
6498 @node Customizing Articles
6499 @section Customizing Articles
6500 @cindex article customization
6501
6502 @vindex gnus-article-display-hook
6503 The @code{gnus-article-display-hook} is called after the article has
6504 been inserted into the article buffer.  It is meant to handle all
6505 treatment of the article before it is displayed. 
6506
6507 By default it contains @code{gnus-article-hide-headers},
6508 @code{gnus-article-treat-overstrike}, and
6509 @code{gnus-article-maybe-highlight}, but there are thousands, nay
6510 millions, of functions you can put in this hook.  For an overview of
6511 functions @xref{Article Highlighting}, @xref{Article Hiding},
6512 @xref{Article Washing}, @xref{Article Buttons} and @xref{Article Date}. 
6513
6514 You can, of course, write your own functions.  The functions are called
6515 from the article buffer, and you can do anything you like, pretty much.
6516 There is no information that you have to keep in the buffer---you can
6517 change everything.  However, you shouldn't delete any headers.  Instead
6518 make them invisible if you want to make them go away.
6519
6520
6521 @node Article Keymap
6522 @section Article Keymap
6523
6524 @c Most of the keystrokes in the summary buffer can also be used in the
6525 @c article buffer.  They should behave as if you typed them in the summary
6526 @c buffer, which means that you don't actually have to have a summary
6527 @c buffer displayed while reading.  You can do it all from the article
6528 @c buffer.
6529
6530 A few additional keystrokes are available:
6531
6532 @table @kbd
6533 @item SPACE
6534 @kindex SPACE (Article)
6535 @findex gnus-article-next-page
6536 Scroll forwards one page (@code{gnus-article-next-page}).
6537 @item DEL
6538 @kindex DEL (Article)
6539 @findex gnus-article-prev-page
6540 Scroll backwards one page (@code{gnus-article-prev-page}).
6541 @item C-c ^
6542 @kindex C-c ^ (Article)
6543 @findex gnus-article-refer-article
6544 If point is in the neighborhood of a @code{Message-Id} and you press
6545 @kbd{r}, Gnus will try to get that article from the server
6546 (@code{gnus-article-refer-article}).
6547 @item C-c C-m
6548 @kindex C-c C-m (Article)
6549 @findex gnus-article-mail
6550 Send a reply to the address near point (@code{gnus-article-mail}).  If
6551 given a prefix, include the mail.
6552 @item s
6553 @kindex s (Article)
6554 @findex gnus-article-show-summary
6555 Reconfigure the buffers so that the summary buffer becomes visible
6556 (@code{gnus-article-show-summary}).
6557 @item ?
6558 @kindex ? (Article)
6559 @findex gnus-article-describe-briefly
6560 Give a very brief description of the available keystrokes
6561 (@code{gnus-article-describe-briefly}). 
6562 @end table
6563
6564 @node Misc Article
6565 @section Misc Article
6566
6567 @table @code
6568 @vindex gnus-article-prepare-hook
6569 @item gnus-article-prepare-hook
6570 This hook is called right after the article has been inserted into the
6571 article buffer.  It is mainly intended for functions that do something
6572 depending on the contents; it should probably not be used for changing
6573 the contents of the article buffer.
6574 @vindex gnus-article-display-hook
6575 @item gnus-article-display-hook
6576 This hook is called as the last thing when displaying an article, and is
6577 intended for modifying the contents of the buffer, doing highlights,
6578 hiding headers, and the like.
6579 @vindex gnus-article-mode-line-format
6580 @item gnus-article-mode-line-format
6581 This variable is a format string along the same lines as
6582 @code{gnus-summary-mode-line-format}.  It accepts exactly the same
6583 format specifications as that variable.
6584 @vindex gnus-break-pages
6585 @item gnus-break-pages
6586 Controls whether @dfn{page breaking} is to take place.  If this variable
6587 is non-@code{nil}, the articles will be divided into pages whenever a
6588 page delimiter appears in the article.  If this variable is @code{nil},
6589 paging will not be done.
6590 @item gnus-page-delimiter
6591 @vindex gnus-page-delimiter
6592 This is the delimiter mentioned above.  By default, it is @samp{^L}
6593 (form linefeed).
6594 @end table
6595
6596 @node The Server Buffer
6597 @chapter The Server Buffer
6598
6599 Traditionally, a @dfn{server} is a machine or a piece of software that
6600 one connects to, and then requests information from.  Gnus does not
6601 connect directly to any real servers, but does all transactions through
6602 one backend or other.  But that's just putting one layer more between
6603 the actual media and Gnus, so we might just as well say that each
6604 backend represents a virtual server.
6605
6606 For instance, the @code{nntp} backend may be used to connect to several
6607 different actual @sc{nntp} servers, or, perhaps, to many different ports
6608 on the same actual @sc{nntp} server.  You tell Gnus which backend to
6609 use, and what parameters to set by specifying a @dfn{select method}.
6610
6611 These select methods specifications can sometimes become quite
6612 complicated---say, for instance, that you want to read from the
6613 @sc{nntp} server @samp{news.funet.fi} on port number @samp{13}, which
6614 hangs if queried for @sc{nov} headers and has a buggy select.  Ahem.
6615 Anyways, if you had to specify that for each group that used this
6616 server, that would be too much work, so Gnus offers a way of putting
6617 names to methods, which is what you do in the server buffer.
6618
6619 To enter the server buffer, user the @kbd{^}
6620 (@code{gnus-group-enter-server-mode}) command in the group buffer.
6621
6622 @menu
6623 * Server Buffer Format::   You can customize the look of this buffer.
6624 * Server Commands::        Commands to manipulate servers.
6625 * Example Methods::        Examples server specifications.
6626 * Servers & Methods::      You can use server names as select methods.
6627 * Unavailable Servers::    Some servers you try to contact may be down.
6628 @end menu
6629
6630 @node Server Buffer Format
6631 @section Server Buffer Format
6632 @cindex server buffer format
6633
6634 @vindex gnus-server-line-format
6635 You can change the look of the server buffer lines by changing the
6636 @code{gnus-server-line-format} variable.  This is a @code{format}-like
6637 variable, with some simple extensions:
6638
6639 @table @samp
6640 @item h 
6641 How the news is fetched---the backend name.
6642 @item n
6643 The name of this server.
6644 @item w
6645 Where the news is to be fetched from---the address.
6646 @end table
6647
6648 @node Server Commands
6649 @section Server Commands
6650 @cindex server commands
6651
6652 @table @kbd
6653 @item SPC
6654 Browse the current server (@code{gnus-server-read-server}).
6655 @item q
6656 Return to the group buffer (@code{gnus-server-exit}).
6657 @item l
6658 List all servers (@code{gnus-server-list-servers}).
6659 @item k
6660 Kill the current server (@code{gnus-server-kill-server}).
6661 @item y
6662 Yank the previously killed server (@code{gnus-server-yank-server}).
6663 @item c
6664 Copy the current server (@code{gnus-server-copy-server}).
6665 @item a
6666 Add a new server (@code{gnus-server-add-server}).
6667 @item e
6668 Edit a server (@code{gnus-server-edit-server}).
6669 @end table
6670
6671 @node Example Methods
6672 @section Example Methods
6673
6674 Most select methods are pretty simple and self-explanatory: 
6675
6676 @lisp
6677 (nntp "news.funet.fi")
6678 @end lisp
6679
6680 Reading directly from the spool is even simpler:
6681
6682 @lisp
6683 (nnspool "")
6684 @end lisp
6685
6686 As you can see, the first element in a select method is the name of the
6687 backend, and the second is the @dfn{address}, or @dfn{name}, if you
6688 will. 
6689
6690 After these two elements, there may be a random number of @var{(variable
6691 form)} pairs.
6692
6693 To go back to the first example---imagine that you want to read from
6694 port @code{15} from that machine.  This is what the select method should
6695 look like then:
6696
6697 @lisp
6698 (nntp "news.funet.fi" (nntp-port-number 15))
6699 @end lisp
6700
6701 You should read the documentation to each backend to find out what
6702 variables are relevant, but here's an @code{nnmh} example. 
6703
6704 @code{nnmh} is a mail backend that reads a spool-like structure.  Say
6705 you have two structures that you wish to access: One is your private
6706 mail spool, and the other is a public one.  Here's the possible spec for
6707 you private mail:
6708
6709 @lisp
6710 (nnmh "private" (nnmh-directory "~/private/mail/"))
6711 @end lisp
6712
6713 (This server is then called @samp{private}, but you may have guessed
6714 that. 
6715
6716 Here's the method for the public spool:
6717
6718 @lisp
6719 (nnmh "public" 
6720       (nnmh-directory "/usr/information/spool/") 
6721       (nnmh-get-new-mail nil))
6722 @end lisp
6723
6724 @node Servers & Methods
6725 @section Servers & Methods
6726
6727 Wherever you would normally use a select method
6728 (eg. @code{gnus-secondary-select-method}, in the group select method,
6729 when browsing a foreign server) you can use a virtual server name
6730 instead.  This could potentially save lots of typing.  And it's nice all
6731 over.
6732
6733
6734 @node Unavailable Servers
6735 @section Unavailable Servers
6736
6737 If a server seems to be unreachable, Gnus will mark that server as
6738 @code{denied}.  That means that any subsequent attempt to make contact
6739 with that server will just be ignored.  "It can't be opened," Gnus will
6740 tell you, without making the least effort to see whether that is
6741 actually the case or not.  
6742
6743 That might seem quite naughty, but it does make sense most of the time.
6744 Let's say you have 10 groups subscribed to the server
6745 @samp{nepholococcygia.com}.  This server is located somewhere quite far
6746 away from you, the machine is quite, so it takes 1 minute just to find
6747 out that it refuses connection from you today.  If Gnus were to attempt
6748 to do that 10 times, you'd be quite annoyed, so Gnus won't attempt to do
6749 that.  Once it has gotten a single "connection refused", it will regard
6750 that server as "down".
6751
6752 So, what happens if the machine was only feeling unwell temporarily?
6753 How do you test to see whether the machine has come up again?
6754
6755 You jump to the server buffer (@pxref{The Server Buffer}) and poke ut
6756 with the following commands:
6757
6758 @table @kbd
6759
6760 @item O
6761 @kindex O (Server)
6762 @findex gnus-server-open-server
6763 Try to establish connection to the server on the current line
6764 (@code{gnus-server-open-server}).
6765
6766 @item C
6767 @kindex C (Server)
6768 @findex gnus-server-close-server
6769 Close the connection (if any) to the server
6770 (@code{gnus-server-close-server}).
6771
6772 @item D
6773 @kindex D (Server)
6774 @findex gnus-server-deny-server
6775 Mark the current server as unreachable
6776 (@code{gnus-server-deny-server}). 
6777
6778 @item R
6779 @kindex R (Server)
6780 @findex gnus-server-remove-denials
6781 Remove all marks to whether Gnus was denied connection from all servers
6782 (@code{gnus-server-remove-denials}). 
6783
6784 @end table
6785
6786
6787
6788
6789
6790 @node Scoring
6791 @chapter Scoring
6792 @cindex scoring
6793
6794 Other people use @dfn{kill files}, but we here at Gnus Towers like
6795 scoring better than killing, so we'd rather switch than fight.  They do
6796 something completely different as well, so sit up straight and pay
6797 attention!
6798
6799 @vindex gnus-summary-mark-below
6800 All articles have a default score (@code{gnus-summary-default-score}).
6801 This score may be raised or lowered either interactively or by score
6802 files.  Articles that have a score lower than
6803 @code{gnus-summary-mark-below} are marked as read.
6804
6805 Gnus will read any @dfn{score files} that apply to the current group
6806 before generating the summary buffer.
6807
6808 There are several commands in the summary buffer that insert score
6809 entries based on the current article. You can, for instance, ask Gnus to
6810 lower or increase the score of all articles with a certain subject.
6811
6812 There are two sorts of scoring entries: Permanent and temporary.
6813 Temporary score entries are self-expiring entries.  Any entries that are
6814 temporary and have not been used for, say, a week, will be removed
6815 silently to help keep the sizes of the score files down.
6816
6817 @menu 
6818 * Summary Score Commands::   Adding score entries for the current group.
6819 * Group Score Commands::     General score commands.
6820 * Score Variables::          Customize your scoring.  (My, what terminology).
6821 * Score File Format::        What a score file may contain.
6822 * Score File Editing::       You can edit score files by hand as well.
6823 * Adaptive Scoring::         Big Sister Gnus *knows* what you read.
6824 * Scoring Tips::             How to score effectively.
6825 * Reverse Scoring::          That problem child of old is not problem.
6826 * Global Score Files::       Earth-spanning, ear-splitting score files.
6827 * Kill Files::               They are still here, but they can be ignored.
6828 @end menu
6829
6830 @node Summary Score Commands
6831 @section Summary Score Commands
6832 @cindex score commands
6833
6834 The score commands that alter score entries do not actually modify real
6835 score files.  That would be too inefficient.  Gnus maintains a cache of
6836 previously loaded score files, one of which is considered the
6837 @dfn{current score file alist}.  The score commands simply insert
6838 entries into this list, and upon group exit, this list is saved.
6839
6840 The current score file is by default the group's local score file, even
6841 if no such score file actually exists.  To insert score commands into
6842 some other score file (eg. @file{all.SCORE}), you must first make this
6843 score file the current one.
6844
6845 General score commands that don't actually change the score file:
6846
6847 @table @kbd
6848 @item V s
6849 @kindex V s (Summary)
6850 @findex gnus-summary-set-score
6851 Set the score of the current article (@code{gnus-summary-set-score}).  
6852
6853 @item V S
6854 @kindex V S (Summary)
6855 @findex gnus-summary-current-score
6856 Display the score of the current article
6857 (@code{gnus-summary-current-score}).   
6858
6859 @item V t
6860 @kindex V t (Summary)
6861 @findex gnus-score-find-trace
6862 Display all score rules that have been used on the current article
6863 (@code{gnus-score-find-trace}).   
6864
6865 @item V a
6866 @kindex V a (Summary)
6867 @findex gnus-summary-score-entry
6868 Add a new score entry, and allow specifying all elements 
6869 (@code{gnus-summary-score-entry}).
6870
6871 @item V c
6872 @kindex V c (Summary)
6873 @findex gnus-score-change-score-file
6874 Make a different score file the current
6875 (@code{gnus-score-change-score-file}). 
6876
6877 @item V e
6878 @kindex V e (Summary)
6879 @findex gnus-score-edit-alist
6880 Edit the current score file (@code{gnus-score-edit-alist}).  You will be
6881 popped into a @code{gnus-score-mode} buffer (@pxref{Score File
6882 Editing}).
6883
6884 @item V f
6885 @kindex V f (Summary)
6886 @findex gnus-score-edit-file
6887 Edit a score file and make this score file the current one
6888 (@code{gnus-score-edit-file}).
6889
6890 @item V C
6891 @kindex V C (Summary)
6892 @findex gnus-score-customize
6893 Customize a score file in a visually pleasing manner
6894 (@code{gnus-score-customize}). 
6895
6896 @item I C-i
6897 @kindex I C-i (Summary)
6898 @findex gnus-summary-raise-score
6899 Increase the score of the current article
6900 (@code{gnus-summary-raise-score}).
6901
6902 @item L C-l
6903 @kindex L C-l (Summary)
6904 @findex gnus-summary-lower-score
6905 Lower the score of the current article
6906 (@code{gnus-summary-lower-score}). 
6907 @end table
6908
6909 The rest of these commands modify the local score file.
6910
6911 @table @kbd
6912 @item V m
6913 @kindex V m (Summary)
6914 @findex gnus-score-set-mark-below
6915 Prompt for a score, and mark all articles with a score below this as
6916 read (@code{gnus-score-set-mark-below}).
6917 @item V E
6918 @kindex V E (Summary)
6919 @findex gnus-score-set-expunge-below
6920 Expunge all articles with a score below the default score (or the
6921 numeric prefix) (@code{gnus-score-set-expunge-below}).
6922 @end table
6923
6924 The keystrokes for actually making score entries follow a very regular
6925 pattern, so there's no need to list all the commands.  (Hundreds of
6926 them.)  
6927
6928 @enumerate
6929 @item
6930 The first key is either @kbd{I} (upper case i) for increasing the score
6931 or @kbd{L} for lowering the score. 
6932 @item
6933 The second key says what header you want to score on.  The following
6934 keys are available:
6935 @table @kbd
6936 @item a
6937 Score on the author name.
6938 @item s
6939 Score on the subject line.
6940 @item x
6941 Score on the Xref line---i.e., the cross-posting line.
6942 @item t
6943 Score on thread---the References line.
6944 @item d
6945 Score on the date.
6946 @item l
6947 Score on the number of lines.
6948 @item i
6949 Score on the Message-ID.
6950 @item f
6951 Score on followups.
6952 @item b
6953 Score on the body.
6954 @item h
6955 Score on the head.
6956 @end table
6957
6958 @item
6959 The third key is the match type.  Which match types are legal depends on
6960 what headers you are scoring on.
6961
6962 @table @code
6963 @item strings 
6964
6965 @table @kbd
6966 @item e
6967 Exact matching.
6968 @item s
6969 Substring matching.
6970 @item f
6971 Fuzzy matching.
6972 @item r
6973 Regexp matching
6974 @end table
6975
6976 @item date
6977 @table @kbd
6978 @item b
6979 Before date.
6980 @item a
6981 At date.
6982 @item n
6983 This date.
6984 @end table
6985
6986 @item number
6987 @table @kbd
6988 @item <
6989 Less than number.
6990 @item =
6991 Equal to number.
6992 @item >
6993 Greater than number.
6994 @end table
6995 @end table
6996
6997 @item 
6998 The fourth and final key says whether this is a temporary (i.e., expiring)
6999 score entry, or a permanent (i.e., non-expiring) score entry, or whether
7000 it is to be done immediately, without adding to the score file.
7001 @table @kbd
7002 @item t
7003 Temporary score entry.
7004 @item p
7005 Permanent score entry.
7006 @item i
7007 Immediately scoring.
7008 @end table
7009
7010 @end enumerate
7011
7012 So, let's say you want to increase the score on the current author with
7013 exact matching permanently: @kbd{I a e p}.  If you want to lower the
7014 score based on the subject line, using substring matching, and make a
7015 temporary score entry: @kbd{L s s t}.  Pretty easy.
7016
7017 To make things a bit more complicated, there are shortcuts.  If you use
7018 a capital letter on either the second or third keys, Gnus will use
7019 defaults for the remaining one or two keystrokes.  The defaults are
7020 "substring" and "temporary".  So @kbd{I A} is the same as @kbd{I a s t},
7021 and @kbd{I a R} is the same as @kbd{I a r t}.
7022
7023 @vindex gnus-score-mimic-keymap
7024 The @code{gnus-score-mimic-keymap} says whether these commands will
7025 pretend they are keymaps or not.
7026
7027
7028 @node Group Score Commands
7029 @section Group Score Commands
7030 @cindex group score commands
7031
7032 There aren't many of these as yet, I'm afraid.
7033
7034 @table @kbd
7035
7036 @item W f
7037 @kindex W f (Group)
7038 @findex gnus-score-flush-cache
7039 Gnus maintains a cache of score alists to avoid having to reload them
7040 all the time.  This command will flush the cache
7041 (@code{gnus-score-flush-cache}). 
7042
7043 @end table
7044
7045
7046 @node Score Variables
7047 @section Score Variables
7048 @cindex score variables
7049
7050 @table @code
7051 @item gnus-use-scoring
7052 @vindex gnus-use-scoring
7053 If @code{nil}, Gnus will not check for score files, and will not, in
7054 general, do any score-related work.
7055
7056 @item gnus-kill-killed
7057 @vindex gnus-kill-killed
7058 If this variable is @code{nil}, Gnus will never apply score files to
7059 articles that have already been through the kill process.  While this
7060 may save you lots of time, it also means that if you apply a kill file
7061 to a group, and then change the kill file and want to run it over you
7062 group again to kill more articles, it won't work.  You have to set this
7063 variable to @code{t} to do that.
7064
7065 @item gnus-kill-files-directory
7066 @vindex gnus-kill-files-directory
7067 All kill and score files will be stored in this directory, which is
7068 initialized from the @samp{SAVEDIR} environment variable by default.
7069
7070 @item gnus-score-file-suffix
7071 @vindex gnus-score-file-suffix
7072 Suffix to add to the group name to arrive at the score file name
7073 (@samp{SCORE} by default.)
7074
7075 @item gnus-score-uncacheable-files
7076 @vindex gnus-score-uncacheable-files
7077 @cindex score cache
7078 All score files are normally cached to avoid excessive re-loading of
7079 score files.  However, if this might make you Emacs grow big and
7080 bloated, so this regexp can be used to weed out score files that are
7081 unlikely to be needed again.  It would be a bad idea to deny caching of
7082 @file{all.SCORE}, while it might be a good idea to not cache
7083 @file{comp.infosystems.www.authoring.misc.ADAPT}.  In fact, this
7084 variable is @samp{"ADAPT$"} by default, so no adaptive score files will
7085 be cached.
7086
7087 @item gnus-score-interactive-default-score
7088 @vindex gnus-score-interactive-default-score
7089 Score used by all the interactive raise/lower commands to raise/lower
7090 score with.  Default is 1000, which may seem excessive, but this is to
7091 ensure that the adaptive scoring scheme gets enough room to play with.
7092 We don't want the small changes from the adaptive scoring to overwrite
7093 manually entered data.
7094
7095 @item gnus-summary-default-score
7096 @vindex gnus-summary-default-score
7097 Default score of an article, which is 0 by default.
7098
7099 @item gnus-score-over-mark
7100 @vindex gnus-score-over-mark
7101 Mark (in the third column) used for articles with a score over the
7102 default.  Default is @samp{+}.
7103
7104 @item gnus-score-below-mark
7105 @vindex gnus-score-below-mark
7106 Mark (in the third column) used for articles with a score below the
7107 default.  Default is @samp{-}.
7108
7109 @item gnus-score-find-score-files-function
7110 @vindex gnus-score-find-score-files-function
7111 Function used to find score files for the current group.  This function
7112 is called with the name of the group as the argument. 
7113
7114 Predefined functions available are:
7115 @table @code
7116
7117 @item gnus-score-find-single
7118 @findex gnus-score-find-single
7119 Only apply the group's own score file.
7120
7121 @item gnus-score-find-bnews
7122 @findex gnus-score-find-bnews
7123 Apply all score files that match, using bnews syntax.  For instance, if
7124 the current group is @samp{gnu.emacs.gnus}, @samp{all.emacs.all.SCORE},
7125 @samp{not.alt.all.SCORE} and @samp{gnu.all.SCORE} would all apply.  In
7126 short, the instances of @samp{all} in the score file names are
7127 translated into @samp{.*}, and then a regexp match is done.
7128
7129 If @code{gnus-use-long-file-name} is non-@code{nil}, this won't work
7130 very will. It will find stuff like @file{gnu/all/SCORE}, but will not
7131 find files like @file{not/gnu/all/SCORE}. 
7132
7133 @item gnus-score-find-hierarchical
7134 @findex gnus-score-find-hierarchical
7135 Apply all score files from all the parent groups.
7136 @end table
7137 This variable can also be a list of functions.  In that case, all these
7138 functions will be called, and all the returned lists of score files will
7139 be applied.  These functions can also return lists of score alists
7140 directly.  In that case, the functions that return these non-file score
7141 alists should probably be placed before the "real" score file functions,
7142 to ensure that the last score file returned is the local score file.
7143 Phu. 
7144 @item gnus-score-expiry-days
7145 @vindex gnus-score-expiry-days
7146 This variable says how many days should pass before an unused score file
7147 entry is expired.  The default is 7.
7148 @end table
7149
7150 @node Score File Format
7151 @section Score File Format
7152 @cindex score file format
7153
7154 A score file is an @code{emacs-lisp} file that normally contains just a
7155 single form.  Casual users are not expected to edit these files;
7156 everything can be changed from the summary buffer.
7157
7158 Anyway, if you'd like to dig into it yourself, here's an example:
7159
7160 @lisp
7161 (("from"
7162   ("Lars Ingebrigtsen" -10000)
7163   ("Per Abrahamsen")
7164   ("larsi\\|lmi" -50000 nil R))
7165  ("subject"
7166   ("Ding is Badd" nil 728373))
7167  ("xref"
7168   ("alt.politics" -1000 728372 s))
7169  ("lines"
7170   (2 -100 nil <))
7171  (mark 0)
7172  (expunge -1000)
7173  (mark-and-expunge -10)
7174  (read-only nil)
7175  (orphan -10)
7176  (adapt t)
7177  (files "/hom/larsi/News/gnu.SCORE")
7178  (exclude-files "all.SCORE")
7179  (local (gnus-newsgroup-auto-expire t)
7180         (gnus-summary-make-false-root 'empty))
7181  (eval (ding)))
7182 @end lisp
7183
7184 This example demonstrates absolutely everything about a score file. 
7185
7186 Even though this looks much like lisp code, nothing here is actually
7187 @code{eval}ed.  The lisp reader is used to read this form, though, so it
7188 has to be legal syntactically, if not semantically.
7189
7190 Six keys are supported by this alist:
7191
7192 @table @code
7193 @item STRING
7194 If the key is a string, it is the name of the header to perform the
7195 match on.  Scoring can only be performed on these eight headers:
7196 @samp{From}, @samp{Subject}, @samp{References}, @samp{Message-ID},
7197 @samp{Xref}, @samp{Lines}, @samp{Chars} and @samp{Date}.  In addition to
7198 these headers, there are three strings to tell Gnus to fetch the entire
7199 article and do the match on larger parts of the article: @samp{Body}
7200 will perform the match on the body of the article, @samp{Head} will
7201 perform the match on the head of the article, and @samp{All} will
7202 perform the match on the entire article.  Note that using any of these
7203 last three keys will slow down group entry @emph{considerably}.  The
7204 final "header" you can score on is @samp{Followup}.  These score entries
7205 will result in new score entries being added for all follow-ups to
7206 articles that matches these score entries.
7207
7208 Following this key is a random number of score entries, where each score
7209 entry has one to four elements.
7210 @enumerate
7211 @item 
7212 The first element is the @dfn{match element}.  On most headers this will
7213 be a string, but on the Lines and Chars headers, this must be an
7214 integer. 
7215 @item 
7216 If the second element is present, it should be a number---the @dfn{score
7217 element}.  This number should be an integer in the neginf to posinf
7218 interval.  This number is added to the score of the article if the match
7219 is successful.  If this element is not present, the
7220 @code{gnus-score-interactive-default-score} number will be used instead.
7221 @item 
7222 If the third element is present, it should be a number---the @dfn{date
7223 element}.  This date says when the last time this score entry matched,
7224 which provides a mechanism for expiring the score entries.  It this
7225 element is not present, the score entry is permanent.  The date is
7226 represented by the number of days since December 31, 1 ce.
7227 @item 
7228 If the fourth element is present, it should be a symbol---the @dfn{type
7229 element}.  This element specifies what function should be used to see
7230 whether this score entry matches the article.  What match types that can
7231 be used depends on what header you wish to perform the match on.
7232 @table @dfn
7233 @item From, Subject, References, Xref, Message-ID
7234 For most header types, there are the @code{r} and @code{R} (regexp) as
7235 well as @code{s} and @code{S} (substring) types and @code{e} and
7236 @code{E} (exact match) types.  If this element is not present, Gnus will
7237 assume that substring matching should be used.  @code{R} and @code{S}
7238 differ from the other two in that the matches will be done in a
7239 case-sensitive manner.  All these one-letter types are really just
7240 abbreviations for the @code{regexp}, @code{string} and @code{exact}
7241 types, which you can use instead, if you feel like.
7242 @item Lines, Chars
7243 These two headers use different match types: @code{<}, @code{>},
7244 @code{=}, @code{>=} and @code{<=}.
7245 @item Date
7246 For the Date header we have three match types: @code{before}, @code{at}
7247 and @code{after}.  I can't really imagine this ever being useful, but,
7248 like, it would feel kinda silly not to provide this function.  Just in
7249 case.  You never know.  Better safe than sorry.  Once burnt, twice shy.
7250 Don't judge a book by its cover.  Never not have sex on a first date.
7251 @item Head, Body, All
7252 These three match keys use the same match types as the @code{From} (etc)
7253 header uses.
7254 @item Followup
7255 This match key will add a score entry on all articles that followup to
7256 some author.  Uses the same match types as the @code{From} header uses.
7257 @end table
7258 @end enumerate
7259
7260 @item mark
7261 The value of this entry should be a number.  Any articles with a score
7262 lower than this number will be marked as read.
7263 @item expunge
7264 The value of this entry should be a number.  Any articles with a score
7265 lower than this number will be removed from the summary buffer.
7266 @item mark-and-expunge
7267 The value of this entry should be a number.  Any articles with a score
7268 lower than this number will be marked as read and removed from the
7269 summary buffer.
7270 @item files
7271 The value of this entry should be any number of file names.  These files
7272 are assumed to be score files as well, and will be loaded the same way
7273 this one was.
7274 @item exclude-files
7275 The clue of this entry should be any number of files.  This files will
7276 not be loaded, even though they would normally be so, for some reason or
7277 other. 
7278 @item eval
7279 The value of this entry will be @code{eval}el.  This element will be
7280 ignored when handling global score files. 
7281 @item read-only
7282 Read-only score files will not be updated or saved.  Global score files
7283 should feature this atom (@pxref{Global Score Files}).
7284 @item orphan
7285 The value of this entry should be a number.  Articles that do not have
7286 parents will get this number added to their scores.
7287 @item adapt
7288 This entry controls the adaptive scoring.  If it is @code{t}, the
7289 default adaptive scoring rules will be used.  If it is @code{ignore}, no
7290 adaptive scoring will be performed on this group.  If it is a list, this
7291 list will be used as the adaptive scoring rules.  If it isn't present,
7292 or is something other than @code{t} or @code{ignore}, the default
7293 adaptive scoring rules will be used.  If you want to use adaptive
7294 scoring on most groups, you'd set @code{gnus-use-adaptive-scoring} to
7295 @code{t}, and insert an @code{(adapt ignore)} in the groups where you do
7296 not want adaptive scoring.  If you only want adaptive scoring in a few
7297 groups, you'd set @code{gnus-use-adaptive-scoring} to @code{nil}, and
7298 insert @code{(adapt t)} in the score files of the groups where you want
7299 it. 
7300 @item local
7301 @cindex local variables
7302 The value of this entry should be a list of @code{(VAR VALUE)} pairs.
7303 Each @var{var} will be made buffer-local to the current summary buffer,
7304 and set to the value specified. This is a convenient, if somewhat
7305 strange, way of setting variables in some groups if you don't like hooks
7306 much.
7307 @end table
7308
7309 @node Score File Editing
7310 @section Score File Editing
7311
7312 You normally enter all scoring commands from the summary buffer, but you
7313 might feel the urge to edit them by hand as well, so we've supplied you
7314 with a mode for that.  
7315
7316 It's simply a slightly customized @code{emacs-lisp} mode, with these
7317 additional commands:
7318
7319 @table @kbd
7320 @item C-c C-c
7321 @kindex C-c C-c (Score)
7322 @findex gnus-score-edit-done
7323 Save the changes you have made and return to the summary buffer
7324 (@code{gnus-score-edit-done}). 
7325 @item C-c C-d
7326 @kindex C-c C-d (Score)
7327 @findex gnus-score-edit-insert-date
7328 Insert the current date in numerical format
7329 (@code{gnus-score-edit-insert-date}).  This is really the day number, if
7330 you were wondering.
7331 @end table
7332
7333 @node Adaptive Scoring
7334 @section Adaptive Scoring
7335 @cindex adaptive scoring
7336
7337 If all this scoring is getting you down, Gnus has a way of making it all
7338 happen automatically---as if by magic.  Or rather, as if by artificial
7339 stupidity, to be precise.
7340
7341 @vindex gnus-use-adaptive-scoring
7342 When you read an article, or mark an article as read, or kill an
7343 article, you leave marks behind.  On exit from the group, Gnus can sniff
7344 these marks and add score elements depending on what marks it finds.
7345 You turn on this ability by setting @code{gnus-use-adaptive-scoring} to
7346 @code{t}. 
7347
7348 @vindex gnus-default-adaptive-score-alist
7349 To give you complete control over the scoring process, you can customize
7350 the @code{gnus-default-adaptive-score-alist} variable.  By default, it
7351 looks something like this:
7352
7353 @lisp
7354 (defvar gnus-default-adaptive-score-alist
7355   '((gnus-unread-mark)
7356     (gnus-ticked-mark (from 4))
7357     (gnus-dormant-mark (from 5))
7358     (gnus-del-mark (from -4) (subject -1))
7359     (gnus-read-mark (from 4) (subject 2))
7360     (gnus-expirable-mark (from -1) (subject -1))
7361     (gnus-killed-mark (from -1) (subject -3))
7362     (gnus-kill-file-mark)
7363     (gnus-catchup-mark (from -1) (subject -1))))
7364 @end lisp
7365
7366 As you see, each element in this alist has a mark as a key (either a
7367 variable name or a "real" mark---a character).  Following this key is a
7368 random number of header/score pairs.  
7369
7370 To take @code{gnus-del-mark} as an example---this alist says that all
7371 articles that have that mark (i.e., are marked with @samp{D}) will have a
7372 score entry added to lower based on the @code{From} header by -4, and
7373 lowered by @code{Subject} by -1.  Change this to fit your prejudices. 
7374
7375 If you use this scheme, you should set @code{mark-below} to something
7376 small---like -300, perhaps, to avoid having small random changes result
7377 in articles getting marked as read.
7378
7379 After using adaptive scoring for a week or so, Gnus should start to
7380 become properly trained and enhance the authors you like best, and kill
7381 the authors you like least, without you having to say so explicitly. 
7382
7383 You can control what groups the adaptive scoring is to be performed on
7384 by using the score files (@pxref{Score File Format}).  This will also
7385 let you use different rules in different groups.
7386
7387 @vindex gnus-adaptive-file-suffix
7388 The adaptive score entries will be put into a file where the name is the
7389 group name with @code{gnus-adaptive-file-suffix} appended.
7390
7391 @vindex gnus-score-exact-adapt-limit
7392 When doing adaptive scoring, substring or fuzzy matching would probably
7393 give you the best results in most cases. However, if the header one
7394 matches is short, the possibility for false positives is great, so if
7395 the length of the match is less than
7396 @code{gnus-score-exact-adapt-limit}, exact matching will be used. If
7397 this variable is @code{nil}, exact matching will always be used to avoid
7398 this problem.
7399
7400 @node Scoring Tips
7401 @section Scoring Tips
7402 @cindex scoring tips
7403
7404 @table @dfn
7405 @item Crossposts
7406 If you want to lower the score of crossposts, the line to match on is
7407 the @code{Xref} header.
7408 @lisp
7409 ("xref" (" talk.politics.misc:" -1000))
7410 @end lisp
7411 @item Multiple crossposts
7412 If you want to lower the score of articles that have been crossposted to
7413 more than, say, 3 groups:
7414 @lisp
7415 ("xref" (" +[^ ]+:[0-9]+ +[^ ]+:[0-9]+ +[^ ]+:[0-9]+" -1000 nil r))
7416 @end lisp
7417 @item Matching on the body
7418 This is generally not a very good idea---it takes a very long time.
7419 Gnus actually has to fetch each individual article from the server.  But
7420 you might want to anyway, I guess.  Even though there are three match
7421 keys (@code{Head}, @code{Body} and @code{All}), you should choose one
7422 and stick with it in each score file.  If you use any two, each article
7423 will be fetched @emph{twice}.  If you want to match a bit on the
7424 @code{Head} and a bit on the @code{Body}, just use @code{All} for all
7425 the matches.  
7426 @item Marking as read
7427 You will probably want to mark articles that has a score below a certain
7428 number as read.  This is most easily achieved by putting the following
7429 in your @file{all.SCORE} file:
7430 @lisp
7431 ((mark -100))
7432 @end lisp
7433 You may also consider doing something similar with @code{expunge}.  
7434
7435 @item Negated charater classes
7436 If you say stuff like @code{[^abcd]*}, you may get unexpected results.
7437 That will match newlines, which might lead to, well, The Unknown.  Say
7438 @code{[^abcd\n]*} instead.
7439 @end table
7440
7441 @node Reverse Scoring
7442 @section Reverse Scoring
7443 @cindex reverse scoring
7444
7445 If you want to keep just articles that have @samp{Sex with Emacs} in the
7446 subject header, and expunge all other articles, you could put something
7447 like this in your score file:
7448
7449 @lisp
7450 (("subject"
7451   ("Sex with Emacs" 2))
7452  (mark 1)
7453  (expunge 1))
7454 @end lisp
7455
7456 So, you raise all articles that match @samp{Sex with Emacs} and mark the
7457 rest as read, and expunge them to boot.
7458
7459 @node Global Score Files
7460 @section Global Score Files
7461 @cindex global score files
7462
7463 Sure, other newsreaders have "global kill files".  These are usually
7464 nothing more than a single kill file that applies to all groups, stored
7465 in the user's home directory.  Bah!  Puny, weak newsreaders!
7466
7467 What I'm talking about here are Global Score Files.  Score files from
7468 all over the world, from users everywhere, uniting all nations in one
7469 big, happy score file union!  Ange-score!  New and untested!
7470
7471 @vindex gnus-global-score-files
7472 All you have to do to use other people's score files is to set the
7473 @code{gnus-global-score-files} variable.  One entry for each score file,
7474 or each score file directory.  Gnus will decide by itself what score
7475 files are applicable to which group.
7476
7477 Say you want to use all score files in the
7478 @file{/ftp@@ftp.some-where:/pub/score} directory and the single score
7479 file @file{/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE}:
7480
7481 @lisp
7482 (setq gnus-global-score-files
7483       '("/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE"
7484         "/ftp@@ftp.some-where:/pub/score/"))
7485 @end lisp
7486
7487 @findex gnus-score-search-global-directories
7488 Simple, eh?  Directory names must end with a @samp{/}.  These
7489 directories are typically scanned only once during each Gnus session.
7490 If you feel the need to manually re-scan the remote directories, you can
7491 use the @code{gnus-score-search-global-directories} command.
7492
7493 Note that, at present, using this option will slow down group entry
7494 somewhat.  (That is---a lot.)
7495
7496 If you want to start maintaining score files for other people to use,
7497 just put your score file up for anonymous ftp and announce it to the
7498 world.  Become a retro-moderator!  Participate in the retro-moderator
7499 wars sure to ensue, where retro-moderators battle it out for the
7500 sympathy of the people, luring them to use their score files on false
7501 premises!  Yay!  The net is saved!
7502
7503 Here are some tips for the would-be retro-moderator, off the top of my
7504 head: 
7505
7506 @itemize @bullet
7507 @item 
7508 Articles that are heavily crossposted are probably junk. 
7509 @item
7510 To lower a single inappropriate article, lower by @code{Message-Id}.
7511 @item
7512 Particularly brilliant authors can be raised on a permanent basis. 
7513 @item
7514 Authors that repeatedly post off-charter for the group can safely be
7515 lowered out of existence.
7516 @item
7517 Set the @code{mark} and @code{expunge} atoms to obliterate the nastiest
7518 articles completely.
7519 @item 
7520 Use expiring score entries to keep the size of the file down.  You
7521 should probably have a long expiry period, though, as some sites keep
7522 old articles for a long time.
7523 @end itemize
7524
7525 ... I wonder whether other newsreaders will support global score files
7526 in the future.  @emph{Snicker}.  Yup, any day now, newsreaders like Blue
7527 Wave, xrn and 1stReader are bound to implement scoring.  Should we start
7528 holding our breath yet?
7529
7530
7531 @node Kill Files
7532 @section Kill Files
7533 @cindex kill files
7534
7535 Gnus still supports those pesky old kill files.  In fact, the kill file
7536 entries can now be expiring, which is something I wrote before Daniel
7537 Quinlan thought of doing score files, so I've left the code in there.
7538
7539 In short, kill processing is a lot slower (and I do mean @emph{a lot})
7540 than score processing, so it might be a good idea to rewrite your kill
7541 files into score files.
7542
7543 Anyway, a kill file is a normal @code{emacs-lisp} file.  You can put any
7544 forms into this file, which means that you can use kill files as some
7545 sort of primitive hook function to be run on group entry, even though
7546 that isn't a very good idea.
7547
7548 XCNormal kill files look like this:
7549
7550 @lisp
7551 (gnus-kill "From" "Lars Ingebrigtsen")
7552 (gnus-kill "Subject" "ding")
7553 (gnus-expunge "X")
7554 @end lisp
7555
7556 This will mark every article written by me as read, and remove them from
7557 the summary buffer.  Very useful, you'll agree.
7558
7559 Other programs use a totally different kill file syntax.  If Gnus
7560 encounters what looks like a @code{rn} kill file, it will take a stab at
7561 interpreting it. 
7562
7563 Two functions for editing a GNUS kill file:
7564
7565 @table @kbd
7566 @item M-k
7567 @kindex M-k (Summary)
7568 @findex gnus-summary-edit-local-kill
7569 Edit this group's kill file (@code{gnus-summary-edit-local-kill}).
7570
7571 @item M-K
7572 @kindex M-K (Summary)
7573 @findex gnus-summary-edit-global-kill
7574 Edit the general kill file (@code{gnus-summary-edit-global-kill}).
7575 @end table
7576
7577 @vindex gnus-kill-file-name
7578 A kill file for the group @samp{soc.motss} is normally called
7579 @file{soc.motss.KILL}.  The suffix appended to the group name to get
7580 this file name is detailed by the @code{gnus-kill-file-name} variable.
7581 The "global" kill file (not in the score file sense of "global", of
7582 course) is called just @file{KILL}.
7583
7584 @vindex gnus-kill-save-kill-file
7585 If @code{gnus-kill-save-kill-file} is non-@code{nil}, Gnus will save the
7586 kill file after processing, which is necessary if you use expiring
7587 kills. 
7588
7589
7590
7591
7592 @node Various
7593 @chapter Various
7594
7595 @menu
7596 * Interactive::                Making Gnus ask you many questions.
7597 * Windows Configuration::      Configuring the Gnus buffer windows.
7598 * Buttons::                    Get tendonitis in ten easy steps!
7599 * Various Various::            Things that are really various.
7600 @end menu
7601
7602 @node Interactive
7603 @section Interactive
7604 @cindex interaction
7605
7606 @table @code
7607 @item gnus-novice-user
7608 @vindex gnus-novice-user
7609 If this variable is non-@code{nil}, you are either a newcomer to the
7610 World of Usenet, or you are very cautious, which is a nice thing to be,
7611 really.  You will be given questions of the type "Are you sure you want
7612 to do this?" before doing anything dangerous.
7613 @item gnus-expert-user
7614 @vindex gnus-expert-user
7615 If this variable is non-@code{nil}, you will never ever be asked any
7616 questions by Gnus.  It will simply assume you know what your are doing,
7617 no matter how strange.
7618 @item gnus-interactive-catchup
7619 @vindex gnus-interactive-catchup
7620 Require confirmation before catching up a group if non-@code{nil}.
7621 @item gnus-interactive-post
7622 @vindex gnus-interactive-post
7623 If non-@code{nil}, the user will be prompted for a group name when
7624 posting an article.
7625 @item gnus-interactive-exit
7626 @vindex gnus-interactive-exit
7627 Require confirmation before exiting Gnus.
7628 @end table
7629
7630 @node Windows Configuration
7631 @section Windows Configuration
7632 @cindex windows configuration
7633
7634 No, there's nothing here about X, so be quiet.
7635
7636 @table @code
7637 @item gnus-use-full-window
7638 @vindex gnus-use-full-window
7639 If non-@code{nil}, Gnus will delete all other windows and occupy the
7640 entire Emacs screen by itself.  It is @code{t} by default.
7641
7642 @item gnus-buffer-configuration
7643 @vindex gnus-buffer-configuration
7644 This variable describes how much space each Gnus buffer should be given.
7645 Here's an excerpt of this variable:
7646
7647 @lisp
7648 ((group ([group 1.0 point] 
7649          (if gnus-carpal [group-carpal 4])))
7650  (article ([summary 0.25 point] 
7651            [article 1.0])))
7652 @end lisp
7653
7654 This is an alist.  The @dfn{key} is a symbol that names some action or
7655 other.  For instance, when displaying the group buffer, the window
7656 configuration function will use @code{group} as the key.  A full list of
7657 possible names is listed below.
7658
7659 The @dfn{value} is a @dfn{rule} that says how much space each buffer
7660 should occupy.  To take the @code{article} rule as an example -
7661
7662 @lisp
7663 (article ([summary 0.25 point] 
7664           [article 1.0]))
7665 @end lisp
7666
7667 This rule says that the summary buffer should occupy 25% of the screen,
7668 and that it is placed over the article buffer.  As you may have noticed,
7669 100% + 25% is actually 125% (yup, I saw y'all reaching for that
7670 calculator there).  However, the special number @code{1.0} is used to
7671 signal that this buffer should soak up all the rest of the space
7672 avaiable after the rest of the buffers have taken whatever they need.  
7673 There should be only one buffer with the @code{1.0} size spec.
7674
7675 Point will be put in the buffer that has the optional third element
7676 @code{point}. 
7677
7678 Here's a more complicated example:
7679
7680 @lisp
7681 (article ([group 4]
7682           [summary 0.25 point]
7683           (if gnus-carpal [summary-carpal 4])
7684           [article 1.0])
7685 @end lisp
7686
7687 If the size spec is an integer instead of a floating point number, 
7688 then that number will be used to say how many lines a buffer should
7689 occupy, not a percentage.
7690
7691 If an element is a list instead of a vector, this list will be
7692 @code{eval}ed.  If the result is non-@code{nil}, it will be used.  This
7693 means that there will be three buffers if @code{gnus-carpal} is
7694 @code{nil}, and four buffers if @code{gnus-carpal} is non-@code{nil}. 
7695
7696 Not complicated enough for you?  Well, try this on for size:
7697
7698 @lisp
7699 (article ([group 1.0]
7700           [gnus-carpal 4])
7701          ((horizontal 0.5)
7702           [summary 0.25 point]
7703           [summary-carpal 4]
7704           [article 1.0]))
7705 @end lisp
7706
7707 Whoops.  Two buffers with the mystery 100% tag.  And what's that
7708 @code{horizontal} thingie?  
7709
7710 If the first element in one of the rule lists is a list with
7711 @code{horizontal} as the first element, Gnus will split the window
7712 horizontally, giving you two windows side-by-side.  Inside each of these
7713 strips you may carry on all you like in the normal fashion.  The number
7714 following @code{horizontal} says what percentage of the screen is to be
7715 given to this strip.  
7716
7717 For each horizontal split, there @emph{must} be one element that has the
7718 100% tag.  The splitting is never accurate, and this buffer will eat any
7719 leftover lines from the splits. 
7720
7721 Here's a list of all possible keys:
7722
7723 @code{group}, @code{summary}, @code{article}, @code{server},
7724 @code{browse}, @code{group-mail}, @code{summary-mail},
7725 @code{summary-reply}, @code{info}, @code{summary-faq},
7726 @code{edit-group}, @code{edit-server}, @code{reply}, @code{reply-yank},
7727 @code{followup}, @code{followup-yank}, @code{edit-score}.  
7728
7729 @findex gnus-add-configuration
7730 Since this variable is so long and complicated, there's a function you
7731 can use to ease changing the config of a single setting:
7732 @code{gnus-add-configuration}.  If, for instance, you want to change the
7733 @code{article} setting, you could say:
7734
7735 @lisp
7736 (gnus-add-configuration
7737  '(article ([group 4]
7738             [summary .25 point] 
7739             [article 1.0])))
7740 @end lisp
7741
7742 @end table
7743
7744 @node Buttons
7745 @section Buttons
7746 @cindex buttons
7747 @cindex mouse
7748 @cindex click
7749
7750 Those new-fangled @dfn{mouse} contraptions is very popular with the
7751 young, hep kids who don't want to learn the proper way to do things
7752 these days.  Why, I remember way back in the summer of '89, when I was
7753 using Emacs on a Tops 20 system.  Three hundred users on one single
7754 machine, and every user was running Simula compilers.  Bah!
7755
7756 Right.
7757
7758 @vindex gnus-carpal
7759 Well, you can make Gnus display bufferfuls of buttons you can click to
7760 do anything by setting @code{gnus-carpal} to @code{t}.  Pretty simple,
7761 really.  Tell the chiropractor I sent you.
7762
7763
7764 @table @code
7765 @item gnus-carpal-mode-hook
7766 @vindex gnus-carpal-mode-hook
7767 Hook run in all carpal mode buffers.
7768 @item gnus-carpal-button-face
7769 @vindex gnus-carpal-button-face
7770 Face used on buttons.
7771 @item gnus-carpal-group-buffer-buttons
7772 @vindex gnus-carpal-group-buffer-buttons
7773 Buttons in the group buffer.
7774 @item gnus-carpal-summary-buffer-buttons
7775 @vindex gnus-carpal-summary-buffer-buttons
7776 Buttons in the summary buffer.
7777 @item gnus-carpal-server-buffer-buttons
7778 @vindex gnus-carpal-server-buffer-buttons
7779 Buttons in the server buffer.
7780 @item gnus-carpal-browse-buffer-buttons
7781 @vindex gnus-carpal-browse-buffer-buttons
7782 Buttons in the browse buffer.
7783 @end table
7784
7785 All the @code{buttons} variables are lists.  The elements in these list
7786 is either a cons cell where the car contains a text to be displayed and
7787 the cdr contains a function symbol, or a simple string.
7788
7789 @node Various Various
7790 @section Various Various
7791 @cindex mode lines
7792 @cindex highlights
7793
7794 @table @code
7795 @item gnus-verbose
7796 @vindex gnus-verbose
7797 This variable is an integer between zero and ten.  The higher the value,
7798 the more messages will be displayed.  If this variable is zero, Gnus
7799 will never flash any messages, if it is seven, most important messages
7800 will be shown, and if it is ten, Gnus won't ever shut up, but will flash
7801 so many messages it will make your head swim.
7802 @item gnus-updated-mode-lines
7803 @vindex gnus-updated-mode-lines
7804 This is a list of buffers that should keep their mode lines updated.
7805 The list may contain the symbols @code{group}, @code{article} and
7806 @code{summary}.  If the corresponding symbol is present, Gnus will keep
7807 that mode line updated with information that may be pertinent.  If this
7808 variable is @code{nil}, screen refresh may be quicker.
7809
7810 @cindex display-time
7811 @item gnus-mode-non-string-length
7812 @vindex gnus-mode-non-string-length
7813 By default, Gnus displays information on the current article in the mode
7814 lines of the summary and article buffers.  The information Gnus wishes
7815 to display (eg. the subject of the article) is often longer than the
7816 mode lines, and therefore have to be cut off at some point.  This
7817 variable says how long the other elements on the line is (i.e., the
7818 non-info part).  If you put additional elements on the mode line (eg. a
7819 clock), you should modify this variable:
7820 @c Hook written by Keinonen Kari <kk85613@cs.tut.fi>.
7821 @lisp
7822 (add-hook 'display-time-hook
7823           (lambda ()
7824             (setq gnus-mode-non-string-length
7825                   (+ 21 (length display-time-string)))))
7826 @end lisp
7827
7828 @item gnus-visual
7829 @vindex gnus-visual
7830 @cindex visual
7831 @cindex highlighting
7832 @cindex menus
7833
7834 If @code{nil}, Gnus won't attempt to create menus or use fancy colors
7835 or fonts.  This will also inhibit loading the @file{gnus-visual.el}
7836 file.
7837
7838 This variable can also be a list of visual properties that are enabled.
7839 The following elements are legal, and are all set by default:
7840
7841 @table @code
7842
7843 @item summary-highlight
7844 Perform various highlighting in the summary buffer.
7845
7846 @item article-highlight
7847 Perform various highlighting in the article buffer.
7848
7849 @item highlight
7850 Turn on highlighting in all buffers.
7851
7852 @item group-menu
7853 Create menus in the group buffer.
7854
7855 @item summary-menu
7856 Create menus in the summary buffer.
7857
7858 @item article-menu
7859 Create menus in the article buffer.
7860
7861 @item browse-menu
7862 Create menus in the browse buffer.
7863
7864 @item server-menu
7865 Create menus in the server buffer.
7866
7867 @item menu
7868 Create menus in all buffers.
7869
7870 @end table
7871
7872 So if you only want highlighting in the article buffer and menus in all
7873 buffers, you couls say something like:
7874
7875 @lisp
7876 (setq gnus-visual '(article-highlight menu))
7877 @end lisp
7878
7879 If you want only highlighting and no menus whatsoever, you'd say:
7880
7881 @lisp
7882 (setq gnus-visual '(highlight))
7883 @end lisp
7884
7885 @item gnus-mouse-face
7886 @vindex gnus-mouse-face
7887 This is the face (i.e., font) used for mouse highlighting in Gnus.  No
7888 mouse highlights will be done if @code{gnus-visual} is @code{nil}.
7889
7890 @item gnus-display-type
7891 @vindex gnus-display-type
7892 This variable is symbol indicating the display Emacs is running under.
7893 The symbol should be one of @code{color}, @code{grayscale} or
7894 @code{mono}. If Gnus guesses this display attribute wrongly, either set
7895 this variable in your @file{~/.emacs} or set the resource
7896 @code{Emacs.displayType} in your @file{~/.Xdefaults}.
7897
7898 @item gnus-background-mode 
7899 @vindex gnus-background-mode 
7900 This is a symbol indicating the Emacs background brightness. The symbol
7901 should be one of @code{light} or @code{dark}. If Gnus guesses this
7902 frame attribute wrongly, either set this variable in your @file{~/.emacs} or
7903 set the resource @code{Emacs.backgroundMode} in your @file{~/.Xdefaults}. 
7904 `gnus-display-type'.
7905
7906 @item nnheader-max-head-length
7907 @vindex nnheader-max-head-length
7908 When the backends read straight heads of articles, they all try to read
7909 as little as possible.  This variable (default @code{4096}) specifies
7910 the absolute max length the backends will try to read before giving up
7911 on finding a separator line between the head and the body.  If this
7912 variable is @code{nil}, there is no upper read bound.  If it is
7913 @code{t}, the backends won't try to read the articles piece by piece,
7914 but read the entire articles.  This makes sense with some versions of
7915 @code{ange-ftp}. 
7916
7917
7918 @end table
7919
7920 @node Customization
7921 @chapter Customization
7922 @cindex general customization
7923
7924 All variables are properly documented elsewhere in this manual.  This
7925 section is designed to give general pointers on how to customize Gnus
7926 for some quite common situations.
7927
7928 @menu
7929 * Slow/Expensive Connection:: You run a local Emacs and get the news elsewhere.
7930 * Slow Terminal Connection::  You run a remote Emacs.
7931 * Little Disk Space::         You feel that having large setup files is icky.
7932 * Slow Machine::              You feel like buying a faster machine.
7933 @end menu
7934
7935 @node Slow/Expensive Connection
7936 @section Slow/Expensive @sc{nntp} Connection
7937
7938 If you run Emacs on a machine locally, and get your news from a machine
7939 over some very thin strings, you want to cut down on the amount of data
7940 Gnus has to get from the @sc{nntp} server.
7941
7942 @table @code
7943 @item gnus-read-active-file
7944 Set this to @code{nil}, which will inhibit Gnus from requesting the
7945 entire active file from the server.  This file is often v.  large.  You
7946 also have to set @code{gnus-check-new-news} and
7947 @code{gnus-check-bogus-newsgroups} to @code{nil} to make sure that Gnus
7948 doesn't suddenly decide to fetch the active file anyway.
7949 @item gnus-nov-is-evil
7950 This one has to be @code{nil}.  If not, grabbing article headers from
7951 the @sc{nntp} server will not be very fast.  Not all @sc{nntp} servers
7952 support @sc{xover}; Gnus will detect this by itself.
7953 @end table
7954
7955 @node Slow Terminal Connection
7956 @section Slow Terminal Connection
7957
7958 Let's say you use your home computer for dialing up the system that
7959 runs Emacs and Gnus.  If your modem is slow, you want to reduce the
7960 amount of data that is sent over the wires as much as possible.
7961
7962 @table @code
7963 @item gnus-auto-center-summary
7964 Set this to @code{nil} to inhibit Gnus from recentering the summary
7965 buffer all the time.
7966 @item gnus-visible-headers
7967 Cut down on the headers that are included in the articles to the
7968 minimum.  You can, in fact, make do without them altogether---most of the
7969 useful data is in the summary buffer, anyway.  Set this variable to
7970 @samp{"^NEVVVVER"} or @samp{"From:"}, or whatever you feel you need.
7971 @item gnus-article-display-hook
7972 Set this hook to all the available hiding commands:
7973 @lisp
7974 (setq gnus-article-display-hook 
7975       '(gnus-article-hide-headers gnus-article-hide-signature
7976         gnus-article-hide-citation))
7977 @end lisp
7978 @item gnus-use-full-window
7979 By setting this to @code{nil}, you can make all the windows smaller.
7980 While this doesn't really cut down much generally, it means that you
7981 have to see smaller portions of articles before deciding that you didn't
7982 want to read them anyway.
7983 @item gnus-thread-hide-subtree
7984 If this is non-@code{nil}, all threads in the summary buffer will be
7985 hidden initially.
7986 @item gnus-updated-mode-lines
7987 If this is @code{nil}, Gnus will not put information in the buffer mode
7988 lines, which might save some time.
7989 @end table
7990
7991 @node Little Disk Space
7992 @section Little Disk Space
7993
7994 The startup files can get rather large, so you may want to cut their
7995 sizes a bit if you are running out of space.
7996
7997 @table @code
7998 @item gnus-save-newsrc-file
7999 If this is @code{nil}, Gnus will never save @file{.newsrc}---it will
8000 only save @file{.newsrc.eld}.  This means that you will not be able to
8001 use any other newsreaders than Gnus.
8002 @item gnus-save-killed-list
8003 If this is @code{nil}, Gnus will not save the list of dead groups.  You
8004 should also set @code{gnus-check-new-newsgroups} to @code{ask-server}
8005 and @code{gnus-check-bogus-newsgroups} to @code{nil} if you set this
8006 variable to @code{nil}.
8007 @end table
8008
8009 @node Slow Machine
8010 @section Slow Machine
8011
8012 If you have a slow machine, or are just really impatient, there are a
8013 few things you can do to make Gnus run faster.
8014
8015 Set@code{gnus-check-new-newsgroups} and
8016 @code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
8017
8018 Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
8019 @code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
8020 summary buffer faster.
8021
8022 Set @code{gnus-article-display-hook} to @code{nil} to make article
8023 processing a bit faster.
8024
8025
8026 @node Troubleshooting
8027 @chapter Troubleshooting
8028 @cindex troubleshooting
8029
8030 Gnus works @emph{so} well straight out of the box---I can't imagine any
8031 problems, really.
8032
8033 Ahem.
8034
8035 @enumerate
8036
8037 @item
8038 Make sure your computer is switched on.
8039
8040 @item
8041 Make sure that you really load the current Gnus version.  If you have
8042 been running @sc{gnus}, you need to exit Emacs and start it up again before
8043 Gnus will work.
8044
8045 @item
8046 Try doing an @kbd{M-x gnus-version}.  If you get something that looks
8047 like @samp{Gnus v5.46; nntp 4.0} you have the right files loaded.  If,
8048 on the other hand, you get something like @samp{NNTP 3.x} or @samp{nntp
8049 flee}, you have some old @file{.el} files lying around.  Delete these.
8050
8051 @item
8052 Read the help group (@kbd{M h} in the group buffer) for a FAQ and a
8053 how-to. 
8054 @end enumerate
8055
8056 If all else fails, report the problem as a bug.
8057
8058 @cindex bugs
8059 @cindex reporting bugs
8060
8061 @kindex M-x gnus-bug
8062 @findex gnus-bug
8063 If you find a bug in Gnus, you can report it with the @kbd{M-x gnus-bug}
8064 command. @kbd{M-x set-variable RET debug-on-error RET t RET}, and send
8065 me the backtrace. I will fix bugs, but I can only fix them if you send
8066 me a precise description as to how to reproduce the bug.
8067
8068 You really can never be too detailed in a bug report.  Always use the
8069 @kbd{M-x gnus-bug} command when you make bug reports, even if it creates
8070 a 10Kb mail each time you use it, and even if you have sent me your
8071 environment 500 times before.  I don't care.  I want the full info each
8072 time.  
8073
8074 It is also important to remember that I have no memory whatsoever.  If
8075 you send a bug report, and I send you a reply, and then you send back
8076 just "No, it's not! Moron!", I will have no idea what you are insulting
8077 me about.  Always overexplain everything.  It's much easier for all of
8078 us---if I don't have all the information I need, I will just mail you
8079 and ask for more info, and everything takes more time.
8080
8081 If you just need help, you are better off asking on
8082 @samp{gnu.emacs.gnus}.  I'm not very helpful.
8083
8084
8085 @node The End
8086 @chapter The End
8087
8088 Well, that's the manual---you can get on with your life now.  Keep in
8089 touch.  Say hello to your cats from me.  
8090
8091 My @strong{ghod}---I just can't stand goodbyes.  Sniffle.
8092
8093 Ol' Chuck Reznikoff said it pretty well, so I leave the floor to him:
8094
8095 @quotation
8096 @strong{Te Deum}
8097 @sp 1
8098 Not because of victories @*
8099 I sing,@*
8100 having none,@*
8101 but for the common sunshine,@*
8102 the breeze,@*
8103 the largess of the spring.
8104 @sp 1
8105 Not for victory@*
8106 but for the day's work done@*
8107 as well as I was able;@*
8108 not for a seat upon the dais@*
8109 but at the common table.@*
8110 @end quotation
8111
8112 @node Appendix
8113 @chapter A Programmer's Guide to Gnus
8114
8115 It is my hope that other people will figure out smart stuff that Gnus
8116 can do, and that other people will write those smart things as well.  To
8117 facilitate that I thought it would be a good idea to describe the inner
8118 workings of Gnus. And some of the not-so-inner workings, while I'm at
8119 it.
8120
8121 You can never expect the internals of a program not to change, but I
8122 will be defining (in some details) the interface between Gnus and its
8123 backends (this is written in stone), the format of the score files
8124 (ditto), data structures (some are less likely to change than others)
8125 and general method of operations.
8126
8127 @menu 
8128 * Backend Interface::        How Gnus communicates with the servers.
8129 * Score File Syntax::        A BNF definition of the score file standard.
8130 * Headers::                  How Gnus stores headers internally.
8131 * Ranges::                   A handy format for storing mucho numbers.
8132 * Group Info::               The group info format.
8133 @end menu
8134
8135
8136 @node Backend Interface
8137 @section Backend Interface
8138
8139 Gnus doesn't know anything about @sc{nntp}, spools, mail or virtual
8140 groups.  It only knows how to talk to @dfn{virtual servers}.  A virtual
8141 server is a @dfn{backend} and some @dfn{backend variables}.  As examples
8142 of the first, we have @code{nntp}, @code{nnspool} and @code{nnmbox}.  As
8143 examples of the latter we have @code{nntp-port-number} and
8144 @code{nnmbox-directory}.
8145
8146 When Gnus asks for information from a backend---say @code{nntp}---on
8147 something, it will normally include a virtual server name in the
8148 function parameters.  (If not, the backend should use the "current"
8149 virtual server.)  For instance, @code{nntp-request-list} takes a virtual
8150 server as its only (optional) parameter.  If this virtual server hasn't
8151 been opened, the function should fail.
8152
8153 Note that a virtual server name has no relation to some physical server
8154 name.  Take this example:
8155
8156 @lisp
8157 (nntp "odd-one" 
8158       (nntp-address "ifi.uio.no") 
8159       (nntp-port-number 4324))
8160 @end lisp
8161
8162 Here the virtual server name is @samp{"odd-one"} while the name of
8163 the physical server is @samp{"ifi.uio.no"}. 
8164
8165 The backends should be able to switch between several virtual servers.
8166 The standard backends implement this by keeping an alist of virtual
8167 server environments that it pulls down/pushes up when needed.  
8168
8169 There are two groups of interface functions: @dfn{required functions},
8170 which must be present, and @dfn{optional functions}, which Gnus will
8171 always check whether are present before attempting to call.
8172
8173 All these functions are expected to return data in the buffer
8174 @code{nntp-server-buffer} (@samp{" *nntpd*"}), which is somewhat
8175 unfortunately named, but we'll have to live with it.  When I talk about
8176 "resulting data", I always refer to the data in that buffer.  When I
8177 talk about "return value", I talk about the function value returned by
8178 the function call.
8179
8180 Some backends could be said to be @dfn{server-forming} backends, and
8181 some might be said to not be.  The latter are backends that generally
8182 only operate on one group at a time, and have no concept of "server" --
8183 they have a group, and they deliver info on that group and nothing more.
8184
8185 In the examples and definitions I will refer to the imaginary backend
8186 @code{nnchoke}. 
8187
8188 @cindex @code{nnchoke}
8189
8190 @menu
8191 * Required Backend Functions::        Functions that must be implemented.
8192 * Optional Backend Functions::        Functions that need not be implemented.
8193 @end menu
8194
8195
8196 @node Required Backend Functions
8197 @subsection Required Backend Functions
8198
8199 @table @code
8200
8201 @item (nnchoke-retrieve-headers ARTICLES &optional GROUP SERVER FETCH-OLD)
8202
8203 @var{articles} is either a range of article numbers or a list of
8204 @code{Message-ID}s.  Current backends do not fully support either---only
8205 sequences (lists) of article numbers, and most backends do not support
8206 retrieval of @code{Message-ID}s.  But they should try for both. 
8207
8208 The result data should either be HEADs or NOV lines, and the result
8209 value should either be @code{headers} or @code{nov} to reflect this.
8210 This might later be expanded to @code{various}, which will be a mixture
8211 of HEADs and NOV lines, but this is currently not supported by Gnus.  
8212
8213 If @var{fetch-old} is non-@code{nil} it says to try to fetch "extra"
8214 headers, in some meaning of the word.  This is generally done by
8215 fetching (at most) @var{fetch-old} extra headers less than the smallest
8216 article number in @code{articles}, and fill in the gaps as well.  The
8217 presence of this parameter can be ignored if the backend finds it
8218 cumbersome to follow the request.  If this is non-@code{nil} and not a
8219 number, do maximum fetches.
8220
8221 Here's an example HEAD:
8222
8223 @example
8224 221 1056 Article retrieved.
8225 Path: ifi.uio.no!sturles
8226 From: sturles@@ifi.uio.no (Sturle Sunde)
8227 Newsgroups: ifi.discussion
8228 Subject: Re: Something very droll
8229 Date: 27 Oct 1994 14:02:57 +0100
8230 Organization: Dept. of Informatics, University of Oslo, Norway
8231 Lines: 26
8232 Message-ID: <38o8e1$a0o@@holmenkollen.ifi.uio.no>
8233 References: <38jdmq$4qu@@visbur.ifi.uio.no>
8234 NNTP-Posting-Host: holmenkollen.ifi.uio.no
8235 .
8236 @end example
8237
8238 So a @code{headers} return value would imply that there's a number of
8239 these in the data buffer.
8240
8241 Here's a BNF definition of such a buffer:
8242
8243 @example
8244 headers        = *head
8245 head           = error / valid-head
8246 error-message  = [ "4" / "5" ] 2number " " <error message> eol
8247 valid-head     = valid-message *header "." eol
8248 valid-message  = "221 " <number> " Article retrieved." eol
8249 header         = <text> eol
8250 @end example
8251
8252 If the return value is @code{nov}, the data buffer should contain
8253 @dfn{network overview database} lines.  These are basically fields
8254 separated by tabs. 
8255
8256 @example
8257 nov-buffer = *nov-line
8258 nov-line   = 8*9 [ field <TAB> ] eol
8259 field      = <text except TAB>
8260 @end example
8261
8262 For a closer explanation what should be in those fields,
8263 @xref{Headers}. 
8264
8265
8266 @item (nnchoke-open-server SERVER &optional DEFINITIONS)
8267
8268 @var{server} is here the virtual server name.  @var{definitions} is a
8269 list of @code{(VARIABLE VALUE)} pairs that defines this virtual server. 
8270
8271 If the server can't be opened, no error should be signaled.  The backend
8272 may then choose to refuse further attempts at connecting to this
8273 server.  In fact, it should do so. 
8274
8275 If the server is opened already, this function should return a
8276 non-@code{nil} value.  There should be no data returned.
8277
8278
8279 @item (nnchoke-close-server &optional SERVER)
8280
8281 Close connection to @var{server} and free all resources connected
8282 to it. 
8283
8284 There should be no data returned.
8285
8286
8287 @item (nnchoke-request-close)
8288
8289 Close connection to all servers and free all resources that the backend
8290 have reserved.  All buffers that have been created by that backend
8291 should be killed.  (Not the @code{nntp-server-buffer}, though.)
8292
8293 There should be no data returned. 
8294
8295
8296 @item (nnchoke-server-opened &optional SERVER)
8297
8298 This function should return whether @var{server} is opened, and that the
8299 connection to it is still alive.  This function should under no
8300 circumstances attempt to reconnect to a server that is has lost
8301 connection to. 
8302
8303 There should be no data returned.
8304
8305
8306 @item (nnchoke-status-message &optional SERVER)
8307
8308 This function should return the last error message from @var{server}. 
8309
8310 There should be no data returned.
8311
8312
8313 @item (nnchoke-request-article ARTICLE &optional GROUP SERVER TO-BUFFER)
8314
8315 The result data from this function should be the article specified by
8316 @var{article}.  This might either be a @code{Message-ID} or a number.
8317 It is optional whether to implement retrieval by @code{Message-ID}, but
8318 it would be nice if that were possible.
8319
8320 If @var{to-buffer} is non-@code{nil}, the result data should be returned
8321 in this buffer instead of the normal data buffer.  This is to make it
8322 possible to avoid copying large amounts of data from one buffer to
8323 another, and Gnus mainly request articles to be inserted directly into
8324 its article buffer.
8325
8326
8327 @item (nnchoke-open-group GROUP &optional SERVER)
8328
8329 Make @var{group} the current group.  
8330
8331 There should be no data returned by this function.
8332
8333
8334 @item (nnchoke-request-group GROUP &optional SERVER)
8335
8336 Get data on @var{group}.  This function also has the side effect of
8337 making @var{group} the current group. 
8338
8339 Here's an example of some result data and a definition of the same:
8340
8341 @example
8342 211 56 1000 1059 ifi.discussion
8343 @end example
8344
8345 The first number is the status, which should be @samp{211}.  Next is the
8346 total number of articles in the group, the lowest article number, the
8347 highest article number, and finally the group name.  Note that the total
8348 number of articles may be less than one might think while just
8349 considering the highest and lowest article numbers, but some articles
8350 may have been cancelled.  Gnus just discards the total-number, so
8351 whether one should take the bother to generate it properly (if that is a
8352 problem) is left as an excercise to the reader.
8353
8354 @example
8355 group-status = [ error / info ] eol
8356 error        = [ "4" / "5" ] 2<number> " " <Error message>
8357 info         = "211 " 3* [ <number> " " ] <string>
8358 @end example
8359
8360
8361 @item (nnchoke-close-group GROUP &optional SERVER)
8362
8363 Close @var{group} and free any resources connected to it.  This will be
8364 a no-op on most backends. 
8365
8366 There should be no data returned.
8367
8368
8369 @item (nnchoke-request-list &optional SERVER)
8370
8371 Return a list of all groups available on @var{server}.  And that means
8372 @emph{all}. 
8373
8374 Here's an example from a server that only carries two groups:
8375
8376 @example
8377 ifi.test 0000002200 0000002000 y
8378 ifi.discussion 3324 3300 n
8379 @end example
8380
8381 On each line we have a group name, then the highest article number in
8382 that group, the lowest article number, and finally a flag.
8383
8384 @example
8385 active-file = *active-line
8386 active-line = name " " <number> " " <number> " " flags eol
8387 name        = <string>
8388 flags       = "n" / "y" / "m" / "x" / "j" / "=" name
8389 @end example
8390
8391 The flag says whether the group is read-only (@samp{n}), is moderated
8392 (@samp{m}), is dead (@samp{x}), is aliased to some other group
8393 (@samp{=other-group} or none of the above (@samp{y}). 
8394
8395
8396 @item (nnchoke-request-post &optional SERVER)
8397
8398 This function should post the current buffer.  It might return whether
8399 the posting was successful or not, but that's not required.  If, for
8400 instance, the posting is done asynchronously, it has generally not been
8401 completed by the time this function concludes.  In that case, this
8402 function should set up some kind of sentinel to beep the user loud and
8403 clear if the posting could not be completed.
8404
8405 There should be no result data from this function. 
8406
8407
8408 @item (nnchoke-request-post-buffer POST GROUP SUBJECT HEADER ARTICLE-BUFFER INFO FOLLOW-TO RESPECT-POSTER)
8409
8410 This function should return a buffer suitable for composing an article
8411 to be posted by @code{nnchoke-request-post}.  If @var{post} is
8412 non-@code{nil}, this is not a followup, but a totally new article.
8413 @var{group} is the name of the group to be posted to.  @var{subject} is
8414 the subject of the message.  @var{article-buffer} is the buffer being
8415 followed up, if that is the case.  @var{info} is the group info.
8416 @var{follow-to} is the group that one is supposed to re-direct the
8417 article ot.  If @var{respect-poster} is non-@code{nil}, the special
8418 @samp{"poster"} value of a @code{Followup-To} header is to be respected.
8419
8420 There should be no result data returned.
8421
8422 @end table
8423
8424 @node Optional Backend Functions
8425 @subsection Optional Backend Functions
8426
8427 @table @code
8428
8429 @item (nnchoke-retrieve-groups GROUPS &optional SERVER)
8430
8431 @var{groups} is a list of groups, and this function should request data
8432 on all those groups.  How it does it is of no concern to Gnus, but it
8433 should attempt to do this in a speedy fashion.
8434
8435 The return value of this function can be either @code{active} or
8436 @code{group}, which says what the format of the result data is.  The
8437 former is in the same format as the data from
8438 @code{nnchoke-request-list}, while the latter is a buffer full of lines
8439 in the same format as @code{nnchoke-request-group} gives.
8440
8441 @example
8442 group-buffer = *active-line / *group-status
8443 @end example
8444
8445
8446 @item (nnchoke-request-update-info GROUP INFO &optional SERVER)
8447
8448 A Gnus group info (@pxref{Group Info}) is handed to the backend for
8449 alterations.  This comes in handy if the backend really carries all the
8450 information (as is the case with virtual an imap groups).  This function
8451 may alter the info in any manner it sees fit, and should return the
8452 (altered) group info.  This function may alter the group info
8453 destructively, so no copying is needed before boogying. 
8454
8455 There should be no result data from this function.
8456
8457
8458 @item (nnchoke-request-scan &optional GROUP SERVER)
8459
8460 This function may be called at any time (by Gnus or anything else) to
8461 request that the backend check for incoming articles, in one way or
8462 another.  A mail backend will typically read the spool file or query the
8463 POP server when this function is invoked.  The @var{group} doesn't have
8464 to be heeded---if the backend decides that it is too much work just
8465 scanning for a single group, it may do a total scan of all groups.  It
8466 would be nice, however, to keep things local if that's practical.
8467
8468 There should be no result data from this function.
8469
8470
8471 @item (nnchoke-request-asynchronous GROUP &optional SERVER ARTICLES)
8472
8473 This is a request to fetch articles asynchronously later.
8474 @var{articles} is an alist of @var{(article-number line-number)}.  One
8475 would generally expect that if one later fetches article number 4, for
8476 instance, some sort of asynchronous fetching of the articles after 4
8477 (which might be 5, 6, 7 or 11, 3, 909 depending on the order in that
8478 alist) would be fetched asynchronouly, but that is left up to the
8479 backend.  Gnus doesn't care.
8480
8481 There should be no result data from this function.
8482  
8483
8484 @item (nnchoke-request-group-description GROUP &optional SERVER)
8485
8486 The result data from this function should be a description of
8487 @var{group}. 
8488
8489 @example
8490 description-line = name <TAB> description eol
8491 name             = <string>
8492 description      = <text>
8493 @end example
8494
8495 @item (nnchoke-request-list-newsgroups &optional SERVER)
8496
8497 The result data from this function should be the description of all
8498 groups available on the server.
8499
8500 @example
8501 description-buffer = *description-line
8502 @end example
8503
8504
8505 @item (nnchoke-request-newgroups DATE &optional SERVER)
8506
8507 The result data from this function should be all groups that were
8508 created after @samp{date}, which is in normal human-readable date
8509 format.  The data should be in the active buffer format.
8510
8511
8512 @item (nnchoke-request-create-groups GROUP &optional SERVER)
8513
8514 This function should create an empty group with name @var{group}.  
8515
8516 There should be no return data.
8517
8518
8519 @item (nnchoke-request-expire-articles ARTICLES &optional GROUP SERVER FORCE)
8520
8521 This function should run the expiry process on all articles in the
8522 @var{articles} range (which is currently a simple list of article
8523 numbers.)  It is left up to the backend to decide how old articles
8524 should be before they are removed by this function.  If @var{force} is
8525 non-@code{nil}, all @var{articles} should be deleted, no matter how new
8526 they are. 
8527
8528 This function should return a list of articles that it did not/was not
8529 able to delete.
8530
8531 There should be no result data returned.
8532
8533
8534 @item (nnchoke-request-move-article ARTICLE GROUP SERVER ACCEPT-FORM
8535 &optional LAST)
8536
8537 This function should move @var{article} (which is a number) from
8538 @var{group} by calling @var{accept-form}.  
8539
8540 This function should ready the article in question for moving by
8541 removing any header lines it has added to the article, and generally
8542 should "tidy up" the article.  Then it should @code{eval}
8543 @var{accept-form} in the buffer where the "tidy" article is.  This will
8544 do the actual copying.  If this @code{eval} returns a non-@code{nil}
8545 value, the article should be removed.
8546
8547 If @var{last} is @code{nil}, that means that there is a high likelihood
8548 that there will be more requests issued shortly, so that allows some
8549 optimizations. 
8550
8551 There should be no data returned. 
8552
8553
8554 @item (nnchoke-request-accept-article GROUP &optional LAST)
8555
8556 This function takes the current buffer and inserts it into @var{group}.
8557 If @var{last} in @code{nil}, that means that there will be more calls to
8558 this function in short order.
8559
8560 There should be no data returned.
8561
8562
8563 @item (nnchoke-request-replace-article ARTICLE GROUP BUFFER)
8564
8565 This function should remove @var{article} (which is a number) from
8566 @var{group} and insert @var{buffer} there instead.
8567
8568 There should be no data returned.
8569
8570
8571 @item (nnchoke-request-delete-group GROUP FORCE &optional SERVER)
8572
8573 This function should delete @var{group}.  If @var{force}, it should
8574 really delete all the articles in the group, and then delete the group
8575 itself.  (If there is such a thing as "the group itself".)
8576
8577 There should be no data returned.
8578
8579
8580 @item (nnchoke-request-rename-group GROUP NEW-NAME &optional SERVER)
8581
8582 This function should rename @var{group} into @var{new-name}.  All
8583 articles that are in @var{group} should move to @var{new-name}.
8584
8585 There should be no data returned.
8586
8587
8588 @end table
8589
8590
8591 @node Score File Syntax
8592 @section Score File Syntax
8593
8594 Score files are meant to be easily parsable, but yet extremely
8595 mallable.   It was decided that something that had the same read syntax
8596 as an Emacs Lisp list would fit that spec.
8597
8598 Here's a typical score file:
8599
8600 @lisp
8601 (("summary"
8602   ("win95" -10000 nil s)
8603   ("Gnus"))
8604  ("from"
8605   ("Lars" -1000))
8606  (mark -100))
8607 @end lisp
8608
8609 BNF definition of a score file:
8610
8611 @example
8612 score-file       = "" / "(" *element ")"
8613 element          = rule / atom
8614 rule             = string-rule / number-rule / date-rule
8615 string-rule      = "(" quote string-header quote space *string-match ")"
8616 number-rule      = "(" quote number-header quote space *number-match ")"
8617 date-rule        = "(" quote date-header quote space *date-match ")"
8618 quote            = <ascii 34>
8619 string-header    = "subject" / "from" / "references" / "message-id" / 
8620                    "xref" / "body" / "head" / "all" / "followup"
8621 number-header    = "lines" / "chars"
8622 date-header      = "date"
8623 string-match     = "(" quote <string> quote [ "" / [ space score [ "" / 
8624                    space date [ "" / [ space string-match-t ] ] ] ] ] ")"
8625 score            = "nil" / <integer>
8626 date             = "nil" / <natural number>
8627 string-match-t   = "nil" / "s" / "substring" / "S" / "Substring" / 
8628                    "r" / "regex" / "R" / "Regex" /
8629                    "e" / "exact" / "E" / "Exact" /
8630                    "f" / "fuzzy" / "F" / "Fuzzy"
8631 number-match     = "(" <integer> [ "" / [ space score [ "" / 
8632                    space date [ "" / [ space number-match-t ] ] ] ] ] ")"
8633 number-match-t   = "nil" / "=" / "<" / ">" / ">=" / "<="
8634 date-match       = "(" quote <string> quote [ "" / [ space score [ "" / 
8635                    space date [ "" / [ space date-match-t ] ] ] ] ")"
8636 date-match-t     = "nil" / "at" / "before" / "after"
8637 atom             = "(" [ required-atom / optional-atom ] ")"
8638 required-atom    = mark / expunge / mark-and-expunge / files /
8639                    exclude-files / read-only / touched
8640 optional-atom    = adapt / local / eval 
8641 mark             = "mark" space nil-or-number
8642 nil-or-number    = "nil" / <integer>
8643 expunge          = "expunge" space nil-or-number
8644 mark-and-expunge = "mark-and-expunge" space nil-or-number
8645 files            = "files" *[ space <string> ]
8646 exclude-files    = "exclude-files" *[ space <string> ]
8647 read-only        = "read-only" [ space "nil" / space "t" ]
8648 adapt            = "adapt" [ space "nil" / space "t" / space adapt-rule ]
8649 adapt-rule       = "(" *[ <string> *[ "(" <string> <integer> ")" ] ")"
8650 local            = "local" *[ space "(" <string> space <form> ")" ]
8651 eval             = "eval" space <form>
8652 space            = *[ " " / <TAB> / <NEWLINE> ]
8653 @end example
8654
8655 Any unrecognized elements in a score file should be ignored, but not
8656 discarded.  
8657
8658 As you can see, white space is needed, but the type and amount of white
8659 space is irrelevant.  This means that formatting of the score file is
8660 left up to the programmer---if it's simpler to just spew it all out on
8661 one looong line, then that's ok.
8662
8663 The meaning of the various atoms are explained elsewhere in this
8664 manual. 
8665
8666 @node Headers
8667 @section Headers
8668
8669 Gnus uses internally a format for storing article headers that
8670 corresponds to the @sc{nov} format in a mysterious fashion.  One could
8671 almost suspect that the author looked at the @sc{nov} specification and
8672 just shamelessly @emph{stole} the entire thing, and one would be right.
8673
8674 @dfn{Header} is a severly overloaded term.  "Header" is used in RFC1036
8675 to talk about lines in the head of an article (eg., @code{From}).  It is
8676 used by many people as a synonym for "head"---"the header and the
8677 body".  (That should be avoided, in my opinion.)  And Gnus uses a format
8678 interanally that it calls "header", which is what I'm talking about
8679 here.  This is a 9-element vector, basically, with each header (ouch)
8680 having one slot. 
8681
8682 These slots are, in order: @code{number}, @code{subject}, @code{from},
8683 @code{date}, @code{id}, @code{references}, @code{chars}, @code{lines},
8684 @code{xref}.  There are macros for accessing and setting these slots --
8685 they all have predicatable names beginning with @code{mail-header-} and
8686 @code{mail-header-set-}, respectively.  
8687
8688 The @code{xref} slot is really a @code{misc} slot.  Any extra info will
8689 be put in there.
8690
8691 @node Ranges
8692 @section Ranges
8693
8694 @sc{gnus} introduced a concept that I found so useful that I've started
8695 using it a lot and have elaborated on it greatly. 
8696
8697 The question is simple: If you have a large amount of objects that are
8698 identified by numbers (say, articles, to take a @emph{wild} example)
8699 that you want to callify as being "included", a normal sequence isn't
8700 very useful.  (A 200,000 length sequence is a bit long-winded.)
8701
8702 The solution is as simple as the question: You just collapse the
8703 sequence. 
8704
8705 @example
8706 (1 2 3 4 5 6 10 11 12)
8707 @end example
8708
8709 is transformed into
8710
8711 @example
8712 ((1 . 6) (10 . 12))
8713 @end example
8714
8715 To avoid having those nasty @samp{(13 . 13)} elements to denote a
8716 lonesome object, a @samp{13} is a valid element:
8717
8718 @example
8719 ((1 . 6) 7 (10 . 12))
8720 @end example
8721
8722 This means that comparing two ranges to find out whether they are equal
8723 is slightly tricky:
8724
8725 @example
8726 ((1 . 6) 7 8 (10 . 12))
8727 @end example
8728
8729 and
8730
8731 @example
8732 ((1 . 5) (7 . 8) (10 . 12))
8733 @end example
8734
8735 are equal.  In fact, any non-descending list is a range:
8736
8737 @example
8738 (1 2 3 4 5)
8739 @end example
8740
8741 is a perfectly valid range, although a pretty longwinded one.  This is
8742 also legal:
8743
8744 @example
8745 (1 . 5)
8746 @end example
8747
8748 and is equal to the previous range.
8749
8750 Here's a BNF definition of ranges.  Of course, one must remember the
8751 semantic requirement that the numbers are non-descending.  (Any number
8752 of repetition of the same number is allowed, but apt to disappear in
8753 range handling.)
8754
8755 @example
8756 range           = simple-range / normal-range
8757 simple-range    = "(" number " . " number ")"
8758 normal-range    = "(" start-contents ")"
8759 contents        = "" / simple-range *[ " " contents ] / 
8760                   number *[ " " contents ]
8761 @end example
8762
8763 Gnus currently uses ranges to keep track of read articles and article
8764 marks.  I plan on implementing a number of range operators in C if The
8765 Powers That Be are willing to let me.  (I haven't asked yet, because I
8766 need to do some more thinking on what operators I need to make life
8767 totally range-based without ever having to convert back to normal
8768 sequences.) 
8769
8770
8771 @node Group Info
8772 @section Group Info
8773
8774 Gnus stores all permanent info on groups in a @dfn{group info} list.
8775 This list is from three to six elements (or more) long and exhaustively
8776 describes the group.
8777
8778 Here are two example group infos; one is a very simple group while the
8779 second is a more complex one:
8780
8781 @example
8782 ("no.group" 5 (1 . 54324))
8783
8784 ("nnml:my.mail" 3 ((1 . 5) 9 (20 . 55))
8785                 ((tick (15 . 19)) (replied 3 6 (19 . 23)))
8786                 (nnml "")
8787                 (auto-expire (to-address "ding@@ifi.uio.no")))
8788 @end example
8789
8790 The first element is the group name as Gnus knows the group; the second
8791 is the group level; the third is the read articles in range format; the
8792 fourth is a list of article marks lists; the fifth is the select method;
8793 and the sixth contains the group parameters.
8794
8795 Here's a BNF definition of the group info format:
8796
8797 @example
8798 info          = "(" group space level space read 
8799                 [ "" / [ space marks-list [ "" / [ space method [ "" /
8800                 space parameters ] ] ] ] ] ")" 
8801 group         = quote <string> quote
8802 level         = <integer in the range of 1 to inf>
8803 read          = range
8804 marks-lists   = nil / "(" *marks ")"
8805 marks         = "(" <string> range ")"
8806 method        = "(" <string> *elisp-forms ")"
8807 parameters    = "(" *elisp-forms ")"
8808 @end example
8809
8810 Actually that @samp{marks} rule is a fib.  A @samp{marks} is a
8811 @samp{<string>} consed on to a @samp{range}, but that's a bitch to say
8812 in pseudo-BNF.
8813
8814
8815 @node Index
8816 @chapter Index
8817 @printindex cp
8818
8819 @node Key Index
8820 @chapter Key Index
8821 @printindex ky
8822
8823 @summarycontents
8824 @contents
8825 @bye
8826
8827 \f
8828 @c Local Variables:
8829 @c outline-regexp: "@chap\\|@\\(sub\\)*section\\|@appendix \\|@appendix\\(sub\\)*sec\\|\^L"
8830 @c End:
8831
8832 \1f