7753f1057ea7326e6d678151fecd3c57d15e52d2
[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 (ding) Gnus 0.84 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 (ding) 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 * Various::                 General purpose settings.
90 * Customization::           Tailoring Gnus to your needs.
91 * Troubleshooting::         What you might try if things do not work.
92 * The End::                 Farewell, and goodbye.
93 * Index::                   Variable, function and concept index.
94 * Key Index::               Key Index.
95 @end menu
96
97 @node History
98 @chapter History
99
100 @cindex history
101 @sc{gnus} was written by Masanobu UMEDA.  When autumn crept up in '94,
102 Lars Magne Ingebrigtsen grew bored and decided to rewrite Gnus.
103
104 The recommended pronunciation of the name this program is "ding
105 guh-noose", with "ding" being half-sung in a loud, high-pitched voice,
106 and "guh-noose" being grumbled and a disaffected fashion.  Any
107 irritation and/or damage this name may cause you is not the
108 responsibility of the author, even though you might like to strangle him
109 for the stupid idea.
110
111 If you want to investigate the person responsible for this outrage, you
112 can point your (feh!) web browser to
113 @file{http://www.ifi.uio.no/~larsi/}.  This is also the primary
114 distribution point for the new and spiffy versions of Gnus, also know as
115 The Site That Destroys Newsrcs And Drives People Mad.
116
117 @dfn{(ding)}, is, of course, short for @dfn{ding is not Gnus}, which is
118 a total and utter lie, but who cares? (Besides, the "Gnus" in this
119 abbreviation should probably be pronounced "news" as UMEDA intended,
120 which makes it a more appropriate name, don't you think?)
121
122 @menu
123 * Why?::                What's the point of Gnus?
124 * Compatibility::       Just how compatible is (ding) Gnus with @sc{gnus}?
125 * Contributors::        Oodles of people.  
126 * New Features::        A short description of all the new stuff in Gnus.
127 * Newest Features::     Features so new that they haven't been written yet.
128 @end menu
129
130 @node Why?
131 @section Why?
132
133 What's the point of Gnus?  
134
135 I want to provide a "rad", "happening", "way cool" and "hep" newsreader,
136 that lets you do anything you can think of.  That was my original
137 motivation, but while working on Gnus, it has become clear to me that
138 this generation of newsreaders really belong in the stone age.
139 Newsreaders haven't developed much since the infancy of the net.  If the
140 volume continues to rise with the current rate of increase, all current
141 newsreaders will be pretty much useless.  How do you deal with
142 newsgroups that have hundreds (or thousands) of new articles each day? 
143
144 (ding) Gnus offer no real solutions to these questions, but I would very
145 much like to see Gnus being used as a testing ground for new methods of
146 reading and fetching news.  Expanding on Umeda-san's wise decision to
147 separate the newsreader from the backends, (ding) Gnus now offers a
148 simple interface for anybody who wants to write new backends for
149 fetching mail and news from different sources.  I have added hooks for
150 customizations everywhere I can imagine useful.  By doing so, I'm
151 inviting every one of you to explore and invent new ways of reading
152 news. 
153
154 May Gnus never be complete. @kbd{C-u 100 M-x hail-emacs}. 
155
156 @node Compatibility
157 @section Compatibility
158
159 @cindex compatibility
160 (ding) Gnus was designed to be fully compatible with @sc{gnus}.  Almost
161 all key bindings have been kept.  More key bindings have been added, of
162 course, but only in one or two obscure cases have old bindings been
163 changed.
164
165 Our motto is:
166 @quotation
167 @cartouche
168 @center In a cloud bones of steel.
169 @end cartouche
170 @end quotation
171
172 All commands have kept their names.  Some internal functions have changed
173 their names.
174
175 The @code{gnus-uu} package has changed drastically. @xref{Decoding
176 Articles}. 
177
178 One major compatibility question if the presence of several summary
179 buffers.  All variables that are relevant while reading a group are
180 buffer-local to the summary buffer they belong in.  Although most
181 important variables have their values copied into their global
182 counterparts whenever a command is executed in the summary buffer, this
183 change might lead to incorrect values being used unless you are careful.
184
185 All code that relies on knowledge of @sc{gnus} internals will probably
186 fail.  To take two examples: Sorting @code{gnus-newsrc-assoc} (or
187 changing it in any way, as a matter of fact) is strictly verboten.  Gnus
188 maintains a hash table that points to the entries in this assoc (which
189 speeds up many functions), and changing the assoc directly will lead to
190 peculiar results.
191
192 @cindex hilit19
193 @cindex highlighting
194 Old hilit19 code does not work at all.  In fact, you should probably
195 remove all hilit code from all Gnus hooks
196 (@code{gnus-group-prepare-hook}, @code{gnus-summary-prepare-hook} and
197 @code{gnus-summary-article-hook}).  (Well, at the very least the first
198 two.)  Gnus provides various integrated functions for highlighting.
199 These are faster and more accurate.  To make life easier for everybody,
200 Gnus will by default remove all hilit calls from all hilit hooks.
201 Uncleanliness!  Away!
202
203 Packages like @code{expire-kill} will no longer work.  As a matter of
204 fact, you should probably remove all old @sc{gnus} packages (and other
205 code) when you start using (ding) Gnus.  More likely than not, (ding)
206 Gnus already does what you have written code to make @sc{gnus} do.
207 (Snicker.)
208
209 Even though old methods of doing things are still supported, only the
210 new methods are documented in this manual.  If you detect a new method of
211 doing something while reading this manual, that does not mean you have
212 to stop doing it the old way.
213
214 (ding) Gnus understands all @sc{gnus} startup files.
215
216 @kindex M-x gnus-bug
217 Overall, a casual user who hasn't written much code that depends on
218 @sc{gnus} internals should suffer no problems.  If problems occur,
219 please let me know (@kbd{M-x gnus-bug}).
220
221 Problems specific to GNU XEmacs can be reported to popineau@@ese-metz.fr
222 (Fabrice Popineau).  I will just forward any such questions to him,
223 anyway, so you might have to wait longer if you mail XEmacs questions to
224 me.
225
226 @node Contributors
227 @section Contributors
228 @cindex contributors
229
230 The new Gnus version couldn't have been done without the help of all the
231 people on the (ding) mailing list.  Every day for months I have gotten
232 tens of nice bug reports from them, filling me with joy, every single
233 one of them.  Smooches.  The people on the list have been tried beyond
234 endurance, what with my "oh, that's a neat idea <type type>, yup, I'll
235 release it right away <ship off> no wait, that doesn't work at all <type
236 type>, yup, I'll ship that one off right away <ship off> no, wait, that
237 absolutely does not work" policy for releases.  Microsoft - bah.  I'm
238 @emph{much} worse.
239
240 I would like to take this opportunity to thank the Academy for...  oops,
241 wrong show.
242
243 @itemize @bullet
244 @item
245 Of course, GNUS was written by Masanobu UMEDA.
246 @item 
247 Many excellent functions, especially dealing with scoring and
248 highlighting (as well as the soon-to-come @sc{soup} support) was written
249 by Per Abrahamsen.
250 @item
251 Innumerable bug fixes were written by Sudish Joseph.
252 @item
253 I stole some pieces from the XGnus distribution by Felix Lee and JWZ.
254 @item 
255 nnfolder has been much enhanced by Scott Byer.
256 @item
257 The orphan scoring was written by Peter Mutsaers.
258 @item 
259 GNU XEmacs support has been added by Fabrice Popineau. 
260 @item 
261 Various bits and pieces, especially dealing with .newsrc files, was
262 suggested and added by Hallvard B Furuseth.
263 @item 
264 Brian Edmonds has written @code{gnus-bbdb}, as well as other bits and
265 pieces. 
266 @item 
267 Ricardo Nassif did the proof-reading.
268 @item
269 Kevin Davidson came up with the name @dfn{ding}, so blame him.
270 @item 
271 Stainless Steel Rat, Jack Vinson, Daniel Quinlan, Ilja Weis, Frank D.
272 Cringle, Geoffrey T. Dairiki and Andrew Eskilsson have all contributed
273 code and suggestions.
274 @end itemize
275
276
277 @node New Features
278 @section New Features
279 @cindex new features
280
281 The look of all buffers can be changed by setting format-like variables.
282  
283 Local spool and several @sc{nntp} servers can be used at once.  Virtual
284 groups and private mail groups are featured.
285
286 Gnus can use various strategies for gathering threads that have lost
287 their roots (thereby gathering loose sub-threads in one thread) or it
288 can go back and retrieve enough headers to build a complete thread.
289
290 Killed groups can be displayed in the group buffer, and you can read
291 them as well.
292
293 Gnus can do partial group updates - you do not have to retrieve the
294 entire active file just to check for new articles in a few groups.
295
296 Gnus implements a sliding scale of subscribedness to groups.
297
298 The approach to killing has been changed.  Instead of simply killing or
299 not, you can score articles for easier reading.
300
301 @node Newest Features
302 @section Newest Features
303 @cindex todo
304
305 Also known as the @dfn{todo list}.  Sure to be implemented before the
306 next millennium.
307
308 @itemize @bullet
309 @item
310 Native @sc{mime} support is something that should be done.  I was hoping
311 I could steal code from @code{Mew}, the @sc{mime} mail reader for Emacs,
312 but I'm not quite sure what the status of that project is.  (ding) might
313 support @sc{mime} quite soon, and it might not.
314 @item
315 When the user references the parent of an article, some sort of
316 re-threading should be done to build a proper tree.  The same goes for
317 article expunging.  However, as it stands, it's not a trivial issue to
318 re-generate parts of the summary buffer.  Generating the entire buffer
319 is very easy, but slow.
320 @end itemize
321
322 @node Terminology
323 @chapter Terminology
324
325 @cindex terminology
326 @table @dfn
327 @item news
328 @cindex news
329 This is what you are supposed to use this thing for - reading news.
330 News is generally fetched from a nearby @sc{nntp} server, and is
331 generally publicly available to everybody.  If you post news, the entire
332 world is likely to read just what you have written, and they'll all
333 snigger mischievously.  Behind your back.
334 @item mail
335 @cindex mail
336 Everything that's delivered to you personally is mail.  Some news/mail
337 readers (like Gnus) blur the distinction between mail and news, but
338 there is a difference.  Mail is private.  News is public.  Mailing is
339 not posting, and replying is not following up.
340 @item reply
341 Send a mail to the person who has written what you are reading.
342 @item follow up
343 Post an article to the current newsgroup responding to the article you
344 are reading.
345 @item backend
346 Gnus gets fed articles from a number of backends, both news and mail
347 backends.  Gnus does not handle the underlying media, so to speak - this
348 is all done by the backends.
349 @item native
350 Gnus will always use one method (and backend) as the @dfn{native}, or
351 default, way of getting news.
352 @item foreign
353 You can also have any number of foreign groups at the same time.  These
354 are groups that use different backends for getting news.
355 @item head
356 @cindex head
357 The top part of an article, where administration information (etc.) is
358 put. 
359 @item body
360 @cindex body
361 The rest of an article. Everything that is not in the head is in the
362 body. 
363 @item header
364 @cindex header
365 A line from the head of an article. 
366 @item headers
367 @cindex headers
368 A collection of such lines, or a collection of heads.  Or even a
369 collection of @sc{nov} lines.
370 @item @sc{nov}
371 @cindex nov
372 When Gnus enters a group, it asks the backend for the headers for all
373 the unread articles in the group.  Most servers support the News OverView
374 format, which is much smaller and much faster to read than the normal
375 HEAD format. 
376 @item level
377 @cindex levels
378 Each group is subscribed at some @dfn{level} or other (1-9).  The ones
379 that have a lower level are "more" subscribed than the groups with a
380 higher level.  In fact, groups on levels 1-5 are considered
381 @dfn{subscribed}; 6-7 are @dfn{unsubscribed}; 8 are @dfn{zombies}; and 9
382 are @dfn{killed}.  Commands for listing groups and scanning for new
383 articles will all use the numeric prefix as @dfn{working level}.
384 @item killed groups
385 @cindex killed groups
386 No information on killed groups is stored or updated, which makes killed
387 groups much easier to handle than subscribed groups.
388 @item zombie groups
389 @cindex zombie groups
390 Just like killed groups, only slightly less dead.
391 @item active file
392 @cindex active file
393 The news server has to keep track of what articles it carries, and what
394 groups exist.  All this information in stored in the active file, which
395 is rather large, as you might surmise.
396 @end table
397
398 @node Starting Up
399 @chapter Starting Gnus
400 @cindex starting up
401
402 @kindex M-x gnus
403 If your system administrator has set things up properly, starting Gnus
404 and reading news is extremely easy - you just type @kbd{M-x gnus}.
405
406 If things do not go smoothly at startup, you have to twiddle some
407 variables. 
408
409 @menu
410 * Finding the News::    Choosing a method for getting news.
411 * The First Time::      What does Gnus do the first time you start it?
412 * The Server is Down::  How can I read my mail then?
413 * New Groups::          What is Gnus supposed to do with new groups?
414 * Startup Files::       Those pesky startup files - @file{.newsrc}.
415 * Auto Save::           Recovering from a crash.
416 * The Active File::     Reading the active file over a slow line Takes Time.
417 * Startup Variables::   Other variables you might change.
418 @end menu
419
420 @node Finding the News
421 @section Finding the News
422
423 @vindex gnus-select-method
424 The @code{gnus-select-method} variable controls how Gnus finds news.
425 This variable should be a list where the first element says @dfn{how}
426 and the second element says @dfn{where}.  This method is is your native
427 method.  All groups that are not fetched with this method are foreign
428 groups.
429
430 For instance, if you want to get your daily dosage of news from the
431 @samp{news.somewhere.edu} @sc{nntp} server, you'd say:
432
433 @lisp
434 (setq gnus-select-method '(nntp "news.somewhere.edu"))
435 @end lisp
436
437 If you want to read directly from the local spool, say:
438
439 @lisp
440 (setq gnus-select-method '(nnspool ""))
441 @end lisp
442
443 If you can use a local spool, you probably should, as it will almost
444 certainly be much faster.
445
446 If this variable is not set, Gnus will take a look at the
447 @code{NNTPSERVER} environment variable.  If that isn't set either, it
448 will try to use the machine that is running Emacs as an @sc{nntp}
449 server.
450
451 @vindex gnus-nntp-server
452 If @code{gnus-nntp-server} is set, this variable will override
453 @code{gnus-select-method}.  You should therefore set
454 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
455
456 @vindex gnus-secondary-servers
457 You can also make Gnus prompt you interactively for the name of an
458 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
459 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
460 in the @code{gnus-secondary-servers} list (if any).  You can also just
461 type in the name of any server you feel like visiting.
462
463 However, if you use one @sc{nntp} server regularly, and are just
464 interested in a couple of groups from a different server, you would be
465 better served by using the @code{gnus-group-browse-foreign-server}
466 command from the group buffer.  It will let you have a look at what
467 groups are available, and you can subscribe to any of the groups you
468 want to.  This also makes @file{.newsrc} maintenance much tidier.
469 @xref{Foreign Groups}.
470
471 @vindex gnus-secondary-select-methods
472 A slightly different approach to foreign groups is to set the
473 @code{gnus-secondary-select-methods} variable.  The select methods
474 listed in this variable are in many ways just as native as the
475 @code{gnus-select-method} server.  They will also be queried for active
476 files during startup (if that's required), and new newsgroups that
477 appear on these servers will be subscribed (or not) just as native
478 groups are.
479
480 For instance, if you use the @code{nnmbox} backend to read you mail, you
481 would typically set this variable to
482
483 @lisp
484 (setq gnus-secondary-select-methods '((nnmbox "")))
485 @end lisp
486
487 @node The First Time
488 @section The First Time
489 @cindex first time usage
490
491 If no startup files exist, Gnus will try to determine what groups should
492 be subscribed by default.
493
494 @vindex gnus-default-subscribed-newsgroups
495 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
496 will subscribe you to just those groups in that list, leaving the rest
497 killed.  Your system administrator should have set this variable to
498 something useful.
499
500 Since she hasn't, Gnus will just subscribe you to a few randomly picked
501 groups (i.e., @samp{*.newusers}).  (@dfn{Random} is here defined as
502 "whatever Lars thinks you should read".)
503
504 You'll also be subscribed to the Gnus documentation group, which should
505 help you with most common problems.  
506
507 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
508 use the normal functions for handling new groups, and not do anything
509 special.
510
511 @node The Server is Down
512 @section The Server is Down
513 @cindex server errors
514
515 If the default server is down, Gnus will understandably have some
516 problems starting.  However, if you have some mail groups in addition to
517 the news groups, you may want to start Gnus anyway.
518
519 Gnus, being the trusting sort of program, will ask whether to proceed
520 without a native select method if that server can't be contacted.  This
521 will happen whether the server doesn't actually exist (i.e., you have
522 given the wrong address) or the server has just momentarily taken ill
523 for some reason or other.  
524
525 If Gnus says "nntp server on <your server> can't be opened. Continue?",
526 you do not want to continue unless you have some foreign groups that you
527 want to read.  Even if you don't, Gnus will let you continue, but you'll
528 find it difficult to actually do anything in the group buffer.  But,
529 hey, that's your problem.  Blllrph!
530
531 @node New Groups
532 @section New Groups
533 @cindex new groups
534
535 @vindex gnus-subscribe-newsgroup-method
536 What Gnus does when it encounters a new group is determined by the
537 @code{gnus-subscribe-newsgroup-method} variable.
538
539 This variable should contain a function.  Some handy pre-fab values
540 are:
541
542 @table @code
543 @item gnus-subscribe-randomly
544 @vindex gnus-subscribe-randomly
545 Subscribe all new groups randomly.
546 @item gnus-subscribe-alphabetically
547 @vindex gnus-subscribe-alphabetically
548 Subscribe all new groups alphabetically.
549 @item gnus-subscribe-hierarchically
550 @vindex gnus-subscribe-hierarchically
551 Subscribe all new groups hierarchically.
552 @item gnus-subscribe-interactively
553 @vindex gnus-subscribe-interactively
554 Subscribe new groups interactively.  This means that Gnus will ask
555 you about @strong{all} new groups.
556 @item gnus-subscribe-zombies
557 @vindex gnus-subscribe-zombies
558 Make all new groups zombies.  You can browse the zombies later and
559 either kill them all off properly, or subscribe to them.  This is the
560 default.
561 @end table
562
563 @vindex gnus-subscribe-hierarchical-interactive
564 A closely related variable is
565 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
566 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
567 hierarchical fashion whether to subscribe to new groups or not.  Gnus
568 will ask you for each sub-hierarchy whether you want to descend the
569 hierarchy or not.
570
571 One common way to control which new newsgroups should be subscribed or
572 ignored is to put an @dfn{options} line at the start of the
573 @file{.newsrc} file.  Here's an example:
574
575 @example
576 options -n !alt.all !rec.all sci.all
577 @end example
578
579 @vindex gnus-subscribe-options-newsgroup-method
580 This line obviously belongs to a serious-minded intellectual scientific
581 person (or she may just be plain old boring), because it says that all
582 groups that have names beginning with @samp{alt} and @samp{rec} should
583 be ignored, and all groups with names beginning with @samp{sci} should
584 be subscribed.  Gnus will not use the normal subscription method for
585 subscribing these groups.
586 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
587 variable defaults to @code{gnus-subscribe-alphabetically}.
588
589 @vindex gnus-options-not-subscribe
590 @vindex gnus-options-subscribe
591 If you don't want to mess with your @file{.newsrc} file, you can just
592 set the two variables @code{gnus-options-subscribe} and
593 @code{gnus-options-not-subscribe}.  These two variables do exactly the
594 same as the @file{.newsrc} options -n trick.  Both are regexps, and if
595 the the new group matches the first, it will be unconditionally
596 subscribed, and if it matches the latter, it will be ignored.
597
598 @vindex gnus-check-new-newsgroups
599 If you are satisfied that you really never want to see any new groups,
600 you could set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
601 also save you some time at startup.  Even if this variable is
602 @code{nil}, you can always subscribe to the new groups just by pressing
603 @kbd{U} in the group buffer (@pxref{Group Maintenance}).
604
605 Gnus normally determines whether a group is new or not by comparing the
606 list of groups from the active file(s) with the lists of subscribed and
607 dead groups.  This isn't a particularly fast method.  If
608 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
609 server for new groups since the last time.  This is both faster &
610 cheaper.  This also means that you can get rid of the list of killed
611 groups altogether, so you may set @code{gnus-save-killed-list} to
612 @code{nil}, which will save time both at startup, at exit, and all over.
613 Saves disk space, too.  Why isn't this the default, then?
614 Unfortunately, not all servers support this function.
615
616 This variable can also be a list of select methods.  If so, Gnus will
617 issue an @code{ask-server} command to each of the select methods, and
618 subscribe them (or not) using the normal methods.  This might be handy
619 if you are monitoring a few servers for new groups.  A side effect is
620 that startup will take much longer, so you can meditate while waiting.
621 Use the mantra "dingnusdingnusdingnus" to achieve permanent happiness.
622
623 @node Startup Files
624 @section Startup Files
625 @cindex startup files
626 @cindex .newsrc
627
628 Now, you all know about the @file{.newsrc} file.  All subscription
629 information is traditionally stored in this file.
630
631 Things got a bit more complicated with @sc{gnus}.  In addition to
632 keeping the @file{.newsrc} file updated, it also used a file called
633 @file{.newsrc.el} for storing all the information that didn't fit into
634 the @file{.newsrc} file.  (Actually, it duplicated everything in the
635 @file{.newsrc} file.)  @sc{gnus} would read whichever one of these files
636 that were the most recently saved, which enabled people to swap between
637 @sc{gnus} and other newsreaders.
638
639 That was kinda silly, so (ding) Gnus went one better: In addition to the
640 @file{.newsrc} and @file{.newsrc.el} files, (ding) Gnus also has a file
641 called @file{.newsrc.eld}.  It will read whichever of these files that
642 are most recent, but it will never write a @file{.newsrc.el} file.
643
644 @vindex gnus-save-newsrc-file
645 You can also turn off writing the @file{.newsrc} file by setting
646 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
647 the file and save some space, as well as making exit from Gnus faster.
648 However, this will make it impossible to use other newsreaders than
649 Gnus.  But hey, who would want to, right?
650
651 @vindex gnus-save-killed-list
652 If @code{gnus-save-killed-list} is @code{nil}, Gnus will not save the
653 list of killed groups to the startup file.  This will save both time
654 (when starting and quitting) and space (on disk).  It will also means
655 that Gnus has no record of what groups are new or old, so the automatic
656 new groups subscription methods become meaningless.  You should always
657 set @code{gnus-check-new-newsgroups} to @code{nil} or @code{ask-server}
658 if you set this variable to @code{nil} (@pxref{New Groups}).
659
660 @vindex gnus-startup-file
661 The @code{gnus-startup-file} variable says where the startup files are.
662 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
663 file being whatever that one is with a @samp{.eld} appended.
664
665 @vindex gnus-save-newsrc-hook
666 @code{gnus-save-newsrc-hook} is called before saving the @file{.newsrc}
667 file.
668
669 @node Auto Save
670 @section Auto Save
671 @cindex dribble file
672 @cindex auto-save
673
674 Whenever you do something that changes the Gnus data (reading articles,
675 catching up, killing/subscribing groups), the change is added to a
676 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
677 Emacs way.  If your Emacs should crash before you have saved the
678 @file{.newsrc} files, all changes you have made can be recovered from
679 this file.
680
681 If Gnus detects this file at startup, it will ask the user whether to
682 read it. The auto save file is deleted whenever the real startup file is
683 saved.
684
685 @vindex gnus-use-dribble-file
686 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
687 maintain a dribble buffer.
688
689 @node The Active File
690 @section The Active File
691 @cindex active file
692 @cindex ignored groups
693
694 When Gnus starts, or indeed whenever it tries to determine whether new
695 articles have arrived, it reads the active file.  This is a very large
696 file that lists all the active groups and articles on the @sc{nntp}
697 server.
698
699 @vindex gnus-ignored-newsgroups
700 Before examining the active file, Gnus deletes all lines that match the
701 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
702 any groups with bogus names, but you can use this variable to make Gnus
703 ignore hierarchies you aren't ever interested in.  This variable is
704 @code{nil} by default, and will slow down active file handling somewhat
705 if you set it to anything else.
706
707 @vindex gnus-read-active-file
708 The active file can be rather Huge, so if you have a slow network, you
709 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
710 reading the active file.
711
712 Gnus will try to make do by just getting information on the groups
713 that you actually subscribe to.
714
715 Note that if you subscribe to lots and lots of groups, setting this
716 variable to @code{nil} will probably make Gnus slower, not faster.  At
717 present, having this variable @code{nil} will slow Gnus down
718 considerably, unless you read news over a 2400 baud modem.  
719
720 This variable can also have the value @code{some}.  Gnus will then
721 attempt to read active info only on the subscribed groups.  On some
722 servers this is quite fast (on sparkling, brand new INN servers that
723 support the @samp{LIST ACTIVE group} command), on others this is not
724 fast at all.  In any case, @code{some} should be faster than @code{nil},
725 and is certainly faster than @code{t} over slow lines.
726
727 If this variable is @code{nil}, Gnus will as for group info in total
728 lock-step, which isn't very fast.  If it is @code{some} and you use an
729 NNTP server, Gnus will pump out commands as fast as it can, and read all
730 the replies in one swoop.  This will normally result in better
731 performance, but if the server does not support the aforementioned
732 @samp{LIST ACTIVE group} command, this isn't very nice to the server. 
733
734 In any case, if you use @code{some} or @code{nil}, you should kill all
735 groups that you aren't interested in.
736
737 @node Startup Variables
738 @section Startup Variables
739
740 @table @code
741 @item gnus-check-bogus-newsgroups
742 @vindex gnus-check-bogus-newsgroups
743 If non-@code{nil}, Gnus will check for and delete all bogus groups at
744 startup.  A @dfn{bogus group} is a group that you have in your
745 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
746 bogus groups isn't very quick, so to save time and resources, it's best
747 to leave this option off, and instead do the checking for bogus groups
748 once in a while from the group buffer (@pxref{Group Maintenance}).
749 @item gnus-inhibit-startup-message
750 @vindex gnus-inhibit-startup-message
751 If non-@code{nil}, the startup message won't be displayed.  That way,
752 your boss might not notice that you are reading news instead of doing
753 your job.
754 @item gnus-no-groups-message
755 @vindex gnus-no-groups-message
756 Message displayed by Gnus when no groups are available.
757 @end table
758
759 @node The Group Buffer
760 @chapter The Group Buffer
761 @cindex group buffer
762
763 The @dfn{group buffer} lists all (or parts) of the available groups.  It
764 is the first buffer shown when Gnus starts, and will never be killed as
765 long as Gnus is active.
766
767 @menu
768 * Group Buffer Format::    Information listed and how you can change it.
769 * Group Maneuvering::      Commands for moving in the group buffer.
770 * Selecting a Group::      Actually reading news.
771 * Group Subscribing::      Unsubscribing, killing, subscribing.
772 * Group Levels::           Levels? What are those, then?
773 * Marking Groups::         You can mark groups for later processing.
774 * Foreign Groups::         How to create foreign groups.
775 * Group Parameters::       Each group may have different parameters set.
776 * Listing Groups::         Gnus can list various subsets of the groups.
777 * Group Maintenance::      Maintaining a tidy @file{.newsrc} file.
778 * Browse Foreign Server::  You can browse a server.  See what if has to offer.
779 * Exiting Gnus::           Stop reading news and get some work done.
780 * Misc Group Stuff::       Other stuff that you can to do.
781 @end menu
782
783 @node Group Buffer Format
784 @section Group Buffer Format
785 @cindex group buffer format
786
787 The default format of the group buffer is nice and dull, but you can
788 make it as exciting and ugly as you feel like.
789
790 Here's a couple of example group lines:
791
792 @example
793      25: news.announce.newusers
794  *    0: alt.fan.andrea-dworkin
795 @end example
796
797 Quite simple, huh?
798
799 You can see that there are 25 unread articles in
800 @samp{news.announce.newusers}.  There are no unread articles, but some
801 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
802 asterisk at the beginning of the line?)
803
804 @vindex gnus-group-line-format
805 You can fuck that up to your heart's delight by fiddling with the
806 @code{gnus-group-line-format} variable.  This variable works along the
807 lines of a @code{format} specification, which is pretty much the same as
808 a @code{printf} specifications, for those of you who use (feh!) C.
809
810 In addition to the normal "padding" specs that @code{format} supports
811 (eg. @samp{%7d}), specifications like @samp{%7,12s} are allowed.  A spec
812 of this type means that the field will be at least 7 characters long,
813 and never more that 12 characters long.
814
815 The default value that produced those lines above is 
816 @samp{"%M%S%5y: %(%g%)\n"}.
817
818 There should always be a colon on the line; the cursor always moves to
819 the colon after performing an operation.  Nothing else is required - not
820 even the group name.  All displayed text is just window dressing, and is
821 never examined by Gnus.  Gnus stores all real information it needs using
822 text properties.
823
824 (Note that if you make a really strange, wonderful, spreadsheet-like
825 layout, everybody will believe you are hard at work with the accounting
826 instead of wasting time reading news.)
827
828 Here's a list of all available format characters:
829
830 @table @samp
831 @item M    
832 Only marked articles.
833 @item S
834 Whether the group is subscribed.
835 @item L    
836 Level of subscribedness.
837 @item N
838 Number of unread articles.
839 @item I
840 Number of dormant articles.
841 @item T
842 Number of ticked articles.
843 @item R
844 Number of read articles.
845 @item t
846 Total number of articles.
847 @item y
848 Number of unread, unticked, non-dormant articles.
849 @item i
850 Number of ticked and dormant articles.
851 @item g
852 Full group name.
853 @item G
854 Group name.
855 @item D
856 Newsgroup description.
857 @item o
858 Moderated.
859 @item O
860 Moderated.
861 @item s
862 Select method.
863 @item n
864 Select from where.
865 @item z
866 A string that looks like @samp{<%s:%n>} if a foreign select method is
867 used.
868 @item u
869 User defined specifier.  The next character in the format string should
870 be a letter.  @sc{gnus} will call the function
871 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
872 following @samp{%u}.  The function will be passed the current headers as
873 argument.  The function should return a string, which will be inserted
874 into the buffer just like information from any other specifier.
875 @end table
876
877 @cindex *
878 All the "number-of" specs will be filled with an asterisk (@samp{*}) if
879 no info is available - for instance, if it is a non-activated foreign
880 group, or a bogus (or semi-bogus) native group.
881
882 @vindex gnus-group-mode-line-format
883 The mode line can be changed by setting
884 (@code{gnus-group-mode-line-format}).  It doesn't understand that many
885 format specifiers:
886
887 @table @samp
888 @item S
889 Default news server.
890 @item M
891 Default select method.
892 @end table
893
894 @node Group Maneuvering
895 @section Group Maneuvering
896 @cindex group movement
897
898 All movement commands understand the numeric prefix and will behave as
899 expected, hopefully. 
900
901 @table @kbd
902 @item n
903 @kindex n (Group)
904 @findex gnus-group-next-unread-group
905 Go to the next group that has unread articles
906 (@code{gnus-group-next-unread-group}).
907 @item p
908 @itemx DEL
909 @kindex DEL (Group)
910 @kindex p (Group)
911 @findex gnus-group-prev-unread-group
912 Go to the previous group group that has unread articles
913 (@code{gnus-group-prev-unread-group}).
914 @item N
915 @kindex N (Group)
916 @findex gnus-group-next-group
917 Go to the next group (@code{gnus-group-next-group}).
918 @item P
919 @kindex P (Group)
920 @findex gnus-group-prev-group
921 Go to the previous group (@code{gnus-group-prev-group}).
922 @item M-p
923 @kindex M-p (Group)
924 @findex gnus-group-next-unread-group-same-level
925 Go to the next unread group on the same level (or lower)
926 (@code{gnus-group-next-unread-group-same-level}). 
927 @item M-n
928 @kindex M-n (Group)
929 @findex gnus-group-prev-unread-group-same-level
930 Go to the previous unread group on the same level (or lower)
931 (@code{gnus-group-prev-unread-group-same-level}). 
932 @end table
933
934 Three commands for jumping to groups:
935
936 @table @kbd
937 @item j
938 @kindex j (Group)
939 @findex gnus-group-jump-to-group
940 Jump to a group (and make it visible if it isn't already)
941 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
942 like living groups.
943 @item ,
944 @kindex , (Group)
945 @findex gnus-group-best-unread-group
946 Jump to the unread group with the lowest level
947 (@code{gnus-group-best-unread-group}). 
948 @item .
949 @kindex . (Group)
950 @findex gnus-group-first-unread-group
951 Jump to the first group with unread articles
952 (@code{gnus-group-first-unread-group}).  
953 @end table
954
955 @vindex gnus-group-goto-unread
956 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
957 commands will move to the next group, not the next unread group.  Even
958 the commands that say they move to the next unread group. 
959
960 @node Selecting a Group
961 @section Selecting a Group
962 @cindex group selection
963
964 @table @kbd
965 @item SPACE
966 @kindex SPACE (Group)
967 @findex gnus-group-read-group
968 Select the current group, switch to the summary buffer and display the
969 first unread article (@code{gnus-group-read-group}).  If there are no
970 unread articles in the group, or if you give a non-numerical prefix to
971 this command, Gnus will offer to fetch all the old articles in this
972 group from the server.  If you give a numerical prefix @var{N}, Gnus
973 will fetch @var{N} number of articles.  If @var{N} is positive, fetch
974 the @var{N} newest articles, if @var{N} is negative, fetch the
975 @var{abs(N)} oldest articles.
976 @item RET
977 @kindex RET (Group)
978 @findex gnus-group-select-group
979 Select the current group and switch to the summary buffer
980 (@code{gnus-group-select-group}).  Takes the same arguments as
981 @code{gnus-group-read-group} - the only difference is that this command
982 does not display the first unread article automatically upon group
983 entry. 
984 @item c
985 @kindex c (Group)
986 @findex gnus-group-catchup-current
987 Mark all unticked articles in this group as read
988 (@code{gnus-group-catchup-current}). 
989 @item C
990 @kindex C (Group)
991 @findex gnus-group-catchup-current-all
992 Mark all articles in this group, even the ticked ones, as read
993 (@code{gnus-group-catchup-current-all}). 
994 @end table
995
996 @vindex gnus-large-newsgroup
997 The @code{gnus-large-newsgroup} variable says what Gnus should consider
998 to be a big group.  If the group has more unread articles than this,
999 Gnus will query the user before entering the group.  The user can then
1000 specify how many articles should be fetched from the server.  If the
1001 user specifies a negative number (@samp{-n}), the @samp{n} oldest
1002 articles will be fetched.  If it is positive, the @samp{n} articles that
1003 have arrived most recently will be fetched.
1004
1005 @vindex gnus-select-group-hook
1006 @vindex gnus-auto-select-newsgroup
1007 If @code{gnus-auto-select-newsgroup} is non-@code{nil}, the first unread
1008 article in the group will be displayed when you enter the group.  If you
1009 want to prevent automatic selection in some group (say, in a binary
1010 group with Huge articles) you can set this variable to @code{nil} in
1011 @code{gnus-select-group-hook}, which is called when a group is selected.
1012
1013 @findex gnus-thread-sort-by-total-score
1014 @findex gnus-thread-sort-by-date
1015 @findex gnus-thread-sort-by-score
1016 @findex gnus-thread-sort-by-subject
1017 @findex gnus-thread-sort-by-author
1018 @findex gnus-thread-sort-by-number
1019 @vindex gnus-thread-sort-functions
1020 If you are using a threaded summary display, you can sort the threads by
1021 setting @code{gnus-thread-sort-functions}, which is a list of functions.
1022 By default, sorting is done on article numbers.  Ready-made sorting
1023 functions include @code{gnus-thread-sort-by-number},
1024 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-subject},
1025 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-score},
1026 @code{gnus-thread-sort-by-total-score}.
1027
1028 Each function takes two threads and return non-@code{nil} if the first
1029 thread should be sorted before the other.  If you use more than one
1030 function, the primary sort key should be the last function in the list.
1031
1032 If you would like to sort by score, then by subject, and finally by
1033 date, you could do something like:
1034
1035 @lisp
1036 (setq gnus-thread-sort-functions 
1037       '(gnus-thread-sort-by-date
1038         gnus-thread-sort-by-subject
1039         gnus-thread-sort-by-score))
1040 @end lisp
1041
1042 @vindex gnus-thread-score-function
1043 The function in the @code{gnus-thread-score-function} variable (default
1044 @code{+}) is used for calculating the total score of a thread.  Useful
1045 functions might be @code{max}, @code{min}, or squared means, or whatever
1046 tickles you fancy.
1047
1048 @node Group Subscribing
1049 @section Group Subscribing
1050 @cindex subscribing
1051
1052 @table @kbd
1053 @item S t
1054 @itemx u
1055 @kindex S t (Group)
1056 @kindex u (Group)
1057 @findex gnus-group-unsubscribe-current-group
1058 Toggle subscription to the current group
1059 (@code{gnus-group-unsubscribe-current-group}).  
1060 @item S s
1061 @itemx U
1062 @kindex S s (Group)
1063 @kindex U (Group)
1064 @findex gnus-group-unsubscribe-group
1065 Prompt for a group to subscribe, and then subscribe it.  If it was
1066 subscribed already, unsubscribe it instead
1067 (@code{gnus-group-unsubscribe-group}).
1068 @item S k
1069 @itemx C-k
1070 @kindex S k (Group)
1071 @kindex C-k (Group)
1072 @findex gnus-group-kill-group
1073 Kill the current group (@code{gnus-group-kill-group}).
1074 @item S y
1075 @itemx C-y
1076 @kindex S y (Group)
1077 @kindex C-y (Group)
1078 @findex gnus-group-yank-group
1079 Yank the last killed group (@code{gnus-group-yank-group}).
1080 @item S w
1081 @itemx C-w
1082 @kindex S w (Group)
1083 @kindex C-w (Group)
1084 @findex gnus-group-kill-region
1085 Kill all groups in the region (@code{gnus-group-kill-region}). 
1086 @item S z
1087 @kindex S z (Group)
1088 @findex gnus-group-kill-all-zombies
1089 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
1090 @end table
1091
1092 @node Group Levels
1093 @section Group Levels
1094 @cindex group level
1095
1096 All groups have a level of @dfn{subscribedness}.  For instance, if a
1097 group is on level 2, it is more subscribed than a group on level 5.  You
1098 can ask Gnus to just list groups on a given level or lower
1099 (@pxref{Listing Groups}), or to just check for new articles in groups on
1100 a given level or lower (@pxref{Misc Group Stuff}).
1101
1102 @table @kbd
1103 @item S l
1104 @kindex S l (Group)
1105 @findex gnus-group-set-current-level
1106 Set the level of the current group.  If a numeric prefix is given, the
1107 next @var{n} groups will have their levels set.  The user will be
1108 prompted for a level.
1109 @end table
1110
1111 @vindex gnus-level-killed
1112 @vindex gnus-level-zombie
1113 @vindex gnus-level-unsubscribed
1114 @vindex gnus-level-subscribed
1115 Gnus considers groups on between levels 1 and
1116 @code{gnus-level-subscribed} (inclusive) to be subscribed,
1117 @code{gnus-level-subscribed} (exclusive) and
1118 @code{gnus-level-unsubscribed} (inclusive) to be unsubscribed,
1119 @code{gnus-level-zombie} to be zombies (walking dead) and
1120 @code{gnus-level-killed} to be killed, completely dead.  Gnus treats
1121 subscribed and unsubscribed groups exactly the same, but zombie and
1122 killed groups have no information on what articles you have read, etc,
1123 stored.  This distinction between dead and living groups isn't done
1124 because it is nice or clever, it is done purely for reasons of
1125 efficiency. 
1126
1127 It is recommended that you keep all your mail groups (if any) on quite
1128 low levels (eg. 1 or 2).
1129
1130 If you want to play with the level variables, you should show some care.
1131 Set them once, and don't touch them ever again.  
1132
1133 @vindex gnus-level-default-unsubscribed
1134 @vindex gnus-level-default-subscribed
1135 Two closely related variables are @code{gnus-level-default-subscribed}
1136 and @code{gnus-level-default-unsubscribed}, which are the levels that new
1137 groups will be put on if they are (un)subscribed.  These two variables
1138 should, of course, be inside the relevant legal ranges.
1139
1140 @vindex gnus-keep-same-level
1141 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
1142 will only move to groups that are of the same level (or lower).  In
1143 particular, going from the last article in one group to the next group
1144 will go to the next group of the same level (or lower).  This might be
1145 handy if you want to read the most important groups before you read the
1146 rest.
1147
1148 @vindex gnus-group-default-list-level
1149 All groups with a level less than or equal to
1150 @code{gnus-group-default-list-level} will be listed in the group buffer
1151 by default.
1152
1153 @vindex gnus-group-use-permament-levels
1154 If @code{gnus-group-use-permament-levels} is non-@code{nil}, once you
1155 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
1156 use this level as the "work" level.
1157
1158 @node Marking Groups
1159 @section Marking Groups
1160 @cindex marking groups
1161
1162 If you want to perform some action on several groups, and they appear
1163 subsequently in the group buffer, you would normally just give a
1164 numerical prefix to the command.  Most group commands will then do your
1165 bidding on those groups.
1166
1167 However, if the groups are not in sequential order, you can still
1168 perform an action on several groups.  You simply mark the groups first,
1169 and then execute the command.  
1170
1171 @table @kbd
1172 @item #
1173 @kindex # (Group)
1174 @item G m
1175 @kindex G m (Group)
1176 @findex gnus-group-mark-group
1177 Set the mark on the current group (@code{gnus-group-mark-group}). 
1178 @item M-#
1179 @kindex M-# (Group)
1180 @item G u
1181 @kindex G u (Group)
1182 @findex gnus-group-unmark-group
1183 Remove the mark from the current group
1184 (@code{gnus-group-unmark-group}). 
1185 @item G w
1186 @kindex G w (Group)
1187 @findex gnus-group-mark-region
1188 Mark all groups between point and mark (@code{gnus-group-mark-region}). 
1189 @end table
1190
1191 @node Foreign Groups
1192 @section Foreign Groups
1193 @cindex foreign groups
1194
1195 A @dfn{foreign group} is a group that is not read by the usual (or
1196 default) means.  It could be, for instance, a group from a different
1197 @sc{nntp} server, it could be a virtual group, or it could be your own
1198 personal mail group.
1199
1200 A foreign group (or any group, really) is specified by a @dfn{name} and
1201 a @dfn{select method}.  To take the latter first, a select method is a
1202 list where the first element says what backend to use (eg. @code{nntp},
1203 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
1204 name}.  There may be additional elements in the select method, where the
1205 value may have special meaning for the backend in question.
1206
1207 One could say that a select method defines a @dfn{virtual server} - so
1208 we do just that (@pxref{The Server Buffer}).
1209
1210 The @dfn{name} of the group is the name the backend will recognize the
1211 group as.
1212
1213 For instance, the group @samp{soc.motss} on the @sc{nntp} server
1214 @samp{some.where.edu} will have the name @samp{soc.motss} and select
1215 method @code{(nntp "some.where.edu")}.  Gnus will call this group, in
1216 all circumstances, @samp{nntp+some.where.edu:soc.motss}, even though the
1217 nntp backend just knows this group as @samp{soc.motss}.
1218
1219 Here are some commands for making and editing general foreign groups,
1220 and some commands to ease the creation of some special-purpose groups:
1221
1222 @table @kbd
1223 @item G m
1224 @kindex G m (Group)
1225 @findex gnus-group-make-group
1226 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
1227 for a name, a method and possibly an @dfn{address}.  For an easier way
1228 to subscribe to @sc{nntp} groups, @xref{Browse Foreign Server}.
1229
1230 @item G e
1231 @kindex G e (Group)
1232 @findex gnus-group-edit-group-method
1233 Enter a buffer where you can edit the select method of the current
1234 group (@code{gnus-group-edit-group-method}).
1235
1236 @item G p
1237 @kindex G p (Group)
1238 @findex gnus-group-edit-group-parameters
1239 Enter a buffer where you can edit the group parameters
1240 (@code{gnus-group-edit-group-parameters}). 
1241
1242 @item G E
1243 @kindex G E (Group)
1244 @findex gnus-group-edit-group
1245 Enter a buffer where you can edit the group info
1246 (@code{gnus-group-edit-group}).
1247
1248 @item G d
1249 @kindex G d (Group)
1250 @findex gnus-group-make-directory-group
1251 Make a directory group.  You will be prompted for a directory name
1252 (@code{gnus-group-make-directory-group}).  
1253
1254 @item G h 
1255 @kindex G h (Group)
1256 @findex gnus-group-make-help-group
1257 Make the (ding) Gnus help group (@code{gnus-group-make-help-group}).
1258
1259 @item G a
1260 @kindex G a (Group)
1261 @findex gnus-group-make-archive-group
1262 @vindex gnus-group-archive-directory
1263 Make the (ding) Gnus archive group
1264 (@code{gnus-group-make-archive-group}).  The archive group will be
1265 fetched from @code{gnus-group-archive-directory}.
1266
1267 @item G k
1268 @kindex G k (Group)
1269 @findex gnus-group-make-kiboze-group
1270 Make a kiboze group.  You will be prompted for a name, for a regexp to
1271 match groups to be "included" in the kiboze group, and a series of
1272 strings to match on headers (@code{gnus-group-make-kiboze-group}).
1273
1274 @item G D
1275 @kindex G D (Group)
1276 @findex gnus-group-enter-directory
1277 Read a random directory as if with were a newsgroup with the
1278 @code{nneething} backend (@code{gnus-group-enter-directory}).
1279
1280 @item G f
1281 @kindex G f (Group)
1282 @findex gnus-group-make-doc-group
1283 Make a group based on some file or other
1284 (@code{gnus-group-make-doc-group}).  You will be prompted for a file
1285 name and a file type.  Currently supported types are @code{babyl},
1286 @code{mbox} and @code{digest}.
1287
1288 @item G V
1289 @kindex G V (Group)
1290 @findex gnus-group-make-empty-virtual
1291 Make a new, fresh, empty @code{nnvirtual} group
1292 (@code{gnus-group-make-empty-virtual}).
1293
1294 @item G v
1295 @kindex G v (Group)
1296 @findex gnus-group-add-to-virtual
1297 Add the current group to an @code{nnvirtual} group
1298 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
1299 @end table
1300
1301 The different methods all have their peculiarities, of course.
1302
1303 @menu
1304 * nntp::             Reading news from a different @sc{nntp} server.
1305 * nnspool::          Reading news from the local spool.
1306 * nnvirtual::        Combining articles from many groups.
1307 * nnkiboze::         Looking through parts of the newsfeed for articles.
1308 * nndir::            You can read a directory as if it was a newsgroup.
1309 * nneething::          Dired? Who needs dired?
1310 * nndoc::            Single files can be the basis of a group.
1311 * Reading Mail::     Reading your personal mail with Gnus.
1312 @end menu
1313
1314 @vindex gnus-activate-foreign-newsgroups
1315 If the @code{gnus-activate-foreign-newsgroups} is a positive number,
1316 Gnus will check all foreign groups with this level or lower at startup.
1317 This might take quite a while, especially if you subscribe to lots of
1318 groups from different @sc{nntp} servers.  It is @code{nil} by default,
1319 which means that you won't be told whether there are new articles in
1320 these groups.  How many unread articles there are will be determined
1321 when, or if, you decide to enter them.  You can also activate any group
1322 with @kbd{M-g} to see how many unread articles there are.
1323
1324 @node nntp
1325 @subsection nntp
1326 @cindex @sc{nntp}
1327
1328 Subscribing to a foreign group from an @sc{nntp} server is rather easy.
1329 You just specify @code{nntp} as method and the address of the @sc{nntp}
1330 server as the, uhm, address.
1331
1332 If the @sc{nntp} server is located at a non-standard port, setting the
1333 third element of the select method to this port number should allow you
1334 to connect to the right port.  You'll have to edit the group info for
1335 that (@pxref{Foreign Groups}).
1336
1337 The name of the foreign group can be the same as a native group.  In
1338 fact, you can subscribe to the same group from as many different servers
1339 you feel like.  There will be no name collisions.
1340
1341 The following variables can be used to create a virtual @code{nntp}
1342 server: 
1343
1344 @table @code
1345 @item nntp-server-opened-hook
1346 @vindex nntp-server-opened-hook
1347 @cindex @sc{mode reader}
1348 @cindex authinfo
1349 @findex nntp-send-authinfo
1350 @findex nntp-send-mode-reader
1351 @code{nntp-server-opened-hook} is run after a connection has been made.
1352 It can be used to send commands to the @sc{nntp} server after it has
1353 been contacted.  By default is sends the command @samp{MODE READER} to
1354 the server with the @code{nntp-send-mode-reader} function.  Another
1355 popular function is @code{nntp-send-authinfo}, which will prompt you for
1356 an @sc{nntp} password and stuff.
1357
1358 @item nntp-maximum-request
1359 @vindex nntp-maximum-request
1360 If the @sc{nntp} server doesn't support @sc{nov} headers, this backend
1361 will collect headers by sending a series of @code{head} commands.  To
1362 speed things up, the backend sends lots of these commands without
1363 waiting for reply, and then reads all the replies.  This is controlled
1364 by the @code{nntp-maximum-request} variable, and is 400 by default.  If
1365 your network is buggy, you should set this to 1.
1366
1367 @item nntp-connection-timeout
1368 @vindex nntp-connection-timeout
1369 If you have lots of foreign @code{nntp} groups that you connect to
1370 regularly, you're sure to have problems with @sc{nntp} servers not
1371 responding properly, or being too loaded to reply within reasonable
1372 time.  This is can lead to awkward problems, which can be helped
1373 somewhat by setting @code{nntp-connection-timeout}.  This is an integer
1374 that says how many seconds the @code{nntp} backend should wait for a
1375 connection before giving up.  If it is @code{nil}, which is the default,
1376 no timeouts are done.
1377
1378 @item nntp-server-hook
1379 @vindex nntp-server-hook
1380 This hook is run as the last step when connecting to an @sc{nntp}
1381 server.
1382
1383 @findex nntp-open-rlogin
1384 @findex nntp-open-network-stream
1385 @item nntp-open-server-function
1386 @vindex nntp-open-server-function
1387 This function is used to connect to the remote system.  Two pre-made
1388 functions are @code{nntp-open-network-stream}, which is the default, and
1389 simply connects to some port or other on the remote system.  The other
1390 is @code{nntp-open-rlogin}, which does an rlogin on the remote system,
1391 and then does a telnet to the @sc{nntp} server available there.
1392
1393 @item nntp-rlogin-parameters
1394 @vindex nntp-rlogin-parameters
1395 If you use @code{nntp-open-rlogin} as the
1396 @code{nntp-open-server-function}, this list will be used as the
1397 parameter list given to @code{rsh}.
1398
1399 @item nntp-rlogin-user-name
1400 @vindex nntp-rlogin-user-name
1401 User name on the remote system when using the @code{rlogin} connect
1402 function. 
1403
1404 @item nntp-address
1405 @vindex nntp-address
1406 The address of the remote system running the @sc{nntp} server.
1407
1408 @item nntp-port-number
1409 @vindex nntp-port-number
1410 Port number to connect to when using the @code{nntp-open-network-stream}
1411 connect function.
1412
1413 @item nntp-buggy-select
1414 @vindex nntp-buggy-select
1415 Set this to non-@code{nil} if your select routine is buggy.
1416
1417 @item nntp-nov-is-evil 
1418 @vindex nntp-nov-is-evil 
1419 If the @sc{nntp} server does not support @sc{nov}, you could set this
1420 variable to @code{t}, but @code{nntp} usually checks whether @sc{nov}
1421 can be used automatically.
1422
1423 @item nntp-xover-commands
1424 @vindex nntp-xover-commands
1425 List of strings that are used as commands to fetch @sc{nov} lines from a
1426 server.  The default value of this variable is @code{("XOVER"
1427 "XOVERVIEW")}. 
1428
1429 @item nntp-nov-gap
1430 @vindex nntp-nov-gap
1431 @code{nntp} normally sends just one big request for @sc{nov} lines to
1432 the server.  The server responds with one huge list of lines.  However,
1433 if you have read articles 2-5000 in the group, and only want to read
1434 article 1 and 5001, that means that @code{nntp} will fetch 4999 @sc{nov}
1435 lines that you do not want, and will not use.  This variable says how
1436 big a gap between two consecutive articles is allowed to be before the
1437 @code{XOVER} request is split into several request.  Note that if your
1438 network is fast, setting this variable to a really small number means
1439 that fetching will probably be slower.  If this variable is @code{nil},
1440 @code{nntp} will never split requests.
1441
1442 @item nntp-prepare-server-hook
1443 @vindex nntp-prepare-server-hook
1444 A hook run before attempting to connect to an @sc{nntp} server.
1445
1446 @item nntp-async-number
1447 @vindex nntp-async-number
1448 How many articles should be pre-fetched when in asynchronous mode.  If
1449 this variable is @code{t}, @code{nntp} will pre-fetch all the articles
1450 that it can without bound.  If it is @code{nil}, no pre-fetching will be
1451 made.
1452
1453 @end table
1454
1455 @node nnspool
1456 @subsection nnspool
1457 @cindex nnspool
1458 @cindex news spool
1459
1460 Subscribing to a foreign group from the local spool is extremely easy,
1461 and might be useful, for instance, to speed up reading groups like
1462 @samp{alt.binaries.pictures.furniture}.
1463
1464 Anyways, you just specify @code{nnspool} as the method and @samp{""} (or
1465 anything else) as the address.
1466
1467 If you have access to a local spool, you should probably use that as the
1468 native select method (@pxref{Finding the News}).
1469
1470 @table @code
1471 @item nnspool-inews-program
1472 @vindex nnspool-inews-program
1473 Program used to post an article.
1474
1475 @item nnspool-inews-switches
1476 @vindex nnspool-inews-switches
1477 Parameters given to the inews program when posting an article. 
1478
1479 @item nnspool-spool-directory
1480 @vindex nnspool-spool-directory
1481 Where nnspool looks for the articles.  This is normally
1482 @file{/usr/spool/news/}.
1483
1484 @item nnspool-nov-directory 
1485 @vindex nnspool-nov-directory 
1486 Where nnspool will look for @sc{nov} files.  This is normally
1487 @file{/usr/spool/news/over.view/}.
1488
1489 @item nnspool-lib-dir
1490 @vindex nnspool-lib-dir
1491 Where the news lib dir is (@file{/usr/lib/news/} by default).
1492
1493 @item nnspool-active-file
1494 @vindex nnspool-active-file
1495 The path of the active file.
1496
1497 @item nnspool-newsgroups-file
1498 @vindex nnspool-newsgroups-file
1499 The path of the group description file.
1500
1501 @item nnspool-history-file
1502 @vindex nnspool-history-file
1503 The path of the news history file.
1504
1505 @item nnspool-active-times-file
1506 @vindex nnspool-active-times-file
1507 The path of the active date file.
1508
1509 @item nnspool-nov-is-evil
1510 @vindex nnspool-nov-is-evil
1511 If non-@code{nil}, @code{nnspool} won't try to use any @sc{nov} files
1512 that it finds.
1513
1514 @item nnspool-sift-nov-with-sed
1515 @vindex nnspool-sift-nov-with-sed
1516 If non-@code{nil}, which is the default, use @code{sed} to get the
1517 relevant portion from the overview file.  If nil, @code{nnspool} will
1518 load the entire file into a buffer and process it there.
1519
1520 @end table
1521
1522 @node nnvirtual
1523 @subsection nnvirtual
1524 @cindex nnvirtual
1525 @cindex virtual groups
1526
1527 An @dfn{nnvirtual group} is really nothing more than a collection of
1528 other groups.
1529
1530 For instance, if you are tired of reading many small group, you can
1531 put them all in one big group, and then grow tired of reading one
1532 big, unwieldy group.  The joys of computing!
1533
1534 You specify @code{nnvirtual} as the method.  The address should be a
1535 regexp to match component groups.
1536
1537 All marks in the virtual group will stick to the articles in the
1538 component groups.  So if you tick an article in a virtual group, the
1539 article will also be ticked in the component group from whence it came.
1540 (And vice versa - marks from the component groups will also be shown in
1541 the virtual group.)
1542
1543 Here's an example nnvirtual method that collects all Andrea Dworkin
1544 newsgroups into one, big, happy newsgroup:
1545
1546 @lisp
1547 (nnvirtual "^alt\\.fan\\.andrea-dworkin$\\|^rec\\.dworkin.*")
1548 @end lisp
1549
1550 The component groups can be native or foreign; everything should work
1551 smoothly, but if your computer explodes, it was probably my fault.
1552
1553 Collecting the same group from several servers might actually be a good
1554 idea if users have set the Distribution header to limit distribution.
1555 If you would like to read @samp{soc.motss} both from a server in Japan
1556 and a server in Norway, you could use the following as the group regexp:
1557
1558 @example
1559 "^nntp+some.server.jp:soc.motss$\\|^nntp+some.server.no:soc.motss$"
1560 @end example
1561
1562 This should work kinda smoothly - all articles from both groups should
1563 end up in this one, and there should be no duplicates.  Threading (and
1564 the rest) will still work as usual, but there might be problems with the
1565 sequence of articles.  Sorting on date might be an option here
1566 (@pxref{Selecting a Group}.
1567
1568 One limitation, however - all groups that are included in a virtual
1569 group has to be alive (i.e., subscribed or unsubscribed).  Killed or
1570 zombie groups can't be component groups for nnvirtual groups.
1571
1572 @node nnkiboze
1573 @subsection nnkiboze
1574 @cindex nnkiboze
1575 @cindex kibozing
1576
1577 @dfn{Kibozing} is defined by OED as "grepping through (parts of) the
1578 news feed".  nnkiboze is a backend that will do this for you.  Oh joy!
1579 Now you can grind any @sc{nntp} server down to a halt with useless
1580 requests!  Oh happiness!
1581
1582 The address field of the nnkiboze method is, as with nnvirtual, a regexp
1583 to match groups to be "included" in the nnkiboze group.  There most
1584 similarities between nnkiboze and nnvirtual ends.
1585
1586 In addition to this regexp detailing component groups, an nnkiboze group
1587 must have a score file to say what articles that are to be included in
1588 the group (@pxref{Score Files}).
1589
1590 @kindex M-x nnkiboze-generate-groups
1591 @findex nnkiboze-generate-groups
1592 You must run @kbd{M-x nnkiboze-generate-groups} after creating the
1593 nnkiboze groups you want to have.  This command will take time.  Lots of
1594 time.  Oodles and oodles of time.  Gnus has to fetch the headers from
1595 all the articles in all the components groups and run them through the
1596 scoring process to determine if there are any articles in the groups
1597 that are to be part of the nnkiboze groups.
1598
1599 Please limit the number of component groups by using restrictive
1600 regexps.  Otherwise your sysadmin may become annoyed with you, and the
1601 @sc{nntp} site may throw you off and never let you back in again.
1602 Stranger things have happened.
1603
1604 nnkiboze component groups do not have to be alive - they can be dead,
1605 and they can be foreign.  No restrictions.
1606
1607 @vindex nnkiboze-directory
1608 The generation of an nnkiboze group means writing two files in
1609 @code{nnkiboze-directory}, which is @file{~/News/} by default.  One
1610 contains the @sc{nov} header lines for all the articles in the group,
1611 and the other is an additional @file{.newsrc} file to store information
1612 on what groups that have been searched through to find component
1613 articles.
1614
1615 Articles that are marked as read in the nnkiboze group will have their
1616 @sc{nov} lines removed from the @sc{nov} file.
1617
1618 @node nndir
1619 @subsection nndir
1620 @cindex nndir
1621 @cindex directory groups
1622
1623 If you have a directory that has lots of articles in separate files in
1624 it, you might treat it as a newsgroup.  The files have to have numerical
1625 names, of course.
1626
1627 This might be an opportune moment to mention @code{ange-ftp}, that most
1628 wonderful of all wonderful Emacs packages.  When I wrote @code{nndir}, I
1629 didn't think much about it - a backend to read directories.  Big deal.
1630
1631 @code{ange-ftp} changes that picture dramatically.  For instance, if you
1632 enter @file{"/ftp@@sina.tcamc.uh.edu:/pub/emacs/ding-list/"} as the the
1633 directory name, ange-ftp will actually allow you to read this directory
1634 over at @samp{sina} as a newsgroup.  Distributed news ahoy!
1635
1636 @code{nndir} will use @sc{nov} files if they are present.
1637
1638 @code{nndir} is a "read-only" backend - you can't delete or expire
1639 articles with this method.  You can use @code{nnmh} or @code{nnml} for
1640 whatever you use @code{nndir} for, so you could switch to any of those
1641 methods if you feel the need to have a non-read-only @code{nndir}.
1642
1643 @node nneething
1644 @subsection nneething
1645 @cindex nneething
1646
1647 From the @code{nndir} backend (which reads a single spool-like
1648 directory), it's just a hop and a skip to @code{nneething}, which
1649 pretends that any random directory is a newsgroup. Strange, but true.
1650
1651 When @code{nneething} is presented with a directory, it will scan this
1652 directory and assign article numbers to each file. When you enter such a
1653 group, @code{nneething} must create "headers" that Gnus can use. After
1654 all, Gnus is a newsreader, in case you're forgetting. @code{nneething}
1655 does this in a two-step process. First, it snoops each file in question.
1656 If the file looks like an article (i.e., the first few lines look like
1657 headers), it will use this as the head. If this is just some random file
1658 without a head (eg. a C source file), @code{nneething} will cobble up a
1659 header out of thin air. It will use file ownership, name and date and do
1660 whatever it can with these elements.
1661
1662 All this should happen automatically for you, and you will be presented
1663 with something that looks very much like a newsgroup. Totally like a
1664 newsgroup, to be precise. If you select an article, it will be displayed
1665 in the article buffer, just as usual.
1666
1667 If you select a line that represents a directory, Gnus will pop you into
1668 a new summary buffer for this @code{nneething} group. And so on. You can
1669 traverse the entire disk this way, if you feel like, but remember that
1670 Gnus is not dired, really, and does not intend to be, either.
1671
1672 There are two overall modes to this action - ephemeral or solid. When
1673 doing the ephemeral thing (i.e., @kbd{G D} from the group buffer), Gnus
1674 will not store information on what files you have read, and what files
1675 are new, and so on. If you create a solid @code{nneething} group the
1676 normal way with @kbd{G m}, Gnus will store a mapping table between
1677 article numbers and file names, and you can treat this group like any
1678 other groups. When you activate a solid @code{nneething} group, you will
1679 be told how many unread articles it contains, etc., etc.
1680
1681 Some variables:
1682
1683 @table @code
1684 @item nneething-map-file-directory
1685 @vindex nneething-map-file-directory
1686 All the mapping files for solid @code{nneething} groups will be stored
1687 in this directory, which defaults to @file{~/.nneething/}.
1688
1689 @item nneething-exclude-files
1690 @vindex nneething-exclude-files
1691 All files that match this regexp will be ignored. Nice to use to exclude
1692 auto-save files and the like, which is what it does by default.
1693
1694 @item nneething-map-file
1695 @vindex nneething-map-file
1696 Name of the map files.
1697 @end table
1698
1699
1700 @node nndoc
1701 @subsection nndoc
1702 @cindex nndoc
1703 @cindex documentation group
1704 @cindex help group
1705
1706 nndoc is a cute little thing that will let you read a single file as a
1707 newsgroup.  Currently supported file types are @code{babyl}, @code{mbox}
1708 and @code{digest}. 
1709
1710 nndoc will not try to change the file or insert any extra headers into
1711 it - it will simply, like, let you use the file as the basis for a
1712 group.  And that's it.
1713
1714 Virtual server variables:
1715
1716 @table @code
1717 @item nndoc-article-type
1718 @vindex nndoc-article-type
1719 This should be one of @code{mbox}, @code{babyl} or @code{digest}. 
1720 @end table
1721
1722 @node Reading Mail
1723 @subsection Reading Mail
1724 @cindex reading mail
1725 @cindex mail
1726
1727 Reading mail with a newsreader - isn't that just plain WeIrD? But of
1728 course.
1729
1730 @menu
1731 * Creating Mail Groups::         How to create mail groups.
1732 * Fancy Mail Splitting::         Gnus can do hairy splitting of incoming mail.
1733 * Mail & Procmail::              Reading mail groups that procmail create.
1734 * Expiring Old Mail Articles::   Getting rid of unwanted mail.
1735 * Not Reading Mail::             Using mail backends for reading other files.
1736 @end menu
1737
1738 Gnus will read the mail spool when you activate a mail group.  The mail
1739 file is first copied to your home directory.  What happens after that
1740 depends on what format you want to store your mail in.
1741
1742 @menu
1743 * nnmbox::    Using the (quite) standard Un*x mbox.
1744 * nnbabyl::   Many Emacs programs use the rmail babyl format.
1745 * nnml::      Store your mail in a private spool?
1746 * nnmh::      An mhspool-like backend useful for procmail people.
1747 * nnfolder::  Having one file for each group.
1748 @end menu
1749
1750 @vindex nnmail-read-incoming-hook
1751 The mail backends all call @code{nnmail-read-incoming-hook} after
1752 reading new mail.  You can use this hook to notify any mail watch
1753 programs, if you want to.
1754
1755 @vindex nnmail-spool-file
1756 @code{nnmail-spool-file} says where to look for new mail.  If this
1757 variable is @code{nil}, the mail backends will never attempt to fetch
1758 mail by themselves.  It is quite likely that Gnus supports POP-mail.
1759 Set this variable to begin with the string @samp{po:}, and everything
1760 should go smoothly, even though I have never tested this.
1761
1762 @vindex nnmail-use-procmail
1763 If @code{nnmail-use-procmail} is non-@code{nil}, the mail backends will
1764 look in @code{nnmail-procmail-directory} for incoming mail.  All the
1765 files in that directory that have names ending in
1766 @code{gnus-procmail-suffix} will be considered incoming mailboxes, and
1767 will be searched for new mail.
1768
1769 @vindex nnmail-prepare-incoming-hook
1770 @code{nnmail-prepare-incoming-hook} is run in a buffer that holds all
1771 the new incoming mail, and can be used for, well, anything, really.
1772
1773 @vindex nnmail-tmp-directory
1774 @code{nnmail-tmp-directory} says where to move the incoming mail to
1775 while processing it.  This is usually done in the same directory that
1776 the mail backend inhabits (i.e., @file{~/Mail/}), but if this variable is
1777 non-@code{nil}, it will be used instead.
1778
1779 @vindex nnmail-delete-incoming
1780 If @code{nnmail-delete-incoming} is non-@code{nil}, the mail backends
1781 will delete the temporary incoming file after splitting mail into the
1782 proper groups.  This is @code{nil} by default for reasons of security. 
1783
1784 Gnus gives you all the opportunity you could possibly want for shooting
1785 yourself in the foot.  Let's say you create a group that will contain
1786 all the mail you get from your boss.  And then you accidentally
1787 unsubscribe from the group.  Gnus will still put all the mail from your
1788 boss in the unsubscribed group, and so, when your boss mails you "Have
1789 that report ready by Monday or you're fired!", you'll never see it and,
1790 come Tuesday, you'll still believe that you're gainfully employed while
1791 you really should be out collecting empty bottles to save up for next
1792 month's rent money.
1793
1794 @node Creating Mail Groups
1795 @subsubsection Creating Mail Groups
1796 @cindex creating mail groups
1797
1798 You can make Gnus read your personal, private, secret mail.
1799
1800 You should first set @code{gnus-secondary-select-methods} to, for
1801 instance, @code{((nnmbox ""))}.  When you start up Gnus, Gnus will ask
1802 this backend for what groups it carries (@samp{mail.misc} by default)
1803 and subscribe it the normal way.  (Which means you may have to look for
1804 it among the zombie groups, I guess, all depending on your
1805 @code{gnus-subscribe-newsgroup-method} variable.)
1806
1807 @vindex nnmail-split-methods
1808 Then you should set the variable @code{nnmail-split-methods} to specify
1809 how the incoming mail is to be split into groups.
1810
1811 @lisp
1812 (setq nnmail-split-methods
1813   '(("mail.junk" "^From:.*Lars Ingebrigtsen")
1814     ("mail.crazy" "^Subject:.*die\\|^Organization:.*flabby")
1815     ("mail.other" "")))
1816 @end lisp
1817
1818 This variable is a list of lists, where the first element of each of
1819 these lists is the name of the mail group (they do not have to be called
1820 something beginning with @samp{mail}, by the way), and the second
1821 element is a regular expression used on the header of each mail to
1822 determine if it belongs in this mail group.
1823
1824 The second element can also be a function.  In that case, it will be
1825 called narrowed to the headers with the first element of the rule as the
1826 argument.  It should return a non-@code{nil} value if it thinks that the
1827 mail belongs in that group.
1828
1829 The last of these groups should always be a general one, and the regular
1830 expression should @emph{always} be @samp{""} so that it matches any
1831 mails that haven't been matched by any of the other regexps.
1832
1833 If you like to tinker with this yourself, you can set this variable to a
1834 function of your choice. This function will be called without any
1835 arguments in a buffer narrowed to the headers of an incoming mail
1836 message. The function should return a list of groups names that it
1837 thinks should carry this mail message.
1838
1839 @vindex nnmail-crosspost
1840 The mail backends all support cross-posting.  If several regexps match,
1841 the mail will be "cross-posted" to all those groups.
1842 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
1843 that no articles are crossposted to the general (@samp{""}) group. 
1844
1845 @node Fancy Mail Splitting
1846 @subsubsection Fancy Mail Splitting
1847 @cindex mail splitting
1848 @cindex fancy mail splitting
1849
1850 @vindex nnmail-split-fancy
1851 @findex nnmail-split-fancy
1852 If the rather simple, standard method for specifying how to split mail
1853 doesn't allow you to do what you want, you can set
1854 @code{nnmail-split-methods} to @code{nnmail-split-fancy}.  Then you can
1855 play with the @code{nnmail-split-fancy} variable. 
1856
1857 Let's look at an example value of this variable first:
1858
1859 @lisp
1860 ;; Messages from the mailer daemon are not crossposted to any of
1861 ;; the ordinary groups.  Warnings are put in a separate group
1862 ;; from real errors.
1863 (| ("from" mail (| ("subject" "warn.*" "mail.warning")
1864                    "mail.misc"))
1865    ;; Non-error messages are crossposted to all relevant
1866    ;; groups, but we don't crosspost between the group for the
1867    ;; (ding) list and the group for other (ding) related mail.
1868    (& (| (any "ding@@ifi\\.uio\\.no" "ding.list")
1869          ("subject" "ding" "ding.misc"))
1870       ;; Other mailing lists...
1871       (any "procmail@@informatik\\.rwth-aachen\\.de" "procmail.list")
1872       (any "SmartList@@informatik\\.rwth-aachen\\.de" "SmartList.list")
1873       ;; People...
1874       (any "larsi@@ifi\\.uio\\.no" "people.Lars Magne Ingebrigtsen"))
1875    ;; Unmatched mail goes to the catch all group.
1876    "misc.misc"))")
1877 @end lisp
1878
1879 This variable has the format of a @dfn{split}.  A split is a (possibly)
1880 recursive structure where each split may contain other splits.  Here are
1881 the four possible split syntaxes:
1882
1883 @table @dfn
1884 @item GROUP 
1885 If the split is a string, that will be taken as a group name. 
1886 @item (FIELD VALUE SPLIT)
1887 If the split is a list, and the first element is a string, then that
1888 means that if header FIELD (a regexp) contains VALUE (also a regexp),
1889 then store the message as specified by SPLIT.
1890 @item (| SPLIT...)
1891 If the split is a list, and the first element is @code{|} (vertical
1892 bar), then process each SPLIT until one of them matches.  A SPLIT is
1893 said to match if it will cause the mail message to be stored in one or
1894 more groups.
1895 @item (& SPLIT...)
1896 If the split is a list, and the first element is @code{&}, then process
1897 all SPLITs in the list.
1898 @end table
1899
1900 In these splits, FIELD must match a complete field name.  VALUE must
1901 match a complete word according to the fundamental mode syntax table.
1902 You can use @code{.*} in the regexps to match partial field names or
1903 words.
1904
1905 @vindex nnmail-split-abbrev-alist
1906 FIELD and VALUE can also be lisp symbols, in that case they are expanded
1907 as specified by the variable @code{nnmail-split-abbrev-alist}.  This is
1908 an alist of cons cells, where the car of the cells contains the key, and
1909 the cdr contains a string.
1910
1911 @node Mail & Procmail
1912 @subsubsection Mail & Procmail
1913 @cindex procmail
1914
1915 Many people use @code{procmail} to split incoming mail into groups.  If
1916 you do that, you should set @code{nnmail-spool-file} to @code{procmail}
1917 to ensure that the mail backends never ever try to fetch mail by
1918 themselves.
1919
1920 This also means that you probably don't want to set
1921 @code{nnmail-split-methods} either, which has some, perhaps, unexpected
1922 side effects.
1923
1924 When a mail backend is queried for what groups it carries, it replies
1925 with the contents of that variable, along with any groups it has figured
1926 out that it carries by other means.  None of the backends (except
1927 @code{nnmh}) actually go out to the disk and check what groups actually
1928 exist.  (It's not trivial to distinguish between what the user thinks is
1929 a basis for a newsgroup and what is just a plain old file or directory.)
1930
1931 This means that you have to tell Gnus (and the backends) what groups
1932 exist by hand.
1933
1934 Let's take the @code{nnmh} backend as an example. 
1935
1936 The folders are located in @code{nnmh-directory}, say, @file{~/Mail/}.
1937 There are three folders, @file{foo}, @file{bar} and @file{mail.baz}.
1938
1939 Go to the group buffer and type @kbd{G m}.  When prompted, answer
1940 @samp{foo} for the name and @samp{nnmh} for the method.  Repeat
1941 twice for the two other groups, @samp{bar} and @samp{mail.baz}.  Be sure
1942 to include all your mail groups.
1943
1944 That's it.  You are now set to read your mail.  An active file for this
1945 method will be created automatically.
1946
1947 @vindex nnmail-procmail-suffix
1948 @vindex nnmail-procmail-directory
1949 If you use @code{nnfolder} or any other backend that store more than a
1950 single article in each file, you should never have procmail add mails to
1951 the file that Gnus sees.  Instead, procmail should put all incoming mail
1952 in @code{nnmail-procmail-directory}.  To arrive at the file name to put
1953 the incoming mail in, append @code{nnmail-procmail-suffix} to the group
1954 name.  The mail backends will read the mail from these files.
1955
1956 @vindex nnmail-resplit-incoming
1957 When Gnus reads a file called @file{mail.misc.spool}, this mail will be
1958 put in the @code{mail.misc}, as one would expect.  However, if you want
1959 Gnus to split the mail the normal way, you could set
1960 @code{nnmail-resplit-incoming} to @code{t}.
1961
1962 @vindex nnmail-keep-last-article
1963 If you use @code{procmail}, you should set
1964 @code{nnmail-keep-last-article} to non-@code{nil}, to prevent Gnus from
1965 ever expiring the final article in a mail newsgroup. This is quite,
1966 quite important.
1967
1968
1969 @node Expiring Old Mail Articles
1970 @subsubsection Expiring Old Mail Articles
1971 @cindex article expiry
1972
1973 Traditional mail readers have a tendency to remove mail articles when
1974 you mark them as read, in some way.  Gnus takes a fundamentally
1975 different approach to mail reading.
1976
1977 Gnus basically considers mail just to be news that has been received in
1978 a rather peculiar manner.  It does not think that it has the power to
1979 actually change the mail, or delete any mail messages.  If you enter a
1980 mail group, and mark articles as "read", or kill them in some other
1981 fashion, the mail articles will still exist on the system.  I repeat:
1982 Gnus will not delete your old, read mail.  Unless you ask it to, of
1983 course.
1984
1985 To make Gnus get rid of your unwanted mail, you have to mark the
1986 articles as @dfn{expirable}.  This does not mean that the articles will
1987 disappear right away, however.  In general, a mail article will be
1988 deleted from your system if, 1) it is marked as expirable, AND 2) it is
1989 more than one week old.  If you do not mark an article as expirable, it
1990 will remain on your system until hell freezes over.  This bears
1991 repeating one more time, with some spurious capitalizations: IF you do
1992 NOT mark articles as EXPIRABLE, Gnus will NEVER delete those ARTICLES.
1993
1994 @vindex gnus-auto-expirable-newsgroups
1995 You do not have to mark articles as expirable by hand.  Groups that
1996 match the regular expression @code{gnus-auto-expirable-newsgroups} will
1997 have all articles that you read marked as expirable automatically.  All
1998 articles that are marked as expirable have an @samp{E} in the first
1999 column in the summary buffer.
2000
2001 Let's say you subscribe to a couple of mailing lists, and you want the
2002 articles you have read to disappear after a while:
2003
2004 @lisp
2005 (setq gnus-auto-expirable-newsgroups 
2006       "mail.nonsense-list\\|mail.nice-list")
2007 @end lisp
2008
2009 Another way to have auto-expiry happen is to have the element
2010 @code{auto-expire} in the select method of the group. 
2011
2012 @vindex nnmail-expiry-wait
2013 The @code{nnmail-expiry-wait} variable supplies the default time an
2014 expirable article has to live.  The default is seven days.
2015
2016 Gnus also supplies a function that lets you fine-tune how long articles
2017 are to live, based on what group they are in.  Let's say you want to
2018 have one month expiry period in the @samp{mail.private} group, a one day
2019 expiry period in the @samp{mail.junk} group, and a six day expiry period
2020 everywhere else:
2021
2022 @lisp
2023 (setq nnmail-expiry-wait-function
2024       (lambda (group)
2025        (cond ((string= group "mail.private")
2026                31)
2027              ((string= group "mail.junk")
2028                1)
2029              (t
2030                6))))
2031 @end lisp
2032
2033 @vindex nnmail-keep-last-article
2034 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never
2035 expire the final article in a mail newsgroup.  This is to make life
2036 easier for procmail users.
2037
2038 By the way, that line up there about Gnus never expiring non-expirable
2039 articles is a lie.  If you put @code{total-expire} in the group
2040 parameters, articles will not be marked as expirable, but all read
2041 articles will be put through the expiry process.  Use with extreme
2042 caution. 
2043
2044 Note that at present, Gnus will not actually delete any expirable
2045 articles automatically.  You have to enter one of the expiry functions
2046 (eg. `C-c M-c-x' in the group buffer) to actually run articles through
2047 the expiry process.  Or you can add a call to the expiry function in the
2048 group exit hook.  Gnus will probably do all this automatically in the
2049 future. 
2050
2051 @node Not Reading Mail
2052 @subsubsection Not Reading Mail
2053
2054 If you start using any of the mail backends, they have the annoying
2055 habit of assuming that you want to read mail with them.  This might not
2056 be unreasonable, but it might not be what you want.
2057
2058 If you set @code{nnmail-spool-file} to @code{nil}, none of the backends
2059 will ever attempt to read incoming mail, which should help.
2060
2061 @vindex nnbabyl-get-new-mail
2062 @vindex nnmbox-get-new-mail
2063 @vindex nnml-get-new-mail
2064 @vindex nnmh-get-new-mail
2065 @vindex nnfolder-get-new-mail
2066 This might be too much, if, for instance, you are reading mail quite
2067 happily with @code{nnml} and just want to peek at some old @sc{rmail}
2068 file you have stashed away with @code{nnbabyl}.  All backends have
2069 variables called backend-@code{get-new-mail}.  If you want to disable
2070 the @code{nnbabyl} mail reading, you edit the virtual server for the
2071 group to have a setting where @code{nnbabyl-get-new-mail} to @code{nil}.
2072
2073 All the mail backends will call @code{nn}*@code{-prepare-save-mail-hook}
2074 narrowed to the article to be saved before saving it when reading
2075 incoming mail.
2076
2077 @node nnmbox
2078 @subsubsection nnmbox
2079 @cindex nnmbox
2080 @cindex unix mail box
2081
2082 @vindex nnmbox-active-file
2083 @vindex nnmbox-mbox-file
2084 The @dfn{nnmbox} backend will use the standard Un*x mbox file to store
2085 mail.  @code{nnmbox} will add extra headers to each mail article to say
2086 which group it belongs in.
2087
2088 Virtual server settings:
2089
2090 @table @code
2091 @item nnmbox-mbox-file
2092 @vindex nnmbox-mbox-file
2093 The name of the mail box in the user's home directory. 
2094
2095 @item nnmbox-active-file
2096 @vindex nnmbox-active-file
2097 The name of the active file for the mail box.
2098
2099 @item nnmbox-get-new-mail
2100 @vindex nnmbox-get-new-mail
2101 If non-@code{nil}, @code{nnmbox} will read incoming mail and split it
2102 into groups.
2103 @end table
2104
2105 @node nnbabyl
2106 @subsubsection nnbabyl
2107 @cindex nnbabyl
2108 @cindex rmail mbox
2109
2110 @vindex nnbabyl-active-file
2111 @vindex nnbabyl-mbox-file
2112 The @dfn{nnbabyl} backend will use a babyl mail box to store mail.
2113 @code{nnbabyl} will add extra headers to each mail article to say which
2114 group it belongs in.
2115
2116 Virtual server settings:
2117
2118 @table @code
2119 @item nnbabyl-mbox-file
2120 @vindex nnbabyl-mbox-file
2121 The name of the rmail mbox file.
2122
2123 @item nnbabyl-active-file
2124 @vindex nnbabyl-active-file
2125 The name of the active file for the rmail box.
2126
2127 @item nnbabyl-get-new-mail
2128 @vindex nnbabyl-get-new-mail
2129 If non-@code{nil}, @code{nnbabyl} will read incoming mail. 
2130 @end table
2131
2132 @node nnml
2133 @subsubsection nnml
2134 @cindex nnml
2135 @cindex mail @sc{nov} spool
2136
2137 The @dfn{nnml} spool mail format isn't compatible with any other known
2138 format.  It should be used with some caution.
2139
2140 @vindex nnml-directory
2141 If you use this backend, Gnus will split all incoming mail into files;
2142 one file for each mail, and put the articles into the correct
2143 directories under the directory specified by the @code{nnml-directory}
2144 variable.  The default value is @file{~/Mail/}.
2145
2146 You do not have to create any directories beforehand; Gnus will take
2147 care of all that.
2148
2149 If you have a strict limit as to how many files you are allowed to store
2150 in your account, you should not use this backend.  As each mail gets its
2151 own file, you might very well occupy thousands of inodes within a few
2152 weeks.  If this is no problem for you, and it isn't a problem for you
2153 having your friendly systems administrator walking around, madly,
2154 shouting "Who is eating all my inodes?! Who? Who!?!", then you should
2155 know that this is probably the fastest format to use.  You do not have
2156 to trudge through a big mbox file just to read your new mail.
2157
2158 @code{nnml} is probably the slowest backend when it comes to article
2159 splitting.  It has to create lots of files, and it also generates
2160 @sc{nov} databases for the incoming mails.  This makes is the fastest
2161 backend when it comes to reading mail.
2162
2163 Virtual server settings:
2164
2165 @table @code
2166 @item nnml-directory
2167 @vindex nnml-directory
2168 All @code{nnml} directories will be placed under this directory. 
2169
2170 @item nnml-active-file
2171 @vindex nnml-active-file
2172 The active file for the @code{nnml} server.
2173
2174 @item nnml-newsgroups-file
2175 @vindex nnml-newsgroups-file
2176 The @code{nnml} group description file.
2177
2178 @item nnml-get-new-mail
2179 @vindex nnml-get-new-mail
2180 If non-@code{nil}, @code{nnml} will read incoming mail.
2181
2182 @item nnml-nov-is-evil
2183 @vindex nnml-nov-is-evil
2184 If non-@code{nil}, this backend will ignore any @sc{nov} files.  
2185
2186 @item nnml-nov-file-name
2187 @vindex nnml-nov-file-name
2188 The name of the @sc{nov} files.  The default is @file{.overview}. 
2189
2190 @end table
2191
2192 @findex nnml-generate-nov-databases
2193 If your @code{nnml} groups and @sc{nov} files get totally out of whack,
2194 you can do a complete update by typing @kbd{M-x
2195 nnml-generate-nov-databases}.  This command will trawl through the
2196 entire @code{nnml} hierarchy, looking at each and every article, so it
2197 might take a while to complete.
2198
2199 @node nnmh
2200 @subsubsection nnmh
2201 @cindex nnmh
2202 @cindex mh-e mail spool
2203
2204 @code{nnmh} is just like @code{nnml}, except that is doesn't generate
2205 @sc{nov} databases and it doesn't keep an active file.  This makes
2206 @code{nnmh} a @emph{much} slower backend than @code{nnml}, but it also
2207 makes it easier to write procmail scripts for.
2208
2209 Virtual server settings:
2210
2211 @table @code
2212 @item nnmh-directory
2213 @vindex nnmh-directory
2214 All @code{nnmh} directories will be located under this directory.
2215
2216 @item nnmh-get-new-mail
2217 @vindex nnmh-get-new-mail
2218 If non-@code{nil}, @code{nnmh} will read incoming mail.
2219
2220 @item nnmh-be-safe
2221 @vindex nnmh-be-safe
2222 If non-@code{nil}, @code{nnmh} will go to ridiculous lengths to make
2223 sure that the articles in the folder is actually what Gnus think they
2224 are.  It will check date stamps, and stat everything in sight, so
2225 setting this to @code{t} will mean a serious slow-down.  If you never
2226 use anything by Gnus to read the nnmh articles, you do not have to set
2227 this variable to @code{t}. 
2228 @end table
2229
2230 @node nnfolder
2231 @subsubsection nnfolder
2232 @cindex nnfolder
2233 @cindex mbox folders
2234
2235 @code{nnfolder} is a backend for storing each mail group in a separate
2236 file.  Each file is in the standard Un*x mbox format.  @code{nnfolder}
2237 will add extra headers to keep track of article numbers and arrival
2238 dates.
2239
2240 Virtual server settings:
2241
2242 @table @code
2243 @item nnfolder-directory
2244 @vindex nnfolder-directory
2245 All the @code{nnfolder} mail boxes will be stored under this directory. 
2246
2247 @item nnfolder-active-file
2248 @vindex nnfolder-active-file
2249 The name of the active file.
2250
2251 @item nnfolder-newsgroups-file
2252 @vindex nnfolder-newsgroups-file
2253 The name of the group description file.
2254
2255 @item nnfolder-get-new-mail
2256 @vindex nnfolder-get-new-mail
2257 If non-@code{nil}, @code{nnfolder} will read incoming mail.
2258 @end table
2259
2260 @node Group Parameters
2261 @section Group Parameters
2262 @cindex group parameters
2263
2264 Gnus stores all information on a group in a list that is usually known
2265 as the @dfn{group info}.  This list has from three to six elements.
2266 Here's an example info.
2267
2268 @lisp
2269 ("nnml:mail.ding" 3 ((1 . 232) 244 (256 . 270)) ((tick 246 249))
2270                   (nnml "private") ((to-address . "ding@@ifi.uio.no")))
2271 @end lisp
2272
2273 The first element is the @dfn{group name}, as Gnus knows the group,
2274 anyway.  The second element is the @dfn{subscription level}, which
2275 normally is a small integer.  The third element is a list of ranges of
2276 read articles.  The fourth element is a list of lists of article marks
2277 of various kinds.  The fifth element is the select method (or virtual
2278 server, if you like).  The sixth element is a list of @dfn{group
2279 parameters}, which is what this section is about.
2280
2281 Any of the last three elements may be missing if they are not required.
2282 In fact, the vast majority of groups will normally only have the first
2283 three elements, which saves quite a lot of cons cells.
2284
2285 At present, there's not much you can put in the group parameters list: 
2286
2287 @table @code
2288 @item to-address
2289 @cindex to-address
2290 If the group parameter list contains an element that looks like
2291 @samp{(to-address .  "some@@where.com")}, that address will be used by
2292 the backend when doing followups and posts.  This is primarily useful in
2293 mail groups that represent mailing lists.  You just set this address to
2294 whatever the list address is.
2295
2296 This trick will actually work whether the group is foreign or not.
2297 Let's say there's a group on the server that is called @samp{fa.4ad-l}.
2298 This is a real newsgroup, but the server has gotten the articles from a
2299 mail-to-news gateway.  Posting directly to this group is therefore
2300 impossible - you have to send mail to the mailing list address instead.
2301
2302 @item to-group
2303 @cindex to-group
2304 IF the group parameter list contains an element like @code{(to-group
2305 . "some.group.name")}, all posts will be sent to that groups.
2306
2307 @item auto-expire
2308 @cindex auto-expire
2309 If this symbol is present in the group parameter list, all articles that
2310 are read will be marked as expirable.  For an alternative approach,
2311 @xref{Expiring Old Mail Articles}.
2312
2313 @item total-expire
2314 @cindex total-expire
2315 If this symbol is present, all read articles will be put through the
2316 expiry process, even if they are not marked as expirable.  Use with
2317 caution. 
2318 @end table
2319
2320 If you want to change the group parameters (or anything else of the
2321 group info) you can use the @kbd{G E} to edit enter a buffer where you
2322 can edit the group info.
2323
2324 You usually don't want to edit the entire group info, so you'd be better
2325 off using the @kbd{G p} command to just edit the group parameters.
2326
2327 @node Listing Groups
2328 @section Listing Groups
2329 @cindex group listing
2330
2331 These commands all list various slices of the groups that are available.
2332
2333 @table @kbd
2334 @item l
2335 @itemx A s
2336 @kindex A s (Group)
2337 @kindex l (Group)
2338 @findex gnus-group-list-groups
2339 List all groups that have unread articles
2340 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
2341 command will list only groups of level ARG and lower.  By default, it
2342 only lists groups of level five or lower (i.e., just subscribed groups).
2343 @item L
2344 @itemx A u
2345 @kindex A u (Group)
2346 @kindex L (Group)
2347 @findex gnus-group-list-all-groups
2348 List all groups, whether they have unread articles or not
2349 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
2350 this command will list only groups of level ARG and lower.  By default,
2351 it lists groups of level seven or lower (i.e., just subscribed and
2352 unsubscribed groups).
2353 @item A k
2354 @kindex A k (Group)
2355 @findex gnus-group-list-killed
2356 List all killed groups (@code{gnus-group-list-killed}).
2357 @item A z
2358 @kindex A z (Group)
2359 @findex gnus-group-list-zombies
2360 List all zombie groups (@code{gnus-group-list-zombies}).
2361 @item A m
2362 @kindex A m (Group)
2363 @findex gnus-group-list-matching
2364 List all subscribed groups with unread articles that match a regexp
2365 (@code{gnus-group-list-matching}). 
2366 @item A M
2367 @kindex A M (Group)
2368 @findex gnus-group-list-all-matching
2369 List groups that match a regexp (@code{gnus-group-list-all-matching}).
2370 @end table
2371
2372 @node Group Maintenance
2373 @section Group Maintenance
2374 @cindex bogus groups
2375
2376 @table @kbd
2377 @item b
2378 @kindex b (Group)
2379 @findex gnus-group-check-bogus-groups
2380 Find bogus groups and delete them
2381 (@code{gnus-group-check-bogus-groups}).
2382 @item F
2383 @kindex F (Group)
2384 @findex gnus-find-new-newsgroups
2385 Find new groups and process them (@code{gnus-find-new-newsgroups}).
2386 @item C-c C-x
2387 @kindex C-c C-x (Group)
2388 @findex gnus-group-expire-articles
2389 Run all expirable articles in the current group through the expiry
2390 process (if any) (@code{gnus-group-expire-articles}).
2391 @item C-c M-C-x
2392 @kindex C-c M-C-x (Group)
2393 @findex gnus-group-expire-all-groups
2394 Run all articles in all groups through the expiry process
2395 (@code{gnus-group-expire-all-groups}).
2396 @item C-c C-s
2397 @kindex C-c C-s (Group)
2398 @findex gnus-group-sort-groups
2399 @findex gnus-group-sort-by-level
2400 @findex gnus-group-sort-by-unread
2401 @findex gnus-group-sort-by-alphabet
2402 @vindex gnus-group-sort-function
2403 Sort the groups according to the function given by the
2404 @code{gnus-group-sort-function} variable
2405 (@code{gnus-group-sort-groups}).  Available sorting functions include
2406 @code{gnus-group-sort-by-alphabet} (the default),
2407 @code{gnus-group-sort-by-unread} and @code{gnus-group-sort-by-level}. 
2408 @end table
2409
2410 @node Browse Foreign Server
2411 @section Browse Foreign Server
2412 @cindex foreign servers
2413 @cindex browsing servers
2414
2415 @table @kbd
2416 @item B
2417 @kindex B (Group)
2418 @findex gnus-group-browse-foreign-server
2419 You will be queried for a select method and a server name.  Gnus will
2420 then attempt to contact this server and let you browse the groups there
2421 (@code{gnus-group-browse-foreign-server}).
2422 @end table
2423
2424 @findex gnus-browse-server-mode
2425 A new buffer with a list of available groups will appear.  This buffer
2426 will be use the @code{gnus-browse-server-mode}.  This buffer looks a bit
2427 (well, a lot) like a normal group buffer, but with one major difference
2428 - you can't enter any of the groups.  If you want to read any of the
2429 news available on that server, you have to subscribe to the groups you
2430 think may be interesting, and then you have to exit this buffer.  The
2431 new groups will be added to the group buffer, and then you can read them
2432 as you would any other group.
2433
2434 Future versions of Gnus may possibly permit reading groups straight from
2435 the browse buffer.
2436
2437 Here's a list of keystrokes available in the browse mode:
2438
2439 @table @kbd
2440 @item n
2441 @kindex n (Browse)
2442 @findex gnus-group-next-group
2443 Go to the next group (@code{gnus-group-next-group}).
2444
2445 @item p
2446 @kindex p (Browse)
2447 @findex gnus-group-prev-group
2448 Go to the previous group (@code{gnus-group-prev-group}).
2449
2450 @item SPC
2451 @kindex SPC (Browse)
2452 @findex gnus-browse-read-group
2453 Enter the current group and display the first article
2454 (@code{gnus-browse-read-group}). 
2455
2456 @item RET
2457 @kindex RET (Browse)
2458 @findex gnus-browse-select-group
2459 Enter the current group (@code{gnus-browse-select-group}). 
2460
2461 @item u
2462 @kindex u (Browse)
2463 @findex gnus-browse-unsubscribe-current-group
2464 Unsubscribe to the current group, or, as will be the case here,
2465 subscribe to it (@code{gnus-browse-unsubscribe-current-group}). 
2466
2467 @item l
2468 @itemx q
2469 @kindex q (Browse)
2470 @kindex l (Browse)
2471 @findex gnus-browse-exit
2472 Exit browse mode (@code{gnus-browse-exit}).
2473
2474 @item ?
2475 @kindex ? (Browse)
2476 @findex gnus-browse-describe-briefly
2477 Describe browse mode briefly (well, there's not much to describe, is
2478 there) (@code{gnus-browse-describe-briefly}).
2479 @end table
2480
2481 @node Exiting Gnus
2482 @section Exiting Gnus
2483 @cindex exiting Gnus
2484
2485 Yes, Gnus is ex(c)iting.
2486
2487 @table @kbd
2488 @item z
2489 @kindex z (Group)
2490 @findex gnus-group-suspend
2491 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
2492 but it kills all buffers except the Group buffer.  I'm not sure why this
2493 is a gain, but then who am I to judge?
2494 @item q
2495 @kindex q (Group)
2496 @findex gnus-group-exit
2497 Quit Gnus (@code{gnus-group-exit}).
2498 @item Q
2499 @kindex Q (Group)
2500 @findex gnus-group-quit
2501 Quit Gnus without saving any startup files (@code{gnus-group-quit}).
2502 @end table
2503
2504 @vindex gnus-exit-gnus-hook
2505 @vindex gnus-suspend-gnus-hook
2506 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
2507 @code{gnus-exit-gnus-hook} is called when you quit Gnus.
2508
2509 Note:
2510
2511 @quotation
2512 Miss Lisa Cannifax, while sitting in English class, feels her feet go
2513 numbly heavy and herself fall into a hazy trance as the boy sitting
2514 behind her drew repeated lines with his pencil across the back of her
2515 plastic chair.
2516 @end quotation
2517
2518 @node Misc Group Stuff
2519 @section Misc Group Stuff
2520
2521 @table @kbd
2522 @item g
2523 @kindex g (Group)
2524 @findex gnus-group-get-new-news
2525 Check server for new articles.  If the numeric prefix is used, this
2526 command will check only groups of level ARG and lower
2527 (@code{gnus-group-get-new-news}). 
2528 @item M-g
2529 @kindex M-g (Group)
2530 @findex gnus-group-get-new-news-this-group
2531 Check whether new articles have arrived in the current group
2532 (@code{gnus-group-get-new-news-this-group}).
2533
2534 @item ^
2535 @kindex ^ (Group)
2536 @findex gnus-group-enter-server-mode
2537 Enter the server buffer (@code{gnus-group-enter-server-mode}). @xref{The
2538 Server Buffer}.
2539
2540 @item M-f
2541 @kindex M-f (Group)
2542 @findex gnus-group-fetch-faq
2543 Try to fetch the FAQ for the current group
2544 (@code{gnus-group-fetch-faq}).  Gnus will try to get the FAQ from
2545 @code{gnus-group-faq-directory}, which is usually a directory on a
2546 remote machine. ange-ftp will be used for fetching the file.
2547 @item R
2548 @kindex R (Group)
2549 @findex gnus-group-restart
2550 Restart Gnus (@code{gnus-group-restart}).
2551 @item r
2552 @kindex r (Group)
2553 @findex gnus-group-read-init-file
2554 Read the init file (@code{gnus-init-file}, which defaults to
2555 @file{~/.gnus}) (@code{gnus-group-read-init-file}).
2556 @item s
2557 @kindex s (Group)
2558 @findex gnus-group-save-newsrc
2559 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
2560 (@code{gnus-group-save-newsrc}).
2561 @item Z
2562 @kindex Z (Group)
2563 @findex gnus-group-clear-dribble
2564 Clear the dribble buffer (@code{gnus-group-clear-dribble}).
2565 @item D
2566 @kindex D (Group)
2567 @findex gnus-group-describe-group
2568 Describe the current group (@code{gnus-group-describe-group}).  If given
2569 a prefix, force Gnus to re-read the description from the server.
2570 @item G a
2571 @kindex G a (Group)
2572 @findex gnus-group-apropos
2573 List all groups that have names that match a regexp
2574 (@code{gnus-group-apropos}).
2575 @item G d
2576 @kindex G d (Group)
2577 @findex gnus-group-description-apropos
2578 List all groups that have names or descriptions that match a regexp
2579 (@code{gnus-group-description-apropos}).
2580 @item a
2581 @kindex a (Group)
2582 @findex gnus-group-post-news
2583 Post an article to a group (@code{gnus-group-post-news}).
2584 @item m
2585 @kindex m (Group)
2586 @findex gnus-group-mail
2587 Mail a message somewhere (@code{gnus-group-mail}).
2588 @item C-x C-t
2589 @kindex C-x C-t (Group)
2590 @findex gnus-group-transpose-groups
2591 Transpose two groups (@code{gnus-group-transpose-groups}).
2592 @item V
2593 @kindex V (Group)
2594 @findex gnus-version
2595 Display current Gnus version numbers (@code{gnus-version}).
2596 @item M-d
2597 @kindex M-d (Group)
2598 @findex gnus-group-describe-all-groups
2599 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
2600 prefix, force Gnus to re-read the description file from the server.
2601 @item ?
2602 @kindex ? (Group)
2603 @findex gnus-group-describe-briefly
2604 Give a very short help message (@code{gnus-group-describe-briefly}).
2605 @item C-c C-i
2606 @kindex C-c C-i (Group)
2607 @findex gnus-info-find-node
2608 Go to the Gnus info node (@code{gnus-info-find-node}).
2609 @end table
2610
2611 @vindex gnus-group-prepare-hook
2612 @code{gnus-group-prepare-hook} is called after the group buffer is
2613 generated.  It may be used to modify the buffer in some strange,
2614 unnatural way.
2615
2616 @node The Summary Buffer
2617 @chapter The Summary Buffer
2618 @cindex summary buffer
2619
2620 A line for each article is displayed in the summary buffer.  You can
2621 move around, read articles, post articles and reply to articles.
2622
2623 @menu
2624 * Summary Buffer Format::       Deciding how the summary buffer is to look.
2625 * Summary Maneuvering::         Moving around the summary buffer.
2626 * Choosing Articles::           Reading articles.
2627 * Paging the Article::          Scrolling the current article.
2628 * Reply Followup and Post::     Posting articles.
2629 * Canceling and Superseding::   "Whoops, I shouldn't have called him that."
2630 * Marking Articles::            Marking articles as read, expirable, etc.
2631 * Threading::                   How threads are made.
2632 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
2633 * Article Caching::             You may store articles in a cache.
2634 * Exiting the Summary Buffer::  Returning to the Group buffer.
2635 * Process/Prefix::              A convention used by many treatment commands.
2636 * Saving Articles::             Ways of customizing article saving.
2637 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
2638 * Various Article Stuff::       Various stuff dealing with articles.
2639 * Summary Sorting::             You can sort the summary buffer four ways.
2640 * Finding the Parent::          No child support? Get the parent.
2641 * Score Files::                 Maintaining a score file.
2642 * Mail Group Commands::         Some commands can only be used in mail groups.
2643 * Various Summary Stuff::       What didn't fit anywhere else.
2644 @end menu
2645
2646 @node Summary Buffer Format
2647 @section Summary Buffer Format
2648 @cindex summary buffer format
2649
2650 @menu
2651 * Summary Buffer Lines::     You can specify how summary lines should look.
2652 * Summary Buffer Mode Line:: You can say how the mode line should look.
2653 @end menu
2654
2655 @findex mail-extract-address-components
2656 @findex gnus-extract-address-components
2657 @vindex gnus-extract-address-components
2658 Gnus will use the value of the @code{gnus-extract-address-components}
2659 variable as a function for getting the name and address parts of a
2660 @code{From} header.  Two pre-defined function exist:
2661 @code{gnus-extract-address-components}, which is the default, quite
2662 fast, and too simplistic solution, and
2663 @code{mail-extract-address-components}, which works very nicely, but is
2664 slower.
2665
2666 @vindex gnus-summary-same-subject
2667 @code{gnus-summary-same-subject} is a string indicating that the current
2668 article has the same subject as the previous.  This string will be used
2669 with those specs that require it.
2670
2671 @node Summary Buffer Lines
2672 @subsection Summary Buffer Lines
2673
2674 @vindex gnus-summary-line-format
2675 You can change the format of the lines in the summary buffer by changing
2676 the @code{gnus-summary-line-format} variable.  It works along the same
2677 lines a a normal @code{format} string, with some extensions.
2678
2679 The default string is @samp{"%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n"}.
2680
2681 The following format specification characters are understood:
2682
2683 @table @samp
2684 @item N 
2685 Article number.
2686 @item S
2687 Subject string.
2688 @item s
2689 Subject if the article is the root, @code{gnus-summary-same-subject}
2690 otherwise. 
2691 @item F
2692 Full @code{From} line.
2693 @item n
2694 The name (from the @code{From} header).
2695 @item A
2696 The address (from the @code{From} header).
2697 @item L
2698 Number of lines in the article.
2699 @item c
2700 Number of characters in the article.
2701 @item I
2702 Indentation based on thread level (@pxref{Customizing Threading}).
2703 @item T
2704 Nothing if the article is a root and lots of spaces if it isn't (it
2705 pushes everything after it off the screen).
2706 @item \[
2707 Opening bracket, which is normally @samp{\[}, but can also be @samp{<}
2708 for adopted articles.
2709 @item \]
2710 Closing bracket, which is normally @samp{\]}, but can also be @samp{>}
2711 for adopted articles.
2712 @item <
2713 One space for each thread level.
2714 @item >
2715 Twenty minus thread level spaces.
2716 @item U
2717 Unread.
2718 @item R
2719 Replied.
2720 @item i
2721 Score as a number.
2722 @item z
2723 @vindex gnus-summary-zcore-fuzz
2724 Zcore, @samp{+} if above the default level and @samp{-} if below the
2725 default level.  If the difference between
2726 @code{gnus-summary-default-level} and the score is less than
2727 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
2728 @item x
2729 @code{Xref}.
2730 @item D
2731 @code{Date}.
2732 @item M
2733 @code{Message-Id}.
2734 @item r
2735 @code{References}.
2736 @item t
2737 Number of articles in the current sub-thread.  Using this spec will slow
2738 down summary buffer generation somewhat.
2739 @item u
2740 User defined specifier.  The next character in the format string should
2741 be a letter.  @sc{gnus} will call the function
2742 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
2743 following @samp{%u}.  The function will be passed the current header as
2744 argument.  The function should return a string, which will be inserted
2745 into the summary just like information from any other summary specifier.
2746 @end table
2747
2748 Text between @samp{%(} and @samp{%)} will be highlighted with
2749 @code{gnus-mouse-face} when the mouse point is placed inside the area.
2750 There can only be one such area.
2751
2752 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
2753 have to be handled with care.  For reasons of efficiency, Gnus will
2754 compute what column these characters will end up in, and "hard-code"
2755 that.  This means that it is illegal to have these specs after a
2756 variable-length spec.  Well, you might not be arrested, but your summary
2757 buffer will look strange, which is bad enough.
2758
2759 The smart choice is to have these specs as far to the left as possible.
2760 (Isn't that the case with everything, though?  But I digress.)
2761
2762 This restriction may disappear in later versions of Gnus.
2763
2764 @node Summary Buffer Mode Line
2765 @subsection Summary Buffer Mode Line
2766
2767 @vindex gnus-summary-mode-line-format
2768 You can also change the format of the summary mode bar.  Set
2769 @code{gnus-summary-mode-line-format} to whatever you like.  Here are the
2770 elements you can play with:
2771
2772 @table @samp
2773 @item G
2774 Group name.
2775 @item A
2776 Current article number.
2777 @item V
2778 Gnus version.
2779 @item U
2780 Number of unread articles in this group.
2781 @item e
2782 Number of unselected articles in this group.
2783 @item Z
2784 A string with the number of unread and unselected articles represented
2785 either as @samp{<%U(+%u) more>} if there are both unread and unselected
2786 articles, and just as @samp{<%U more>} if there are just unread articles
2787 and no unselected ones.
2788 @item g
2789 Shortish group name. For instance, @samp{rec.arts.anime} will be
2790 shortened to @samp{r.a.anime}. 
2791 @item S
2792 Subject of the current article.
2793 @item u
2794 Used-defined spec.
2795 @item s
2796 Name of the current score file.
2797 @end table
2798
2799
2800 @node Summary Maneuvering
2801 @section Summary Maneuvering
2802 @cindex summary movement
2803
2804 All the straight movement commands understand the numeric prefix and
2805 behave pretty much as you'd expect. 
2806
2807 None of these commands select articles.
2808
2809 @table @kbd
2810 @item G M-n
2811 @itemx M-n
2812 @kindex M-n (Summary)
2813 @kindex G M-n (Summary)
2814 @findex gnus-summary-next-unread-subject
2815 Go to the next summary line of an unread article
2816 (@code{gnus-summary-next-unread-subject}). 
2817 @item G M-p
2818 @itemx M-p
2819 @kindex M-p (Summary)
2820 @kindex G M-p (Summary)
2821 @findex gnus-summary-prev-unread-subject
2822 Go to the previous summary line of an unread article
2823 (@code{gnus-summary-prev-unread-subject}). 
2824 @item G g
2825 @itemx j
2826 @kindex j (Summary)
2827 @kindex G g (Summary)
2828 @findex gnus-summary-goto-subject
2829 Ask for an article number and then go to this summary line
2830 (@code{gnus-summary-goto-subject}). 
2831 @end table
2832
2833 @vindex gnus-auto-select-next
2834 If you are at the end of the group and issue one of the movement
2835 commands, Gnus will offer to go to the next group.  If
2836 @code{gnus-auto-select-next} is @code{t} and the next group is empty,
2837 Gnus will exit summary mode and return to the group buffer.  If this
2838 variable is neither @code{t} nor @code{nil}, Gnus will select the next
2839 group, no matter whether it has any unread articles or not.  As a
2840 special case, if this variable is @code{quietly}, Gnus will select the
2841 next group without asking for confirmation.  Also @xref{Group Levels}.
2842
2843 If Gnus asks you to press a key to confirm going to the next group, you
2844 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
2845 buffer, searching for the next group to read without actually returning
2846 to the group buffer.
2847
2848 @vindex gnus-auto-select-same
2849 If @code{gnus-auto-select-same} is non-@code{nil}, all the movement
2850 commands will try to go to the next article with the same subject as the
2851 current.  This variable is not particularly useful if you use a threaded
2852 display.
2853
2854 @vindex gnus-summary-check-current
2855 If @code{gnus-summary-check-current} is non-@code{nil}, all the "unread"
2856 movement commands will not proceed to the next (or previous) article if
2857 the current article is unread.  Instead, they will choose the current
2858 article.  
2859
2860 @vindex gnus-auto-center-summary
2861 If @code{gnus-auto-center-summary} is non-@code{nil}, Gnus will keep the
2862 point in the summary buffer centered at all times.  This makes things
2863 quite tidy, but if you have a slow network connection, or simply do not
2864 like this un-Emacsism, you can set this variable to @code{nil} to get
2865 the normal Emacs scrolling action.
2866
2867 @node Choosing Articles
2868 @section Choosing Articles
2869 @cindex selecting articles
2870
2871 None of the following movement commands understand the numeric prefix,
2872 and they all select and display an article.
2873
2874 @table @kbd
2875 @item SPACE
2876 @kindex SPACE (Summary)
2877 @findex gnus-summary-next-page
2878 Select the current article, or, if that one's read already, the next
2879 unread article (@code{gnus-summary-next-page}).
2880 @item G n
2881 @itemx n
2882 @kindex n (Summary)
2883 @kindex G n (Summary)
2884 @findex gnus-summary-next-unread-article
2885 Go to next unread article (@code{gnus-summary-next-unread-article}).
2886 @item G p
2887 @itemx p
2888 @kindex p (Summary)
2889 @findex gnus-summary-prev-unread-article
2890 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
2891 @item G N
2892 @itemx N
2893 @kindex N (Summary)
2894 @kindex G N (Summary)
2895 @findex gnus-summary-next-article
2896 Go to the next article (@code{gnus-summary-next-article}).
2897 @item G P
2898 @itemx P
2899 @kindex P (Summary)
2900 @kindex G P (Summary)
2901 @findex gnus-summary-prev-article
2902 Go to the previous article (@code{gnus-summary-prev-article}).
2903 @item G C-n
2904 @kindex G C-n (Summary)
2905 @findex gnus-summary-next-same-subject
2906 Go to the next article with the same subject
2907 (@code{gnus-summary-next-same-subject}). 
2908 @item G C-p
2909 @kindex G C-p (Summary)
2910 @findex gnus-summary-prev-same-subject
2911 Go to the previous article with the same subject
2912 (@code{gnus-summary-prev-same-subject}). 
2913 @item G f
2914 @itemx .
2915 @kindex G f  (Summary)
2916 @kindex .  (Summary)
2917 @findex gnus-summary-first-unread-article
2918 Go to the first unread article
2919 (@code{gnus-summary-first-unread-article}).
2920 @item G b
2921 @itemx ,
2922 @kindex G b (Summary)
2923 @kindex , (Summary)
2924 Go to the article with the highest score
2925 (@code{gnus-summary-best-unread-article}). 
2926 @item G l
2927 @itemx l
2928 @kindex l (Summary)
2929 @kindex G l (Summary)
2930 @findex gnus-summary-goto-last-article
2931 Go to the previous article read (@code{gnus-summary-goto-last-article}).
2932 @item G p
2933 @kindex G p (Summary)
2934 @findex gnus-summary-pop-article
2935 Pop an article off the summary history and go to this article
2936 (@code{gnus-summary-pop-article}).  This command differs from the
2937 command above in that you can pop as many previous articles off the
2938 history as you like.
2939 @end table
2940
2941 Some variables that are relevant for moving and selecting articles:
2942
2943 @table @code
2944 @item gnus-auto-extend-newsgroup
2945 @vindex gnus-auto-extend-newsgroup
2946 All the movement commands will try to go to the previous (or next)
2947 article, even if that article isn't displayed in the Summary buffer if
2948 this variable is non-@code{nil}.  Gnus will then fetch the article from
2949 the server and display it in the article buffer.
2950 @item gnus-select-article-hook
2951 @vindex gnus-select-article-hook
2952 This hook is called whenever an article is selected.  By default it
2953 exposes any threads hidden under the selected article.
2954 @item gnus-mark-article-hook
2955 @vindex gnus-mark-article-hook
2956 This hook is called whenever an article is selected.  It is intended to
2957 be used for marking articles as read.
2958 @item gnus-visual-mark-article-hook
2959 @vindex gnus-visual-mark-article-hook
2960 This hook is run after selecting an article.  It is meant to be used for
2961 highlighting the article in some way.  It is not run if
2962 @code{gnus-visual} is @code{nil}.
2963 @item gnus-summary-update-hook
2964 @vindex gnus-summary-update-hook
2965 This hook is called when a summary line is changed.  It is not run if
2966 @code{gnus-visual} is @code{nil}.
2967 @item gnus-summary-selected-face
2968 @vindex gnus-summary-selected-face
2969 This is the face (or @dfn{font} as some people call it) that is used to
2970 highlight the current article in the summary buffer.
2971 @item gnus-summary-highlight
2972 @vindex gnus-summary-highlight
2973 Summary lines are highlighted according to this variable, which is a
2974 list where the elements are on the format @code{(FORM . FACE)}.  If you
2975 would, for instance, like ticked articles to be italic and high-scored
2976 articles to be bold, you could set this variable to something like
2977 @lisp
2978 (((eq mark gnus-ticked-mark) . italic)
2979  ((> score default) . bold))
2980 @end lisp
2981 As you may have guessed, if @var{FORM} returns a non-@code{nil} value,
2982 @var{FACE} will be applied to the line.
2983 @end table
2984
2985 @node Paging the Article
2986 @section Scrolling the Article
2987 @cindex article scrolling
2988
2989 @table @kbd
2990 @item SPACE
2991 @kindex SPACE (Summary)
2992 @findex gnus-summary-next-page
2993 Pressing @kbd{SPACE} will scroll the current article forward one page,
2994 or, if you have come to the end of the current article, will choose the
2995 next article (@code{gnus-summary-next-page}).
2996 @item DEL
2997 @kindex DEL (Summary)
2998 @findex gnus-summary-prev-page
2999 Scroll the current article back one page (@code{gnus-summary-prev-page}). 
3000 @item RET
3001 @kindex RET (Summary)
3002 @findex gnus-summary-scroll-up
3003 Scroll the current article one line forward
3004 (@code{gnus-summary-scroll-up}).
3005 @item A <
3006 @itemx <
3007 @kindex < (Summary)
3008 @kindex A < (Summary)
3009 @findex gnus-summary-beginning-of-article
3010 Scroll to the beginning of the article
3011 (@code{gnus-summary-beginning-of-article}).
3012 @item A >
3013 @itemx >
3014 @kindex > (Summary)
3015 @kindex A > (Summary)
3016 @findex gnus-summary-end-of-article
3017 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
3018 @end table
3019
3020 @node Reply Followup and Post
3021 @section Reply, Followup and Post
3022 @cindex reply
3023 @cindex followup
3024 @cindex post
3025
3026 @kindex C-c C-c (Post)
3027 All the commands for posting and mailing will put you in a post or mail
3028 buffer where you can edit the article all you like, before you send the
3029 article by pressing @kbd{C-c C-c}.  If you are in a foreign news group,
3030 and you wish to post the article using the foreign server, you can give
3031 a prefix to @kbd{C-c C-c} to make Gnus try to post using the foreign
3032 server. 
3033
3034 @menu 
3035 * Mail::                 Mailing & replying.
3036 * Post::                 Posting and following up.
3037 * Mail & Post::          Mailing and posting at the same time.
3038 @end menu
3039
3040 @node Mail
3041 @subsection Mail
3042
3043 Commands for composing a mail message:
3044
3045 @table @kbd
3046 @item S r
3047 @itemx r
3048 @kindex S r (Summary)
3049 @kindex r (Summary)
3050 @findex gnus-summary-reply
3051 Mail a reply to the author of the current article
3052 (@code{gnus-summary-reply}). 
3053 @item S R
3054 @itemx R
3055 @kindex R (Summary)
3056 @kindex S R (Summary)
3057 @findex gnus-summary-reply-with-original
3058 Mail a reply to the author of the current article and include the
3059 original message (@code{gnus-summary-reply-with-original}).  This
3060 command uses the process/prefix convention.
3061 @item S o m
3062 @kindex S o m (Summary)
3063 @findex gnus-summary-mail-forward
3064 Forward the current article to some other person
3065 (@code{gnus-summary-mail-forward}). 
3066 @item S o p
3067 @kindex S o p (Summary)
3068 @findex gnus-summary-post-forward
3069 Forward the current article to a newsgroup
3070 (@code{gnus-summary-post-forward}).
3071 @item S m
3072 @itemx m
3073 @kindex m (Summary)
3074 @kindex S m (Summary)
3075 @findex gnus-summary-mail-other-window
3076 Send a mail to some other person
3077 (@code{gnus-summary-mail-other-window}).
3078 @item S O m
3079 @kindex S O m (Summary)
3080 @findex gnus-uu-digest-mail-forward
3081 Digest the current series and forward the result using mail
3082 (@code{gnus-uu-digest-mail-forward}).  This command uses the
3083 process/prefix convention (@pxref{Process/Prefix}). 
3084 @item S O p
3085 @kindex S O p (Summary)
3086 @findex gnus-uu-digest-post-forward
3087 Digest the current series and forward the result to a newsgroup
3088 (@code{gnus-uu-digest-mail-forward}).  
3089 @end table
3090
3091 Variables for customizing outgoing mail:
3092
3093 @table @code
3094 @item gnus-reply-to-function
3095 @vindex gnus-reply-to-function
3096 Gnus uses the normal methods to determine where replies are to go, but
3097 you can change the behavior to suit your needs by fiddling with this
3098 variable.
3099
3100 If you want the replies to go to the @samp{Sender} instead of the
3101 @samp{From} in the group @samp{mail.stupid-list}, you could do something
3102 like this:
3103
3104 @lisp
3105 (setq gnus-reply-to-function
3106       (lambda (group)
3107        (cond ((string= group "mail.stupid-list")
3108                (mail-fetch-field "sender"))
3109              (t
3110               nil))))
3111 @end lisp
3112
3113 This function will be called narrowed to the head of the article that is
3114 being replied to.
3115
3116 As you can see, this function should return a string if it has an
3117 opinion as to what the To header should be.  If it does not, it should
3118 just return @code{nil}, and the normal methods for determining the To
3119 header will be used.
3120
3121 This function can also return a list.  In that case, each list element
3122 should be a cons, where the car should be the name of an header
3123 (eg. @samp{Cc}) and the cdr should be the header value
3124 (eg. @samp{larsi@@ifi.uio.no}).  All these headers will be inserted into
3125 the head of the outgoing mail. 
3126
3127 @item gnus-mail-send-method
3128 @vindex gnus-mail-send-method
3129 This variable says how a mail should be mailed.  It uses the function in
3130 the @code{send-mail-function} variable as the default.
3131
3132 @item gnus-uu-digest-headers
3133 @vindex gnus-uu-digest-headers
3134 List of regexps to match headers included in digested messages.  The
3135 headers will be included in the sequence they are matched.
3136
3137 @item gnus-mail-hook
3138 Hook called as the last thing after setting up a mail buffer.
3139
3140 @end table
3141
3142 There are three "methods" for handling all mail.  The default is
3143 @code{sendmail}.  Some people like what @code{mh} does better, and some
3144 people prefer @code{vm}.
3145
3146 Three variables for customizing what to use when:
3147
3148 @table @code
3149
3150 @vindex gnus-mail-reply-method
3151 @item gnus-mail-reply-method
3152 This function is used to compose replies.  The three functions avaibale
3153 are:
3154
3155 @findex gnus-mail-reply-using-vm
3156 @findex gnus-mail-reply-using-mhe
3157 @findex gnus-mail-reply-using-mail
3158 @itemize @bullet
3159 @item 
3160 @code{gnus-mail-reply-using-mail} (sendmail)
3161 @item 
3162 @code{gnus-mail-reply-using-mhe} (mh)
3163 @item
3164 @code{gnus-mail-reply-using-vm} (vm)
3165 @end itemize
3166
3167 @vindex gnus-mail-forward-method
3168 @item gnus-mail-forward-method
3169 This function is used to forward messages.  The three functions avaibale
3170 are:
3171
3172 @findex gnus-mail-forward-using-vm
3173 @findex gnus-mail-forward-using-mhe
3174 @findex gnus-mail-forward-using-mail
3175 @itemize @bullet
3176 @item 
3177 @code{gnus-mail-forward-using-mail} (sendmail)
3178 @item 
3179 @code{gnus-mail-forward-using-mhe} (mh)
3180 @item
3181 @code{gnus-mail-forward-using-vm} (vm)
3182 @end itemize
3183
3184 @vindex gnus-mail-other-window-method
3185 @item gnus-mail-other-window-method
3186 This function is used to send mails.  The three functions avaibale are:
3187
3188 @findex gnus-mail-other-window-using-vm
3189 @findex gnus-mail-other-window-using-mhe
3190 @findex gnus-mail-other-window-using-mail
3191 @itemize @bullet
3192 @item 
3193 @code{gnus-mail-other-window-using-mail} (sendmail)
3194 @item 
3195 @code{gnus-mail-other-window-using-mhe} (mh)
3196 @item
3197 @code{gnus-mail-other-window-using-vm} (vm)
3198 @end itemize
3199
3200 @end table
3201
3202
3203 @node Post
3204 @subsection Post
3205
3206 Commands for posting an article:
3207
3208 @table @kbd
3209 @item S p
3210 @itemx a
3211 @kindex a (Summary)
3212 @kindex S p (Summary)
3213 @findex gnus-summary-post-news
3214 Post an article to the current group
3215 (@code{gnus-summary-post-news}).
3216 @item S f
3217 @itemx f
3218 @kindex f (Summary)
3219 @kindex S f (Summary)
3220 @findex gnus-summary-followup
3221 Post a followup to the current article (@code{gnus-summary-followup}).
3222 @item S F
3223 @itemx F
3224 @kindex S F (Summary)
3225 @kindex F (Summary)
3226 @findex gnus-summary-followup-with-original
3227 Post a followup to the current article and include the original message
3228 (@code{gnus-summary-followup-with-original}).   This command uses the
3229 process/prefix convention.
3230 @item S u
3231 @kindex S u (Summary)
3232 @findex gnus-uu-post-news
3233 Uuencode a file, split it into parts, and post it as a series
3234 (@code{gnus-uu-post-news}). 
3235 @c (@pxref{Uuencoding & Posting}). 
3236 @end table
3237
3238 @vindex gnus-required-headers
3239 @code{gnus-required-headers} a list of header symbols.  These headers
3240 will either be automatically generated, or, if that's impossible, they
3241 will be prompted for.  The following symbols are legal:
3242
3243 @table @code
3244 @item From
3245 This required header will be filled out with the result of the
3246 @code{gnus-inews-user-name} function, which depends on the
3247 @code{gnus-user-from-line}, @code{gnus-user-login-name},
3248 @code{gnus-local-domain} and @code{user-mail-address} variables.
3249 @item Subject
3250 This required header will be prompted for if not present already. 
3251 @item Newsgroups
3252 This required header says which newsgroups the article is to be posted
3253 to.  If it isn't present already, it will be prompted for.
3254 @item Organization
3255 This optional header will be filled out depending on the
3256 @code{gnus-local-organization} variable.
3257 @item Lines
3258 This optional header will be computed by Gnus.
3259 @item Message-ID
3260 This required header will be generated by Gnus.  A unique ID will be
3261 created based on date, time, user name and system name.
3262 @item X-Newsreader
3263 This optional header will be filled out with the Gnus version numbers. 
3264 @end table
3265
3266 In addition, you can enter conses into this list.  The car of this cons
3267 should be a symbol who's name is the name of the header, and the cdr can
3268 either a string to be entered verbatim as the value of this header, or
3269 it can be a function to be called.  This function should return a string
3270 to be inserted.  For instance, if you want to insert @samp{Mime-Version:
3271 1.0}, you should enter @code{(Mime-Version . "1.0")} into the list.  If
3272 you want to insert a funny quote, you could enter something like
3273 @code{(X-Yow . yow)} into the list.  The function @code{yow} will then
3274 be called without any arguments. 
3275
3276 Other variables for customizing outgoing articles:
3277
3278 @table @code
3279 @item gnus-post-method
3280 @vindex gnus-post-method
3281 If non-@code{nil}, Gnus will use this method instead of the default
3282 select method when posting.
3283
3284 @item nntp-news-default-headers
3285 @vindex nntp-news-default-headers
3286 If non-@code{nil}, this variable will override
3287 @code{mail-default-headers} when posting.  This variable should then be
3288 a string.  This string will be inserted, as is, in the head of all
3289 outgoing articles.
3290
3291 @item gnus-use-followup-to
3292 @vindex gnus-use-followup-to
3293 If @code{nil}, always ignore the Followup-To header.  If it is @code{t},
3294 use its value, but ignore the special value @samp{poster}, which will
3295 send the followup as a reply mail to the person you are responding to.
3296 If it is neither @code{nil} nor @code{t}, always use the Followup-To
3297 value.
3298
3299 @item gnus-followup-to-function
3300 @vindex gnus-followup-to-function
3301 This variable is most useful in mail groups, where "following up" really
3302 means sending a mail to a list address.  Gnus uses the normal methods to
3303 determine where follow-ups are to go, but you can change the behavior
3304 to suit your needs by fiddling with this variable.
3305
3306 If you want the followups to go to the @samp{Sender} instead of the
3307 @samp{From} in the group @samp{mail.stupid-list}, you could do something
3308 like this:
3309
3310 @lisp
3311 (setq gnus-followup-to-function
3312       (lambda (group)
3313        (cond ((string= group "mail.stupid-list")
3314                (mail-fetch-field "sender"))
3315              (t
3316               nil))))
3317 @end lisp
3318
3319 This function will be called narrowed to header of the article that is
3320 being followed up.
3321
3322 @item gnus-deletable-headers
3323 @vindex gnus-deletable-headers
3324 Headers in this list that were previously generated by Gnus will be
3325 deleted before posting.  Let's say you post an article.  Then you decide
3326 to post it again to some other group, you naughty boy, so you jump back
3327 to the @code{*post-buf*} buffer, edit the @code{Newsgroups} line, and
3328 ship it off again.  By default, this variable makes sure that the old
3329 generated @code{Message-ID} is deleted, and a new one generated.  If
3330 this isn't done, the entire empire would probably crumble, anarchy would
3331 prevail, and cats would start walking on two legs and rule the world.
3332 Allegedly. 
3333
3334 @item gnus-signature-function
3335 @vindex gnus-signature-function
3336 If non-@code{nil}, this variable should be a function that returns a
3337 signature file name.  The function will be called with the name of the
3338 group being posted to.  If the function returns a string that doesn't
3339 correspond to a file, the string itself is inserted.  If the function
3340 returns @code{nil}, the @code{gnus-signature-file} variable will be used
3341 instead.
3342
3343 @item gnus-post-prepare-function
3344 @vindex gnus-post-prepare-function
3345 This function is called with the name of the current group after the
3346 post buffer has been initialized, and can be used for inserting a
3347 signature.  Nice if you use different signatures in different groups.
3348
3349 @item gnus-post-prepapare-hook
3350 @vindex gnus-post-prepapare-hook
3351 This hook is called after a post buffer has been prepared. If you want
3352 to insert a signature at this point, you could put
3353 @code{gnus-inews-insert-signature} into this hook.
3354
3355 @item news-reply-header-hook
3356 @vindex news-reply-header-hook
3357 A related variable when following up and replying is this variable,
3358 which inserts the @dfn{quote line}.  The default value is:
3359
3360 @lisp
3361 (defvar news-reply-header-hook
3362   (lambda ()
3363     (insert "In article " news-reply-yank-message-id
3364             " " news-reply-yank-from " writes:\n\n")))
3365 @end lisp
3366
3367 This will create lines like:
3368
3369 @example
3370 In article <zngay8jrql@@eyesore.no> Lars Mars <lars@@eyesore.no> writes:
3371 @end example
3372
3373 Having the @code{Message-Id} in this line is probably overkill, so I
3374 would suggest this hook instead:
3375
3376 @lisp
3377 (setq news-reply-header-hook
3378   (lambda () (insert news-reply-yank-from " writes:\n\n")))
3379 @end lisp
3380
3381 @item gnus-prepare-article-hook
3382 @vindex gnus-prepare-article-hook
3383 This hook is called before the headers have been prepared.  By default
3384 it inserts the signature specified by @code{gnus-signature-file}.
3385
3386 @item gnus-inews-article-function
3387 @vindex gnus-inews-article-function
3388 This function is used to do the actual article processing and header
3389 checking/generation.  
3390
3391 @item gnus-inews-article-hook
3392 @vindex gnus-inews-article-hook
3393 This hook is called right before the article is posted.  By default it
3394 handles FCC processing (i.e., saving the article to a file.)
3395
3396 @item gnus-inews-article-header-hook
3397 @vindex gnus-inews-article-header-hook
3398 This hook is called after inserting the required headers in an article
3399 to be posted.  The hook is called from the @code{*post-news*} buffer,
3400 narrowed to the head, and is intended for people who would like to
3401 insert additional headers, or just change headers in some way or other.
3402
3403 @item gnus-check-before-posting
3404 @vindex gnus-check-before-posting
3405 If non-@code{nil}, Gnus will attempt to check the legality of the
3406 headers, as well as some other stuff, before posting.  You can control
3407 the granularity of the check by adding or removing elements from this
3408 list.  Legal elemetents are:
3409
3410 @table @code
3411 @item subject-cmsg 
3412 Check the subject for commands.
3413 @item multiple-headers 
3414 Check for the existence of multiple equal headers.
3415 @item sendsys 
3416 Check for the existence of version and sendsys commands.
3417 @item message-id
3418 Check whether the @code{Message-ID} looks ok.
3419 @item from
3420 Check whether the @code{From} header seems nice.
3421 @item long-lines 
3422 Check for too long lines.
3423 @item control-chars
3424 Check for illegal characters.
3425 @item size
3426 Check for excessive size.
3427 @item new-text
3428 Check whether there is any new text in the messages.
3429 @item signature
3430 Check the length of the signature
3431 @end table
3432
3433 @end table
3434
3435
3436 @node Mail & Post
3437 @subsection Mail & Post
3438
3439 Commands for sending mail and post at the same time:
3440
3441 @table @kbd
3442 @item S b
3443 @kindex S b (Summary)
3444 @findex gnus-summary-followup-and-reply
3445 Post a followup and send a reply to the current article
3446 (@code{gnus-summary-followup-and-reply}).
3447 @item S B
3448 @kindex S B (Summary)
3449 @findex gnus-summary-followup-and-reply-with-original
3450 Post a followup and send a reply to the current article and include the
3451 original message (@code{gnus-summary-followup-and-reply-with-original}).
3452 This command uses the process/prefix convention.
3453 @end table
3454
3455 Here's a list of variables that are relevant to both mailing and
3456 posting:
3457
3458 @table @code
3459 @item gnus-signature-file
3460 @itemx mail-signature
3461 @vindex mail-signature
3462 @vindex gnus-signature-file
3463 @cindex double signature
3464 @cindex signature
3465 If @code{gnus-signature-file} is non-@code{nil}, it should be the name
3466 of a file containing a signature (@samp{~/.signature} by default).  This
3467 signature will be appended to all outgoing post.  Most people find it
3468 more convenient to use @code{mail-signature}, which (sort of) does the
3469 same, but inserts the signature into the buffer before you start editing
3470 the post (or mail).  So - if you have both of these variables set, you
3471 will get two signatures.  Note that @code{mail-signature} does not work
3472 the same way as @code{gnus-signature-file}, which is a bit confusing.
3473 If @code{mail-signature} is @code{t}, it will insert
3474 @file{~/.signature}.  If it is a string, this string will be inserted. 
3475
3476 Note that RFC1036 says that a signature should be preceded by the three
3477 characters @samp{-- } on a line by themselves.  This is to make it
3478 easier for the recipient to automatically recognize and process the
3479 signature.  So don't remove those characters, even though you might feel
3480 that they ruin you beautiful design, like, totally.
3481
3482 Also note that no signature should be more than four lines long.
3483 Including ASCII graphics is an efficient way to get everybody to believe
3484 that you are silly and have nothing important to say.
3485
3486 @item mail-yank-prefix
3487 @vindex mail-yank-prefix
3488 @cindex yanking
3489 @cindex quoting
3490 When you are replying to or following up an article, you normally want
3491 to quote the person you are answering.  Inserting quoted text is done by
3492 @dfn{yanking}, and each quoted line you yank will have
3493 @code{mail-yank-prefix} prepended to it.  This is @samp{ } by default,
3494 which isn't very pretty.  Most everybody prefers that lines are
3495 prepended with @samp{> }, so @code{(setq mail-yank-prefix "> ")} in your
3496 @file{.emacs} file.
3497
3498 @item mail-yank-ignored-headers
3499 @vindex mail-yank-ignored-headers
3500 When you yank a message, you do not want to quote any headers, so
3501 @code{(setq mail-yank-ignored-headers ":")}.
3502
3503 @item user-mail-address
3504 @vindex user-mail-address
3505 If all of @code{gnus-user-login-name}, @code{gnus-use-generic-from} and
3506 @code{gnus-local-domain} are @code{nil}, Gnus will use
3507 @code{user-mail-address} as the address part of the @code{From} header.
3508
3509 @item gnus-user-from-line
3510 @vindex gnus-user-from-line
3511 Your full, complete e-mail address.  This variable overrides the other
3512 Gnus variables if it is non-@code{nil}.
3513
3514 Here are two example values of this variable: @samp{"larsi@@ifi.uio.no
3515 (Lars Magne Ingebrigtsen)"} and @samp{"Lars Magne Ingebrigtsen
3516 <larsi@@ifi.uio.no>"}. The latter version is recommended, but the name
3517 has to be quoted if it contains non-alpha-numerical characters -
3518 @samp{"\"Lars M. Ingebrigtsen\" <larsi@@ifi.uio.no>"}.
3519
3520 @item mail-default-headers
3521 @vindex mail-default-headers
3522 This is a string that will be inserted into the header of all outgoing
3523 mail messages and news articles.  Convenient to use to insert standard
3524 headers.  If @code{nntp-news-default-headers} is non-@code{nil}, that
3525 variable will override this one when posting articles.
3526
3527 @item gnus-auto-mail-to-author
3528 @vindex gnus-auto-mail-to-author
3529 If @code{ask}, you will be prompted for whether you want to send a mail
3530 copy to the author of the article you are following up.  If
3531 non-@code{nil} and not @code{ask}, Gnus will send a mail with a copy of
3532 all follow-ups to the authors of the articles you follow up.  It's nice
3533 in one way - you make sure that the person you are responding to gets
3534 your response.  Other people loathe this method and will hate you dearly
3535 for it, because it means that they will first get a mail, and then have
3536 to read the same article later when they read the news.  It is
3537 @code{nil} by default.
3538
3539 @item gnus-mail-courtesy-message
3540 @vindex gnus-mail-courtesy-message
3541 This is a string that will be prepended to all mails that are the result
3542 of using the variable described above.  
3543
3544 @end table
3545
3546 You may want to do spell-checking on messages that you send out.  Or, if
3547 you don't want to spell-check by hand, you could add automatic
3548 spell-checking via the @code{ispell} package:
3549
3550 @vindex news-inews-hook
3551 @lisp
3552 (add-hook 'news-inews-hook 'ispell-message)     ;For news posts
3553 (add-hook 'mail-send-hook 'ispell-message)      ;for mail posts via sendmail
3554 @end lisp
3555
3556 @findex gnus-inews-insert-mime-headers
3557 If you want to insert some @sc{mime} headers into the articles you post,
3558 without doing any actual encoding, you could add
3559 @code{gnus-inews-insert-mime-headers} to @code{gnus-inews-article-hook}.
3560
3561
3562 @node Canceling and Superseding
3563 @section Canceling Articles
3564 @cindex canceling articles
3565 @cindex superseding articles
3566
3567 Have you ever written something, and then decided that you really,
3568 really, really wish you hadn't posted that?
3569
3570 Well, you can't cancel mail, but you can cancel posts.
3571
3572 @findex gnus-summary-cancel-article
3573 @kindex C (Summary)
3574 Find the article you wish to cancel (you can only cancel your own
3575 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
3576 c} (@code{gnus-summary-cancel-article}).  Your article will be
3577 canceled - machines all over the world will be deleting your article. 
3578
3579 Be aware, however, that not all sites honor cancels, so your article may
3580 live on here and there, while most sites will delete the article in
3581 question.
3582
3583 If you discover that you have made some mistakes and want to do some
3584 corrections, you can post a @dfn{superseding} article that will replace
3585 your original article.
3586
3587 @findex gnus-summary-supersede-article
3588 @kindex S (Summary)
3589 Go to the original article and press @kbd{S s}
3590 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
3591 where you can edit the article all you want before sending it off the
3592 usual way.
3593
3594 @vindex gnus-delete-supersedes-headers
3595 You probably want to delete some of the old headers before sending the
3596 superseding article - @code{Path} and @code{Date} are probably
3597 incorrect.  Set @code{gnus-delete-supersedes-headers} to a regexp to
3598 match the lines you want removed.  The default is
3599 @samp{"^Path:\\|^Date"}. 
3600
3601 The same goes for superseding as for canceling, only more so: Some
3602 sites do not honor superseding.  On those sites, it will appear that you
3603 have posted almost the same article twice.
3604
3605 If you have just posted the article, and change your mind right away,
3606 there is a trick you can use to cancel/supersede the article without
3607 waiting for the article to appear on your site first.  You simply return
3608 to the post buffer (which is called @code{*post-buf*}).  There you will
3609 find the article you just posted, with all the headers intact.  Change
3610 the @samp{Message-ID} header to a @samp{Cancel} or @samp{Supersedes}
3611 header by substituting one of those words for @samp{Message-ID}.  Then
3612 just press @kbd{C-c C-c} to send the article as you would do normally.
3613 The previous article will be canceled/superseded.
3614
3615 Just remember, kids: There is no 'c' in 'supersede'.
3616
3617 @node Marking Articles
3618 @section Marking Articles
3619 @cindex article marking
3620 @cindex article ticking
3621 @cindex marks
3622
3623 There are several marks you can set on an article. 
3624
3625 You have marks that decide the @dfn{readed-ness} (whoo, neato-keano
3626 neologism ohoy!) of the article.  Alphabetic marks generally mean
3627 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
3628
3629 In addition, you also have marks that do not affect readedness.
3630
3631 @menu
3632 * Unread Articles::      Marks for unread articles.
3633 * Read Articles::        Marks for read articles.
3634 * Other Marks::          Marks that do not affect readedness.
3635 @end menu
3636
3637 @ifinfo
3638 There's a plethora of commands for manipulating these marks:
3639 @end ifinfo
3640
3641 @menu
3642 * Setting Marks::           How to set and remove marks.
3643 * Setting Process Marks::   How to mark articles for later processing.
3644 @end menu
3645
3646 @node Unread Articles
3647 @subsection Unread Articles
3648
3649 The following marks mark articles as unread, in one form or other.
3650
3651 @vindex gnus-dormant-mark
3652 @vindex gnus-ticked-mark
3653 @table @samp
3654 @item !
3655 @dfn{Ticked articles} are articles that will remain visible always.  If
3656 you see an article that you find interesting, or you want to put off
3657 reading it, or replying to it, until sometime later, you'd typically
3658 tick it.  However, articles can be expired, so if you want to keep an
3659 article forever, you'll have to save it.  Ticked articles have a
3660 @samp{!} (@code{gnus-ticked-mark}) in the first column.
3661 @item ?
3662 A @dfn{dormant} article is marked with a @samp{?}
3663 (@code{gnus-dormant-mark}), and will only appear in the summary buffer
3664 if there are followups to it.
3665 @item SPC
3666 An @dfn{unread} article is marked with a @samp{SPC}
3667 (@code{gnus-unread-mark}).  These are articles that haven't been read at
3668 all yet.
3669 @end table
3670
3671 @node Read Articles
3672 @subsection Read Articles
3673 @cindex expirable mark
3674
3675 All the following marks mark articles as read.
3676
3677 @table @samp
3678 @item D
3679 Articles that are marked as read.  They have a @samp{r}
3680 (@code{gnus-del-mark}) in the first column.  These are articles that the
3681 user has marked as read more or less manually.
3682 @item d
3683 Articles that are actually read are marked with @samp{R}
3684 (@code{gnus-read-mark}). 
3685 @item A
3686 Articles that were marked as read in previous sessions are now
3687 @dfn{old} and marked with @samp{O} (@code{gnus-ancient-mark}). 
3688 @item K
3689 Marked as killed (@code{gnus-killed-mark}).
3690 @item X
3691 Marked as killed by kill files (@code{gnus-kill-file-mark}).
3692 @item Y
3693 Marked as read by having a too low score (@code{gnus-low-score-mark}).
3694 @item C
3695 Marked as read by a catchup (@code{gnus-catchup-mark}).
3696 @item G
3697 Canceled article (@code{gnus-cancelled-mark})
3698 @end table
3699
3700 All these marks just mean that the article is marked as read, really.
3701 They are interpreted differently by the adaptive scoring scheme,
3702 however.
3703
3704 One more special mark, though:
3705
3706 @table @samp
3707 @item E
3708 You can also mark articles as @dfn{expirable} (or have them marked as
3709 such automatically).  That doesn't make much sense in normal groups,
3710 because a user does not control the expiring of news articles, but in
3711 mail groups, for instance, articles that are marked as @dfn{expirable}
3712 can be deleted by Gnus at any time.  Expirable articles are marked with
3713 @samp{E} (@code{gnus-expirable-mark}).
3714 @end table
3715
3716 @node Other Marks
3717 @subsection Other Marks
3718 @cindex process mark
3719 @cindex bookmarks
3720
3721 There are some marks that have nothing to do with whether the article is
3722 read or not.
3723
3724 You can set a bookmark in the current article.  Say you are reading a
3725 long thesis on cat's urinary tracts, and have to go home for dinner
3726 before you've finished reading the thesis.  You can then set a bookmark
3727 in the article, and Gnus will jump to this bookmark the next time it
3728 encounters the article.
3729
3730 All articles that you have replied to or made a followup to (i.e., have
3731 answered) will be marked with an @samp{A} in the second column
3732 (@code{gnus-replied-mark}).
3733
3734 @vindex gnus-not-empty-thread-mark
3735 @vindex gnus-empty-thread-mark
3736 It the @samp{%e} spec is used, the presence of threads or not will be
3737 marked with @code{gnus-not-empty-thread-mark} and
3738 @code{gnus-empty-thread-mark}, respectively.
3739
3740 @vindex gnus-process-mark
3741 Finally we have the @dfn{process mark} (@code{gnus-process-mark}.  A
3742 variety of commands react to the presence of the process mark.  For
3743 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
3744 all articles that have been marked with the process mark.  Articles
3745 marked with the process mark have a @samp{#} in the second column.
3746
3747 @node Setting Marks
3748 @subsection Setting Marks
3749 @cindex setting marks
3750
3751 All the marking commands understand the numeric prefix.
3752
3753 @table @kbd
3754 @item M t
3755 @itemx !
3756 @kindex ! (Summary)
3757 @kindex M t (Summary)
3758 @findex gnus-summary-tick-article-forward
3759 Tick the current article (@code{gnus-summary-tick-article-forward}).
3760 @item M ?
3761 @itemx ?
3762 @kindex ? (Summary)
3763 @kindex M ? (Summary)
3764 @findex gnus-summary-mark-as-dormant
3765 Mark the current article as dormant
3766 (@code{gnus-summary-mark-as-dormant}).
3767 @item M d
3768 @itemx d
3769 @kindex M d (Summary)
3770 @kindex d (Summary)
3771 @findex gnus-summary-mark-as-read-forward
3772 Mark the current article as read
3773 (@code{gnus-summary-mark-as-read-forward}).
3774 @item M k
3775 @itemx k
3776 @kindex k (Summary)
3777 @kindex M k (Summary)
3778 @findex gnus-summary-kill-same-subject-and-select
3779 Mark all articles that have the same subject as the current one as read,
3780 and then select the next unread article
3781 (@code{gnus-summary-kill-same-subject-and-select}).
3782 @item M K
3783 @itemx C-k
3784 @kindex M K (Summary)
3785 @kindex C-k (Summary)
3786 @findex gnus-summary-kill-same-subject
3787 Mark all articles that have the same subject as the current one as read
3788 (@code{gnus-summary-kill-same-subject}).  
3789 @item M C
3790 @kindex M C (Summary)
3791 @findex gnus-summary-catchup
3792 Catchup the current group (@code{gnus-summary-catchup}).
3793 @item M C-c
3794 @kindex M C-c (Summary)
3795 @findex gnus-summary-catchup-all
3796 Catchup all articles in the current group (@code{gnus-summary-catchup-all}).
3797 @item M H
3798 @kindex M H (Summary)
3799 @findex gnus-summary-catchup-to-here
3800 Catchup the current group to point
3801 (@code{gnus-summary-catchup-to-here}). 
3802 @item C-w
3803 @kindex C-w (Summary)
3804 @findex gnus-summary-mark-region-as-read
3805 Mark all articles between point and mark as read
3806 (@code{gnus-summary-mark-region-as-read}). 
3807 @item M c
3808 @itemx M-u
3809 @kindex M c (Summary)
3810 @kindex M-u (Summary)
3811 @findex gnus-summary-clear-mark-forward
3812 Clear all readedness-marks from the current article
3813 (@code{gnus-summary-clear-mark-forward}).
3814 @item M e
3815 @itemx E
3816 @kindex M e (Summary)
3817 @kindex E (Summary)
3818 @findex gnus-summary-mark-as-expirable
3819 Mark the current article as expirable
3820 (@code{gnus-summary-mark-as-expirable}).
3821 @item M b
3822 @kindex M b (Summary)
3823 @findex gnus-summary-set-bookmark
3824 Set a bookmark in the current article
3825 (@code{gnus-summary-set-bookmark}).
3826 @item M B
3827 @kindex M B (Summary)
3828 @findex gnus-summary-remove-bookmark
3829 Remove the bookmark from the current article
3830 (@code{gnus-summary-remove-bookmark}).
3831 @item M M-r
3832 @itemx x
3833 @kindex M M-r (Summary)
3834 @kindex M-d (Summary)
3835 @findex gnus-summary-remove-lines-marked-as-read
3836 Expunge all deleted articles from the summary buffer
3837 (@code{gnus-summary-remove-lines-marked-as-read}). 
3838 @item M M-C-r
3839 @kindex M M-C-r (Summary)
3840 @findex gnus-summary-remove-lines-marked-with
3841 Ask for a mark and then expunge all articles that have been marked with
3842 that mark (@code{gnus-summary-remove-lines-marked-with}).
3843 @item M S
3844 @kindex M S (Summary)
3845 @findex gnus-summary-show-all-expunged
3846 Display all expunged articles (@code{gnus-summary-show-all-expunged}).
3847 @item M D
3848 @kindex M D (Summary)
3849 @findex gnus-summary-show-all-dormant
3850 Display all dormant articles (@code{gnus-summary-show-all-dormant}).
3851 @item M M-D
3852 @kindex M M-D (Summary)
3853 @findex gnus-summary-hide-all-dormant
3854 Hide all dormant articles (@code{gnus-summary-hide-all-dormant}).
3855 @item M s k
3856 @kindex M s k (Summary)
3857 @findex gnus-summary-kill-below
3858 Kill all articles with scores below the default score (or below the
3859 numeric prefix) (@code{gnus-summary-kill-below}).
3860 @item M s c
3861 @kindex M s c (Summary)
3862 @findex gnus-summary-clear-above
3863 Clear all marks from articles with scores over the default score (or
3864 over the numeric prefix) (@code{gnus-summary-clear-above}).
3865 @item M s u
3866 @kindex M s u (Summary)
3867 @findex gnus-summary-tick-above
3868 Tick all articles with scores over the default score (or over the
3869 numeric prefix) (@code{gnus-summary-tick-above}).
3870 @item M s m
3871 @kindex M s m (Summary)
3872 @findex gnus-summary-mark-above
3873 Prompt for a mark, and mark all articles with scores over the default
3874 score (or over the numeric prefix) with this mark
3875 (@code{gnus-summary-clear-above}).
3876 @end table
3877
3878 @code{gnus-summary-goto-unread}
3879 The @code{gnus-summary-goto-unread} variable controls what action should
3880 be taken after setting a mark.  If non-@code{nil}, point will move to
3881 the next/previous unread article.  If @code{nil}, point will just move
3882 one line up or down.
3883
3884 @node Setting Process Marks
3885 @subsection Setting Process Marks
3886 @cindex setting process marks
3887
3888 @table @kbd
3889 @item M p p
3890 @itemx #
3891 @kindex # (Summary)
3892 @kindex M p p (Summary)
3893 @findex gnus-summary-mark-as-processable
3894 Mark the current article with the process mark
3895 (@code{gnus-summary-mark-as-processable}). 
3896 @findex gnus-summary-unmark-as-processable
3897 @item M p u 
3898 @itemx M-#
3899 @kindex M p u (Summary)
3900 @kindex M-# (Summary)
3901 Remove the process mark, if any, from the current article
3902 (@code{gnus-summary-unmark-as-processable}).
3903 @item M p U
3904 @kindex M p U (Summary)
3905 @findex gnus-summary-unmark-all-processable
3906 Remove the process mark from all articles
3907 (@code{gnus-summary-unmark-all-processable}). 
3908 @item M p R
3909 @kindex M p R (Summary)
3910 @findex gnus-uu-mark-by-regexp
3911 Mark articles by a regular expression (@code{gnus-uu-mark-by-regexp}). 
3912 @item M p r
3913 @kindex M p r (Summary)
3914 @findex gnus-uu-mark-region
3915 Mark articles in region (@code{gnus-uu-mark-region}).
3916 @item M p t
3917 @kindex M p t (Summary)
3918 @findex gnus-uu-mark-thread
3919 Mark all articles in the current (sub)thread
3920 (@code{gnus-uu-mark-thread}).
3921 @item M p s
3922 @kindex M p s (Summary)
3923 @findex gnus-uu-mark-series
3924 Mark all articles in the current series (@code{gnus-uu-mark-series}).
3925 @item M p S
3926 @kindex M p S (Summary)
3927 @findex gnus-uu-mark-sparse
3928 Mark all series that have already had some articles marked
3929 (@code{gnus-uu-mark-sparse}).
3930 @item M p a
3931 @kindex M p a (Summary)
3932 @findex gnus-uu-mark-all
3933 Mark all articles in series order (@code{gnus-uu-mark-series}).
3934 @end table
3935
3936 @node Threading
3937 @section Threading
3938 @cindex threading
3939 @cindex article threading
3940
3941 Gnus threads articles by default.  @dfn{To thread} is to put replies to
3942 articles directly after the articles they reply to - in a hierarchical
3943 fashion.
3944
3945 @menu
3946 * Customizing Threading::     Variables you can change to affect the threading.
3947 * Thread Commands::           Thread based commands in the summary buffer.
3948 @end menu
3949
3950 @node Customizing Threading
3951 @subsection Customizing Threading
3952 @cindex customizing threading
3953 @cindex <
3954 @cindex >
3955
3956 @table @code
3957 @item gnus-show-threads
3958 @vindex gnus-show-threads
3959 If this variable is @code{nil}, no threading will be done, and all of
3960 the rest of the variables here will have no effect.  Turning threading
3961 off will speed group selection up a bit, but it is sure to make reading
3962 slower and more awkward.
3963 @item gnus-fetch-old-headers
3964 @vindex gnus-fetch-old-headers
3965 If non-@code{nil}, Gnus will attempt to build old threads by fetching
3966 more old headers - headers to articles that are marked as read.  If you
3967 would like to display as few summary lines as possible, but still
3968 connect as many loose threads as possible, you should set this variable
3969 to @code{some}.  In either case, fetching old headers only works if the
3970 select method you are using supports @sc{xover}.  Also remember that if
3971 the root of the thread has been expired by the server, there's not much
3972 Gnus can do about that.
3973
3974 @item gnus-summary-gather-subject-limit
3975 Loose threads are gathered by comparing subjects of articles.  If this
3976 variable is @code{nil}, Gnus requires an exact match between the
3977 subjects of the loose threads before gathering them into one big
3978 super-thread.  This might be too strict a requirement, what with the
3979 presence of stupid newsreaders that chop off long subjects lines.  If
3980 you think so, set this variable to, say, 20 to require that only the
3981 first 20 characters of the subjects have to match.  If you set this
3982 variable to a real low number, you'll find that Gnus will gather
3983 everything in sight into one thread, which isn't very helpful.
3984
3985 @cindex fuzzy article gathering
3986 If you set this variable to the special value @code{fuzzy}, Gnus will
3987 use a fuzzy string comparison algorithm on the subjects.
3988
3989 @item gnus-summary-make-false-root
3990 @vindex gnus-summary-make-false-root
3991 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
3992 and create a dummy root at the top.  (Wait a minute.  Root at the top?
3993 Yup.)  Loose subtrees occur when the real root has expired, or you've
3994 read or killed the root in a previous session.
3995
3996 When there is no real root of a thread, Gnus will have to fudge
3997 something.  This variable says what fudging method Gnus should use.
3998 There are four possible values:
3999
4000 @cindex adopting articles
4001
4002 @table @code
4003 @item adopt
4004 Gnus will make the first of the orphaned articles the parent.  This
4005 parent will adopt all the other articles.  The adopted articles will be
4006 marked as such by pointy brackets (@samp{<>}) instead of the standard
4007 square brackets (@samp{[]}).  This is the default method.
4008 @item dummy
4009 Gnus will create a dummy summary line that will pretend to be the
4010 parent.  This dummy line does not correspond to any real article, so
4011 selecting it will just select the first real article after the dummy
4012 article.
4013 @item empty
4014 Gnus won't actually make any article the parent, but simply leave the
4015 subject field of all orphans except the first empty.  (Actually, it will
4016 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
4017 Buffer Format}).)
4018 @item none
4019 Don't make any article parent at all.  Just gather the threads and
4020 display them after one another.
4021 @item nil
4022 Don't gather loose threads.
4023 @end table
4024
4025 @item gnus-thread-hide-subtree
4026 @vindex gnus-thread-hide-subtree
4027 If non-@code{nil}, all threads will be hidden when the summary buffer is
4028 generated.
4029 @item gnus-thread-hide-killed
4030 @vindex gnus-thread-hide-killed
4031 if you kill a thread and this variable is non-@code{nil}, the subtree
4032 will be hidden.
4033 @item gnus-thread-ignore-subject
4034 @vindex gnus-thread-ignore-subject
4035 Sometimes somebody changes the subject in the middle of a thread.  If
4036 this variable is non-@code{nil}, the subject change is ignored.  If it
4037 is @code{nil}, which is the default, a change in the subject will result
4038 in a new thread.
4039 @item gnus-thread-indent-level
4040 @vindex gnus-thread-indent-level
4041 This is a number that says how much each sub-thread should be indented.
4042 The default is @samp{4}.
4043 @end table
4044
4045 @node Thread Commands
4046 @subsection Thread Commands
4047 @cindex thread commands
4048
4049 @table @kbd
4050 @item T k
4051 @itemx M-C-k
4052 @kindex T k (Summary)
4053 @kindex M-C-k (Summary)
4054 @findex gnus-summary-kill-thread
4055 Mark all articles in the current sub-thread as read
4056 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
4057 remove all marks instead.  If the prefix argument is negative, tick
4058 articles instead.
4059 @item T l
4060 @itemx M-C-l
4061 @kindex T l (Summary)
4062 @kindex M-C-l (Summary)
4063 @findex gnus-summary-lower-thread
4064 Lower the score of the current thread
4065 (@code{gnus-summary-lower-thread}). 
4066 @item T i
4067 @kindex T i (Summary)
4068 @findex gnus-summary-raise-thread
4069 Increase the score of the current thread
4070 (@code{gnus-summary-raise-thread}).
4071 @item T #
4072 @kindex T # (Summary)
4073 @findex gnus-uu-mark-thread
4074 Mark the current thread with the process mark
4075 (@code{gnus-uu-mark-thread}).
4076 @item T T
4077 @kindex T T (Summary)
4078 @findex gnus-summary-toggle-threads
4079 Toggle threading (@code{gnus-summary-toggle-threads}).
4080 @item T s
4081 @kindex T s (Summary)
4082 @findex gnus-summary-show-thread
4083 Expose the thread hidden under the current article, if any
4084 (@code{gnus-summary-show-thread}).
4085 @item T h
4086 @kindex T h (Summary)
4087 @findex gnus-summary-hide-thread
4088 Hide the current (sub)thread (@code{gnus-summary-hide-thread}).
4089 @item T S
4090 @kindex T S (Summary)
4091 @findex gnus-summary-show-all-threads
4092 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
4093 @item T H
4094 @kindex T H (Summary)
4095 @findex gnus-summary-hide-all-threads
4096 Hide all threads (@code{gnus-summary-hide-all-threads}).
4097 @end table
4098
4099 The following commands are thread movement commands.  They all
4100 understand the numeric prefix.
4101
4102 @table @kbd
4103 @item T n
4104 @kindex T n (Summary)
4105 @findex gnus-summary-next-thread
4106 Go to the next thread (@code{gnus-summary-next-thread}).
4107 @item T p
4108 @kindex T p (Summary)
4109 @findex gnus-summary-prev-thread
4110 Go to the previous thread (@code{gnus-summary-prev-thread}).
4111 @item T d
4112 @kindex T d (Summary)
4113 @findex gnus-summary-down-thread
4114 Descend the thread (@code{gnus-summary-down-thread}).
4115 @item T u
4116 @kindex T u (Summary)
4117 @findex gnus-summary-up-thread
4118 Ascend the thread (@code{gnus-summary-up-thread}).
4119 @end table
4120
4121 @node Asynchronous Fetching
4122 @section Asynchronous Article Fetching
4123 @cindex asynchronous article fetching
4124
4125 If you read your news from an @sc{nntp} server that's far away, the
4126 network latencies may make reading articles a chore.  You have to way
4127 for a while after pressing @kbd{n} to go to the next article before the
4128 article appears.  Why can't Gnus just go ahead and fetch the article
4129 while you are reading the previous one?  Why not, indeed.
4130
4131 First, some caveats.  There are some pitfalls to using asynchronous
4132 article fetching, especially the way Gnus does it.  
4133
4134 Let's say you are reading article 1, which is short, and article 2 is
4135 quite long, and you are not interested in reading that.  Gnus does not
4136 know this, so it goes ahead and fetches article 2.  You decide to read
4137 article 3, but since Gnus is in the process of fetching article 2, the
4138 connection is blocked.
4139
4140 To avoid these situations, Gnus will open two (count 'em two)
4141 connections to the server.  Some people may think this isn't a very nice
4142 thing to do, but I don't see any real alternatives.  Setting up that
4143 extra connection takes some time, so Gnus startup will be slower.
4144
4145 Gnus will fetch more articles than you will read.  This will mean that
4146 the link between your machine and the @sc{nntp} server will become more
4147 loaded than if you didn't use article pre-fetch.  The server itself will
4148 also become more loaded - both with the extra article requests, and the
4149 extra connection.
4150
4151 Ok, so now you know that you shouldn't really use this thing... unless
4152 you really want to.
4153
4154 @vindex gnus-asynchronous
4155 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
4156 happen automatically.
4157
4158 @vindex nntp-async-number
4159 You can control how many articles that are to be pre-fetched by setting
4160 @code{nntp-async-number}.  This is five by default, which means that when
4161 you read an article in the group, @code{nntp} will pre-fetch the next
4162 five articles.  If this variable is @code{t}, @code{nntp} will pre-fetch
4163 all the articles that it can without bound.  If it is @code{nil}, no
4164 pre-fetching will be made.
4165
4166 @vindex gnus-asynchronous-article-function
4167 You may wish to create some sort of scheme for choosing which articles
4168 that @code{nntp} should consider as candidates for pre-fetching.  For
4169 instance, you may wish to pre-fetch all articles with high scores, and
4170 not pre-fetch low-scored articles.  You can do that by setting the
4171 @code{gnus-asynchronous-article-function}, which will be called with an
4172 alist where the keys are the article numbers.  Your function should
4173 return an alist where the articles you are not interested in have been
4174 removed.  You could also do sorting on article score and the like. 
4175
4176 @node Article Caching
4177 @section Article Caching
4178 @cindex article caching
4179 @cindex caching
4180
4181 If you have an @emph{extremely} slow @sc{nntp} connection, you may
4182 consider turning article caching on.  Each article will then be stored
4183 locally under your home directory.  As you may surmise, this could
4184 potentially use @emph{huge} amounts of disk space, as well as eat up all
4185 your inodes so fast it will make your head swim.  In vodka.
4186
4187 Used carefully, though, it could be just an easier way to save articles.
4188
4189 @vindex gnus-use-long-file-name
4190 @vindex gnus-cache-directory
4191 @vindex gnus-use-cache
4192 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
4193 all articles that are ticked or marked as dormant will then be copied
4194 over to your local cache (@code{gnus-cache-directory}).  Whether this
4195 cache is flat or hierarchal is controlled by the
4196 @code{gnus-use-long-file-name} variable, as usual.
4197
4198 When re-select a ticked or dormant article, it will be fetched from the
4199 cache instead of from the server.  As articles in your cache will never
4200 expire, this might serve as a method of saving articles while still
4201 keeping them where they belong.  Just mark all articles you want to save
4202 as dormant, and don't worry.
4203
4204 When an article is marked as read, is it removed from the cache.
4205
4206 @vindex gnus-cache-remove-articles
4207 @vindex gnus-cache-enter-articles
4208 The entering/removal of articles from the cache is controlled by the
4209 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
4210 variables.  Both are lists of symbols.  The first is @code{(ticked
4211 dormant)} by default, meaning that ticked and dormant articles will be
4212 put in the cache.  The latter is @code{(read)} by default, meaning that
4213 articles that are marked as read are removed from the cache.  Possibly
4214 symbols in these two lists are @code{ticked}, @code{dormant},
4215 @code{unread} and @code{read}.
4216
4217 @findex gnus-jog-cache
4218 So where does the massive article-fetching and storing come into the
4219 picture?  The @code{gnus-jog-cache} command will go through all
4220 subscribed newsgroups, request all unread articles, and store them in
4221 the cache.  You should only ever, ever ever ever, use this command if 1)
4222 your connection to the @sc{nntp} server is really, really, really slow
4223 and 2) you have a really, really, really huge disk.  Seriously.
4224
4225
4226 @node Exiting the Summary Buffer
4227 @section Exiting the Summary Buffer
4228 @cindex summary exit
4229
4230 Exiting from the summary buffer will normally update all info on the
4231 group and return you to the group buffer. 
4232
4233 @table @kbd
4234 @item Z Z
4235 @itemx q
4236 @kindex Z Z (Summary)
4237 @kindex q (Summary)
4238 @findex gnus-summary-exit
4239 Exit the current group and update all information on the group
4240 (@code{gnus-summary-exit}).  @code{gnus-summary-exit-hook} is called
4241 before doing much of the exiting, and calls
4242 @code{gnus-summary-expire-articles} by default.
4243 @item Z E
4244 @itemx Q
4245 @kindex Z E (Summary)
4246 @kindex Q (Summary)
4247 @findex gnus-summary-exit-no-update
4248 Exit the current group without updating any information on the group
4249 (@code{gnus-summary-exit-no-update}).
4250 @item Z c
4251 @itemx c
4252 @kindex Z c (Summary)
4253 @kindex c (Summary)
4254 @findex gnus-summary-catchup-and-exit
4255 Mark all unticked articles in the group as read and then exit
4256 (@code{gnus-summary-catchup-and-exit}).
4257 @item Z C
4258 @kindex Z C (Summary)
4259 @findex gnus-summary-catchup-all-and-exit
4260 Mark all articles, even the ticked ones, as read and then exit
4261 (@code{gnus-summary-catchup-all-and-exit}).
4262 @item Z n
4263 @kindex Z n (Summary)
4264 @findex gnus-summary-catchup-and-goto-next-group
4265 Mark all articles as read and go to the next group
4266 (@code{gnus-summary-catchup-and-goto-next-group}). 
4267 @item Z R
4268 @kindex Z R (Summary)
4269 @findex gnus-summary-reselect-current-group
4270 Exit this group, and then enter it again
4271 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
4272 all articles, both read and unread.
4273 @item Z G
4274 @itemx M-g
4275 @kindex Z G (Summary)
4276 @kindex M-g (Summary)
4277 @findex gnus-summary-rescan-group
4278 Exit the group, check for new articles in the group, and select the
4279 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
4280 articles, both read and unread.
4281 @item Z N
4282 @kindex Z N (Summary)
4283 @findex gnus-summary-next-group
4284 Exit the group and go to the next group
4285 (@code{gnus-summary-next-group}). 
4286 @item Z P
4287 @kindex Z P (Summary)
4288 @findex gnus-summary-prev-group
4289 Exit the group and go to the previous group
4290 (@code{gnus-summary-prev-group}). 
4291 @end table
4292
4293 @vindex gnus-exit-group-hook
4294 @code{gnus-exit-group-hook} is called when you exit the current
4295 group.  
4296
4297 @vindex gnus-use-cross-reference
4298 The data on the current group will be updated (which articles you have
4299 read, which articles you have replied to, etc.) when you exit the
4300 summary buffer.  If the @code{gnus-use-cross-reference} variable is
4301 @code{t}, articles that are cross-referenced to this group and are
4302 marked as read, will also be marked as read in the other subscribed
4303 groups they were cross-posted to.  If this variable is neither
4304 @code{nil} nor @code{t}, the article will be marked as read in both
4305 subscribed and unsubscribed groups.
4306
4307 Marking cross-posted articles as read ensures that you'll never have to
4308 read the same article more than once.  Unless, of course, somebody has
4309 posted it to several groups separately.  Posting the same article to
4310 several groups (not cross-posting) is called @dfn{spamming}, and you are
4311 by law required to send nasty-grams to anyone who perpetrates such a
4312 heinous crime.
4313
4314 Remember: Cross-posting is kinda ok, but posting the same article
4315 separately to several groups is not.
4316
4317 One thing that may cause Gnus to not do the cross-posting thing
4318 correctly is if you use an @sc{nntp} server that supports @sc{xover}
4319 (which is very nice, because it speeds things up considerably) which
4320 does not include the @code{Xref} header in its @sc{nov} lines.  This is
4321 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
4322 even with @sc{xover} by registering the @code{Xref} lines of all
4323 articles you actually read, but if you kill the articles, or just mark
4324 them as read without reading them, Gnus will not get a chance to snoop
4325 the @code{Xref} lines out of these articles, and will be unable to use
4326 the cross reference mechanism.
4327
4328 @vindex gnus-nov-is-evil
4329 If you want Gnus to get the @code{Xref}s right all the time, you have to
4330 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
4331 considerably.
4332
4333 C'est la vie.
4334
4335 @node Process/Prefix
4336 @section Process/Prefix
4337 @cindex process/prefix convention
4338
4339 Many functions, among them functions for moving, decoding and saving
4340 articles, use what is known as the @dfn{Process/Prefix convention}.
4341
4342 This is a method for figuring out what articles that the user wants the
4343 command to be performed on.
4344
4345 It goes like this:
4346
4347 If the numeric prefix is N, perform the operation on the next N
4348 articles, starting with the current one.  If the numeric prefix is
4349 negative, perform the operation on the previous N articles, starting
4350 with the current one.
4351
4352 If there is no numeric prefix, but some articles are marked with the
4353 process mark, perform the operation on the articles that are marked with
4354 the process mark.
4355
4356 If there is neither a numeric prefix nor any articles marked with the
4357 process mark, just perform the operation on the current article.
4358
4359 Quite simple, really, but it needs to be made clear so that surprises
4360 are avoided.
4361
4362 @node Saving Articles
4363 @section Saving Articles
4364 @cindex saving articles
4365
4366 Gnus can save articles in a number of ways.  Below is the documentation
4367 for saving articles in a fairly straight-forward fashion (i.e., little
4368 processing of the article is done before it is saved).  For a different
4369 approach (uudecoding, unsharing) you should use @code{gnus-uu}
4370 (@pxref{Decoding Articles}).
4371
4372 @vindex gnus-save-all-headers
4373 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
4374 unwanted headers before saving the article.
4375
4376 @table @kbd
4377 @item O o
4378 @itemx o
4379 @kindex O o (Summary)
4380 @kindex o (Summary)
4381 @findex gnus-summary-save-article
4382 Save the current article using the default article saver
4383 (@code{gnus-summary-save-article}). 
4384 @item O m
4385 @kindex O m (Summary)
4386 @findex gnus-summary-save-article-mail
4387 Save the current article in mail format
4388 (@code{gnus-summary-save-article-mail}). 
4389 @item O r
4390 @kindex O r (Summary)
4391 @findex gnus-summary-save-article-mail
4392 Save the current article in rmail format
4393 (@code{gnus-summary-save-article-rmail}). 
4394 @item O f
4395 @kindex O f (Summary)
4396 @findex gnus-summary-save-article-file
4397 Save the current article in plain file format
4398 (@code{gnus-summary-save-article-file}). 
4399 @item O h
4400 @kindex O h (Summary)
4401 @findex gnus-summary-save-article-folder
4402 Save the current article in mh folder format
4403 (@code{gnus-summary-save-article-folder}). 
4404 @item O p
4405 @kindex O p (Summary)
4406 @findex gnus-summary-pipe-output
4407 Save the current article in a pipe.  Uhm, like, what I mean is - Pipe
4408 the current article to a process (@code{gnus-summary-pipe-output}).
4409 @end table
4410
4411 All these commands use the process/prefix convention
4412 (@pxref{Process/Prefix}).
4413
4414 @vindex gnus-default-article-saver
4415 You can customize the @code{gnus-default-article-saver} variable to make
4416 Gnus do what you want it to.  You can use any of the four ready-made
4417 functions below, or you can create your own.
4418
4419 @table @code
4420 @item gnus-summary-save-in-rmail
4421 @vindex gnus-summary-save-in-rmail
4422 This is the default format, @dfn{babyl}.  Uses the function in the
4423 @code{gnus-rmail-save-name} variable to get a file name to save the
4424 article in.  The default is @code{gnus-plain-save-name}.
4425 @item gnus-summary-save-in-mail
4426 @vindex gnus-summary-save-in-mail
4427 Save in a Unix mail (mbox) file.  Uses the function in the
4428 @code{gnus-mail-save-name} variable to get a file name to save the
4429 article in.  The default is @code{gnus-plain-save-name}.
4430 @item gnus-summary-save-in-file
4431 @vindex gnus-summary-save-in-file
4432 Append the article straight to an ordinary file.  Uses the function in
4433 the @code{gnus-file-save-name} variable to get a file name to save the
4434 article in.  The default is @code{gnus-numeric-save-name}.
4435 @item gnus-summary-save-in-folder
4436 @vindex gnus-summary-save-in-folder
4437 Save the article to an MH folder using @code{rcvstore} from the MH
4438 library.
4439 @item gnus-summary-save-in-vm
4440 @vindex gnus-summary-save-in-vm
4441 Save the article in a VM folder.  You have to have the VM mail
4442 reader to use this setting.
4443 @end table
4444
4445 All of these functions, except for the last one, will save the article
4446 in the @code{gnus-article-save-directory}, which is initialized from the
4447 @samp{SAVEDIR} environment variable.
4448
4449 As you can see above, the functions use different functions to find a
4450 suitable name of a file to save the article in.  Below is a list of
4451 available functions that generate names:
4452
4453 @table @code
4454 @item gnus-Numeric-save-name
4455 @findex gnus-Numeric-save-name
4456 Generates file names that look like @samp{~/News/Alt.andrea-dworkin/45}.
4457 @item gnus-numeric-save-name
4458 @findex gnus-numeric-save-name
4459 Generates file names that look like @samp{~/News/alt.andrea-dworkin/45}.
4460 @item gnus-Plain-save-name
4461 @findex gnus-Plain-save-name
4462 Generates file names that look like @samp{~/News/Alt.andrea-dworkin}.
4463 @item gnus-plain-save-name
4464 @findex gnus-plain-save-name
4465 Generates file names that look like @samp{~/News/alt.andrea-dworkin}.
4466 @end table
4467
4468 @vindex gnus-use-long-file-name
4469 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
4470 @code{nil}, all the preceding functions will replace all periods
4471 (@samp{.}) in the group names with slashes (@samp{/}) - which means that
4472 the functions will generate hierarchies of directories instead of having
4473 all the files in the toplevel directory
4474 (@samp{~/News/alt/andrea-dworkin} instead of
4475 @samp{~/News/alt.andrea-dworkin}.)
4476
4477 This function also affects kill and score file names.  If this variable
4478 is a list, and the list contains the element @code{not-score}, long file
4479 names will not be used for score files, if it contains the element
4480 @code{not-save}, long file names will not be used for saving, and if it
4481 contains the element @code{not-kill}, long file names will not be used
4482 for kill files.
4483
4484 If you'd like to save articles in a hierarchy that looks something like
4485 a spool, you could
4486
4487 @lisp
4488 (setq gnus-use-long-file-name '(not-save)) ; to get a hierarchy
4489 (setq gnus-default-article-save 'gnus-summary-save-in-file) ; no encoding
4490 @end lisp
4491
4492 Then just save with @kbd{o}. You'd then read this hierarchy with
4493 ephemeral @code{nneething} groups - @kbd{G D} in the group buffer, and
4494 the toplevel directory as the argument (@file{~/News/}). Then just walk
4495 around to the groups/directories with @code{nneething}.
4496
4497
4498 @node Decoding Articles
4499 @section Decoding Articles
4500 @cindex decoding articles
4501
4502 Sometime users post articles (or series of articles) that have been
4503 encoded in some way or other.  Gnus can decode them for you.
4504
4505 @menu 
4506 * Uuencoded Articles::    Uudecode articles.
4507 * Shared Articles::       Unshar articles.
4508 * PostScript Files::      Split PostScript.
4509 @end menu
4510
4511 All these functions use the process/prefix convention
4512 (@pxref{Process/Prefix}) for finding out what articles to work on, with
4513 the extension that a "single article" means "a single series".  Gnus can
4514 find out by itself what articles belong to a series, decode all the
4515 articles and unpack/view/save the resulting file(s).
4516
4517 Gnus guesses what articles are in the series according to the following
4518 simplish rule: The subjects must be (nearly) identical, except for the
4519 last two numbers of the line.  (Spaces are largely ignored, however.)
4520
4521 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
4522 will find all the articles that match the regexp @samp{^cat.gif
4523 ([0-9]+/[0-9]+).*$}.  
4524
4525 Subjects that are nonstandard, like @samp{cat.gif (2/3) Part 6 of a
4526 series}, will not be properly recognized by any of the automatic viewing
4527 commands, and you have to mark the articles manually with @key{#}.
4528
4529 @menu 
4530 * Decoding Variables::     Variables for a happy decoding.
4531 * Viewing Files::          You want to look at the result of the decoding?
4532 @end menu
4533
4534 @node Uuencoded Articles
4535 @subsection Uuencoded Articles
4536 @cindex uudecode
4537 @cindex uuencoded articles
4538
4539 @table @kbd
4540 @item X u
4541 @kindex X u (Summary)
4542 @findex gnus-uu-decode-uu
4543 Uudecodes the current series (@code{gnus-uu-decode-uu}).
4544 @item X U
4545 @kindex X U (Summary)
4546 @findex gnus-uu-decode-uu-and-save
4547 Uudecodes and saves the current series
4548 (@code{gnus-uu-decode-uu-and-save}).
4549 @item X v u
4550 @kindex X v u (Summary)
4551 @findex gnus-uu-decode-uu-view
4552 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
4553 @item X v U
4554 @kindex X v U (Summary)
4555 @findex gnus-uu-decode-uu-and-save-view
4556 Uudecodes, views and saves the current series
4557 (@code{gnus-uu-decode-uu-and-save-view}). 
4558 @end table
4559
4560 Remember that these all react to the presence of articles marked with
4561 the process mark.  If, for instance, you'd like to uncode and save an
4562 entire newsgroup, you'd typically do @kbd{M p a}
4563 (@code{gnus-uu-mark-all}) and then @kbd{X U}
4564 (@code{gnus-uu-decode-uu-and-save}).
4565
4566 All this is very much different from how @code{gnus-uu} worked with
4567 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
4568 the sun.  This version of @code{gnus-uu} generally assumes that you mark
4569 articles in some way (@pxref{Setting Process Marks}) and then press
4570 @kbd{X u}.
4571
4572 Note: When trying to decode articles that have names matching
4573 @code{gnus-uu-notify-files}, which is hard-coded to
4574 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
4575 automatically post an article on @samp{comp.unix.wizards} saying that
4576 you have just viewed the file in question.  This feature can't be turned
4577 off.
4578
4579 @node Shared Articles
4580 @subsection Shared Articles
4581 @cindex unshar
4582 @cindex shared articles
4583
4584 @table @kbd
4585 @item X s
4586 @kindex X s (Summary)
4587 @findex gnus-uu-decode-unshar
4588 Unshars the current series (@code{gnus-uu-decode-unshar}).
4589 @item X S
4590 @kindex X S (Summary)
4591 @findex gnus-uu-decode-unshar-and-save
4592 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
4593 @item X v s
4594 @kindex X v s (Summary)
4595 @findex gnus-uu-decode-unshar-view
4596 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
4597 @item X v S
4598 @kindex X v S (Summary)
4599 @findex gnus-uu-decode-unshar-and-save-view
4600 Unshars, views and saves the current series
4601 (@code{gnus-uu-decode-unshar-and-save-view}). 
4602 @end table
4603
4604 @node PostScript Files
4605 @subsection PostScript Files
4606 @cindex PostScript
4607
4608 @table @kbd
4609 @item X p
4610 @kindex X p (Summary)
4611 @findex gnus-uu-decode-postscript
4612 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
4613 @item X P
4614 @kindex X P (Summary)
4615 @findex gnus-uu-decode-postscript-and-save
4616 Unpack and save the current PostScript series
4617 (@code{gnus-uu-decode-postscript-and-save}).
4618 @item X v p
4619 @kindex X v p (Summary)
4620 @findex gnus-uu-decode-postscript-view
4621 View the current PostScript series
4622 (@code{gnus-uu-decode-postscript-view}).
4623 @item X v P
4624 @kindex X v P (Summary)
4625 @findex gnus-uu-decode-postscript-and-save-view
4626 View and save the current PostScript series
4627 (@code{gnus-uu-decode-postscript-and-save-view}). 
4628 @end table
4629
4630 @node Decoding Variables
4631 @subsection Decoding Variables
4632
4633 Adjective, not verb.
4634
4635 @menu 
4636 * Rule Variables::          Variables that say how a file is to be viewed.
4637 * Other Decode Variables::  Other decode variables.
4638 * Uuencoding & Posting::    Variables for customizing uuencoding.
4639 @end menu
4640
4641 @node Rule Variables
4642 @subsubsection Rule Variables
4643 @cindex rule variables
4644
4645 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
4646 variables are on the form
4647   
4648 @lisp
4649       (list '(regexp1 command2)
4650             '(regexp2 command2)
4651             ...)
4652 @end lisp
4653
4654 @table @code
4655 @item gnus-uu-user-view-rules
4656 @vindex gnus-uu-user-view-rules
4657 This variable is consulted first when viewing files.  If you wish to use,
4658 for instance, @code{sox} to convert an @samp{.au} sound file, you could
4659 say something like:
4660 @lisp
4661        (setq gnus-uu-user-view-rules
4662          (list '(\"\\\\.au$\" \"sox %s -t .aiff > /dev/audio\")))
4663 @end lisp
4664 @item gnus-uu-user-view-rules-end
4665 @vindex gnus-uu-user-view-rules-end
4666 This variable is consulted if Gnus couldn't make any matches from the
4667 user and default view rules.
4668 @item gnus-uu-user-archive-rules
4669 @vindex gnus-uu-user-archive-rules
4670 This variable can be used to say what commands should be used to unpack
4671 archives.
4672 @end table
4673
4674 @node Other Decode Variables
4675 @subsubsection Other Decode Variables
4676
4677 @table @code
4678 @item gnus-uu-ignore-files-by-name
4679 @vindex gnus-uu-ignore-files-by-name
4680 Files with name matching this regular expression won't be viewed.
4681
4682 @item gnus-uu-ignore-files-by-type
4683 @vindex gnus-uu-ignore-files-by-type
4684 Files with a @sc{mime} type matching this variable won't be viewed.
4685 Note that Gnus tries to guess what type the file is based on the name.
4686 @code{gnus-uu} is not a @sc{mime} package (yet), so this is slightly
4687 kludgey.
4688
4689 @item gnus-uu-tmp-dir
4690 @vindex gnus-uu-tmp-dir
4691 Where @code{gnus-uu} does its work.
4692
4693 @item gnus-uu-do-not-unpack-archives
4694 @vindex gnus-uu-do-not-unpack-archives
4695 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
4696 looking for files to display.
4697
4698 @item gnus-uu-view-and-save
4699 @vindex gnus-uu-view-and-save
4700 Non-@code{nil} means that the user will always be asked to save a file
4701 after viewing it.
4702
4703 @item gnus-uu-ignore-default-view-rules
4704 @vindex gnus-uu-ignore-default-view-rules
4705 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
4706 rules.
4707
4708 @item gnus-uu-ignore-default-archive-rules
4709 @vindex gnus-uu-ignore-default-archive-rules
4710 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
4711 unpacking commands.
4712
4713 @item gnus-uu-kill-carriage-return
4714 @vindex gnus-uu-kill-carriage-return
4715 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
4716 from articles.
4717
4718 @item gnus-uu-unmark-articles-not-decoded
4719 @vindex gnus-uu-unmark-articles-not-decoded
4720 Non-@code{nil} means that @code{gnus-uu} will mark articles that were
4721 unsuccessfully decoded as unread.
4722
4723 @item gnus-uu-correct-stripped-uucode
4724 @vindex gnus-uu-correct-stripped-uucode
4725 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
4726 uuencoded files that have had trailing spaces deleted.
4727
4728 @item gnus-uu-view-with-metamail
4729 @vindex gnus-uu-view-with-metamail
4730 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
4731 commands defined by the rule variables and just fudge a @sc{mime}
4732 content type based on the file name.  The result will be fed to
4733 @code{metamail} for viewing.
4734
4735 @item gnus-uu-save-in-digest
4736 @vindex gnus-uu-save-in-digest
4737 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
4738 decoding, will save in digests.  If this variable is @code{nil},
4739 @code{gnus-uu} will just save everything in a file without any
4740 embellishments.  The digesting almost conforms to RFC1153 - no easy way
4741 to specify any meaningful volume and issue numbers were found, so I
4742 simply dropped them.
4743
4744 @end table
4745
4746 @node Uuencoding & Posting
4747 @subsubsection Uuencoding & Posting
4748
4749 @table @code
4750
4751 @item gnus-uu-post-include-before-composing
4752 @vindex gnus-uu-post-include-before-composing
4753 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
4754 before you compose the article.  If this variable is @code{t}, you can
4755 either include an encoded file with @key{C-c C-i} or have one included
4756 for you when you post the article.
4757
4758 @item gnus-uu-post-length
4759 @vindex gnus-uu-post-length
4760 Maximum length of an article.  The encoded file will be split into how
4761 many articles it takes to post the entire file.
4762
4763 @item gnus-uu-post-threaded
4764 @vindex gnus-uu-post-threaded
4765 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
4766 thread.  This may not be smart, as no other decoder I have seen are able
4767 to follow threads when collecting uuencoded articles.  (Well, I have
4768 seen one package that does that - @code{gnus-uu}, but somehow, I don't
4769 think that counts...) Default is @code{nil}.
4770
4771 @item gnus-uu-post-separate-description
4772 @vindex gnus-uu-post-separate-description
4773 Non-@code{nil} means that the description will be posted in a separate
4774 article.  The first article will typically be numbered (0/x).  If this
4775 variable is @code{nil}, the description the user enters will be included
4776 at the beginning of the first article, which will be numbered (1/x).
4777 Default is @code{t}.
4778
4779 @end table
4780
4781 @node Viewing Files
4782 @subsection Viewing Files
4783 @cindex viewing files
4784 @cindex pseudo-articles
4785
4786 After decoding, if the file is some sort of archive, Gnus will attempt
4787 to unpack the archive and see if any of the files in the archive can be
4788 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
4789 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
4790 uncompress and detar the main file, and then view the two pictures.
4791 This unpacking process is recursive, so if the archive contains archives
4792 of archives, it'll all be unpacked.
4793
4794 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
4795 extracted file into the summary buffer.  If you go to these "articles",
4796 you will be prompted for a command to run (usually Gnus will make a
4797 suggestion), and then the command will be run.
4798
4799 @vindex gnus-view-pseudo-asynchronously
4800 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
4801 until the viewing is done before proceeding.
4802
4803 @vindex gnus-view-pseudos
4804 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
4805 the pseudo-articles into the summary buffer, but view them
4806 immediately.  If this variable is @code{not-confirm}, the user won't even
4807 be asked for a confirmation before viewing is done.
4808
4809 @vindex gnus-view-pseudos-separately 
4810 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
4811 pseudo-article will be created for each file to be viewed.  If
4812 @code{nil}, all files that use the same viewing command will be given as
4813 a list of parameters to that command.
4814
4815 So; there you are, reading your @emph{pseudo-articles} in your
4816 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
4817 Why isn't anything real anymore? How did we get here?
4818
4819 @node Various Article Stuff 
4820 @section Various Article Stuff 
4821
4822 @table @kbd
4823 @item A w
4824 @kindex A w (Summary)
4825 @findex gnus-summary-stop-page-breaking
4826 Remove page breaks from the current article
4827 (@code{gnus-summary-stop-page-breaking}).
4828 @item A s 
4829 @kindex A s (Summary)
4830 @findex gnus-summary-isearch-article
4831 Perform an isearch in the article buffer
4832 (@code{gnus-summary-isearch-article}). 
4833 @item A c
4834 @kindex A c (Summary)
4835 @findex gnus-summary-caesar-message
4836 Do a Caesar rotate (rot13) on the article buffer
4837 (@code{gnus-summary-caesar-message}). 
4838 @item A g
4839 @kindex A g (Summary)
4840 @findex gnus-summary-show-article
4841 (Re)fetch the current article (@code{gnus-summary-show-article}). If
4842 given a prefix, don't actually refetch any articles, just jump to the
4843 current article and configure the windows to display the current
4844 article.
4845 @item A t
4846 @kindex A t (Summary)
4847 @findex gnus-summary-toggle-header
4848 Toggle whether to display all headers in the article buffer
4849 (@code{gnus-summary-toggle-header}). 
4850 @item A m
4851 @kindex A m (Summary)
4852 @findex gnus-summary-toggle-mime
4853 Toggle whether to run the article through @sc{mime} before displaying
4854 (@code{gnus-summary-toggle-mime}).
4855 @end table
4856
4857 There's a battery of commands for washing the article buffer:
4858
4859 @table @kbd
4860 @item W h
4861 @kindex W h (Summary)
4862 @findex gnus-article-hide-headers
4863 Hide headers (@code{gnus-article-hide-headers}).
4864 @item W s
4865 @kindex W s (Summary)
4866 @findex gnus-article-hide-signature
4867 Hide signature (@code{gnus-article-hide-signature}).
4868 @item W c
4869 @kindex W c (Summary)
4870 @findex gnus-article-hide-citation
4871 Hide citation (@code{gnus-article-hide-citation}).
4872 @item W o
4873 @kindex W o (Summary)
4874 @findex gnus-article-treat-overstrike
4875 Treat overstrike (@code{gnus-article-treat-overstrike}).
4876 @item W w
4877 @kindex W w (Summary)
4878 @findex gnus-article-word-wrap
4879 Do word wrap (@code{gnus-article-word-wrap}).
4880 @item W d
4881 @kindex W d (Summary)
4882 @findex gnus-article-remove-cr
4883 Remove CR (@code{gnus-article-remove-cr}).
4884 @item W q
4885 @kindex W q (Summary)
4886 @findex gnus-article-de-quoted-unreadable
4887 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
4888 @item W f
4889 @kindex W f (Summary)
4890 @cindex x-face
4891 @findex gnus-article-display-x-face
4892 @findex gnus-article-x-face-command
4893 @vindex gnus-article-x-face-command
4894 @vindex gnus-article-x-face-too-ugly
4895 Look for and display any X-Face headers
4896 (@code{gnus-article-display-x-face}). The command executed by this
4897 function is given by the @code{gnus-article-x-face-command} variable. If
4898 this variable is a string, this string will be executed in a sub-shell.
4899 If it is a function, this function will be called with the face as the
4900 argument. If the @code{gnus-article-x-face-too-ugly} (which is a regexp)
4901 matches the @code{From} header, the face will not be shown.
4902 @end table
4903
4904 @node Summary Sorting
4905 @section Summary Sorting
4906 @cindex summary sorting
4907
4908 You can have the summary buffer sorted in various ways, even though I
4909 can't really see why you'd want that.
4910
4911 @table @kbd
4912 @item V s n
4913 @kindex V s n (Summary)
4914 @findex gnus-summary-sort-by-number
4915 Sort by article number (@code{gnus-summary-sort-by-number}).
4916 @item V s a
4917 @kindex V s a (Summary)
4918 @findex gnus-summary-sort-by-author
4919 Sort by author (@code{gnus-summary-sort-by-author}).
4920 @item V s s
4921 @kindex V s s (Summary)
4922 @findex gnus-summary-sort-by-subject
4923 Sort by subject (@code{gnus-summary-sort-by-subject}).
4924 @item V s d
4925 @kindex V s d (Summary)
4926 @findex gnus-summary-sort-by-date
4927 Sort by date (@code{gnus-summary-sort-by-date}).
4928 @item V s i
4929 @kindex V s i (Summary)
4930 @findex gnus-summary-sort-by-score
4931 Sort by date (@code{gnus-summary-sort-by-score}).
4932 @end table
4933
4934 These functions will work both when you use threading and when you don't
4935 use threading.  In the latter case, all summary lines will be sorted,
4936 line by line.  In the former case, sorting will be done on a
4937 root-by-root basis, which might not be what you were looking for.  To
4938 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
4939 Commands}).
4940
4941 @node Finding the Parent
4942 @section Finding the Parent
4943 @cindex parent articles
4944 @cindex referring articles
4945
4946 @findex gnus-summary-refer-parent-article
4947 @kindex ^ (Summary)
4948 If you'd like to read the parent of the current article, and it is not
4949 displayed in the article buffer, you might still be able to.  That is,
4950 if the current group is fetched by @sc{nntp}, the parent hasn't expired
4951 and the @code{References} in the current article are not mangled, you
4952 can just press @kbd{^} or @kbd{A r}
4953 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
4954 you'll get the parent.  If the parent is already displayed in the
4955 summary buffer, point will just move to this article.
4956
4957 @findex gnus-summary-refer-article
4958 @kindex M-^ (Summary)
4959 You can also ask the @sc{nntp} server for an arbitrary article, no
4960 matter what group it belongs to.  @kbd{V r}
4961 (@code{gnus-summary-refer-article}) will ask you for a
4962 @code{Message-Id}, which is one of those long thingies that look
4963 something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.  You have to get
4964 it all exactly right.  No fuzzy searches, I'm afraid.
4965
4966 @vindex gnus-refer-article-method
4967 If the group you are reading is located on a backend that does not
4968 support fetching by @code{Message-Id} very well (like @code{nnspool}),
4969 you can set @code{gnus-refer-article-method} to an @sc{nntp} method.  It
4970 would, perhaps, be best if the @sc{nntp} server you consult is the same
4971 as the one that keeps the spool you are reading from updated, but that's
4972 not really necessary.
4973
4974 @node Score Files
4975 @section Score Files
4976 @cindex score files
4977
4978 Other people use @dfn{kill files}, but we here at (ding) Gnus Towers
4979 like scoring better than killing, so we'd rather switch than fight.  They
4980 do something completely different as well, so sit up straight and pay
4981 attention!
4982
4983 @vindex gnus-summary-mark-below
4984 All articles have a default score (@code{gnus-summary-default-score}).
4985 This score may be raised or lowered either interactively or by score
4986 files.  Articles that have a score lower than
4987 @code{gnus-summary-mark-below} are marked as read.
4988
4989 Gnus will read any @dfn{score files} that apply to the current group
4990 before generating the summary buffer.
4991
4992 There are several commands in the summary buffer that inserts score
4993 entries based on the current article.  You can, for instance, ask Gnus
4994 to lower or increase the score of all articles with a certain subject.
4995
4996 There are two sorts of scoring entries: Permanent and temporary.
4997 Temporary score entries are self-expiring entries.  Any entries that are
4998 temporary and have not been used for, say, a week, will be removed
4999 silently to help keep the sizes of the score files down.
5000
5001 @menu 
5002 * Summary Score Commands::   Adding score commands to the score file.
5003 * Score Variables::          Customize your scoring.  (My, what terminology).
5004 * Score File Format::        What a score file may contain.
5005 * Score File Editing::       You can edit score files by hand as well.
5006 * Adaptive Scoring::         Big Sister Gnus *knows* what you read.
5007 * Scoring Tips::             How to score effectively.
5008 * Reverse Scoring::          That problem child of old is not problem.
5009 * Global Score Files::       Earth-spanning, ear-splitting score files.
5010 * Kill Files::               They are still here, but they can be ignored.
5011 @end menu
5012
5013 @node Summary Score Commands
5014 @subsection Summary Score Commands
5015 @cindex score commands
5016
5017 The score commands that alter score entries do not actually modify real
5018 score files.  That would be too inefficient.  Gnus maintains a cache of
5019 previously loaded score files, one of which is considered the
5020 @dfn{current score file alist}.  The score commands simply insert
5021 entries into this list, and upon group exit, this list is saved.
5022
5023 The current score file is by default the group's local score file, even
5024 if no such score file actually exists.  To insert score commands into
5025 some other score file (eg. @file{all.SCORE}), you must first make this
5026 score file the current one.
5027
5028 General score commands that don't actually change the score file:
5029
5030 @table @kbd
5031 @item V S s
5032 @kindex V S s (Summary)
5033 @findex gnus-summary-set-score
5034 Set the score of the current article (@code{gnus-summary-set-score}).  
5035 @item V S S
5036 @kindex V S S (Summary)
5037 @findex gnus-summary-current-score
5038 Display the score of the current article
5039 (@code{gnus-summary-current-score}).   
5040 @item V S t
5041 @kindex V S t (Summary)
5042 @findex gnus-score-find-trace
5043 Display all score rules that have been used on the current article
5044 (@code{gnus-score-find-trace}).   
5045 @item V S a
5046 @kindex V S a (Summary)
5047 @findex gnus-summary-score-entry
5048 Add a new score entry, and allow specifying all elements 
5049 (@code{gnus-summary-score-entry}).
5050 @item V S c
5051 @kindex V S c (Summary)
5052 @findex gnus-score-change-score-file
5053 Make a different score file the current
5054 (@code{gnus-score-change-score-file}). 
5055 @item V S e
5056 @kindex V S e (Summary)
5057 @findex gnus-score-edit-alist
5058 Edit the current score file (@code{gnus-score-edit-alist}).  You will be
5059 popped into a @code{gnus-score-mode} buffer (@pxref{Score File
5060 Editing}).
5061 @item V S f
5062 @kindex V S f (Summary)
5063 @findex gnus-score-edit-file
5064 Edit a score file and make this score file the current one
5065 (@code{gnus-score-edit-file}).
5066 @item I C-i
5067 @kindex I C-i (Summary)
5068 @findex gnus-summary-raise-score
5069 Increase the score of the current article
5070 (@code{gnus-summary-raise-score}).
5071 @item L C-l
5072 @kindex L C-l (Summary)
5073 @findex gnus-summary-lower-score
5074 Lower the score of the current article
5075 (@code{gnus-summary-lower-score}). 
5076 @end table
5077
5078 The rest of these commands modify the local score file.
5079
5080 @table @kbd
5081 @item V S m
5082 @kindex V S m (Summary)
5083 @findex gnus-score-set-mark-below
5084 Prompt for a score, and mark all articles with a score below this as
5085 read (@code{gnus-score-set-mark-below}).
5086 @item V S E
5087 @kindex V S E (Summary)
5088 @findex gnus-score-set-expunge-below
5089 Expunge all articles with a score below the default score (or the
5090 numeric prefix) (@code{gnus-score-set-expunge-below}).
5091 @end table
5092
5093 The keystrokes for actually making score entries follow a very regular
5094 pattern, so there's no need to list all the commands.  (Hundreds of
5095 them.)  
5096
5097 @enumerate
5098 @item
5099 The first key is either @kbd{I} (upper case i) for increasing the score
5100 or @kbd{L} for lowering the score. 
5101 @item
5102 The second key says what header you want to score on.  The following
5103 keys are available:
5104 @table @kbd
5105 @item a
5106 Score on the author name.
5107 @item s
5108 Score on the subject line.
5109 @item x
5110 Score on the Xref line - i.e., the cross-posting line.
5111 @item t
5112 Score on thread - the References line.
5113 @item d
5114 Score on the date.
5115 @item l
5116 Score on the number of lines.
5117 @item b
5118 Score on the body.
5119 @item h
5120 Score on the head.
5121 @end table
5122
5123 @item
5124 The third key is the match type.
5125 @table @kbd
5126 @item e
5127 Exact matching.
5128 @item s
5129 Substring matching.
5130 @item f
5131 Fuzzy matching.
5132 @item r
5133 Regexp matching
5134 @end table
5135
5136 @item 
5137 The fourth and final key says whether this is a temporary (i.e., expiring)
5138 score entry, or a permanent (i.e., non-expiring) score entry, or whether
5139 it is to be done immediately, without adding to the score file.
5140 @table @kbd
5141 @item t
5142 Temporary score entry.
5143 @item p
5144 Permanent score entry.
5145 @item i
5146 Immediately scoring.
5147 @end table
5148
5149 @end enumerate
5150
5151 So, let's say you want to increase the score on the current author with
5152 exact matching permanently: @kbd{I a e p}.  If you want to lower the
5153 score based on the subject line, using substring matching, and make a
5154 temporary score entry: @kbd{L s s t}.  Pretty easy.
5155
5156 To make things a bit more complicated, there are shortcuts.  If you use
5157 a capital letter on either the second or third keys, Gnus will use
5158 defaults for the remaining one or two keystrokes.  The defaults are
5159 "substring" and "temporary".  So @kbd{I A} is the same as @kbd{I a s t},
5160 and @kbd{I a R} is the same as @kbd{I a r t}.
5161
5162 @vindex gnus-score-mimic-keymap
5163 The @code{gnus-score-mimic-keymap} says whether these commands will
5164 pretend they are keymaps or not.
5165
5166 @node Score Variables
5167 @subsection Score Variables
5168 @cindex score variables
5169
5170 @table @code
5171 @item gnus-use-scoring
5172 @vindex gnus-use-scoring
5173 If @code{nil}, Gnus will not check for score files, and will not, in
5174 general, do any score-related work.
5175 @item gnus-kill-killed
5176 @vindex gnus-kill-killed
5177 If this variable is @code{nil}, Gnus will never apply score files to
5178 articles that have already been through the kill process.  While this
5179 may save you lots of time, it also means that if you apply a kill file
5180 to a group, and then change the kill file and want to run it over you
5181 group again to kill more articles, it won't work.  You have to set this
5182 variable to @code{t} to do that.
5183 @item gnus-kill-files-directory
5184 @vindex gnus-kill-files-directory
5185 All kill and score files will be stored in this directory, which is
5186 initialized from the @samp{SAVEDIR} environment variable by default.
5187 @item gnus-score-file-suffix
5188 @vindex gnus-score-file-suffix
5189 Suffix to add to the group name to arrive at the score file name
5190 (@samp{SCORE} by default.)
5191 @item gnus-score-interactive-default-score
5192 @vindex gnus-score-interactive-default-score
5193 Score used by all the interactive raise/lower commands to raise/lower
5194 score with.  Default is 1000, which may seem excessive, but this is to
5195 ensure that the adaptive scoring scheme gets enough room to play with.
5196 We don't want the small changes from the adaptive scoring to overwrite
5197 manually entered data.
5198 @item gnus-summary-default-score
5199 @vindex gnus-summary-default-score
5200 Default score of an article, which is 0 by default.
5201 @item gnus-score-over-mark
5202 @vindex gnus-score-over-mark
5203 Mark (in the third column) used for articles with a score over the
5204 default.  Default is @samp{+}.
5205 @item gnus-score-below-mark
5206 @vindex gnus-score-below-mark
5207 Mark (in the third column) used for articles with a score below the
5208 default.  Default is @samp{-}.
5209 @item gnus-score-find-score-files-function
5210 @vindex gnus-score-find-score-files-function
5211 Function used to find score files for the current group.  This function
5212 is called with the name of the group as the argument. 
5213
5214 Predefined functions available are:
5215 @table @code
5216 @item gnus-score-find-single
5217 @findex gnus-score-find-single
5218 Only apply the group's own score file.
5219 @item gnus-score-find-bnews
5220 @findex gnus-score-find-bnews
5221 Apply all score files that match, using bnews syntax.  For instance, if
5222 the current group is @samp{gnu.emacs.gnus}, @samp{all.emacs.all.SCORE},
5223 @samp{not.alt.all.SCORE} and @samp{gnu.all.SCORE} would all apply.  In
5224 short, the instances of @samp{all} in the score file names are
5225 translated into @samp{.*}, and then a regexp match is done.
5226 @item gnus-score-find-hierarchical
5227 @findex gnus-score-find-hierarchical
5228 Apply all score files from all the parent groups.
5229 @end table
5230 This variable can also be a list of functions.  In that case, all these
5231 functions will be called, and all the returned lists of score files will
5232 be applied.  These functions can also return lists of score alists
5233 directly.  In that case, the functions that return these non-file score
5234 alists should probably be placed before the "real" score file functions,
5235 to ensure that the last score file returned is the local score file.
5236 Phu. 
5237 @item gnus-kill-expiry-days
5238 @vindex gnus-kill-expiry-days
5239 This variable says how many days should pass before an unused score file
5240 entry is expired.  The default is 7.
5241 @end table
5242
5243 @node Score File Format
5244 @subsection Score File Format
5245 @cindex score file format
5246
5247 A score file is an @code{emacs-lisp} file that normally contains just a
5248 single form.  Casual users are not expected to edit these files;
5249 everything can be changed from the summary buffer.
5250
5251 Anyway, if you'd like to dig into it yourself, here's an example:
5252
5253 @lisp
5254 (("from"
5255   ("Lars Ingebrigtsen" -10000)
5256   ("Per Abrahamsen")
5257   ("larsi\\|lmi" -50000 nil R))
5258  ("subject"
5259   ("Ding is Badd" nil 728373))
5260  ("xref"
5261   ("alt.politics" -1000 728372 s))
5262  ("lines"
5263   (2 -100 nil <))
5264  (mark 0)
5265  (expunge -1000)
5266  (mark-and-expunge -10)
5267  (read-only nil)
5268  (orphan -10)
5269  (adapt t)
5270  (files "/hom/larsi/News/gnu.SCORE")
5271  (local (gnus-newsgroup-auto-expire t)
5272         (gnus-summary-make-false-root 'empty))
5273  (eval (ding)))
5274 @end lisp
5275
5276 This example demonstrates absolutely everything about a score file. 
5277
5278 Even though this looks much like lisp code, nothing here is actually
5279 @code{eval}ed.  The lisp reader is used to read this form, though, so it
5280 has to be legal syntactically, if not semantically.
5281
5282 Six keys are supported by this alist:
5283
5284 @table @code
5285 @item STRING
5286 If the key is a string, it is the name of the header to perform the
5287 match on.  Scoring can only be performed on these eight headers:
5288 @samp{From}, @samp{Subject}, @samp{References}, @samp{Message-ID},
5289 @samp{Xref}, @samp{Lines}, @samp{Chars} and @samp{Date}.  In addition to
5290 these headers, there are three strings to tell Gnus to fetch the entire
5291 article and do the match on larger parts of the article: @samp{Body}
5292 will perform the match on the body of the article, @samp{Head} will
5293 perform the match on the head of the article, and @samp{All} will
5294 perform the match on the entire article.  Note that using any of these
5295 last three keys will slow down group entry @emph{considerably}.  
5296
5297 Following this key is a random number of score entries, where each score
5298 entry has one to four elements.
5299 @enumerate
5300 @item 
5301 The first element is the @dfn{match element}.  On most headers this will
5302 be a string, but on the Lines and Chars headers, this must be an
5303 integer. 
5304 @item 
5305 If the second element is present, it should be a number - the @dfn{score
5306 element}.  This number should be an integer in the neginf to posinf
5307 interval.  This number is added to the score of the article if the match
5308 is successful.  If this element is not present, the
5309 @code{gnus-score-interactive-default-score} number will be used instead.
5310 @item 
5311 If the third element is present, it should be a number - the @dfn{date
5312 element}.  This date says when the last time this score entry matched,
5313 which provides a mechanism for expiring the score entries.  It this
5314 element is not present, the score entry is permanent.  The date is
5315 represented by the number of days since December 31, 1 ce.
5316 @item 
5317 If the fourth element is present, it should be a symbol - the @dfn{type
5318 element}.  This element specifies what function should be used to see
5319 whether this score entry matches the article.  What match types that can
5320 be used depends on what header you wish to perform the match on.
5321 @table @dfn
5322 @item From, Subject, References, Xref, Message-ID
5323 For most header types, there are the @code{r} and @code{R} (regexp) as
5324 well as @code{s} and @code{S} (substring) types and @code{e} and
5325 @code{E} (exact match) types.  If this element is not present, Gnus will
5326 assume that substring matching should be used.  @code{R} and @code{S}
5327 differ from the other two in that the matches will be done in a
5328 case-sensitive manner.  All these one-letter types are really just
5329 abbreviations for the @code{regexp}, @code{string} and @code{exact}
5330 types, which you can use instead, if you feel like.
5331 @item Lines, Chars
5332 These two headers use different match types: @code{<}, @code{>},
5333 @code{=}, @code{>=} and @code{<=}.
5334 @item Date
5335 For the Date header we have three match types: @code{before}, @code{at}
5336 and @code{after}.  I can't really imagine this ever being useful, but,
5337 like, it would feel kinda silly not to provide this function.  Just in
5338 case.  You never know.  Better safe than sorry.  Once burnt, twice shy.
5339 Don't judge a book by its cover.  Never not have sex on a first date.
5340 @item Head, Body, All
5341 These three match keys use the same match types as the @code{From} (etc)
5342 header uses.
5343 @item Followup
5344 This match key will add a score entry on all articles that followup to
5345 some author.  Uses the same match types as the @code{From} header uses.
5346 @end table
5347 @end enumerate
5348
5349 @item mark
5350 The value of this entry should be a number.  Any articles with a score
5351 lower than this number will be marked as read.
5352 @item expunge
5353 The value of this entry should be a number.  Any articles with a score
5354 lower than this number will be removed from the summary buffer.
5355 @item mark-and-expunge
5356 The value of this entry should be a number.  Any articles with a score
5357 lower than this number will be marked as read and removed from the
5358 summary buffer.
5359 @item files
5360 The value of this entry should be any number of file names.  These files
5361 are assumed to be score files as well, and will be loaded the same way
5362 this one was.
5363 @item exclude-files
5364 The clue of this entry should be any number of files.  This files will
5365 not be loaded, even though they would normally be so, for some reason or
5366 other. 
5367 @item eval
5368 The value of this entry will be @code{eval}el.  This element will be
5369 ignored when handling global score files. 
5370 @item read-only
5371 Read-only score files will not be updated or saved.  Global score files
5372 should feature this atom (@pxref{Global Score Files}).
5373 @item orphan
5374 The value of this entry should be a number.  Articles that do not have
5375 parents will get this number added to their scores.
5376 @item adapt
5377 This entry controls the adaptive scoring.  If it is @code{t}, the
5378 default adaptive scoring rules will be used.  If it is @code{ignore}, no
5379 adaptive scoring will be performed on this group.  If it is a list, this
5380 list will be used as the adaptive scoring rules.  If it isn't present,
5381 or is something other than @code{t} or @code{ignore}, the default
5382 adaptive scoring rules will be used.  If you want to use adaptive
5383 scoring on most groups, you'd set @code{gnus-use-adaptive-scoring} to
5384 @code{t}, and insert an @code{(adapt ignore)} in the groups where you do
5385 not want adaptive scoring.  If you only want adaptive scoring in a few
5386 groups, you'd set @code{gnus-use-adaptive-scoring} to @code{nil}, and
5387 insert @code{(adapt t)} in the score files of the groups where you want
5388 it. 
5389 @item local
5390 @cindex local variables
5391 The value of this entry should be a list of @code{(VAR VALUE)} pairs.
5392 Each @var{var} will be made buffer-local to the current summary buffer,
5393 and set to the value specified.  This is a convenient, if albeit
5394 strange, way of setting variables in some groups, and you don't like
5395 hooks much.
5396 @end table
5397
5398 @node Score File Editing
5399 @subsection Score File Editing
5400
5401 You normally enter all scoring commands from the summary buffer, but you
5402 might feel the urge to edit them by hand as well, so we've supplied you
5403 with a mode for that.  
5404
5405 It's simply a slightly customized @code{emacs-lisp} mode, with these
5406 additional commands:
5407
5408 @table @kbd
5409 @item C-c C-c
5410 @kindex C-c C-c (Score)
5411 @findex gnus-score-edit-done
5412 Save the changes you have made and return to the summary buffer
5413 (@code{gnus-score-edit-done}). 
5414 @item C-c C-d
5415 @kindex C-c C-d (Score)
5416 @findex gnus-score-edit-insert-date
5417 Insert the current date in numerical format
5418 (@code{gnus-score-edit-insert-date}).  This is really the day number, if
5419 you were wondering.
5420 @end table
5421
5422 @node Adaptive Scoring
5423 @subsection Adaptive Scoring
5424 @cindex adaptive scoring
5425
5426 If all this scoring is getting you down, Gnus has a way of making it all
5427 happen automatically - as if by magic.  Or rather, as if by artificial
5428 stupidity, to be precise.
5429
5430 @vindex gnus-use-adaptive-scoring
5431 When you read an article, or mark an article as read, or kill an
5432 article, you leave marks behind.  On exit from the group, Gnus can sniff
5433 these marks and add score elements depending on what marks it finds.
5434 You turn on this ability by setting @code{gnus-use-adaptive-scoring} to
5435 @code{t}. 
5436
5437 @vindex gnus-default-adaptive-score-alist
5438 To give you complete control over the scoring process, you can customize
5439 the @code{gnus-default-adaptive-score-alist} variable.  By default, it
5440 looks something like this:
5441
5442 @lisp
5443 (defvar gnus-default-adaptive-score-alist
5444   '((gnus-unread-mark)
5445     (gnus-ticked-mark (from 4))
5446     (gnus-dormant-mark (from 5))
5447     (gnus-del-mark (from -4) (subject -1))
5448     (gnus-read-mark (from 4) (subject 2))
5449     (gnus-expirable-mark (from -1) (subject -1))
5450     (gnus-killed-mark (from -1) (subject -3))
5451     (gnus-kill-file-mark)
5452     (gnus-catchup-mark (from -1) (subject -1))))
5453 @end lisp
5454
5455 As you see, each element in this alist has a mark as a key (either a
5456 variable name or a "real" mark - a character).  Following this key is a
5457 random number of header/score pairs.  
5458
5459 To take @code{gnus-del-mark} as an example - this alist says that all
5460 articles that have that mark (i.e., are marked with @samp{D}) will have a
5461 score entry added to lower based on the @code{From} header by -4, and
5462 lowered by @code{Subject} by -1.  Change this to fit your prejudices. 
5463
5464 If you use this scheme, you should set @code{mark-below} to something
5465 small - like -300, perhaps, to avoid having small random changes result
5466 in articles getting marked as read.
5467
5468 After using adaptive scoring for a week or so, Gnus should start to
5469 become properly trained and enhance the authors you like best, and kill
5470 the authors you like least, without you having to say so explicitly. 
5471
5472 You can control what groups the adaptive scoring is to be performed on
5473 by using the score files (@pxref{Score File Format}).  This will also
5474 let you use different rules in different groups.
5475
5476 @vindex gnus-adaptive-file-suffix
5477 The adaptive score entries will be put into a file where the name is the
5478 group name with @code{gnus-adaptive-file-suffix} appended.
5479
5480 @vindex gnus-score-exact-adapt-limit
5481 When doing adaptive scoring, substring matching would probably give you
5482 the best results in most cases.  However, if the header one matches is
5483 short, the possibility for false positives is great, so if the length of
5484 the match is less than @code{gnus-score-exact-adapt-limit}, exact
5485 matching will be used.  If this variable is @code{nil}, which it is by
5486 default, exact matching will always be used to avoid this problem. 
5487
5488 @node Scoring Tips
5489 @subsection Scoring Tips
5490 @cindex scoring tips
5491
5492 @table @dfn
5493 @item Crossposts
5494 If you want to lower the score of crossposts, the line to match on is
5495 the @code{Xref} header.
5496 @lisp
5497 ("xref" (" talk.politics.misc:" -1000))
5498 @end lisp
5499 @item Multiple crossposts
5500 If you want to lower the score of articles that have been crossposted to
5501 more than, say, 3 groups:
5502 @lisp
5503 ("xref" (" +[^ ]+:[0-9]+ +[^ ]+:[0-9]+ +[^ ]+:[0-9]+" -1000 nil r))
5504 @end lisp
5505 @item Matching on the body
5506 This is generally not a very good idea - it takes a very long time.
5507 Gnus actually has to fetch each individual article from the server.  But
5508 you might want to anyway, I guess.  Even though there are three match
5509 keys (@code{Head}, @code{Body} and @code{All}), you should choose one
5510 and stick with it in each score file.  If you use any two, each article
5511 will be fetched @emph{twice}.  If you want to match a bit on the
5512 @code{Head} and a bit on the @code{Body}, just use @code{All} for all
5513 the matches.  
5514 @item Marking as read
5515 You will probably want to mark articles that has a score below a certain
5516 number as read.  This is most easily achieved by putting the following
5517 in your @file{all.SCORE} file:
5518 @lisp
5519 ((mark -100))
5520 @end lisp
5521 You may also consider doing something similar with @code{expunge}.  
5522 @end table
5523
5524 @node Reverse Scoring
5525 @subsection Reverse Scoring
5526 @cindex reverse scoring
5527
5528 If you want to keep just articles that have @samp{Sex with Emacs} in the
5529 subject header, and expunge all other articles, you could put something
5530 like this in your score file:
5531
5532 @lisp
5533 (("subject"
5534   ("Sex with Emacs" 2))
5535  (mark 1)
5536  (expunge 1))
5537 @end lisp
5538
5539 So, you raise all articles that match @samp{Sex with Emacs} and mark the
5540 rest as read, and expunge them to boot.
5541
5542 @node Global Score Files
5543 @subsection Global Score Files
5544 @cindex global score files
5545
5546 Sure, other newsreaders have "global kill files".  These are usually
5547 nothing more than a single kill file that applies to all groups, stored
5548 in the user's home directory.  Bah!  Puny, weak newsreaders!
5549
5550 What I'm talking about here are Global Score Files.  Score files from
5551 all over the world, from users everywhere, uniting all nations in one
5552 big, happy score file union!  Ange-score!  New and untested!
5553
5554 @vindex gnus-global-score-files
5555 All you have to do to use other people's score files is to set the
5556 @code{gnus-global-score-files} variable.  One entry for each score file,
5557 or each score file directory.  Gnus will decide by itself what score
5558 files are applicable to which group.
5559
5560 Say you want to use all score files in the
5561 @file{/ftp@@ftp.some-where:/pub/score} directory and the single score
5562 file @file{/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE}:
5563
5564 @lisp
5565 (setq gnus-global-score-files
5566       '("/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE"
5567         "/ftp@@ftp.some-where:/pub/score/"))
5568 @end lisp
5569
5570 @findex gnus-score-search-global-directories
5571 Simple, eh?  Directory names must end with a @samp{/}.  These
5572 directories are typically scanned only once during each Gnus session.
5573 If you feel the need to manually re-scan the remote directories, you can
5574 use the @code{gnus-score-search-global-directories} command.
5575
5576 Note that, at present, using this option will slow down group entry
5577 somewhat.  (That is - a lot.)
5578
5579 If you want to start maintaining score files for other people to use,
5580 just put your score file up for anonymous ftp and announce it to the
5581 world.  Become a retro-moderator!  Participate in the retro-moderator
5582 wars sure to ensue, where retro-moderators battle it out for the
5583 sympathy of the people, luring them to use their score files on false
5584 premises!  Yay!  The net is saved!
5585
5586 Here are some tips for the would-be retro-moderator, off the top of my
5587 head: 
5588
5589 @itemize @bullet
5590 @item 
5591 Articles that are heavily crossposted are probably junk. 
5592 @item
5593 To lower a single inappropriate article, lower by @code{Message-Id}.
5594 @item
5595 Particularly brilliant authors can be raised on a permanent basis. 
5596 @item
5597 Authors that repeatedly post off-charter for the group can safely be
5598 lowered out of existence.
5599 @item
5600 Set the @code{mark} and @code{expunge} atoms to obliterate the nastiest
5601 articles completely.
5602 @item 
5603 Use expiring score entries to keep the size of the file down.  You
5604 should probably have a long expiry period, though, as some sites keep
5605 old articles for a long time.
5606 @end itemize
5607
5608 ... I wonder whether other newsreaders will support global score files
5609 in the future.  @emph{Snicker}.  Yup, any day now, newsreaders like Blue
5610 Wave, xrn and 1stReader are bound to implement scoring.  Should we start
5611 holding our breath yet?
5612
5613 @node Kill Files
5614 @subsection Kill Files
5615 @cindex kill files
5616
5617 (ding) Gnus still supports those pesky old kill files.  In fact, the
5618 kill file entries can now be expiring, which is something I wrote before
5619 Per thought of doing score files, so I've left the code in there.
5620
5621 In short, kill processing is a lot slower (and I do mean @emph{a lot})
5622 than score processing, so it might be a good idea to rewrite your kill
5623 files into score files.
5624
5625 Anyway, a kill file is a normal @code{emacs-lisp} file.  You can put any
5626 forms into this file, which means that you can use kill files as some
5627 sort of primitive hook function to be run on group entry, even though
5628 that isn't a very good idea.
5629
5630 Normal kill files look like this:
5631
5632 @lisp
5633 (gnus-kill "From" "Lars Ingebrigtsen")
5634 (gnus-kill "Subject" "ding")
5635 (gnus-expunge "X")
5636 @end lisp
5637
5638 This will mark every article written by me as read, and remove them from
5639 the summary buffer.  Very useful, you'll agree.
5640
5641 Other programs use a totally different kill file syntax.  If Gnus
5642 encounters what looks like a @code{rn} kill file, it will take a stab at
5643 interpreting it. 
5644
5645 Two functions for editing a GNUS kill file:
5646
5647 @table @kbd
5648 @item V k
5649 @kindex V k (Summary)
5650 @findex gnus-summary-edit-local-kill
5651 Edit this group's kill file (@code{gnus-summary-edit-local-kill}).
5652
5653 @item V K
5654 @kindex V K (Summary)
5655 @findex gnus-summary-edit-global-kill
5656 Edit the general kill file (@code{gnus-summary-edit-global-kill}).
5657 @end table
5658
5659 @vindex gnus-kill-file-name
5660 A kill file for the group @samp{soc.motss} is normally called
5661 @file{soc.motss.KILL}.  The suffix appended to the group name to get
5662 this file name is detailed by the @code{gnus-kill-file-name} variable.
5663 The "global" kill file (not in the score file sense of "global", of
5664 course) is called just @file{KILL}.
5665
5666 @vindex gnus-kill-save-kill-file
5667 If @code{gnus-kill-save-kill-file} is non-@code{nil}, Gnus will save the
5668 kill file after processing, which is necessary if you use expiring
5669 kills. 
5670
5671
5672 @node Mail Group Commands
5673 @section Mail Group Commands
5674 @cindex mail group commands
5675
5676 Some commands only make sense in mail groups.  If these commands are
5677 illegal in the current group, they will raise a hell and let you know.
5678
5679 All these commands (except the expiry and edit commands) use the
5680 process/prefix convention (@pxref{Process/Prefix}).
5681
5682 @table @kbd
5683 @item B e
5684 @kindex B e (Summary)
5685 @findex gnus-summary-expire-articles
5686 Expire all expirable articles in the group
5687 (@code{gnus-summary-expire-articles}).
5688
5689 @item B M-C-e
5690 @kindex B M-C-e (Summary)
5691 @findex gnus-summary-expire-articles-now
5692 Expunge all the expirable articles in the group
5693 (@code{gnus-summary-expire-articles-now}). This means that @strong{all}
5694 articles that are eligeble for expiry in the current group will
5695 disappear forever into that big @file{/dev/null} in the sky.
5696
5697 @item B DEL
5698 @kindex B DEL (Summary)
5699 @findex gnus-summary-delete-articles
5700 Delete the mail article.  This is "delete" as in "delete it from your
5701 disk forever and ever, never to return again." Use with caution.
5702 (@code{gnus-summary-delete-article}).
5703
5704 @item B m
5705 @kindex B m (Summary)
5706 @cindex move mail
5707 @findex gnus-summary-move-article
5708 Move the article from one mail group to another
5709 (@code{gnus-summary-move-article}). 
5710
5711 @item B c
5712 @kindex B c (Summary)
5713 @cindex copy mail
5714 @findex gnus-summary-copy-article
5715 Copy the article from one group (mail group or not) to a mail group
5716 (@code{gnus-summary-copy-article}).
5717
5718 @item B i
5719 @kindex B i (Summary)
5720 @findex gnus-summary-import-article
5721 Import a random file into the current mail newsgroup
5722 (@code{gnus-summary-import-article}).  You will be prompted for a file
5723 name, a @code{From} header and a @code{Subject} header.
5724
5725 @item B r
5726 @kindex B r (Summary)
5727 @findex gnus-summary-respool-article
5728 Respool the mail article (@code{gnus-summary-move-article}).
5729
5730 @item B w
5731 @itemx e
5732 @kindex B w (Summary)
5733 @kindex e (Summary)
5734 @findex gnus-summary-edit-article
5735 @kindex C-c C-c (Article)
5736 Edit the current article (@code{gnus-summary-edit-article}).  To finish
5737 editing and make the changes permanent, type @kbd{C-c C-c}
5738 (@kbd{gnus-summary-edit-article-done}).
5739
5740 @item B q
5741 @kindex B q (Summary)
5742 @findex gnus-summary-fancy-query
5743 If you are using fancy splitting, this command will tell you where an
5744 article would go (@code{gnus-summary-fancy-query}). 
5745 @end table
5746
5747 @node Various Summary Stuff
5748 @section Various Summary Stuff
5749
5750 @menu
5751 * Group Information::                 Information oriented commands.
5752 * Searching for Articles::            Multiple article commands.
5753 * Really Various Summary Commands::   Those pesky non-conformant commands.
5754 @end menu
5755
5756 @vindex gnus-summary-prepare-hook
5757 @code{gnus-summary-prepare-hook} is called after the summary buffer has
5758 been generated.  You might use it to, for instance, highlight lines or
5759 modify the look of the buffer in some other ungodly manner.  I don't
5760 care.
5761
5762 @node Group Information
5763 @subsection Group Information
5764
5765 @table @kbd
5766 @item H f
5767 @kindex H f (Summary)
5768 @findex gnus-summary-fetch-faq
5769 @vindex gnus-group-faq-directory
5770 Try to fetch the FAQ (list of frequently asked questions) for the
5771 current group (@code{gnus-summary-fetch-faq}).  Gnus will try to get the
5772 FAQ from @code{gnus-group-faq-directory}, which is usually a directory
5773 on a remote machine. @code{ange-ftp} will be used for fetching the file.
5774 @item H d
5775 @kindex H d (Summary)
5776 @findex gnus-summary-describe-group
5777 Give a brief description of the current group
5778 (@code{gnus-summary-describe-group}).  If given a prefix, force
5779 rereading the description from the server.
5780 @item H h
5781 @kindex H h (Summary)
5782 @findex gnus-summary-describe-briefly
5783 Give a very brief description of the most important summary keystrokes
5784 (@code{gnus-summary-describe-briefly}). 
5785 @item H i
5786 @kindex H i (Summary)
5787 @findex gnus-info-find-node
5788 Go to the Gnus info node (@code{gnus-info-find-node}).
5789 @end table
5790
5791 @node Searching for Articles
5792 @subsection Searching for Articles
5793
5794 @table @kbd
5795 @item V C-s
5796 @kindex V C-s (Summary)
5797 @findex gnus-summary-search-article-forward
5798 Search through all subsequent articles for a regexp
5799 (@code{gnus-summary-search-article-forward}). 
5800 @item V C-r
5801 @kindex V C-r (Summary)
5802 @findex gnus-summary-search-article-backward
5803 Search through all previous articles for a regexp
5804 (@code{gnus-summary-search-article-backward}). 
5805 @item V &
5806 @kindex V & (Summary)
5807 @findex gnus-summary-execute-command
5808 This command will prompt you for a header field, a regular expression to
5809 match on this field, and a command to be executed if the match is made
5810 (@code{gnus-summary-execute-command}).
5811 @item V u
5812 @kindex V u (Summary)
5813 @findex gnus-summary-universal-argument
5814 Perform any operation on all articles that have been marked with
5815 the process mark (@code{gnus-summary-universal-argument}).
5816 @end table
5817
5818 @node Really Various Summary Commands
5819 @subsection Really Various Summary Commands
5820
5821 @table @kbd
5822 @item V D
5823 @kindex V D (Summary)
5824 @findex gnus-summary-enter-digest-group
5825 If the current article is a digest, you might use this command to enter
5826 you into a group based on the current digest to ease reading
5827 (@code{gnus-summary-enter-digest-group}).
5828 @item V T
5829 @kindex V T (Summary)
5830 @findex gnus-summary-toggle-truncation
5831 Toggle truncation of summary lines (@code{gnus-summary-toggle-truncation}).
5832 @item V e
5833 @kindex V e (Summary)
5834 @findex gnus-summary-expand-window
5835 Expand the summary buffer window (@code{gnus-summary-expand-window}).
5836 If given a prefix, force an @code{article} window configuration. 
5837 @end table
5838
5839 @node The Article Buffer
5840 @chapter The Article Buffer
5841 @cindex article buffer
5842
5843 The articles are displayed in the article buffer, of which there is only
5844 one.  All the summary buffer share the same article buffer.
5845
5846 @menu
5847 * Hiding Headers::        Deciding what headers should be displayed.
5848 * Using Mime::            Pushing articles through @sc{mime} before reading them.
5849 * Customizing Articles::  Tailoring the look of the articles.
5850 * Article Keymap::        Keystrokes available in the article buffer
5851 * Misc Article::          Other stuff.
5852 @end menu
5853
5854 @node Hiding Headers
5855 @section Hiding Headers
5856 @cindex hiding headers
5857 @cindex deleting headers
5858
5859 The top section of each article is the @dfn{head}.  (The rest is the
5860 @dfn{body}, but you may have guessed that already.)
5861
5862 @vindex gnus-show-all-headers
5863 There is a lot of useful information in the head: the name of the person
5864 who wrote the article, the date it was written and the subject of the
5865 article.  That's well and nice, but there's also lots of information
5866 most people do not want to see - what systems the article has passed
5867 through before reaching you, the @code{Message-Id}, the
5868 @code{References}, etc. ad nauseum - and you'll probably want to get rid
5869 of some of those lines.  If you want to keep all those lines in the
5870 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
5871
5872 Gnus provides you with two variables for sifting headers:
5873
5874 @table @code
5875 @item gnus-visible-headers
5876 @vindex gnus-visible-headers
5877 If this variable is non-@code{nil}, it should be a regular expression
5878 that says what headers you wish to keep in the article buffer.  All
5879 headers that do not match this variable will be hidden.
5880
5881 For instance, if you only want to see the name of the person who wrote
5882 the article and the subject, you'd say:
5883
5884 @lisp
5885 (setq gnus-visible-headers "^From:\\|^Subject:")
5886 @end lisp
5887
5888 @item gnus-ignored-headers
5889 @vindex gnus-ignored-headers
5890 This variable is the reverse of @code{gnus-visible-headers}.  If this
5891 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
5892 should be a regular expression that matches all lines that you want to
5893 hide.  All lines that do not match this variable will remain visible.
5894
5895 For instance, if you just want to get rid of the @code{References} line
5896 and the @code{Xref} line, you might say:
5897
5898 @lisp
5899 (setq gnus-ignored-headers "^References:\\|^Xref:")
5900 @end lisp
5901
5902 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
5903 variable will have no effect.
5904 @end table
5905
5906 @vindex gnus-sorted-header-list
5907 Gnus can also sort the headers for you.  (It does this by default.)  You
5908 can control the sorting by setting the @code{gnus-sorted-header-list}
5909 variable.  It is a list of regular expressions that says in what order
5910 the headers are to be displayed.
5911
5912 For instance, if you want the name of the author of the article first,
5913 and then the subject, you might say something like:
5914
5915 @lisp
5916 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
5917 @end lisp
5918
5919 Any headers that are to remain visible, but are not listed in this
5920 variable, will be displayed in random order after all the headers that
5921 are listed in this variable.
5922
5923 @node Using Mime
5924 @section Using Mime
5925 @cindex @sc{mime}
5926
5927 Mime is a standard for waving your hands through the air, aimlessly,
5928 while people stand around yawning.
5929
5930 @sc{mime}, however, is a standard for encoding your articles, aimlessly,
5931 while all newsreaders die of fear.
5932
5933 @sc{mime} may specify what character set the article uses, the encoding
5934 of the characters, and it also makes it possible to embed pictures and
5935 other naughty stuff in innocent-looking articles.
5936
5937 @vindex gnus-show-mime
5938 @vindex gnus-show-mime-method
5939 Gnus handles @sc{mime} by shoving the articles through
5940 @code{gnus-show-mime-method}, which is @code{metamail-buffer} by
5941 default.  If @code{gnus-strict-mime} is non-@code{nil}, the @sc{mime}
5942 method will only be used it there are @sc{mime} headers in the article.
5943 Set @code{gnus-show-mime} to @code{t} if you want to use @sc{mime} all
5944 the time; it might be best to just use the toggling functions from the
5945 summary buffer to avoid getting nasty surprises. (For instance, you
5946 enter the group @samp{alt.sing-a-long} and, before you know it,
5947 @sc{mime} has decoded the sound file in the article and some horrible
5948 sing-a-long song comes streaming out out your speakers, and you can't
5949 find the volume button, because there isn't one, and people are starting
5950 to look at you, and you try to stop the program, but you can't, and you
5951 can't find the program to control the volume, and everybody else in the
5952 room suddenly decides to look at you disdainfully, and you'll feel
5953 rather stupid.)
5954
5955 Any similarity to real events and people is purely coincidental.  Ahem.
5956
5957 @node Customizing Articles
5958 @section Customizing Articles
5959 @cindex article customization
5960
5961 @vindex gnus-article-display-hook
5962 The @code{gnus-article-display-hook} is called after the article has
5963 been inserted into the article buffer.  It is meant to handle all
5964 treatment of the article before it is displayed.  By default it contains
5965 @code{gnus-article-hide-headers}, which hides unwanted headers.
5966
5967 @findex gnus-article-subcite
5968 @findex gnus-article-hide-signature
5969 @findex gnus-article-hide-citation
5970 Other useful functions you might add to this hook is:
5971
5972 @table @code
5973 @item gnus-article-hide-citation
5974 Hide all cited text.
5975 @item gnus-article-hide-signature
5976 Umn, hides the signature.
5977 @item gnus-article-treat-overstrike
5978 Treat @samp{^H_} in a reasonable manner.
5979 @item gnus-article-maybe-highlight
5980 Do fancy article highlighting.
5981 @item gnus-article-remove-cr
5982 Removes trailing carriage returns.
5983 @item gnus-article-de-quoted-unreadable
5984 Do naive decoding of articles encoded with Quoted-Printable.
5985 @item gnus-article-display-x-face
5986 Displays any X-Face headers.
5987 @end table
5988
5989 You can, of course, write your own functions.  The functions are called
5990 from the article buffer, and you can do anything you like, pretty much.
5991 There is no information that you have to keep in the buffer - you can
5992 change everything.  However, you shouldn't delete any headers.  Instead
5993 make them invisible if you want to make them go away.
5994
5995 @node Article Keymap
5996 @section Article Keymap
5997
5998 Most of the keystrokes in the summary buffer can also be used in the
5999 article buffer.  They should behave as if you typed them in the summary
6000 buffer, which means that you don't actually have to have a summary
6001 buffer displayed while reading.  You can do it all from the article
6002 buffer.
6003
6004 A few additional keystrokes are available:
6005
6006 @table @kbd
6007 @item SPACE
6008 @kindex SPACE (Article)
6009 @findex gnus-article-next-page
6010 Scroll forwards one page (@code{gnus-article-next-page}).
6011 @item DEL
6012 @kindex DEL (Article)
6013 @findex gnus-article-prev-page
6014 Scroll backwards one page (@code{gnus-article-prev-page}).
6015 @item C-c ^
6016 @kindex C-c ^ (Article)
6017 @findex gnus-article-refer-article
6018 If point is in the neighborhood of a @code{Message-Id} and you press
6019 @kbd{r}, Gnus will try to get that article from the server
6020 (@code{gnus-article-refer-article}).
6021 @item C-c C-m
6022 @kindex C-c C-m (Article)
6023 @findex gnus-article-mail
6024 Send a reply to the address near point (@code{gnus-article-mail}). 
6025 @item C-c C-M
6026 @kindex C-c C-M (Article)
6027 @findex gnus-article-mail-with-original
6028 Send a reply to the address near point and include the original article
6029 (@code{gnus-article-mail-with-original}). 
6030 @item s
6031 @kindex s (Article)
6032 @findex gnus-article-show-summary
6033 Reconfigure the buffers so that the summary buffer becomes visible
6034 (@code{gnus-article-show-summary}).
6035 @item ?
6036 @kindex ? (Article)
6037 @findex gnus-article-describe-briefly
6038 Give a very brief description of the available keystrokes
6039 (@code{gnus-article-describe-briefly}). 
6040 @end table
6041
6042 @node Misc Article
6043 @section Misc Article
6044
6045 @table @code
6046 @vindex gnus-article-prepare-hook
6047 @item gnus-article-prepare-hook
6048 This hook is called right after the article has been inserted into the
6049 article buffer.  It is mainly intended for functions that do something
6050 depending on the contents; it should probably not be used for changing
6051 the contents of the article buffer.
6052 @vindex gnus-article-display-hook
6053 @item gnus-article-display-hook
6054 This hook is called as the last thing when displaying an article, and is
6055 intended for modifying the contents of the buffer, doing highlights,
6056 hiding headers, and the like.
6057 @vindex gnus-article-mode-line-format
6058 @item gnus-article-mode-line-format
6059 This variable is a format string along the same lines as
6060 @code{gnus-summary-mode-line-format}.  It accepts exactly the same
6061 format specifications as that variable.
6062 @vindex gnus-break-pages
6063 @item gnus-break-pages
6064 Controls whether @dfn{page breaking} is to take place.  If this variable
6065 is non-@code{nil}, the articles will be divided into pages whenever a
6066 page delimiter appears in the article.  If this variable is @code{nil},
6067 paging will not be done.
6068 @item gnus-page-delimiter
6069 @vindex gnus-page-delimiter
6070 This is the delimiter mentioned above.  By default, it is @samp{^L}
6071 (form linefeed).
6072 @end table
6073
6074 @node The Server Buffer
6075 @chapter The Server Buffer
6076
6077 Traditionally, a @dfn{server} is a machine or a piece of software that
6078 one connects to, and then requests information from.  Gnus does not
6079 connect directly to any real servers, but does all transactions through
6080 one backend or other.  But that's just putting one layer more between
6081 the actual media and Gnus, so we might just as well say that each
6082 backend represents a virtual server.
6083
6084 For instance, the @code{nntp} backend may be used to connect to several
6085 different actual nntp servers, or, perhaps, to many different ports on
6086 the same actual nntp server.  You tell Gnus which backend to use, and
6087 what parameters to set by specifying a @dfn{select method}.  
6088
6089 These select methods specifications can sometimes become quite
6090 complicated - say, for instance, that you want to read from the nntp
6091 server @samp{news.funet.fi} on port number @samp{13}, which hangs if
6092 queried for @sc{nov} headers and has a buggy select.  Ahem.  Anyways, if
6093 you had to specify that for each group that used this server, that would
6094 be too much work, so Gnus offers a way of putting names to methods,
6095 which is what you do in the server buffer.
6096
6097 @menu
6098 * Server Buffer Format::   You can customize the look of this buffer.
6099 * Server Commands::        Commands to manipulate servers.
6100 * Example Methods::        Examples server specifications.
6101 * Servers & Methods::      You can use server names as select methods.
6102 @end menu
6103
6104 @node Server Buffer Format
6105 @section Server Buffer Format
6106 @cindex server buffer format
6107
6108 @vindex gnus-server-line-format
6109 You can change the look of the server buffer lines by changing the
6110 @code{gnus-server-line-format} variable.  This is a @code{format}-like
6111 variable, with some simple extensions:
6112
6113 @table @samp
6114 @item h 
6115 How the news is fetched - the backend name.
6116 @item n
6117 The name of this server.
6118 @item w
6119 Where the news is to be fetched from - the address.
6120 @end table
6121
6122 @node Server Commands
6123 @section Server Commands
6124 @cindex server commands
6125
6126 @table @kbd
6127 @item SPC
6128 Browse the current server (@code{gnus-server-read-server}).
6129 @item q
6130 Return to the group buffer (@code{gnus-server-exit}).
6131 @item l
6132 List all servers (@code{gnus-server-list-servers}).
6133 @item k
6134 Kill the current server (@code{gnus-server-kill-server}).
6135 @item y
6136 Yank the previously killed server (@code{gnus-server-yank-server}).
6137 @item c
6138 Copy the current server (@code{gnus-server-copy-server}).
6139 @item a
6140 Add a new server (@code{gnus-server-add-server}).
6141 @item e
6142 Edit a server (@code{gnus-server-edit-server}).
6143 @end table
6144
6145 @node Example Methods
6146 @section Example Methods
6147
6148 Most select methods are pretty simple and self-explanatory: 
6149
6150 @lisp
6151 (nntp "news.funet.fi")
6152 @end lisp
6153
6154 Reading directly from the spool is even simpler:
6155
6156 @lisp
6157 (nnspool "")
6158 @end lisp
6159
6160 As you can see, the first element in a select method is the name of the
6161 backend, and the second is the @dfn{address}, or @dfn{name}, if you
6162 will. 
6163
6164 After these two elements, there may be a random number of @var{(variable
6165 form)} pairs.
6166
6167 To go back to the first example - imagine that you want to read from
6168 port @code{15} from that machine.  This is what the select method should
6169 look like then:
6170
6171 @lisp
6172 (nntp "news.funet.fi" (nntp-port-number 15))
6173 @end lisp
6174
6175 You should read the documentation to each backend to find out what
6176 variables are relevant, but here's an @code{nnmh} example. 
6177
6178 @code{nnmh} is a mail backend that reads a spool-like structure.  Say
6179 you have two structures that you wish to access: One is your private
6180 mail spool, and the other is a public one.  Here's the possible spec for
6181 you private mail:
6182
6183 @lisp
6184 (nnmh "private" (nnmh-directory "~/private/mail/"))
6185 @end lisp
6186
6187 (This server is then called @samp{private}, but you may have guessed
6188 that. 
6189
6190 Here's the method for the public spool:
6191
6192 @lisp
6193 (nnmh "public" 
6194       (nnmh-directory "/usr/information/spool/") 
6195       (nnmh-get-new-mail nil))
6196 @end lisp
6197
6198 @node Servers & Methods
6199 @section Servers & Methods
6200
6201
6202
6203 @node Various
6204 @chapter Various
6205
6206 @menu
6207 * Interactive::                Making Gnus ask you many questions.
6208 * Windows Configuration::      Configuring the Gnus buffer windows.
6209 * Buttons::                    Get tendonitis in ten easy steps!
6210 * Various Various::            Things that are really various.
6211 @end menu
6212
6213 @node Interactive
6214 @section Interactive
6215 @cindex interaction
6216
6217 @table @code
6218 @item gnus-novice-user
6219 @vindex gnus-novice-user
6220 If this variable is non-@code{nil}, you are either a newcomer to the
6221 World of Usenet, or you are very cautious, which is a nice thing to be,
6222 really.  You will be given questions of the type "Are you sure you want
6223 to do this?" before doing anything dangerous.
6224 @item gnus-expert-user
6225 @vindex gnus-expert-user
6226 If this variable is non-@code{nil}, you will never ever be asked any
6227 questions by Gnus.  It will simply assume you know what your are doing,
6228 no matter how strange.
6229 @item gnus-interactive-catchup
6230 @vindex gnus-interactive-catchup
6231 Require confirmation before catching up a group if non-@code{nil}.
6232 @item gnus-interactive-post
6233 @vindex gnus-interactive-post
6234 If non-@code{nil}, the user will be prompted for a group name when
6235 posting an article.
6236 @item gnus-interactive-exit
6237 @vindex gnus-interactive-exit
6238 Require confirmation before exiting Gnus.
6239 @end table
6240
6241 @node Windows Configuration
6242 @section Windows Configuration
6243 @cindex windows configuration
6244
6245 No, there's nothing here about X, so be quiet.
6246
6247 @table @code
6248 @item gnus-use-full-window
6249 @vindex gnus-use-full-window
6250 If non-@code{nil}, Gnus will delete all other windows and occupy the
6251 entire Emacs screen by itself.  It is @code{t} by default.
6252
6253 @item gnus-buffer-configuration
6254 @vindex gnus-buffer-configuration
6255 This variable describes how much space each Gnus buffer should be given.
6256 Here's an excerpt of this variable:
6257
6258 @lisp
6259 ((group ([group 1.0 point] 
6260          (if gnus-carpal [group-carpal 4])))
6261  (article ([summary 0.25 point] 
6262            [article 1.0])))
6263 @end lisp
6264
6265 This is an alist.  The @dfn{key} is a symbol that names some action or
6266 other.  For instance, when displaying the group buffer, the window
6267 configuration function will use @code{group} as the key.  A full list of
6268 possible names is listed below.
6269
6270 The @dfn{value} is a @dfn{rule} that says how much space each buffer
6271 should occupy.  To take the @code{article} rule as an example -
6272
6273 @lisp
6274 (article ([summary 0.25 point] 
6275           [article 1.0]))
6276 @end lisp
6277
6278 This rule says that the summary buffer should occupy 25% of the screen,
6279 and that it is placed over the article buffer.  As you may have noticed,
6280 100% + 25% is actually 125% (yup, I saw y'all reaching for that
6281 calculator there).  However, the special number @code{1.0} is used to
6282 signal that this buffer should soak up all the rest of the space
6283 avaiable after the rest of the buffers have taken whatever they need.  
6284 There should be only one buffer with the @code{1.0} size spec.
6285
6286 Point will be put in the buffer that has the optional third element
6287 @code{point}. 
6288
6289 Here's a more complicated example:
6290
6291 @lisp
6292 (article ([group 4]
6293           [summary 0.25 point]
6294           (if gnus-carpal [summary-carpal 4])
6295           [article 1.0])
6296 @end lisp
6297
6298 If the size spec is an integer instead of a floating point number, 
6299 then that number will be used to say how many lines a buffer should
6300 occupy, not a percentage.
6301
6302 If an element is a list instead of a vector, this list will be
6303 @code{eval}ed.  If the result is non-@code{nil}, it will be used.  This
6304 means that there will be three buffers if @code{gnus-carpal} is
6305 @code{nil}, and four buffers if @code{gnus-carpal} is non-@code{nil}. 
6306
6307 Not complicated enough for you?  Well, try this on for size:
6308
6309 @lisp
6310 (article ([group 1.0]
6311           [gnus-carpal 4])
6312          ((horizontal 0.5)
6313           [summary 0.25 point]
6314           [summary-carpal 4]
6315           [article 1.0]))
6316 @end lisp
6317
6318 Whoops.  Two buffers with the mystery 100% tag.  And what's that
6319 @code{horizontal} thingie?  
6320
6321 If the first element in one of the rule lists is a list with
6322 @code{horizontal} as the first element, Gnus will split the window
6323 horizontally, giving you two windows side-by-side.  Inside each of these
6324 strips you may carry on all you like in the normal fashion.  The number
6325 following @code{horizontal} says what percentage of the screen is to be
6326 given to this strip.  
6327
6328 For each horizontal split, there @emph{must} be one element that has the
6329 100% tag.  The splitting is never accurate, and this buffer will eat any
6330 leftover lines from the splits. 
6331
6332 Here's a list of all possible keys:
6333
6334 @code{group}, @code{summary}, @code{article}, @code{server},
6335 @code{browse}, @code{group-mail}, @code{summary-mail},
6336 @code{summary-reply}, @code{info}, @code{summary-faq},
6337 @code{edit-group}, @code{edit-server}, @code{reply}, @code{reply-yank},
6338 @code{followup}, @code{followup-yank}, @code{edit-score}.  
6339
6340 @findex gnus-add-configuration
6341 Since this variable is so long and complicated, there's a function you
6342 can use to ease changing the config of a single setting:
6343 @code{gnus-add-configuration}.  If, for instance, you want to change the
6344 @code{article} setting, you could say:
6345
6346 @lisp
6347 (gnus-add-configuration
6348  '(article ([group 4]
6349             [summary .25 point] 
6350             [article 1.0])))
6351 @end lisp
6352
6353 @end table
6354
6355 @node Buttons
6356 @section Buttons
6357 @cindex buttons
6358 @cindex mouse
6359 @cindex click
6360
6361 Those new-fangled @dfn{mouse} contraptions is very popular with the
6362 young, hep kids who don't want to learn the proper way to do things
6363 these days.  Why, I remember way back in the summer of '89, when I was
6364 using Emacs on a Tops 20 system.  Three hundred users on one single
6365 machine, and every user was running Simula compilers.  Bah!
6366
6367 Right.
6368
6369 @vindex gnus-carpal
6370 Well, you can make Gnus display bufferfuls of buttons you can click to
6371 do anything by setting @code{gnus-carpal} to @code{t}.  Pretty simple,
6372 really.  Tell the chiropractor I sent you.
6373
6374
6375 @table @code
6376 @item gnus-carpal-mode-hook
6377 @vindex gnus-carpal-mode-hook
6378 Hook run in all carpal mode buffers.
6379 @item gnus-carpal-button-face
6380 @vindex gnus-carpal-button-face
6381 Face used on buttons.
6382 @item gnus-carpal-group-buffer-buttons
6383 @vindex gnus-carpal-group-buffer-buttons
6384 Buttons in the group buffer.
6385 @item gnus-carpal-summary-buffer-buttons
6386 @vindex gnus-carpal-summary-buffer-buttons
6387 Buttons in the summary buffer.
6388 @item gnus-carpal-server-buffer-buttons
6389 @vindex gnus-carpal-server-buffer-buttons
6390 Buttons in the server buffer.
6391 @item gnus-carpal-browse-buffer-buttons
6392 @vindex gnus-carpal-browse-buffer-buttons
6393 Buttons in the browse buffer.
6394 @end table
6395
6396 All the @code{buttons} variables are lists.  The elements in these list
6397 is either a cons cell where the car contains a text to be displayed and
6398 the cdr contains a function symbol, or a simple string.
6399
6400 @node Various Various
6401 @section Various Various
6402 @cindex mode lines
6403 @cindex highlights
6404
6405 @table @code
6406 @item gnus-verbose
6407 @vindex gnus-verbose
6408 This variable is an integer between zero and ten.  The higher the value,
6409 the more messages will be displayed.  If this variable is zero, Gnus
6410 will never flash any messages, if it is seven, most important messages
6411 will be shown, and if it is ten, Gnus won't ever shut up, but will flash
6412 so many messages it will make your head swim.
6413 @item gnus-updated-mode-lines
6414 @vindex gnus-updated-mode-lines
6415 This is a list of buffers that should keep their mode lines updated.
6416 The list may contain the symbols @code{group}, @code{article} and
6417 @code{summary}.  If the corresponding symbol is present, Gnus will keep
6418 that mode line updated with information that may be pertinent.  If this
6419 variable is @code{nil}, screen refresh may be quicker.
6420
6421 @cindex display-time
6422 @item gnus-mode-non-string-length
6423 @vindex gnus-mode-non-string-length
6424 By default, Gnus displays information on the current article in the mode
6425 lines of the summary and article buffers.  The information Gnus wishes
6426 to display (eg. the subject of the article) is often longer than the
6427 mode lines, and therefore have to be cut off at some point.  This
6428 variable says how long the other elements on the line is (i.e., the
6429 non-info part).  If you put additional elements on the mode line (eg. a
6430 clock), you should modify this variable:
6431 @c Hook written by Keinonen Kari <kk85613@cs.tut.fi>.
6432 @lisp
6433 (add-hook 'display-time-hook
6434           (lambda ()
6435             (setq gnus-mode-non-string-length
6436                   (+ 21 (length display-time-string)))))
6437 @end lisp
6438
6439 @item gnus-visual
6440 @vindex gnus-visual
6441 If @code{nil}, Gnus won't attempt to create menus or use fancy colors
6442 or fonts.  This will also inhibit loading the @file{gnus-visual.el}
6443 file.
6444 @item gnus-mouse-face
6445 @vindex gnus-mouse-face
6446 This is the face (i.e., font) used for mouse highlighting in Gnus.  No
6447 mouse highlights will be done if @code{gnus-visual} is @code{nil}.
6448 @end table
6449
6450 @node Customization
6451 @chapter Customization
6452 @cindex general customization
6453
6454 All variables are properly documented elsewhere in this manual.  This
6455 section is designed to give general pointers on how to customize Gnus
6456 for some quite common situations.
6457
6458 @menu
6459 * Slow NNTP Connection::      You run a local Emacs and get the news elsewhere.
6460 * Slow Terminal Connection::  You run a remote Emacs.
6461 * Little Disk Space::         You feel that having large setup files is icky.
6462 * Slow Machine::              You feel like buying a faster machine.
6463 @end menu
6464
6465 @node Slow NNTP Connection
6466 @section Slow @sc{nntp} Connection
6467
6468 If you run Emacs on a machine locally, and get your news from a machine
6469 over some very thin strings, you want to cut down on the amount of data
6470 Gnus has to get from the @sc{nntp} server.
6471
6472 @table @code
6473 @item gnus-read-active-file
6474 Set this to @code{nil}, which will inhibit Gnus from requesting the
6475 entire active file from the server.  This file is often v.  large.  You
6476 also have to set @code{gnus-check-new-news} and
6477 @code{gnus-check-bogus-newsgroups} to @code{nil} to make sure that Gnus
6478 doesn't suddenly decide to fetch the active file anyway.
6479 @item gnus-nov-is-evil
6480 This one has to be @code{nil}.  If not, grabbing article headers from
6481 the @sc{nntp} server will not be very fast.  Not all @sc{nntp} servers
6482 support @sc{xover}; Gnus will detect this by itself.
6483 @end table
6484
6485 @node Slow Terminal Connection
6486 @section Slow Terminal Connection
6487
6488 Let's say you use your home computer for dialing up the system that
6489 runs Emacs and Gnus.  If your modem is slow, you want to reduce the
6490 amount of data that is sent over the wires as much as possible.
6491
6492 @table @code
6493 @item gnus-auto-center-summary
6494 Set this to @code{nil} to inhibit Gnus from recentering the summary
6495 buffer all the time.
6496 @item gnus-visible-headers
6497 Cut down on the headers that are included in the articles to the
6498 minimum.  You can, in fact, make do without them altogether - most of the
6499 useful data is in the summary buffer, anyway.  Set this variable to
6500 @samp{"^NEVVVVER"} or @samp{"From:"}, or whatever you feel you need.
6501 @item gnus-article-display-hook
6502 Set this hook to all the available hiding commands:
6503 @lisp
6504 (setq gnus-article-display-hook 
6505       '(gnus-article-hide-headers gnus-article-hide-signature
6506         gnus-article-hide-citation))
6507 @end lisp
6508 @item gnus-use-full-window
6509 By setting this to @code{nil}, you can make all the windows smaller.
6510 While this doesn't really cut down much generally, it means that you
6511 have to see smaller portions of articles before deciding that you didn't
6512 want to read them anyway.
6513 @item gnus-thread-hide-subtree
6514 If this is non-@code{nil}, all threads in the summary buffer will be
6515 hidden initially.
6516 @item gnus-updated-mode-lines
6517 If this is @code{nil}, Gnus will not put information in the buffer mode
6518 lines, which might save some time.
6519 @end table
6520
6521 @node Little Disk Space
6522 @section Little Disk Space
6523
6524 The startup files can get rather large, so you may want to cut their
6525 sizes a bit if you are running out of space.
6526
6527 @table @code
6528 @item gnus-save-newsrc-file
6529 If this is @code{nil}, Gnus will never save @file{.newsrc} - it will
6530 only save @file{.newsrc.eld}.  This means that you will not be able to
6531 use any other newsreaders than Gnus.
6532 @item gnus-save-killed-list
6533 If this is @code{nil}, Gnus will not save the list of dead groups.  You
6534 should also set @code{gnus-check-new-newsgroups} to @code{ask-server}
6535 and @code{gnus-check-bogus-newsgroups} to @code{nil} if you set this
6536 variable to @code{nil}.
6537 @end table
6538
6539 @node Slow Machine
6540 @section Slow Machine
6541
6542 If you have a slow machine, or are just really impatient, there are a
6543 few things you can do to make Gnus run faster.
6544
6545 Set@code{gnus-check-new-newsgroups} and
6546 @code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
6547
6548 Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
6549 @code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
6550 summary buffer faster.
6551
6552 Set @code{gnus-article-display-hook} to @code{nil} to make article
6553 processing a bit faster.
6554
6555 @node Troubleshooting
6556 @chapter Troubleshooting
6557 @cindex troubleshooting
6558
6559 (ding) Gnus works @emph{so} well straight out of the box - I can't
6560 imagine any problems, really.
6561
6562 Ahem.
6563
6564 @enumerate
6565 @item
6566 Make sure your computer is switched on.
6567 @item
6568 Make sure that you really load the current Gnus version.  If you have
6569 been running @sc{gnus}, you need to exit Emacs and start it up again before
6570 Gnus will work.
6571 @item
6572 Try doing an @kbd{M-x gnus-version}.  If you get something that looks
6573 like @samp{(ding) Gnus v0.46; nntp 4.0} you have the right files loaded.
6574 If, on the other hand, you get something like @samp{NNTP 3.x} or
6575 @samp{nntp flee}, you have some old @file{.el} files lying around.
6576 Delete these.
6577 @item
6578 Read the help group (@kbd{M h} in the group buffer) for a FAQ and a
6579 how-to. 
6580 @end enumerate
6581
6582 If all else fails, report the problem as a bug,
6583
6584 @cindex bugs
6585 @cindex reporting bugs
6586
6587 @kindex M-x gnus-bug
6588 @findex gnus-bug
6589 If you find a bug in (ding) Gnus, you can report it with the @kbd{M-x
6590 gnus-bug} command. @kbd{M-x set-variable RET debug-on-error RET t RET},
6591 and send me the backtrace. I will fix bugs, but I can only fix them if
6592 you send me a precise description as to how to reproduce the bug.
6593
6594 @c If you just need help, you are better off asking on
6595 @c @samp{gnu.emacs.gnus}.  
6596
6597 @node The End
6598 @chapter The End
6599
6600 Well, that's the manual - you can get on with your life now.  Keep in
6601 touch.  Say hello to your cats from me.  
6602
6603 My @strong{ghod} - I just can't stand goodbyes.  Sniffle.
6604
6605 Ol' Chuck Reznikoff said it pretty well, so I leave the floor to him:
6606
6607 @quotation
6608 @strong{Te Deum}
6609 @sp 1
6610 Not because of victories @*
6611 I sing,@*
6612 having none,@*
6613 but for the common sunshine,@*
6614 the breeze,@*
6615 the largess of the spring.
6616 @sp 1
6617 Not for victory@*
6618 but for the day's work done@*
6619 as well as I was able;@*
6620 not for a seat upon the dais@*
6621 but at the common table.@*
6622 @end quotation
6623
6624 @node Index
6625 @chapter Index
6626 @printindex cp
6627
6628 @node Key Index
6629 @chapter Key Index
6630 @printindex ky
6631
6632 @summarycontents
6633 @contents
6634 @bye
6635
6636 \f
6637 @c Local Variables:
6638 @c outline-regexp: "@chap\\|@\\(sub\\)*section\\|@appendix \\|@appendix\\(sub\\)*sec\\|\^L"
6639 @c End:
6640
6641 \1f