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