*** empty log message ***
[gnus] / texi / gnus.texi
1 @tex
2 \input texinfo                  @c -*-texinfo-*-
3 @end tex
4
5 @setfilename gnus.info
6 @settitle September Gnus Manual
7 @synindex fn cp
8 @synindex vr cp
9 @synindex pg cp
10 @iftex
11 @finalout
12 @end iftex
13 @setchapternewpage odd
14
15 @iftex
16 @iflatex
17 \documentclass[twoside,a4paper,openright]{book}
18 \usepackage[latin1]{inputenc}
19 % \usepackage{fontenc}
20 % \usepackage{babel}
21 \usepackage{pagestyle}
22 \usepackage{epsfig}
23 \fontfamily{bembo}\selectfont
24
25 \makeindex
26 \begin{document}
27
28 \newcommand{\gnuschaptername}{}
29 \newcommand{\gnussectionname}{}
30
31 \newcommand{\gnusbackslash}{/}
32
33 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
34 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
35
36 \newcommand{\gnuskindex}[1]{\index{#1}}
37 \newcommand{\gnusindex}[1]{\index{#1}}
38
39 \newcommand{\gnustt}[1]{{\textbf{\textsf{#1}}}}
40 \newcommand{\gnuscode}[1]{\gnustt{#1}}
41 \newcommand{\gnussamp}[1]{`\gnustt{#1}'}
42 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
43 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
44 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
45 \newcommand{\gnusdfn}[1]{\textit{#1}}
46 \newcommand{\gnusi}[1]{\textit{#1}}
47 \newcommand{\gnusstrong}[1]{\textbf{#1}}
48 \newcommand{\gnusemph}[1]{\textit{#1}}
49 \newcommand{\gnusvar}[1]{\textsl{\textsf{#1}}}
50 \newcommand{\gnussc}[1]{\textsc{#1}}
51 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
52 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
53
54 \newcommand{\gnusbullet}{{${\bullet}$}}
55 \newcommand{\gnusdollar}{\$}
56 \newcommand{\gnusampersand}{\&}
57 \newcommand{\gnuspercent}{\%}
58 \newcommand{\gnushash}{\#}
59 \newcommand{\gnushat}{\%}
60 \newcommand{\gnustilde}{\%}
61 \newcommand{\gnusless}{{$<$}}
62 \newcommand{\gnusgreater}{{$>$}}
63
64 \newcommand{\gnushead}{\raisebox{-1cm}{\epsfig{figure=gnus-head.eps,height=1cm}}}
65 \newcommand{\gnusinteresting}{
66 \marginpar[\hspace{2.5cm}\gnushead]{\gnushead}
67 }
68
69 \newcommand{\gnuschapter}[1]{
70 \chapter{#1}
71 \renewcommand{\gnuschaptername}{#1}
72 \thispagestyle{empty}
73 % \epsfig{figure=gnus-herd-\arabic{chapter}.eps,height=15cm}
74 \clearpage
75 }
76
77 \newcommand{\gnusitemx}[1]{{\itemsep=0pt\item#1}}
78
79 \newcommand{\gnussection}[1]{
80 \renewcommand{\gnussectionname}{#1}
81 \section{#1}
82 }
83
84 \newenvironment{codelist}%
85 {\begin{list}{}{
86 }
87 }{\end{list}}
88
89 \newenvironment{kbdlist}%
90 {\begin{list}{}{
91 \labelwidth=0cm
92 }
93 }{\end{list}}
94
95 \newenvironment{dfnlist}%
96 {\begin{list}{}{
97 }
98 }{\end{list}}
99
100 \newenvironment{stronglist}%
101 {\begin{list}{}{
102 }
103 }{\end{list}}
104
105 \newenvironment{samplist}%
106 {\begin{list}{}{
107 }
108 }{\end{list}}
109
110 \newenvironment{varlist}%
111 {\begin{list}{}{
112 }
113 }{\end{list}}
114
115 \newenvironment{emphlist}%
116 {\begin{list}{}{
117 }
118 }{\end{list}}
119
120 \newlength{\headrulewidth}
121 \setlength{\headrulewidth}{\headtextwidth}
122 \addtolength{\headrulewidth}{-2.6ex}
123 \newlength{\headwrule}
124 \setlength{\headwrule}{\headrulewidth}
125 \addtolength{\headwrule}{-0ex}
126
127 \newpagestyle{gnus}%
128 {
129 {
130 \ifodd\count0
131 {
132 \hspace*{-2ex}
133 \underline{
134 \makebox[\headtextwidth]{
135 \hspace*{-2.1ex}
136 %\ifnum chapter=0\else
137 \textbf{\arabic{chapter}.\arabic{section}}
138 %\fi
139 \textbf{\gnussectionname\hfill\arabic{page}}
140 }}
141 %\hspace*{-\headrulewidth}
142 %\raisebox{-3pt}{\rule{\headwrule}{0.5pt}}
143 }
144 \else
145 {
146 \hspace*{-2.1cm}
147 \underline{
148 \hspace*{-2ex}
149 \makebox[\headtextwidth]{
150 \textbf{\arabic{page}\hfill\gnuschaptername}
151 %\hspace*{-\headrulewidth}
152 %\raisebox{-3pt}{\rule{\headwrule}{0.5pt}}
153 }}
154 }
155 \fi
156 }
157 }
158 {
159 \ifodd\count0
160 \mbox{} \hfill 
161 \raisebox{-0.5cm}{\epsfig{figure=gnus-big-logo.eps,height=1cm}}
162 \else
163 \raisebox{-0.5cm}{\epsfig{figure=gnus-big-logo.eps,height=1cm}}
164 \hfill \mbox{}
165 \fi
166 }
167 \pagestyle{gnus}
168
169 @end iflatex
170 @end iftex
171
172 @iftex
173 @iflatex
174 \begin{titlepage}
175 {
176
177 %\addtolength{\oddsidemargin}{-5cm}
178 %\addtolength{\evensidemargin}{-5cm}
179 \parindent=0cm
180 \addtolength{\textheight}{2cm}
181
182 \gnustitle{\gnustitlename}\\
183 \rule{15cm}{1mm}\\
184 \vfill
185 \hspace*{-1cm}\epsfig{figure=gnus-big-logo.eps,height=15cm}
186 \vfill
187 \rule{15cm}{1mm}\\
188 \gnusauthor{by Lars Magne Ingebrigtsen}
189 \newpage
190 }
191
192 \mbox{}
193 \vfill
194
195 \thispagestyle{empty}
196
197 Copyright \copyright{} 1995 Free Software Foundation, Inc. 
198
199 Permission is granted to make and distribute verbatim copies of
200 this manual provided the copyright notice and this permission notice
201 are preserved on all copies.
202
203 Permission is granted to copy and distribute modified versions of this
204 manual under the conditions for verbatim copying, provided that the
205 entire resulting derived work is distributed under the terms of a
206 permission notice identical to this one.
207
208 Permission is granted to copy and distribute translations of this manual
209 into another language, under the above conditions for modified versions.
210
211 \newpage
212 \end{titlepage}
213 @end iflatex
214 @end iftex
215
216 @ifinfo
217
218 This file documents Gnus, the GNU Emacs newsreader.
219
220 Copyright (C) 1995 Free Software Foundation, Inc.
221
222 Permission is granted to make and distribute verbatim copies of
223 this manual provided the copyright notice and this permission notice
224 are preserved on all copies.
225
226 @ignore
227 Permission is granted to process this file through Tex and print the
228 results, provided the printed document carries copying permission
229 notice identical to this one except for the removal of this paragraph
230 (this paragraph not being relevant to the printed manual).
231
232 @end ignore
233 Permission is granted to copy and distribute modified versions of this
234 manual under the conditions for verbatim copying, provided also that the
235 entire resulting derived work is distributed under the terms of a
236 permission notice identical to this one.
237
238 Permission is granted to copy and distribute translations of this manual
239 into another language, under the above conditions for modified versions.
240 @end ifinfo
241
242 @tex
243
244 @titlepage
245 @title September Gnus Manual
246
247 @author by Lars Magne Ingebrigtsen
248 @page
249
250 @vskip 0pt plus 1filll
251 Copyright @copyright{} 1995 Free Software Foundation, Inc. 
252
253 Permission is granted to make and distribute verbatim copies of
254 this manual provided the copyright notice and this permission notice
255 are preserved on all copies.
256
257 Permission is granted to copy and distribute modified versions of this
258 manual under the conditions for verbatim copying, provided that the
259 entire resulting derived work is distributed under the terms of a
260 permission notice identical to this one.
261
262 Permission is granted to copy and distribute translations of this manual
263 into another language, under the above conditions for modified versions.
264
265 @end titlepage
266 @page
267
268 @end tex
269
270
271 @node Top
272 @top The Gnus Newsreader
273
274 @ifinfo
275
276 You can read news (and mail) from within Emacs by using Gnus.  The news
277 can be gotten by any nefarious means you can think of---@sc{nntp}, local
278 spool or your mbox file.  All at the same time, if you want to push your
279 luck.
280
281 @end ifinfo
282
283 @iftex
284
285 Gnus is the advanced, self-documenting, customizable, extensible
286 unreal-time newsreader for GNU Emacs.  
287
288 Oops.  That sounds oddly familiar, so let's start over again to avoid
289 being accused of plagiarism:
290
291 Gnus is a message-reading laboratory.  It will let you look at just
292 about anything as if it were a newsgroup.  You can read mail with it,
293 you can browse directories with it, you can @code{ftp} with it---you can
294 even read news with it, if you feel like it.
295
296 Gnus tries to empower people who read news the same way Emacs empowers
297 people who edit text.  Gnus sets no limits to what the user should be
298 allowed to do.  Users are encouraged to extend Gnus to behave like they
299 want it to behave.  A program should not control people; people should
300 be empowered to do what they want by using (or abusing) the program.
301
302 @end iftex
303
304
305 @menu
306 * History::                 How Gnus got where it is today.
307 * Terminology::             We use really difficult, like, words here.
308 * Starting Up::             Finding news can be a pain.
309 * The Group Buffer::        Selecting, subscribing and killing groups.
310 * The Summary Buffer::      Reading, saving and posting articles.
311 * The Article Buffer::      Displaying and handling articles.
312 * The Server Buffer::       Making and editing virtual servers.
313 * Scoring::                 Assigning values to articles.
314 * Various::                 General purpose settings.
315 * Customization::           Tailoring Gnus to your needs.
316 * Troubleshooting::         What you might try if things do not work.
317 * The End::                 Farewell and goodbye.
318 * Appendices::              Technical stuff, Emacs intro, FAQ
319 * Index::                   Variable, function and concept index.
320 * Key Index::               Key Index.
321 @end menu
322
323
324 @node History
325 @chapter History
326
327 @cindex history
328 @sc{gnus} was written by Masanobu UMEDA.  When autumn crept up in '94,
329 Lars Magne Ingebrigtsen grew bored and decided to rewrite Gnus.
330
331 If you want to investigate the person responsible for this outrage, you
332 can point your (feh!) web browser to
333 @file{http://www.ifi.uio.no/~larsi/}.  This is also the primary
334 distribution point for the new and spiffy versions of Gnus, also know as
335 The Site That Destroys Newsrcs And Drives People Mad.
336
337 During the first extended alpha period of development, the new Gnus was
338 called ``(ding) Gnus''.  @dfn{(ding)}, is, of course, short for @dfn{ding
339 is not Gnus}, which is a total and utter lie, but who cares? (Besides,
340 the ``Gnus'' in this abbreviation should probably be pronounced ``news'' as
341 UMEDA intended, which makes it a more appropriate name, don't you
342 think?)
343
344 In any case, after spending all that energy with coming up with a new
345 and spiffy name, we decided that the name was @emph{too} spiffy, so we
346 renamed it back again to ``Gnus''.  But in mixed case.  ``Gnus'' vs.
347 ``@sc{gnus}''.  New vs. old.
348
349 Incidentally, the next Gnus generation will be called ``September Gnus'',
350 and won't be released until February.  Confused?  You will be.
351
352 @menu
353 * Why?::                What's the point of Gnus?
354 * Compatibility::       Just how compatible is Gnus with @sc{gnus}?
355 * Conformity::          Gnus tries to conform to all standards.
356 * Emacsen::             Gnus can be run on a few modern Emacsen.
357 * Contributors::        Oodles of people.  
358 * New Features::        Pointers to some of the new stuff in Gnus.
359 * Newest Features::     Features so new that they haven't been written yet.
360 @end menu
361
362
363 @node Why?
364 @section Why?
365
366 What's the point of Gnus?  
367
368 I want to provide a ``rad'', ``happening'', ``way cool'' and ``hep''
369 newsreader, that lets you do anything you can think of.  That was my
370 original motivation, but while working on Gnus, it has become clear to
371 me that this generation of newsreaders really belong in the stone age.
372 Newsreaders haven't developed much since the infancy of the net.  If the
373 volume continues to rise with the current rate of increase, all current
374 newsreaders will be pretty much useless.  How do you deal with
375 newsgroups that have hundreds (or thousands) of new articles each day?
376
377 Gnus offers no real solutions to these questions, but I would very much
378 like to see Gnus being used as a testing ground for new methods of
379 reading and fetching news.  Expanding on Umeda-san's wise decision to
380 separate the newsreader from the backends, Gnus now offers a simple
381 interface for anybody who wants to write new backends for fetching mail
382 and news from different sources.  I have added hooks for customizations
383 everywhere I can imagine useful.  By doing so, I'm inviting every one of
384 you to explore and invent new ways of reading news.
385
386 May Gnus never be complete. @kbd{C-u 100 M-x hail-emacs}. 
387
388
389 @node Compatibility
390 @section Compatibility
391
392 @cindex compatibility
393 Gnus was designed to be fully compatible with @sc{gnus}.  Almost all key
394 bindings have been kept.  More key bindings have been added, of course,
395 but only in one or two obscure cases have old bindings been changed.
396
397 Our motto is:
398 @quotation
399 @cartouche
400 @center In a cloud bones of steel.
401 @end cartouche
402 @end quotation
403
404 All commands have kept their names.  Some internal functions have changed
405 their names.
406
407 The @code{gnus-uu} package has changed drastically. @xref{Decoding
408 Articles}. 
409
410 One major compatibility question is the presence of several summary
411 buffers.  All variables that are relevant while reading a group are
412 buffer-local to the summary buffer they belong in.  Although most
413 important variables have their values copied into their global
414 counterparts whenever a command is executed in the summary buffer, this
415 change might lead to incorrect values being used unless you are careful.
416
417 All code that relies on knowledge of @sc{gnus} internals will probably
418 fail.  To take two examples: Sorting @code{gnus-newsrc-assoc} (or
419 changing it in any way, as a matter of fact) is strictly verboten.  Gnus
420 maintains a hash table that points to the entries in this assoc (which
421 speeds up many functions), and changing the assoc directly will lead to
422 peculiar results.
423
424 @cindex hilit19
425 @cindex highlighting
426 Old hilit19 code does not work at all.  In fact, you should probably
427 remove all hilit code from all Gnus hooks
428 (@code{gnus-group-prepare-hook}, @code{gnus-summary-prepare-hook} and
429 @code{gnus-summary-article-hook}).  (Well, at the very least the first
430 two.)  Gnus provides various integrated functions for highlighting.
431 These are faster and more accurate.  To make life easier for everybody,
432 Gnus will by default remove all hilit calls from all hilit hooks.
433 Uncleanliness!  Away!
434
435 Packages like @code{expire-kill} will no longer work.  As a matter of
436 fact, you should probably remove all old @sc{gnus} packages (and other
437 code) when you start using Gnus.  More likely than not, Gnus already
438 does what you have written code to make @sc{gnus} do.  (Snicker.)
439
440 Even though old methods of doing things are still supported, only the
441 new methods are documented in this manual.  If you detect a new method of
442 doing something while reading this manual, that does not mean you have
443 to stop doing it the old way.
444
445 Gnus understands all @sc{gnus} startup files.
446
447 @kindex M-x gnus-bug
448 Overall, a casual user who hasn't written much code that depends on
449 @sc{gnus} internals should suffer no problems.  If problems occur,
450 please let me know (@kbd{M-x gnus-bug}).
451
452
453 @node Conformity
454 @section Conformity
455
456 No rebels without a clue here, ma'am.  We conform to all standards known
457 to (wo)man.  Except for those standards and/or conventions we disagree
458 with, of course.
459
460 @table @strong
461
462 @item RFC 822
463 There are no known breaches of this standard.
464
465 @item RFC 1036
466 There are no known breaches of this standard, either.
467
468 @item Usenet Seal of Approval
469 Gnus hasn't been formally through the Seal process, but I have read
470 through the Seal text and I think Gnus would pass.
471
472 @item Son-of-RFC 1036
473 We do have some breaches to this one.
474
475 @table @emph
476
477 @item MIME
478 Gnus does no MIME handling, and this standard-to-be seems to think that
479 MIME is the bees' knees, so we have major breakage here.
480
481 @item X-Newsreader
482 This is considered to be a ``vanity header'', while I consider it to be
483 consumer information.  After seeing so many badly formatted articles
484 coming from @code{tin} and @code{Netscape} I know not to use either of
485 those for posting articles.  I would not have known that if it wasn't
486 for the @code{X-Newsreader} header.
487
488 @item References
489 Gnus breaks lines if this header is long.  I infer from RFC1036 that
490 being conservative in what you output is not creating 5000-character
491 lines, so it seems like a good idea to me.  However, this standard-to-be
492 says that whitespace in the @code{References} header is to be preserved,
493 so...  It doesn't matter one way or the other to Gnus, so if somebody
494 tells me what The Way is, I'll change it.  Or not.
495 @end table
496
497 @end table
498
499 If you ever see Gnus act non-compliantly to the texts mentioned above,
500 don't hesitate to drop a note to Gnus Towers and let us know.
501
502
503 @node Emacsen
504 @section Emacsen
505 @cindex Emacsen
506 @cindex XEmacs
507 @cindex Mule
508 @cindex Emacs
509
510 Gnus should work on :
511
512 @itemize @bullet 
513
514 @item
515 Emacs 19.30 and up.
516
517 @item
518 XEmacs 19.13 and up.
519
520 @item 
521 Mule versions based on Emacs 19.30 and up.
522
523 @end itemize
524
525 Gnus will absolutely not work on any Emacsen older than that.  Not
526 reliably, at least. 
527
528 There are some vague differences in what Gnus does, though:
529
530 @itemize @bullet
531
532 @item
533 The mouse-face on Gnus lines under Emacs and Mule is delimited to
534 certain parts of the lines while they cover the entire line under
535 XEmacs. 
536
537 @item 
538 The same with current-article marking---XEmacs puts an underline under
539 the entire summary line while Emacs and Mule are nicer and kinder.
540
541 @item
542 XEmacs features more graphics---a logo and a toolbar.
543
544 @item
545 Citation highlighting us better under Emacs and Mule than under XEmacs.
546
547 @item
548 Emacs 19.26-19.28 have tangible hidden headers, which can be a bit
549 confusing. 
550
551 @end itemize
552
553
554 @node Contributors
555 @section Contributors
556 @cindex contributors
557
558 The new Gnus version couldn't have been done without the help of all the
559 people on the (ding) mailing list.  Every day for months I have gotten
560 tens of nice bug reports from them, filling me with joy, every single
561 one of them.  Smooches.  The people on the list have been tried beyond
562 endurance, what with my ``oh, that's a neat idea <type type>, yup, I'll
563 release it right away <ship off> no wait, that doesn't work at all <type
564 type>, yup, I'll ship that one off right away <ship off> no, wait, that
565 absolutely does not work'' policy for releases.  Micro$oft---bah.
566 Amateurs.  I'm @emph{much} worse.  (Or is that ``worser''? ``much worser''?
567 ``worsest''?)
568
569 I would like to take this opportunity to thank the Academy for...  oops,
570 wrong show.
571
572 @itemize @bullet
573 @item
574 Of course, GNUS was written by Masanobu UMEDA.
575 @item 
576 Many excellent functions, especially dealing with scoring and
577 highlighting (as well as the @sc{soup} support) was written
578 by Per Abrahamsen.
579 @item
580 Design and graphics were done by Luis Fernandes.
581 @item
582 Innumerable bug fixes were written by Sudish Joseph.
583 @item 
584 @code{gnus-topic} was written by Ilja Weis.
585 @item 
586 Lots and lots of bugs were found and fixed by Steven L. Baur. 
587 @item
588 The refcard was written by Vladimir Alexiev.
589 @item
590 I stole some pieces from the XGnus distribution by Felix Lee and JWZ.
591 @item 
592 @code{nnfolder} has been much enhanced by Scott Byer.
593 @item
594 The orphan scoring was written by Peter Mutsaers.
595 @item 
596 GNU XEmacs support has been added by Fabrice Popineau. 
597 @item 
598 POP mail support was written by Ken Raeburn.
599 @item 
600 Various bits and pieces, especially dealing with .newsrc files, were
601 suggested and added by Hallvard B Furuseth.
602 @item 
603 Brian Edmonds has written @code{gnus-bbdb}.
604 @item 
605 Ricardo Nassif and Mark Borges did the proff-reading (sic).
606 @item
607 Kevin Davidson came up with the name @dfn{ding}, so blame him.
608 @item 
609 Peter Arius, Stainless Steel Rat, Ulrik Dickow, Jack Vinson, Daniel
610 Quinlan, Frank D. Cringle, Geoffrey T. Dairiki, and Andrew Eskilsson have
611 all contributed code and suggestions.
612 @end itemize
613
614
615 @node New Features
616 @section New Features
617 @cindex new features
618
619 @itemize @bullet
620
621 @item
622 The look of all buffers can be changed by setting format-like variables
623 (@pxref{Group Buffer Format} and @pxref{Summary Buffer Format}). 
624  
625 @item 
626 Local spool and several @sc{nntp} servers can be used at once
627 (@pxref{Foreign Groups}).  
628
629 @item 
630 You can combine groups into virtual groups (@pxref{nnvirtual}). 
631
632 @item 
633 You can read a number of different mail formats (@pxref{Reading Mail}).
634 All the mail backends implement a convenient mail expiry scheme
635 (@pxref{Expiring Old Mail Articles}). 
636
637 @item
638 Gnus can use various strategies for gathering threads that have lost
639 their roots (thereby gathering loose sub-threads into one thread) or it
640 can go back and retrieve enough headers to build a complete thread
641 (@pxref{Customizing Threading}).
642
643 @item 
644 Killed groups can be displayed in the group buffer, and you can read
645 them as well.
646
647 @item 
648 Gnus can do partial group updates---you do not have to retrieve the
649 entire active file just to check for new articles in a few groups
650 (@pxref{The Active File}).
651
652 @item 
653 Gnus implements a sliding scale of subscribedness to groups
654 (@pxref{Group Levels}).
655
656 @item 
657 You can score articles according to any number of criteria
658 (@pxref{Scoring}).  You can even get Gnus to find out how to score
659 articles for you (@pxref{Adaptive Scoring}).
660
661 @item 
662 Gnus maintains a dribble buffer that is auto-saved the normal Emacs
663 manner, so it should be difficult to lose much data on what you have
664 read if your machine should go down (@pxref{Auto Save}). 
665
666 @item 
667 Gnus now has its own startup file to avoid cluttering up the
668 @file{.emacs} file.
669
670 @item 
671 You can set the process mark on both groups and articles and perform
672 operations on all the marked items (@pxref{Process/Prefix}).
673
674 @item 
675 You can grep through a subset of groups and create a group from the
676 results (@pxref{nnkiboze}). 
677
678 @item 
679 You can list subsets of groups according to, well, anything
680 (@pxref{Listing Groups}). 
681
682 @item 
683 You can browse foreign servers and subscribe to groups from those
684 servers (@pxref{Browse Foreign Server}). 
685
686 @item 
687 Gnus can fetch articles asynchronously on a second connection to the
688 server (@pxref{Asynchronous Fetching}).
689
690 @item 
691 You can cache articles locally (@pxref{Article Caching}). 
692
693 @item 
694 The uudecode functions have been expanded and generalized
695 (@pxref{Decoding Articles}). 
696
697 @item
698 You can still post uuencoded articles, which was a little-known feature
699 of @sc{gnus}' past.
700
701 @item
702 Fetching parents (and other articles) now actually works without
703 glitches (@pxref{Finding the Parent}). 
704
705 @item
706 Gnus can fetch FAQs and group descriptions (@pxref{Group Information}).
707
708 @item
709 Digests (and other files) can be used as the basis for groups
710 (@pxref{nndoc}).
711
712 @item 
713 Articles can be highlighted and customized (@pxref{Customizing
714 Articles}). 
715
716 @item 
717 URLs and other external references can be buttonized (@pxref{Article
718 Buttons}). 
719
720 @item
721 All Gnus buffers can be customized in a difficult fashion
722 (@pxref{Windows Configuration}). 
723
724 @item
725 You can click on buttons instead of using the keyboard
726 (@pxref{Buttons}). 
727
728 @item 
729 Gnus can use NoCeM files to weed out spam (@pxref{NoCeM}). 
730
731 @end itemize
732
733 This is, of course, just a @emph{short} overview of the @emph{most}
734 important new features.  No, really.  There are tons more.  Yes, we have
735 feeping creaturism in full effect, but nothing too gratuitous, I would
736 hope. 
737
738
739 @node Newest Features
740 @section Newest Features
741 @cindex todo
742
743 Also known as the @dfn{todo list}.  Sure to be implemented before the
744 next millennium. 
745
746 Be afraid.  Be very afraid.
747
748 @itemize @bullet
749 @item
750 Native @sc{mime} support is something that should be done.  
751 @item
752 A better and simpler method for specifying mail composing methods. 
753 @item
754 Allow posting through mail-to-news gateways.
755 @item
756 Really do unbinhexing.
757 @end itemize
758
759 And much, much, much more.  There is more to come than has already been
760 implemented.  (But that's always true, isn't it?)
761
762 @code{<URL:http://www.ifi.uio.no/~larsi/sgnus/todo>} is where the actual
763 up-to-the-second todo list is located, so if you're really curious, you
764 could point your Web browser over that-a-way.
765
766
767 @node Terminology
768 @chapter Terminology
769
770 @cindex terminology
771 @table @dfn
772
773 @item news
774 @cindex news
775 This is what you are supposed to use this thing for---reading news.
776 News is generally fetched from a nearby @sc{nntp} server, and is
777 generally publicly available to everybody.  If you post news, the entire
778 world is likely to read just what you have written, and they'll all
779 snigger mischievously.  Behind your back.
780
781 @item mail
782 @cindex mail
783 Everything that's delivered to you personally is mail.  Some news/mail
784 readers (like Gnus) blur the distinction between mail and news, but
785 there is a difference.  Mail is private.  News is public.  Mailing is
786 not posting, and replying is not following up.
787
788 @item reply
789 Send a mail to the person who has written what you are reading.
790
791 @item follow up
792 Post an article to the current newsgroup responding to the article you
793 are reading.
794
795 @item backend
796 Gnus gets fed articles from a number of backends, both news and mail
797 backends.  Gnus does not handle the underlying media, so to speak---this
798 is all done by the backends.
799
800 @item native
801 Gnus will always use one method (and backend) as the @dfn{native}, or
802 default, way of getting news.
803
804 @item foreign
805 You can also have any number of foreign groups at the same time.  These
806 are groups that use different backends for getting news.
807
808 @item head
809 @cindex head
810 The top part of an article, where administration information (etc.) is
811 put. 
812
813 @item body
814 @cindex body
815 The rest of an article.  Everything that is not in the head is in the
816 body. 
817
818 @item header
819 @cindex header
820 A line from the head of an article. 
821
822 @item headers
823 @cindex headers
824 A collection of such lines, or a collection of heads.  Or even a
825 collection of @sc{nov} lines.
826
827 @item @sc{nov}
828 @cindex nov
829 When Gnus enters a group, it asks the backend for the headers for all
830 the unread articles in the group.  Most servers support the News OverView
831 format, which is much smaller and much faster to read than the normal
832 HEAD format. 
833
834 @item level
835 @cindex levels
836 Each group is subscribed at some @dfn{level} or other (1-9).  The ones
837 that have a lower level are ``more'' subscribed than the groups with a
838 higher level.  In fact, groups on levels 1-5 are considered
839 @dfn{subscribed}; 6-7 are @dfn{unsubscribed}; 8 are @dfn{zombies}; and 9
840 are @dfn{killed}.  Commands for listing groups and scanning for new
841 articles will all use the numeric prefix as @dfn{working level}.
842
843 @item killed groups
844 @cindex killed groups
845 No information on killed groups is stored or updated, which makes killed
846 groups much easier to handle than subscribed groups.
847
848 @item zombie groups
849 @cindex zombie groups
850 Just like killed groups, only slightly less dead.
851
852 @item active file
853 @cindex active file
854 The news server has to keep track of what articles it carries, and what
855 groups exist.  All this information in stored in the active file, which
856 is rather large, as you might surmise.
857
858 @item bogus groups
859 @cindex bogus groups
860 A group that exists in the @file{.newsrc} file, but isn't known to the
861 server (i. e.,  it isn't in the active file), is a @emph{bogus group}.
862 This means that the group probably doesn't exist (any more).
863 @end table
864
865
866 @node Starting Up
867 @chapter Starting Gnus
868 @cindex starting up
869
870 @kindex M-x gnus
871 @findex gnus
872 If your system administrator has set things up properly, starting Gnus
873 and reading news is extremely easy---you just type @kbd{M-x gnus}.
874
875 @findex gnus-other-frame
876 @kindex M-x gnus-other-frame
877 If you want to start Gnus in a different frame, you can use the command
878 @kbd{M-x gnus-other-frame} instead.
879
880 If things do not go smoothly at startup, you have to twiddle some
881 variables. 
882
883 @menu
884 * Finding the News::    Choosing a method for getting news.
885 * The First Time::      What does Gnus do the first time you start it?
886 * The Server is Down::  How can I read my mail then?
887 * Slave Gnusii::        You can have more than one Gnus active at a time.
888 * Fetching a Group::    Starting Gnus just to read a group.
889 * New Groups::          What is Gnus supposed to do with new groups?
890 * Startup Files::       Those pesky startup files---@file{.newsrc}.
891 * Auto Save::           Recovering from a crash.
892 * The Active File::     Reading the active file over a slow line Takes Time.
893 * Startup Variables::   Other variables you might change.
894 @end menu
895
896 @node Finding the News
897 @section Finding the News
898
899 @vindex gnus-select-method
900 @c @head
901 The @code{gnus-select-method} variable controls how Gnus finds news. 
902 This variable should be a list where the first element says @dfn{how}
903 and the second element says @dfn{where}.  This method is your native
904 method.  All groups that are not fetched with this method are foreign
905 groups.
906
907 For instance, if you want to get your daily dosage of news from the
908 @samp{news.somewhere.edu} @sc{nntp} server, you'd say:
909
910 @lisp
911 (setq gnus-select-method '(nntp "news.somewhere.edu"))
912 @end lisp
913
914 If you want to read directly from the local spool, say:
915
916 @lisp
917 (setq gnus-select-method '(nnspool ""))
918 @end lisp
919
920 If you can use a local spool, you probably should, as it will almost
921 certainly be much faster.
922
923 @vindex gnus-nntpserver-file
924 @cindex NNTPSERVER
925 @cindex @sc{nntp} server
926 If this variable is not set, Gnus will take a look at the
927 @code{NNTPSERVER} environment variable.  If that variable isn't set,
928 Gnus will see whether @code{gnus-nntpserver-file} (default
929 @file{/etc/nntpserver}) has any opinions in the matter.  It that fails
930 as well, Gnus will will try to use the machine that is running Emacs as
931 an @sc{nntp} server.  That's a long-shot, though.
932
933 @vindex gnus-nntp-server
934 If @code{gnus-nntp-server} is set, this variable will override
935 @code{gnus-select-method}.  You should therefore set
936 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
937
938 @vindex gnus-secondary-servers
939 You can also make Gnus prompt you interactively for the name of an
940 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
941 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
942 in the @code{gnus-secondary-servers} list (if any).  You can also just
943 type in the name of any server you feel like visiting.
944
945 However, if you use one @sc{nntp} server regularly, and are just
946 interested in a couple of groups from a different server, you would be
947 better served by using the @code{gnus-group-browse-foreign-server}
948 command from the group buffer.  It will let you have a look at what
949 groups are available, and you can subscribe to any of the groups you
950 want to.  This also makes @file{.newsrc} maintenance much tidier.
951 @xref{Foreign Groups}.
952
953 @vindex gnus-secondary-select-methods
954 @c @head
955 A slightly different approach to foreign groups is to set the
956 @code{gnus-secondary-select-methods} variable.  The select methods
957 listed in this variable are in many ways just as native as the
958 @code{gnus-select-method} server.  They will also be queried for active
959 files during startup (if that's required), and new newsgroups that
960 appear on these servers will be subscribed (or not) just as native
961 groups are.
962
963 For instance, if you use the @code{nnmbox} backend to read you mail, you
964 would typically set this variable to
965
966 @lisp
967 (setq gnus-secondary-select-methods '((nnmbox "")))
968 @end lisp
969
970 @node The First Time
971 @section The First Time
972 @cindex first time usage
973
974 If no startup files exist, Gnus will try to determine what groups should
975 be subscribed by default.
976
977 @vindex gnus-default-subscribed-newsgroups
978 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
979 will subscribe you to just those groups in that list, leaving the rest
980 killed.  Your system administrator should have set this variable to
981 something useful.
982
983 Since she hasn't, Gnus will just subscribe you to a few randomly picked
984 groups (i.e., @samp{*.newusers}).  (@dfn{Random} is here defined as
985 ``whatever Lars thinks you should read''.)
986
987 You'll also be subscribed to the Gnus documentation group, which should
988 help you with most common problems.  
989
990 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
991 use the normal functions for handling new groups, and not do anything
992 special.
993
994 @node The Server is Down
995 @section The Server is Down
996 @cindex server errors
997
998 If the default server is down, Gnus will understandably have some
999 problems starting.  However, if you have some mail groups in addition to
1000 the news groups, you may want to start Gnus anyway.
1001
1002 Gnus, being the trusting sort of program, will ask whether to proceed
1003 without a native select method if that server can't be contacted.  This
1004 will happen whether the server doesn't actually exist (i.e., you have
1005 given the wrong address) or the server has just momentarily taken ill
1006 for some reason or other.  
1007
1008 If Gnus says ``nntp server on <your server> can't be opened.  Continue?'',
1009 you do not want to continue unless you have some foreign groups that you
1010 want to read.  Even if you don't, Gnus will let you continue, but you'll
1011 find it difficult to actually do anything in the group buffer.  But,
1012 hey, that's your problem.  Blllrph!
1013
1014 @findex gnus-no-server
1015 @c @head
1016 If you know that the server is definitely down, or you just want to read
1017 your mail without bothering with the server at all, you can use the
1018 @code{gnus-no-server} command to start Gnus.  That might come in handy
1019 if you're in a hurry as well.
1020
1021
1022 @node Slave Gnusii
1023 @section Slave Gnusiï
1024 @cindex slave
1025
1026 You might want to run more than one Emacs with more than one Gnus at the
1027 same time.  If you are using different @file{.newsrc} files (eg., if you
1028 are using the two different Gnusiï to read from two different servers),
1029 that is no problem whatsoever.  You just do it.
1030
1031 The problem appears when you want to run two Gnusiï that use the same
1032 @code{.newsrc} file.
1033
1034 To work around that problem some, we here at the Think-Tank at the Gnus
1035 Towers have come up with a new concept: @dfn{Masters} and
1036 @dfn{servants}.  (We have applied for a patent on this concept, and have
1037 taken out a copyright on those words.  If you wish to use those words in
1038 conjunction with each other, you have to send $1 per usage instance to
1039 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
1040 Applications}) will be much more expensive, of course.)
1041
1042 Anyways, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1043 however you do it).  Each subsequent slave Gnusiï should be started with
1044 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
1045 files, but some slave files that contains information only on what
1046 groups have been read in the slave session.  When a master Gnus starts,
1047 it will read (and delete) these slave files, incorporating all
1048 information from all of them.  (The slave files will be read in the
1049 sequence they were created, so the latest changes will have precedence.)
1050
1051 Information from the slave files has, of course, precedence over the
1052 information in the normal (i. e., master) @code{.newsrc} file.
1053
1054
1055 @node Fetching a Group
1056 @section Fetching a Group
1057
1058 @findex gnus-fetch-group
1059 It it sometime convenient to be able to just say ``I want to read this
1060 group and I don't care whether Gnus has been started or not''.  This is
1061 perhaps more useful for people who write code than for users, but the
1062 command @code{gnus-fetch-group} provides this functionality in any
1063 case.  It takes the group name as a parameter.
1064
1065
1066 @node New Groups
1067 @section New Groups
1068 @cindex new groups
1069
1070 @vindex gnus-subscribe-newsgroup-method
1071 What Gnus does when it encounters a new group is determined by the
1072 @code{gnus-subscribe-newsgroup-method} variable.
1073
1074 This variable should contain a function.  Some handy pre-fab values
1075 are:
1076
1077 @table @code
1078
1079 @item gnus-subscribe-randomly
1080 @vindex gnus-subscribe-randomly
1081 Subscribe all new groups randomly.
1082
1083 @item gnus-subscribe-alphabetically
1084 @vindex gnus-subscribe-alphabetically
1085 Subscribe all new groups alphabetically.
1086
1087 @item gnus-subscribe-hierarchically
1088 @vindex gnus-subscribe-hierarchically
1089 Subscribe all new groups hierarchically.
1090
1091 @item gnus-subscribe-interactively
1092 @vindex gnus-subscribe-interactively
1093 Subscribe new groups interactively.  This means that Gnus will ask
1094 you about @strong{all} new groups.
1095
1096 @item gnus-subscribe-killed
1097 @vindex gnus-subscribe-killed
1098 Kill all new groups.
1099
1100 @item gnus-subscribe-zombies
1101 @vindex gnus-subscribe-zombies
1102 Make all new groups zombies.  You can browse the zombies later (with
1103 @kbd{A z}) and either kill them all off properly, or subscribe to them.
1104 This is the default.
1105 @end table
1106
1107 @vindex gnus-subscribe-hierarchical-interactive
1108 A closely related variable is
1109 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
1110 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
1111 hierarchical fashion whether to subscribe to new groups or not.  Gnus
1112 will ask you for each sub-hierarchy whether you want to descend the
1113 hierarchy or not.
1114
1115 One common way to control which new newsgroups should be subscribed or
1116 ignored is to put an @dfn{options} line at the start of the
1117 @file{.newsrc} file.  Here's an example:
1118
1119 @example
1120 options -n !alt.all !rec.all sci.all
1121 @end example
1122
1123 @vindex gnus-subscribe-options-newsgroup-method
1124 This line obviously belongs to a serious-minded intellectual scientific
1125 person (or she may just be plain old boring), because it says that all
1126 groups that have names beginning with @samp{alt} and @samp{rec} should
1127 be ignored, and all groups with names beginning with @samp{sci} should
1128 be subscribed.  Gnus will not use the normal subscription method for
1129 subscribing these groups.
1130 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
1131 variable defaults to @code{gnus-subscribe-alphabetically}.
1132
1133 @vindex gnus-options-not-subscribe
1134 @vindex gnus-options-subscribe
1135 If you don't want to mess with your @file{.newsrc} file, you can just
1136 set the two variables @code{gnus-options-subscribe} and
1137 @code{gnus-options-not-subscribe}.  These two variables do exactly the
1138 same as the @file{.newsrc} options -n trick.  Both are regexps, and if
1139 the the new group matches the first, it will be unconditionally
1140 subscribed, and if it matches the latter, it will be ignored.
1141
1142 @vindex gnus-auto-subscribed-groups
1143 Yet another variable that meddles here is
1144 @code{gnus-auto-subscribed-groups}.  It works exactly like
1145 @code{gnus-options-subscribe}, and is therefore really superfluous, but I
1146 thought it would be nice to have two of these.  This variable is more
1147 meant for setting some ground rules, while the other variable is used
1148 more for user fiddling.  By default this variable makes all new groups
1149 that come from mail backends (@code{nnml}, @code{nnbabyl},
1150 @code{nnfolder}, @code{nnmbox}, and @code{nnmh}) subscribed.  If you
1151 don't like that, just set this variable to @code{nil}.
1152
1153 @vindex gnus-check-new-newsgroups
1154 If you are satisfied that you really never want to see any new groups,
1155 you could set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
1156 also save you some time at startup.  Even if this variable is
1157 @code{nil}, you can always subscribe to the new groups just by pressing
1158 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
1159 is @code{t} by default.
1160
1161 Gnus normally determines whether a group is new or not by comparing the
1162 list of groups from the active file(s) with the lists of subscribed and
1163 dead groups.  This isn't a particularly fast method.  If
1164 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
1165 server for new groups since the last time.  This is both faster &
1166 cheaper.  This also means that you can get rid of the list of killed
1167 groups altogether, so you may set @code{gnus-save-killed-list} to
1168 @code{nil}, which will save time both at startup, at exit, and all over.
1169 Saves disk space, too.  Why isn't this the default, then?
1170 Unfortunately, not all servers support this function. 
1171
1172 I bet I know what you're thinking now:  How do I find out whether my
1173 server supports @code{ask-server}?  No?  Good, because I don't have a
1174 fail-safe answer.  I would suggest just setting this variable to
1175 @code{ask-server} and see whether any new groups appear after a few
1176 days.  If they do, then it works.  If they don't, then it doesn't work.
1177 I could write a function to make Gnus guess whether the server supports
1178 @code{ask-server}, but it would just be a guess.  So I won't.  You could
1179 @code{telnet} to the server and say @samp{HELP} and see whether it lists
1180 @samp{NEWGROUPS} among the commands it understands.  If it does, then it
1181 might work.  (But there are servers that lists @samp{NEWGROUPS} without
1182 supporting the function properly.)
1183
1184 This variable can also be a list of select methods.  If so, Gnus will
1185 issue an @code{ask-server} command to each of the select methods, and
1186 subscribe them (or not) using the normal methods.  This might be handy
1187 if you are monitoring a few servers for new groups.  A side effect is
1188 that startup will take much longer, so you can meditate while waiting.
1189 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent happiness.
1190
1191 @node Startup Files
1192 @section Startup Files
1193 @cindex startup files
1194 @cindex .newsrc
1195
1196 Now, you all know about the @file{.newsrc} file.  All subscription
1197 information is traditionally stored in this file.
1198
1199 Things got a bit more complicated with @sc{gnus}.  In addition to
1200 keeping the @file{.newsrc} file updated, it also used a file called
1201 @file{.newsrc.el} for storing all the information that didn't fit into
1202 the @file{.newsrc} file.  (Actually, it duplicated everything in the
1203 @file{.newsrc} file.)  @sc{gnus} would read whichever one of these files
1204 that were the most recently saved, which enabled people to swap between
1205 @sc{gnus} and other newsreaders.
1206
1207 That was kinda silly, so Gnus went one better: In addition to the
1208 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
1209 @file{.newsrc.eld}.  It will read whichever of these files that are most
1210 recent, but it will never write a @file{.newsrc.el} file.
1211
1212 @vindex gnus-save-newsrc-file
1213 You can also turn off writing the @file{.newsrc} file by setting
1214 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
1215 the file and save some space, as well as making exit from Gnus faster.
1216 However, this will make it impossible to use other newsreaders than
1217 Gnus.  But hey, who would want to, right?
1218
1219 @vindex gnus-save-killed-list
1220 If @code{gnus-save-killed-list} is @code{nil}, Gnus will not save the
1221 list of killed groups to the startup file.  This will save both time
1222 (when starting and quitting) and space (on disk).  It will also means
1223 that Gnus has no record of what groups are new or old, so the automatic
1224 new groups subscription methods become meaningless.  You should always
1225 set @code{gnus-check-new-newsgroups} to @code{nil} or @code{ask-server}
1226 if you set this variable to @code{nil} (@pxref{New Groups}).
1227
1228 @vindex gnus-startup-file
1229 The @code{gnus-startup-file} variable says where the startup files are.
1230 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
1231 file being whatever that one is with a @samp{.eld} appended.
1232
1233 @vindex gnus-save-newsrc-hook
1234 @vindex gnus-save-quick-newsrc-hook
1235 @vindex gnus-save-standard-newsrc-hook
1236 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
1237 files, while @code{gnus-save-quick-newsrc-hook} is called just before
1238 saving the @file{.newsrc.eld} file, and
1239 @code{gnus-save-standard-newsrc-hook} is called just before saving the
1240 @file{.newsrc} file.  The latter two are commonly used to turn version
1241 control on or off.  Version control is off by default when saving.
1242
1243 @node Auto Save
1244 @section Auto Save
1245 @cindex dribble file
1246 @cindex auto-save
1247
1248 Whenever you do something that changes the Gnus data (reading articles,
1249 catching up, killing/subscribing groups), the change is added to a
1250 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
1251 Emacs way.  If your Emacs should crash before you have saved the
1252 @file{.newsrc} files, all changes you have made can be recovered from
1253 this file.
1254
1255 If Gnus detects this file at startup, it will ask the user whether to
1256 read it.  The auto save file is deleted whenever the real startup file is
1257 saved.
1258
1259 @vindex gnus-use-dribble-file
1260 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1261 maintain a dribble buffer.  The default is @code{t}.
1262
1263 @vindex gnus-dribble-directory
1264 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
1265 this variable is @code{nil}, which it is by default, Gnus will dribble
1266 into the same directory as the @file{.newsrc} file is located.  (This is
1267 normally the user's home directory.)
1268
1269 @node The Active File
1270 @section The Active File
1271 @cindex active file
1272 @cindex ignored groups
1273
1274 When Gnus starts, or indeed whenever it tries to determine whether new
1275 articles have arrived, it reads the active file.  This is a very large
1276 file that lists all the active groups and articles on the @sc{nntp}
1277 server.
1278
1279 @vindex gnus-ignored-newsgroups
1280 Before examining the active file, Gnus deletes all lines that match the
1281 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
1282 any groups with bogus names, but you can use this variable to make Gnus
1283 ignore hierarchies you aren't ever interested in.  
1284 @c This variable is
1285 @c @code{nil} by default, and will slow down active file handling somewhat
1286 @c if you set it to anything else.
1287
1288 @vindex gnus-read-active-file
1289 @c @head
1290 The active file can be rather Huge, so if you have a slow network, you
1291 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1292 reading the active file.  This variable is @code{t} by default.
1293
1294 Gnus will try to make do by just getting information on the groups
1295 that you actually subscribe to.
1296
1297 Note that if you subscribe to lots and lots of groups, setting this
1298 variable to @code{nil} will probably make Gnus slower, not faster.  At
1299 present, having this variable @code{nil} will slow Gnus down
1300 considerably, unless you read news over a 2400 baud modem.  
1301
1302 This variable can also have the value @code{some}.  Gnus will then
1303 attempt to read active info only on the subscribed groups.  On some
1304 servers this is quite fast (on sparkling, brand new INN servers that
1305 support the @samp{LIST ACTIVE group} command), on others this is not
1306 fast at all.  In any case, @code{some} should be faster than @code{nil},
1307 and is certainly faster than @code{t} over slow lines.
1308
1309 If this variable is @code{nil}, Gnus will as for group info in total
1310 lock-step, which isn't very fast.  If it is @code{some} and you use an
1311 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
1312 read all the replies in one swoop.  This will normally result in better
1313 performance, but if the server does not support the aforementioned
1314 @samp{LIST ACTIVE group} command, this isn't very nice to the server.
1315
1316 In any case, if you use @code{some} or @code{nil}, you should kill all
1317 groups that you aren't interested in.
1318
1319 @node Startup Variables
1320 @section Startup Variables
1321
1322 @table @code
1323
1324 @item gnus-load-hook
1325 @vindex gnus-load-hook
1326 A hook that is run while Gnus is being loaded.  Note that this hook will
1327 normally be run just once in each Emacs session, no matter how many
1328 times you start Gnus.
1329
1330 @item gnus-startup-hook
1331 @vindex gnus-startup-hook
1332 A hook that is run after starting up Gnus successfully.
1333
1334 @item gnus-check-bogus-newsgroups
1335 @vindex gnus-check-bogus-newsgroups
1336 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1337 startup.  A @dfn{bogus group} is a group that you have in your
1338 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
1339 bogus groups isn't very quick, so to save time and resources, it's best
1340 to leave this option off, and instead do the checking for bogus groups
1341 once in a while from the group buffer (@pxref{Group Maintenance}).
1342
1343 @item gnus-inhibit-startup-message
1344 @vindex gnus-inhibit-startup-message
1345 If non-@code{nil}, the startup message won't be displayed.  That way,
1346 your boss might not notice that you are reading news instead of doing
1347 your job.
1348
1349 @item gnus-no-groups-message
1350 @vindex gnus-no-groups-message
1351 Message displayed by Gnus when no groups are available.
1352 @end table
1353
1354 @node The Group Buffer
1355 @chapter The Group Buffer
1356 @cindex group buffer
1357
1358 The @dfn{group buffer} lists all (or parts) of the available groups.  It
1359 is the first buffer shown when Gnus starts, and will never be killed as
1360 long as Gnus is active.
1361
1362 @menu
1363 * Group Buffer Format::    Information listed and how you can change it.
1364 * Group Maneuvering::      Commands for moving in the group buffer.
1365 * Selecting a Group::      Actually reading news.
1366 * Subscription Commands::  Unsubscribing, killing, subscribing.
1367 * Group Levels::           Levels? What are those, then?
1368 * Group Score::            A mechanism for finding out what groups you like.
1369 * Marking Groups::         You can mark groups for later processing.
1370 * Foreign Groups::         How to create foreign groups.
1371 * Group Parameters::       Each group may have different parameters set.
1372 * Listing Groups::         Gnus can list various subsets of the groups.
1373 * Sorting Groups::         Re-arrange the group order.
1374 * Group Maintenance::      Maintaining a tidy @file{.newsrc} file.
1375 * Browse Foreign Server::  You can browse a server.  See what if has to offer.
1376 * Exiting Gnus::           Stop reading news and get some work done.
1377 * Group Topics::           A folding group mode divided into topics.
1378 * Misc Group Stuff::       Other stuff that you can to do.
1379 @end menu
1380
1381 @node Group Buffer Format
1382 @section Group Buffer Format
1383 @cindex group buffer format
1384
1385 The default format of the group buffer is nice and dull, but you can
1386 make it as exciting and ugly as you feel like.
1387
1388 Here's a couple of example group lines:
1389
1390 @example
1391      25: news.announce.newusers
1392  *    0: alt.fan.andrea-dworkin
1393 @end example
1394
1395 Quite simple, huh?
1396
1397 You can see that there are 25 unread articles in
1398 @samp{news.announce.newusers}.  There are no unread articles, but some
1399 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1400 asterisk at the beginning of the line?)
1401
1402 @vindex gnus-group-line-format
1403 You can fuck that up to your heart's delight by fiddling with the
1404 @code{gnus-group-line-format} variable.  This variable works along the
1405 lines of a @code{format} specification, which is pretty much the same as
1406 a @code{printf} specifications, for those of you who use (feh!) C.
1407 @xref{Formatting Variables}. 
1408
1409 The default value that produced those lines above is 
1410 @samp{"%M%S%5y: %(%g%)\n"}.
1411
1412 There should always be a colon on the line; the cursor always moves to
1413 the colon after performing an operation.  Nothing else is required---not
1414 even the group name.  All displayed text is just window dressing, and is
1415 never examined by Gnus.  Gnus stores all real information it needs using
1416 text properties.
1417
1418 (Note that if you make a really strange, wonderful, spreadsheet-like
1419 layout, everybody will believe you are hard at work with the accounting
1420 instead of wasting time reading news.)
1421
1422 Here's a list of all available format characters:
1423
1424 @table @samp
1425
1426 @item M    
1427 Only marked articles.
1428
1429 @item S
1430 Whether the group is subscribed.
1431
1432 @item L    
1433 Level of subscribedness.
1434
1435 @item N
1436 Number of unread articles.
1437
1438 @item I
1439 Number of dormant articles.
1440
1441 @item T
1442 Number of ticked articles.
1443
1444 @item R
1445 Number of read articles.
1446
1447 @item t
1448 Total number of articles.
1449
1450 @item y
1451 Number of unread, unticked, non-dormant articles.
1452
1453 @item i
1454 Number of ticked and dormant articles.
1455
1456 @item g
1457 Full group name.
1458
1459 @item G
1460 Group name.
1461
1462 @item D
1463 Newsgroup description.
1464
1465 @item o
1466 @samp{m} if moderated.
1467
1468 @item O
1469 @samp{(m)} if moderated.
1470
1471 @item s
1472 Select method.
1473
1474 @item n
1475 Select from where.
1476
1477 @item z
1478 A string that looks like @samp{<%s:%n>} if a foreign select method is
1479 used.
1480
1481 @item P
1482 Indentation based on the level of the topic (@pxref{Group Topics}). 
1483
1484 @item c
1485 @vindex gnus-group-uncollapsed-levels
1486 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
1487 variable says how many levels to leave at the end of the group name.
1488 The default is @samp{1}.
1489
1490 @item u
1491 User defined specifier.  The next character in the format string should
1492 be a letter.  @sc{gnus} will call the function
1493 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1494 following @samp{%u}.  The function will be passed the current headers as
1495 argument.  The function should return a string, which will be inserted
1496 into the buffer just like information from any other specifier.
1497 @end table
1498
1499 @cindex *
1500 All the ``number-of'' specs will be filled with an asterisk (@samp{*}) if
1501 no info is available---for instance, if it is a non-activated foreign
1502 group, or a bogus (or semi-bogus) native group.
1503
1504 @vindex gnus-group-mode-line-format
1505 The mode line can be changed by setting
1506 (@code{gnus-group-mode-line-format}).  It doesn't understand that many
1507 format specifiers:
1508
1509 @table @samp
1510 @item S
1511 The native news server.
1512 @item M
1513 The native select method.
1514 @end table
1515
1516 @node Group Maneuvering
1517 @section Group Maneuvering
1518 @cindex group movement
1519
1520 All movement commands understand the numeric prefix and will behave as
1521 expected, hopefully. 
1522
1523 @table @kbd
1524
1525 @item n
1526 @kindex n (Group)
1527 @findex gnus-group-next-unread-group
1528 Go to the next group that has unread articles
1529 (@code{gnus-group-next-unread-group}).
1530
1531 @item p
1532
1533 @itemx DEL
1534 @kindex DEL (Group)
1535 @kindex p (Group)
1536 @findex gnus-group-prev-unread-group
1537 Go to the previous group group that has unread articles
1538 (@code{gnus-group-prev-unread-group}).
1539
1540 @item N
1541 @kindex N (Group)
1542 @findex gnus-group-next-group
1543 Go to the next group (@code{gnus-group-next-group}).
1544
1545 @item P
1546 @kindex P (Group)
1547 @findex gnus-group-prev-group
1548 Go to the previous group (@code{gnus-group-prev-group}).
1549
1550 @item M-p
1551 @kindex M-p (Group)
1552 @findex gnus-group-next-unread-group-same-level
1553 Go to the next unread group on the same level (or lower)
1554 (@code{gnus-group-next-unread-group-same-level}). 
1555
1556 @item M-n
1557 @kindex M-n (Group)
1558 @findex gnus-group-prev-unread-group-same-level
1559 Go to the previous unread group on the same level (or lower)
1560 (@code{gnus-group-prev-unread-group-same-level}). 
1561 @end table
1562
1563 Three commands for jumping to groups:
1564
1565 @table @kbd
1566
1567 @item j
1568 @kindex j (Group)
1569 @findex gnus-group-jump-to-group
1570 Jump to a group (and make it visible if it isn't already)
1571 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
1572 like living groups.
1573
1574 @item ,
1575 @kindex , (Group)
1576 @findex gnus-group-best-unread-group
1577 Jump to the unread group with the lowest level
1578 (@code{gnus-group-best-unread-group}). 
1579
1580 @item .
1581 @kindex . (Group)
1582 @findex gnus-group-first-unread-group
1583 Jump to the first group with unread articles
1584 (@code{gnus-group-first-unread-group}).  
1585 @end table
1586
1587 @vindex gnus-group-goto-unread
1588 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
1589 commands will move to the next group, not the next unread group.  Even
1590 the commands that say they move to the next unread group.  The default
1591 is @code{t}.
1592
1593
1594 @node Selecting a Group
1595 @section Selecting a Group
1596 @cindex group selection
1597
1598 @table @kbd
1599
1600 @item SPACE
1601 @kindex SPACE (Group)
1602 @findex gnus-group-read-group
1603 Select the current group, switch to the summary buffer and display the
1604 first unread article (@code{gnus-group-read-group}).  If there are no
1605 unread articles in the group, or if you give a non-numerical prefix to
1606 this command, Gnus will offer to fetch all the old articles in this
1607 group from the server.  If you give a numerical prefix @var{N}, Gnus
1608 will fetch @var{N} number of articles.  If @var{N} is positive, fetch
1609 the @var{N} newest articles, if @var{N} is negative, fetch the
1610 @var{abs(N)} oldest articles.
1611
1612 @item RET
1613 @kindex RET (Group)
1614 @findex gnus-group-select-group
1615 Select the current group and switch to the summary buffer
1616 (@code{gnus-group-select-group}).  Takes the same arguments as
1617 @code{gnus-group-read-group}---the only difference is that this command
1618 does not display the first unread article automatically upon group
1619 entry. 
1620
1621 @item M-RET
1622 @kindex M-RET (Group)
1623 @findex gnus-group-quick-select-group
1624 This does the same as the command above, but tries to do it with the
1625 minimum amount off fuzz (@code{gnus-group-quick-select-group}).  No
1626 scoring/killing will be performed, there will be no highlights and no
1627 expunging.  This might be useful if you're in a real hurry and have to
1628 enter some humongous groups.
1629
1630 @item M-SPACE
1631 @kindex M-RET (Group)
1632 @findex gnus-group-visible-select-group
1633 This is yet one more command that does the same as the one above, but
1634 this one does it without expunging and hiding dormants
1635 (@code{gnus-group-visible-select-group}).  
1636
1637 @item c
1638 @kindex c (Group)
1639 @findex gnus-group-catchup-current
1640 Mark all unticked articles in this group as read
1641 (@code{gnus-group-catchup-current}). 
1642
1643 @item C
1644 @kindex C (Group)
1645 @findex gnus-group-catchup-current-all
1646 Mark all articles in this group, even the ticked ones, as read
1647 (@code{gnus-group-catchup-current-all}). 
1648 @end table
1649
1650 @vindex gnus-large-newsgroup
1651 The @code{gnus-large-newsgroup} variable says what Gnus should consider
1652 to be a big group.  This is 200 by default.  If the group has more
1653 unread articles than this, Gnus will query the user before entering the
1654 group.  The user can then specify how many articles should be fetched
1655 from the server.  If the user specifies a negative number (@samp{-n}),
1656 the @samp{n} oldest articles will be fetched.  If it is positive, the
1657 @samp{n} articles that have arrived most recently will be fetched.
1658
1659 @vindex gnus-select-group-hook
1660 @vindex gnus-auto-select-first
1661 @code{gnus-auto-select-first} control whether any articles are selected
1662 automatically when entering a group.  
1663
1664 @table @code
1665
1666 @item nil
1667 Don't select any articles when entering the group.  Just display the
1668 full summary buffer.
1669
1670 @item t
1671 Select the first unread article when entering the group.  
1672
1673 @item best
1674 Select the most high-scored article in the group when entering the
1675 group. 
1676 @end table
1677         
1678 If you want to prevent automatic selection in some group (say, in a
1679 binary group with Huge articles) you can set this variable to @code{nil}
1680 in @code{gnus-select-group-hook}, which is called when a group is
1681 selected.
1682
1683 @findex gnus-thread-sort-by-total-score
1684 @findex gnus-thread-sort-by-date
1685 @findex gnus-thread-sort-by-score
1686 @findex gnus-thread-sort-by-subject
1687 @findex gnus-thread-sort-by-author
1688 @findex gnus-thread-sort-by-number
1689 @vindex gnus-thread-sort-functions
1690 If you are using a threaded summary display, you can sort the threads by
1691 setting @code{gnus-thread-sort-functions}, which is a list of functions.
1692 By default, sorting is done on article numbers.  Ready-made sorting
1693 predicate functions include @code{gnus-thread-sort-by-number},
1694 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-subject},
1695 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-score}, and
1696 @code{gnus-thread-sort-by-total-score}.
1697
1698 Each function takes two threads and return non-@code{nil} if the first
1699 thread should be sorted before the other.  Note that sorting really is
1700 normally done by looking only at the roots of each thread.  If you use
1701 more than one function, the primary sort key should be the last function
1702 in the list.  You should probably always include
1703 @code{gnus-thread-sort-by-number} in the list of sorting
1704 functions---preferably first.  This will ensure that threads that are
1705 equal with respect to the other sort criteria will be displayed in
1706 ascending article order.
1707
1708 If you would like to sort by score, then by subject, and finally by
1709 number, you could do something like:
1710
1711 @lisp
1712 (setq gnus-thread-sort-functions 
1713       '(gnus-thread-sort-by-number
1714         gnus-thread-sort-by-subject
1715         gnus-thread-sort-by-score))
1716 @end lisp
1717
1718 The threads that have highest score will be displayed first in the
1719 summary buffer.  When threads have the same score, they will be sorted
1720 alphabetically.  The threads that have the same score and the same
1721 subject will be sorted by number, which is (normally) the sequence in
1722 which the articles arrived.
1723
1724 If you want to sort by score and then reverse arrival order, you could
1725 say something like:
1726
1727 @lisp
1728 (setq gnus-thread-sort-functions
1729       '((lambda (t1 t2) 
1730           (not (gnus-thread-sort-by-number t1 t2)))
1731         gnus-thread-sort-by-score))
1732 @end lisp
1733
1734 @vindex gnus-thread-score-function
1735 The function in the @code{gnus-thread-score-function} variable (default
1736 @code{+}) is used for calculating the total score of a thread.  Useful
1737 functions might be @code{max}, @code{min}, or squared means, or whatever
1738 tickles your fancy.
1739
1740 @findex gnus-article-sort-functions
1741 @findex gnus-article-sort-by-date
1742 @findex gnus-article-sort-by-score
1743 @findex gnus-article-sort-by-subject
1744 @findex gnus-article-sort-by-author
1745 @findex gnus-article-sort-by-number
1746 If you are using an unthreaded display for some strange reason or other,
1747 you have to fiddle with the @code{gnus-article-sort-functions} variable.
1748 It is very similar to the @code{gnus-thread-sort-functions}, except that
1749 is uses slightly different functions for article comparison.  Available
1750 sorting predicate functions are @code{gnus-article-sort-by-number},
1751 @code{gnus-article-sort-by-author}, @code{gnus-article-sort-by-subject},
1752 @code{gnus-article-sort-by-date}, and @code{gnus-article-sort-by-score}.
1753
1754 If you want to sort an unthreaded summary display by subject, you could
1755 say something like:
1756
1757 @lisp
1758 (setq gnus-article-sort-functions 
1759       '(gnus-article-sort-by-number
1760         gnus-article-sort-by-subject))
1761 @end lisp
1762
1763
1764 @node Subscription Commands
1765 @section Subscription Commands
1766 @cindex subscribing
1767
1768 @table @kbd
1769
1770 @item S t
1771 @itemx u
1772 @kindex S t (Group)
1773 @kindex u (Group)
1774 @findex gnus-group-unsubscribe-current-group
1775 Toggle subscription to the current group
1776 (@code{gnus-group-unsubscribe-current-group}).  
1777
1778 @item S s
1779 @itemx U
1780 @kindex S s (Group)
1781 @kindex U (Group)
1782 @findex gnus-group-unsubscribe-group
1783 Prompt for a group to subscribe, and then subscribe it.  If it was
1784 subscribed already, unsubscribe it instead
1785 (@code{gnus-group-unsubscribe-group}).
1786
1787 @item S k
1788 @itemx C-k
1789 @kindex S k (Group)
1790 @kindex C-k (Group)
1791 @findex gnus-group-kill-group
1792 Kill the current group (@code{gnus-group-kill-group}).
1793
1794 @item S y
1795 @itemx C-y
1796 @kindex S y (Group)
1797 @kindex C-y (Group)
1798 @findex gnus-group-yank-group
1799 Yank the last killed group (@code{gnus-group-yank-group}).
1800
1801 @item S w
1802 @itemx C-w
1803 @kindex S w (Group)
1804 @kindex C-w (Group)
1805 @findex gnus-group-kill-region
1806 Kill all groups in the region (@code{gnus-group-kill-region}). 
1807
1808 @item S z
1809 @kindex S z (Group)
1810 @findex gnus-group-kill-all-zombies
1811 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
1812
1813 @item S C-k
1814 @kindex S C-k (Group)
1815 @findex gnus-group-kill-level
1816 Kill all groups on a certain level (@code{gnus-group-kill-level}).
1817 These groups can't be yanked back after killing, so this command should
1818 be used with some caution.  The only thing where this command comes in
1819 really handy is when you have a @file{.newsrc} with lots of unsubscribed
1820 groups that you want to get rid off.  @kbd{S C-k} on level @code{7} will
1821 kill off all unsubscribed groups that do not have message numbers in the
1822 @file{.newsrc} file.  
1823
1824 @end table
1825
1826 Also @xref{Group Levels}.
1827
1828 @node Group Levels
1829 @section Group Levels
1830 @cindex group level
1831
1832 All groups have a level of @dfn{subscribedness}.  For instance, if a
1833 group is on level 2, it is more subscribed than a group on level 5.  You
1834 can ask Gnus to just list groups on a given level or lower
1835 (@pxref{Listing Groups}), or to just check for new articles in groups on
1836 a given level or lower (@pxref{Misc Group Stuff}).
1837
1838 @table @kbd
1839
1840 @item S l
1841 @kindex S l (Group)
1842 @findex gnus-group-set-current-level
1843 Set the level of the current group.  If a numeric prefix is given, the
1844 next @var{n} groups will have their levels set.  The user will be
1845 prompted for a level.
1846 @end table
1847
1848 @vindex gnus-level-killed
1849 @vindex gnus-level-zombie
1850 @vindex gnus-level-unsubscribed
1851 @vindex gnus-level-subscribed
1852 Gnus considers groups on between levels 1 and
1853 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
1854 @code{gnus-level-subscribed} (exclusive) and
1855 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
1856 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
1857 (default 8) and @code{gnus-level-killed} to be killed (default 9),
1858 completely dead.  Gnus treats subscribed and unsubscribed groups exactly
1859 the same, but zombie and killed groups have no information on what
1860 articles you have read, etc, stored.  This distinction between dead and
1861 living groups isn't done because it is nice or clever, it is done purely
1862 for reasons of efficiency.
1863
1864 It is recommended that you keep all your mail groups (if any) on quite
1865 low levels (eg. 1 or 2).
1866
1867 If you want to play with the level variables, you should show some care.
1868 Set them once, and don't touch them ever again.  Better yet, don't touch
1869 them at all unless you know exactly what you're doing.
1870
1871 @vindex gnus-level-default-unsubscribed
1872 @vindex gnus-level-default-subscribed
1873 Two closely related variables are @code{gnus-level-default-subscribed}
1874 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
1875 which are the levels that new groups will be put on if they are
1876 (un)subscribed.  These two variables should, of course, be inside the
1877 relevant legal ranges.
1878
1879 @vindex gnus-keep-same-level
1880 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
1881 will only move to groups that are of the same level (or lower).  In
1882 particular, going from the last article in one group to the next group
1883 will go to the next group of the same level (or lower).  This might be
1884 handy if you want to read the most important groups before you read the
1885 rest.
1886
1887 @vindex gnus-group-default-list-level
1888 All groups with a level less than or equal to
1889 @code{gnus-group-default-list-level} will be listed in the group buffer
1890 by default.
1891
1892 @vindex gnus-group-list-inactive-groups
1893 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
1894 groups will be listed along with the unread groups.  This variable is
1895 @code{t} by default.  If it is @code{nil}, inactive groups won't be
1896 listed. 
1897
1898 @vindex gnus-group-use-permanent-levels
1899 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
1900 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
1901 use this level as the ``work'' level.
1902
1903 @vindex gnus-activate-level
1904 Gnus will normally just activate groups that are on level
1905 @code{gnus-activate-level} or less.  If you don't want to activate
1906 unsubscribed groups, for instance, you might set this variable to
1907 @samp{5}. 
1908
1909
1910 @node Group Score
1911 @section Group Score
1912 @cindex group score
1913
1914 You would normally keep important groups on high levels, but that scheme
1915 is somewhat restrictive.  Don't you wish you could have Gnus sort the
1916 group buffer according to how often you read groups, perhaps?  Within
1917 reason?  
1918
1919 This is what @dfn{group score} is for.  You can assign a score to each
1920 group.  You can then sort the group buffer based on this score.
1921 Alternatively, you can sort on score and then level.  (Taken together,
1922 the level and the score is called the @dfn{rank} of the group.  A group
1923 that is on level 4 and has a score of 1 has a higher rank than a group
1924 on level 5 that has a score of 300.  (The level is the most significant
1925 part and the score is the least significant part.)
1926
1927 @findex gnus-summary-bubble-group
1928 If you want groups you read often to get higher scores than groups you
1929 read seldom you can add the @code{gnus-summary-bubble-group} function to
1930 the @code{gnus-summary-exit-hook} hook.  This will result (after
1931 sorting) in a bubbling sort of action.  If you want to see that in
1932 action after each summary exit, you can add
1933 @code{gnus-group-sort-groups-by-rank} or
1934 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
1935 slow things down somewhat.
1936
1937
1938 @node Marking Groups
1939 @section Marking Groups
1940 @cindex marking groups
1941
1942 If you want to perform some command on several groups, and they appear
1943 subsequently in the group buffer, you would normally just give a
1944 numerical prefix to the command.  Most group commands will then do your
1945 bidding on those groups.
1946
1947 However, if the groups are not in sequential order, you can still
1948 perform a command on several groups.  You simply mark the groups first
1949 with the process mark and then execute the command.
1950
1951 @table @kbd
1952
1953 @item #
1954 @kindex # (Group)
1955 @itemx M m
1956 @kindex M m (Group)
1957 @findex gnus-group-mark-group
1958 Set the mark on the current group (@code{gnus-group-mark-group}). 
1959
1960 @item M-#
1961 @kindex M-# (Group)
1962 @itemx < u
1963 @kindex M u (Group)
1964 @findex gnus-group-unmark-group
1965 Remove the mark from the current group
1966 (@code{gnus-group-unmark-group}). 
1967
1968 @item M U
1969 @kindex M U (Group)
1970 @findex gnus-group-unmark-all-groups
1971 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}). 
1972
1973 @item M w
1974 @kindex M w (Group)
1975 @findex gnus-group-mark-region
1976 Mark all groups between point and mark (@code{gnus-group-mark-region}). 
1977
1978 @item M b
1979 @kindex M b (Group)
1980 @findex gnus-group-mark-buffer
1981 Mark all groups in the buffer (@code{gnus-group-mark-buffer}). 
1982
1983 @item M r
1984 @kindex M r (Group)
1985 @findex gnus-group-mark-regexp
1986 Mark all groups that match some regular expression
1987 (@code{gnus-group-mark-regexp}).  
1988 @end table
1989
1990 Also @xref{Process/Prefix}.
1991
1992 If you want to execute some command on all groups that have been marked
1993 with the process mark, you can use the @kbd{M-&}
1994 (@code{gnus-group-universal-argument}) command.  It will prompt you for
1995 the command to be executed.
1996
1997
1998
1999 @node Foreign Groups
2000 @section Foreign Groups
2001 @cindex foreign groups
2002
2003 A @dfn{foreign group} is a group that is not read by the usual (or
2004 default) means.  It could be, for instance, a group from a different
2005 @sc{nntp} server, it could be a virtual group, or it could be your own
2006 personal mail group.
2007
2008 A foreign group (or any group, really) is specified by a @dfn{name} and
2009 a @dfn{select method}.  To take the latter first, a select method is a
2010 list where the first element says what backend to use (eg. @code{nntp},
2011 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
2012 name}.  There may be additional elements in the select method, where the
2013 value may have special meaning for the backend in question.
2014
2015 One could say that a select method defines a @dfn{virtual server}---so
2016 we do just that (@pxref{The Server Buffer}).
2017
2018 The @dfn{name} of the group is the name the backend will recognize the
2019 group as.
2020
2021 For instance, the group @samp{soc.motss} on the @sc{nntp} server
2022 @samp{some.where.edu} will have the name @samp{soc.motss} and select
2023 method @code{(nntp "some.where.edu")}.  Gnus will call this group, in
2024 all circumstances, @samp{nntp+some.where.edu:soc.motss}, even though the
2025 @code{nntp} backend just knows this group as @samp{soc.motss}.
2026
2027 Here are some commands for making and editing general foreign groups,
2028 and some commands to ease the creation of some special-purpose groups:
2029
2030 @table @kbd
2031
2032 @item G m
2033 @kindex G m (Group)
2034 @findex gnus-group-make-group
2035 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
2036 for a name, a method and possibly an @dfn{address}.  For an easier way
2037 to subscribe to @sc{nntp} groups, @xref{Browse Foreign Server}.
2038
2039 @item G r
2040 @kindex G m (Group)
2041 @findex gnus-group-rename-group
2042 Rename the current group to something else
2043 (@code{gnus-group-rename-group}).  This is legal only on some groups --
2044 mail groups mostly.  This command might very well be quite slow on some
2045 backends. 
2046
2047 @item G e
2048 @kindex G e (Group)
2049 @findex gnus-group-edit-group-method
2050 Enter a buffer where you can edit the select method of the current
2051 group (@code{gnus-group-edit-group-method}).
2052
2053 @item G p
2054 @kindex G p (Group)
2055 @findex gnus-group-edit-group-parameters
2056 Enter a buffer where you can edit the group parameters
2057 (@code{gnus-group-edit-group-parameters}). 
2058
2059 @item G E
2060 @kindex G E (Group)
2061 @findex gnus-group-edit-group
2062 Enter a buffer where you can edit the group info
2063 (@code{gnus-group-edit-group}).
2064
2065 @item G d
2066 @kindex G d (Group)
2067 @findex gnus-group-make-directory-group
2068 Make a directory group.  You will be prompted for a directory name
2069 (@code{gnus-group-make-directory-group}).  
2070
2071 @item G h 
2072 @kindex G h (Group)
2073 @findex gnus-group-make-help-group
2074 Make the Gnus help group (@code{gnus-group-make-help-group}).
2075
2076 @item G a
2077 @kindex G a (Group)
2078 @findex gnus-group-make-archive-group
2079 @vindex gnus-group-archive-directory
2080 @vindex gnus-group-recent-archive-directory
2081 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
2082 default a group pointing to the most recent articles will be created
2083 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
2084 group will be created from from @code{gnus-group-archive-directory}.
2085
2086 @item G k
2087 @kindex G k (Group)
2088 @findex gnus-group-make-kiboze-group
2089 Make a kiboze group.  You will be prompted for a name, for a regexp to
2090 match groups to be ``included'' in the kiboze group, and a series of
2091 strings to match on headers (@code{gnus-group-make-kiboze-group}).
2092
2093 @item G D
2094 @kindex G D (Group)
2095 @findex gnus-group-enter-directory
2096 Read a random directory as if with were a newsgroup with the
2097 @code{nneething} backend (@code{gnus-group-enter-directory}).
2098
2099 @item G f
2100 @kindex G f (Group)
2101 @findex gnus-group-make-doc-group
2102 Make a group based on some file or other
2103 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
2104 command, you will be prompted for a file name and a file type.
2105 Currently supported types are @code{babyl}, @code{mbox}, @code{digest},
2106 @code{mmdf}, @code{news}, @code{rnews}, @code{clari-briefs}, and
2107 @code{forward}.  If you run this command without a prefix, Gnus will
2108 guess at the file type.
2109
2110 @item G DEL
2111 @kindex G DEL (Group)
2112 @findex gnus-group-delete-group
2113 This function will delete the current group
2114 (@code{gnus-group-delete-group}).  If given a prefix, this function will
2115 actually delete all the articles in the group, and forcibly remove the
2116 group itself from the face of the Earth.  Use a prefix only if you are
2117 sure of what you are doing.  
2118
2119 @item G V
2120 @kindex G V (Group)
2121 @findex gnus-group-make-empty-virtual
2122 Make a new, fresh, empty @code{nnvirtual} group
2123 (@code{gnus-group-make-empty-virtual}).
2124
2125 @item G v
2126 @kindex G v (Group)
2127 @findex gnus-group-add-to-virtual
2128 Add the current group to an @code{nnvirtual} group
2129 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
2130 @end table
2131
2132 The different methods all have their peculiarities, of course.
2133
2134 @menu
2135 * nntp::             Reading news from a different @sc{nntp} server.
2136 * nnspool::          Reading news from the local spool.
2137 * nnvirtual::        Combining articles from many groups.
2138 * nnkiboze::         Looking through parts of the newsfeed for articles.
2139 * nndir::            You can read a directory as if it was a newsgroup.
2140 * nneething::        Dired?  Who needs dired?
2141 * nndoc::            Single files can be the basis of a group.
2142 * SOUP::             Reading @sc{SOUP} packets ``offline''.
2143 * Reading Mail::     Reading your personal mail with Gnus.
2144 @end menu
2145
2146 @vindex gnus-activate-foreign-newsgroups
2147 If the @code{gnus-activate-foreign-newsgroups} is a positive number,
2148 Gnus will check all foreign groups with this level or lower at startup.
2149 This might take quite a while, especially if you subscribe to lots of
2150 groups from different @sc{nntp} servers.
2151
2152 @node nntp
2153 @subsection nntp
2154 @cindex @sc{nntp}
2155
2156 Subscribing to a foreign group from an @sc{nntp} server is rather easy.
2157 You just specify @code{nntp} as method and the address of the @sc{nntp}
2158 server as the, uhm, address.
2159
2160 If the @sc{nntp} server is located at a non-standard port, setting the
2161 third element of the select method to this port number should allow you
2162 to connect to the right port.  You'll have to edit the group info for
2163 that (@pxref{Foreign Groups}).
2164
2165 The name of the foreign group can be the same as a native group.  In
2166 fact, you can subscribe to the same group from as many different servers
2167 you feel like.  There will be no name collisions.
2168
2169 The following variables can be used to create a virtual @code{nntp}
2170 server: 
2171
2172 @table @code
2173
2174 @item nntp-server-opened-hook
2175 @vindex nntp-server-opened-hook
2176 @cindex @sc{mode reader}
2177 @cindex authinfo
2178 @cindex authentification
2179 @cindex nntp authentification
2180 @findex nntp-send-authinfo
2181 @findex nntp-send-mode-reader
2182 @code{nntp-server-opened-hook} is run after a connection has been made.
2183 It can be used to send commands to the @sc{nntp} server after it has
2184 been contacted.  By default is sends the command @samp{MODE READER} to
2185 the server with the @code{nntp-send-mode-reader} function.  Another
2186 popular function is @code{nntp-send-authinfo}, which will prompt you for
2187 an @sc{nntp} password and stuff.
2188
2189 @item nntp-server-action-alist 
2190 @vindex nntp-server-action-alist 
2191 This is an list of regexps to match on server types and actions to be
2192 taken when matches are made.  For instance, if you want Gnus to beep
2193 every time you connect to innd, you could say something like:
2194
2195 @lisp
2196 (setq nntp-server-action-alist
2197       '(("innd" (ding))))
2198 @end lisp
2199
2200 You probably don't want to do that, though.
2201
2202 The default value is
2203
2204 @lisp
2205   '(("nntpd 1\\.5\\.11t" 
2206      (remove-hook 'nntp-server-opened-hook nntp-send-mode-reader)))
2207 @end lisp
2208
2209 This ensures that Gnus doesn't send the @samp{MODE READER} command to
2210 nntpd 1.5.11t, since that command chokes that server, I've been told. 
2211
2212 @item nntp-maximum-request
2213 @vindex nntp-maximum-request
2214 If the @sc{nntp} server doesn't support @sc{nov} headers, this backend
2215 will collect headers by sending a series of @code{head} commands.  To
2216 speed things up, the backend sends lots of these commands without
2217 waiting for reply, and then reads all the replies.  This is controlled
2218 by the @code{nntp-maximum-request} variable, and is 400 by default.  If
2219 your network is buggy, you should set this to 1.
2220
2221 @item nntp-connection-timeout
2222 @vindex nntp-connection-timeout
2223 If you have lots of foreign @code{nntp} groups that you connect to
2224 regularly, you're sure to have problems with @sc{nntp} servers not
2225 responding properly, or being too loaded to reply within reasonable
2226 time.  This is can lead to awkward problems, which can be helped
2227 somewhat by setting @code{nntp-connection-timeout}.  This is an integer
2228 that says how many seconds the @code{nntp} backend should wait for a
2229 connection before giving up.  If it is @code{nil}, which is the default,
2230 no timeouts are done.
2231
2232 @item nntp-server-hook
2233 @vindex nntp-server-hook
2234 This hook is run as the last step when connecting to an @sc{nntp}
2235 server.
2236
2237 @c @findex nntp-open-rlogin
2238 @c @findex nntp-open-network-stream
2239 @c @item nntp-open-server-function
2240 @c @vindex nntp-open-server-function
2241 @c This function is used to connect to the remote system.  Two pre-made
2242 @c functions are @code{nntp-open-network-stream}, which is the default, and
2243 @c simply connects to some port or other on the remote system.  The other
2244 @c is @code{nntp-open-rlogin}, which does an rlogin on the remote system,
2245 @c and then does a telnet to the @sc{nntp} server available there.
2246 @c 
2247 @c @item nntp-rlogin-parameters
2248 @c @vindex nntp-rlogin-parameters
2249 @c If you use @code{nntp-open-rlogin} as the
2250 @c @code{nntp-open-server-function}, this list will be used as the
2251 @c parameter list given to @code{rsh}.
2252 @c 
2253 @c @item nntp-rlogin-user-name
2254 @c @vindex nntp-rlogin-user-name
2255 @c User name on the remote system when using the @code{rlogin} connect
2256 @c function. 
2257
2258 @item nntp-address
2259 @vindex nntp-address
2260 The address of the remote system running the @sc{nntp} server.
2261
2262 @item nntp-port-number
2263 @vindex nntp-port-number
2264 Port number to connect to when using the @code{nntp-open-network-stream}
2265 connect function.
2266
2267 @item nntp-buggy-select
2268 @vindex nntp-buggy-select
2269 Set this to non-@code{nil} if your select routine is buggy.
2270
2271 @item nntp-nov-is-evil 
2272 @vindex nntp-nov-is-evil 
2273 If the @sc{nntp} server does not support @sc{nov}, you could set this
2274 variable to @code{t}, but @code{nntp} usually checks whether @sc{nov}
2275 can be used automatically.
2276
2277 @item nntp-xover-commands
2278 @vindex nntp-xover-commands
2279 List of strings that are used as commands to fetch @sc{nov} lines from a
2280 server.  The default value of this variable is @code{("XOVER"
2281 "XOVERVIEW")}. 
2282
2283 @item nntp-nov-gap
2284 @vindex nntp-nov-gap
2285 @code{nntp} normally sends just one big request for @sc{nov} lines to
2286 the server.  The server responds with one huge list of lines.  However,
2287 if you have read articles 2-5000 in the group, and only want to read
2288 article 1 and 5001, that means that @code{nntp} will fetch 4999 @sc{nov}
2289 lines that you do not want, and will not use.  This variable says how
2290 big a gap between two consecutive articles is allowed to be before the
2291 @code{XOVER} request is split into several request.  Note that if your
2292 network is fast, setting this variable to a really small number means
2293 that fetching will probably be slower.  If this variable is @code{nil},
2294 @code{nntp} will never split requests.
2295
2296 @item nntp-prepare-server-hook
2297 @vindex nntp-prepare-server-hook
2298 A hook run before attempting to connect to an @sc{nntp} server.
2299
2300 @item nntp-async-number
2301 @vindex nntp-async-number
2302 How many articles should be pre-fetched when in asynchronous mode.  If
2303 this variable is @code{t}, @code{nntp} will pre-fetch all the articles
2304 that it can without bound.  If it is @code{nil}, no pre-fetching will be
2305 made.
2306
2307 @item nntp-warn-about-losing-connection
2308 @vindex nntp-warn-about-losing-connection
2309 If this variable is non-@code{nil}, some noise will be made when a
2310 server closes connection.
2311
2312
2313 @end table
2314
2315 @node nnspool
2316 @subsection nnspool
2317 @cindex @code{nnspool}
2318 @cindex news spool
2319
2320 Subscribing to a foreign group from the local spool is extremely easy,
2321 and might be useful, for instance, to speed up reading groups like
2322 @samp{alt.binaries.pictures.furniture}.
2323
2324 Anyways, you just specify @code{nnspool} as the method and @samp{""} (or
2325 anything else) as the address.
2326
2327 If you have access to a local spool, you should probably use that as the
2328 native select method (@pxref{Finding the News}).  It is normally faster
2329 than using an @code{nntp} select method, but might not be.  It depends.
2330 You just have to try to find out what's best at your site.
2331
2332 @table @code
2333
2334 @item nnspool-inews-program
2335 @vindex nnspool-inews-program
2336 Program used to post an article.
2337
2338 @item nnspool-inews-switches
2339 @vindex nnspool-inews-switches
2340 Parameters given to the inews program when posting an article. 
2341
2342 @item nnspool-spool-directory
2343 @vindex nnspool-spool-directory
2344 Where @code{nnspool} looks for the articles.  This is normally
2345 @file{/usr/spool/news/}.
2346
2347 @item nnspool-nov-directory 
2348 @vindex nnspool-nov-directory 
2349 Where @code{nnspool} will look for @sc{nov} files.  This is normally
2350 @file{/usr/spool/news/over.view/}.
2351
2352 @item nnspool-lib-dir
2353 @vindex nnspool-lib-dir
2354 Where the news lib dir is (@file{/usr/lib/news/} by default).
2355
2356 @item nnspool-active-file
2357 @vindex nnspool-active-file
2358 The path of the active file.
2359
2360 @item nnspool-newsgroups-file
2361 @vindex nnspool-newsgroups-file
2362 The path of the group descriptions file.
2363
2364 @item nnspool-history-file
2365 @vindex nnspool-history-file
2366 The path of the news history file.
2367
2368 @item nnspool-active-times-file
2369 @vindex nnspool-active-times-file
2370 The path of the active date file.
2371
2372 @item nnspool-nov-is-evil
2373 @vindex nnspool-nov-is-evil
2374 If non-@code{nil}, @code{nnspool} won't try to use any @sc{nov} files
2375 that it finds.
2376
2377 @item nnspool-sift-nov-with-sed
2378 @vindex nnspool-sift-nov-with-sed
2379 If non-@code{nil}, which is the default, use @code{sed} to get the
2380 relevant portion from the overview file.  If nil, @code{nnspool} will
2381 load the entire file into a buffer and process it there.
2382
2383 @end table
2384
2385
2386 @node nnvirtual
2387 @subsection nnvirtual
2388 @cindex @code{nnvirtual}
2389 @cindex virtual groups
2390
2391 An @dfn{nnvirtual group} is really nothing more than a collection of
2392 other groups.
2393
2394 For instance, if you are tired of reading many small group, you can
2395 put them all in one big group, and then grow tired of reading one
2396 big, unwieldy group.  The joys of computing!
2397
2398 You specify @code{nnvirtual} as the method.  The address should be a
2399 regexp to match component groups.
2400
2401 All marks in the virtual group will stick to the articles in the
2402 component groups.  So if you tick an article in a virtual group, the
2403 article will also be ticked in the component group from whence it came.
2404 (And vice versa---marks from the component groups will also be shown in
2405 the virtual group.)
2406
2407 Here's an example @code{nnvirtual} method that collects all Andrea Dworkin
2408 newsgroups into one, big, happy newsgroup:
2409
2410 @lisp
2411 (nnvirtual "^alt\\.fan\\.andrea-dworkin$\\|^rec\\.dworkin.*")
2412 @end lisp
2413
2414 The component groups can be native or foreign; everything should work
2415 smoothly, but if your computer explodes, it was probably my fault.
2416
2417 Collecting the same group from several servers might actually be a good
2418 idea if users have set the Distribution header to limit distribution.
2419 If you would like to read @samp{soc.motss} both from a server in Japan
2420 and a server in Norway, you could use the following as the group regexp:
2421
2422 @example
2423 "^nntp+some.server.jp:soc.motss$\\|^nntp+some.server.no:soc.motss$"
2424 @end example
2425
2426 This should work kinda smoothly---all articles from both groups should
2427 end up in this one, and there should be no duplicates.  Threading (and
2428 the rest) will still work as usual, but there might be problems with the
2429 sequence of articles.  Sorting on date might be an option here
2430 (@pxref{Selecting a Group}.
2431
2432 One limitation, however---all groups that are included in a virtual
2433 group has to be alive (i.e., subscribed or unsubscribed).  Killed or
2434 zombie groups can't be component groups for @code{nnvirtual} groups.
2435
2436 @vindex nnvirtual-always-rescan
2437 If the @code{nnvirtual-always-rescan} is non-@code{nil},
2438 @code{nnvirtual} will always scan groups for unread articles when
2439 entering a virtual group.  If this variable is @code{nil} (which is the
2440 default) and you read articles in a component group after the virtual
2441 group has been activated, the read articles from the component group
2442 will show up when you enter the virtual group.  You'll also see this
2443 effect if you have two virtual groups that contain the same component
2444 group.  If that's the case, you should set this variable to @code{t}.
2445 Or you can just tap @code{M-g} on the virtual group every time before
2446 you enter it---it'll have much the same effect.
2447
2448
2449 @node nnkiboze
2450 @subsection nnkiboze
2451 @cindex @code{nnkiboze}
2452 @cindex kibozing
2453
2454 @dfn{Kibozing} is defined by @sc{oed} as ``grepping through (parts of)
2455 the news feed''.  @code{nnkiboze} is a backend that will do this for you.  Oh
2456 joy!  Now you can grind any @sc{nntp} server down to a halt with useless
2457 requests!  Oh happiness!
2458
2459 The address field of the @code{nnkiboze} method is, as with
2460 @code{nnvirtual}, a regexp to match groups to be ``included'' in the
2461 @code{nnkiboze} group.  There most similarities between @code{nnkiboze}
2462 and @code{nnvirtual} ends.
2463
2464 In addition to this regexp detailing component groups, an @code{nnkiboze} group
2465 must have a score file to say what articles that are to be included in
2466 the group (@pxref{Scoring}).
2467
2468 @kindex M-x nnkiboze-generate-groups
2469 @findex nnkiboze-generate-groups
2470 You must run @kbd{M-x nnkiboze-generate-groups} after creating the
2471 @code{nnkiboze} groups you want to have.  This command will take time.  Lots of
2472 time.  Oodles and oodles of time.  Gnus has to fetch the headers from
2473 all the articles in all the components groups and run them through the
2474 scoring process to determine if there are any articles in the groups
2475 that are to be part of the @code{nnkiboze} groups.
2476
2477 Please limit the number of component groups by using restrictive
2478 regexps.  Otherwise your sysadmin may become annoyed with you, and the
2479 @sc{nntp} site may throw you off and never let you back in again.
2480 Stranger things have happened.
2481
2482 @code{nnkiboze} component groups do not have to be alive---they can be dead,
2483 and they can be foreign.  No restrictions.
2484
2485 @vindex nnkiboze-directory
2486 The generation of an @code{nnkiboze} group means writing two files in
2487 @code{nnkiboze-directory}, which is @file{~/News/} by default.  One
2488 contains the @sc{nov} header lines for all the articles in the group,
2489 and the other is an additional @file{.newsrc} file to store information
2490 on what groups that have been searched through to find component
2491 articles.
2492
2493 Articles that are marked as read in the @code{nnkiboze} group will have their
2494 @sc{nov} lines removed from the @sc{nov} file.
2495
2496
2497 @node nndir
2498 @subsection nndir
2499 @cindex @code{nndir}
2500 @cindex directory groups
2501
2502 If you have a directory that has lots of articles in separate files in
2503 it, you might treat it as a newsgroup.  The files have to have numerical
2504 names, of course.
2505
2506 This might be an opportune moment to mention @code{ange-ftp}, that most
2507 wonderful of all wonderful Emacs packages.  When I wrote @code{nndir}, I
2508 didn't think much about it---a backend to read directories.  Big deal.
2509
2510 @code{ange-ftp} changes that picture dramatically.  For instance, if you
2511 enter @file{"/ftp.hpc.uh.edu:/pub/emacs/ding-list/"} as the the
2512 directory name, ange-ftp will actually allow you to read this directory
2513 over at @samp{sina} as a newsgroup.  Distributed news ahoy!
2514
2515 @code{nndir} will use @sc{nov} files if they are present.
2516
2517 @code{nndir} is a ``read-only'' backend---you can't delete or expire
2518 articles with this method.  You can use @code{nnmh} or @code{nnml} for
2519 whatever you use @code{nndir} for, so you could switch to any of those
2520 methods if you feel the need to have a non-read-only @code{nndir}.
2521
2522
2523 @node nneething
2524 @subsection nneething
2525 @cindex @code{nneething}
2526
2527 From the @code{nndir} backend (which reads a single spool-like
2528 directory), it's just a hop and a skip to @code{nneething}, which
2529 pretends that any random directory is a newsgroup.  Strange, but true.
2530
2531 When @code{nneething} is presented with a directory, it will scan this
2532 directory and assign article numbers to each file.  When you enter such a
2533 group, @code{nneething} must create ``headers'' that Gnus can use.  After
2534 all, Gnus is a newsreader, in case you're forgetting. @code{nneething}
2535 does this in a two-step process.  First, it snoops each file in question.
2536 If the file looks like an article (i.e., the first few lines look like
2537 headers), it will use this as the head.  If this is just some random file
2538 without a head (eg. a C source file), @code{nneething} will cobble up a
2539 header out of thin air.  It will use file ownership, name and date and do
2540 whatever it can with these elements.
2541
2542 All this should happen automatically for you, and you will be presented
2543 with something that looks very much like a newsgroup.  Totally like a
2544 newsgroup, to be precise.  If you select an article, it will be displayed
2545 in the article buffer, just as usual.
2546
2547 If you select a line that represents a directory, Gnus will pop you into
2548 a new summary buffer for this @code{nneething} group.  And so on.  You can
2549 traverse the entire disk this way, if you feel like, but remember that
2550 Gnus is not dired, really, and does not intend to be, either.
2551
2552 There are two overall modes to this action---ephemeral or solid.  When
2553 doing the ephemeral thing (i.e., @kbd{G D} from the group buffer), Gnus
2554 will not store information on what files you have read, and what files
2555 are new, and so on.  If you create a solid @code{nneething} group the
2556 normal way with @kbd{G m}, Gnus will store a mapping table between
2557 article numbers and file names, and you can treat this group like any
2558 other groups.  When you activate a solid @code{nneething} group, you will
2559 be told how many unread articles it contains, etc., etc.
2560
2561 Some variables:
2562
2563 @table @code
2564 @item nneething-map-file-directory
2565 @vindex nneething-map-file-directory
2566 All the mapping files for solid @code{nneething} groups will be stored
2567 in this directory, which defaults to @file{~/.nneething/}.
2568
2569 @item nneething-exclude-files
2570 @vindex nneething-exclude-files
2571 All files that match this regexp will be ignored.  Nice to use to exclude
2572 auto-save files and the like, which is what it does by default.
2573
2574 @item nneething-map-file
2575 @vindex nneething-map-file
2576 Name of the map files.
2577 @end table
2578
2579
2580 @node nndoc
2581 @subsection nndoc
2582 @cindex @code{nndoc}
2583 @cindex documentation group
2584 @cindex help group
2585
2586 @code{nndoc} is a cute little thing that will let you read a single file
2587 as a newsgroup.  Several files types are supported:
2588
2589 @table @code
2590 @cindex babyl
2591 @cindex rmail mbox
2592
2593 @item babyl
2594 The babyl (rmail) mail box.
2595 @cindex mbox
2596 @cindex Unix mbox
2597
2598 @item mbox
2599 The standard Unix mbox file.
2600
2601 @cindex MMDF mail box
2602 @item mmdf
2603 The MMDF mail box format.
2604
2605 @item news
2606 Several news articles appended into a file.
2607
2608 @item rnews
2609 @cindex rnews batch files
2610 The rnews batch transport format.
2611 @cindex forwarded messages
2612
2613 @item forward
2614 Forwarded articles.
2615
2616 @item mime-digest
2617 @cindex digest
2618 @cindex MIME digest
2619 @cindex 1153 digest
2620 @cindex RFC 1153 digest
2621 @cindex RFC 341 digest
2622 MIME (RFC 1341) digest format.
2623
2624 @item standard-digest
2625 The standard (RFC 1153) digest format.
2626
2627 @item slack-digest
2628 Non-standard digest format---matches most things, but does it badly. 
2629 @end table
2630
2631 You can also use the special ``file type'' @code{guess}, which means that
2632 @code{nndoc} will try to guess what file type it is looking at.
2633 @code{digest} means that @code{nndoc} should guess what digest type the
2634 file is. 
2635
2636 @code{nndoc} will not try to change the file or insert any extra headers into
2637 it---it will simply, like, let you use the file as the basis for a
2638 group.  And that's it.
2639
2640 If you have some old archived articles that you want to insert into your
2641 new & spiffy Gnus mail backend, @code{nndoc} can probably help you with
2642 that.  Say you have an old @file{RMAIL} file with mail that you now want
2643 to split into your new @code{nnml} groups.  You look at that file using
2644 @code{nndoc}, set the process mark on all the articles in the buffer
2645 (@kbd{M P b}, for instance), and then re-spool (@kbd{B r}) using
2646 @code{nnml}.  If all goes well, all the mail in the @file{RMAIL} file is
2647 now also stored in lots of @code{nnml} directories, and you can delete
2648 that pesky @file{RMAIL} file.  If you have the guts!  
2649
2650 Virtual server variables:
2651
2652 @table @code
2653 @item nndoc-article-type
2654 @vindex nndoc-article-type
2655 This should be one of @code{mbox}, @code{babyl}, @code{digest},
2656 @code{mmdf}, @code{forward}, @code{news}, @code{rnews},
2657 @code{mime-digest}, @code{clari-briefs}, or @code{guess}.
2658
2659 @item nndoc-post-type
2660 @vindex nndoc-post-type
2661 This variable says whether Gnus is to consider the group a news group or
2662 a mail group.  There are two legal values:  @code{mail} (the default)
2663 and @code{news}.
2664 @end table
2665
2666
2667 @node SOUP
2668 @subsection SOUP
2669 @cindex SOUP
2670 @cindex offline
2671
2672 In the PC world people often talk about ``offline'' newsreaders.  These
2673 are thingies that are combined reader/news transport monstrosities.
2674 With built-in modem programs.  Yecchh!  
2675
2676 Of course, us Unix Weenie types of human beans use things like
2677 @code{uucp} and, like, @code{nntpd} and set up proper news and mail
2678 transport things like Ghod intended.  And then we just use normal
2679 newsreaders.  
2680
2681 However, it can sometimes be convenient to do something a that's a bit
2682 easier on the brain if you have a very slow modem, and you're not really
2683 that interested in doing things properly.  
2684
2685 A file format called @sc{soup} has been developed for transporting news
2686 and mail from servers to home machines and back again.  It can be a bit
2687 fiddly.
2688
2689 @enumerate
2690
2691 @item
2692 You log in on the server and create a @sc{soup} packet.  You can either
2693 use a dedicated @sc{soup} thingie, or you can use Gnus to create the
2694 packet with the @kbd{O s} command.
2695
2696 @item 
2697 You transfer the packet home.  Rail, boat, car or modem will do fine.
2698
2699 @item
2700 You put the packet in your home directory.
2701
2702 @item
2703 You fire up Gnus using the @code{nnsoup} backend as the native server.
2704
2705 @item
2706 You read articles and mail and answer and followup to the things you
2707 want.
2708
2709 @item 
2710 You do the @kbd{G s r} command to pack these replies into a @sc{soup}
2711 packet.
2712
2713 @item 
2714 You transfer this packet to the server.  
2715
2716 @item
2717 You use Gnus to mail this packet out with the @kbd{G s s} command.
2718
2719 @item
2720 You then repeat until you die.
2721
2722 @end enumerate
2723
2724 So you basically have a bipartite system---you use @code{nnsoup} for
2725 reading and Gnus for packing/sending these @sc{soup} packets.
2726
2727 @menu
2728 * SOUP Commands::     Commands for creating and sending @sc{soup} packets
2729 * nnsoup::            A backend for reading @sc{soup} packets.
2730 * SOUP Replies::      How to enable @code{nnsoup} to take over mail and news.
2731 @end menu
2732
2733
2734 @node SOUP Commands
2735 @subsubsection SOUP Commands
2736
2737 @table @kbd
2738 @item G s b
2739 @kindex G s b (Group)
2740 @findex gnus-group-brew-soup
2741 Pack all unread articles in the current group
2742 (@code{gnus-group-brew-soup}).  This command understands the
2743 process/prefix convention.
2744
2745 @item G s w
2746 @kindex G s w (Group)
2747 @findex gnus-soup-save-areas
2748 Save all data files (@code{gnus-soup-save-areas}).
2749
2750 @item G s s
2751 @kindex G s s (Group)
2752 @findex gnus-soup-send-replies
2753 Send all replies from the replies packet
2754 (@code{gnus-soup-send-replies}). 
2755
2756 @item G s p
2757 @kindex G s p (Group)
2758 @findex gnus-soup-pack-packet
2759 Pack all files into a @sc{soup} packet (@code{gnus-soup-pack-packet}). 
2760
2761 @item G s r
2762 @kindex G s r (Group)
2763 @findex nnsoup-pack-replies
2764 Pack all replies into a replies packet (@code{nnsoup-pack-replies}). 
2765
2766 @item O s
2767 @kindex O s (Summary)
2768 @findex gnus-soup-add-article
2769 This summary-mode command adds the current article to a @sc{soup} packet
2770 (@code{gnus-soup-add-article}).  It understands the process/prefix
2771 convention. 
2772
2773 @end table
2774
2775
2776 There are a few variables to customize where Gnus will put all these
2777 thingies:  
2778
2779 @table @code
2780
2781 @item gnus-soup-directory
2782 @vindex gnus-soup-directory
2783 Directory where Gnus will save intermediate files while composing
2784 @sc{soup} packets.  The default is @file{~/SoupBrew/}. 
2785
2786 @item gnus-soup-replies-directory
2787 @vindex gnus-soup-replies-directory
2788 This is what Gnus will use as a temporary directory while sending our
2789 reply packets.  The default is @file{~/SoupBrew/SoupReplies/}. 
2790
2791 @item gnus-soup-prefix-file
2792 @vindex gnus-soup-prefix-file
2793 Name of the file where Gnus stores the last used prefix.  The default is
2794 @samp{"gnus-prefix"}. 
2795
2796 @item gnus-soup-packer
2797 @vindex gnus-soup-packer
2798 A format string command for packing a @sc{soup} packet.  The default is
2799 @samp{ "tar cf - %s | gzip > $HOME/Soupout%d.tgz"}. 
2800
2801 @item gnus-soup-unpacker
2802 @vindex gnus-soup-unpacker
2803 Format string command for unpacking a @sc{soup} packet.  The default is
2804 @samp{"gunzip -c %s | tar xvf -"}.
2805
2806 @item gnus-soup-packet-directory
2807 @vindex gnus-soup-packet-directory
2808 Where Gnus will look for reply packets.  The default is @file{~/}. 
2809
2810 @item gnus-soup-packet-regexp
2811 @vindex gnus-soup-packet-regexp
2812 Regular expression matching @sc{soup} reply packets in
2813 @code{gnus-soup-packet-directory}. 
2814
2815 @end table
2816  
2817
2818 @node nnsoup
2819 @subsubsection nnsoup
2820 @cindex @code{nnsoup}
2821
2822 @code{nnsoup} is the backend for reading @sc{soup} packets.  It will
2823 read incoming packets, unpack them, and put them in a directory where
2824 you can read them at leisure.
2825
2826 These are the variables you can use to customize its behavior:
2827
2828 @table @code
2829
2830 @item nnsoup-directory
2831 @vindex nnsoup-directory
2832 @code{nnsoup} will move all incoming @sc{soup} packets to this directory
2833 and unpack them there.  The default is @file{~/SOUP/}.
2834
2835 @item nnsoup-replies-directory 
2836 @vindex nnsoup-replies-directory 
2837 All replies will stored in this directory before being packed into a
2838 reply packet.  The default is @file{~/SOUP/replies/"}.
2839
2840 @item nnsoup-replies-format-type
2841 @vindex nnsoup-replies-format-type
2842 The @sc{soup} format of the replies packets.  The default is @samp{?n}
2843 (rnews), and I don't think you should touch that variable.  I probably
2844 shouldn't even have documented it.  Drats!  Too late!
2845
2846 @item nnsoup-replies-index-type
2847 @vindex nnsoup-replies-index-type
2848 The index type of the replies packet.  The is @samp{?n}, which means
2849 ``none''.  Don't fiddle with this one either!
2850
2851 @item nnsoup-active-file
2852 @vindex nnsoup-active-file
2853 Where @code{nnsoup} stores lots of information.  This is not an ``active
2854 file'' in the @code{nntp} sense; it's an Emacs Lisp file.  If you lose
2855 this file or mess it up in any way, you're dead.  The default is
2856 @file{~/SOUP/active}.
2857
2858 @item nnsoup-packer
2859 @vindex nnsoup-packer
2860 Format string command for packing a reply @sc{soup} packet.  The default
2861 is @samp{"tar cf - %s | gzip > $HOME/Soupin%d.tgz"}. 
2862
2863 @item nnsoup-unpacker
2864 @vindex nnsoup-unpacker
2865 Format string command for unpacking incoming @sc{soup} packets.  The
2866 default is @samp{"gunzip -c %s | tar xvf -"}. 
2867
2868 @item nnsoup-packet-directory
2869 @vindex nnsoup-packet-directory
2870 Where @code{nnsoup} will look for incoming packets.  The default is
2871 @file{~/}.  
2872
2873 @item nnsoup-packet-regexp
2874 @vindex nnsoup-packet-regexp
2875 Regular expression matching incoming @sc{soup} packets.  The default is
2876 @samp{Soupout}. 
2877
2878 @end table
2879
2880
2881 @node SOUP Replies
2882 @subsubsection SOUP Replies
2883
2884 Just using @code{nnsoup} won't mean that your postings and mailings end
2885 up in @sc{soup} reply packets automagically.  You have to work a bit
2886 more for that to happen.
2887
2888 @findex nnsoup-set-variables
2889 The @code{nnsoup-set-variables} command will set the appropriate
2890 variables to ensure that all your followups and replies end up in the
2891 @sc{soup} system.
2892
2893 In specific, this is what it does:
2894
2895 @lisp
2896 (setq gnus-inews-article-function 'nnsoup-request-post)
2897 (setq send-mail-function 'nnsoup-request-mail)
2898 @end lisp
2899
2900 And that's it, really.  If you only want news to go into the @sc{soup}
2901 system you just use the first line.  If you only want mail to be
2902 @sc{soup}ed you use the second.
2903
2904
2905 @node Reading Mail
2906 @subsection Reading Mail
2907 @cindex reading mail
2908 @cindex mail
2909
2910 Reading mail with a newsreader---isn't that just plain WeIrD? But of
2911 course.
2912
2913 Gnus will read the mail spool when you activate a mail group.  The mail
2914 file is first copied to your home directory.  What happens after that
2915 depends on what format you want to store your mail in.
2916
2917 @menu
2918 * Creating Mail Groups::         How to create mail groups.
2919 * Fancy Mail Splitting::         Gnus can do hairy splitting of incoming mail.
2920 * Mail and Procmail::            Reading mail groups that procmail create.
2921 * Expiring Old Mail Articles::   Getting rid of unwanted mail.
2922 * Not Reading Mail::             Using mail backends for reading other files.
2923 * nnmbox::                       Using the (quite) standard Un*x mbox.
2924 * nnbabyl::                      Emacs programs use the rmail babyl format.
2925 * nnml::                         Store your mail in a private spool?
2926 * nnmh::                         An mhspool-like backend.
2927 * nnfolder::                     Having one file for each group.
2928 @end menu
2929
2930 @vindex nnmail-read-incoming-hook
2931 The mail backends all call @code{nnmail-read-incoming-hook} after
2932 reading new mail.  You can use this hook to notify any mail watch
2933 programs, if you want to.
2934
2935 @vindex nnmail-spool-file
2936 @cindex POP mail
2937 @cindex MAILHOST
2938 @code{nnmail-spool-file} says where to look for new mail.  If this
2939 variable is @code{nil}, the mail backends will never attempt to fetch
2940 mail by themselves.  If you are using a POP mail server and your name is
2941 @samp{"larsi"}, you should set this variable to @samp{"po:larsi"}.  If
2942 your name is not @samp{"larsi"}, you should probably modify that
2943 slightly, but you may have guessed that already, you smart & handsome
2944 devil!  You can also set this variable to @code{pop}, and Gnus will try
2945 to figure out the POP mail string by itself.  In any case, Gnus will
2946 call @code{movemail} which will contact the POP server named in the
2947 @samp{MAILHOST} environment variable.
2948
2949 When you use a mail backend, Gnus will slurp all your mail from your
2950 inbox and plonk it down in your home directory.  Gnus doesn't move any
2951 mail if you're not using a mail backend---you have to do a lot of magic
2952 invocations first.  At the time when you have finished drawing the
2953 pentagram, lightened the candles, and sacrificed the goat, you really
2954 shouldn't be too surprised when Gnus moves your mail.
2955
2956 @vindex nnmail-use-procmail
2957 If @code{nnmail-use-procmail} is non-@code{nil}, the mail backends will
2958 look in @code{nnmail-procmail-directory} for incoming mail.  All the
2959 files in that directory that have names ending in
2960 @code{gnus-procmail-suffix} will be considered incoming mailboxes, and
2961 will be searched for new mail.
2962
2963 @vindex nnmail-prepare-incoming-hook
2964 @code{nnmail-prepare-incoming-hook} is run in a buffer that holds all
2965 the new incoming mail, and can be used for, well, anything, really.
2966
2967 @vindex nnmail-pre-get-new-mail-hook
2968 @vindex nnmail-post-get-new-mail-hook
2969 There are two more useful hooks executed when treating new incoming
2970 mail---@code{nnmail-pre-get-new-mail-hook} (which is called just before
2971 starting to handle the new mail) and
2972 @code{nnmail-post-get-new-mail-hook} (which is called when the mail
2973 handling is done).  Here's and example of using these two hooks to
2974 change the default file modes the new mail files get:
2975
2976 @lisp
2977 (add-hook 'gnus-pre-get-new-mail-hook 
2978           (lambda () (set-default-file-modes 511)))
2979
2980 (add-hook 'gnus-post-get-new-mail-hook 
2981           (lambda () (set-default-file-modes 551)))
2982 @end lisp
2983
2984 @vindex nnmail-tmp-directory
2985 @code{nnmail-tmp-directory} says where to move the incoming mail to
2986 while processing it.  This is usually done in the same directory that
2987 the mail backend inhabits (i.e., @file{~/Mail/}), but if this variable is
2988 non-@code{nil}, it will be used instead.
2989
2990 @vindex nnmail-movemail-program
2991 @code{nnmail-movemail-program} is executed to move mail from the user's
2992 inbox to her home directory.  The default is @samp{"movemail"}.
2993
2994 @vindex nnmail-delete-incoming
2995 If @code{nnmail-delete-incoming} is non-@code{nil}, the mail backends
2996 will delete the temporary incoming file after splitting mail into the
2997 proper groups.  This is @code{nil} by default for reasons of security. 
2998
2999 @vindex nnmail-use-long-file-names
3000 If @code{nnmail-use-long-file-names} is non-@code{nil} the mail backends
3001 will use long file and directory names.  Groups like @samp{mail.misc}
3002 will end up in directories like @file{mail.misc/}.  If it is @code{nil},
3003 the same group will end up in @file{mail/misc/}.
3004
3005 @vindex nnmail-message-id-cache-length
3006 @vindex nnmail-message-id-cache-file
3007 @vindex nnmail-treat-duplicates
3008 @cindex duplicate mails
3009 If you are a member of a couple of mailing list, you will sometime
3010 receive two copies of the same mail.  This can be quite annoying, so
3011 @code{nnmail} checks for and treats any duplicates it might find.  To do
3012 this, it keeps a cache of old @code{Message-ID}s -
3013 @code{nnmail-message-id-cache-file}, which is @file{~/.nnmail-cache} by
3014 default.  The approximate maximum number of @code{Message-ID}s stored
3015 there is controlled by the @code{nnmail-message-id-cache-length}
3016 variable, which is 1000 by default. (So 1000 @code{Message-ID}s will be
3017 stored.) If all this sounds scary to you, you can set
3018 @code{nnmail-delete-duplicates} to @code{warn} (which is what it is by
3019 default), and @code{nnmail} won't delete duplicate mails.  Instead it
3020 will generate a brand new @code{Message-ID} for the mail and insert a
3021 warning into the head of the mail saying that it thinks that this is a
3022 duplicate of a different message.  
3023
3024 This variable can also be a function.  If that's the case, the function
3025 will be called from a buffer narrowed to the message in question with
3026 the @code{Message-ID} as a parameter.  The function must return either
3027 @code{nil}, @code{warn}, or @code{delete}.
3028
3029 You can turn this feature off completely by setting the variable to
3030 @code{nil}.
3031
3032 If you want all the duplicate mails to be put into a special
3033 @dfn{duplicates} group, you could do that using the normal mail split
3034 methods:
3035
3036 @lisp
3037 (setq nnmail-split-fancy
3038       '(| ;; Messages duplicates go to a separate group.
3039           ("gnus-warning" "duplication of message" "duplicate")
3040           ;; Message from daemons, postmaster, and the like to another.
3041           (any mail "mail.misc")
3042           ;; Other rules.
3043           [ ... ] ))
3044 @end lisp
3045
3046 Or something like:
3047 @lisp
3048 (setq nnmail-split-methods 
3049       '(("duplicates" "^Gnus-Warning:")
3050         ;; Other rules.
3051         [...]))
3052 @end lisp
3053
3054 Here's a neat feature: If you know that the recipient reads her mail
3055 with Gnus, and that she has @code{nnmail-treat-duplicates} set to
3056 @code{delete}, you can send her as many insults as you like, just by
3057 using a @code{Message-ID} of a mail that you know that she's already
3058 received.  Think of all the fun!  She'll never see any of it!  Whee!
3059
3060 Gnus gives you all the opportunity you could possibly want for shooting
3061 yourself in the foot.  Let's say you create a group that will contain
3062 all the mail you get from your boss.  And then you accidentally
3063 unsubscribe from the group.  Gnus will still put all the mail from your
3064 boss in the unsubscribed group, and so, when your boss mails you ``Have
3065 that report ready by Monday or you're fired!'', you'll never see it and,
3066 come Tuesday, you'll still believe that you're gainfully employed while
3067 you really should be out collecting empty bottles to save up for next
3068 month's rent money.
3069
3070 @node Creating Mail Groups
3071 @subsubsection Creating Mail Groups
3072 @cindex creating mail groups
3073
3074 You can make Gnus read your personal, private, secret mail.
3075
3076 You should first set @code{gnus-secondary-select-methods} to, for
3077 instance, @code{((nnmbox ""))}.  When you start up Gnus, Gnus will ask
3078 this backend for what groups it carries (@samp{mail.misc} by default)
3079 and subscribe it the normal way.  (Which means you may have to look for
3080 it among the zombie groups, I guess, all depending on your
3081 @code{gnus-subscribe-newsgroup-method} variable.)
3082
3083 @vindex nnmail-split-methods
3084 Then you should set the variable @code{nnmail-split-methods} to specify
3085 how the incoming mail is to be split into groups.
3086
3087 @lisp
3088 (setq nnmail-split-methods
3089   '(("mail.junk" "^From:.*Lars Ingebrigtsen")
3090     ("mail.crazy" "^Subject:.*die\\|^Organization:.*flabby")
3091     ("mail.other" "")))
3092 @end lisp
3093
3094 This variable is a list of lists, where the first element of each of
3095 these lists is the name of the mail group (they do not have to be called
3096 something beginning with @samp{mail}, by the way), and the second
3097 element is a regular expression used on the header of each mail to
3098 determine if it belongs in this mail group.
3099
3100 The second element can also be a function.  In that case, it will be
3101 called narrowed to the headers with the first element of the rule as the
3102 argument.  It should return a non-@code{nil} value if it thinks that the
3103 mail belongs in that group.
3104
3105 The last of these groups should always be a general one, and the regular
3106 expression should @emph{always} be @samp{""} so that it matches any
3107 mails that haven't been matched by any of the other regexps.
3108
3109 If you like to tinker with this yourself, you can set this variable to a
3110 function of your choice.  This function will be called without any
3111 arguments in a buffer narrowed to the headers of an incoming mail
3112 message.  The function should return a list of groups names that it
3113 thinks should carry this mail message.
3114
3115 Note that the mail backends are free to maul the poor, innocent
3116 incoming headers all they want to.  They all add @code{Lines} headers;
3117 some add @code{X-Gnus-Group} headers; most rename the Unix mbox
3118 @code{From<SPC>} line to something else.
3119
3120 @vindex nnmail-crosspost
3121 The mail backends all support cross-posting.  If several regexps match,
3122 the mail will be ``cross-posted'' to all those groups.
3123 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
3124 that no articles are crossposted to the general (@samp{""}) group. 
3125
3126 @vindex nnmail-crosspost-link-function
3127 @cindex crosspost
3128 @cindex links
3129 @code{nnmh} and @code{nnml} makes crossposts by creating hard links to
3130 the crossposted articles.  However, not all files systems support hard
3131 links.  If that's the case for you, set
3132 @code{nnmail-crosspost-link-function} to @code{copy-file}.  (This
3133 variable is @code{add-name-to-file} by default.)  
3134
3135
3136 @node Fancy Mail Splitting
3137 @subsubsection Fancy Mail Splitting
3138 @cindex mail splitting
3139 @cindex fancy mail splitting
3140
3141 @vindex nnmail-split-fancy
3142 @findex nnmail-split-fancy
3143 If the rather simple, standard method for specifying how to split mail
3144 doesn't allow you to do what you want, you can set
3145 @code{nnmail-split-methods} to @code{nnmail-split-fancy}.  Then you can
3146 play with the @code{nnmail-split-fancy} variable. 
3147
3148 Let's look at an example value of this variable first:
3149
3150 @lisp
3151 ;; Messages from the mailer daemon are not crossposted to any of
3152 ;; the ordinary groups.  Warnings are put in a separate group
3153 ;; from real errors.
3154 (| ("from" mail (| ("subject" "warn.*" "mail.warning")
3155                    "mail.misc"))
3156    ;; Non-error messages are crossposted to all relevant
3157    ;; groups, but we don't crosspost between the group for the
3158    ;; (ding) list and the group for other (ding) related mail.
3159    (& (| (any "ding@@ifi\\.uio\\.no" "ding.list")
3160          ("subject" "ding" "ding.misc"))
3161       ;; Other mailing lists...
3162       (any "procmail@@informatik\\.rwth-aachen\\.de" "procmail.list")
3163       (any "SmartList@@informatik\\.rwth-aachen\\.de" "SmartList.list")
3164       ;; People...
3165       (any "larsi@@ifi\\.uio\\.no" "people.Lars Magne Ingebrigtsen"))
3166    ;; Unmatched mail goes to the catch all group.
3167    "misc.misc"))")
3168 @end lisp
3169
3170 This variable has the format of a @dfn{split}.  A split is a (possibly)
3171 recursive structure where each split may contain other splits.  Here are
3172 the four possible split syntaxes:
3173
3174 @table @dfn
3175
3176 @item GROUP 
3177 If the split is a string, that will be taken as a group name. 
3178
3179 @item (FIELD VALUE SPLIT)
3180 If the split is a list, and the first element is a string, then that
3181 means that if header FIELD (a regexp) contains VALUE (also a regexp),
3182 then store the message as specified by SPLIT.
3183
3184 @item (| SPLIT...)
3185 If the split is a list, and the first element is @code{|} (vertical
3186 bar), then process each SPLIT until one of them matches.  A SPLIT is
3187 said to match if it will cause the mail message to be stored in one or
3188 more groups.
3189
3190 @item (& SPLIT...)
3191 If the split is a list, and the first element is @code{&}, then process
3192 all SPLITs in the list.
3193 @end table
3194
3195 In these splits, FIELD must match a complete field name.  VALUE must
3196 match a complete word according to the fundamental mode syntax table.
3197 You can use @code{.*} in the regexps to match partial field names or
3198 words.
3199
3200 @vindex nnmail-split-abbrev-alist
3201 FIELD and VALUE can also be lisp symbols, in that case they are expanded
3202 as specified by the variable @code{nnmail-split-abbrev-alist}.  This is
3203 an alist of cons cells, where the car of the cells contains the key, and
3204 the cdr contains a string.
3205
3206 @node Mail and Procmail
3207 @subsubsection Mail and Procmail
3208 @cindex procmail
3209
3210 Many people use @code{procmail} (or some other mail filter program or
3211 external delivery agent---@code{slocal}, @code{elm}, etc) to split
3212 incoming mail into groups.  If you do that, you should set
3213 @code{nnmail-spool-file} to @code{procmail} to ensure that the mail
3214 backends never ever try to fetch mail by themselves.
3215
3216 This also means that you probably don't want to set
3217 @code{nnmail-split-methods} either, which has some, perhaps, unexpected
3218 side effects.
3219
3220 When a mail backend is queried for what groups it carries, it replies
3221 with the contents of that variable, along with any groups it has figured
3222 out that it carries by other means.  None of the backends (except
3223 @code{nnmh}) actually go out to the disk and check what groups actually
3224 exist.  (It's not trivial to distinguish between what the user thinks is
3225 a basis for a newsgroup and what is just a plain old file or directory.)
3226
3227 This means that you have to tell Gnus (and the backends) what groups
3228 exist by hand.
3229
3230 Let's take the @code{nnmh} backend as an example. 
3231
3232 The folders are located in @code{nnmh-directory}, say, @file{~/Mail/}.
3233 There are three folders, @file{foo}, @file{bar} and @file{mail.baz}.
3234
3235 Go to the group buffer and type @kbd{G m}.  When prompted, answer
3236 @samp{foo} for the name and @samp{nnmh} for the method.  Repeat
3237 twice for the two other groups, @samp{bar} and @samp{mail.baz}.  Be sure
3238 to include all your mail groups.
3239
3240 That's it.  You are now set to read your mail.  An active file for this
3241 method will be created automatically.
3242
3243 @vindex nnmail-procmail-suffix
3244 @vindex nnmail-procmail-directory
3245 If you use @code{nnfolder} or any other backend that store more than a
3246 single article in each file, you should never have procmail add mails to
3247 the file that Gnus sees.  Instead, procmail should put all incoming mail
3248 in @code{nnmail-procmail-directory}.  To arrive at the file name to put
3249 the incoming mail in, append @code{nnmail-procmail-suffix} to the group
3250 name.  The mail backends will read the mail from these files.
3251
3252 @vindex nnmail-resplit-incoming
3253 When Gnus reads a file called @file{mail.misc.spool}, this mail will be
3254 put in the @code{mail.misc}, as one would expect.  However, if you want
3255 Gnus to split the mail the normal way, you could set
3256 @code{nnmail-resplit-incoming} to @code{t}.
3257
3258 @vindex nnmail-keep-last-article
3259 If you use @code{procmail} to split things directory into an @code{nnmh}
3260 directory (which you shouldn't do), you should set
3261 @code{nnmail-keep-last-article} to non-@code{nil} to prevent Gnus from
3262 ever expiring the final article in a mail newsgroup.  This is quite,
3263 quite important.
3264
3265
3266 @node Expiring Old Mail Articles
3267 @subsubsection Expiring Old Mail Articles
3268 @cindex article expiry
3269
3270 Traditional mail readers have a tendency to remove mail articles when
3271 you mark them as read, in some way.  Gnus takes a fundamentally
3272 different approach to mail reading.
3273
3274 Gnus basically considers mail just to be news that has been received in
3275 a rather peculiar manner.  It does not think that it has the power to
3276 actually change the mail, or delete any mail messages.  If you enter a
3277 mail group, and mark articles as ``read'', or kill them in some other
3278 fashion, the mail articles will still exist on the system.  I repeat:
3279 Gnus will not delete your old, read mail.  Unless you ask it to, of
3280 course.
3281
3282 To make Gnus get rid of your unwanted mail, you have to mark the
3283 articles as @dfn{expirable}.  This does not mean that the articles will
3284 disappear right away, however.  In general, a mail article will be
3285 deleted from your system if, 1) it is marked as expirable, AND 2) it is
3286 more than one week old.  If you do not mark an article as expirable, it
3287 will remain on your system until hell freezes over.  This bears
3288 repeating one more time, with some spurious capitalizations: IF you do
3289 NOT mark articles as EXPIRABLE, Gnus will NEVER delete those ARTICLES.
3290
3291 @vindex gnus-auto-expirable-newsgroups
3292 You do not have to mark articles as expirable by hand.  Groups that
3293 match the regular expression @code{gnus-auto-expirable-newsgroups} will
3294 have all articles that you read marked as expirable automatically.  All
3295 articles that are marked as expirable have an @samp{E} in the first
3296 column in the summary buffer.
3297
3298 Let's say you subscribe to a couple of mailing lists, and you want the
3299 articles you have read to disappear after a while:
3300
3301 @lisp
3302 (setq gnus-auto-expirable-newsgroups 
3303       "mail.nonsense-list\\|mail.nice-list")
3304 @end lisp
3305
3306 Another way to have auto-expiry happen is to have the element
3307 @code{auto-expire} in the select method of the group. 
3308
3309 @vindex nnmail-expiry-wait
3310 The @code{nnmail-expiry-wait} variable supplies the default time an
3311 expirable article has to live.  The default is seven days.  
3312
3313 Gnus also supplies a function that lets you fine-tune how long articles
3314 are to live, based on what group they are in.  Let's say you want to
3315 have one month expiry period in the @samp{mail.private} group, a one day
3316 expiry period in the @samp{mail.junk} group, and a six day expiry period
3317 everywhere else:
3318
3319 @lisp
3320 (setq nnmail-expiry-wait-function
3321       (lambda (group)
3322        (cond ((string= group "mail.private")
3323                31)
3324              ((string= group "mail.junk")
3325                1)
3326              ((string= group "important")
3327                'never)
3328              (t
3329                6))))
3330 @end lisp
3331
3332 The group names that this function is fed are ``unadorned'' group
3333 names---no @samp{"nnml:"} prefixes and the like.
3334
3335 The @code{nnmail-expiry-wait} variable and
3336 @code{nnmail-expiry-wait-function} function can be either a number (not
3337 necessarily an integer) or the symbols @code{immediate} or
3338 @code{never}.  
3339
3340 You can also use the @code{expiry-wait} group parameter to selectively
3341 change the expiry period (@pxref{Group Parameters}).
3342
3343 @vindex nnmail-keep-last-article
3344 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never
3345 expire the final article in a mail newsgroup.  This is to make life
3346 easier for procmail users.
3347
3348 @vindex gnus-total-expirable-newsgroups
3349 By the way, that line up there about Gnus never expiring non-expirable
3350 articles is a lie.  If you put @code{total-expire} in the group
3351 parameters, articles will not be marked as expirable, but all read
3352 articles will be put through the expiry process.  Use with extreme
3353 caution.  Even more dangerous is the
3354 @code{gnus-total-expirable-newsgroups} variable.  All groups that match
3355 this regexp will have all read articles put through the expiry process,
3356 which means that @emph{all} old mail articles in the groups in question
3357 will be deleted after a while.  Use with extreme caution, and don't come
3358 crying to me when you discover that the regexp you used matched the
3359 wrong group and all your important mail has disappeared.  Be a
3360 @emph{man}!  Or a @emph{woman}!  Whatever you feel more comfortable
3361 with!  So there!
3362
3363
3364 @node Not Reading Mail
3365 @subsubsection Not Reading Mail
3366
3367 If you start using any of the mail backends, they have the annoying
3368 habit of assuming that you want to read mail with them.  This might not
3369 be unreasonable, but it might not be what you want.
3370
3371 If you set @code{nnmail-spool-file} to @code{nil}, none of the backends
3372 will ever attempt to read incoming mail, which should help.
3373
3374 @vindex nnbabyl-get-new-mail
3375 @vindex nnmbox-get-new-mail
3376 @vindex nnml-get-new-mail
3377 @vindex nnmh-get-new-mail
3378 @vindex nnfolder-get-new-mail
3379 This might be too much, if, for instance, you are reading mail quite
3380 happily with @code{nnml} and just want to peek at some old @sc{rmail}
3381 file you have stashed away with @code{nnbabyl}.  All backends have
3382 variables called backend-@code{get-new-mail}.  If you want to disable
3383 the @code{nnbabyl} mail reading, you edit the virtual server for the
3384 group to have a setting where @code{nnbabyl-get-new-mail} to @code{nil}.
3385
3386 All the mail backends will call @code{nn}*@code{-prepare-save-mail-hook}
3387 narrowed to the article to be saved before saving it when reading
3388 incoming mail.
3389
3390 @node nnmbox
3391 @subsubsection nnmbox
3392 @cindex @code{nnmbox}
3393 @cindex unix mail box
3394
3395 @vindex nnmbox-active-file
3396 @vindex nnmbox-mbox-file
3397 The @dfn{nnmbox} backend will use the standard Un*x mbox file to store
3398 mail.  @code{nnmbox} will add extra headers to each mail article to say
3399 which group it belongs in.
3400
3401 Virtual server settings:
3402
3403 @table @code
3404 @item nnmbox-mbox-file
3405 @vindex nnmbox-mbox-file
3406 The name of the mail box in the user's home directory. 
3407
3408 @item nnmbox-active-file
3409 @vindex nnmbox-active-file
3410 The name of the active file for the mail box.
3411
3412 @item nnmbox-get-new-mail
3413 @vindex nnmbox-get-new-mail
3414 If non-@code{nil}, @code{nnmbox} will read incoming mail and split it
3415 into groups.
3416 @end table
3417
3418 @node nnbabyl
3419 @subsubsection nnbabyl
3420 @cindex @code{nnbabyl}
3421 @cindex rmail mbox
3422
3423 @vindex nnbabyl-active-file
3424 @vindex nnbabyl-mbox-file
3425 The @dfn{nnbabyl} backend will use a babyl mail box (aka. @dfn{rmail
3426 mbox}) to store mail. @code{nnbabyl} will add extra headers to each mail
3427 article to say which group it belongs in.
3428
3429 Virtual server settings:
3430
3431 @table @code
3432 @item nnbabyl-mbox-file
3433 @vindex nnbabyl-mbox-file
3434 The name of the rmail mbox file.
3435
3436 @item nnbabyl-active-file
3437 @vindex nnbabyl-active-file
3438 The name of the active file for the rmail box.
3439
3440 @item nnbabyl-get-new-mail
3441 @vindex nnbabyl-get-new-mail
3442 If non-@code{nil}, @code{nnbabyl} will read incoming mail. 
3443 @end table
3444
3445 @node nnml
3446 @subsubsection nnml
3447 @cindex @code{nnml}
3448 @cindex mail @sc{nov} spool
3449
3450 The @dfn{nnml} spool mail format isn't compatible with any other known
3451 format.  It should be used with some caution.
3452
3453 @vindex nnml-directory
3454 If you use this backend, Gnus will split all incoming mail into files;
3455 one file for each mail, and put the articles into the correct
3456 directories under the directory specified by the @code{nnml-directory}
3457 variable.  The default value is @file{~/Mail/}.
3458
3459 You do not have to create any directories beforehand; Gnus will take
3460 care of all that.
3461
3462 If you have a strict limit as to how many files you are allowed to store
3463 in your account, you should not use this backend.  As each mail gets its
3464 own file, you might very well occupy thousands of inodes within a few
3465 weeks.  If this is no problem for you, and it isn't a problem for you
3466 having your friendly systems administrator walking around, madly,
3467 shouting ``Who is eating all my inodes?! Who? Who!?!'', then you should
3468 know that this is probably the fastest format to use.  You do not have
3469 to trudge through a big mbox file just to read your new mail.
3470
3471 @code{nnml} is probably the slowest backend when it comes to article
3472 splitting.  It has to create lots of files, and it also generates
3473 @sc{nov} databases for the incoming mails.  This makes is the fastest
3474 backend when it comes to reading mail.
3475
3476 Virtual server settings:
3477
3478 @table @code
3479 @item nnml-directory
3480 @vindex nnml-directory
3481 All @code{nnml} directories will be placed under this directory. 
3482
3483 @item nnml-active-file
3484 @vindex nnml-active-file
3485 The active file for the @code{nnml} server.
3486
3487 @item nnml-newsgroups-file
3488 @vindex nnml-newsgroups-file
3489 The @code{nnml} group descriptions file.  @xref{Newsgroups File
3490 Format}. 
3491
3492 @item nnml-get-new-mail
3493 @vindex nnml-get-new-mail
3494 If non-@code{nil}, @code{nnml} will read incoming mail.
3495
3496 @item nnml-nov-is-evil
3497 @vindex nnml-nov-is-evil
3498 If non-@code{nil}, this backend will ignore any @sc{nov} files.  
3499
3500 @item nnml-nov-file-name
3501 @vindex nnml-nov-file-name
3502 The name of the @sc{nov} files.  The default is @file{.overview}. 
3503
3504 @end table
3505
3506 @findex nnml-generate-nov-databases
3507 If your @code{nnml} groups and @sc{nov} files get totally out of whack,
3508 you can do a complete update by typing @kbd{M-x
3509 nnml-generate-nov-databases}.  This command will trawl through the
3510 entire @code{nnml} hierarchy, looking at each and every article, so it
3511 might take a while to complete.
3512
3513 @node nnmh
3514 @subsubsection nnmh
3515 @cindex @code{nnmh}
3516 @cindex mh-e mail spool
3517
3518 @code{nnmh} is just like @code{nnml}, except that is doesn't generate
3519 @sc{nov} databases and it doesn't keep an active file.  This makes
3520 @code{nnmh} a @emph{much} slower backend than @code{nnml}, but it also
3521 makes it easier to write procmail scripts for.
3522
3523 Virtual server settings:
3524
3525 @table @code
3526 @item nnmh-directory
3527 @vindex nnmh-directory
3528 All @code{nnmh} directories will be located under this directory.
3529
3530 @item nnmh-get-new-mail
3531 @vindex nnmh-get-new-mail
3532 If non-@code{nil}, @code{nnmh} will read incoming mail.
3533
3534 @item nnmh-be-safe
3535 @vindex nnmh-be-safe
3536 If non-@code{nil}, @code{nnmh} will go to ridiculous lengths to make
3537 sure that the articles in the folder are actually what Gnus thinks they
3538 are.  It will check date stamps and stat everything in sight, so
3539 setting this to @code{t} will mean a serious slow-down.  If you never
3540 use anything but Gnus to read the @code{nnmh} articles, you do not have
3541 to set this variable to @code{t}.
3542 @end table
3543
3544
3545 @node nnfolder
3546 @subsubsection nnfolder
3547 @cindex @code{nnfolder}
3548 @cindex mbox folders
3549
3550 @code{nnfolder} is a backend for storing each mail group in a separate
3551 file.  Each file is in the standard Un*x mbox format.  @code{nnfolder}
3552 will add extra headers to keep track of article numbers and arrival
3553 dates.
3554
3555 Virtual server settings:
3556
3557 @table @code
3558 @item nnfolder-directory
3559 @vindex nnfolder-directory
3560 All the @code{nnfolder} mail boxes will be stored under this directory. 
3561
3562 @item nnfolder-active-file
3563 @vindex nnfolder-active-file
3564 The name of the active file.
3565
3566 @item nnfolder-newsgroups-file
3567 @vindex nnfolder-newsgroups-file
3568 The name of the group descriptions file.  @xref{Newsgroups File Format}.
3569
3570 @item nnfolder-get-new-mail
3571 @vindex nnfolder-get-new-mail
3572 If non-@code{nil}, @code{nnfolder} will read incoming mail.
3573 @end table
3574
3575 @findex nnfolder-generate-active-file
3576 @kindex M-x nnfolder-generate-active-file
3577 If you have lots of @code{nnfolder}-like files you'd like to read with
3578 @code{nnfolder}, you can use the @kbd{M-x nnfolder-generate-active-file}
3579 command to make @code{nnfolder} aware of all likely files in
3580 @code{nnfolder-directory}.
3581
3582
3583 @node Group Parameters
3584 @section Group Parameters
3585 @cindex group parameters
3586
3587 Gnus stores all information on a group in a list that is usually known
3588 as the @dfn{group info}.  This list has from three to six elements.
3589 Here's an example info.
3590
3591 @lisp
3592 ("nnml:mail.ding" 3 ((1 . 232) 244 (256 . 270)) ((tick 246 249))
3593                   (nnml "private") ((to-address . "ding@@ifi.uio.no")))
3594 @end lisp
3595
3596 The first element is the @dfn{group name}, as Gnus knows the group,
3597 anyway.  The second element is the @dfn{subscription level}, which
3598 normally is a small integer.  The third element is a list of ranges of
3599 read articles.  The fourth element is a list of lists of article marks
3600 of various kinds.  The fifth element is the select method (or virtual
3601 server, if you like).  The sixth element is a list of @dfn{group
3602 parameters}, which is what this section is about.
3603
3604 Any of the last three elements may be missing if they are not required.
3605 In fact, the vast majority of groups will normally only have the first
3606 three elements, which saves quite a lot of cons cells.
3607
3608 The group parameters store information local to a particular group:
3609
3610 @table @code
3611 @item to-address
3612 @cindex to-address
3613 If the group parameter list contains an element that looks like
3614 @samp{(to-address .  "some@@where.com")}, that address will be used by
3615 the backend when doing followups and posts.  This is primarily useful in
3616 mail groups that represent closed mailing lists---mailing lists where
3617 it's expected that everybody that writes to the mailing list is
3618 subscribed to it.  Since using this parameter ensures that the mail only
3619 goes to the mailing list itself, it means that members won't receive two
3620 copies of your followups.
3621
3622 Using @code{to-address} will actually work whether the group is foreign
3623 or not.  Let's say there's a group on the server that is called
3624 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
3625 the articles from a mail-to-news gateway.  Posting directly to this
3626 group is therefore impossible---you have to send mail to the mailing
3627 list address instead. 
3628
3629 @item to-list
3630 @cindex to-list
3631 If the group parameter list has an element that looks like
3632 @code{(to-list . "some@@where.com")}, that address will be used when
3633 doing a @kbd{a} in any group.  It is totally ignored when doing a
3634 followup---except that if it is present in a news group, you'll get mail
3635 group semantics when doing @kbd{f}.
3636
3637 @item broken-reply-to
3638 @cindex broken-reply-to
3639 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
3640 headers in this group are to be ignored.  This can be useful if you're
3641 reading a mailing list group where the listserv has inserted
3642 @code{Reply-To} headers that point back to the listserv itself.  This is
3643 broken behavior.  So there!
3644
3645 @item to-group
3646 @cindex to-group
3647 If the group parameter list contains an element like @code{(to-group
3648 . "some.group.name")}, all posts will be sent to that group.
3649
3650 @item auto-expire
3651 @cindex auto-expire
3652 If this symbol is present in the group parameter list, all articles that
3653 are read will be marked as expirable.  For an alternative approach,
3654 @xref{Expiring Old Mail Articles}.
3655
3656 @item total-expire
3657 @cindex total-expire
3658 If this symbol is present, all read articles will be put through the
3659 expiry process, even if they are not marked as expirable.  Use with
3660 caution. 
3661
3662 @item expiry-wait
3663 @cindex expiry-wait
3664 If the group parameter has an element that looks like @samp{(expiry-wait
3665 . 10)}, this value will override any @code{nnmail-expiry-wait} and
3666 @code{nnmail-expiry-wait-functions} when expiring expirable messages.
3667 The value can either be a number of days (not necessarily an integer) or
3668 the symbols @code{never} or @code{immediate}.
3669
3670 @item score-file
3671 Elements that look like @samp{(score-file . "file")} will make
3672 @samp{file} into the current score file for the group in question.  This
3673 means that all score commands you issue will end up in that file. 
3674
3675 @item admin-address
3676 When unsubscribing to a mailing list you should never send the
3677 unsubscription notice to the mailing list itself.  Instead, you'd send
3678 messages to the administrative address.  This parameter allows you to
3679 put the admin address somewhere convenient.
3680
3681 @item comment
3682 This parameter allows you to enter a random comment on the group.
3683
3684 @item @var{(variable form)}
3685 You can use the group parameters to set variables local to the group you
3686 are entering.  Say you want to turn threading off in
3687 @samp{news.answers}.  You'd then put @code{(gnus-show-threads nil)} in
3688 the group parameters of that group.  @code{gnus-show-threads} will be
3689 made into a local variable in the summary buffer you enter, and the form
3690 @code{nil} will be @code{eval}ed there.  
3691
3692 This can also be used as a group-specific hook function, if you'd like.
3693 If you want to hear a beep when you enter the group
3694 @samp{alt.binaries.pictures.furniture}, you could put something like
3695 @code{(dummy-variable (ding))} in the parameters of that group.
3696 @code{dummy-variable} will be set to the result of the @code{(ding)}
3697 form, but who cares?
3698
3699 @end table
3700
3701 If you want to change the group info you can use the @kbd{G E} command
3702 to enter a buffer where you can edit it.
3703
3704 You usually don't want to edit the entire group info, so you'd be better
3705 off using the @kbd{G p} command to just edit the group parameters.
3706
3707 @node Listing Groups
3708 @section Listing Groups
3709 @cindex group listing
3710
3711 These commands all list various slices of the groups that are available.
3712
3713 @table @kbd
3714
3715 @item l
3716 @itemx A s
3717 @kindex A s (Group)
3718 @kindex l (Group)
3719 @findex gnus-group-list-groups
3720 List all groups that have unread articles
3721 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
3722 command will list only groups of level ARG and lower.  By default, it
3723 only lists groups of level five or lower (i.e., just subscribed groups).
3724
3725 @item L
3726 @itemx A u
3727 @kindex A u (Group)
3728 @kindex L (Group)
3729 @findex gnus-group-list-all-groups
3730 List all groups, whether they have unread articles or not
3731 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
3732 this command will list only groups of level ARG and lower.  By default,
3733 it lists groups of level seven or lower (i.e., just subscribed and
3734 unsubscribed groups).
3735
3736 @item A l
3737 @kindex A l (Group)
3738 @findex gnus-group-list-level
3739 List all unread groups on a specific level
3740 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
3741 with no unread articles.
3742
3743 @item A k
3744 @kindex A k (Group)
3745 @findex gnus-group-list-killed
3746 List all killed groups (@code{gnus-group-list-killed}).  If given a
3747 prefix argument, really list all groups that are available, but aren't
3748 currently (un)subscribed.  This could entail reading the active file
3749 from the server.
3750
3751 @item A z
3752 @kindex A z (Group)
3753 @findex gnus-group-list-zombies
3754 List all zombie groups (@code{gnus-group-list-zombies}).
3755
3756 @item A m
3757 @kindex A m (Group)
3758 @findex gnus-group-list-matching
3759 List all subscribed groups with unread articles that match a regexp
3760 (@code{gnus-group-list-matching}). 
3761
3762 @item A M
3763 @kindex A M (Group)
3764 @findex gnus-group-list-all-matching
3765 List groups that match a regexp (@code{gnus-group-list-all-matching}).
3766
3767 @item A A
3768 @kindex A A (Group)
3769 @findex gnus-group-list-active
3770 List absolutely all groups that are in the active file(s) of the
3771 server(s) you are connected to (@code{gnus-group-list-active}).  This
3772 might very well take quite a while.  It might actually be a better idea
3773 to do a @kbd{A m} to list all matching, and just give @samp{.} as the
3774 thing to match on.
3775
3776 @end table
3777
3778 @vindex gnus-permanently-visible-groups
3779 @cindex visible group parameter
3780 Groups that match the @code{gnus-permanently-visible-groups} regexp will
3781 always be shown, whether they have unread articles or not.  You can also
3782 add the @code{visible} element to the group parameters in question to
3783 get the same effect.
3784
3785 @vindex gnus-list-groups-with-ticked-articles
3786 Groups that have just ticked articles in it are normally listed in the
3787 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
3788 @code{nil}, these groups will be treated just like totally empty
3789 groups.  It is @code{t} by default.
3790
3791
3792 @node Sorting Groups
3793 @section Sorting Groups
3794 @cindex sorting groups
3795
3796 @kindex C-c C-s (Group)
3797 @findex gnus-group-sort-groups
3798 @vindex gnus-group-sort-function
3799 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
3800 group buffer according to the function(s) given by the
3801 @code{gnus-group-sort-function} variable.  Available sorting functions
3802 include: 
3803
3804 @table @code
3805
3806 @item gnus-group-sort-by-alphabet
3807 @findex gnus-group-sort-by-alphabet
3808 Sort the group names alphabetically.  This is the default.
3809
3810 @item gnus-group-sort-by-level
3811 @findex gnus-group-sort-by-level
3812 Sort by group level.
3813
3814 @item gnus-group-sort-by-score
3815 @findex gnus-group-sort-by-score
3816 Sort by group score.
3817
3818 @item gnus-group-sort-by-rank
3819 @findex gnus-group-sort-by-rank
3820 Sort by group score and then the group level.  The level and the score
3821 are, when taken together, the group's @dfn{rank}. 
3822
3823 @item gnus-group-sort-by-unread
3824 @findex gnus-group-sort-by-unread
3825 Sort by number of unread articles.
3826
3827 @item gnus-group-sort-by-method
3828 @findex gnus-group-sort-by-method
3829 Sort by alphabetically on the select method.
3830
3831
3832 @end table
3833
3834 @code{gnus-group-sort-function} can also be a list of sorting
3835 functions.  In that case, the most significant sort key function must be
3836 the last one.
3837
3838
3839 There are also a number of commands for sorting directly according to
3840 some sorting criteria:
3841
3842 @table @kbd
3843 @item G S a
3844 @kindex G S a (Group)
3845 @findex gnus-group-sort-groups-by-alphabet
3846 Sort the group buffer alphabetically by group name
3847 (@code{gnus-group-sort-groups-by-alphabet}). 
3848
3849 @item G S u
3850 @kindex G S u (Group)
3851 @findex gnus-group-sort-groups-by-unread
3852 Sort the group buffer by the number of unread articles
3853 (@code{gnus-group-sort-groups-by-unread}).
3854
3855 @item G S l
3856 @kindex G S l (Group)
3857 @findex gnus-group-sort-groups-by-level
3858 Sort the group buffer by group level
3859 (@code{gnus-group-sort-groups-by-level}). 
3860
3861 @item G S v
3862 @kindex G S v (Group)
3863 @findex gnus-group-sort-groups-by-score
3864 Sort the group buffer by group score
3865 (@code{gnus-group-sort-groups-by-score}). 
3866
3867 @item G S r
3868 @kindex G S r (Group)
3869 @findex gnus-group-sort-groups-by-rank
3870 Sort the group buffer by group level
3871 (@code{gnus-group-sort-groups-by-rank}). 
3872
3873 @item G S m
3874 @kindex G S m (Group)
3875 @findex gnus-group-sort-groups-by-method
3876 Sort the group buffer alphabetically by backend name
3877 (@code{gnus-group-sort-groups-by-method}). 
3878
3879 @end table
3880
3881 When given a prefix, all these commands will sort in reverse order. 
3882
3883
3884
3885 @node Group Maintenance
3886 @section Group Maintenance
3887 @cindex bogus groups
3888
3889 @table @kbd
3890 @item b
3891 @kindex b (Group)
3892 @findex gnus-group-check-bogus-groups
3893 Find bogus groups and delete them
3894 (@code{gnus-group-check-bogus-groups}).
3895
3896 @item F
3897 @kindex F (Group)
3898 @findex gnus-find-new-newsgroups
3899 Find new groups and process them (@code{gnus-find-new-newsgroups}).  If
3900 given a prefix, use the @code{ask-server} method to query the server for
3901 new groups.
3902
3903 @item C-c C-x
3904 @kindex C-c C-x (Group)
3905 @findex gnus-group-expire-articles
3906 Run all expirable articles in the current group through the expiry
3907 process (if any) (@code{gnus-group-expire-articles}).
3908
3909 @item C-c M-C-x
3910 @kindex C-c M-C-x (Group)
3911 @findex gnus-group-expire-all-groups
3912 Run all articles in all groups through the expiry process
3913 (@code{gnus-group-expire-all-groups}).
3914
3915 @end table
3916
3917
3918 @node Browse Foreign Server
3919 @section Browse Foreign Server
3920 @cindex foreign servers
3921 @cindex browsing servers
3922
3923 @table @kbd
3924 @item B
3925 @kindex B (Group)
3926 @findex gnus-group-browse-foreign-server
3927 You will be queried for a select method and a server name.  Gnus will
3928 then attempt to contact this server and let you browse the groups there
3929 (@code{gnus-group-browse-foreign-server}).
3930 @end table
3931
3932 @findex gnus-browse-server-mode
3933 A new buffer with a list of available groups will appear.  This buffer
3934 will be use the @code{gnus-browse-server-mode}.  This buffer looks a bit
3935 (well, a lot) like a normal group buffer, but with one major difference
3936 - you can't enter any of the groups.  If you want to read any of the
3937 news available on that server, you have to subscribe to the groups you
3938 think may be interesting, and then you have to exit this buffer.  The
3939 new groups will be added to the group buffer, and then you can read them
3940 as you would any other group.
3941
3942 Future versions of Gnus may possibly permit reading groups straight from
3943 the browse buffer.
3944
3945 Here's a list of keystrokes available in the browse mode:
3946
3947 @table @kbd
3948 @item n
3949 @kindex n (Browse)
3950 @findex gnus-group-next-group
3951 Go to the next group (@code{gnus-group-next-group}).
3952
3953 @item p
3954 @kindex p (Browse)
3955 @findex gnus-group-prev-group
3956 Go to the previous group (@code{gnus-group-prev-group}).
3957
3958 @item SPACE
3959 @kindex SPACE (Browse)
3960 @findex gnus-browse-read-group
3961 Enter the current group and display the first article
3962 (@code{gnus-browse-read-group}). 
3963
3964 @item RET
3965 @kindex RET (Browse)
3966 @findex gnus-browse-select-group
3967 Enter the current group (@code{gnus-browse-select-group}). 
3968
3969 @item u
3970 @kindex u (Browse)
3971 @findex gnus-browse-unsubscribe-current-group
3972 Unsubscribe to the current group, or, as will be the case here,
3973 subscribe to it (@code{gnus-browse-unsubscribe-current-group}). 
3974
3975 @item l
3976 @itemx q
3977 @kindex q (Browse)
3978 @kindex l (Browse)
3979 @findex gnus-browse-exit
3980 Exit browse mode (@code{gnus-browse-exit}).
3981
3982 @item ?
3983 @kindex ? (Browse)
3984 @findex gnus-browse-describe-briefly
3985 Describe browse mode briefly (well, there's not much to describe, is
3986 there) (@code{gnus-browse-describe-briefly}).
3987 @end table
3988
3989 @node Exiting Gnus
3990 @section Exiting Gnus
3991 @cindex exiting Gnus
3992
3993 Yes, Gnus is ex(c)iting.
3994
3995 @table @kbd
3996 @item z
3997 @kindex z (Group)
3998 @findex gnus-group-suspend
3999 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
4000 but it kills all buffers except the Group buffer.  I'm not sure why this
4001 is a gain, but then who am I to judge?
4002
4003 @item q
4004 @kindex q (Group)
4005 @findex gnus-group-exit
4006 Quit Gnus (@code{gnus-group-exit}).
4007
4008 @item Q
4009 @kindex Q (Group)
4010 @findex gnus-group-quit
4011 Quit Gnus without saving any startup files (@code{gnus-group-quit}).
4012 @end table
4013
4014 @vindex gnus-exit-gnus-hook
4015 @vindex gnus-suspend-gnus-hook
4016 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
4017 @code{gnus-exit-gnus-hook} is called when you quit Gnus.
4018
4019 @findex gnus-unload
4020 @cindex unloading
4021 If you wish to completely unload Gnus and all its adherents, you can use
4022 the @code{gnus-unload} command.  This command is also very handy when
4023 trying to customize meta-variables.
4024
4025 Note:
4026
4027 @quotation
4028 Miss Lisa Cannifax, while sitting in English class, feels her feet go
4029 numbly heavy and herself fall into a hazy trance as the boy sitting
4030 behind her drew repeated lines with his pencil across the back of her
4031 plastic chair.
4032 @end quotation
4033
4034
4035 @node Group Topics
4036 @section Group Topics
4037 @cindex topics
4038
4039 If you read lots and lots of groups, it might be convenient to group
4040 them hierarchically according to topics.  You put your Emacs groups over
4041 here, your sex groups over there, and the rest (what, two groups or so?)
4042 you put in some misc section that you never bother with anyway.  You can
4043 even group the Emacs sex groups as a sub-topic to either the Emacs
4044 groups or the sex groups---or both!  Go wild!
4045
4046 @findex gnus-topic-mode
4047 @kindex t (Group)
4048 To get this @emph{fab} functionality you simply turn on (ooh!) the
4049 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
4050 is a toggling command.)
4051
4052 Go ahead, just try it.  I'll still be here when you get back.  La de
4053 dum...  Nice tune, that...  la la la...  What, you're back? Yes, and now
4054 press @kbd{l}.  There.  All your groups are now listed under
4055 @samp{misc}.  Doesn't that make you feel all warm and fuzzy?  Hot and
4056 bothered?
4057
4058 If you want this permanently enabled, you should add that minor mode to
4059 the hook for the group mode:
4060
4061 @lisp
4062 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
4063 @end lisp
4064
4065 @menu 
4066 * Topic Variables::    How to customize the topics the Lisp Way.
4067 * Topic Commands::     Interactive E-Z commands.
4068 * Topic Topology::     A map of the world.
4069 @end menu
4070
4071
4072 @node Topic Variables
4073 @subsection Topic Variables
4074 @cindex topic variables
4075
4076
4077 @vindex gnus-topic-unique
4078 If @code{gnus-topic-unique} is non-@code{nil}, each group will be member
4079 of (tops) one topic each.  If this is @code{nil}, each group might end
4080 up being a member of several topics.
4081
4082 Now, if you select a topic, if will fold/unfold that topic, which is
4083 really neat, I think.
4084
4085 @vindex gnus-topic-line-format
4086 The topic lines themselves are created according to the
4087 @code{gnus-topic-line-format} variable.  @xref{Formatting Variables}.
4088 Elements allowed are:
4089
4090 @table @samp
4091 @item i
4092 Indentation.
4093 @item n
4094 Topic name.
4095 @item v
4096 Visibility.
4097 @item l
4098 Level.
4099 @item g
4100 Number of groups in the topic.
4101 @item a
4102 Number of unread articles in the topic.
4103 @item A 
4104 Number of unread articles in the topic and all its subtopics. 
4105 @end table
4106
4107 @vindex gnus-topic-indent-level
4108 Each sub-topic (and the groups in the sub-topics) will be indented with
4109 @code{gnus-topic-indent-level} times the topic level number of spaces.
4110 The default is @samp{2}.
4111
4112
4113 @node Topic Commands
4114 @subsection Topic Commands
4115 @cindex topic commands
4116
4117 When the topic minor mode is turned on, a new @kbd{T} submap will be
4118 available.  In addition, a few of the standard keys change their
4119 definitions slightly.
4120
4121 @table @kbd
4122
4123 @item T n
4124 @kindex T n (Group)
4125 @findex gnus-topic-create-topic
4126 Create a new topic (@code{gnus-topic-create-subtopic}).  You will be
4127 prompted for a topic name and the name of the parent topic.
4128
4129 @item T m
4130 @kindex T m (Group)
4131 @findex gnus-topic-move-group
4132 Move the current group to some other topic
4133 (@code{gnus-topic-move-group}).  This command understands the
4134 process/prefix convention (@pxref{Process/Prefix}).
4135
4136 @item T c
4137 @kindex T c (Group)
4138 @findex gnus-topic-copy-group
4139 Copy the current group to some other topic
4140 (@code{gnus-topic-copy-group}).  This command understands the
4141 process/prefix convention (@pxref{Process/Prefix}).
4142
4143 @item T D
4144 @kindex T D (Group)
4145 @findex gnus-topic-remove-group
4146 Remove a group from the current topic (@code{gnus-topic-remove-group}).
4147 This command understands the process/prefix convention
4148 (@pxref{Process/Prefix}).
4149
4150 @item T M
4151 @kindex T M (Group)
4152 @findex gnus-topic-move-matching
4153 Move all groups that match some regular expression to a topic
4154 (@code{gnus-topic-move-matching}). 
4155
4156 @item T C
4157 @kindex T C (Group)
4158 @findex gnus-topic-copy-matching
4159 Copy all groups that match some regular expression to a topic
4160 (@code{gnus-topic-copy-matching}). 
4161
4162 @item RET
4163 @kindex RET (Group)
4164 @findex gnus-topic-select-group
4165 @itemx SPACE
4166 Either select a group or fold a topic (@code{gnus-topic-select-group}).
4167 When you perform this command on a group, you'll enter the group, as
4168 usual.  When done on a topic line, the topic will be folded (if it was
4169 visible) or unfolded (if it was folded already).  So it's basically a
4170 toggling command on topics.  In addition, if you give a numerical
4171 prefix, group on that level (and lower) will be displayed.
4172
4173 @item TAB
4174 @kindex TAB (Group)
4175 @findex gnus-topic-indent
4176 ``Indent'' the current topic so that it becomes a sub-topic of the
4177 previous topic (@code{gnus-topic-indent}).  If given a prefix,
4178 ``un-indent'' the topic instead.
4179
4180 @item C-k
4181 @kindex C-k (Group)
4182 @findex gnus-topic-kill-group
4183 Kill a group or topic (@code{gnus-topic-kill-group}).  
4184
4185 @item C-y
4186 @kindex C-y (Group)
4187 @findex gnus-topic-yank-group
4188 Yank the previously killed group or topic (@code{gnus-topic-yank-group}).
4189 Note that all topics will be yanked before all groups.
4190
4191 @item T r
4192 @kindex T r (Group)
4193 @findex gnus-topic-rename
4194 Rename a topic (@code{gnus-topic-rename}). 
4195
4196 @item T DEL
4197 @kindex T DEL (Group)
4198 @findex gnus-topic-delete
4199 Delete an empty topic (@code{gnus-topic-delete}). 
4200
4201 @item A T
4202 @kindex A T (Group)
4203 @findex gnus-topic-list-active
4204 List all groups that Gnus knows about in a topics-ified way
4205 (@code{gnus-topic-list-active}).
4206
4207 @end table
4208
4209
4210 @node Topic Topology
4211 @subsection Topic Topology
4212 @cindex topic topology
4213 @cindex topology
4214
4215 So, let's have a look at an example group buffer:
4216
4217 @example
4218 Gnus
4219   Emacs -- I wuw it!
4220        3: comp.emacs
4221        2: alt.religion.emacs
4222     Naughty Emacs
4223      452: alt.sex.emacs
4224        0: comp.talk.emacs.recovery
4225   Misc
4226        8: comp.binaries.fractals
4227       13: comp.sources.unix
4228 @end example
4229
4230 So, here we have one top-level topic, two topics under that, and one
4231 sub-topic under one of the sub-topics.  (There is always just one (1)
4232 top-level topic).  This topology can be expressed as follows:
4233
4234 @lisp
4235 (("Gnus" visible)
4236  (("Emacs -- I wuw it!" visible) 
4237   (("Naughty Emacs" visible)))
4238  (("Misc" visible)))
4239 @end lisp
4240
4241 This is in fact how the variable @code{gnus-topic-topology} would look
4242 for the display above.  That variable is saved in the @file{.newsrc.eld}
4243 file, and shouldn't be messed with manually---unless you really want
4244 to.  Since this variable is read from the @file{.newsrc.eld} file,
4245 setting it in any other startup files will have no effect.  
4246
4247 This topology shows what topics are sub-topics of what topics (right),
4248 and which topics are visible.  Two settings are currently
4249 allowed---@code{visible} and @code{invisible}.
4250
4251
4252 @node Misc Group Stuff
4253 @section Misc Group Stuff
4254
4255 @table @kbd
4256
4257 @item g
4258 @kindex g (Group)
4259 @findex gnus-group-get-new-news
4260 Check the server(s) for new articles.  If the numerical prefix is used,
4261 this command will check only groups of level @var{arg} and lower
4262 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
4263 command will force a total rereading of the active file(s) from the
4264 backend(s).
4265
4266 @item M-g
4267 @kindex M-g (Group)
4268 @findex gnus-group-get-new-news-this-group
4269 @vindex gnus-goto-next-group-when-activating
4270 Check whether new articles have arrived in the current group
4271 (@code{gnus-group-get-new-news-this-group}).  The
4272 @code{gnus-goto-next-group-when-activating} variable controls whether
4273 this command is to move point to the next group or not.  It is @code{t}
4274 by default.
4275
4276 @findex gnus-activate-all-groups
4277 @item C-c M-g
4278 @kindex C-c M-g (Group)
4279 Activate absolutely all groups (@code{gnus-activate-all-groups}). 
4280
4281 @item ^
4282 @kindex ^ (Group)
4283 @findex gnus-group-enter-server-mode
4284 Enter the server buffer (@code{gnus-group-enter-server-mode}). @xref{The
4285 Server Buffer}.
4286
4287 @item M-f
4288 @kindex M-f (Group)
4289 @findex gnus-group-fetch-faq
4290 Try to fetch the FAQ for the current group
4291 (@code{gnus-group-fetch-faq}).  Gnus will try to get the FAQ from
4292 @code{gnus-group-faq-directory}, which is usually a directory on a
4293 remote machine.  @code{ange-ftp} will be used for fetching the file.
4294
4295 @item R
4296 @kindex R (Group)
4297 @findex gnus-group-restart
4298 Restart Gnus (@code{gnus-group-restart}).
4299
4300 @item r
4301 @kindex r (Group)
4302 @findex gnus-group-read-init-file
4303 @vindex gnus-init-file
4304 Read the init file (@code{gnus-init-file}, which defaults to
4305 @file{~/.gnus}) (@code{gnus-group-read-init-file}).
4306
4307 @item s
4308 @kindex s (Group)
4309 @findex gnus-group-save-newsrc
4310 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
4311 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
4312 file(s) whether Gnus thinks it is necessary or not.
4313
4314 @item Z
4315 @kindex Z (Group)
4316 @findex gnus-group-clear-dribble
4317 Clear the dribble buffer (@code{gnus-group-clear-dribble}).
4318
4319 @item D
4320 @kindex D (Group)
4321 @findex gnus-group-describe-group
4322 Describe the current group (@code{gnus-group-describe-group}).  If given
4323 a prefix, force Gnus to re-read the description from the server.
4324
4325 @item G a
4326 @kindex G a (Group)
4327 @findex gnus-group-apropos
4328 List all groups that have names that match a regexp
4329 (@code{gnus-group-apropos}).
4330
4331 @item G d
4332 @kindex G d (Group)
4333 @findex gnus-group-description-apropos
4334 List all groups that have names or descriptions that match a regexp
4335 (@code{gnus-group-description-apropos}).
4336
4337 @item a
4338 @kindex a (Group)
4339 @findex gnus-group-post-news
4340 Post an article to a group (@code{gnus-group-post-news}).  The current
4341 group name will be used as the default.
4342
4343 @item m
4344 @kindex m (Group)
4345 @findex gnus-group-mail
4346 Mail a message somewhere (@code{gnus-group-mail}).
4347
4348 @item C-x C-t
4349 @kindex C-x C-t (Group)
4350 @findex gnus-group-transpose-groups
4351 Transpose two groups (@code{gnus-group-transpose-groups}).
4352
4353 @item V
4354 @kindex V (Group)
4355 @findex gnus-version
4356 Display current Gnus version numbers (@code{gnus-version}).
4357
4358 @item M-d
4359 @kindex M-d (Group)
4360 @findex gnus-group-describe-all-groups
4361 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
4362 prefix, force Gnus to re-read the description file from the server.
4363
4364 @item ?
4365 @kindex ? (Group)
4366 @findex gnus-group-describe-briefly
4367 Give a very short help message (@code{gnus-group-describe-briefly}).
4368
4369 @item C-c C-i
4370 @kindex C-c C-i (Group)
4371 @findex gnus-info-find-node
4372 Go to the Gnus info node (@code{gnus-info-find-node}).
4373 @end table
4374
4375 @vindex gnus-group-prepare-hook
4376 @code{gnus-group-prepare-hook} is called after the group buffer is
4377 generated.  It may be used to modify the buffer in some strange,
4378 unnatural way.
4379
4380 @node The Summary Buffer
4381 @chapter The Summary Buffer
4382 @cindex summary buffer
4383
4384 A line for each article is displayed in the summary buffer.  You can
4385 move around, read articles, post articles and reply to articles.
4386
4387 @menu
4388 * Summary Buffer Format::       Deciding how the summary buffer is to look.
4389 * Summary Maneuvering::         Moving around the summary buffer.
4390 * Choosing Articles::           Reading articles.
4391 * Paging the Article::          Scrolling the current article.
4392 * Reply Followup and Post::     Posting articles.
4393 * Canceling and Superseding::   ``Whoops, I shouldn't have called him that.''
4394 * Marking Articles::            Marking articles as read, expirable, etc.
4395 * Limiting::                    You can limit the summary buffer.
4396 * Threading::                   How threads are made.
4397 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
4398 * Article Caching::             You may store articles in a cache.
4399 * Persistent Articles::         Making articles expiry-resistant.
4400 * Article Backlog::             Having already read articles hang around.
4401 * Exiting the Summary Buffer::  Returning to the Group buffer.
4402 * Process/Prefix::              A convention used by many treatment commands.
4403 * Saving Articles::             Ways of customizing article saving.
4404 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
4405 * Article Treatment::           The article buffer can be mangled at will.
4406 * Summary Sorting::             You can sort the summary buffer four ways.
4407 * Finding the Parent::          No child support? Get the parent.
4408 * Alternative Approaches::      Reading using non-default summaries.
4409 * Tree Display::                A more visual display of threads.
4410 * Mail Group Commands::         Some commands can only be used in mail groups.
4411 * Various Summary Stuff::       What didn't fit anywhere else.
4412 @end menu
4413
4414
4415 @node Summary Buffer Format
4416 @section Summary Buffer Format
4417 @cindex summary buffer format
4418
4419 @menu
4420 * Summary Buffer Lines::     You can specify how summary lines should look.
4421 * Summary Buffer Mode Line:: You can say how the mode line should look.
4422 @end menu
4423
4424 @findex mail-extract-address-components
4425 @findex gnus-extract-address-components
4426 @vindex gnus-extract-address-components
4427 Gnus will use the value of the @code{gnus-extract-address-components}
4428 variable as a function for getting the name and address parts of a
4429 @code{From} header.  Two pre-defined function exist:
4430 @code{gnus-extract-address-components}, which is the default, quite
4431 fast, and too simplistic solution; and
4432 @code{mail-extract-address-components}, which works very nicely, but is
4433 slower.
4434
4435 @vindex gnus-summary-same-subject
4436 @code{gnus-summary-same-subject} is a string indicating that the current
4437 article has the same subject as the previous.  This string will be used
4438 with those specs that require it.  The default is @samp{""}.
4439
4440 @node Summary Buffer Lines
4441 @subsection Summary Buffer Lines
4442
4443 @vindex gnus-summary-line-format
4444 You can change the format of the lines in the summary buffer by changing
4445 the @code{gnus-summary-line-format} variable.  It works along the same
4446 lines a a normal @code{format} string, with some extensions.
4447
4448 The default string is @samp{"%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n"}.
4449
4450 The following format specification characters are understood:
4451
4452 @table @samp
4453 @item N 
4454 Article number.
4455 @item S
4456 Subject string.
4457 @item s
4458 Subject if the article is the root, @code{gnus-summary-same-subject}
4459 otherwise. 
4460 @item F
4461 Full @code{From} line.
4462 @item n
4463 The name (from the @code{From} header).
4464 @item a
4465 The name (from the @code{From} header).  This differs from the @code{n}
4466 spec in that it uses @code{gnus-extract-address-components}, which is
4467 slower, but may be more thorough.
4468 @item A
4469 The address (from the @code{From} header).  This works the same way as
4470 the @code{a} spec.
4471 @item L
4472 Number of lines in the article.
4473 @item c
4474 Number of characters in the article.
4475 @item I
4476 Indentation based on thread level (@pxref{Customizing Threading}).
4477 @item T
4478 Nothing if the article is a root and lots of spaces if it isn't (it
4479 pushes everything after it off the screen).
4480 @item \[
4481 Opening bracket, which is normally @samp{\[}, but can also be @samp{<}
4482 for adopted articles.
4483 @item \]
4484 Closing bracket, which is normally @samp{\]}, but can also be @samp{>}
4485 for adopted articles.
4486 @item <
4487 One space for each thread level.
4488 @item >
4489 Twenty minus thread level spaces.
4490 @item U
4491 Unread.
4492 @item R
4493 Replied.
4494 @item i
4495 Score as a number.
4496 @item z
4497 @vindex gnus-summary-zcore-fuzz
4498 Zcore, @samp{+} if above the default level and @samp{-} if below the
4499 default level.  If the difference between
4500 @code{gnus-summary-default-level} and the score is less than
4501 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
4502 @item V
4503 Total thread score.
4504 @item x
4505 @code{Xref}.
4506 @item D
4507 @code{Date}.
4508 @item M
4509 @code{Message-ID}.
4510 @item r
4511 @code{References}.
4512 @item t
4513 Number of articles in the current sub-thread.  Using this spec will slow
4514 down summary buffer generation somewhat.
4515 @item e
4516 A single character will be displayed if the article has any children. 
4517 @item u
4518 User defined specifier.  The next character in the format string should
4519 be a letter.  @sc{gnus} will call the function
4520 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
4521 following @samp{%u}.  The function will be passed the current header as
4522 argument.  The function should return a string, which will be inserted
4523 into the summary just like information from any other summary specifier.
4524 @end table
4525
4526 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
4527 have to be handled with care.  For reasons of efficiency, Gnus will
4528 compute what column these characters will end up in, and ``hard-code''
4529 that.  This means that it is illegal to have these specs after a
4530 variable-length spec.  Well, you might not be arrested, but your summary
4531 buffer will look strange, which is bad enough.
4532
4533 The smart choice is to have these specs as far to the left as possible.
4534 (Isn't that the case with everything, though?  But I digress.)
4535
4536 This restriction may disappear in later versions of Gnus.
4537
4538 @node Summary Buffer Mode Line
4539 @subsection Summary Buffer Mode Line
4540
4541 @vindex gnus-summary-mode-line-format
4542 You can also change the format of the summary mode bar.  Set
4543 @code{gnus-summary-mode-line-format} to whatever you like.  Here are the
4544 elements you can play with:
4545
4546 @table @samp
4547 @item G
4548 Group name.
4549 @item p
4550 Unprefixed group name.
4551 @item A
4552 Current article number.
4553 @item V
4554 Gnus version.
4555 @item U
4556 Number of unread articles in this group.
4557 @item e
4558 Number of unselected articles in this group.
4559 @item Z
4560 A string with the number of unread and unselected articles represented
4561 either as @samp{<%U(+%u) more>} if there are both unread and unselected
4562 articles, and just as @samp{<%U more>} if there are just unread articles
4563 and no unselected ones.
4564 @item g
4565 Shortish group name.  For instance, @samp{rec.arts.anime} will be
4566 shortened to @samp{r.a.anime}. 
4567 @item S
4568 Subject of the current article.
4569 @item u
4570 Used-defined spec.
4571 @item s
4572 Name of the current score file.
4573 @item d
4574 Number of dormant articles.
4575 @item t
4576 Number of ticked articles.
4577 @item r
4578 Number of articles that have been marked as read in this session. 
4579 @item E
4580 Number of articles expunged by the score files.
4581 @end table
4582
4583
4584 @node Summary Maneuvering
4585 @section Summary Maneuvering
4586 @cindex summary movement
4587
4588 All the straight movement commands understand the numeric prefix and
4589 behave pretty much as you'd expect. 
4590
4591 None of these commands select articles.
4592
4593 @table @kbd
4594 @item G M-n
4595 @itemx M-n
4596 @kindex M-n (Summary)
4597 @kindex G M-n (Summary)
4598 @findex gnus-summary-next-unread-subject
4599 Go to the next summary line of an unread article
4600 (@code{gnus-summary-next-unread-subject}). 
4601
4602 @item G M-p
4603 @itemx M-p
4604 @kindex M-p (Summary)
4605 @kindex G M-p (Summary)
4606 @findex gnus-summary-prev-unread-subject
4607 Go to the previous summary line of an unread article
4608 (@code{gnus-summary-prev-unread-subject}). 
4609
4610 @item G g
4611 @itemx j
4612 @kindex j (Summary)
4613 @kindex G g (Summary)
4614 @findex gnus-summary-goto-subject
4615 Ask for an article number and then go to this summary line
4616 (@code{gnus-summary-goto-subject}). 
4617 @end table
4618
4619 If Gnus asks you to press a key to confirm going to the next group, you
4620 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
4621 buffer, searching for the next group to read without actually returning
4622 to the group buffer.
4623
4624 Variables related to summary movement:
4625
4626 @table @code
4627
4628 @vindex gnus-auto-select-next
4629 @item gnus-auto-select-next
4630 If you are at the end of the group and issue one of the movement
4631 commands, Gnus will offer to go to the next group.  If this variable is
4632 @code{t} and the next group is empty, Gnus will exit summary mode and
4633 return to the group buffer.  If this variable is neither @code{t} nor
4634 @code{nil}, Gnus will select the next group, no matter whether it has
4635 any unread articles or not.  As a special case, if this variable is
4636 @code{quietly}, Gnus will select the next group without asking for
4637 confirmation.  If this variable is @code{almost-quietly}, the same will
4638 happen only if you are located on the last article in the group.
4639 Finally, if this variable is @code{slightly-quietly}, the @kbd{Z n}
4640 command will go to the next group without confirmation.  Also
4641 @xref{Group Levels}.
4642
4643 @item gnus-auto-select-same
4644 @vindex gnus-auto-select-same
4645 If non-@code{nil}, all the movement commands will try to go to the next
4646 article with the same subject as the current.  This variable is not
4647 particularly useful if you use a threaded display.
4648
4649 @item gnus-summary-check-current
4650 @vindex gnus-summary-check-current
4651 If non-@code{nil}, all the ``unread'' movement commands will not proceed
4652 to the next (or previous) article if the current article is unread.
4653 Instead, they will choose the current article.
4654
4655 @item gnus-auto-center-summary
4656 @vindex gnus-auto-center-summary
4657 If non-@code{nil}, Gnus will keep the point in the summary buffer
4658 centered at all times.  This makes things quite tidy, but if you have a
4659 slow network connection, or simply do not like this un-Emacsism, you can
4660 set this variable to @code{nil} to get the normal Emacs scrolling
4661 action.  This will also inhibit horizontal re-centering of the summary
4662 buffer, which might make it more inconvenient to read extremely long
4663 threads.
4664
4665 @end table
4666
4667
4668 @node Choosing Articles
4669 @section Choosing Articles
4670 @cindex selecting articles
4671
4672 None of the following movement commands understand the numeric prefix,
4673 and they all select and display an article.
4674
4675 @table @kbd
4676 @item SPACE
4677 @kindex SPACE (Summary)
4678 @findex gnus-summary-next-page
4679 Select the current article, or, if that one's read already, the next
4680 unread article (@code{gnus-summary-next-page}).
4681
4682 @item G n
4683 @itemx n
4684 @kindex n (Summary)
4685 @kindex G n (Summary)
4686 @findex gnus-summary-next-unread-article
4687 Go to next unread article (@code{gnus-summary-next-unread-article}).
4688
4689 @item G p
4690 @itemx p
4691 @kindex p (Summary)
4692 @findex gnus-summary-prev-unread-article
4693 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
4694
4695 @item G N
4696 @itemx N
4697 @kindex N (Summary)
4698 @kindex G N (Summary)
4699 @findex gnus-summary-next-article
4700 Go to the next article (@code{gnus-summary-next-article}).
4701
4702 @item G P
4703 @itemx P
4704 @kindex P (Summary)
4705 @kindex G P (Summary)
4706 @findex gnus-summary-prev-article
4707 Go to the previous article (@code{gnus-summary-prev-article}).
4708
4709 @item G C-n
4710 @kindex G C-n (Summary)
4711 @findex gnus-summary-next-same-subject
4712 Go to the next article with the same subject
4713 (@code{gnus-summary-next-same-subject}). 
4714
4715 @item G C-p
4716 @kindex G C-p (Summary)
4717 @findex gnus-summary-prev-same-subject
4718 Go to the previous article with the same subject
4719 (@code{gnus-summary-prev-same-subject}). 
4720
4721 @item G f
4722 @itemx .
4723 @kindex G f  (Summary)
4724 @kindex .  (Summary)
4725 @findex gnus-summary-first-unread-article
4726 Go to the first unread article
4727 (@code{gnus-summary-first-unread-article}).
4728
4729 @item G b
4730 @itemx ,
4731 @kindex G b (Summary)
4732 @kindex , (Summary)
4733 Go to the article with the highest score
4734 (@code{gnus-summary-best-unread-article}). 
4735
4736 @item G l
4737 @itemx l
4738 @kindex l (Summary)
4739 @kindex G l (Summary)
4740 @findex gnus-summary-goto-last-article
4741 Go to the previous article read (@code{gnus-summary-goto-last-article}).
4742
4743 @item G p
4744 @kindex G p (Summary)
4745 @findex gnus-summary-pop-article
4746 Pop an article off the summary history and go to this article
4747 (@code{gnus-summary-pop-article}).  This command differs from the
4748 command above in that you can pop as many previous articles off the
4749 history as you like.
4750 @end table
4751
4752 Some variables that are relevant for moving and selecting articles:
4753
4754 @table @code
4755 @item gnus-auto-extend-newsgroup
4756 @vindex gnus-auto-extend-newsgroup
4757 All the movement commands will try to go to the previous (or next)
4758 article, even if that article isn't displayed in the Summary buffer if
4759 this variable is non-@code{nil}.  Gnus will then fetch the article from
4760 the server and display it in the article buffer.
4761
4762 @item gnus-select-article-hook
4763 @vindex gnus-select-article-hook
4764 This hook is called whenever an article is selected.  By default it
4765 exposes any threads hidden under the selected article.
4766
4767 @item gnus-mark-article-hook
4768 @vindex gnus-mark-article-hook
4769 This hook is called whenever an article is selected.  It is intended to
4770 be used for marking articles as read.
4771
4772 @item gnus-visual-mark-article-hook
4773 @vindex gnus-visual-mark-article-hook
4774 This hook is run after selecting an article.  It is meant to be used for
4775 highlighting the article in some way.  It is not run if
4776 @code{gnus-visual} is @code{nil}.
4777
4778 @item gnus-summary-update-hook
4779 @vindex gnus-summary-update-hook
4780 This hook is called when a summary line is changed.  It is not run if
4781 @code{gnus-visual} is @code{nil}.
4782
4783 @item gnus-summary-selected-face
4784 @vindex gnus-summary-selected-face
4785 This is the face (or @dfn{font} as some people call it) that is used to
4786 highlight the current article in the summary buffer.
4787
4788 @item gnus-summary-highlight
4789 @vindex gnus-summary-highlight
4790 Summary lines are highlighted according to this variable, which is a
4791 list where the elements are on the format @code{(FORM . FACE)}.  If you
4792 would, for instance, like ticked articles to be italic and high-scored
4793 articles to be bold, you could set this variable to something like
4794 @lisp
4795 (((eq mark gnus-ticked-mark) . italic)
4796  ((> score default) . bold))
4797 @end lisp
4798 As you may have guessed, if @var{FORM} returns a non-@code{nil} value,
4799 @var{FACE} will be applied to the line.
4800 @end table
4801
4802 @node Paging the Article
4803 @section Scrolling the Article
4804 @cindex article scrolling
4805
4806 @table @kbd
4807
4808 @item SPACE
4809 @kindex SPACE (Summary)
4810 @findex gnus-summary-next-page
4811 Pressing @kbd{SPACE} will scroll the current article forward one page,
4812 or, if you have come to the end of the current article, will choose the
4813 next article (@code{gnus-summary-next-page}).
4814
4815 @item DEL
4816 @kindex DEL (Summary)
4817 @findex gnus-summary-prev-page
4818 Scroll the current article back one page (@code{gnus-summary-prev-page}). 
4819
4820 @item RET
4821 @kindex RET (Summary)
4822 @findex gnus-summary-scroll-up
4823 Scroll the current article one line forward
4824 (@code{gnus-summary-scroll-up}).
4825
4826 @item A <
4827 @itemx <
4828 @kindex < (Summary)
4829 @kindex A < (Summary)
4830 @findex gnus-summary-beginning-of-article
4831 Scroll to the beginning of the article
4832 (@code{gnus-summary-beginning-of-article}).
4833
4834 @item A >
4835 @itemx >
4836 @kindex > (Summary)
4837 @kindex A > (Summary)
4838 @findex gnus-summary-end-of-article
4839 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
4840
4841 @item A s 
4842 @kindex A s (Summary)
4843 @findex gnus-summary-isearch-article
4844 Perform an isearch in the article buffer
4845 (@code{gnus-summary-isearch-article}). 
4846
4847 @end table
4848
4849 @node Reply Followup and Post
4850 @section Reply, Followup and Post
4851 @cindex reply
4852 @cindex followup
4853 @cindex post
4854
4855 @kindex C-c C-c (Post)
4856 All the commands for posting and mailing will put you in a post or mail
4857 buffer where you can edit the article all you like, before you send the
4858 article by pressing @kbd{C-c C-c}.  If you are in a foreign news group,
4859 and you wish to post the article using the foreign server, you can give
4860 a prefix to @kbd{C-c C-c} to make Gnus try to post using the foreign
4861 server. 
4862
4863 @menu 
4864 * Mail::                 Mailing & replying.
4865 * Post::                 Posting and following up.
4866 * Posting Server::       What server should you post via?
4867 * Mail and Post::        Mailing and posting at the same time.
4868 * Archived Messages::    Where Gnus stores the messages you've sent.
4869 * Posting Styles::       An easier way to configure some key elements.
4870 * Drafts::               Postponing messages and rejected messages.
4871 * Rejected Articles::    What happens if the server doesn't like your article?
4872 @end menu
4873
4874 @node Mail
4875 @subsection Mail
4876
4877 Commands for composing a mail message:
4878
4879 @table @kbd
4880
4881 @item S r
4882 @itemx r
4883 @kindex S r (Summary)
4884 @kindex r (Summary)
4885 @findex gnus-summary-reply
4886 Mail a reply to the author of the current article
4887 (@code{gnus-summary-reply}). 
4888
4889 @item S R
4890 @itemx R
4891 @kindex R (Summary)
4892 @kindex S R (Summary)
4893 @findex gnus-summary-reply-with-original
4894 Mail a reply to the author of the current article and include the
4895 original message (@code{gnus-summary-reply-with-original}).  This
4896 command uses the process/prefix convention.
4897
4898 @item S o m
4899 @kindex S o m (Summary)
4900 @findex gnus-summary-mail-forward
4901 Forward the current article to some other person
4902 (@code{gnus-summary-mail-forward}). 
4903
4904 @item S o p
4905 @kindex S o p (Summary)
4906 @findex gnus-summary-post-forward
4907 Forward the current article to a newsgroup
4908 (@code{gnus-summary-post-forward}).
4909
4910 @item S m
4911 @itemx m
4912 @kindex m (Summary)
4913 @kindex S m (Summary)
4914 @findex gnus-summary-mail-other-window
4915 Send a mail to some other person
4916 (@code{gnus-summary-mail-other-window}).
4917
4918 @item S D b
4919 @kindex S D b (Summary)
4920 @findex gnus-summary-resend-bounced-mail
4921 If you have sent a mail, but the mail was bounced back to you for some
4922 reason (wrong address, transient failure), you can use this command to
4923 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
4924 will be popped into a mail buffer where you can edit the headers before
4925 sending the mail off again.  The headers that match the regexp
4926 @code{gnus-bounced-headers-junk} (default @samp{^Received:}) are
4927 automatically deleted first.  If you give a prefix to this command, and
4928 the bounced mail is a reply to some other mail, Gnus will try to fetch
4929 that mail and display it for easy perusal of its headers.  This might
4930 very well fail, though.
4931
4932 @item S D r
4933 @kindex S D r (Summary)
4934 @findex gnus-summary-resend-message
4935 Not to be confused with the previous command,
4936 @code{gnus-summary-resend-message} will prompt you for an address to
4937 send the current message off to, and then send it to that place.  The
4938 headers of the message won't be altered---but lots of headers that say
4939 @samp{Resent-To}, @samp{Resent-From} and so on will be added.  This
4940 means that you actually send a mail to someone that has a @samp{To}
4941 header that (probably) points to yourself.  This will confuse people.
4942 So, natcherly you'll only do that if you're really eVIl.  
4943
4944 This command is mainly used if you have several accounts and want to
4945 ship a mail to a different account of yours.  (If you're both
4946 @samp{root} and @samp{postmaster} and get a mail for @samp{postmaster}
4947 to the @samp{root} account, you may want to resend it to
4948 @samp{postmaster}.  Ordnung muss sein!
4949
4950 @item S O m
4951 @kindex S O m (Summary)
4952 @findex gnus-uu-digest-mail-forward
4953 Digest the current series and forward the result using mail
4954 (@code{gnus-uu-digest-mail-forward}).  This command uses the
4955 process/prefix convention (@pxref{Process/Prefix}). 
4956
4957 @item S O p
4958 @kindex S O p (Summary)
4959 @findex gnus-uu-digest-post-forward
4960 Digest the current series and forward the result to a newsgroup
4961 (@code{gnus-uu-digest-mail-forward}).  
4962 @end table
4963
4964 Variables for customizing outgoing mail:
4965
4966 @table @code
4967 @item gnus-reply-to-function
4968 @vindex gnus-reply-to-function
4969 Gnus uses the normal methods to determine where replies are to go, but
4970 you can change the behavior to suit your needs by fiddling with this
4971 variable.
4972
4973 If you want the replies to go to the @samp{Sender} instead of the
4974 @samp{From} in the group @samp{mail.stupid-list}, you could do something
4975 like this:
4976
4977 @lisp
4978 (setq gnus-reply-to-function
4979       (lambda (group)
4980        (cond ((string= group "mail.stupid-list")
4981                (mail-fetch-field "sender"))
4982              (t
4983               nil))))
4984 @end lisp
4985
4986 This function will be called narrowed to the head of the article that is
4987 being replied to.
4988
4989 As you can see, this function should return a string if it has an
4990 opinion as to what the To header should be.  If it does not, it should
4991 just return @code{nil}, and the normal methods for determining the To
4992 header will be used.
4993
4994 This function can also return a list.  In that case, each list element
4995 should be a cons, where the car should be the name of an header
4996 (eg. @samp{Cc}) and the cdr should be the header value
4997 (eg. @samp{larsi@@ifi.uio.no}).  All these headers will be inserted into
4998 the head of the outgoing mail. 
4999
5000 @item gnus-mail-send-method
5001 @vindex gnus-mail-send-method
5002 This variable says how a mail should be mailed.  It uses the function in
5003 the @code{send-mail-function} variable as the default.
5004
5005 @item gnus-uu-digest-headers
5006 @vindex gnus-uu-digest-headers
5007 List of regexps to match headers included in digested messages.  The
5008 headers will be included in the sequence they are matched.
5009
5010 @item gnus-mail-hook
5011 @vindex gnus-mail-hook
5012 Hook called as the last thing after setting up a mail buffer.
5013
5014 @item gnus-required-mail-headers
5015 @vindex gnus-required-mail-headers
5016 Gnus will generate headers in all outgoing mail instead of letting
5017 @code{sendmail} do it for us.  This makes it possible to do more neat
5018 stuff, like putting mail without sending it, do hairy @code{Fcc}
5019 handling, and much more.  This variable controls what headers Gnus will
5020 generate, and is of the exact same form as @code{gnus-required-headers},
5021 which does the same for news articles (@pxref{Post}). 
5022
5023 The @code{Newsgroups} header is illegal in this list, while @code{To} is
5024 required, and @code{X-Mailer} can be added if you so should want.
5025
5026 @findex gnus-forward-start-separator
5027 @item gnus-forward-start-separator
5028 Delimiter inserted before forwarded messages.
5029
5030 @findex gnus-forward-end-separator
5031 @item gnus-forward-end-separator
5032 Delimiter inserted after forwarded messages.
5033
5034 @vindex gnus-signature-before-forwarded-message
5035 @item gnus-signature-before-forwarded-message
5036 If this variable is @code{t}, which it is by default, your personal
5037 signature will be inserted before the forwarded message.  If not, the
5038 forwarded message will be inserted first in the new mail.
5039
5040 @item gnus-forward-included-headers
5041 @vindex gnus-forward-included-headers
5042 Regexp matching header lines to be included in forwarded messages.  It
5043 uses the same regexp as @code{gnus-visible-headers} by default.
5044
5045 @end table
5046
5047 @kindex C-c C-c (Mail)
5048 @kindex C-c C-p (Mail)
5049 @findex gnus-put-message
5050 You normally send a mail message by pressing @kbd{C-c C-c}.  However,
5051 you may wish to just put the mail message you have just written in your
5052 own local mail group instead of sending it.  Sounds quite unlikely, but
5053 I found that useful, so you can now also press @kbd{C-c C-p} to
5054 @dfn{put} the article in the current mail group, or, if there is no such
5055 thing, you will be prompted for a mail group, and then the article will
5056 be put there.  This means that the article is @dfn{not} mailed.  
5057
5058 @findex gnus-kill-message-buffer
5059 @cindex kill mail buffer
5060 @kindex C-x k (Mail)
5061 @kindex C-x k (Post)
5062 If enter a mail (or post) buffer and then decide not to compose a
5063 message after all, you'd normally just kill the buffer with @kbd{C-x k}.
5064 However, since the mail and post buffers are associated with articles in
5065 the draft group, this will leave lots of rubbish articles in the draft
5066 group.  To avoid that problem, kill mail and post buffer with @kbd{C-c
5067 C-k} (@code{gnus-kill-message-buffer}) instead.  This will make sure
5068 that everything is properly cleaned up before the buffer is killed.
5069
5070 There are three ``methods'' for handling all mail.  The default is
5071 @code{sendmail}.  Some people like what @code{mh} does better, and some
5072 people prefer @code{vm}.
5073
5074 Three variables for customizing what to use when:
5075
5076 @table @code
5077
5078 @vindex gnus-mail-reply-method
5079 @item gnus-mail-reply-method
5080 This function is used to compose replies.  The three functions available
5081 are:
5082
5083 @findex gnus-mail-reply-using-vm
5084 @findex gnus-mail-reply-using-mhe
5085 @findex gnus-mail-reply-using-mail
5086 @itemize @bullet
5087 @item 
5088 @code{gnus-mail-reply-using-mail} (sendmail)
5089 @item 
5090 @code{gnus-mail-reply-using-mhe} (mh)
5091 @item
5092 @code{gnus-mail-reply-using-vm} (vm)
5093 @end itemize
5094
5095 @vindex gnus-mail-forward-method
5096 @item gnus-mail-forward-method
5097 This function is used to forward messages.  The three functions available
5098 are:
5099
5100 @findex gnus-mail-forward-using-vm
5101 @findex gnus-mail-forward-using-mhe
5102 @findex gnus-mail-forward-using-mail
5103 @itemize @bullet
5104 @item 
5105 @code{gnus-mail-forward-using-mail} (sendmail)
5106 @item 
5107 @code{gnus-mail-forward-using-mhe} (mh)
5108 @item
5109 @code{gnus-mail-forward-using-vm} (vm)
5110 @end itemize
5111
5112 @vindex gnus-mail-other-window-method
5113 @item gnus-mail-other-window-method
5114 This function is used to send mails.  The three functions available are:
5115
5116 @findex gnus-mail-other-window-using-vm
5117 @findex gnus-mail-other-window-using-mhe
5118 @findex gnus-mail-other-window-using-mail
5119 @itemize @bullet
5120 @item 
5121 @code{gnus-mail-other-window-using-mail} (sendmail)
5122 @item 
5123 @code{gnus-mail-other-window-using-mhe} (mh)
5124 @item
5125 @code{gnus-mail-other-window-using-vm} (vm)
5126 @end itemize
5127
5128 @end table
5129
5130
5131 @node Post
5132 @subsection Post
5133
5134 Commands for posting an article:
5135
5136 @table @kbd
5137 @item S p
5138 @itemx a
5139 @kindex a (Summary)
5140 @kindex S p (Summary)
5141 @findex gnus-summary-post-news
5142 Post an article to the current group
5143 (@code{gnus-summary-post-news}).
5144
5145 @item S f
5146 @itemx f
5147 @kindex f (Summary)
5148 @kindex S f (Summary)
5149 @findex gnus-summary-followup
5150 Post a followup to the current article (@code{gnus-summary-followup}).
5151
5152 @item S F
5153 @itemx F
5154 @kindex S F (Summary)
5155 @kindex F (Summary)
5156 @findex gnus-summary-followup-with-original
5157 Post a followup to the current article and include the original message
5158 (@code{gnus-summary-followup-with-original}).   This command uses the
5159 process/prefix convention.
5160
5161 @item S u
5162 @kindex S u (Summary)
5163 @findex gnus-uu-post-news
5164 Uuencode a file, split it into parts, and post it as a series
5165 (@code{gnus-uu-post-news}). (@pxref{Uuencoding and Posting}). 
5166 @end table
5167
5168 @vindex gnus-required-headers
5169 @code{gnus-required-headers} a list of header symbols.  These headers
5170 will either be automatically generated, or, if that's impossible, they
5171 will be prompted for.  The following symbols are legal:
5172
5173 @table @code
5174
5175 @item From
5176 This required header will be filled out with the result of the
5177 @code{gnus-inews-user-name} function, which depends on the
5178 @code{gnus-user-from-line}, @code{gnus-user-login-name},
5179 @code{gnus-local-domain} and @code{user-mail-address} variables.
5180
5181 @item Subject
5182 This required header will be prompted for if not present already. 
5183
5184 @item Newsgroups
5185 This required header says which newsgroups the article is to be posted
5186 to.  If it isn't present already, it will be prompted for.
5187
5188 @item Organization
5189 @cindex organization
5190 @vindex gnus-local-organization
5191 @vindex gnus-organization-file
5192 This optional header will be filled out depending on the
5193 @code{gnus-local-organization} variable.  @code{gnus-organization-file}
5194 will be used if that variable is nil.
5195
5196 @item Lines
5197 This optional header will be computed by Gnus.
5198
5199 @item Message-ID
5200 @cindex Message-ID
5201 This required header will be generated by Gnus.  A unique ID will be
5202 created based on date, time, user name and system name.
5203
5204 @item X-Newsreader
5205 @cindex X-Newsreader
5206 This optional header will be filled out with the Gnus version numbers. 
5207
5208 @item Expires
5209 @vindex gnus-article-expires
5210 @cindex Expires
5211 This extremely optional header will be inserted according to the
5212 @code{gnus-article-expires} variable.  It is highly deprecated and
5213 shouldn't be used unless you know what you're doing.
5214
5215 @item Distribution
5216 This optional header is filled out according to the
5217 @code{gnus-distribution-function} variable.  It is a deprecated and much
5218 misunderstood header.
5219 @end table
5220
5221 In addition, you can enter conses into this list.  The car of this cons
5222 should be a symbol.  This symbol's name is the name of the header, and
5223 the cdr can either be a string to be entered verbatim as the value of
5224 this header, or it can be a function to be called.  This function should
5225 return a string to be inserted.  For instance, if you want to insert
5226 @samp{Mime-Version: 1.0}, you should enter @code{(Mime-Version . "1.0")}
5227 into the list.  If you want to insert a funny quote, you could enter
5228 something like @code{(X-Yow . yow)} into the list.  The function
5229 @code{yow} will then be called without any arguments.
5230
5231 The list contains a cons where the car of the cons is @code{optional},
5232 the cdr of this cons will only be inserted if it is non-@code{nil}.
5233
5234 Other variables for customizing outgoing articles:
5235
5236 @table @code
5237 @item nntp-news-default-headers
5238 @vindex nntp-news-default-headers
5239 If non-@code{nil}, this variable will override
5240 @code{mail-default-headers} when posting.  This variable should then be
5241 a string.  This string will be inserted, as is, in the head of all
5242 outgoing articles.
5243
5244 @item gnus-use-followup-to
5245 @vindex gnus-use-followup-to
5246 If @code{nil}, always ignore the Followup-To header.  If it is @code{t},
5247 use its value, but ignore the special value @samp{poster}, which will
5248 send the followup as a reply mail to the person you are responding to.
5249 If it is the symbol @code{ask}, query the user before posting.
5250 If it is the symbol @code{use}, always use the value.
5251
5252 @item gnus-followup-to-function
5253 @vindex gnus-followup-to-function
5254 This variable is most useful in mail groups, where ``following up'' really
5255 means sending a mail to a list address.  Gnus uses the normal methods to
5256 determine where follow-ups are to go, but you can change the behavior
5257 to suit your needs by fiddling with this variable.
5258
5259 If you want the followups to go to the @samp{Sender} instead of the
5260 @samp{From} in the group @samp{mail.stupid-list}, you could do something
5261 like this:
5262
5263 @lisp
5264 (setq gnus-followup-to-function
5265       (lambda (group)
5266        (cond ((string= group "mail.stupid-list")
5267                (mail-fetch-field "sender"))
5268              (t
5269               nil))))
5270 @end lisp
5271
5272 This function will be called narrowed to header of the article that is
5273 being followed up.
5274
5275 @item gnus-removable-headers
5276 @vindex gnus-removable-headers
5277 Some headers that are generated are toxic to the @sc{nntp} server.
5278 These include the @code{NNTP-Posting-Host}, @code{Bcc} and @code{Xref},
5279 so these headers are deleted if they are present in this list of
5280 symbols.
5281
5282 @item gnus-deletable-headers
5283 @vindex gnus-deletable-headers
5284 Headers in this list that were previously generated by Gnus will be
5285 deleted before posting.  Let's say you post an article.  Then you decide
5286 to post it again to some other group, you naughty boy, so you jump back
5287 to the @code{*post-buf*} buffer, edit the @code{Newsgroups} line, and
5288 ship it off again.  By default, this variable makes sure that the old
5289 generated @code{Message-ID} is deleted, and a new one generated.  If
5290 this isn't done, the entire empire would probably crumble, anarchy would
5291 prevail, and cats would start walking on two legs and rule the world.
5292 Allegedly. 
5293
5294 @item gnus-signature-function
5295 @vindex gnus-signature-function
5296 If non-@code{nil}, this variable should be a function that returns a
5297 signature file name.  The function will be called with the name of the
5298 group being posted to.  If the function returns a string that doesn't
5299 correspond to a file, the string itself is inserted.  If the function
5300 returns @code{nil}, the @code{gnus-signature-file} variable will be used
5301 instead.
5302
5303 @item gnus-post-prepare-function
5304 @vindex gnus-post-prepare-function
5305 This function is called with the name of the current group after the
5306 post buffer has been initialized, and can be used for inserting a
5307 signature.  Nice if you use different signatures in different groups.
5308
5309 @item gnus-post-prepare-hook
5310 @vindex gnus-post-prepare-hook
5311 This hook is called after a post buffer has been prepared.  If you want
5312 to insert a signature at this point, you could put
5313 @code{gnus-inews-insert-signature} into this hook.
5314
5315 @item news-reply-header-hook
5316 @vindex news-reply-header-hook
5317 A related variable when following up and replying is this variable,
5318 which inserts the @dfn{quote line}.  The default value is:
5319
5320 @lisp
5321 (defvar news-reply-header-hook
5322   (lambda ()
5323     (insert "In article " news-reply-yank-message-id
5324             " " news-reply-yank-from " writes:\n\n")))
5325 @end lisp
5326
5327 This will create lines like:
5328
5329 @example
5330 In article <zngay8jrql@@eyesore.no> Lars Mars <lars@@eyesore.no> writes:
5331 @end example
5332
5333 Having the @code{Message-ID} in this line is probably overkill, so I
5334 would suggest this hook instead:
5335
5336 @lisp
5337 (setq news-reply-header-hook
5338   (lambda () (insert news-reply-yank-from " writes:\n\n")))
5339 @end lisp
5340
5341 @item gnus-prepare-article-hook
5342 @vindex gnus-prepare-article-hook
5343 This hook is called before the headers have been prepared.  
5344
5345 @item gnus-inews-article-function
5346 @vindex gnus-inews-article-function
5347 This function is used to do the actual article processing and header
5348 checking/generation.  
5349
5350 @item gnus-inews-article-hook
5351 @vindex gnus-inews-article-hook
5352 This hook is called right before the article is posted.  By default it
5353 handles FCC processing (i.e., saving the article to a file.)  You can
5354 also have this hook add a score to all followups to the article you've
5355 written (@pxref{Followups To Yourself}). 
5356
5357 @item gnus-inews-article-header-hook
5358 @vindex gnus-inews-article-header-hook
5359 This hook is called after inserting the required headers in an article
5360 to be posted.  The hook is called from the @code{*post-news*} buffer,
5361 narrowed to the head, and is intended for people who would like to
5362 insert additional headers, or just change headers in some way or other.
5363
5364 @item gnus-check-before-posting
5365 @vindex gnus-check-before-posting
5366 If non-@code{nil}, Gnus will attempt to check the legality of the
5367 headers, as well as some other stuff, before posting.  You can control
5368 the granularity of the check by adding or removing elements from this
5369 list.  Legal elements are:
5370
5371 @table @code
5372 @item subject-cmsg 
5373 Check the subject for commands.
5374 @item sender
5375 Insert a new @code{Sender} header if the @code{From} header looks odd. 
5376 @item multiple-headers 
5377 Check for the existence of multiple equal headers.
5378 @item sendsys 
5379 Check for the existence of version and sendsys commands.
5380 @item message-id
5381 Check whether the @code{Message-ID} looks ok.
5382 @item from
5383 Check whether the @code{From} header seems nice.
5384 @item long-lines 
5385 Check for too long lines.
5386 @item control-chars
5387 Check for illegal characters.
5388 @item size
5389 Check for excessive size.
5390 @item new-text
5391 Check whether there is any new text in the messages.
5392 @item signature
5393 Check the length of the signature.
5394 @item approved
5395 Check whether the article has an @code{Approved} header, which is
5396 something only moderators should include.
5397 @item empty
5398 Check whether the article is empty.
5399 @end table
5400
5401 @end table
5402
5403
5404
5405 @node Posting Server
5406 @subsection Posting Server
5407
5408 When you press those magical @kbd{C-c C-c} keys to ship off your latest
5409 (extremely intelligent, of course) article, where does it go?
5410
5411 Thank you for asking.  I hate you.
5412
5413 @vindex gnus-post-method
5414
5415 It can be quite complicated.  Normally, Gnus will use the same native
5416 server.  However.  If your native server doesn't allow posting, just
5417 reading, you probably want to use some other server to post your
5418 (extremely intelligent and fabulously interesting) articles.  You can
5419 then set the @code{gnus-post-method} to some other method:
5420
5421 @lisp
5422 (setq gnus-post-method '(nnspool ""))
5423 @end lisp
5424
5425 Now, if you've done this, and then this server rejects your article, or
5426 this server is down, what do you do then?  To override this variable you
5427 can use a non-zero prefix to the @kbd{C-c C-c} command to force using
5428 the ``current'' server for posting.
5429
5430 If you give a zero prefix (i. e., @kbd{C-u 0 C-c C-c}) to that command,
5431 Gnus will prompt you for what method to use for posting.  
5432
5433 You can also set @code{gnus-post-method} to a list of select methods.
5434 If that's the case, Gnus will always prompt you for what method to use
5435 for posting. 
5436
5437
5438 @node Mail and Post
5439 @subsection Mail and Post
5440
5441 Commands for sending mail and post at the same time:
5442
5443 @table @kbd
5444 @item S b
5445 @kindex S b (Summary)
5446 @findex gnus-summary-followup-and-reply
5447 Post a followup and send a reply to the current article
5448 (@code{gnus-summary-followup-and-reply}).
5449
5450 @item S B
5451 @kindex S B (Summary)
5452 @findex gnus-summary-followup-and-reply-with-original
5453 Post a followup and send a reply to the current article and include the
5454 original message (@code{gnus-summary-followup-and-reply-with-original}).
5455 This command uses the process/prefix convention.
5456 @end table
5457
5458 Here's a list of variables that are relevant to both mailing and
5459 posting:
5460
5461 @table @code
5462 @item gnus-signature-file
5463 @itemx mail-signature
5464 @vindex mail-signature
5465 @vindex gnus-signature-file
5466 @cindex double signature
5467 @cindex signature
5468 If @code{gnus-signature-file} is non-@code{nil}, it should be the name
5469 of a file containing a signature (@samp{~/.signature} by default).  This
5470 signature will be appended to all outgoing post.  Most people find it
5471 more convenient to use @code{mail-signature}, which (sort of) does the
5472 same, but inserts the signature into the buffer before you start editing
5473 the post (or mail).  So---if you have both of these variables set, you
5474 will get two signatures.  Note that @code{mail-signature} does not work
5475 the same way as @code{gnus-signature-file}, which is a bit confusing.
5476 If @code{mail-signature} is @code{t}, it will insert
5477 @file{~/.signature}.  If it is a string, this string will be inserted. 
5478
5479 Note that RFC1036 says that a signature should be preceded by the three
5480 characters @samp{-- } on a line by themselves.  This is to make it
5481 easier for the recipient to automatically recognize and process the
5482 signature.  So don't remove those characters, even though you might feel
5483 that they ruin you beautiful design, like, totally.
5484
5485 Also note that no signature should be more than four lines long.
5486 Including ASCII graphics is an efficient way to get everybody to believe
5487 that you are silly and have nothing important to say.
5488
5489 @item mail-yank-prefix
5490 @vindex mail-yank-prefix
5491 @cindex yanking
5492 @cindex quoting
5493 When you are replying to or following up an article, you normally want
5494 to quote the person you are answering.  Inserting quoted text is done by
5495 @dfn{yanking}, and each quoted line you yank will have
5496 @code{mail-yank-prefix} prepended to it.  This is @code{nil} by default,
5497 which isn't very pretty---the prefix will just be some spaces.  Most
5498 everybody prefers that lines are prepended with @samp{> }, so
5499 @code{(setq mail-yank-prefix "> ")} in your @file{.emacs} file.
5500
5501 @item mail-yank-ignored-headers
5502 @vindex mail-yank-ignored-headers
5503 When you yank a message, you do not want to quote any headers, so
5504 @code{(setq mail-yank-ignored-headers "^")}.
5505
5506 @item user-mail-address
5507 @vindex user-mail-address
5508 If all of @code{gnus-user-login-name}, @code{gnus-use-generic-from} and
5509 @code{gnus-local-domain} are @code{nil}, Gnus will use
5510 @code{user-mail-address} as the address part of the @code{From} header.
5511
5512 @item gnus-local-domain
5513 @vindex gnus-local-domain
5514 @cindex domain
5515 The local domain name excluding the host name.  If your host is called
5516 @samp{"narfi.ifi.uio.no"}, then this variable should be
5517 @samp{"ifi.uio.no"}. 
5518
5519 @item gnus-local-domain
5520 @vindex gnus-local-domain
5521 @cindex domain
5522 The local domain name excluding the host name.  If your host is called
5523 @samp{"narfi.ifi.uio.no"}, then this variable should be
5524 @samp{"ifi.uio.no"}. 
5525
5526 @item gnus-user-from-line
5527 @vindex gnus-user-from-line
5528 Your full, complete e-mail address with name.  This variable overrides
5529 the other Gnus variables if it is non-@code{nil}.
5530
5531 Here are two example values of this variable: @samp{"larsi@@ifi.uio.no
5532 (Lars Magne Ingebrigtsen)"} and @samp{"Lars Magne Ingebrigtsen
5533 <larsi@@ifi.uio.no>"}.  The latter version is recommended in news (and is
5534 probably illegal in mail), but the name has to be quoted if it contains
5535 non-alpha-numerical characters---@samp{"\"Lars M. Ingebrigtsen\"
5536 <larsi@@ifi.uio.no>"}.
5537
5538 @item mail-default-headers
5539 @vindex mail-default-headers
5540 This is a string that will be inserted into the header of all outgoing
5541 mail messages and news articles.  Convenient to use to insert standard
5542 headers.  If @code{nntp-news-default-headers} is non-@code{nil}, that
5543 variable will override this one when posting articles.
5544
5545 @item gnus-auto-mail-to-author
5546 @vindex gnus-auto-mail-to-author
5547 If @code{ask}, you will be prompted for whether you want to send a mail
5548 copy to the author of the article you are following up.  If
5549 non-@code{nil} and not @code{ask}, Gnus will send a mail with a copy of
5550 all follow-ups to the authors of the articles you follow up.  It's nice
5551 in one way---you make sure that the person you are responding to gets
5552 your response.  Other people loathe this method and will hate you dearly
5553 for it, because it means that they will first get a mail, and then have
5554 to read the same article later when they read the news.  It is
5555 @code{nil} by default.
5556
5557 @item gnus-mail-courtesy-message
5558 @vindex gnus-mail-courtesy-message
5559 This is a string that will be prepended to all mails that are the result
5560 of using the variable described above.  
5561
5562 @item gnus-mailing-list-groups
5563 @findex gnus-mailing-list-groups
5564 @cindex mailing lists
5565
5566 If your news server offers groups that are really mailing lists that are
5567 gatewayed to the @sc{nntp} server, you can read those groups without
5568 problems, but you can't post/followup to them without some difficulty.
5569 One solution is to add a @code{to-address} to the group parameters
5570 (@pxref{Group Parameters}).  An easier thing to do is set the
5571 @code{gnus-mailing-list-groups} to a regexp that match the groups that
5572 really are mailing lists.  Then, at least, followups to the mailing
5573 lists will work most of the time.  Posting to these groups (@kbd{a}) is
5574 still a pain, though.
5575
5576
5577 @end table
5578
5579 You may want to do spell-checking on messages that you send out.  Or, if
5580 you don't want to spell-check by hand, you could add automatic
5581 spell-checking via the @code{ispell} package:
5582
5583 @vindex news-inews-hook
5584 @lisp
5585 (add-hook 'news-inews-hook 'ispell-message)        ;For news posts
5586 (add-hook 'mail-send-hook 'ispell-message)        ;for mail posts via sendmail
5587 @end lisp
5588
5589 @findex gnus-inews-insert-mime-headers
5590 If you want to insert some @sc{mime} headers into the articles you post,
5591 without doing any actual encoding, you could add
5592 @code{gnus-inews-insert-mime-headers} to @code{gnus-inews-article-hook}.
5593
5594
5595
5596 @node Archived Messages
5597 @subsection Archived Messages
5598 @cindex archived messages
5599 @cindex sent messages
5600
5601 Gnus provides a few different methods for storing the mail you send.
5602 The default method is to use the @dfn{archive virtual server} to store
5603 the mail.
5604
5605 @vindex gnus-message-archive-method
5606 @code{gnus-message-archive-method} says what virtual server Gnus is to
5607 use to store sent messages.  It is @code{(nnfolder "archive"
5608 (nnfolder-directory "~/Mail/archive/"))} by default, but you can use any
5609 mail select method (@code{nnml}, @code{nnmbox}, etc.).  However,
5610 @code{nnfolder} is a quite likeable select method for doing this sort of
5611 thing.  If you don't like the default directory chosen, you could say
5612 something like:
5613
5614 @lisp
5615 (setq gnus-message-archive-method
5616       '((nnfolder "archive" 
5617                   (nnfolder-inhibit-expiry t)
5618                   (nnfolder-active-file "~/Mail/sent-mail/active")
5619                   (nnfolder-directory "~/News/sent-mail/"))))
5620 @end lisp
5621
5622 @vindex gnus-message-archive-group
5623 Gnus will insert @code{Gcc} headers in all outgoing messages that point
5624 to one or more group(s) on that server.  Which group to use is
5625 determined by the @code{gnus-message-archive-group} variable.  
5626
5627 This variable can be:
5628
5629 @itemize @bullet
5630 @item a string
5631 Messages will be saved in that group.
5632 @item a list of strings
5633 Messages will be saved in all those groups.
5634 @item an alist of regexps, functions and forms
5635 When a key ``matches'', the result is used.
5636 @end itemize
5637
5638 Let's illustrate:
5639
5640 Just saving to a single group called @samp{"MisK"}:
5641 @lisp
5642 (setq gnus-message-archive-group "MisK")
5643 @end lisp
5644
5645 Saving to two groups, @samp{"MisK"} and @samp{"safe"}:
5646 @lisp
5647 (setq gnus-message-archive-group '("MisK" "safe"))
5648 @end lisp
5649
5650 Save to different groups based on what group you are in:
5651 @lisp
5652 (setq gnus-message-archive-group 
5653       '(("^alt" "sent-to-alt")
5654         ("mail" "sent-to-mail")
5655         (".*" "sent-to-misc")))
5656 @end lisp
5657
5658 More complex stuff:
5659 @lisp
5660 (setq gnus-message-archive-group 
5661       '((if (eq major-mode news-reply-mode) "misc-news" "misc-mail")))
5662 @end lisp       
5663
5664 This last one is the default.
5665
5666 Now, when you send a message off, it will be stored in the appropriate
5667 group.  (If you want to disable storing for just one particular article,
5668 you can just remove the @code{Gcc} header that has been inserted.)  The
5669 archive group will appear in the group buffer the next time you start
5670 Gnus, or the next time you press @kbd{F} in the group buffer.  You can
5671 enter it and read the articles in it just like you'd read any other
5672 group.  If the group gets really big and annoying, you can simply rename
5673 if (using @kbd{G r} in the group buffer) to something nice --
5674 @samp{"misc-mail-september-1995"}, or whatever.  New messages will
5675 continue to be stored in the old (now empty) group.
5676
5677
5678 That's the default method of archiving sent mail.  Gnus also offers two
5679 other variables for the people who don't like the default method.  In
5680 that case you should set @code{gnus-message-archive-group} to
5681 @code{nil}; this will disable archiving.
5682
5683 @table @code
5684 @item gnus-author-copy
5685 @vindex gnus-author-copy
5686 This is a file name, and all outgoing articles will be saved in that
5687 file.  Initialized from the @code{AUTHORCOPY} environment variable.
5688
5689 If this variable begins with the character @samp{"|"}, outgoing articles
5690 will be piped to the named program. It is possible to save an article in
5691 an MH folder as follows:
5692
5693 @lisp
5694 (setq gnus-author-copy 
5695       "|/usr/local/lib/mh/rcvstore +Article")
5696 @end lisp
5697
5698 If the first character is not a pipe, articles are saved using the
5699 function specified by the @code{gnus-author-copy-saver} variable.
5700
5701 @item gnus-author-copy-saver
5702 @vindex gnus-author-copy-saver
5703 A function called to save outgoing articles.  This function will be
5704 called with the same of the file to store the article in. The default
5705 function is @code{rmail-output} which saves in the Unix mailbox format.
5706
5707 @item gnus-mail-self-blind 
5708 @vindex gnus-mail-self-blind 
5709 Non-@code{nil} means insert a BCC header in all outgoing articles
5710 pointing to yourself.  This will result you receiving a copy of the
5711 article mailed to yourself.  The BCC header is inserted when the post
5712 buffer is initialized, so you can remove or alter the BCC header to
5713 override the default.
5714
5715 @item gnus-outgoing-message-group 
5716 @vindex gnus-outgoing-message-group 
5717 All outgoing messages will be put in this group.  If you want to store
5718 all your outgoing mail and articles in the group @samp{nnml:archive},
5719 you set this variable to that value.  This variable can also be a list of
5720 group names.
5721
5722 If you want to have greater control over what group to put each
5723 message in, you can set this variable to a function that checks the
5724 current newsgroup name and then returns a suitable group name (or list
5725 of names).
5726 @end table
5727
5728
5729 @node Posting Styles
5730 @subsection Posting Styles
5731 @cindex posting styles
5732 @cindex styles
5733
5734 All them variables, they make my head swim.  
5735
5736 So what if you want a different @code{Organization} and signature based
5737 on what groups you post to?  And you post both from your home machine
5738 and your work machine, and you want different @code{From} lines, and so
5739 on? 
5740
5741 @vindex gnus-posting-styles
5742 One way to do stuff like that is to write clever hooks that change the
5743 variables you need to have changed.  That's a bit boring, so somebody
5744 came up with the bright idea of letting the user specify these things in
5745 a handy alist.  Here's an example of a @code{gnus-posting-styles}
5746 variable: 
5747
5748 @lisp
5749 ((".*" (signature . "Peace and happiness") (organization . "What me?"))
5750  ("^comp" (signature . "Death to everybody"))
5751  ("comp.emacs.i-love-it" (organization . "Emacs is it")))
5752 @end lisp
5753
5754 As you might surmise from this example, this alist consists of several
5755 @dfn{styles}.  Each style will be applicable if the first element
5756 ``matches'', in some form or other.  The entire alist will be iterated
5757 over, from the beginning towards the end, and each match will be
5758 applied, which means that attributes in later styles that match override
5759 the same attributes in earlier matching styles.  So
5760 @samp{comp.programming.literate} will have the @samp{Death to everybody}
5761 signature and the @samp{What me?} @code{Organization} header. 
5762
5763 The first element in each style is called the @code{match}.  If it's a
5764 string, then Gnus will try to regexp match it against the group name.
5765 If it's a function symbol, that function will be called with no
5766 arguments.  If it's a variable symbol, then the variable will be
5767 referenced.  If it's a list, then that list will be @code{eval}ed.  In
5768 any case, if this returns a non-@code{nil} value, then the style is said
5769 to @dfn{match}.
5770
5771 Each style may contain a random amount of @dfn{attributes}.  Each
5772 attribute consists of a @var{(name  . value)} pair.  The attribute name
5773 can be one of @code{signature}, @code{organization} or @code{from}.  
5774 The attribute name can also be a string.  In that case, this will be
5775 used as a header name, and the value will be inserted in the headers of
5776 the article. 
5777
5778 The attribute value can be a string (used verbatim), a function (the
5779 return value will be used), a variable (its value will be used) or a
5780 list (it will be @code{eval}ed and the return value will be used).
5781
5782 So here's a new example:
5783
5784 @lisp
5785 (setq gnus-posting-styles
5786       '((".*" 
5787            (signature . "~/.signature") 
5788            (from . "user@@foo (user)")
5789            ("X-Home-Page" . (getenv "WWW_HOME"))
5790            (organization . "People's Front Against MWM"))
5791         ("^rec.humor" 
5792            (signature . my-funny-signature-randomizer))
5793         ((equal (system-name) "gnarly") 
5794            (signature . my-quote-randomizer))
5795         (posting-from-work-p
5796            (signature . "~/.work-signature")
5797            (from . "user@@bar.foo (user)")
5798            (organization . "Important Work, Inc"))
5799         ("^nn.+:" 
5800            (signature . "~/.mail-signature"))))
5801 @end lisp
5802
5803
5804
5805 @node Drafts
5806 @subsection Drafts
5807 @cindex drafts
5808
5809 If you are writing a message (mail or news) and suddenly remember that
5810 you have a steak in the oven (or some pesto in the food processor, you
5811 craazy vegetarians), you'll probably wish there was a method to save the
5812 message you are writing so that you can continue editing it some other
5813 day, and send it when you feel its finished.
5814
5815 Well, don't worry about it.  Whenever you start composing a message of
5816 some sort using the Gnus mail and post commands, the buffer you get will
5817 automatically associate to an article in a special @dfn{draft} group.
5818 If you save the buffer the normal way (@kbd{C-x C-s}, for instance), the
5819 article will be saved there.  (Auto-save files also go to the draft
5820 group.) 
5821
5822 The draft group is a special group (which is implemented as an
5823 @code{nndraft} group, if you absolutely have to know) called
5824 @samp{nndraft:drafts}.  The variable @code{gnus-draft-group-directory}
5825 controls both the name of the group and the location---the leaf element
5826 in the path will be used as the name of the group.  What makes this
5827 group special is that you can't tick any articles in it or mark any
5828 articles as read---all articles in the group are permanently unread.
5829
5830 If the group doesn't exist, it will be created and you'll be subscribed
5831 to it.
5832
5833 @findex gnus-dissociate-buffer-from-draft
5834 @kindex C-c M-d (Mail)
5835 @kindex C-c M-d (Post)
5836 @findex gnus-associate-buffer-with-draft
5837 @kindex C-c C-d (Mail)
5838 @kindex C-c C-d (Post)
5839 If you're writing some super-secret message that you later want to
5840 encode with PGP before sending, you may wish to turn the auto-saving
5841 (and association with the draft group) off.  You never know who might be
5842 interested in reading all your extremely valuable and terribly horrible
5843 and interesting secrets.  The @kbd{C-c M-d}
5844 (@code{gnus-dissociate-buffer-from-draft}) command does that for you.
5845 If you change your mind and want to turn the auto-saving back on again,
5846 @kbd{C-c C-d} (@code{gnus-associate-buffer-with-draft} does that.
5847
5848 @vindex gnus-use-draft
5849 To leave association with the draft group off by default, set
5850 @code{gnus-use-draft} to @code{nil}.  It is @code{t} by default. 
5851
5852 @findex gnus-summary-send-draft
5853 @kindex S D c (Summary)
5854 When you want to continue editing the article, you simply enter the
5855 draft group and push @kbd{S D c} (@code{gnus-summary-send-draft}) to do
5856 that.  You will be placed in a buffer where you left off.
5857
5858 Rejected articles will also be put in this draft group (@pxref{Rejected
5859 Articles}).
5860
5861 @findex gnus-summary-send-all-drafts
5862 If you have lots of rejected messages you want to post (or mail) without
5863 doing further editing, you can use the @kbd{S D a} command
5864 (@code{gnus-summary-send-all-drafts}).  This command understands the
5865 process/prefix convention (@pxref{Process/Prefix}).  
5866
5867
5868 @node Rejected Articles
5869 @subsection Rejected Articles
5870 @cindex rejected articles
5871
5872 Sometimes a news server will reject an article.  Perhaps the server
5873 doesn't like your face.  Perhaps it just feels miserable.  Perhaps
5874 @emph{there be demons}.  Perhaps you have included too much cited text.
5875 Perhaps the disk is full.  Perhaps the server is down.
5876
5877 These situations are, of course, totally beyond the control of Gnus.
5878 (Gnus, of course, loves the way you look, always feels great, has angels
5879 fluttering around inside of it, doesn't care about how much cited text
5880 you include, never runs full and never goes down.)  So Gnus saves these
5881 articles until some later time when the server feels better.
5882
5883 The rejected articles will automatically be put in a special draft group
5884 (@pxref{Drafts}).  When the server comes back up again, you'd then
5885 typically enter that group and send all the articles off.
5886
5887
5888 @node Canceling and Superseding
5889 @section Canceling Articles
5890 @cindex canceling articles
5891 @cindex superseding articles
5892
5893 Have you ever written something, and then decided that you really,
5894 really, really wish you hadn't posted that?
5895
5896 Well, you can't cancel mail, but you can cancel posts.
5897
5898 @findex gnus-summary-cancel-article
5899 @kindex C (Summary)
5900 Find the article you wish to cancel (you can only cancel your own
5901 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
5902 c} (@code{gnus-summary-cancel-article}).  Your article will be
5903 canceled---machines all over the world will be deleting your article. 
5904
5905 Be aware, however, that not all sites honor cancels, so your article may
5906 live on here and there, while most sites will delete the article in
5907 question.
5908
5909 If you discover that you have made some mistakes and want to do some
5910 corrections, you can post a @dfn{superseding} article that will replace
5911 your original article.
5912
5913 @findex gnus-summary-supersede-article
5914 @kindex S (Summary)
5915 Go to the original article and press @kbd{S s}
5916 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
5917 where you can edit the article all you want before sending it off the
5918 usual way.
5919
5920 @vindex gnus-delete-supersedes-headers
5921 You probably want to delete some of the old headers before sending the
5922 superseding article---@code{Path} and @code{Date} are probably
5923 incorrect.  Set @code{gnus-delete-supersedes-headers} to a regexp to
5924 match the lines you want removed.  The default is
5925 @samp{"^Path:\\|^Date"}. 
5926
5927 The same goes for superseding as for canceling, only more so: Some
5928 sites do not honor superseding.  On those sites, it will appear that you
5929 have posted almost the same article twice.
5930
5931 If you have just posted the article, and change your mind right away,
5932 there is a trick you can use to cancel/supersede the article without
5933 waiting for the article to appear on your site first.  You simply return
5934 to the post buffer (which is called @code{*post-buf*}).  There you will
5935 find the article you just posted, with all the headers intact.  Change
5936 the @samp{Message-ID} header to a @samp{Cancel} or @samp{Supersedes}
5937 header by substituting one of those words for @samp{Message-ID}.  Then
5938 just press @kbd{C-c C-c} to send the article as you would do normally.
5939 The previous article will be canceled/superseded.
5940
5941 Just remember, kids: There is no 'c' in 'supersede'.
5942
5943 @node Marking Articles
5944 @section Marking Articles
5945 @cindex article marking
5946 @cindex article ticking
5947 @cindex marks
5948
5949 There are several marks you can set on an article. 
5950
5951 You have marks that decide the @dfn{readed-ness} (whoo, neato-keano
5952 neologism ohoy!) of the article.  Alphabetic marks generally mean
5953 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
5954
5955 In addition, you also have marks that do not affect readedness.
5956
5957 @menu
5958 * Unread Articles::      Marks for unread articles.
5959 * Read Articles::        Marks for read articles.
5960 * Other Marks::          Marks that do not affect readedness.
5961 @end menu
5962
5963 @ifinfo
5964 There's a plethora of commands for manipulating these marks:
5965 @end ifinfo
5966
5967 @menu
5968 * Setting Marks::           How to set and remove marks.
5969 * Setting Process Marks::   How to mark articles for later processing.
5970 @end menu
5971
5972 @node Unread Articles
5973 @subsection Unread Articles
5974
5975 The following marks mark articles as unread, in one form or other.
5976
5977 @vindex gnus-dormant-mark
5978 @vindex gnus-ticked-mark
5979 @table @samp
5980 @item !
5981 @dfn{Ticked articles} are articles that will remain visible always.  If
5982 you see an article that you find interesting, or you want to put off
5983 reading it, or replying to it, until sometime later, you'd typically
5984 tick it.  However, articles can be expired, so if you want to keep an
5985 article forever, you'll have to save it.  Ticked articles have a
5986 @samp{!} (@code{gnus-ticked-mark}) in the first column.
5987
5988 @item ?
5989 A @dfn{dormant} article is marked with a @samp{?}
5990 (@code{gnus-dormant-mark}), and will only appear in the summary buffer
5991 if there are followups to it.
5992
5993 @item SPC
5994 An @dfn{unread} article is marked with a @samp{SPC}
5995 (@code{gnus-unread-mark}).  These are articles that haven't been read at
5996 all yet.
5997 @end table
5998
5999 @node Read Articles
6000 @subsection Read Articles
6001 @cindex expirable mark
6002
6003 All the following marks mark articles as read.
6004
6005 @table @samp
6006
6007 @item r
6008 Articles that are marked as read.  They have a @samp{r}
6009 (@code{gnus-del-mark}) in the first column.  These are articles that the
6010 user has marked as read more or less manually.
6011
6012 @item R
6013 Articles that are actually read are marked with @samp{R}
6014 (@code{gnus-read-mark}). 
6015
6016 @item O
6017 Articles that were marked as read in previous sessions are now
6018 @dfn{old} and marked with @samp{O} (@code{gnus-ancient-mark}). 
6019
6020 @item K
6021 Marked as killed (@code{gnus-killed-mark}).
6022
6023 @item X
6024 Marked as killed by kill files (@code{gnus-kill-file-mark}).
6025
6026 @item Y
6027 Marked as read by having a too low score (@code{gnus-low-score-mark}).
6028
6029 @item C
6030 Marked as read by a catchup (@code{gnus-catchup-mark}).
6031
6032 @item G
6033 Canceled article (@code{gnus-cancelled-mark})
6034 @end table
6035
6036 All these marks just mean that the article is marked as read, really.
6037 They are interpreted differently by the adaptive scoring scheme,
6038 however.
6039
6040 One more special mark, though:
6041
6042 @table @samp
6043 @item E
6044 You can also mark articles as @dfn{expirable} (or have them marked as
6045 such automatically).  That doesn't make much sense in normal groups,
6046 because a user does not control the expiring of news articles, but in
6047 mail groups, for instance, articles that are marked as @dfn{expirable}
6048 can be deleted by Gnus at any time.  Expirable articles are marked with
6049 @samp{E} (@code{gnus-expirable-mark}).
6050 @end table
6051
6052 @node Other Marks
6053 @subsection Other Marks
6054 @cindex process mark
6055 @cindex bookmarks
6056
6057 There are some marks that have nothing to do with whether the article is
6058 read or not.
6059
6060 @itemize @bullet
6061
6062 @item 
6063 You can set a bookmark in the current article.  Say you are reading a
6064 long thesis on cats' urinary tracts, and have to go home for dinner
6065 before you've finished reading the thesis.  You can then set a bookmark
6066 in the article, and Gnus will jump to this bookmark the next time it
6067 encounters the article.
6068
6069 @item
6070 All articles that you have replied to or made a followup to (i.e., have
6071 answered) will be marked with an @samp{A} in the second column
6072 (@code{gnus-replied-mark}).
6073
6074 @item 
6075 Articles that are stored in the article cache will be marked with an
6076 @samp{*} in the second column (@code{gnus-cached-mark}).
6077
6078 @item 
6079 Articles that are ``saved'' (in some manner or other; not necessarily
6080 religiously) are marked with an @samp{S} in the second column
6081 (@code{gnus-saved-mark}.  
6082
6083 @item 
6084 @vindex gnus-not-empty-thread-mark
6085 @vindex gnus-empty-thread-mark
6086 It the @samp{%e} spec is used, the presence of threads or not will be
6087 marked with @code{gnus-not-empty-thread-mark} and
6088 @code{gnus-empty-thread-mark} in the third column, respectively.
6089
6090 @item 
6091 @vindex gnus-process-mark
6092 Finally we have the @dfn{process mark} (@code{gnus-process-mark}.  A
6093 variety of commands react to the presence of the process mark.  For
6094 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
6095 all articles that have been marked with the process mark.  Articles
6096 marked with the process mark have a @samp{#} in the second column.
6097
6098 @end itemize
6099
6100 You might have noticed that most of these ``non-readedness'' marks appear
6101 in the second column by default.  So if you have a cached, saved,
6102 replied article that you have process-marked, what will that look like?
6103
6104 Nothing much.  The precedence rules go as follows: process -> cache ->
6105 replied -> saved.  So if the article is in the cache and is replied,
6106 you'll only see the cache mark and not the replied mark.
6107
6108
6109 @node Setting Marks
6110 @subsection Setting Marks
6111 @cindex setting marks
6112
6113 All the marking commands understand the numeric prefix.
6114
6115 @table @kbd
6116 @item M t
6117 @itemx !
6118 @kindex ! (Summary)
6119 @kindex M t (Summary)
6120 @findex gnus-summary-tick-article-forward
6121 Tick the current article (@code{gnus-summary-tick-article-forward}).
6122
6123 @item M ?
6124 @itemx ?
6125 @kindex ? (Summary)
6126 @kindex M ? (Summary)
6127 @findex gnus-summary-mark-as-dormant
6128 Mark the current article as dormant
6129 (@code{gnus-summary-mark-as-dormant}).
6130
6131 @item M d
6132 @itemx d
6133 @kindex M d (Summary)
6134 @kindex d (Summary)
6135 @findex gnus-summary-mark-as-read-forward
6136 Mark the current article as read
6137 (@code{gnus-summary-mark-as-read-forward}).
6138
6139 @item M k
6140 @itemx k
6141 @kindex k (Summary)
6142 @kindex M k (Summary)
6143 @findex gnus-summary-kill-same-subject-and-select
6144 Mark all articles that have the same subject as the current one as read,
6145 and then select the next unread article
6146 (@code{gnus-summary-kill-same-subject-and-select}).
6147
6148 @item M K
6149 @itemx C-k
6150 @kindex M K (Summary)
6151 @kindex C-k (Summary)
6152 @findex gnus-summary-kill-same-subject
6153 Mark all articles that have the same subject as the current one as read
6154 (@code{gnus-summary-kill-same-subject}).  
6155
6156 @item M C
6157 @kindex M C (Summary)
6158 @findex gnus-summary-catchup
6159 Mark all unread articles in the group as read
6160 (@code{gnus-summary-catchup}).
6161
6162 @item M C-c
6163 @kindex M C-c (Summary)
6164 @findex gnus-summary-catchup-all
6165 Mark all articles in the group as read---even the ticked and dormant
6166 articles (@code{gnus-summary-catchup-all}).
6167
6168 @item M H
6169 @kindex M H (Summary)
6170 @findex gnus-summary-catchup-to-here
6171 Catchup the current group to point
6172 (@code{gnus-summary-catchup-to-here}). 
6173
6174 @item C-w
6175 @kindex C-w (Summary)
6176 @findex gnus-summary-mark-region-as-read
6177 Mark all articles between point and mark as read
6178 (@code{gnus-summary-mark-region-as-read}). 
6179
6180 @item M V k
6181 @kindex M V k (Summary)
6182 @findex gnus-summary-kill-below
6183 Kill all articles with scores below the default score (or below the
6184 numeric prefix) (@code{gnus-summary-kill-below}).
6185
6186 @item M c
6187 @itemx M-u
6188 @kindex M c (Summary)
6189 @kindex M-u (Summary)
6190 @findex gnus-summary-clear-mark-forward
6191 Clear all readedness-marks from the current article
6192 (@code{gnus-summary-clear-mark-forward}).
6193
6194 @item M e
6195 @itemx E
6196 @kindex M e (Summary)
6197 @kindex E (Summary)
6198 @findex gnus-summary-mark-as-expirable
6199 Mark the current article as expirable
6200 (@code{gnus-summary-mark-as-expirable}).
6201
6202 @item M b
6203 @kindex M b (Summary)
6204 @findex gnus-summary-set-bookmark
6205 Set a bookmark in the current article
6206 (@code{gnus-summary-set-bookmark}).
6207
6208 @item M B
6209 @kindex M B (Summary)
6210 @findex gnus-summary-remove-bookmark
6211 Remove the bookmark from the current article
6212 (@code{gnus-summary-remove-bookmark}).
6213
6214 @item M V c
6215 @kindex M V c (Summary)
6216 @findex gnus-summary-clear-above
6217 Clear all marks from articles with scores over the default score (or
6218 over the numeric prefix) (@code{gnus-summary-clear-above}).
6219
6220 @item M V u
6221 @kindex M V u (Summary)
6222 @findex gnus-summary-tick-above
6223 Tick all articles with scores over the default score (or over the
6224 numeric prefix) (@code{gnus-summary-tick-above}).
6225
6226 @item M V m
6227 @kindex M V m (Summary)
6228 @findex gnus-summary-mark-above
6229 Prompt for a mark, and mark all articles with scores over the default
6230 score (or over the numeric prefix) with this mark
6231 (@code{gnus-summary-clear-above}).
6232 @end table
6233
6234 @code{gnus-summary-goto-unread} The @code{gnus-summary-goto-unread}
6235 variable controls what action should be taken after setting a mark.  If
6236 non-@code{nil}, point will move to the next/previous unread article.  If
6237 @code{nil}, point will just move one line up or down.  As a special
6238 case, if this variable is @code{never}, all the marking commands as well
6239 as other commands (like @kbd{SPC}) will move to the next article,
6240 whether it is unread or not.  The default is @code{t}.
6241
6242
6243 @node Setting Process Marks
6244 @subsection Setting Process Marks
6245 @cindex setting process marks
6246
6247 @table @kbd
6248
6249 @item M P p
6250 @itemx #
6251 @kindex # (Summary)
6252 @kindex M P p (Summary)
6253 @findex gnus-summary-mark-as-processable
6254 Mark the current article with the process mark
6255 (@code{gnus-summary-mark-as-processable}). 
6256 @findex gnus-summary-unmark-as-processable
6257
6258 @item M P u 
6259 @itemx M-#
6260 @kindex M P u (Summary)
6261 @kindex M-# (Summary)
6262 Remove the process mark, if any, from the current article
6263 (@code{gnus-summary-unmark-as-processable}).
6264
6265 @item M P U
6266 @kindex M P U (Summary)
6267 @findex gnus-summary-unmark-all-processable
6268 Remove the process mark from all articles
6269 (@code{gnus-summary-unmark-all-processable}). 
6270
6271 @item M P R
6272 @kindex M P R (Summary)
6273 @findex gnus-uu-mark-by-regexp
6274 Mark articles by a regular expression (@code{gnus-uu-mark-by-regexp}). 
6275
6276 @item M P r
6277 @kindex M P r (Summary)
6278 @findex gnus-uu-mark-region
6279 Mark articles in region (@code{gnus-uu-mark-region}).
6280
6281 @item M P t
6282 @kindex M P t (Summary)
6283 @findex gnus-uu-mark-thread
6284 Mark all articles in the current (sub)thread
6285 (@code{gnus-uu-mark-thread}).
6286
6287 @item M P T
6288 @kindex M P T (Summary)
6289 @findex gnus-uu-unmark-thread
6290 Unmark all articles in the current (sub)thread
6291 (@code{gnus-uu-unmark-thread}).
6292
6293 @item M P v
6294 @kindex M P v (Summary)
6295 @findex gnus-uu-mark-over
6296 Mark all articles that have a score above the prefix argument
6297 (@code{gnus-uu-mark-over}).
6298
6299 @item M P s
6300 @kindex M P s (Summary)
6301 @findex gnus-uu-mark-series
6302 Mark all articles in the current series (@code{gnus-uu-mark-series}).
6303
6304 @item M P S
6305 @kindex M P S (Summary)
6306 @findex gnus-uu-mark-sparse
6307 Mark all series that have already had some articles marked
6308 (@code{gnus-uu-mark-sparse}).
6309
6310 @item M P a
6311 @kindex M P a (Summary)
6312 @findex gnus-uu-mark-all
6313 Mark all articles in series order (@code{gnus-uu-mark-series}).
6314
6315 @item M P b
6316 @kindex M P b (Summary)
6317 @findex gnus-uu-mark-buffer
6318 Mark all articles in the buffer in the order they appear
6319 (@code{gnus-uu-mark-buffer}). 
6320 @end table
6321
6322
6323 @node Limiting
6324 @section Limiting
6325 @cindex limiting
6326
6327 It can be convenient to limit the summary buffer to just show some
6328 subset of the articles currently in the group.  The effect most limit
6329 commands have is to remove a few (or many) articles from the summary
6330 buffer. 
6331
6332 @table @kbd
6333
6334 @item / /
6335 @itemx / s
6336 @kindex / / (Summary)
6337 @findex gnus-summary-limit-to-subject
6338 Limit the summary buffer to articles that match some subject
6339 (@code{gnus-summary-limit-to-subject}). 
6340
6341 @item / a
6342 @kindex / a (Summary)
6343 @findex gnus-summary-limit-to-author
6344 Limit the summary buffer to articles that match some author
6345 (@code{gnus-summary-limit-to-author}).
6346
6347 @item / u
6348 @itemx x
6349 @kindex / u (Summary)
6350 @kindex x (Summary)
6351 @findex gnus-summary-limit-to-unread
6352 Limit the summary buffer to articles that are not marked as read
6353 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
6354 buffer to articles that are strictly unread.  This means that ticked and
6355 dormant articles will also be excluded.
6356
6357 @item / m
6358 @kindex / m (Summary)
6359 @findex gnus-summary-limit-to-marks
6360 Ask for a mark and then limit to all articles that have not been marked
6361 with that mark (@code{gnus-summary-limit-to-marks}).
6362
6363 @item / n
6364 @kindex / n (Summary)
6365 @findex gnus-summary-limit-to-articles
6366 Limit the summary buffer to the current article
6367 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
6368 convention (@pxref{Process/Prefix}).
6369
6370 @item / w
6371 @kindex / w (Summary)
6372 @findex gnus-summary-pop-limit
6373 Pop the previous limit off the stack and restore it
6374 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
6375 the stack.
6376
6377 @item / v
6378 @kindex / v (Summary)
6379 @findex gnus-summary-limit-to-score
6380 Limit the summary buffer to articles that have a score at or above some
6381 score (@code{gnus-summary-limit-to-score}).
6382
6383 @item / E
6384 @itemx M S
6385 @kindex M S (Summary)
6386 @kindex / E (Summary)
6387 @findex gnus-summary-limit-include-expunged
6388 Display all expunged articles
6389 (@code{gnus-summary-limit-include-expunged}). 
6390
6391 @item / D
6392 @kindex / D (Summary)
6393 @findex gnus-summary-limit-include-dormant
6394 Display all dormant articles (@code{gnus-summary-limit-include-dormant}).
6395
6396 @item / d
6397 @kindex / d (Summary)
6398 @findex gnus-summary-limit-exclude-dormant
6399 Hide all dormant articles (@code{gnus-summary-limit-exclude-dormant}).
6400
6401 @item / c
6402 @kindex / c (Summary)
6403 @findex gnus-summary-limit-exclude-childless-dormant
6404 Hide all dormant articles that have no children
6405 (@code{gnus-summary-limit-exclude-childless-dormant}). 
6406
6407 @item / C
6408 @kindex / C (Summary)
6409 @findex gnus-summary-limit-mark-excluded-as-read
6410 Mark all excluded unread articles as read
6411 (@code{gnus-summary-limit-mark-excluded-as-read}).   If given a prefix,
6412 also mark excluded ticked and dormant articles as read.
6413
6414 @end table
6415
6416
6417 @node Threading
6418 @section Threading
6419 @cindex threading
6420 @cindex article threading
6421
6422 Gnus threads articles by default.  @dfn{To thread} is to put replies to
6423 articles directly after the articles they reply to---in a hierarchical
6424 fashion.
6425
6426 @menu
6427 * Customizing Threading::     Variables you can change to affect the threading.
6428 * Thread Commands::           Thread based commands in the summary buffer.
6429 @end menu
6430
6431 @node Customizing Threading
6432 @subsection Customizing Threading
6433 @cindex customizing threading
6434 @cindex <
6435 @cindex >
6436
6437 @table @code
6438
6439 @item gnus-show-threads
6440 @vindex gnus-show-threads
6441 If this variable is @code{nil}, no threading will be done, and all of
6442 the rest of the variables here will have no effect.  Turning threading
6443 off will speed group selection up a bit, but it is sure to make reading
6444 slower and more awkward.
6445
6446 @item gnus-fetch-old-headers
6447 @vindex gnus-fetch-old-headers
6448 If non-@code{nil}, Gnus will attempt to build old threads by fetching
6449 more old headers---headers to articles that are marked as read.  If you
6450 would like to display as few summary lines as possible, but still
6451 connect as many loose threads as possible, you should set this variable
6452 to @code{some} or a number.  If you set it to a number, no more than
6453 that number of extra old headers will be fetched.  In either case,
6454 fetching old headers only works if the backend you are using carries
6455 overview files---this would normally be @code{nntp}, @code{nnspool} and
6456 @code{nnml}.  Also remember that if the root of the thread has been
6457 expired by the server, there's not much Gnus can do about that.
6458
6459 @item gnus-build-sparse-threads
6460 @vindex gnus-build-sparse-threads
6461 Fetching old headers can be slow.  A low-rent similar effect can be
6462 gotten by setting this variable to @code{some}.  Gnus will then look at
6463 the complete @code{References} headers of all articles and try to string
6464 articles that belong in the same thread together.  This will leave
6465 @dfn{gaps} in the threading display where Gnus guesses that an article
6466 is missing from the thread.  (These gaps appear like normal summary
6467 lines.  If you select a gap, Gnus will try to fetch the article in
6468 question.)  If this variable is @code{t}, Gnus will display all these
6469 ``gaps'' without regard for whether they are useful for completing the
6470 thread or not.  Finally, if this variable is @code{more}, Gnus won't cut
6471 off sparse leaf nodes that don't lead anywhere.  This variable is
6472 @code{nil} by default.
6473
6474 @item gnus-summary-gather-subject-limit
6475 @vindex gnus-summary-gather-subject-limit
6476 Loose threads are gathered by comparing subjects of articles.  If this
6477 variable is @code{nil}, Gnus requires an exact match between the
6478 subjects of the loose threads before gathering them into one big
6479 super-thread.  This might be too strict a requirement, what with the
6480 presence of stupid newsreaders that chop off long subjects lines.  If
6481 you think so, set this variable to, say, 20 to require that only the
6482 first 20 characters of the subjects have to match.  If you set this
6483 variable to a really low number, you'll find that Gnus will gather
6484 everything in sight into one thread, which isn't very helpful.
6485
6486 @cindex fuzzy article gathering
6487 If you set this variable to the special value @code{fuzzy}, Gnus will
6488 use a fuzzy string comparison algorithm on the subjects.
6489
6490 @item gnus-simplify-ignored-prefixes
6491 @vindex gnus-simplify-ignored-prefixes
6492 If you set @code{gnus-summary-gather-subject-limit} to something as low
6493 as 10, you might consider setting this variable to something sensible:
6494
6495 @c Written by Michael Ernst <mernst@cs.rice.edu>
6496 @lisp
6497 (setq gnus-simplify-ignored-prefixes
6498       (concat 
6499        "\\`\\[?\\("
6500        (mapconcat 'identity
6501                   '("looking"
6502                      "wanted" "followup" "summary\\( of\\)?"
6503                      "help" "query" "problem" "question" 
6504                      "answer" "reference" "announce"
6505                      "How can I" "How to" "Comparison of"
6506                      ;; ...
6507                      )
6508                   "\\|")
6509                   "\\)\\s *\\("
6510                   (mapconcat 'identity
6511                              '("for" "for reference" "with" "about")
6512                              "\\|")
6513                   "\\)?\\]?:?[ \t]*"))
6514 @end lisp
6515
6516 All words that match this regexp will be removed before comparing two
6517 subjects. 
6518
6519 @item gnus-summary-gather-exclude-subject
6520 @vindex gnus-summary-gather-exclude-subject
6521 Since loose thread gathering is done on subjects only, that might lead
6522 to many false hits, especially with certain common subjects like
6523 @samp{""} and @samp{"(none)"}.  To make the situation slightly better,
6524 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
6525 what subjects should be excluded from the gathering process.  The
6526 default is @samp{"^ *$\\|^(none)$"}.  
6527
6528 @item gnus-summary-thread-gathering-function
6529 @vindex gnus-summary-thread-gathering-function
6530 Gnus gathers threads by looking at @code{Subject} headers.  This means
6531 that totally unrelated articles may end up in the same ``thread'', which
6532 is confusing.  An alternate approach is to look at all the
6533 @code{Message-ID}s in all the @code{References} headers to find
6534 matches.  This will ensure that no gathered threads ever includes
6535 unrelated articles, but it's also means that people who have posted with
6536 broken newsreaders won't be gathered properly.  The choice is
6537 yours---plague or cholera:
6538
6539 @table @code
6540 @item gnus-summary-gather-threads-by-subject
6541 @findex gnus-summary-gather-threads-by-subject
6542 This function is the default gathering function and looks at
6543 @code{Subject}s exclusively.
6544
6545 @item gnus-summary-gather-threads-by-references
6546 @findex gnus-summary-gather-threads-by-references
6547 This function looks at @code{References} headers exclusively.
6548 @end table
6549
6550 If you want to test gathering by @code{References}, you could say
6551 something like:
6552
6553 @lisp
6554 (setq gnus-summary-thread-gathering-function
6555       'gnus-summary-gather-threads-by-references)
6556 @end lisp
6557
6558 @item gnus-summary-make-false-root
6559 @vindex gnus-summary-make-false-root
6560 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
6561 and create a dummy root at the top.  (Wait a minute.  Root at the top?
6562 Yup.)  Loose subtrees occur when the real root has expired, or you've
6563 read or killed the root in a previous session.
6564
6565 When there is no real root of a thread, Gnus will have to fudge
6566 something.  This variable says what fudging method Gnus should use.
6567 There are four possible values:
6568
6569 @cindex adopting articles
6570
6571 @table @code
6572
6573 @item adopt
6574 Gnus will make the first of the orphaned articles the parent.  This
6575 parent will adopt all the other articles.  The adopted articles will be
6576 marked as such by pointy brackets (@samp{<>}) instead of the standard
6577 square brackets (@samp{[]}).  This is the default method.
6578
6579 @item dummy
6580 Gnus will create a dummy summary line that will pretend to be the
6581 parent.  This dummy line does not correspond to any real article, so
6582 selecting it will just select the first real article after the dummy
6583 article.
6584
6585 @item empty
6586 Gnus won't actually make any article the parent, but simply leave the
6587 subject field of all orphans except the first empty.  (Actually, it will
6588 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
6589 Buffer Format}).)
6590
6591 @item none
6592 Don't make any article parent at all.  Just gather the threads and
6593 display them after one another.
6594
6595 @item nil
6596 Don't gather loose threads.
6597 @end table
6598
6599 @item gnus-thread-hide-subtree
6600 @vindex gnus-thread-hide-subtree
6601 If non-@code{nil}, all threads will be hidden when the summary buffer is
6602 generated.
6603
6604 @item gnus-thread-hide-killed
6605 @vindex gnus-thread-hide-killed
6606 if you kill a thread and this variable is non-@code{nil}, the subtree
6607 will be hidden.
6608
6609 @item gnus-thread-ignore-subject
6610 @vindex gnus-thread-ignore-subject
6611 Sometimes somebody changes the subject in the middle of a thread.  If
6612 this variable is non-@code{nil}, the subject change is ignored.  If it
6613 is @code{nil}, which is the default, a change in the subject will result
6614 in a new thread.
6615
6616 @item gnus-thread-indent-level
6617 @vindex gnus-thread-indent-level
6618 This is a number that says how much each sub-thread should be indented.
6619 The default is @samp{4}.
6620 @end table
6621
6622 @node Thread Commands
6623 @subsection Thread Commands
6624 @cindex thread commands
6625
6626 @table @kbd
6627
6628 @item T k
6629 @itemx M-C-k
6630 @kindex T k (Summary)
6631 @kindex M-C-k (Summary)
6632 @findex gnus-summary-kill-thread
6633 Mark all articles in the current sub-thread as read
6634 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
6635 remove all marks instead.  If the prefix argument is negative, tick
6636 articles instead.
6637
6638 @item T l
6639 @itemx M-C-l
6640 @kindex T l (Summary)
6641 @kindex M-C-l (Summary)
6642 @findex gnus-summary-lower-thread
6643 Lower the score of the current thread
6644 (@code{gnus-summary-lower-thread}). 
6645
6646 @item T i
6647 @kindex T i (Summary)
6648 @findex gnus-summary-raise-thread
6649 Increase the score of the current thread
6650 (@code{gnus-summary-raise-thread}).
6651
6652 @item T #
6653 @kindex T # (Summary)
6654 @findex gnus-uu-mark-thread
6655 Set the process mark on the current thread
6656 (@code{gnus-uu-mark-thread}).
6657
6658 @item T M-#
6659 @kindex T M-# (Summary)
6660 @findex gnus-uu-unmark-thread
6661 Remove the process mark from the current thread
6662 (@code{gnus-uu-unmark-thread}).
6663
6664 @item T T
6665 @kindex T T (Summary)
6666 @findex gnus-summary-toggle-threads
6667 Toggle threading (@code{gnus-summary-toggle-threads}).
6668
6669 @item T s
6670 @kindex T s (Summary)
6671 @findex gnus-summary-show-thread
6672 Expose the thread hidden under the current article, if any
6673 (@code{gnus-summary-show-thread}).
6674
6675 @item T h
6676 @kindex T h (Summary)
6677 @findex gnus-summary-hide-thread
6678 Hide the current (sub)thread (@code{gnus-summary-hide-thread}).
6679
6680 @item T S
6681 @kindex T S (Summary)
6682 @findex gnus-summary-show-all-threads
6683 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
6684
6685 @item T H
6686 @kindex T H (Summary)
6687 @findex gnus-summary-hide-all-threads
6688 Hide all threads (@code{gnus-summary-hide-all-threads}).
6689
6690 @item T t
6691 @kindex T t (Summary)
6692 @findex gnus-summary-rethread-current
6693 Re-thread the thread the current article is part of
6694 (@code{gnus-summary-rethread-current}).  This works even when the
6695 summary buffer is otherwise unthreaded.
6696
6697 @item T ^
6698 @kindex T ^ (Summary)
6699 @findex gnus-summary-reparent-thread
6700 Make the current article the child of the marked (or previous) article
6701 (@code{gnus-summary-reparent-thread}.
6702
6703 @end table
6704
6705 The following commands are thread movement commands.  They all
6706 understand the numeric prefix.
6707
6708 @table @kbd
6709
6710 @item T n
6711 @kindex T n (Summary)
6712 @findex gnus-summary-next-thread
6713 Go to the next thread (@code{gnus-summary-next-thread}).
6714
6715 @item T p
6716 @kindex T p (Summary)
6717 @findex gnus-summary-prev-thread
6718 Go to the previous thread (@code{gnus-summary-prev-thread}).
6719
6720 @item T d
6721 @kindex T d (Summary)
6722 @findex gnus-summary-down-thread
6723 Descend the thread (@code{gnus-summary-down-thread}).
6724
6725 @item T u
6726 @kindex T u (Summary)
6727 @findex gnus-summary-up-thread
6728 Ascend the thread (@code{gnus-summary-up-thread}).
6729
6730 @item T o
6731 @kindex T o (Summary)
6732 @findex gnus-summary-top-thread
6733 Go to the top of the thread (@code{gnus-summary-top-thread}).
6734 @end table
6735
6736 @vindex gnus-thread-operation-ignore-subject 
6737 If you ignore subject while threading, you'll naturally end up with
6738 threads that have several different subjects in them.  If you then issue
6739 a command like `T k' (@code{gnus-summary-kill-thread}) you might not
6740 wish to kill the entire thread, but just those parts of the thread that
6741 have the same subject as the current article.  If you like this idea,
6742 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If is
6743 is non-@code{nil} (which it is by default), subjects will be ignored
6744 when doing thread commands.  If this variable is @code{nil}, articles in
6745 the same thread with different subjects will not be included in the
6746 operation in question.  If this variable is @code{fuzzy}, only articles
6747 that have subjects that are fuzzily equal will be included.
6748
6749
6750 @node Asynchronous Fetching
6751 @section Asynchronous Article Fetching
6752 @cindex asynchronous article fetching
6753
6754 If you read your news from an @sc{nntp} server that's far away, the
6755 network latencies may make reading articles a chore.  You have to wait
6756 for a while after pressing @kbd{n} to go to the next article before the
6757 article appears.  Why can't Gnus just go ahead and fetch the article
6758 while you are reading the previous one? Why not, indeed.
6759
6760 First, some caveats.  There are some pitfalls to using asynchronous
6761 article fetching, especially the way Gnus does it.  
6762
6763 Let's say you are reading article 1, which is short, and article 2 is
6764 quite long, and you are not interested in reading that.  Gnus does not
6765 know this, so it goes ahead and fetches article 2.  You decide to read
6766 article 3, but since Gnus is in the process of fetching article 2, the
6767 connection is blocked.
6768
6769 To avoid these situations, Gnus will open two (count 'em two)
6770 connections to the server.  Some people may think this isn't a very nice
6771 thing to do, but I don't see any real alternatives.  Setting up that
6772 extra connection takes some time, so Gnus startup will be slower.
6773
6774 Gnus will fetch more articles than you will read.  This will mean that
6775 the link between your machine and the @sc{nntp} server will become more
6776 loaded than if you didn't use article pre-fetch.  The server itself will
6777 also become more loaded---both with the extra article requests, and the
6778 extra connection.
6779
6780 Ok, so now you know that you shouldn't really use this thing...  unless
6781 you really want to.
6782
6783 @vindex gnus-asynchronous
6784 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
6785 happen automatically.
6786
6787 @vindex nntp-async-number
6788 You can control how many articles that are to be pre-fetched by setting
6789 @code{nntp-async-number}.  This is five by default, which means that when
6790 you read an article in the group, @code{nntp} will pre-fetch the next
6791 five articles.  If this variable is @code{t}, @code{nntp} will pre-fetch
6792 all the articles that it can without bound.  If it is @code{nil}, no
6793 pre-fetching will be made.
6794
6795 @vindex gnus-asynchronous-article-function
6796 You may wish to create some sort of scheme for choosing which articles
6797 that @code{nntp} should consider as candidates for pre-fetching.  For
6798 instance, you may wish to pre-fetch all articles with high scores, and
6799 not pre-fetch low-scored articles.  You can do that by setting the
6800 @code{gnus-asynchronous-article-function}, which will be called with an
6801 alist where the keys are the article numbers.  Your function should
6802 return an alist where the articles you are not interested in have been
6803 removed.  You could also do sorting on article score and the like. 
6804
6805 @node Article Caching
6806 @section Article Caching
6807 @cindex article caching
6808 @cindex caching
6809
6810 If you have an @emph{extremely} slow @sc{nntp} connection, you may
6811 consider turning article caching on.  Each article will then be stored
6812 locally under your home directory.  As you may surmise, this could
6813 potentially use @emph{huge} amounts of disk space, as well as eat up all
6814 your inodes so fast it will make your head swim.  In vodka.
6815
6816 Used carefully, though, it could be just an easier way to save articles.
6817
6818 @vindex gnus-use-long-file-name
6819 @vindex gnus-cache-directory
6820 @vindex gnus-use-cache
6821 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
6822 all articles that are ticked or marked as dormant will then be copied
6823 over to your local cache (@code{gnus-cache-directory}).  Whether this
6824 cache is flat or hierarchal is controlled by the
6825 @code{gnus-use-long-file-name} variable, as usual.
6826
6827 When re-select a ticked or dormant article, it will be fetched from the
6828 cache instead of from the server.  As articles in your cache will never
6829 expire, this might serve as a method of saving articles while still
6830 keeping them where they belong.  Just mark all articles you want to save
6831 as dormant, and don't worry.
6832
6833 When an article is marked as read, is it removed from the cache.
6834
6835 @vindex gnus-cache-remove-articles
6836 @vindex gnus-cache-enter-articles
6837 The entering/removal of articles from the cache is controlled by the
6838 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
6839 variables.  Both are lists of symbols.  The first is @code{(ticked
6840 dormant)} by default, meaning that ticked and dormant articles will be
6841 put in the cache.  The latter is @code{(read)} by default, meaning that
6842 articles that are marked as read are removed from the cache.  Possibly
6843 symbols in these two lists are @code{ticked}, @code{dormant},
6844 @code{unread} and @code{read}.
6845
6846 @findex gnus-jog-cache
6847 So where does the massive article-fetching and storing come into the
6848 picture?  The @code{gnus-jog-cache} command will go through all
6849 subscribed newsgroups, request all unread articles, and store them in
6850 the cache.  You should only ever, ever ever ever, use this command if 1)
6851 your connection to the @sc{nntp} server is really, really, really slow
6852 and 2) you have a really, really, really huge disk.  Seriously.
6853
6854 @vindex gnus-uncacheable-groups
6855 It is likely that you do not want caching on some groups.  For instance,
6856 if your @code{nnml} mail is located under your home directory, it makes no
6857 sense to cache it somewhere else under your home directory.  Unless you
6858 feel that it's neat to use twice as much space.  To limit the caching,
6859 you could set the @code{gnus-uncacheable-groups} regexp to
6860 @samp{"^nnml"}, for instance.  This variable is @code{nil} by
6861 default.
6862
6863 @findex gnus-cache-generate-nov-databases
6864 @findex gnus-cache-generate-active
6865 If your cache becomes all messed up for some reason or other,  Gnus
6866 offers two functions that will try to set things right.  @kbd{M-x
6867 gnus-cache-generate-nov-databases} will (re)build all the @sc{nov}
6868 files, and @kbd{gnus-cache-generate-active} will (re)generate the active
6869 file. 
6870
6871
6872 @node Persistent Articles
6873 @section Persistent Articles
6874 @cindex persistent articles
6875
6876 Closely related to article caching, we have @dfn{persistent articles}.
6877 In fact, it's just a different way of looking at caching, and much more
6878 useful in my opinion.
6879
6880 Say you're reading a newsgroup, and you happen on to some valuable gem
6881 that you want to keep and treasure forever.  You'd normally just save it
6882 (using one of the many saving commands) in some file.  The problem with
6883 that is that it's just, well, yucky.  Ideally you'd prefer just having
6884 the article remain in the group where you found it forever; untouched by
6885 the expiry going on at the news server.
6886
6887 This is what a @dfn{persistent article} is---an article that just won't
6888 be deleted.  It's implemented using the normal cache functions, but
6889 you use two explicit commands for managing persistent articles:
6890
6891 @table @kbd
6892
6893 @item *
6894 @kindex * (Summary)
6895 @findex gnus-cache-enter-article
6896 Make the current article persistent (@code{gnus-cache-enter-article}). 
6897
6898 @item M-*
6899 @kindex M-* (Summary)
6900 @findex gnus-cache-remove-article
6901 Remove the current article from the persistent articles
6902 (@code{gnus-cache-remove-article}).  This will normally delete the
6903 article. 
6904 @end table
6905
6906 Both these commands understand the process/prefix convention. 
6907
6908 To avoid having all ticked articles (and stuff) entered into the cache,
6909 you should set @code{gnus-use-cache} to @code{passive} if you're just
6910 interested in persistent articles:
6911
6912 @lisp
6913 (setq gnus-use-cache 'passive)
6914 @end lisp
6915
6916
6917 @node Article Backlog
6918 @section Article Backlog
6919 @cindex backlog
6920 @cindex article backlog
6921
6922 If you have a slow connection, but the idea of using caching seems
6923 unappealing to you (and it is, really), you can help the situation some
6924 by switching on the @dfn{backlog}.  This is where Gnus will buffer
6925 already read articles so that it doesn't have to re-fetch articles
6926 you've already read.  This only helps if you are in the habit of
6927 re-selecting articles you've recently read, of course.  If you never do
6928 that, turning the backlog on will slow Gnus down a little bit, and
6929 increase memory usage some.
6930
6931 @vindex gnus-keep-backlog
6932 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
6933 at most @var{n} old articles in a buffer for later re-fetching.  If this
6934 variable is non-@code{nil} and is not a number, Gnus will store
6935 @emph{all} read articles, which means that your Emacs will group without
6936 bound before exploding and taking your machine down with you.  I put
6937 that in there just to keep y'all on your toes.  
6938
6939 This variable is @code{nil} by default.
6940
6941
6942 @node Exiting the Summary Buffer
6943 @section Exiting the Summary Buffer
6944 @cindex summary exit
6945
6946 Exiting from the summary buffer will normally update all info on the
6947 group and return you to the group buffer. 
6948
6949 @table @kbd
6950
6951 @item Z Z
6952 @itemx q
6953 @kindex Z Z (Summary)
6954 @kindex q (Summary)
6955 @findex gnus-summary-exit
6956 @vindex gnus-summary-exit-hook
6957 @vindex gnus-summary-prepare-exit-hook
6958 Exit the current group and update all information on the group
6959 (@code{gnus-summary-exit}). @code{gnus-summary-prepare-exit-hook} is
6960 called before doing much of the exiting, and calls
6961 @code{gnus-summary-expire-articles} by default.
6962 @code{gnus-summary-exit-hook} is called after finishing the exiting
6963 process. 
6964
6965 @item Z E
6966 @itemx Q
6967 @kindex Z E (Summary)
6968 @kindex Q (Summary)
6969 @findex gnus-summary-exit-no-update
6970 Exit the current group without updating any information on the group
6971 (@code{gnus-summary-exit-no-update}).
6972
6973 @item Z c
6974 @itemx c
6975 @kindex Z c (Summary)
6976 @kindex c (Summary)
6977 @findex gnus-summary-catchup-and-exit
6978 Mark all unticked articles in the group as read and then exit
6979 (@code{gnus-summary-catchup-and-exit}).
6980
6981 @item Z C
6982 @kindex Z C (Summary)
6983 @findex gnus-summary-catchup-all-and-exit
6984 Mark all articles, even the ticked ones, as read and then exit
6985 (@code{gnus-summary-catchup-all-and-exit}).
6986
6987 @item Z n
6988 @kindex Z n (Summary)
6989 @findex gnus-summary-catchup-and-goto-next-group
6990 Mark all articles as read and go to the next group
6991 (@code{gnus-summary-catchup-and-goto-next-group}). 
6992
6993 @item Z R
6994 @kindex Z R (Summary)
6995 @findex gnus-summary-reselect-current-group
6996 Exit this group, and then enter it again
6997 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
6998 all articles, both read and unread.
6999
7000 @item Z G
7001 @itemx M-g
7002 @kindex Z G (Summary)
7003 @kindex M-g (Summary)
7004 @findex gnus-summary-rescan-group
7005 Exit the group, check for new articles in the group, and select the
7006 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
7007 articles, both read and unread.
7008
7009 @item Z N
7010 @kindex Z N (Summary)
7011 @findex gnus-summary-next-group
7012 Exit the group and go to the next group
7013 (@code{gnus-summary-next-group}). 
7014
7015 @item Z P
7016 @kindex Z P (Summary)
7017 @findex gnus-summary-prev-group
7018 Exit the group and go to the previous group
7019 (@code{gnus-summary-prev-group}). 
7020 @end table
7021
7022 @vindex gnus-exit-group-hook
7023 @code{gnus-exit-group-hook} is called when you exit the current
7024 group.  
7025
7026 @findex gnus-summary-wake-up-the-dead
7027 @findex gnus-dead-summary-mode
7028 @vindex gnus-kill-summary-on-exit
7029 If you're in the habit of exiting groups, and then changing your mind
7030 about it, you might set @code{gnus-kill-summary-on-exit} to @code{nil}.
7031 If you do that, Gnus won't kill the summary buffer when you exit it.
7032 (Quelle surprise!)  Instead it will change the name of the buffer to
7033 something like @samp{"*Dead Summary ... *"} and install a minor mode
7034 called @code{gnus-dead-summary-mode}.  Now, if you switch back to this
7035 buffer, you'll find that all keys are mapped to a function called
7036 @code{gnus-summary-wake-up-the-dead}.  So tapping any keys in a dead
7037 summary buffer will result in a live, normal summary buffer.  
7038
7039 There will never be more than one dead summary buffer at any one time. 
7040
7041 @vindex gnus-use-cross-reference
7042 The data on the current group will be updated (which articles you have
7043 read, which articles you have replied to, etc.) when you exit the
7044 summary buffer.  If the @code{gnus-use-cross-reference} variable is
7045 @code{t} (which is the default), articles that are cross-referenced to
7046 this group and are marked as read, will also be marked as read in the
7047 other subscribed groups they were cross-posted to.  If this variable is
7048 neither @code{nil} nor @code{t}, the article will be marked as read in
7049 both subscribed and unsubscribed groups.
7050
7051 Marking cross-posted articles as read ensures that you'll never have to
7052 read the same article more than once.  Unless, of course, somebody has
7053 posted it to several groups separately.  Posting the same article to
7054 several groups (not cross-posting) is called @dfn{spamming}, and you are
7055 by law required to send nasty-grams to anyone who perpetrates such a
7056 heinous crime.
7057
7058 Remember: Cross-posting is kinda ok, but posting the same article
7059 separately to several groups is not.
7060
7061 One thing that may cause Gnus to not do the cross-posting thing
7062 correctly is if you use an @sc{nntp} server that supports @sc{xover}
7063 (which is very nice, because it speeds things up considerably) which
7064 does not include the @code{Xref} header in its @sc{nov} lines.  This is
7065 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
7066 even with @sc{xover} by registering the @code{Xref} lines of all
7067 articles you actually read, but if you kill the articles, or just mark
7068 them as read without reading them, Gnus will not get a chance to snoop
7069 the @code{Xref} lines out of these articles, and will be unable to use
7070 the cross reference mechanism.
7071
7072 @vindex gnus-nov-is-evil
7073 If you want Gnus to get the @code{Xref}s right all the time, you have to
7074 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
7075 considerably.
7076
7077 C'est la vie.
7078
7079
7080 @node Process/Prefix
7081 @section Process/Prefix
7082 @cindex process/prefix convention
7083
7084 Many functions, among them functions for moving, decoding and saving
7085 articles, use what is known as the @dfn{Process/Prefix convention}.
7086
7087 This is a method for figuring out what articles that the user wants the
7088 command to be performed on.
7089
7090 It goes like this:
7091
7092 If the numeric prefix is N, perform the operation on the next N
7093 articles, starting with the current one.  If the numeric prefix is
7094 negative, perform the operation on the previous N articles, starting
7095 with the current one.
7096
7097 If @code{transient-mark-mode} in non-@code{nil} and the region is
7098 active, all articles in the region will be worked upon.
7099
7100 If there is no numeric prefix, but some articles are marked with the
7101 process mark, perform the operation on the articles that are marked with
7102 the process mark.
7103
7104 If there is neither a numeric prefix nor any articles marked with the
7105 process mark, just perform the operation on the current article.
7106
7107 Quite simple, really, but it needs to be made clear so that surprises
7108 are avoided.
7109
7110 @vindex gnus-summary-goto-unread
7111 One thing that seems to shock & horrify lots of people is that, for
7112 instance, @kbd{3 d} does exactly the same as @kbd{d} @kbd{d} @kbd{d}.
7113 Since each @kbd{d} (which marks the current article as read) by default
7114 goes to the next unread article after marking, this means that @kbd{3 d}
7115 will mark the next three unread articles as read, no matter what the
7116 summary buffer looks like.  Set @code{gnus-summary-goto-unread} to
7117 @code{nil} for a more straightforward action.
7118
7119
7120 @node Saving Articles
7121 @section Saving Articles
7122 @cindex saving articles
7123
7124 Gnus can save articles in a number of ways.  Below is the documentation
7125 for saving articles in a fairly straight-forward fashion (i.e., little
7126 processing of the article is done before it is saved).  For a different
7127 approach (uudecoding, unsharing) you should use @code{gnus-uu}
7128 (@pxref{Decoding Articles}).
7129
7130 @vindex gnus-save-all-headers
7131 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
7132 unwanted headers before saving the article.
7133
7134 @vindex gnus-saved-headers
7135 If the preceding variable is @code{nil}, all headers that match the
7136 @code{gnus-saved-headers} regexp will be kept, while the rest will be
7137 deleted before saving.
7138
7139 @table @kbd
7140
7141 @item O o
7142 @itemx o
7143 @kindex O o (Summary)
7144 @kindex o (Summary)
7145 @findex gnus-summary-save-article
7146 Save the current article using the default article saver
7147 (@code{gnus-summary-save-article}). 
7148
7149 @item O m
7150 @kindex O m (Summary)
7151 @findex gnus-summary-save-article-mail
7152 Save the current article in mail format
7153 (@code{gnus-summary-save-article-mail}). 
7154
7155 @item O r
7156 @kindex O r (Summary)
7157 @findex gnus-summary-save-article-mail
7158 Save the current article in rmail format
7159 (@code{gnus-summary-save-article-rmail}). 
7160
7161 @item O f
7162 @kindex O f (Summary)
7163 @findex gnus-summary-save-article-file
7164 Save the current article in plain file format
7165 (@code{gnus-summary-save-article-file}). 
7166
7167 @item O b
7168 @kindex O b (Summary)
7169 @findex gnus-summary-save-article-body-file
7170 Save the current article body in plain file format
7171 (@code{gnus-summary-save-article-body-file}). 
7172
7173 @item O h
7174 @kindex O h (Summary)
7175 @findex gnus-summary-save-article-folder
7176 Save the current article in mh folder format
7177 (@code{gnus-summary-save-article-folder}). 
7178
7179 @item O p
7180 @kindex O p (Summary)
7181 @findex gnus-summary-pipe-output
7182 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
7183 the current article to a process (@code{gnus-summary-pipe-output}).
7184 @end table
7185
7186 @vindex gnus-prompt-before-saving
7187 All these commands use the process/prefix convention
7188 (@pxref{Process/Prefix}).  If you save bunches of articles using these
7189 functions, you might get tired of being prompted for files to save each
7190 and every article in.  The prompting action is controlled by
7191 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
7192 default, giving you that excessive prompting action you know and
7193 loathe.  If you set this variable to @code{t} instead, you'll be prompted
7194 just once for each series of articles you save.  If you like to really
7195 have Gnus do all your thinking for you, you can even set this variable
7196 to @code{nil}, which means that you will never be prompted for files to
7197 save articles in.  Gnus will simply save all the articles in the default
7198 files. 
7199
7200
7201 @vindex gnus-default-article-saver
7202 You can customize the @code{gnus-default-article-saver} variable to make
7203 Gnus do what you want it to.  You can use any of the four ready-made
7204 functions below, or you can create your own.
7205
7206 @table @code
7207
7208 @item gnus-summary-save-in-rmail
7209 @findex gnus-summary-save-in-rmail
7210 This is the default format, @dfn{babyl}.  Uses the function in the
7211 @code{gnus-rmail-save-name} variable to get a file name to save the
7212 article in.  The default is @code{gnus-plain-save-name}.
7213
7214 @item gnus-summary-save-in-mail
7215 @findex gnus-summary-save-in-mail
7216 Save in a Unix mail (mbox) file.  Uses the function in the
7217 @code{gnus-mail-save-name} variable to get a file name to save the
7218 article in.  The default is @code{gnus-plain-save-name}.
7219
7220 @item gnus-summary-save-in-file
7221 @findex gnus-summary-save-in-file
7222 Append the article straight to an ordinary file.  Uses the function in
7223 the @code{gnus-file-save-name} variable to get a file name to save the
7224 article in.  The default is @code{gnus-numeric-save-name}.
7225
7226 @item gnus-summary-save-body-in-file
7227 @findex gnus-summary-save-body-in-file
7228 Append the article body to an ordinary file.  Uses the function in the
7229 @code{gnus-file-save-name} variable to get a file name to save the
7230 article in.  The default is @code{gnus-numeric-save-name}.
7231
7232 @item gnus-summary-save-in-folder
7233 @findex gnus-summary-save-in-folder
7234 Save the article to an MH folder using @code{rcvstore} from the MH
7235 library.
7236
7237 @item gnus-summary-save-in-vm
7238 @findex gnus-summary-save-in-vm
7239 Save the article in a VM folder.  You have to have the VM mail
7240 reader to use this setting.
7241 @end table
7242
7243 All of these functions, except for the last one, will save the article
7244 in the @code{gnus-article-save-directory}, which is initialized from the
7245 @samp{SAVEDIR} environment variable.  This is @file{~/News/} by
7246 default. 
7247
7248 As you can see above, the functions use different functions to find a
7249 suitable name of a file to save the article in.  Below is a list of
7250 available functions that generate names:
7251
7252 @table @code
7253
7254 @item gnus-Numeric-save-name
7255 @findex gnus-Numeric-save-name
7256 Generates file names that look like @samp{~/News/Alt.andrea-dworkin/45}.
7257
7258 @item gnus-numeric-save-name
7259 @findex gnus-numeric-save-name
7260 Generates file names that look like @samp{~/News/alt.andrea-dworkin/45}.
7261
7262 @item gnus-Plain-save-name
7263 @findex gnus-Plain-save-name
7264 Generates file names that look like @samp{~/News/Alt.andrea-dworkin}.
7265
7266 @item gnus-plain-save-name
7267 @findex gnus-plain-save-name
7268 Generates file names that look like @samp{~/News/alt.andrea-dworkin}.
7269 @end table
7270
7271 @vindex gnus-split-methods
7272 You can have Gnus suggest where to save articles by plonking regexp into
7273 the @code{gnus-split-methods} alist.  For instance, if you would like to
7274 save articles related to Gnus in the file @file{gnus-stuff}, and articles
7275 related to VM in @code{vm-stuff}, you could set this variable to something
7276 like:
7277
7278 @lisp
7279 (("^Subject:.*gnus\\|^Newsgroups:.*gnus" "gnus-stuff")
7280  ("^Subject:.*vm\\|^Xref:.*vm" "vm-stuff")
7281  (my-choosing-function "../other-dir/my-stuff")
7282  ((equal gnus-newsgroup-name "mail.misc") "mail-stuff"))
7283 @end lisp
7284
7285 We see that this is a list where each element is a list that has two
7286 elements---the @dfn{match} and the @dfn{file}.  The match can either be
7287 a string (in which case it is used as a regexp to match on the article
7288 head); it can be a symbol (which will be called as a function); or it
7289 can be a list (which will be @code{eval}ed).  If any of these actions
7290 have a non-@code{nil} result, the @dfn{file} will be used as a default
7291 prompt.  In addition, the result of the operation itself will be used if
7292 the function or form called returns a string or a list of strings. 
7293
7294 You basically end up with a list of file names that might be used when
7295 saving the current article.  (All ``matches'' will be used.)  You will
7296 then be prompted for what you really want to use as a name, with file
7297 name completion over the results from applying this variable.
7298
7299 This variable is @code{((gnus-article-archive-name))} by default, which
7300 means that Gnus will look at the articles it saves for an
7301 @samp{Archive-name} line and use that as a suggestion for the file
7302 name. 
7303
7304 @vindex gnus-use-long-file-name
7305 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
7306 @code{nil}, all the preceding functions will replace all periods
7307 (@samp{.}) in the group names with slashes (@samp{/})---which means that
7308 the functions will generate hierarchies of directories instead of having
7309 all the files in the toplevel directory
7310 (@samp{~/News/alt/andrea-dworkin} instead of
7311 @samp{~/News/alt.andrea-dworkin}.)  This variable is @code{t} by default
7312 on most systems.  However, for historical reasons, this is @code{nil} on
7313 Xenix and usg-unix-v machines by default.
7314
7315 This function also affects kill and score file names.  If this variable
7316 is a list, and the list contains the element @code{not-score}, long file
7317 names will not be used for score files, if it contains the element
7318 @code{not-save}, long file names will not be used for saving, and if it
7319 contains the element @code{not-kill}, long file names will not be used
7320 for kill files.
7321
7322 If you'd like to save articles in a hierarchy that looks something like
7323 a spool, you could
7324
7325 @lisp
7326 (setq gnus-use-long-file-name '(not-save)) ; to get a hierarchy
7327 (setq gnus-default-article-save 'gnus-summary-save-in-file) ; no encoding
7328 @end lisp
7329
7330 Then just save with @kbd{o}.  You'd then read this hierarchy with
7331 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
7332 the toplevel directory as the argument (@file{~/News/}).  Then just walk
7333 around to the groups/directories with @code{nneething}.
7334
7335
7336 @node Decoding Articles
7337 @section Decoding Articles
7338 @cindex decoding articles
7339
7340 Sometime users post articles (or series of articles) that have been
7341 encoded in some way or other.  Gnus can decode them for you.
7342
7343 @menu 
7344 * Uuencoded Articles::    Uudecode articles.
7345 * Shared Articles::       Unshar articles.
7346 * PostScript Files::      Split PostScript.
7347 * Decoding Variables::    Variables for a happy decoding.
7348 * Viewing Files::         You want to look at the result of the decoding?
7349 @end menu
7350
7351 All these functions use the process/prefix convention
7352 (@pxref{Process/Prefix}) for finding out what articles to work on, with
7353 the extension that a ``single article'' means ``a single series''.  Gnus can
7354 find out by itself what articles belong to a series, decode all the
7355 articles and unpack/view/save the resulting file(s).
7356
7357 Gnus guesses what articles are in the series according to the following
7358 simplish rule: The subjects must be (nearly) identical, except for the
7359 last two numbers of the line.  (Spaces are largely ignored, however.)
7360
7361 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
7362 will find all the articles that match the regexp @samp{^cat.gif
7363 ([0-9]+/[0-9]+).*$}.  
7364
7365 Subjects that are nonstandard, like @samp{cat.gif (2/3) Part 6 of a
7366 series}, will not be properly recognized by any of the automatic viewing
7367 commands, and you have to mark the articles manually with @kbd{#}.
7368
7369 @node Uuencoded Articles
7370 @subsection Uuencoded Articles
7371 @cindex uudecode
7372 @cindex uuencoded articles
7373
7374 @table @kbd
7375
7376 @item X u
7377 @kindex X u (Summary)
7378 @findex gnus-uu-decode-uu
7379 Uudecodes the current series (@code{gnus-uu-decode-uu}).
7380
7381 @item X U
7382 @kindex X U (Summary)
7383 @findex gnus-uu-decode-uu-and-save
7384 Uudecodes and saves the current series
7385 (@code{gnus-uu-decode-uu-and-save}).
7386
7387 @item X v u
7388 @kindex X v u (Summary)
7389 @findex gnus-uu-decode-uu-view
7390 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
7391
7392 @item X v U
7393 @kindex X v U (Summary)
7394 @findex gnus-uu-decode-uu-and-save-view
7395 Uudecodes, views and saves the current series
7396 (@code{gnus-uu-decode-uu-and-save-view}). 
7397 @end table
7398
7399 Remember that these all react to the presence of articles marked with
7400 the process mark.  If, for instance, you'd like to uncode and save an
7401 entire newsgroup, you'd typically do @kbd{M P a}
7402 (@code{gnus-uu-mark-all}) and then @kbd{X U}
7403 (@code{gnus-uu-decode-uu-and-save}).
7404
7405 All this is very much different from how @code{gnus-uu} worked with
7406 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
7407 the sun.  This version of @code{gnus-uu} generally assumes that you mark
7408 articles in some way (@pxref{Setting Process Marks}) and then press
7409 @kbd{X u}.
7410
7411 Note: When trying to decode articles that have names matching
7412 @code{gnus-uu-notify-files}, which is hard-coded to
7413 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
7414 automatically post an article on @samp{comp.unix.wizards} saying that
7415 you have just viewed the file in question.  This feature can't be turned
7416 off.
7417
7418 @node Shared Articles
7419 @subsection Shared Articles
7420 @cindex unshar
7421 @cindex shared articles
7422
7423 @table @kbd
7424
7425 @item X s
7426 @kindex X s (Summary)
7427 @findex gnus-uu-decode-unshar
7428 Unshars the current series (@code{gnus-uu-decode-unshar}).
7429
7430 @item X S
7431 @kindex X S (Summary)
7432 @findex gnus-uu-decode-unshar-and-save
7433 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
7434
7435 @item X v s
7436 @kindex X v s (Summary)
7437 @findex gnus-uu-decode-unshar-view
7438 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
7439
7440 @item X v S
7441 @kindex X v S (Summary)
7442 @findex gnus-uu-decode-unshar-and-save-view
7443 Unshars, views and saves the current series
7444 (@code{gnus-uu-decode-unshar-and-save-view}). 
7445 @end table
7446
7447 @node PostScript Files
7448 @subsection PostScript Files
7449 @cindex PostScript
7450
7451 @table @kbd
7452
7453 @item X p
7454 @kindex X p (Summary)
7455 @findex gnus-uu-decode-postscript
7456 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
7457
7458 @item X P
7459 @kindex X P (Summary)
7460 @findex gnus-uu-decode-postscript-and-save
7461 Unpack and save the current PostScript series
7462 (@code{gnus-uu-decode-postscript-and-save}).
7463
7464 @item X v p
7465 @kindex X v p (Summary)
7466 @findex gnus-uu-decode-postscript-view
7467 View the current PostScript series
7468 (@code{gnus-uu-decode-postscript-view}).
7469
7470 @item X v P
7471 @kindex X v P (Summary)
7472 @findex gnus-uu-decode-postscript-and-save-view
7473 View and save the current PostScript series
7474 (@code{gnus-uu-decode-postscript-and-save-view}). 
7475 @end table
7476
7477 @node Decoding Variables
7478 @subsection Decoding Variables
7479
7480 Adjective, not verb.
7481
7482 @menu 
7483 * Rule Variables::          Variables that say how a file is to be viewed.
7484 * Other Decode Variables::  Other decode variables.
7485 * Uuencoding and Posting::  Variables for customizing uuencoding.
7486 @end menu
7487
7488 @node Rule Variables
7489 @subsubsection Rule Variables
7490 @cindex rule variables
7491
7492 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
7493 variables are on the form
7494   
7495 @lisp
7496       (list '(regexp1 command2)
7497             '(regexp2 command2)
7498             ...)
7499 @end lisp
7500
7501 @table @code
7502
7503 @item gnus-uu-user-view-rules
7504 @vindex gnus-uu-user-view-rules
7505 This variable is consulted first when viewing files.  If you wish to use,
7506 for instance, @code{sox} to convert an @samp{.au} sound file, you could
7507 say something like:
7508 @lisp
7509        (setq gnus-uu-user-view-rules
7510          (list '(\"\\\\.au$\" \"sox %s -t .aiff > /dev/audio\")))
7511 @end lisp
7512
7513 @item gnus-uu-user-view-rules-end
7514 @vindex gnus-uu-user-view-rules-end
7515 This variable is consulted if Gnus couldn't make any matches from the
7516 user and default view rules.
7517
7518 @item gnus-uu-user-archive-rules
7519 @vindex gnus-uu-user-archive-rules
7520 This variable can be used to say what commands should be used to unpack
7521 archives.
7522 @end table
7523
7524
7525 @node Other Decode Variables
7526 @subsubsection Other Decode Variables
7527
7528 @table @code
7529 @vindex gnus-uu-grabbed-file-functions
7530
7531 @item gnus-uu-grabbed-file-functions
7532 All functions in this list will be called right each file has been
7533 successfully decoded---so that you can move or view files right away,
7534 and don't have to wait for all files to be decoded before you can do
7535 anything.  Ready-made functions you can put in this list are:
7536
7537 @table @code
7538
7539 @item gnus-uu-grab-view
7540 @findex gnus-uu-grab-view
7541 View the file.
7542
7543 @item gnus-uu-grab-move
7544 @findex gnus-uu-grab-move
7545 Move the file (if you're using a saving function.)
7546 @end table
7547
7548 @item gnus-uu-ignore-files-by-name
7549 @vindex gnus-uu-ignore-files-by-name
7550 Files with name matching this regular expression won't be viewed.
7551
7552 @item gnus-uu-ignore-files-by-type
7553 @vindex gnus-uu-ignore-files-by-type
7554 Files with a @sc{mime} type matching this variable won't be viewed.
7555 Note that Gnus tries to guess what type the file is based on the name.
7556 @code{gnus-uu} is not a @sc{mime} package (yet), so this is slightly
7557 kludgey.
7558
7559 @item gnus-uu-tmp-dir
7560 @vindex gnus-uu-tmp-dir
7561 Where @code{gnus-uu} does its work.
7562
7563 @item gnus-uu-do-not-unpack-archives
7564 @vindex gnus-uu-do-not-unpack-archives
7565 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
7566 looking for files to display.
7567
7568 @item gnus-uu-view-and-save
7569 @vindex gnus-uu-view-and-save
7570 Non-@code{nil} means that the user will always be asked to save a file
7571 after viewing it.
7572
7573 @item gnus-uu-ignore-default-view-rules
7574 @vindex gnus-uu-ignore-default-view-rules
7575 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
7576 rules.
7577
7578 @item gnus-uu-ignore-default-archive-rules
7579 @vindex gnus-uu-ignore-default-archive-rules
7580 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
7581 unpacking commands.
7582
7583 @item gnus-uu-kill-carriage-return
7584 @vindex gnus-uu-kill-carriage-return
7585 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
7586 from articles.
7587
7588 @item gnus-uu-unmark-articles-not-decoded
7589 @vindex gnus-uu-unmark-articles-not-decoded
7590 Non-@code{nil} means that @code{gnus-uu} will mark articles that were
7591 unsuccessfully decoded as unread.
7592
7593 @item gnus-uu-correct-stripped-uucode
7594 @vindex gnus-uu-correct-stripped-uucode
7595 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
7596 uuencoded files that have had trailing spaces deleted.
7597
7598 @item gnus-uu-view-with-metamail
7599 @vindex gnus-uu-view-with-metamail
7600 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
7601 commands defined by the rule variables and just fudge a @sc{mime}
7602 content type based on the file name.  The result will be fed to
7603 @code{metamail} for viewing.
7604
7605 @item gnus-uu-save-in-digest
7606 @vindex gnus-uu-save-in-digest
7607 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
7608 decoding, will save in digests.  If this variable is @code{nil},
7609 @code{gnus-uu} will just save everything in a file without any
7610 embellishments.  The digesting almost conforms to RFC1153---no easy way
7611 to specify any meaningful volume and issue numbers were found, so I
7612 simply dropped them.
7613
7614 @end table
7615
7616 @node Uuencoding and Posting
7617 @subsubsection Uuencoding and Posting
7618
7619 @table @code
7620
7621 @item gnus-uu-post-include-before-composing
7622 @vindex gnus-uu-post-include-before-composing
7623 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
7624 before you compose the article.  If this variable is @code{t}, you can
7625 either include an encoded file with @kbd{C-c C-i} or have one included
7626 for you when you post the article.
7627
7628 @item gnus-uu-post-length
7629 @vindex gnus-uu-post-length
7630 Maximum length of an article.  The encoded file will be split into how
7631 many articles it takes to post the entire file.
7632
7633 @item gnus-uu-post-threaded
7634 @vindex gnus-uu-post-threaded
7635 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
7636 thread.  This may not be smart, as no other decoder I have seen are able
7637 to follow threads when collecting uuencoded articles.  (Well, I have
7638 seen one package that does that---@code{gnus-uu}, but somehow, I don't
7639 think that counts...) Default is @code{nil}.
7640
7641 @item gnus-uu-post-separate-description
7642 @vindex gnus-uu-post-separate-description
7643 Non-@code{nil} means that the description will be posted in a separate
7644 article.  The first article will typically be numbered (0/x).  If this
7645 variable is @code{nil}, the description the user enters will be included
7646 at the beginning of the first article, which will be numbered (1/x).
7647 Default is @code{t}.
7648
7649 @end table
7650
7651 @node Viewing Files
7652 @subsection Viewing Files
7653 @cindex viewing files
7654 @cindex pseudo-articles
7655
7656 After decoding, if the file is some sort of archive, Gnus will attempt
7657 to unpack the archive and see if any of the files in the archive can be
7658 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
7659 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
7660 uncompress and de-tar the main file, and then view the two pictures.
7661 This unpacking process is recursive, so if the archive contains archives
7662 of archives, it'll all be unpacked.
7663
7664 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
7665 extracted file into the summary buffer.  If you go to these ``articles'',
7666 you will be prompted for a command to run (usually Gnus will make a
7667 suggestion), and then the command will be run.
7668
7669 @vindex gnus-view-pseudo-asynchronously
7670 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
7671 until the viewing is done before proceeding.
7672
7673 @vindex gnus-view-pseudos
7674 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
7675 the pseudo-articles into the summary buffer, but view them
7676 immediately.  If this variable is @code{not-confirm}, the user won't even
7677 be asked for a confirmation before viewing is done.
7678
7679 @vindex gnus-view-pseudos-separately 
7680 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
7681 pseudo-article will be created for each file to be viewed.  If
7682 @code{nil}, all files that use the same viewing command will be given as
7683 a list of parameters to that command.
7684
7685 If @code{gnus-insert-pseudo-articles} is non-@code{nil}, insert
7686 pseudo-articles when decoding.  It is @code{t} by default.
7687
7688 So; there you are, reading your @emph{pseudo-articles} in your
7689 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
7690 Why isn't anything real anymore? How did we get here?
7691
7692
7693 @node Article Treatment
7694 @section Article Treatment
7695
7696 Reading through this huge manual, you may have quite forgotten that the
7697 object of newsreaders are to actually, like, read what people have
7698 written.  Reading articles.  Unfortunately, people are quite bad at
7699 writing, so there are tons of functions and variables to make reading
7700 these articles easier.
7701
7702 @menu
7703 * Article Highlighting::    You want to make the article look like fruit salad.
7704 * Article Hiding::          You also want to make certain info go away.
7705 * Article Washing::         Lots of way-neat functions to make life better.
7706 * Article Buttons::         Click on URLs, Message-IDs, addresses and the like.
7707 * Article Date::            Grumble, UT!
7708 @end menu
7709
7710
7711 @node Article Highlighting
7712 @subsection Article Highlighting
7713 @cindex highlight
7714
7715 Not only do you want your article buffer to look like fruit salad, but
7716 you want it to look like technicolor fruit salad.
7717
7718 @table @kbd
7719
7720 @item W H a
7721 @kindex W H a (Summary)
7722 @findex gnus-article-highlight
7723 Highlight the current article (@code{gnus-article-highlight}).
7724
7725 @item W H h
7726 @kindex W H h (Summary)
7727 @findex gnus-article-highlight-headers
7728 @vindex gnus-header-face-alist
7729 Highlight the headers (@code{gnus-article-highlight-headers}).  The
7730 highlighting will be done according to the @code{gnus-header-face-alist}
7731 variable, which is a list where each element has the form @var{(regexp
7732 name content)}.  @var{regexp} is a regular expression for matching the
7733 header, @var{name} is the face used for highlighting the header name and
7734 @var{content} is the face for highlighting the header value.  The first
7735 match made will be used.  Note that @var{regexp} shouldn't have @samp{^}
7736 prepended---Gnus will add one.
7737
7738 @item W H c
7739 @kindex W H c (Summary)
7740 @findex gnus-article-highlight-citation
7741 Highlight cited text (@code{gnus-article-highlight-citation}). 
7742
7743 Some variables to customize the citation highlights:
7744
7745 @table @code
7746 @vindex gnus-cite-parse-max-size
7747
7748 @item gnus-cite-parse-max-size
7749 If the article size if bigger than this variable (which is 25000 by
7750 default), no citation highlighting will be performed.  
7751
7752 @item gnus-cite-prefix-regexp
7753 @vindex gnus-cite-prefix-regexp
7754 Regexp matching the longest possible citation prefix on a line. 
7755
7756 @item gnus-cite-max-prefix
7757 @vindex gnus-cite-max-prefix
7758 Maximum possible length for a citation prefix (default 20).
7759
7760 @item gnus-supercite-regexp
7761 @vindex gnus-supercite-regexp
7762 Regexp matching normal SuperCite attribution lines.  
7763
7764 @item gnus-supercite-secondary-regexp
7765 @vindex gnus-supercite-secondary-regexp
7766 Regexp matching mangled SuperCite attribution lines.
7767
7768 @item gnus-cite-minimum-match-count
7769 @vindex gnus-cite-minimum-match-count
7770 Minimum number of identical prefixes we have to see before we believe
7771 that it's a citation.
7772
7773 @item gnus-cite-attribution-prefix
7774 @vindex gnus-cite-attribution-prefix
7775 Regexp matching the beginning of an attribution line.
7776
7777 @item gnus-cite-attribution-suffix
7778 @vindex gnus-cite-attribution-suffix
7779 Regexp matching the end of an attribution line.
7780
7781 @item gnus-cite-attribution-face
7782 @vindex gnus-cite-attribution-face
7783 Face used for attribution lines.  It is merged with the face for the
7784 cited text belonging to the attribution.
7785
7786 @end table
7787
7788
7789 @item W H s
7790 @kindex W H s (Summary)
7791 @vindex gnus-signature-separator
7792 @findex gnus-article-highlight-signature
7793 Highlight the signature (@code{gnus-article-highlight-signature}).
7794 Everything after @code{gnus-signature-separator} in an article will be
7795 considered a signature.
7796
7797 @end table
7798
7799
7800 @node Article Hiding
7801 @subsection Article Hiding
7802 @cindex article hiding
7803
7804 Or rather, hiding certain things in each article.  There usually is much
7805 too much cruft in most articles.  
7806
7807 @table @kbd
7808
7809 @item W W a
7810 @kindex W W a (Summary)
7811 @findex gnus-article-hide
7812 Do maximum hiding on the summary buffer (@kbd{gnus-article-hide}). 
7813
7814 @item W W h
7815 @kindex W W h (Summary)
7816 @findex gnus-article-hide-headers
7817 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
7818 Headers}. 
7819
7820 @item W W b
7821 @kindex W W b (Summary)
7822 @findex gnus-article-hide-boring-headers
7823 Hide headers that aren't particularly interesting
7824 (@code{gnus-article-hide-boring-headers}).  @xref{Hiding Headers}.
7825
7826 @item W W s
7827 @kindex W W s (Summary)
7828 @findex gnus-article-hide-signature
7829 Hide signature (@code{gnus-article-hide-signature}).
7830
7831 @item W W p
7832 @kindex W W p (Summary)
7833 @findex gnus-article-hide-pgp
7834 Hide @sc{pgp} signatures (@code{gnus-article-hide-pgp}). 
7835
7836 @item W W c
7837 @kindex W W c (Summary)
7838 @findex gnus-article-hide-citation
7839 Hide citation (@code{gnus-article-hide-citation}).  Some variables for
7840 customizing the hiding:
7841
7842 @table @code
7843
7844 @item gnus-cite-hide-percentage
7845 @vindex gnus-cite-hide-percentage
7846 If the cited text is of a bigger percentage than this variable (default
7847 50), hide the cited text.
7848
7849 @item gnus-cite-hide-absolute
7850 @vindex gnus-cite-hide-absolute
7851 The cited text must be have at least this length (default 10) before it
7852 is hidden.
7853
7854 @item gnus-cited-text-button-line-format
7855 @vindex gnus-cited-text-button-line-format
7856 Gnus adds buttons show where the cited text has been hidden, and to
7857 allow toggle hiding the text.  The format of the variable is specified
7858 by this format-like variable.  These specs are legal:
7859
7860 @table @samp
7861 @item b
7862 Start point of the hidden text.
7863 @item e
7864 End point of the hidden text.
7865 @item l
7866 Length of the hidden text.
7867 @end table
7868
7869 @item gnus-cited-lines-visible
7870 @vindex gnus-cited-lines-visible
7871 The number of lines at the beginning of the cited text to leave shown. 
7872
7873 @end table
7874
7875 @item W W C
7876 @kindex W W C (Summary)
7877 @findex gnus-article-hide-citation-in-followups
7878 Hide cited text in articles that aren't roots
7879 (@code{gnus-article-hide-citation-in-followups}).  This isn't very
7880 useful as an interactive command, but might be a handy function to stick
7881 in @code{gnus-article-display-hook} (@pxref{Customizing Articles}). 
7882
7883 @end table
7884
7885 All these ``hiding'' commands are toggles, but if you give a negative
7886 prefix to these commands, they will show what they have previously
7887 hidden.  If you give a positive prefix, they will always hide.
7888
7889 Also see @xref{Article Highlighting} for further variables for
7890 citation customization.
7891
7892 @vindex gnus-signature-limit
7893 @code{gnus-signature-limit} provides a limit to what is considered a
7894 signature.  If it is a number, no signature may not be longer (in
7895 characters) than that number.  If it is a function, the function will be
7896 called without any parameters, and if it returns @code{nil}, there is no
7897 signature in the buffer.  If it is a string, it will be used as a
7898 regexp.  If it matches, the text in question is not a signature.
7899
7900
7901 @node Article Washing
7902 @subsection Article Washing
7903 @cindex washing
7904 @cindex article washing
7905
7906 We call this ``article washing'' for a really good reason.  Namely, the
7907 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
7908
7909 @dfn{Washing} is defined by us as ``changing something from something to
7910 something else'', but normally results in something looking better.
7911 Cleaner, perhaps.
7912
7913 @table @kbd
7914
7915 @item W l
7916 @kindex W l (Summary)
7917 @findex gnus-summary-stop-page-breaking
7918 Remove page breaks from the current article
7919 (@code{gnus-summary-stop-page-breaking}).
7920
7921 @item W r
7922 @kindex W r (Summary)
7923 @findex gnus-summary-caesar-message
7924 Do a Caesar rotate (rot13) on the article buffer
7925 (@code{gnus-summary-caesar-message}). 
7926
7927 @item A g
7928 @kindex A g (Summary)
7929 @findex gnus-summary-show-article
7930 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
7931 given a prefix, fetch the current article, but don't run any of the
7932 article treatment functions.  This will give you a ``raw'' article, just
7933 the way it came from the server.
7934
7935 @item W t
7936 @kindex W t (Summary)
7937 @findex gnus-summary-toggle-header
7938 Toggle whether to display all headers in the article buffer
7939 (@code{gnus-summary-toggle-header}). 
7940
7941 @item W v
7942 @kindex W v (Summary)
7943 @findex gnus-summary-verbose-header
7944 Toggle whether to display all headers in the article buffer permanently
7945 (@code{gnus-summary-verbose-header}).
7946
7947 @item W m
7948 @kindex W m (Summary)
7949 @findex gnus-summary-toggle-mime
7950 Toggle whether to run the article through @sc{mime} before displaying
7951 (@code{gnus-summary-toggle-mime}).
7952
7953 @item W o
7954 @kindex W o (Summary)
7955 @findex gnus-article-treat-overstrike
7956 Treat overstrike (@code{gnus-article-treat-overstrike}).
7957
7958 @item W w
7959 @kindex W w (Summary)
7960 @findex gnus-article-word-wrap
7961 Do word wrap (@code{gnus-article-word-wrap}).
7962
7963 @item W c
7964 @kindex W c (Summary)
7965 @findex gnus-article-remove-cr
7966 Remove CR (@code{gnus-article-remove-cr}).
7967
7968 @item W L
7969 @kindex W L (Summary)
7970 @findex gnus-article-remove-trailing-blank-lines
7971 Remove all blank lines at the end of the article
7972 (@code{gnus-article-remove-trailing-blank-lines}).
7973
7974 @item W q
7975 @kindex W q (Summary)
7976 @findex gnus-article-de-quoted-unreadable
7977 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
7978
7979 @item W f
7980 @kindex W f (Summary)
7981 @cindex x-face
7982 @findex gnus-article-display-x-face
7983 @findex gnus-article-x-face-command
7984 @vindex gnus-article-x-face-command
7985 @vindex gnus-article-x-face-too-ugly
7986 Look for and display any X-Face headers
7987 (@code{gnus-article-display-x-face}).  The command executed by this
7988 function is given by the @code{gnus-article-x-face-command} variable.  If
7989 this variable is a string, this string will be executed in a sub-shell.
7990 If it is a function, this function will be called with the face as the
7991 argument.  If the @code{gnus-article-x-face-too-ugly} (which is a regexp)
7992 matches the @code{From} header, the face will not be shown.
7993
7994 @item W b
7995 @kindex W b (Summary)
7996 @findex gnus-article-add-buttons
7997 Add clickable buttons to the article (@code{gnus-article-add-buttons}). 
7998
7999 @item W B
8000 @kindex W B (Summary)
8001 @findex gnus-article-add-buttons-to-head
8002 Add clickable buttons to the article headers
8003 (@code{gnus-article-add-buttons-to-head}).  
8004
8005 @end table
8006
8007
8008 @node Article Buttons
8009 @subsection Article Buttons
8010 @cindex buttons
8011
8012 People often include references to other stuff in articles, and it would
8013 be nice if Gnus could just fetch whatever it is that people talk about
8014 with the minimum of fuzz.
8015
8016 Gnus adds @dfn{buttons} to certain standard references by default:
8017 Well-formed URLs, mail addresses and Message-IDs.  This is controlled by
8018 two variables, one that handles article bodies and one that handles
8019 article heads:
8020
8021 @table @code
8022
8023 @item gnus-button-alist
8024 @vindex gnus-header-button-alist
8025 This is an alist where each entry has this form:
8026
8027 @lisp
8028 (REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
8029 @end lisp
8030
8031 @table @var
8032
8033 @item regexp
8034 All text that match this regular expression will be considered an
8035 external reference.  Here's a typical regexp that match embedded URLs:
8036 @samp{"<URL:\\([^\n\r>]*\\)>"}. 
8037
8038 @item button-par
8039 Gnus has to know which parts of the match is to be highlighted.  This is
8040 a number that says what sub-expression of the regexp that is to be
8041 highlighted.  If you want it all highlighted, you use @samp{0} here.
8042
8043 @item use-p
8044 This form will be @code{eval}ed, and if the result is non-@code{nil},
8045 this is considered a match.  This is useful if you want extra sifting to
8046 avoid false matches.
8047
8048 @item function
8049 This function will be called when you click on this button.
8050
8051 @item data-par
8052 As with @var{button-par}, this is a sub-expression number, but this one
8053 says which part of the match is to be sent as data to @var{function}. 
8054
8055 @end table
8056
8057 So the full entry for buttonizing URLs is then
8058
8059 @lisp
8060 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
8061 @end lisp
8062
8063 @item gnus-header-button-alist
8064 @vindex gnus-header-button-alist
8065 This is just like the other alist, except that it is applied to the
8066 article head only, and that each entry has an additional element that is
8067 used to say what headers to apply the buttonize coding to:
8068
8069 @lisp
8070 (HEADER REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
8071 @end lisp
8072
8073 @var{header} is a regular expression.
8074
8075 @end table
8076
8077 @vindex gnus-article-button-face
8078 @vindex gnus-article-mouse-face
8079 Buttons are highlighted with @code{gnus-article-button-face}, while
8080 @code{gnus-article-mouse-face} is used when the mouse cursor is over the
8081 button.
8082
8083
8084 @node Article Date
8085 @subsection Article Date
8086
8087 The date is most likely generated in some obscure timezone you've never
8088 heard of, so it's quite nice to be able to find out what the time was
8089 when the article was sent.
8090
8091 @table @kbd
8092
8093 @item W T u
8094 @kindex W T u (Summary)
8095 @findex gnus-article-date-ut
8096 Display the date in UT (aka. GMT, aka ZULU)
8097 (@code{gnus-article-date-ut}). 
8098
8099 @item W T l
8100 @kindex W T l (Summary)
8101 @findex gnus-article-date-local
8102 Display the date in the local timezone (@code{gnus-article-date-local}).
8103
8104 @item W T e
8105 @kindex W T e (Summary)
8106 @findex gnus-article-date-lapsed
8107 Say how much time has (e)lapsed between the article was posted and now
8108 (@code{gnus-article-date-lapsed}).
8109
8110 @item W T o
8111 @kindex W T o (Summary)
8112 @findex gnus-article-date-original
8113 Display the original date (@code{gnus-article-date-original}).  This can
8114 be useful if you normally use some other conversion function and is
8115 worried that it might be doing something totally wrong.  Say, claiming
8116 that the article was posted in 1854.  Although something like that is
8117 @emph{totally} impossible.  Don't you trust me? *titter*
8118
8119 @end table
8120
8121
8122 @node Summary Sorting
8123 @section Summary Sorting
8124 @cindex summary sorting
8125
8126 You can have the summary buffer sorted in various ways, even though I
8127 can't really see why you'd want that.
8128
8129 @table @kbd
8130
8131 @item C-c C-s C-n
8132 @kindex C-c C-s C-n (Summary)
8133 @findex gnus-summary-sort-by-number
8134 Sort by article number (@code{gnus-summary-sort-by-number}).
8135
8136 @item C-c C-s C-a
8137 @kindex C-c C-s C-a (Summary)
8138 @findex gnus-summary-sort-by-author
8139 Sort by author (@code{gnus-summary-sort-by-author}).
8140
8141 @item C-c C-s C-s
8142 @kindex C-c C-s C-s (Summary)
8143 @findex gnus-summary-sort-by-subject
8144 Sort by subject (@code{gnus-summary-sort-by-subject}).
8145
8146 @item C-c C-s C-d
8147 @kindex C-c C-s C-d (Summary)
8148 @findex gnus-summary-sort-by-date
8149 Sort by date (@code{gnus-summary-sort-by-date}).
8150
8151 @item C-c C-s C-i
8152 @kindex C-c C-s C-i (Summary)
8153 @findex gnus-summary-sort-by-score
8154 Sort by score (@code{gnus-summary-sort-by-score}).
8155 @end table
8156
8157 These functions will work both when you use threading and when you don't
8158 use threading.  In the latter case, all summary lines will be sorted,
8159 line by line.  In the former case, sorting will be done on a
8160 root-by-root basis, which might not be what you were looking for.  To
8161 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
8162 Commands}).
8163
8164
8165 @node Finding the Parent
8166 @section Finding the Parent
8167 @cindex parent articles
8168 @cindex referring articles
8169
8170 @findex gnus-summary-refer-parent-article
8171 @kindex ^ (Summary)
8172 If you'd like to read the parent of the current article, and it is not
8173 displayed in the article buffer, you might still be able to.  That is,
8174 if the current group is fetched by @sc{nntp}, the parent hasn't expired
8175 and the @code{References} in the current article are not mangled, you
8176 can just press @kbd{^} or @kbd{A r}
8177 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
8178 you'll get the parent.  If the parent is already displayed in the
8179 summary buffer, point will just move to this article.
8180
8181 @findex gnus-summary-refer-references
8182 @kindex A R (Summary)
8183 You can have Gnus fetch all articles mentioned in the @code{References}
8184 header of the article by pushing @kbd{A R}
8185 (@code{gnus-summary-refer-references}). 
8186
8187 @findex gnus-summary-refer-article
8188 @kindex M-^ (Summary)
8189 You can also ask the @sc{nntp} server for an arbitrary article, no
8190 matter what group it belongs to.  @kbd{M-^}
8191 (@code{gnus-summary-refer-article}) will ask you for a
8192 @code{Message-ID}, which is one of those long thingies that look
8193 something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.  You have to get
8194 it all exactly right.  No fuzzy searches, I'm afraid.
8195
8196 @vindex gnus-refer-article-method
8197 If the group you are reading is located on a backend that does not
8198 support fetching by @code{Message-ID} very well (like @code{nnspool}),
8199 you can set @code{gnus-refer-article-method} to an @sc{nntp} method.  It
8200 would, perhaps, be best if the @sc{nntp} server you consult is the same
8201 as the one that keeps the spool you are reading from updated, but that's
8202 not really necessary.
8203
8204 Most of the mail backends support fetching by @code{Message-ID}, but do
8205 not do a particularly excellent job of it.  That is, @code{nnmbox} and
8206 @code{nnbabyl} are able to locate articles from any groups, while
8207 @code{nnml} and @code{nnfolder} are only able to locate articles that
8208 have been posted to the current group.  (Anything else would be too time
8209 consuming.)  @code{nnmh} does not support this at all.
8210
8211
8212 @node Alternative Approaches
8213 @section Alternative Approaches
8214
8215 Different people like to read news using different methods.  This being
8216 Gnus, we offer a small selection of minor modes for the summary buffers.
8217
8218 @menu
8219 * Pick and Read::               First mark articles and then read them.
8220 * Binary Groups::               Auto-decode all articles.
8221 @end menu
8222
8223
8224 @node Pick and Read
8225 @subsection Pick and Read
8226 @cindex pick and read
8227
8228 Some newsreaders (like @code{nn} and, uhm, @code{nn}) use a two-phased
8229 reading interface.  The user first marks the articles she wants to read
8230 from a summary buffer.  Then she starts reading the articles with just
8231 an article buffer displayed.
8232
8233 @findex gnus-pick-mode
8234 @kindex M-x gnus-pick-mode
8235 Gnus provides a summary buffer minor mode that allows
8236 this---@code{gnus-pick-mode}.  This basically means that a few process
8237 mark commands become one-keystroke commands to allow easy marking, and
8238 it makes one additional command for switching to the summary buffer
8239 available. 
8240
8241 Here are the available keystrokes when using pick mode:
8242
8243 @table @kbd
8244 @item SPC
8245 Pick the article (@code{gnus-summary-mark-as-processable}). 
8246
8247 @item u
8248 Unpick the article (@code{gnus-summary-unmark-as-processable}). 
8249
8250 @item U
8251 Unpick all articles (@code{gnus-summary-unmark-all-processable}). 
8252
8253 @item t
8254 Pick the thread (@code{gnus-uu-mark-thread}). 
8255
8256 @item T
8257 Unpick the thread (@code{gnus-uu-unmark-thread}). 
8258
8259 @item r
8260 Pick the region (@code{gnus-uu-mark-region}). 
8261
8262 @item R
8263 Unpick the region (@code{gnus-uu-unmark-region}). 
8264
8265 @item e
8266 Pick articles that match a regexp (@code{gnus-uu-unmark-regexp}). 
8267
8268 @item E
8269 Unpick articles that match a regexp (@code{gnus-uu-unmark-regexp}). 
8270
8271 @item b
8272 Pick the buffer (@code{gnus-uu-mark-buffer}). 
8273
8274 @item B
8275 Unpick the buffer (@code{gnus-uu-unmark-buffer}). 
8276
8277 @item RET
8278 @vindex gnus-pick-display-summary
8279 Start reading the picked articles (@code{gnus-pick-start-reading}).  If
8280 given a prefix, mark all unpicked articles as read first.  If
8281 @code{gnus-pick-display-summary} is non-@code{nil}, the summary buffer
8282 will still be visible when you are reading.
8283
8284 @end table
8285
8286 If this sounds like a good idea to you, you could say:
8287
8288 @lisp
8289 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
8290 @end lisp
8291
8292
8293 @node Binary Groups
8294 @subsection Binary Groups
8295 @cindex binary groups
8296
8297 @findex gnus-binary-mode
8298 @kindex M-x gnus-binary-mode
8299 If you spend much time in binary groups, you may grow tired of hitting
8300 @kbd{X u}, @kbd{n}, @kbd{RET} all the time.  @kbd{M-x gnus-binary-mode}
8301 is a minor mode for summary buffers that makes all ordinary Gnus article
8302 selection functions uudecode series of articles and display the result
8303 instead of just displaying the articles the normal way.  
8304
8305 @kindex g (Binary)
8306 @findex gnus-binary-show-article
8307 In fact, the only way to see the actual articles if you have turned this
8308 mode on is the @kbd{g} command (@code{gnus-binary-show-article}). 
8309
8310
8311 @node Tree Display
8312 @section Tree Display
8313 @cindex trees
8314
8315 @vindex gnus-use-trees
8316 If you don't like the normal Gnus summary display, you might try setting
8317 @code{gnus-use-trees} to @code{t}.  This will create (by default) an
8318 additional @dfn{tree buffer}.  You can execute all summary mode commands
8319 in the tree buffer.  
8320
8321 There are a few variables to customize the tree display, of course:
8322
8323 @table @code
8324 @item gnus-tree-mode-hook
8325 @vindex gnus-tree-mode-hook
8326 A hook called in all tree mode buffers.
8327
8328 @item gnus-tree-mode-line-format
8329 @vindex gnus-tree-mode-line-format
8330 A format string for the mode bar in the tree mode buffers.  The default
8331 is @samp{"Gnus: %%b [%A] %Z"}.  For a list of legal specs, @xref{Summary
8332 Buffer Mode Line}. 
8333
8334 @item gnus-selected-tree-face
8335 @vindex gnus-selected-tree-face
8336 Face used for highlighting the selected article in the tree buffer.  The
8337 default is @code{modeline}.
8338
8339 @item gnus-tree-line-format
8340 @vindex gnus-tree-line-format
8341 A format string for the tree nodes.  The name is a bit of a misnomer,
8342 though---it doesn't define a line, but just the node.  The default value
8343 is @samp{"%(%[%3,3n%]%)"}, which displays the first three characters of
8344 the name of the poster.  It is vital that all nodes are of the same
8345 length, so you @emph{must} use @samp{%4,4n}-like specifiers.
8346
8347 Legal specs are:
8348
8349 @table @samp
8350 @item n
8351 The name of the poster.
8352 @item f
8353 The @code{From} header.
8354 @item N
8355 The number of the article.
8356 @item [
8357 The opening bracket.
8358 @item ] 
8359 The closing bracket.
8360 @item s
8361 The subject.
8362 @end table
8363
8364 @xref{Formatting Variables}.
8365
8366 Variables related to the display are:
8367
8368 @table @code
8369 @item gnus-tree-brackets
8370 @vindex gnus-tree-brackets
8371 This is used for differentiating between ``real'' articles and ``sparse''
8372 articles.  The format is @var{((real-open . real-close) (sparse-open
8373 . sparse-close) (dummy-open . dummy-close))}, and the default is
8374 @code{((?[ . ?]) (?( . ?)) (?@{ . ?@}))}.
8375
8376 @item gnus-tree-parent-child-edges
8377 @vindex gnus-tree-parent-child-edges
8378 This is a list that contains the characters used for connecting parent
8379 nodes to their children.  The default is @code{(?- ?\\ ?|)}. 
8380
8381 @end table
8382
8383 @item gnus-tree-minimize-window
8384 @vindex gnus-tree-minimize-window
8385 If this variable is non-@code{nil}, Gnus will try to keep the tree
8386 buffer as small as possible to allow more room for the other Gnus
8387 windows.  If this variable is a number, the tree buffer will never be
8388 higher than that number.  The default is @code{t}.
8389
8390 @item gnus-generate-tree-function
8391 @vindex gnus-generate-tree-function
8392 @findex gnus-generate-horizontal-tree
8393 @findex gnus-generate-vertical-tree
8394 The function that actually generates the thread tree.  Two predefined
8395 functions are available: @code{gnus-generate-horizontal-tree} and
8396 @code{gnus-generate-vertical-tree} (which is the default).
8397
8398 @end table
8399
8400 Here's and example from a horizontal tree buffer:
8401
8402 @example
8403 @{***@}-(***)-[odd]-[Gun]
8404      |     \[Jan]
8405      |     \[odd]-[Eri]
8406      |     \(***)-[Eri]
8407      |           \[odd]-[Paa]
8408      \[Bjo]
8409      \[Gun]
8410      \[Gun]-[Jor]
8411 @end example
8412
8413 Here's the same thread displayed in a vertical tree buffer:
8414
8415 @example
8416 @{***@}
8417   |--------------------------\-----\-----\
8418 (***)                         [Bjo] [Gun] [Gun]
8419   |--\-----\-----\                          |
8420 [odd] [Jan] [odd] (***)                   [Jor]
8421   |           |     |--\
8422 [Gun]       [Eri] [Eri] [odd]
8423                           |
8424                         [Paa]
8425 @end example
8426
8427
8428 @node Mail Group Commands
8429 @section Mail Group Commands
8430 @cindex mail group commands
8431
8432 Some commands only make sense in mail groups.  If these commands are
8433 illegal in the current group, they will raise a hell and let you know.
8434
8435 All these commands (except the expiry and edit commands) use the
8436 process/prefix convention (@pxref{Process/Prefix}).
8437
8438 @table @kbd
8439
8440 @item B e
8441 @kindex B e (Summary)
8442 @findex gnus-summary-expire-articles
8443 Expire all expirable articles in the group
8444 (@code{gnus-summary-expire-articles}).
8445
8446 @item B M-C-e
8447 @kindex B M-C-e (Summary)
8448 @findex gnus-summary-expire-articles-now
8449 Expunge all the expirable articles in the group
8450 (@code{gnus-summary-expire-articles-now}).  This means that @strong{all}
8451 articles that are eligible for expiry in the current group will
8452 disappear forever into that big @file{/dev/null} in the sky.
8453
8454 @item B DEL
8455 @kindex B DEL (Summary)
8456 @findex gnus-summary-delete-articles
8457 Delete the mail article.  This is ``delete'' as in ``delete it from your
8458 disk forever and ever, never to return again.'' Use with caution.
8459 (@code{gnus-summary-delete-article}).
8460
8461 @item B m
8462 @kindex B m (Summary)
8463 @cindex move mail
8464 @findex gnus-summary-move-article
8465 Move the article from one mail group to another
8466 (@code{gnus-summary-move-article}). 
8467
8468 @item B c
8469 @kindex B c (Summary)
8470 @cindex copy mail
8471 @findex gnus-summary-copy-article
8472 Copy the article from one group (mail group or not) to a mail group
8473 (@code{gnus-summary-copy-article}).
8474
8475 @item B C
8476 @kindex B C (Summary)
8477 @cindex crosspost mail
8478 @findex gnus-summary-crosspost-article
8479 Crosspost the current article to some other group
8480 (@code{gnus-summary-crosspost-article}).  This will create a new copy of
8481 the article in the other group, and the Xref headers of the article will
8482 be properly updated.
8483
8484 @item B i
8485 @kindex B i (Summary)
8486 @findex gnus-summary-import-article
8487 Import a random file into the current mail newsgroup
8488 (@code{gnus-summary-import-article}).  You will be prompted for a file
8489 name, a @code{From} header and a @code{Subject} header.
8490
8491 Something similar can be done by just starting to compose a mail
8492 message.  Instead of typing @kbd{C-c C-c} to mail it off, you can type
8493 @kbd{C-c C-p} instead.  This will put the message you have just created
8494 into the current mail group.
8495
8496 @item B r
8497 @kindex B r (Summary)
8498 @findex gnus-summary-respool-article
8499 Respool the mail article (@code{gnus-summary-move-article}).
8500
8501 @item B w
8502 @itemx e
8503 @kindex B w (Summary)
8504 @kindex e (Summary)
8505 @findex gnus-summary-edit-article
8506 @kindex C-c C-c (Article)
8507 Edit the current article (@code{gnus-summary-edit-article}).  To finish
8508 editing and make the changes permanent, type @kbd{C-c C-c}
8509 (@kbd{gnus-summary-edit-article-done}).
8510
8511 @item B q
8512 @kindex B q (Summary)
8513 @findex gnus-summary-respool-query
8514 If you want to re-spool an article, you might be curious as to what group
8515 the article will end up in before you do the re-spooling.  This command
8516 will tell you (@code{gnus-summary-fancy-query}). 
8517 @end table
8518
8519 If you move (or copy) articles regularly, you might wish to have Gnus
8520 suggest where to put the articles.  @code{gnus-move-split-methods} is a
8521 variable that uses the same syntax as @code{gnus-split-methods}
8522 (@pxref{Saving Articles}).  You may customize that variable to create
8523 suggestions you find reasonable.
8524
8525
8526 @node Various Summary Stuff
8527 @section Various Summary Stuff
8528
8529 @menu
8530 * Group Information::                 Information oriented commands.
8531 * Searching for Articles::            Multiple article commands.
8532 * Really Various Summary Commands::   Those pesky non-conformant commands.
8533 @end menu
8534
8535 @vindex gnus-summary-generate-hook
8536 @code{gnus-summary-generate-hook} is called as the last thing before
8537 doing the threading and the generation of the summary buffer.  It's
8538 quite convenient for customizing the threading variables based on what
8539 data the newsgroup has.  This hook is called from the summary buffer
8540 after most summary buffer variables has been set.
8541
8542 @vindex gnus-summary-prepare-hook
8543 @code{gnus-summary-prepare-hook} is called after the summary buffer has
8544 been generated.  You might use it to, for instance, highlight lines or
8545 modify the look of the buffer in some other ungodly manner.  I don't
8546 care.
8547
8548 @node Group Information
8549 @subsection Group Information
8550
8551 @table @kbd
8552
8553 @item H f
8554 @kindex H f (Summary)
8555 @findex gnus-summary-fetch-faq
8556 @vindex gnus-group-faq-directory
8557 Try to fetch the FAQ (list of frequently asked questions) for the
8558 current group (@code{gnus-summary-fetch-faq}).  Gnus will try to get the
8559 FAQ from @code{gnus-group-faq-directory}, which is usually a directory
8560 on a remote machine.  This variable can also be a list of directories.
8561 In that case, giving a prefix to this command will allow you to choose
8562 between the various sites.  @code{ange-ftp} probably will be used for
8563 fetching the file.
8564
8565 @item H d
8566 @kindex H d (Summary)
8567 @findex gnus-summary-describe-group
8568 Give a brief description of the current group
8569 (@code{gnus-summary-describe-group}).  If given a prefix, force
8570 rereading the description from the server.
8571
8572 @item H h
8573 @kindex H h (Summary)
8574 @findex gnus-summary-describe-briefly
8575 Give a very brief description of the most important summary keystrokes
8576 (@code{gnus-summary-describe-briefly}). 
8577
8578 @item H i
8579 @kindex H i (Summary)
8580 @findex gnus-info-find-node
8581 Go to the Gnus info node (@code{gnus-info-find-node}).
8582 @end table
8583
8584 @node Searching for Articles
8585 @subsection Searching for Articles
8586
8587 @table @kbd
8588
8589 @item M-s
8590 @kindex M-s (Summary)
8591 @findex gnus-summary-search-article-forward
8592 Search through all subsequent articles for a regexp
8593 (@code{gnus-summary-search-article-forward}). 
8594
8595 @item M-r
8596 @kindex M-r (Summary)
8597 @findex gnus-summary-search-article-backward
8598 Search through all previous articles for a regexp
8599 (@code{gnus-summary-search-article-backward}). 
8600
8601 @item &
8602 @kindex & (Summary)
8603 @findex gnus-summary-execute-command
8604 This command will prompt you for a header field, a regular expression to
8605 match on this field, and a command to be executed if the match is made
8606 (@code{gnus-summary-execute-command}).
8607
8608 @item M-&
8609 @kindex M-& (Summary)
8610 @findex gnus-summary-universal-argument
8611 Perform any operation on all articles that have been marked with
8612 the process mark (@code{gnus-summary-universal-argument}).
8613 @end table
8614
8615 @node Really Various Summary Commands
8616 @subsection Really Various Summary Commands
8617
8618 @table @kbd
8619
8620 @item A D
8621 @kindex A D (Summary)
8622 @findex gnus-summary-enter-digest-group
8623 If the current article is a collection of other articles (for instance,
8624 a digest), you might use this command to enter a group based on the that
8625 article (@code{gnus-summary-enter-digest-group}).  Gnus will try to
8626 guess what article type is currently displayed unless you give a prefix
8627 to this command, which forces a ``digest'' interpretation.  Basically,
8628 whenever you see a message that is a collection of other messages on
8629 some format, you @kbd{A D} and read these messages in a more convenient
8630 fashion. 
8631
8632 @item C-t
8633 @kindex C-t (Summary)
8634 @findex gnus-summary-toggle-truncation
8635 Toggle truncation of summary lines (@code{gnus-summary-toggle-truncation}).
8636
8637 @item =
8638 @kindex = (Summary)
8639 @findex gnus-summary-expand-window
8640 Expand the summary buffer window (@code{gnus-summary-expand-window}).
8641 If given a prefix, force an @code{article} window configuration. 
8642 @end table
8643
8644
8645 @node The Article Buffer
8646 @chapter The Article Buffer
8647 @cindex article buffer
8648
8649 The articles are displayed in the article buffer, of which there is only
8650 one.  All the summary buffers share the same article buffer unless you
8651 tell Gnus otherwise.
8652
8653 @menu
8654 * Hiding Headers::        Deciding what headers should be displayed.
8655 * Using MIME::            Pushing articles through @sc{mime} before reading them.
8656 * Customizing Articles::  Tailoring the look of the articles.
8657 * Article Keymap::        Keystrokes available in the article buffer
8658 * Misc Article::          Other stuff.
8659 @end menu
8660
8661
8662 @node Hiding Headers
8663 @section Hiding Headers
8664 @cindex hiding headers
8665 @cindex deleting headers
8666
8667 The top section of each article is the @dfn{head}.  (The rest is the
8668 @dfn{body}, but you may have guessed that already.)
8669
8670 @vindex gnus-show-all-headers
8671 There is a lot of useful information in the head: the name of the person
8672 who wrote the article, the date it was written and the subject of the
8673 article.  That's well and nice, but there's also lots of information
8674 most people do not want to see---what systems the article has passed
8675 through before reaching you, the @code{Message-ID}, the
8676 @code{References}, etc. ad nauseum---and you'll probably want to get rid
8677 of some of those lines.  If you want to keep all those lines in the
8678 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
8679
8680 Gnus provides you with two variables for sifting headers:
8681
8682 @table @code
8683
8684 @item gnus-visible-headers
8685 @vindex gnus-visible-headers
8686 If this variable is non-@code{nil}, it should be a regular expression
8687 that says what headers you wish to keep in the article buffer.  All
8688 headers that do not match this variable will be hidden.
8689
8690 For instance, if you only want to see the name of the person who wrote
8691 the article and the subject, you'd say:
8692
8693 @lisp
8694 (setq gnus-visible-headers "^From:\\|^Subject:")
8695 @end lisp
8696
8697 This variable can also be a list of regexps to match headers that are to
8698 remain visible.
8699
8700 @item gnus-ignored-headers
8701 @vindex gnus-ignored-headers
8702 This variable is the reverse of @code{gnus-visible-headers}.  If this
8703 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
8704 should be a regular expression that matches all lines that you want to
8705 hide.  All lines that do not match this variable will remain visible.
8706
8707 For instance, if you just want to get rid of the @code{References} line
8708 and the @code{Xref} line, you might say:
8709
8710 @lisp
8711 (setq gnus-ignored-headers "^References:\\|^Xref:")
8712 @end lisp
8713
8714 This variable can also be a list of regexps to match headers that are to
8715 be removed.
8716
8717 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
8718 variable will have no effect.
8719
8720 @end table
8721
8722 @vindex gnus-sorted-header-list
8723 Gnus can also sort the headers for you.  (It does this by default.)  You
8724 can control the sorting by setting the @code{gnus-sorted-header-list}
8725 variable.  It is a list of regular expressions that says in what order
8726 the headers are to be displayed.
8727
8728 For instance, if you want the name of the author of the article first,
8729 and then the subject, you might say something like:
8730
8731 @lisp
8732 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
8733 @end lisp
8734
8735 Any headers that are to remain visible, but are not listed in this
8736 variable, will be displayed in random order after all the headers that
8737 are listed in this variable.
8738
8739 @findex gnus-article-hide-boring-headers
8740 @vindex gnus-article-display-hook
8741 @vindex gnus-boring-article-headers
8742 You can hide further boring headers by entering
8743 @code{gnus-article-hide-boring-headers} into
8744 @code{gnus-article-display-hook}.  What this function does depends on
8745 the @code{gnus-boring-article-headers} variable.  It's a list, but this
8746 list doesn't actually contain header names.  Instead is lists various
8747 @dfn{boring conditions} that Gnus can check and remove from sight.
8748
8749 These conditions are:
8750 @table @code
8751 @item empty
8752 Remove all empty headers.
8753 @item newsgroups
8754 Remove the @code{Newsgroups} header if it only contains the current group
8755 name. 
8756 @item followup-to
8757 Remove the @code{Followup-To} header if it is identical to the
8758 @code{Newsgroups} header.
8759 @item reply-to
8760 Remove the @code{Reply-To} header if it lists the same address as the
8761 @code{From} header.
8762 @item date
8763 Remove the @code{Date} header if the article is less than three days
8764 old. 
8765 @end table
8766
8767 To include the four first elements, you could say something like;
8768
8769 @lisp
8770 (setq gnus-boring-article-headers 
8771       '(empty newsgroups followup-to reply-to))
8772 @end lisp
8773
8774 This is also the default value for this variable.
8775
8776
8777 @node Using MIME
8778 @section Using @sc{mime}
8779 @cindex @sc{mime}
8780
8781 Mime is a standard for waving your hands through the air, aimlessly,
8782 while people stand around yawning.
8783
8784 @sc{mime}, however, is a standard for encoding your articles, aimlessly,
8785 while all newsreaders die of fear.
8786
8787 @sc{mime} may specify what character set the article uses, the encoding
8788 of the characters, and it also makes it possible to embed pictures and
8789 other naughty stuff in innocent-looking articles.
8790
8791 @vindex gnus-show-mime
8792 @vindex gnus-show-mime-method
8793 @vindex gnus-strict-mime
8794 Gnus handles @sc{mime} by shoving the articles through
8795 @code{gnus-show-mime-method}, which is @code{metamail-buffer} by
8796 default.  Set @code{gnus-show-mime} to @code{t} if you want to use
8797 @sc{mime} all the time.  However, if @code{gnus-strict-mime} is
8798 non-@code{nil}, the @sc{mime} method will only be used if there are
8799 @sc{mime} headers in the article.
8800
8801 It might be best to just use the toggling functions from the summary
8802 buffer to avoid getting nasty surprises. (For instance, you enter the
8803 group @samp{alt.sing-a-long} and, before you know it, @sc{mime} has
8804 decoded the sound file in the article and some horrible sing-a-long song
8805 comes streaming out out your speakers, and you can't find the volume
8806 button, because there isn't one, and people are starting to look at you,
8807 and you try to stop the program, but you can't, and you can't find the
8808 program to control the volume, and everybody else in the room suddenly
8809 decides to look at you disdainfully, and you'll feel rather stupid.)
8810
8811 Any similarity to real events and people is purely coincidental.  Ahem.
8812
8813
8814 @node Customizing Articles
8815 @section Customizing Articles
8816 @cindex article customization
8817
8818 @vindex gnus-article-display-hook
8819 The @code{gnus-article-display-hook} is called after the article has
8820 been inserted into the article buffer.  It is meant to handle all
8821 treatment of the article before it is displayed. 
8822
8823 By default it contains @code{gnus-article-hide-headers},
8824 @code{gnus-article-treat-overstrike}, and
8825 @code{gnus-article-maybe-highlight}, but there are thousands, nay
8826 millions, of functions you can put in this hook.  For an overview of
8827 functions @xref{Article Highlighting}, @xref{Article Hiding},
8828 @xref{Article Washing}, @xref{Article Buttons} and @xref{Article Date}. 
8829
8830 You can, of course, write your own functions.  The functions are called
8831 from the article buffer, and you can do anything you like, pretty much.
8832 There is no information that you have to keep in the buffer---you can
8833 change everything.  However, you shouldn't delete any headers.  Instead
8834 make them invisible if you want to make them go away.
8835
8836
8837 @node Article Keymap
8838 @section Article Keymap
8839
8840 Most of the keystrokes in the summary buffer can also be used in the
8841 article buffer.  They should behave as if you typed them in the summary
8842 buffer, which means that you don't actually have to have a summary
8843 buffer displayed while reading.  You can do it all from the article
8844 buffer.
8845
8846 A few additional keystrokes are available:
8847
8848 @table @kbd
8849
8850 @item SPACE
8851 @kindex SPACE (Article)
8852 @findex gnus-article-next-page
8853 Scroll forwards one page (@code{gnus-article-next-page}).
8854
8855 @item DEL
8856 @kindex DEL (Article)
8857 @findex gnus-article-prev-page
8858 Scroll backwards one page (@code{gnus-article-prev-page}).
8859
8860 @item C-c ^
8861 @kindex C-c ^ (Article)
8862 @findex gnus-article-refer-article
8863 If point is in the neighborhood of a @code{Message-ID} and you press
8864 @kbd{r}, Gnus will try to get that article from the server
8865 (@code{gnus-article-refer-article}).
8866
8867 @item C-c C-m
8868 @kindex C-c C-m (Article)
8869 @findex gnus-article-mail
8870 Send a reply to the address near point (@code{gnus-article-mail}).  If
8871 given a prefix, include the mail.
8872
8873 @item s
8874 @kindex s (Article)
8875 @findex gnus-article-show-summary
8876 Reconfigure the buffers so that the summary buffer becomes visible
8877 (@code{gnus-article-show-summary}).
8878
8879 @item ?
8880 @kindex ? (Article)
8881 @findex gnus-article-describe-briefly
8882 Give a very brief description of the available keystrokes
8883 (@code{gnus-article-describe-briefly}). 
8884
8885 @item TAB
8886 @kindex TAB (Article)
8887 @findex gnus-article-next-button
8888 Go to the next button, if any (@code{gnus-article-next-button}.  This
8889 only makes sense if you have buttonizing turned on.
8890
8891 @item M-TAB
8892 @kindex M-TAB (Article)
8893 @findex gnus-article-prev-button
8894 Go to the previous button, if any (@code{gnus-article-prev-button}.  
8895
8896 @end table
8897
8898
8899 @node Misc Article
8900 @section Misc Article
8901
8902 @table @code
8903
8904 @item gnus-single-article-buffer
8905 @vindex gnus-single-article-buffer
8906 If non-@code{nil}, use the same article buffer for all the groups.
8907 (This is the default.)  If @code{nil}, each group will have its own
8908 article buffer.
8909
8910 @vindex gnus-article-prepare-hook
8911
8912 @item gnus-article-prepare-hook
8913 This hook is called right after the article has been inserted into the
8914 article buffer.  It is mainly intended for functions that do something
8915 depending on the contents; it should probably not be used for changing
8916 the contents of the article buffer.
8917 @vindex gnus-article-display-hook
8918
8919 @item gnus-article-display-hook
8920 This hook is called as the last thing when displaying an article, and is
8921 intended for modifying the contents of the buffer, doing highlights,
8922 hiding headers, and the like.
8923 @vindex gnus-article-mode-line-format
8924
8925 @item gnus-article-mode-line-format
8926 This variable is a format string along the same lines as
8927 @code{gnus-summary-mode-line-format}.  It accepts exactly the same
8928 format specifications as that variable.
8929 @vindex gnus-break-pages
8930
8931 @item gnus-break-pages
8932 Controls whether @dfn{page breaking} is to take place.  If this variable
8933 is non-@code{nil}, the articles will be divided into pages whenever a
8934 page delimiter appears in the article.  If this variable is @code{nil},
8935 paging will not be done.
8936
8937 @item gnus-page-delimiter
8938 @vindex gnus-page-delimiter
8939 This is the delimiter mentioned above.  By default, it is @samp{^L}
8940 (form linefeed).
8941 @end table
8942
8943 @node The Server Buffer
8944 @chapter The Server Buffer
8945
8946 Traditionally, a @dfn{server} is a machine or a piece of software that
8947 one connects to, and then requests information from.  Gnus does not
8948 connect directly to any real servers, but does all transactions through
8949 one backend or other.  But that's just putting one layer more between
8950 the actual media and Gnus, so we might just as well say that each
8951 backend represents a virtual server.
8952
8953 For instance, the @code{nntp} backend may be used to connect to several
8954 different actual @sc{nntp} servers, or, perhaps, to many different ports
8955 on the same actual @sc{nntp} server.  You tell Gnus which backend to
8956 use, and what parameters to set by specifying a @dfn{select method}.
8957
8958 These select methods specifications can sometimes become quite
8959 complicated---say, for instance, that you want to read from the
8960 @sc{nntp} server @samp{news.funet.fi} on port number @samp{13}, which
8961 hangs if queried for @sc{nov} headers and has a buggy select.  Ahem.
8962 Anyways, if you had to specify that for each group that used this
8963 server, that would be too much work, so Gnus offers a way of putting
8964 names to methods, which is what you do in the server buffer.
8965
8966 To enter the server buffer, user the @kbd{^}
8967 (@code{gnus-group-enter-server-mode}) command in the group buffer.
8968
8969 @menu
8970 * Server Buffer Format::   You can customize the look of this buffer.
8971 * Server Commands::        Commands to manipulate servers.
8972 * Example Methods::        Examples server specifications.
8973 * Servers and Methods::    You can use server names as select methods.
8974 * Unavailable Servers::    Some servers you try to contact may be down.
8975 @end menu
8976
8977 @node Server Buffer Format
8978 @section Server Buffer Format
8979 @cindex server buffer format
8980
8981 @vindex gnus-server-line-format
8982 You can change the look of the server buffer lines by changing the
8983 @code{gnus-server-line-format} variable.  This is a @code{format}-like
8984 variable, with some simple extensions:
8985
8986 @table @samp
8987
8988 @item h 
8989 How the news is fetched---the backend name.
8990
8991 @item n
8992 The name of this server.
8993
8994 @item w
8995 Where the news is to be fetched from---the address.
8996 @end table
8997
8998 @node Server Commands
8999 @section Server Commands
9000 @cindex server commands
9001
9002 @table @kbd
9003
9004 @item SPC
9005 Browse the current server (@code{gnus-server-read-server}).
9006
9007 @item q
9008 Return to the group buffer (@code{gnus-server-exit}).
9009
9010 @item l
9011 List all servers (@code{gnus-server-list-servers}).
9012
9013 @item k
9014 Kill the current server (@code{gnus-server-kill-server}).
9015
9016 @item y
9017 Yank the previously killed server (@code{gnus-server-yank-server}).
9018
9019 @item c
9020 Copy the current server (@code{gnus-server-copy-server}).
9021
9022 @item a
9023 Add a new server (@code{gnus-server-add-server}).
9024
9025 @item e
9026 Edit a server (@code{gnus-server-edit-server}).
9027 @end table
9028
9029 @node Example Methods
9030 @section Example Methods
9031
9032 Most select methods are pretty simple and self-explanatory: 
9033
9034 @lisp
9035 (nntp "news.funet.fi")
9036 @end lisp
9037
9038 Reading directly from the spool is even simpler:
9039
9040 @lisp
9041 (nnspool "")
9042 @end lisp
9043
9044 As you can see, the first element in a select method is the name of the
9045 backend, and the second is the @dfn{address}, or @dfn{name}, if you
9046 will. 
9047
9048 After these two elements, there may be a random number of @var{(variable
9049 form)} pairs.
9050
9051 To go back to the first example---imagine that you want to read from
9052 port @code{15} from that machine.  This is what the select method should
9053 look like then:
9054
9055 @lisp
9056 (nntp "news.funet.fi" (nntp-port-number 15))
9057 @end lisp
9058
9059 You should read the documentation to each backend to find out what
9060 variables are relevant, but here's an @code{nnmh} example. 
9061
9062 @code{nnmh} is a mail backend that reads a spool-like structure.  Say
9063 you have two structures that you wish to access: One is your private
9064 mail spool, and the other is a public one.  Here's the possible spec for
9065 you private mail:
9066
9067 @lisp
9068 (nnmh "private" (nnmh-directory "~/private/mail/"))
9069 @end lisp
9070
9071 (This server is then called @samp{private}, but you may have guessed
9072 that. 
9073
9074 Here's the method for the public spool:
9075
9076 @lisp
9077 (nnmh "public" 
9078       (nnmh-directory "/usr/information/spool/") 
9079       (nnmh-get-new-mail nil))
9080 @end lisp
9081
9082 @node Servers and Methods
9083 @section Servers and Methods
9084
9085 Wherever you would normally use a select method
9086 (eg. @code{gnus-secondary-select-method}, in the group select method,
9087 when browsing a foreign server) you can use a virtual server name
9088 instead.  This could potentially save lots of typing.  And it's nice all
9089 over.
9090
9091
9092 @node Unavailable Servers
9093 @section Unavailable Servers
9094
9095 If a server seems to be unreachable, Gnus will mark that server as
9096 @code{denied}.  That means that any subsequent attempt to make contact
9097 with that server will just be ignored.  ``It can't be opened,'' Gnus will
9098 tell you, without making the least effort to see whether that is
9099 actually the case or not.  
9100
9101 That might seem quite naughty, but it does make sense most of the time.
9102 Let's say you have 10 groups subscribed to the server
9103 @samp{nepholococcygia.com}.  This server is located somewhere quite far
9104 away from you, the machine is quite, so it takes 1 minute just to find
9105 out that it refuses connection from you today.  If Gnus were to attempt
9106 to do that 10 times, you'd be quite annoyed, so Gnus won't attempt to do
9107 that.  Once it has gotten a single ``connection refused'', it will regard
9108 that server as ``down''.
9109
9110 So, what happens if the machine was only feeling unwell temporarily?
9111 How do you test to see whether the machine has come up again?
9112
9113 You jump to the server buffer (@pxref{The Server Buffer}) and poke ut
9114 with the following commands:
9115
9116 @table @kbd
9117
9118 @item O
9119 @kindex O (Server)
9120 @findex gnus-server-open-server
9121 Try to establish connection to the server on the current line
9122 (@code{gnus-server-open-server}).
9123
9124 @item C
9125 @kindex C (Server)
9126 @findex gnus-server-close-server
9127 Close the connection (if any) to the server
9128 (@code{gnus-server-close-server}).
9129
9130 @item D
9131 @kindex D (Server)
9132 @findex gnus-server-deny-server
9133 Mark the current server as unreachable
9134 (@code{gnus-server-deny-server}). 
9135
9136 @item R
9137 @kindex R (Server)
9138 @findex gnus-server-remove-denials
9139 Remove all marks to whether Gnus was denied connection from all servers
9140 (@code{gnus-server-remove-denials}). 
9141
9142 @end table
9143
9144
9145 @node Scoring
9146 @chapter Scoring
9147 @cindex scoring
9148
9149 Other people use @dfn{kill files}, but we here at Gnus Towers like
9150 scoring better than killing, so we'd rather switch than fight.  They do
9151 something completely different as well, so sit up straight and pay
9152 attention!
9153
9154 @vindex gnus-summary-mark-below
9155 All articles have a default score (@code{gnus-summary-default-score}),
9156 which is 0 by default.  This score may be raised or lowered either
9157 interactively or by score files.  Articles that have a score lower than
9158 @code{gnus-summary-mark-below} are marked as read.
9159
9160 Gnus will read any @dfn{score files} that apply to the current group
9161 before generating the summary buffer.
9162
9163 There are several commands in the summary buffer that insert score
9164 entries based on the current article.  You can, for instance, ask Gnus to
9165 lower or increase the score of all articles with a certain subject.
9166
9167 There are two sorts of scoring entries: Permanent and temporary.
9168 Temporary score entries are self-expiring entries.  Any entries that are
9169 temporary and have not been used for, say, a week, will be removed
9170 silently to help keep the sizes of the score files down.
9171
9172 @menu 
9173 * Summary Score Commands::   Adding score entries for the current group.
9174 * Group Score Commands::     General score commands.
9175 * Score Variables::          Customize your scoring.  (My, what terminology).
9176 * Score File Format::        What a score file may contain.
9177 * Score File Editing::       You can edit score files by hand as well.
9178 * Adaptive Scoring::         Big Sister Gnus *knows* what you read.
9179 * Followups To Yourself::    Having Gnus notice when people answer you.
9180 * Scoring Tips::             How to score effectively.
9181 * Reverse Scoring::          That problem child of old is not problem.
9182 * Global Score Files::       Earth-spanning, ear-splitting score files.
9183 * Kill Files::               They are still here, but they can be ignored.
9184 @end menu
9185
9186 @node Summary Score Commands
9187 @section Summary Score Commands
9188 @cindex score commands
9189
9190 The score commands that alter score entries do not actually modify real
9191 score files.  That would be too inefficient.  Gnus maintains a cache of
9192 previously loaded score files, one of which is considered the
9193 @dfn{current score file alist}.  The score commands simply insert
9194 entries into this list, and upon group exit, this list is saved.
9195
9196 The current score file is by default the group's local score file, even
9197 if no such score file actually exists.  To insert score commands into
9198 some other score file (eg. @file{all.SCORE}), you must first make this
9199 score file the current one.
9200
9201 General score commands that don't actually change the score file:
9202
9203 @table @kbd
9204
9205 @item V s
9206 @kindex V s (Summary)
9207 @findex gnus-summary-set-score
9208 Set the score of the current article (@code{gnus-summary-set-score}).  
9209
9210 @item V S
9211 @kindex V S (Summary)
9212 @findex gnus-summary-current-score
9213 Display the score of the current article
9214 (@code{gnus-summary-current-score}).   
9215
9216 @item V t
9217 @kindex V t (Summary)
9218 @findex gnus-score-find-trace
9219 Display all score rules that have been used on the current article
9220 (@code{gnus-score-find-trace}).   
9221
9222 @item V R
9223 @item V R (Summary)
9224 @findex gnus-summary-rescore
9225 Run the current summary through the scoring process
9226 (@code{gnus-summary-rescore}).  This might be useful if you're playing
9227 around with your score files behind Gnus' back and want to see the
9228 effect you're having.
9229
9230 @item V a
9231 @kindex V a (Summary)
9232 @findex gnus-summary-score-entry
9233 Add a new score entry, and allow specifying all elements 
9234 (@code{gnus-summary-score-entry}).
9235
9236 @item V c
9237 @kindex V c (Summary)
9238 @findex gnus-score-change-score-file
9239 Make a different score file the current
9240 (@code{gnus-score-change-score-file}). 
9241
9242 @item V e
9243 @kindex V e (Summary)
9244 @findex gnus-score-edit-alist
9245 Edit the current score file (@code{gnus-score-edit-alist}).  You will be
9246 popped into a @code{gnus-score-mode} buffer (@pxref{Score File
9247 Editing}).
9248
9249 @item V f
9250 @kindex V f (Summary)
9251 @findex gnus-score-edit-file
9252 Edit a score file and make this score file the current one
9253 (@code{gnus-score-edit-file}).
9254
9255 @item V C
9256 @kindex V C (Summary)
9257 @findex gnus-score-customize
9258 Customize a score file in a visually pleasing manner
9259 (@code{gnus-score-customize}). 
9260
9261 @item I C-i
9262 @kindex I C-i (Summary)
9263 @findex gnus-summary-raise-score
9264 Increase the score of the current article
9265 (@code{gnus-summary-raise-score}).
9266
9267 @item L C-l
9268 @kindex L C-l (Summary)
9269 @findex gnus-summary-lower-score
9270 Lower the score of the current article
9271 (@code{gnus-summary-lower-score}). 
9272 @end table
9273
9274 The rest of these commands modify the local score file.
9275
9276 @table @kbd
9277
9278 @item V m
9279 @kindex V m (Summary)
9280 @findex gnus-score-set-mark-below
9281 Prompt for a score, and mark all articles with a score below this as
9282 read (@code{gnus-score-set-mark-below}).
9283
9284 @item V E
9285 @kindex V E (Summary)
9286 @findex gnus-score-set-expunge-below
9287 Expunge all articles with a score below the default score (or the
9288 numeric prefix) (@code{gnus-score-set-expunge-below}).
9289 @end table
9290
9291 The keystrokes for actually making score entries follow a very regular
9292 pattern, so there's no need to list all the commands.  (Hundreds of
9293 them.)  
9294
9295 @enumerate
9296 @item
9297 The first key is either @kbd{I} (upper case i) for increasing the score
9298 or @kbd{L} for lowering the score. 
9299 @item
9300 The second key says what header you want to score on.  The following
9301 keys are available:
9302 @table @kbd
9303
9304 @item a
9305 Score on the author name.
9306
9307 @item s
9308 Score on the subject line.
9309
9310 @item x
9311 Score on the Xref line---i.e., the cross-posting line.
9312
9313 @item t
9314 Score on thread---the References line.
9315
9316 @item d
9317 Score on the date.
9318
9319 @item l
9320 Score on the number of lines.
9321
9322 @item i
9323 Score on the Message-ID.
9324
9325 @item f
9326 Score on followups.
9327
9328 @item b
9329 Score on the body.
9330
9331 @item h
9332 Score on the head.
9333 @end table
9334
9335 @item
9336 The third key is the match type.  Which match types are legal depends on
9337 what headers you are scoring on.
9338
9339 @table @code
9340
9341 @item strings 
9342
9343 @table @kbd
9344
9345 @item e
9346 Exact matching.
9347
9348 @item s
9349 Substring matching.
9350
9351 @item f
9352 Fuzzy matching.
9353
9354 @item r
9355 Regexp matching
9356 @end table
9357
9358 @item date
9359 @table @kbd
9360
9361 @item b
9362 Before date.
9363
9364 @item a
9365 At date.
9366
9367 @item n
9368 This date.
9369 @end table
9370
9371 @item number
9372 @table @kbd
9373
9374 @item <
9375 Less than number.
9376
9377 @item =
9378 Equal to number.
9379
9380 @item >
9381 Greater than number.
9382 @end table
9383 @end table
9384
9385 @item 
9386 The fourth and final key says whether this is a temporary (i.e., expiring)
9387 score entry, or a permanent (i.e., non-expiring) score entry, or whether
9388 it is to be done immediately, without adding to the score file.
9389 @table @kbd
9390
9391 @item t
9392 Temporary score entry.
9393
9394 @item p
9395 Permanent score entry.
9396
9397 @item i
9398 Immediately scoring.
9399 @end table
9400
9401 @end enumerate
9402
9403 So, let's say you want to increase the score on the current author with
9404 exact matching permanently: @kbd{I a e p}.  If you want to lower the
9405 score based on the subject line, using substring matching, and make a
9406 temporary score entry: @kbd{L s s t}.  Pretty easy.
9407
9408 To make things a bit more complicated, there are shortcuts.  If you use
9409 a capital letter on either the second or third keys, Gnus will use
9410 defaults for the remaining one or two keystrokes.  The defaults are
9411 ``substring'' and ``temporary''.  So @kbd{I A} is the same as @kbd{I a s t},
9412 and @kbd{I a R} is the same as @kbd{I a r t}.
9413
9414 @vindex gnus-score-mimic-keymap
9415 The @code{gnus-score-mimic-keymap} says whether these commands will
9416 pretend they are keymaps or not.
9417
9418
9419 @node Group Score Commands
9420 @section Group Score Commands
9421 @cindex group score commands
9422
9423 There aren't many of these as yet, I'm afraid.
9424
9425 @table @kbd
9426
9427 @item W f
9428 @kindex W f (Group)
9429 @findex gnus-score-flush-cache
9430 Gnus maintains a cache of score alists to avoid having to reload them
9431 all the time.  This command will flush the cache
9432 (@code{gnus-score-flush-cache}). 
9433
9434 @end table
9435
9436
9437 @node Score Variables
9438 @section Score Variables
9439 @cindex score variables
9440
9441 @table @code
9442
9443 @item gnus-use-scoring
9444 @vindex gnus-use-scoring
9445 If @code{nil}, Gnus will not check for score files, and will not, in
9446 general, do any score-related work.  This is @code{t} by default.
9447
9448 @item gnus-kill-killed
9449 @vindex gnus-kill-killed
9450 If this variable is @code{nil}, Gnus will never apply score files to
9451 articles that have already been through the kill process.  While this
9452 may save you lots of time, it also means that if you apply a kill file
9453 to a group, and then change the kill file and want to run it over you
9454 group again to kill more articles, it won't work.  You have to set this
9455 variable to @code{t} to do that.  (It is @code{t} by default.)
9456
9457 @item gnus-kill-files-directory
9458 @vindex gnus-kill-files-directory
9459 All kill and score files will be stored in this directory, which is
9460 initialized from the @samp{SAVEDIR} environment variable by default.
9461 This is @file{~/News/} by default.
9462
9463 @item gnus-score-file-suffix
9464 @vindex gnus-score-file-suffix
9465 Suffix to add to the group name to arrive at the score file name
9466 (@samp{SCORE} by default.)
9467
9468 @item gnus-score-uncacheable-files
9469 @vindex gnus-score-uncacheable-files
9470 @cindex score cache
9471 All score files are normally cached to avoid excessive re-loading of
9472 score files.  However, if this might make you Emacs grow big and
9473 bloated, so this regexp can be used to weed out score files that are
9474 unlikely to be needed again.  It would be a bad idea to deny caching of
9475 @file{all.SCORE}, while it might be a good idea to not cache
9476 @file{comp.infosystems.www.authoring.misc.ADAPT}.  In fact, this
9477 variable is @samp{"ADAPT$"} by default, so no adaptive score files will
9478 be cached.
9479
9480 @item gnus-save-score
9481 @vindex gnus-save-score
9482 If you have really complicated score files, and do lots of batch
9483 scoring, then you might set this variable to @code{t}.  This will make
9484 Gnus save the scores into the @file{.newsrc.eld} file.
9485
9486 @item gnus-score-interactive-default-score
9487 @vindex gnus-score-interactive-default-score
9488 Score used by all the interactive raise/lower commands to raise/lower
9489 score with.  Default is 1000, which may seem excessive, but this is to
9490 ensure that the adaptive scoring scheme gets enough room to play with.
9491 We don't want the small changes from the adaptive scoring to overwrite
9492 manually entered data.
9493
9494 @item gnus-summary-default-score
9495 @vindex gnus-summary-default-score
9496 Default score of an article, which is 0 by default.
9497
9498 @item gnus-score-over-mark
9499 @vindex gnus-score-over-mark
9500 Mark (in the third column) used for articles with a score over the
9501 default.  Default is @samp{+}.
9502
9503 @item gnus-score-below-mark
9504 @vindex gnus-score-below-mark
9505 Mark (in the third column) used for articles with a score below the
9506 default.  Default is @samp{-}.
9507
9508 @item gnus-score-find-score-files-function
9509 @vindex gnus-score-find-score-files-function
9510 Function used to find score files for the current group.  This function
9511 is called with the name of the group as the argument. 
9512
9513 Predefined functions available are:
9514 @table @code
9515
9516 @item gnus-score-find-single
9517 @findex gnus-score-find-single
9518 Only apply the group's own score file.
9519
9520 @item gnus-score-find-bnews
9521 @findex gnus-score-find-bnews
9522 Apply all score files that match, using bnews syntax.  This is the
9523 default.  For instance, if the current group is @samp{gnu.emacs.gnus},
9524 @samp{all.emacs.all.SCORE}, @samp{not.alt.all.SCORE} and
9525 @samp{gnu.all.SCORE} would all apply.  In short, the instances of
9526 @samp{all} in the score file names are translated into @samp{.*}, and
9527 then a regexp match is done.
9528
9529 This means that if you have some score entries that you want to apply to
9530 all groups, then you put those entries in the @file{all.SCORE} file. 
9531
9532 If @code{gnus-use-long-file-name} is non-@code{nil}, this won't work
9533 very will.  It will find stuff like @file{gnu/all/SCORE}, but will not
9534 find files like @file{not/gnu/all/SCORE}. 
9535
9536 @item gnus-score-find-hierarchical
9537 @findex gnus-score-find-hierarchical
9538 Apply all score files from all the parent groups.  This means that you
9539 can't have score files like @file{all.SCORE} or @file{all.emacs.SCORE},
9540 but you can have @file{SCORE},  @file{comp.SCORE} and
9541 @file{comp.emacs.SCORE}. 
9542
9543 @end table
9544 This variable can also be a list of functions.  In that case, all these
9545 functions will be called, and all the returned lists of score files will
9546 be applied.  These functions can also return lists of score alists
9547 directly.  In that case, the functions that return these non-file score
9548 alists should probably be placed before the ``real'' score file functions,
9549 to ensure that the last score file returned is the local score file.
9550 Phu. 
9551
9552 @item gnus-score-expiry-days
9553 @vindex gnus-score-expiry-days
9554 This variable says how many days should pass before an unused score file
9555 entry is expired.  If this variable is @code{nil}, no score file entries
9556 are expired.  It's 7 by default.
9557
9558 @item gnus-update-score-entry-dates
9559 @vindex gnus-update-score-entry-dates
9560 If this variable is non-@code{nil}, matching score entries will have
9561 their dates updated.  (This is how Gnus controls expiry---all
9562 non-matching entries will become too old while matching entries will
9563 stay fresh and young.)  However, if you set this variable to @code{nil},
9564 even matching entries will grow old and will have to face that oh-so
9565 grim reaper.  
9566
9567 @end table
9568
9569
9570 @node Score File Format
9571 @section Score File Format
9572 @cindex score file format
9573
9574 A score file is an @code{emacs-lisp} file that normally contains just a
9575 single form.  Casual users are not expected to edit these files;
9576 everything can be changed from the summary buffer.
9577
9578 Anyway, if you'd like to dig into it yourself, here's an example:
9579
9580 @lisp
9581 (("from"
9582   ("Lars Ingebrigtsen" -10000)
9583   ("Per Abrahamsen")
9584   ("larsi\\|lmi" -50000 nil R))
9585  ("subject"
9586   ("Ding is Badd" nil 728373))
9587  ("xref"
9588   ("alt.politics" -1000 728372 s))
9589  ("lines"
9590   (2 -100 nil <))
9591  (mark 0)
9592  (expunge -1000)
9593  (mark-and-expunge -10)
9594  (read-only nil)
9595  (orphan -10)
9596  (adapt t)
9597  (files "/hom/larsi/News/gnu.SCORE")
9598  (exclude-files "all.SCORE")
9599  (local (gnus-newsgroup-auto-expire t)
9600         (gnus-summary-make-false-root 'empty))
9601  (eval (ding)))
9602 @end lisp
9603
9604 This example demonstrates absolutely everything about a score file. 
9605
9606 Even though this looks much like lisp code, nothing here is actually
9607 @code{eval}ed.  The lisp reader is used to read this form, though, so it
9608 has to be legal syntactically, if not semantically.
9609
9610 Six keys are supported by this alist:
9611
9612 @table @code
9613
9614 @item STRING
9615 If the key is a string, it is the name of the header to perform the
9616 match on.  Scoring can only be performed on these eight headers:
9617 @samp{From}, @samp{Subject}, @samp{References}, @samp{Message-ID},
9618 @samp{Xref}, @samp{Lines}, @samp{Chars} and @samp{Date}.  In addition to
9619 these headers, there are three strings to tell Gnus to fetch the entire
9620 article and do the match on larger parts of the article: @samp{Body}
9621 will perform the match on the body of the article, @samp{Head} will
9622 perform the match on the head of the article, and @samp{All} will
9623 perform the match on the entire article.  Note that using any of these
9624 last three keys will slow down group entry @emph{considerably}.  The
9625 final ``header'' you can score on is @samp{Followup}.  These score entries
9626 will result in new score entries being added for all follow-ups to
9627 articles that matches these score entries.
9628
9629 Following this key is a random number of score entries, where each score
9630 entry has one to four elements.
9631 @enumerate
9632
9633 @item 
9634 The first element is the @dfn{match element}.  On most headers this will
9635 be a string, but on the Lines and Chars headers, this must be an
9636 integer. 
9637
9638 @item 
9639 If the second element is present, it should be a number---the @dfn{score
9640 element}.  This number should be an integer in the neginf to posinf
9641 interval.  This number is added to the score of the article if the match
9642 is successful.  If this element is not present, the
9643 @code{gnus-score-interactive-default-score} number will be used
9644 instead.  This is 1000 by default.
9645
9646 @item 
9647 If the third element is present, it should be a number---the @dfn{date
9648 element}.  This date says when the last time this score entry matched,
9649 which provides a mechanism for expiring the score entries.  It this
9650 element is not present, the score entry is permanent.  The date is
9651 represented by the number of days since December 31, 1 ce.
9652
9653 @item 
9654 If the fourth element is present, it should be a symbol---the @dfn{type
9655 element}.  This element specifies what function should be used to see
9656 whether this score entry matches the article.  What match types that can
9657 be used depends on what header you wish to perform the match on.
9658 @table @dfn
9659
9660 @item From, Subject, References, Xref, Message-ID
9661 For most header types, there are the @code{r} and @code{R} (regexp) as
9662 well as @code{s} and @code{S} (substring) types and @code{e} and
9663 @code{E} (exact match) types.  If this element is not present, Gnus will
9664 assume that substring matching should be used.  @code{R} and @code{S}
9665 differ from the other two in that the matches will be done in a
9666 case-sensitive manner.  All these one-letter types are really just
9667 abbreviations for the @code{regexp}, @code{string} and @code{exact}
9668 types, which you can use instead, if you feel like.
9669
9670 @item Lines, Chars
9671 These two headers use different match types: @code{<}, @code{>},
9672 @code{=}, @code{>=} and @code{<=}.
9673
9674 @item Date
9675 For the Date header we have three match types: @code{before}, @code{at}
9676 and @code{after}.  I can't really imagine this ever being useful, but,
9677 like, it would feel kinda silly not to provide this function.  Just in
9678 case.  You never know.  Better safe than sorry.  Once burnt, twice shy.
9679 Don't judge a book by its cover.  Never not have sex on a first date.
9680
9681 @item Head, Body, All
9682 These three match keys use the same match types as the @code{From} (etc)
9683 header uses.
9684
9685 @item Followup
9686 This match key will add a score entry on all articles that followup to
9687 some author.  Uses the same match types as the @code{From} header uses.
9688
9689 @item Thread
9690 This match key will add a score entry on all articles that are part of
9691 a thread.  Uses the same match types as the @code{References} header
9692 uses.
9693 @end table
9694 @end enumerate
9695
9696 @item mark
9697 The value of this entry should be a number.  Any articles with a score
9698 lower than this number will be marked as read.
9699
9700 @item expunge
9701 The value of this entry should be a number.  Any articles with a score
9702 lower than this number will be removed from the summary buffer.
9703
9704 @item mark-and-expunge
9705 The value of this entry should be a number.  Any articles with a score
9706 lower than this number will be marked as read and removed from the
9707 summary buffer.
9708
9709 @item thread-mark-and-expunge
9710 The value of this entry should be a number.  All articles that belong to
9711 a thread that has a total score below this number will be marked as read
9712 and removed from the summary buffer.  @code{gnus-thread-score-function}
9713 says how to compute the total score for a thread.
9714
9715 @item files
9716 The value of this entry should be any number of file names.  These files
9717 are assumed to be score files as well, and will be loaded the same way
9718 this one was.
9719
9720 @item exclude-files
9721 The clue of this entry should be any number of files.  This files will
9722 not be loaded, even though they would normally be so, for some reason or
9723 other. 
9724
9725 @item eval
9726 The value of this entry will be @code{eval}el.  This element will be
9727 ignored when handling global score files. 
9728
9729 @item read-only
9730 Read-only score files will not be updated or saved.  Global score files
9731 should feature this atom (@pxref{Global Score Files}).
9732
9733 @item orphan
9734 The value of this entry should be a number.  Articles that do not have
9735 parents will get this number added to their scores.
9736
9737 @item adapt
9738 This entry controls the adaptive scoring.  If it is @code{t}, the
9739 default adaptive scoring rules will be used.  If it is @code{ignore}, no
9740 adaptive scoring will be performed on this group.  If it is a list, this
9741 list will be used as the adaptive scoring rules.  If it isn't present,
9742 or is something other than @code{t} or @code{ignore}, the default
9743 adaptive scoring rules will be used.  If you want to use adaptive
9744 scoring on most groups, you'd set @code{gnus-use-adaptive-scoring} to
9745 @code{t}, and insert an @code{(adapt ignore)} in the groups where you do
9746 not want adaptive scoring.  If you only want adaptive scoring in a few
9747 groups, you'd set @code{gnus-use-adaptive-scoring} to @code{nil}, and
9748 insert @code{(adapt t)} in the score files of the groups where you want
9749 it. 
9750
9751 @item adapt-file
9752 All adaptive score entries will go to the file named by this entry.  It
9753 will also be applied when entering the group.  This atom might be handy
9754 if you want to adapt on several groups at once, using the same adaptive
9755 file for a number of groups.
9756
9757 @item local
9758 @cindex local variables
9759 The value of this entry should be a list of @code{(VAR VALUE)} pairs.
9760 Each @var{var} will be made buffer-local to the current summary buffer,
9761 and set to the value specified.  This is a convenient, if somewhat
9762 strange, way of setting variables in some groups if you don't like hooks
9763 much.
9764 @end table
9765
9766 @node Score File Editing
9767 @section Score File Editing
9768
9769 You normally enter all scoring commands from the summary buffer, but you
9770 might feel the urge to edit them by hand as well, so we've supplied you
9771 with a mode for that.  
9772
9773 It's simply a slightly customized @code{emacs-lisp} mode, with these
9774 additional commands:
9775
9776 @table @kbd
9777
9778 @item C-c C-c
9779 @kindex C-c C-c (Score)
9780 @findex gnus-score-edit-done
9781 Save the changes you have made and return to the summary buffer
9782 (@code{gnus-score-edit-done}). 
9783
9784 @item C-c C-d
9785 @kindex C-c C-d (Score)
9786 @findex gnus-score-edit-insert-date
9787 Insert the current date in numerical format
9788 (@code{gnus-score-edit-insert-date}).  This is really the day number, if
9789 you were wondering.
9790
9791 @item C-c C-p
9792 @kindex C-c C-p (Score)
9793 @findex gnus-score-pretty-print
9794 The adaptive score files are saved in an unformatted fashion.  If you
9795 intend to read one of these files, you want to @dfn{pretty print} it
9796 first.  This command (@code{gnus-score-pretty-print}) does that for
9797 you. 
9798
9799 @end table
9800
9801 @node Adaptive Scoring
9802 @section Adaptive Scoring
9803 @cindex adaptive scoring
9804
9805 If all this scoring is getting you down, Gnus has a way of making it all
9806 happen automatically---as if by magic.  Or rather, as if by artificial
9807 stupidity, to be precise.
9808
9809 @vindex gnus-use-adaptive-scoring
9810 When you read an article, or mark an article as read, or kill an
9811 article, you leave marks behind.  On exit from the group, Gnus can sniff
9812 these marks and add score elements depending on what marks it finds.
9813 You turn on this ability by setting @code{gnus-use-adaptive-scoring} to
9814 @code{t}. 
9815
9816 @vindex gnus-default-adaptive-score-alist
9817 To give you complete control over the scoring process, you can customize
9818 the @code{gnus-default-adaptive-score-alist} variable.  By default, it
9819 looks something like this:
9820
9821 @lisp
9822 (defvar gnus-default-adaptive-score-alist
9823   '((gnus-unread-mark)
9824     (gnus-ticked-mark (from 4))
9825     (gnus-dormant-mark (from 5))
9826     (gnus-del-mark (from -4) (subject -1))
9827     (gnus-read-mark (from 4) (subject 2))
9828     (gnus-expirable-mark (from -1) (subject -1))
9829     (gnus-killed-mark (from -1) (subject -3))
9830     (gnus-kill-file-mark)
9831     (gnus-catchup-mark (from -1) (subject -1))))
9832 @end lisp
9833
9834 As you see, each element in this alist has a mark as a key (either a
9835 variable name or a ``real'' mark---a character).  Following this key is a
9836 random number of header/score pairs.  
9837
9838 To take @code{gnus-del-mark} as an example---this alist says that all
9839 articles that have that mark (i.e., are marked with @samp{D}) will have a
9840 score entry added to lower based on the @code{From} header by -4, and
9841 lowered by @code{Subject} by -1.  Change this to fit your prejudices. 
9842
9843 The headers you can score on are @code{from}, @code{subject},
9844 @code{message-id}, @code{references}, @code{xref}, @code{lines},
9845 @code{chars} and @code{date}.  In addition, you can score on
9846 @code{followup}, which will create an adaptive score entry that matches
9847 on the @code{References} header using the @code{Message-ID} of the
9848 current article, thereby matching the following thread.  
9849
9850 You can also score on @code{thread}, which will try to score all
9851 articles that appear in a thread.  @code{thread} matches uses a
9852 @code{Message-ID} to match on the @code{References} header of the
9853 article.  If the match is made, the @code{Message-ID} of the article is
9854 added to the @code{thread} rule.  (Think about it.  I'd recommend two
9855 aspirins afterwards.)
9856
9857 If you use this scheme, you should set @code{mark-below} to something
9858 small---like -300, perhaps, to avoid having small random changes result
9859 in articles getting marked as read.
9860
9861 After using adaptive scoring for a week or so, Gnus should start to
9862 become properly trained and enhance the authors you like best, and kill
9863 the authors you like least, without you having to say so explicitly. 
9864
9865 You can control what groups the adaptive scoring is to be performed on
9866 by using the score files (@pxref{Score File Format}).  This will also
9867 let you use different rules in different groups.
9868
9869 @vindex gnus-adaptive-file-suffix
9870 The adaptive score entries will be put into a file where the name is the
9871 group name with @code{gnus-adaptive-file-suffix} appended.  The default
9872 is @samp{ADAPT}.
9873
9874 @vindex gnus-score-exact-adapt-limit
9875 When doing adaptive scoring, substring or fuzzy matching would probably
9876 give you the best results in most cases.  However, if the header one
9877 matches is short, the possibility for false positives is great, so if
9878 the length of the match is less than
9879 @code{gnus-score-exact-adapt-limit}, exact matching will be used.  If
9880 this variable is @code{nil}, exact matching will always be used to avoid
9881 this problem.
9882
9883
9884 @node Followups To Yourself
9885 @section Followups To Yourself
9886
9887 Gnus offers two commands for picking out the @code{Message-ID} header in
9888 the current buffer.  Gnus will then add a score rule that scores using
9889 this @code{Message-ID} on the @code{References} header of other
9890 articles.  This will, in effect, increase the score of all articles that
9891 respond to the article in the current buffer.  Quite useful if you want
9892 to easily note when people answer what you've said.
9893
9894 @table @code
9895
9896 @item gnus-score-followup-article
9897 @findex gnus-score-followup-article
9898 This will add a score to articles that directly follow up your own
9899 article. 
9900
9901 @item gnus-score-followup-thread
9902 @findex gnus-score-followup-thread
9903 This will add a score to all articles that appear in a thread ``below''
9904 your own article.
9905 @end table
9906
9907 @vindex gnus-inews-article-hook
9908 These two functions are both primarily meant to be used in hooks like
9909 @code{gnus-inews-article-hook}.  
9910
9911
9912 @node Scoring Tips
9913 @section Scoring Tips
9914 @cindex scoring tips
9915
9916 @table @dfn
9917
9918 @item Crossposts
9919 If you want to lower the score of crossposts, the line to match on is
9920 the @code{Xref} header.
9921 @lisp
9922 ("xref" (" talk.politics.misc:" -1000))
9923 @end lisp
9924
9925 @item Multiple crossposts
9926 If you want to lower the score of articles that have been crossposted to
9927 more than, say, 3 groups:
9928 @lisp
9929 ("xref" ("[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+" -1000 nil r))
9930 @end lisp
9931
9932 @item Matching on the body
9933 This is generally not a very good idea---it takes a very long time.
9934 Gnus actually has to fetch each individual article from the server.  But
9935 you might want to anyway, I guess.  Even though there are three match
9936 keys (@code{Head}, @code{Body} and @code{All}), you should choose one
9937 and stick with it in each score file.  If you use any two, each article
9938 will be fetched @emph{twice}.  If you want to match a bit on the
9939 @code{Head} and a bit on the @code{Body}, just use @code{All} for all
9940 the matches.  
9941
9942 @item Marking as read
9943 You will probably want to mark articles that has a score below a certain
9944 number as read.  This is most easily achieved by putting the following
9945 in your @file{all.SCORE} file:
9946 @lisp
9947 ((mark -100))
9948 @end lisp
9949 You may also consider doing something similar with @code{expunge}.  
9950
9951 @item Negated character classes
9952 If you say stuff like @code{[^abcd]*}, you may get unexpected results.
9953 That will match newlines, which might lead to, well, The Unknown.  Say
9954 @code{[^abcd\n]*} instead.
9955 @end table
9956
9957 @node Reverse Scoring
9958 @section Reverse Scoring
9959 @cindex reverse scoring
9960
9961 If you want to keep just articles that have @samp{Sex with Emacs} in the
9962 subject header, and expunge all other articles, you could put something
9963 like this in your score file:
9964
9965 @lisp
9966 (("subject"
9967   ("Sex with Emacs" 2))
9968  (mark 1)
9969  (expunge 1))
9970 @end lisp
9971
9972 So, you raise all articles that match @samp{Sex with Emacs} and mark the
9973 rest as read, and expunge them to boot.
9974
9975 @node Global Score Files
9976 @section Global Score Files
9977 @cindex global score files
9978
9979 Sure, other newsreaders have ``global kill files''.  These are usually
9980 nothing more than a single kill file that applies to all groups, stored
9981 in the user's home directory.  Bah!  Puny, weak newsreaders!
9982
9983 What I'm talking about here are Global Score Files.  Score files from
9984 all over the world, from users everywhere, uniting all nations in one
9985 big, happy score file union!  Ange-score!  New and untested!
9986
9987 @vindex gnus-global-score-files
9988 All you have to do to use other people's score files is to set the
9989 @code{gnus-global-score-files} variable.  One entry for each score file,
9990 or each score file directory.  Gnus will decide by itself what score
9991 files are applicable to which group.
9992
9993 Say you want to use all score files in the
9994 @file{/ftp@@ftp.some-where:/pub/score} directory and the single score
9995 file @file{/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE}:
9996
9997 @lisp
9998 (setq gnus-global-score-files
9999       '("/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE"
10000         "/ftp@@ftp.some-where:/pub/score/"))
10001 @end lisp
10002
10003 @findex gnus-score-search-global-directories
10004 Simple, eh?  Directory names must end with a @samp{/}.  These
10005 directories are typically scanned only once during each Gnus session.
10006 If you feel the need to manually re-scan the remote directories, you can
10007 use the @code{gnus-score-search-global-directories} command.
10008
10009 Note that, at present, using this option will slow down group entry
10010 somewhat.  (That is---a lot.)
10011
10012 If you want to start maintaining score files for other people to use,
10013 just put your score file up for anonymous ftp and announce it to the
10014 world.  Become a retro-moderator!  Participate in the retro-moderator
10015 wars sure to ensue, where retro-moderators battle it out for the
10016 sympathy of the people, luring them to use their score files on false
10017 premises!  Yay!  The net is saved!
10018
10019 Here are some tips for the would-be retro-moderator, off the top of my
10020 head: 
10021
10022 @itemize @bullet
10023
10024 @item 
10025 Articles that are heavily crossposted are probably junk. 
10026 @item
10027 To lower a single inappropriate article, lower by @code{Message-ID}.
10028 @item
10029 Particularly brilliant authors can be raised on a permanent basis. 
10030 @item
10031 Authors that repeatedly post off-charter for the group can safely be
10032 lowered out of existence.
10033 @item
10034 Set the @code{mark} and @code{expunge} atoms to obliterate the nastiest
10035 articles completely.
10036
10037 @item 
10038 Use expiring score entries to keep the size of the file down.  You
10039 should probably have a long expiry period, though, as some sites keep
10040 old articles for a long time.
10041 @end itemize
10042
10043 ... I wonder whether other newsreaders will support global score files
10044 in the future.  @emph{Snicker}.  Yup, any day now, newsreaders like Blue
10045 Wave, xrn and 1stReader are bound to implement scoring.  Should we start
10046 holding our breath yet?
10047
10048
10049 @node Kill Files
10050 @section Kill Files
10051 @cindex kill files
10052
10053 Gnus still supports those pesky old kill files.  In fact, the kill file
10054 entries can now be expiring, which is something I wrote before Daniel
10055 Quinlan thought of doing score files, so I've left the code in there.
10056
10057 In short, kill processing is a lot slower (and I do mean @emph{a lot})
10058 than score processing, so it might be a good idea to rewrite your kill
10059 files into score files.
10060
10061 Anyway, a kill file is a normal @code{emacs-lisp} file.  You can put any
10062 forms into this file, which means that you can use kill files as some
10063 sort of primitive hook function to be run on group entry, even though
10064 that isn't a very good idea.
10065
10066 XCNormal kill files look like this:
10067
10068 @lisp
10069 (gnus-kill "From" "Lars Ingebrigtsen")
10070 (gnus-kill "Subject" "ding")
10071 (gnus-expunge "X")
10072 @end lisp
10073
10074 This will mark every article written by me as read, and remove them from
10075 the summary buffer.  Very useful, you'll agree.
10076
10077 Other programs use a totally different kill file syntax.  If Gnus
10078 encounters what looks like a @code{rn} kill file, it will take a stab at
10079 interpreting it. 
10080
10081 Two functions for editing a GNUS kill file:
10082
10083 @table @kbd
10084
10085 @item M-k
10086 @kindex M-k (Summary)
10087 @findex gnus-summary-edit-local-kill
10088 Edit this group's kill file (@code{gnus-summary-edit-local-kill}).
10089
10090 @item M-K
10091 @kindex M-K (Summary)
10092 @findex gnus-summary-edit-global-kill
10093 Edit the general kill file (@code{gnus-summary-edit-global-kill}).
10094 @end table
10095
10096 @vindex gnus-kill-file-name
10097 A kill file for the group @samp{soc.motss} is normally called
10098 @file{soc.motss.KILL}.  The suffix appended to the group name to get
10099 this file name is detailed by the @code{gnus-kill-file-name} variable.
10100 The ``global'' kill file (not in the score file sense of ``global'', of
10101 course) is called just @file{KILL}.
10102
10103 @vindex gnus-kill-save-kill-file
10104 If @code{gnus-kill-save-kill-file} is non-@code{nil}, Gnus will save the
10105 kill file after processing, which is necessary if you use expiring
10106 kills. 
10107
10108
10109
10110
10111 @node Various
10112 @chapter Various
10113
10114 @menu
10115 * Interactive::                Making Gnus ask you many questions.
10116 * Formatting Variables::       How to control the look of the buffers.
10117 * Windows Configuration::      Configuring the Gnus buffer windows.
10118 * Buttons::                    Get tendonitis in ten easy steps!
10119 * Compilation and Init File::  How to speed Gnus up.
10120 * Daemons::                    Gnus can do things behind your back.
10121 * NoCeM::                      How to avoid spam and other fatty foods.
10122 * Various Various::            Things that are really various.
10123 @end menu
10124
10125 @node Interactive
10126 @section Interactive
10127 @cindex interaction
10128
10129 @table @code
10130
10131 @item gnus-novice-user
10132 @vindex gnus-novice-user
10133 If this variable is non-@code{nil}, you are either a newcomer to the
10134 World of Usenet, or you are very cautious, which is a nice thing to be,
10135 really.  You will be given questions of the type ``Are you sure you want
10136 to do this?'' before doing anything dangerous.  This is @code{t} by
10137 default. 
10138
10139 @item gnus-expert-user
10140 @vindex gnus-expert-user
10141 If this variable is non-@code{nil}, you will never ever be asked any
10142 questions by Gnus.  It will simply assume you know what you're doing, no
10143 matter how strange.
10144
10145 @item gnus-interactive-catchup
10146 @vindex gnus-interactive-catchup
10147 Require confirmation before catching up a group if non-@code{nil}.  It
10148 is @code{t} by default.
10149
10150 @item gnus-interactive-post
10151 @vindex gnus-interactive-post
10152 If non-@code{nil}, the user will be prompted for a group name when
10153 posting an article.  It is @code{t} by default.
10154
10155 @item gnus-interactive-exit
10156 @vindex gnus-interactive-exit
10157 Require confirmation before exiting Gnus.  This variable is @code{t} by
10158 default. 
10159 @end table
10160
10161
10162 @node Formatting Variables
10163 @section Formatting Variables
10164 @cindex formatting variables
10165
10166 Throughout this manual you've probably noticed lots of variables that
10167 are called things like @code{gnus-group-line-format} and
10168 @code{gnus-summary-mode-line-format}.  These control how Gnus is to
10169 output lines in the various buffers.  There's quite a lot of them.
10170 Fortunately, they all use the same syntax, so there's not that much to
10171 be annoyed by.
10172
10173 Here's an example format spec (from the group buffer): @samp{"%M%S%5y:
10174 %(%g%)\n"}.  We see that it is indeed extremely ugly, and that there are
10175 lots of percentages everywhere.  
10176
10177 Each @samp{%} element will be replaced by some string or other when the
10178 buffer in question is generated.  @samp{%5y} means ``insert the @samp{y}
10179 spec, and pad with spaces to get a 5-character field''.  Just like a
10180 normal format spec, almost.
10181
10182 You can also say @samp{%6,4y}, which means that the field will never be
10183 more than 6 characters wide and never less than 4 characters wide.
10184
10185 There are also specs for highlighting, and these are shared by all the
10186 format variables.  Text inside the @samp{%(} and @samp{%)} specifiers
10187 will get the special @code{mouse-face} property set, which means that it
10188 will be highlighted (with @code{gnus-mouse-face}) when you put the mouse
10189 pointer over it.
10190
10191 Text inside the @samp{%[} and @samp{%]} specifiers will have their
10192 normal faces set using @code{gnus-face-0}, which is @code{bold} by
10193 default.  If you say @samp{%1[} instead, you'll get @code{gnus-face-1}
10194 instead, and so on.  Create as many faces as you wish.  The same goes
10195 for the @code{mouse-face} specs---you can say @samp{%3(hello%)} to have
10196 @samp{hello} mouse-highlighted with @code{gnus-mouse-face-3}.
10197
10198 Here's an alternative recipe for the group buffer:
10199
10200 @lisp
10201 ;; Create three face types.
10202 (setq gnus-face-1 'bold)
10203 (setq gnus-face-3 'italic)
10204
10205 ;; We want the article count to be in 
10206 ;; a bold and green face.  So we create 
10207 ;; a new face called `my-green-bold'.
10208 (copy-face 'bold 'my-green-bold)
10209 ;; Set the color.
10210 (set-face-foreground 'my-green-bold "ForestGreen")
10211 (setq gnus-face-2 'my-green-bold)
10212
10213 ;; Set the new & fancy format.
10214 (setq gnus-group-line-format 
10215       "%M%S%3@{%5y%@}%2[:%] %(%1@{%g%@}%)\n")
10216 @end lisp
10217
10218 I'm sure you'll be able to use this scheme to create totally unreadable
10219 and extremely vulgar displays.  Have fun!
10220
10221 Currently Gnus uses the following formatting variables:
10222 @code{gnus-group-line-format}, @code{gnus-summary-line-format},
10223 @code{gnus-server-line-format}, @code{gnus-topic-line-format},
10224 @code{gnus-group-mode-line-format},
10225 @code{gnus-summary-mode-line-format},
10226 @code{gnus-article-mode-line-format},
10227 @code{gnus-server-mode-line-format}. 
10228
10229 Note that the @samp{%(} specs (and friends) do not make any sense on the
10230 mode-line variables.
10231
10232 All these format variables can also be random elisp forms.  In that
10233 case, they will be @code{eval}ed to insert the required lines.
10234
10235 @kindex M-x gnus-update-format
10236 @findex gnus-update-format
10237 Gnus includes a command to help you while creating your own format
10238 specs.  @kbd{M-x gnus-update-format} will @code{eval} the current form,
10239 update the spec in question and pop you to a buffer where you can
10240 examine the resulting lisp code to be run to generate the line.  
10241
10242
10243 @node Windows Configuration
10244 @section Windows Configuration
10245 @cindex windows configuration
10246
10247 No, there's nothing here about X, so be quiet.
10248
10249 @vindex gnus-use-full-window
10250 If @code{gnus-use-full-window} non-@code{nil}, Gnus will delete all
10251 other windows and occupy the entire Emacs screen by itself.  It is
10252 @code{t} by default.
10253
10254 @code{gnus-buffer-configuration} describes how much space each Gnus
10255 buffer should be given.  Here's an excerpt of this variable:
10256
10257 @lisp
10258 ((group (vertical 1.0 (group 1.0 point)
10259                       (if gnus-carpal (group-carpal 4))))
10260  (article (vertical 1.0 (summary 0.25 point) 
10261                         (article 1.0))))
10262 @end lisp
10263
10264 This is an alist.  The @dfn{key} is a symbol that names some action or
10265 other.  For instance, when displaying the group buffer, the window
10266 configuration function will use @code{group} as the key.  A full list of
10267 possible names is listed below.
10268
10269 The @dfn{value} (i. e., the @dfn{split}) says how much space each buffer
10270 should occupy.  To take the @code{article} split as an example -
10271
10272 @lisp
10273 (article (vertical 1.0 (summary 0.25 point)
10274                        (article 1.0)))
10275 @end lisp
10276
10277 This @dfn{split} says that the summary buffer should occupy 25% of upper
10278 half of the screen, and that it is placed over the article buffer.  As
10279 you may have noticed, 100% + 25% is actually 125% (yup, I saw y'all
10280 reaching for that calculator there).  However, the special number
10281 @code{1.0} is used to signal that this buffer should soak up all the
10282 rest of the space available after the rest of the buffers have taken
10283 whatever they need.  There should be only one buffer with the @code{1.0}
10284 size spec per split.
10285
10286 Point will be put in the buffer that has the optional third element
10287 @code{point}. 
10288
10289 Here's a more complicated example:
10290
10291 @lisp
10292 (article (vertical 1.0 (group 4)
10293                        (summary 0.25 point)
10294                        (if gnus-carpal (summary-carpal 4))
10295                        (article 1.0)))
10296 @end lisp
10297
10298 If the size spec is an integer instead of a floating point number, 
10299 then that number will be used to say how many lines a buffer should
10300 occupy, not a percentage.
10301
10302 If the @dfn{split} looks like something that can be @code{eval}ed (to be
10303 precise---if the @code{car} of the split is a function or a subr), this
10304 split will be @code{eval}ed.  If the result is non-@code{nil}, it will
10305 be used as a split.  This means that there will be three buffers if
10306 @code{gnus-carpal} is @code{nil}, and four buffers if @code{gnus-carpal}
10307 is non-@code{nil}.
10308
10309 Not complicated enough for you?  Well, try this on for size:
10310
10311 @lisp
10312 (article (horizontal 1.0 
10313              (vertical 0.5
10314                  (group 1.0)
10315                  (gnus-carpal 4))
10316              (vertical 1.0
10317                  (summary 0.25 point)
10318                  (summary-carpal 4)
10319                  (article 1.0))))
10320 @end lisp
10321
10322 Whoops.  Two buffers with the mystery 100% tag.  And what's that
10323 @code{horizontal} thingie?  
10324
10325 If the first element in one of the split is @code{horizontal}, Gnus will
10326 split the window horizontally, giving you two windows side-by-side.
10327 Inside each of these strips you may carry on all you like in the normal
10328 fashion.  The number following @code{horizontal} says what percentage of
10329 the screen is to be given to this strip.
10330
10331 For each split, there @emph{must} be one element that has the 100% tag.
10332 The splitting is never accurate, and this buffer will eat any leftover
10333 lines from the splits.
10334
10335 To be slightly more formal, here's a definition of what a legal split
10336 may look like:
10337
10338 @example
10339 split       = frame | horizontal | vertical | buffer | form
10340 frame       = "(frame " size *split ")"
10341 horizontal  = "(horizontal " size *split ")"
10342 vertical    = "(vertical " size *split ")"
10343 buffer      = "(" buffer-name " " size *[ "point" ] ")"
10344 size        = number | frame-params
10345 buffer-name = group | article | summary ...
10346 @end example
10347
10348 The limitations are that the @samp{frame} split can only appear as the
10349 top-level split.  @samp{form} should be an Emacs Lisp form that should
10350 return a valid split.  We see that each split is fully recursive, and
10351 may contain any number of @samp{vertical} and @samp{horizontal} splits. 
10352
10353 @vindex gnus-window-min-width
10354 @vindex gnus-window-min-height
10355 @cindex window height
10356 @cindex window width
10357 Finding the right sizes can be a bit complicated.  No window may be less
10358 than @code{gnus-window-min-height} (default 2) characters high, and all
10359 windows must be at least @code{gnus-window-min-wide} (default 1)
10360 characters wide.  Gnus will try to enforce this before applying the
10361 splits.  If you want to use the normal Emacs window width/height limit,
10362 you can just set these two variables to @code{nil}.
10363
10364 If you're not familiar with Emacs terminology, @samp{horizontal} and
10365 @samp{vertical} splits may work the opposite way of what you'd expect.
10366 Windows inside a @samp{horizontal} split are shown side-by-side, and
10367 windows within a @samp{vertical} split are shown above each other.
10368
10369 @findex gnus-configure-frame
10370 If you want to experiment with window placement, a good tip is to call
10371 @code{gnus-configure-frame} directly with a split.  This is the function
10372 that does all the real work when splitting buffers.  Below is a pretty
10373 nonsensical configuration with 5 windows; two for the group buffer and
10374 three for the article buffer.  (I said it was nonsensical.)  If you
10375 @code{eval} the statement below, you can get an idea of how that would
10376 look straight away, without going through the normal Gnus channels.
10377 Play with it until you're satisfied, and then use
10378 @code{gnus-add-configuration} to add your new creation to the buffer
10379 configuration list. 
10380
10381 @lisp
10382 (gnus-configure-frame
10383  '(horizontal 1.0
10384     (vertical 10
10385       (group 1.0)
10386       (article 0.3 point))
10387     (vertical 1.0
10388       (article 1.0)
10389       (horizontal 4
10390         (group 1.0)
10391         (article 10)))))
10392 @end lisp
10393
10394 You might want to have several frames as well.  No prob---just use the
10395 @code{frame} split:
10396
10397 @lisp
10398 (gnus-configure-frame
10399  '(frame 1.0
10400          (vertical 1.0
10401                    (summary 0.25 point)
10402                    (article 1.0))
10403          (vertical ((height . 5) (width . 15)
10404                     (user-position . t)
10405                     (left . -1) (top . 1))
10406                    (picon 1.0))))
10407
10408 @end lisp
10409
10410 This split will result in the familiar summary/article window
10411 configuration in the first (or ``main'') frame, while a small additional
10412 frame will be created where picons will be shown.  As you can see,
10413 instead of the normal @samp{1.0} top-level spec, each additional split
10414 should have a frame parameter alist as the size spec.
10415 @xref{(elisp)Frame Parameters}.
10416
10417 Here's a list of all possible keys for
10418 @code{gnus-buffer-configuration}:
10419
10420 @code{group}, @code{summary}, @code{article}, @code{server},
10421 @code{browse}, @code{group-mail}, @code{summary-mail},
10422 @code{summary-reply}, @code{info}, @code{summary-faq},
10423 @code{edit-group}, @code{edit-server}, @code{reply}, @code{reply-yank},
10424 @code{followup}, @code{followup-yank}, @code{edit-score}.  
10425
10426 @findex gnus-add-configuration
10427 Since the @code{gnus-buffer-configuration} variable is so long and
10428 complicated, there's a function you can use to ease changing the config
10429 of a single setting: @code{gnus-add-configuration}.  If, for instance,
10430 you want to change the @code{article} setting, you could say:
10431
10432 @lisp
10433 (gnus-add-configuration
10434  '(article (vertical 1.0
10435                (group 4)
10436                (summary .25 point)
10437                (article 1.0))))
10438 @end lisp
10439
10440 You'd typically stick these @code{gnus-add-configuration} calls in your
10441 @file{.gnus} file or in some startup hook -- they should be run after
10442 Gnus has been loaded.
10443
10444
10445 @node Buttons
10446 @section Buttons
10447 @cindex buttons
10448 @cindex mouse
10449 @cindex click
10450
10451 Those new-fangled @dfn{mouse} contraptions is very popular with the
10452 young, hep kids who don't want to learn the proper way to do things
10453 these days.  Why, I remember way back in the summer of '89, when I was
10454 using Emacs on a Tops 20 system.  Three hundred users on one single
10455 machine, and every user was running Simula compilers.  Bah!
10456
10457 Right.
10458
10459 @vindex gnus-carpal
10460 Well, you can make Gnus display bufferfuls of buttons you can click to
10461 do anything by setting @code{gnus-carpal} to @code{t}.  Pretty simple,
10462 really.  Tell the chiropractor I sent you.
10463
10464
10465 @table @code
10466
10467 @item gnus-carpal-mode-hook
10468 @vindex gnus-carpal-mode-hook
10469 Hook run in all carpal mode buffers.
10470
10471 @item gnus-carpal-button-face
10472 @vindex gnus-carpal-button-face
10473 Face used on buttons.
10474
10475 @item gnus-carpal-group-buffer-buttons
10476 @vindex gnus-carpal-group-buffer-buttons
10477 Buttons in the group buffer.
10478
10479 @item gnus-carpal-summary-buffer-buttons
10480 @vindex gnus-carpal-summary-buffer-buttons
10481 Buttons in the summary buffer.
10482
10483 @item gnus-carpal-server-buffer-buttons
10484 @vindex gnus-carpal-server-buffer-buttons
10485 Buttons in the server buffer.
10486
10487 @item gnus-carpal-browse-buffer-buttons
10488 @vindex gnus-carpal-browse-buffer-buttons
10489 Buttons in the browse buffer.
10490 @end table
10491
10492 All the @code{buttons} variables are lists.  The elements in these list
10493 is either a cons cell where the car contains a text to be displayed and
10494 the cdr contains a function symbol, or a simple string.
10495
10496
10497 @node Compilation and Init File
10498 @section Compilation and Init File
10499 @cindex compilation
10500 @cindex init file
10501 @cindex byte-compilation
10502
10503 @vindex gnus-init-file
10504 @findex gnus-compile
10505 When Gnus starts up, it will read the Gnus init file
10506 @code{gnus-init-file}, which is @file{.gnus} by default.  It is
10507 recommended that you keep any Gnus-related functions that you have
10508 written in that file.  If you want to byte-compile the file, Gnus offers
10509 the handy @kbd{M-x gnus-compile} function that will do that for you. 
10510
10511 That's not really why that function was written, though.
10512
10513 Remember all those line format specification variables?
10514 @code{gnus-summary-line-format}, @code{gnus-group-line-format}, and so
10515 on.  Now, Gnus will of course heed whatever these variables are, but,
10516 unfortunately, changing them will mean a quite significant slow-down.
10517 (The default values of these variables have byte-compiled functions
10518 associated with them, while the user-generated versions do not, of
10519 course.) 
10520
10521 To help with this, you can run @code{gnus-compile} after you've fiddled
10522 around with the variables and feel that you're (kind of) satisfied.
10523 This will result in the new specs being byte-compiled, and you'll get
10524 top speed again.
10525
10526 The result of these byte-compilations will be written to
10527 @file{.gnus.elc} by default.
10528
10529 Note that Gnus will read @file{.gnus.elc} instead of @file{.gnus} if
10530 @file{.gnus.elc} exists, so if you change @file{.gnus}, you should
10531 remove @file{.gnus.elc}.
10532
10533
10534 @node Daemons
10535 @section Daemons
10536 @cindex demons
10537 @cindex daemons
10538
10539 Gnus, being larger than any program ever written (allegedly), does lots
10540 of strange stuff that you may wish to have done while you're not
10541 present.  For instance, you may want it to check for new mail once in a
10542 while.  Or you may want it to close down all connections to all servers
10543 when you leave Emacs idle.  And stuff like that.
10544
10545 Gnus will let you do stuff like that by defining various
10546 @dfn{handlers}.  Each handler consists of three elements:  A
10547 @var{function}, a @var{time}, and an @var{idle} parameter.
10548
10549 Here's an example of a handler that closes connections when Emacs has
10550 been idle for thirty minutes:
10551
10552 @lisp
10553 (gnus-demon-close-connections nil 30)
10554 @end lisp
10555
10556 Here's a handler that scans for PGP headers every hour when Emacs is
10557 idle: 
10558
10559 @lisp
10560 (gnus-demon-scan-pgp 60 t)
10561 @end lisp
10562
10563 This @var{time} parameter and than @var{idle} parameter works together
10564 in a strange, but wonderful fashion.  Basically, if @var{idle} is
10565 @code{nil}, then the function will be called every @var{time} minutes.
10566
10567 If @var{idle} is @code{t}, then the function will be called after
10568 @var{time} minutes only if Emacs is idle.  So if Emacs is never idle,
10569 the function will never be called.  But once Emacs goes idle, the
10570 function will be called every @var{time} minutes.
10571
10572 If @var{idle} is a number and @var{time} is a number, the function will
10573 be called every @var{time} minutes only when Emacs has been idle for
10574 @var{idle} minutes.
10575
10576 If @var{idle} is a number and @var{time} is @code{nil}, the function
10577 will be called once every time Emacs has been idle for @var{idle}
10578 minutes.  
10579
10580 And if @var{time} is a string, it should look like @samp{"07:31"}, and
10581 the function will then be called once every day somewhere near that
10582 time.  Modified by the @var{idle} parameter, of course.
10583
10584 @vindex gnus-demon-timestep
10585 (When I say ``minute'' here, I really mean @code{gnus-demon-timestep}
10586 seconds.  This is @samp{60} by default.  If you change that variable,
10587 all the timings in the handlers will be affected.)
10588
10589 @vindex gnus-use-demon
10590 To set the whole thing in motion, though, you have to set
10591 @code{gnus-use-demon} to @code{t}.
10592
10593 So, if you want to add a handler, you could put something like this in
10594 your @file{.gnus} file:
10595
10596 @findex gnus-demon-add-handler
10597 @lisp
10598 (gnus-demon-add-handler 'gnus-demon-close-connections nil 30)
10599 @end lisp
10600
10601 @findex gnus-demon-add-nocem
10602 @findex gnus-demon-add-scanmail
10603 @findex gnus-demon-add-disconnection
10604 Some ready-made functions to do this has been created:
10605 @code{gnus-demon-add-nocem}, @code{gnus-demon-add-disconnection}, and
10606 @code{gnus-demon-add-scanmail}.  Just put those functions in your
10607 @file{.gnus} if you want those abilities.
10608
10609 @findex gnus-demon-init
10610 @findex gnus-demon-cancel
10611 @vindex gnus-demon-handlers
10612 If you add handlers to @code{gnus-demon-handlers} directly, you should
10613 run @code{gnus-demon-init} to make the changes take hold.  To cancel all
10614 daemons, you can use the @code{gnus-demon-cancel} function.
10615
10616 Note that adding daemons can be pretty naughty if you overdo it.  Adding
10617 functions that scan all news and mail from all servers every two seconds
10618 is a sure-fire way of getting booted off any respectable system.  So
10619 behave. 
10620
10621
10622 @node NoCeM
10623 @section NoCeM
10624 @cindex nocem
10625 @cindex spam
10626
10627
10628
10629 @node Various Various
10630 @section Various Various
10631 @cindex mode lines
10632 @cindex highlights
10633
10634 @table @code
10635
10636 @item gnus-verbose
10637 @vindex gnus-verbose
10638 This variable is an integer between zero and ten.  The higher the value,
10639 the more messages will be displayed.  If this variable is zero, Gnus
10640 will never flash any messages, if it is seven (which is the default),
10641 most important messages will be shown, and if it is ten, Gnus won't ever
10642 shut up, but will flash so many messages it will make your head swim.
10643
10644 @item gnus-verbose-backends
10645 @vindex gnus-verbose-backends
10646 This variable works the same way as @code{gnus-verbose}, but it applies
10647 to the Gnus backends instead of Gnus proper.
10648
10649 @item gnus-updated-mode-lines
10650 @vindex gnus-updated-mode-lines
10651 This is a list of buffers that should keep their mode lines updated.
10652 The list may contain the symbols @code{group}, @code{article} and
10653 @code{summary}.  If the corresponding symbol is present, Gnus will keep
10654 that mode line updated with information that may be pertinent.  If this
10655 variable is @code{nil}, screen refresh may be quicker.
10656
10657 @cindex display-time
10658
10659 @item gnus-mode-non-string-length
10660 @vindex gnus-mode-non-string-length
10661 By default, Gnus displays information on the current article in the mode
10662 lines of the summary and article buffers.  The information Gnus wishes
10663 to display (eg. the subject of the article) is often longer than the
10664 mode lines, and therefore have to be cut off at some point.  This
10665 variable says how long the other elements on the line is (i.e., the
10666 non-info part).  If you put additional elements on the mode line (eg. a
10667 clock), you should modify this variable:
10668
10669 @c Hook written by Francesco Potorti` <pot@cnuce.cnr.it>
10670 @lisp
10671 (add-hook 'display-time-hook
10672           (lambda () (setq gnus-mode-non-string-length
10673                            (+ 21
10674                               (if line-number-mode 5 0)
10675                               (if column-number-mode 4 0)
10676                               (length display-time-string)))))
10677 @end lisp
10678
10679 If this variable is @code{nil} (which is the default), the mode line
10680 strings won't be chopped off, and they won't be padded either.
10681
10682 @item gnus-visual
10683 @vindex gnus-visual
10684 @cindex visual
10685 @cindex highlighting
10686 @cindex menus
10687
10688 If @code{nil}, Gnus won't attempt to create menus or use fancy colors
10689 or fonts.  This will also inhibit loading the @file{gnus-visual.el}
10690 file.
10691
10692 This variable can also be a list of visual properties that are enabled.
10693 The following elements are legal, and are all set by default:
10694
10695 @table @code
10696
10697 @item summary-highlight
10698 Perform various highlighting in the summary buffer.
10699
10700 @item article-highlight
10701 Perform various highlighting in the article buffer.
10702
10703 @item highlight
10704 Turn on highlighting in all buffers.
10705
10706 @item group-menu
10707 Create menus in the group buffer.
10708
10709 @item summary-menu
10710 Create menus in the summary buffer.
10711
10712 @item article-menu
10713 Create menus in the article buffer.
10714
10715 @item browse-menu
10716 Create menus in the browse buffer.
10717
10718 @item server-menu
10719 Create menus in the server buffer.
10720
10721 @item menu
10722 Create menus in all buffers.
10723
10724 @end table
10725
10726 So if you only want highlighting in the article buffer and menus in all
10727 buffers, you could say something like:
10728
10729 @lisp
10730 (setq gnus-visual '(article-highlight menu))
10731 @end lisp
10732
10733 If you want only highlighting and no menus whatsoever, you'd say:
10734
10735 @lisp
10736 (setq gnus-visual '(highlight))
10737 @end lisp
10738
10739 @item gnus-mouse-face
10740 @vindex gnus-mouse-face
10741 This is the face (i.e., font) used for mouse highlighting in Gnus.  No
10742 mouse highlights will be done if @code{gnus-visual} is @code{nil}.
10743
10744 @item gnus-display-type
10745 @vindex gnus-display-type
10746 This variable is symbol indicating the display Emacs is running under.
10747 The symbol should be one of @code{color}, @code{grayscale} or
10748 @code{mono}.  If Gnus guesses this display attribute wrongly, either set
10749 this variable in your @file{~/.emacs} or set the resource
10750 @code{Emacs.displayType} in your @file{~/.Xdefaults}.
10751
10752 @item gnus-background-mode 
10753 @vindex gnus-background-mode 
10754 This is a symbol indicating the Emacs background brightness.  The symbol
10755 should be one of @code{light} or @code{dark}.  If Gnus guesses this
10756 frame attribute wrongly, either set this variable in your @file{~/.emacs} or
10757 set the resource @code{Emacs.backgroundMode} in your @file{~/.Xdefaults}. 
10758 `gnus-display-type'.
10759
10760 @item nnheader-max-head-length
10761 @vindex nnheader-max-head-length
10762 When the backends read straight heads of articles, they all try to read
10763 as little as possible.  This variable (default @code{4096}) specifies
10764 the absolute max length the backends will try to read before giving up
10765 on finding a separator line between the head and the body.  If this
10766 variable is @code{nil}, there is no upper read bound.  If it is
10767 @code{t}, the backends won't try to read the articles piece by piece,
10768 but read the entire articles.  This makes sense with some versions of
10769 @code{ange-ftp}. 
10770
10771 @item nnheader-file-name-translation-alist 
10772 @vindex nnheader-file-name-translation-alist 
10773 @cindex file names
10774 @cindex illegal characters in file names
10775 @cindex characters in file names
10776 This is an alist that says how to translate characters in file names.
10777 For instance, if @samp{:} is illegal as a file character in file names
10778 on your system (you OS/2 user you), you could say something like:
10779
10780 @lisp
10781 (setq nnheader-file-name-translation-alist 
10782       '((?: . ?_)))
10783 @end lisp
10784
10785 In fact, this is the default value for this variable on OS/2 and MS
10786 Windows (phooey) systems.
10787
10788 @end table
10789
10790 @node Customization
10791 @chapter Customization
10792 @cindex general customization
10793
10794 All variables are properly documented elsewhere in this manual.  This
10795 section is designed to give general pointers on how to customize Gnus
10796 for some quite common situations.
10797
10798 @menu
10799 * Slow/Expensive Connection:: You run a local Emacs and get the news elsewhere.
10800 * Slow Terminal Connection::  You run a remote Emacs.
10801 * Little Disk Space::         You feel that having large setup files is icky.
10802 * Slow Machine::              You feel like buying a faster machine.
10803 @end menu
10804
10805 @node Slow/Expensive Connection
10806 @section Slow/Expensive @sc{nntp} Connection
10807
10808 If you run Emacs on a machine locally, and get your news from a machine
10809 over some very thin strings, you want to cut down on the amount of data
10810 Gnus has to get from the @sc{nntp} server.
10811
10812 @table @code
10813
10814 @item gnus-read-active-file
10815 Set this to @code{nil}, which will inhibit Gnus from requesting the
10816 entire active file from the server.  This file is often v.  large.  You
10817 also have to set @code{gnus-check-new-news} and
10818 @code{gnus-check-bogus-newsgroups} to @code{nil} to make sure that Gnus
10819 doesn't suddenly decide to fetch the active file anyway.
10820
10821 @item gnus-nov-is-evil
10822 This one has to be @code{nil}.  If not, grabbing article headers from
10823 the @sc{nntp} server will not be very fast.  Not all @sc{nntp} servers
10824 support @sc{xover}; Gnus will detect this by itself.
10825 @end table
10826
10827 @node Slow Terminal Connection
10828 @section Slow Terminal Connection
10829
10830 Let's say you use your home computer for dialing up the system that
10831 runs Emacs and Gnus.  If your modem is slow, you want to reduce the
10832 amount of data that is sent over the wires as much as possible.
10833
10834 @table @code
10835
10836 @item gnus-auto-center-summary
10837 Set this to @code{nil} to inhibit Gnus from re-centering the summary
10838 buffer all the time.  
10839
10840 @item gnus-visible-headers
10841 Cut down on the headers that are included in the articles to the
10842 minimum.  You can, in fact, make do without them altogether---most of the
10843 useful data is in the summary buffer, anyway.  Set this variable to
10844 @samp{"^NEVVVVER"} or @samp{"From:"}, or whatever you feel you need.
10845
10846 @item gnus-article-display-hook
10847 Set this hook to all the available hiding commands:
10848 @lisp
10849 (setq gnus-article-display-hook 
10850       '(gnus-article-hide-headers gnus-article-hide-signature
10851         gnus-article-hide-citation))
10852 @end lisp
10853
10854 @item gnus-use-full-window
10855 By setting this to @code{nil}, you can make all the windows smaller.
10856 While this doesn't really cut down much generally, it means that you
10857 have to see smaller portions of articles before deciding that you didn't
10858 want to read them anyway.
10859
10860 @item gnus-thread-hide-subtree
10861 If this is non-@code{nil}, all threads in the summary buffer will be
10862 hidden initially.
10863
10864 @item gnus-updated-mode-lines
10865 If this is @code{nil}, Gnus will not put information in the buffer mode
10866 lines, which might save some time.
10867 @end table
10868
10869 @node Little Disk Space
10870 @section Little Disk Space
10871
10872 The startup files can get rather large, so you may want to cut their
10873 sizes a bit if you are running out of space.
10874
10875 @table @code
10876
10877 @item gnus-save-newsrc-file
10878 If this is @code{nil}, Gnus will never save @file{.newsrc}---it will
10879 only save @file{.newsrc.eld}.  This means that you will not be able to
10880 use any other newsreaders than Gnus.  This variable is @code{t} by
10881 default. 
10882
10883 @item gnus-save-killed-list
10884 If this is @code{nil}, Gnus will not save the list of dead groups.  You
10885 should also set @code{gnus-check-new-newsgroups} to @code{ask-server}
10886 and @code{gnus-check-bogus-newsgroups} to @code{nil} if you set this
10887 variable to @code{nil}.  This variable is @code{t} by default.
10888
10889 @end table
10890
10891
10892 @node Slow Machine
10893 @section Slow Machine
10894
10895 If you have a slow machine, or are just really impatient, there are a
10896 few things you can do to make Gnus run faster.
10897
10898 Set@code{gnus-check-new-newsgroups} and
10899 @code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
10900
10901 Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
10902 @code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
10903 summary buffer faster.
10904
10905 Set @code{gnus-article-display-hook} to @code{nil} to make article
10906 processing a bit faster.
10907
10908
10909 @node Troubleshooting
10910 @chapter Troubleshooting
10911 @cindex troubleshooting
10912
10913 Gnus works @emph{so} well straight out of the box---I can't imagine any
10914 problems, really.
10915
10916 Ahem.
10917
10918 @enumerate
10919
10920 @item
10921 Make sure your computer is switched on.
10922
10923 @item
10924 Make sure that you really load the current Gnus version.  If you have
10925 been running @sc{gnus}, you need to exit Emacs and start it up again before
10926 Gnus will work.
10927
10928 @item
10929 Try doing an @kbd{M-x gnus-version}.  If you get something that looks
10930 like @samp{Gnus v5.46; nntp 4.0} you have the right files loaded.  If,
10931 on the other hand, you get something like @samp{NNTP 3.x} or @samp{nntp
10932 flee}, you have some old @file{.el} files lying around.  Delete these.
10933
10934 @item
10935 Read the help group (@kbd{G h} in the group buffer) for a FAQ and a
10936 how-to. 
10937 @end enumerate
10938
10939 If all else fails, report the problem as a bug.
10940
10941 @cindex bugs
10942 @cindex reporting bugs
10943
10944 @kindex M-x gnus-bug
10945 @findex gnus-bug
10946 If you find a bug in Gnus, you can report it with the @kbd{M-x gnus-bug}
10947 command. @kbd{M-x set-variable RET debug-on-error RET t RET}, and send
10948 me the backtrace.  I will fix bugs, but I can only fix them if you send
10949 me a precise description as to how to reproduce the bug.
10950
10951 You really can never be too detailed in a bug report.  Always use the
10952 @kbd{M-x gnus-bug} command when you make bug reports, even if it creates
10953 a 10Kb mail each time you use it, and even if you have sent me your
10954 environment 500 times before.  I don't care.  I want the full info each
10955 time.  
10956
10957 It is also important to remember that I have no memory whatsoever.  If
10958 you send a bug report, and I send you a reply, and then you send back
10959 just ``No, it's not! Moron!'', I will have no idea what you are insulting
10960 me about.  Always over-explain everything.  It's much easier for all of
10961 us---if I don't have all the information I need, I will just mail you
10962 and ask for more info, and everything takes more time.
10963
10964 If you just need help, you are better off asking on
10965 @samp{gnu.emacs.gnus}.  I'm not very helpful.
10966
10967 @cindex gnu.emacs.gnus
10968 @cindex ding mailing list
10969 You can also ask on the ding mailing list---@samp{ding@@ifi.uio.no}.
10970 Write to @samp{ding-request@@ifi.uio.no} to subscribe.
10971
10972
10973 @node The End
10974 @chapter The End
10975
10976 Well, that's the manual---you can get on with your life now.  Keep in
10977 touch.  Say hello to your cats from me.  
10978
10979 My @strong{ghod}---I just can't stand goodbyes.  Sniffle.
10980
10981 Ol' Charles Reznikoff said it pretty well, so I leave the floor to him:
10982
10983 @quotation
10984 @strong{Te Deum}
10985 @sp 1
10986 Not because of victories @*
10987 I sing,@*
10988 having none,@*
10989 but for the common sunshine,@*
10990 the breeze,@*
10991 the largess of the spring.
10992 @sp 1
10993 Not for victory@*
10994 but for the day's work done@*
10995 as well as I was able;@*
10996 not for a seat upon the dais@*
10997 but at the common table.@*
10998 @end quotation
10999
11000 @node Appendices
11001 @chapter Appendices
11002
11003 @menu
11004 * A Programmer@'s Guide to Gnus::   Rilly, rilly technical stuff.
11005 * Emacs for Heathens::             A short introduction to Emacsian terms.
11006 * Frequently Asked Questions::     A question-and-answer session.
11007 @end menu
11008
11009
11010 @node A Programmer@'s Guide to Gnus
11011 @section A Programmer's Guide to Gnus
11012
11013 It is my hope that other people will figure out smart stuff that Gnus
11014 can do, and that other people will write those smart things as well.  To
11015 facilitate that I thought it would be a good idea to describe the inner
11016 workings of Gnus.  And some of the not-so-inner workings, while I'm at
11017 it.
11018
11019 You can never expect the internals of a program not to change, but I
11020 will be defining (in some details) the interface between Gnus and its
11021 backends (this is written in stone), the format of the score files
11022 (ditto), data structures (some are less likely to change than others)
11023 and general method of operations.
11024
11025 @menu 
11026 * Backend Interface::        How Gnus communicates with the servers.
11027 * Score File Syntax::        A BNF definition of the score file standard.
11028 * Headers::                  How Gnus stores headers internally.
11029 * Ranges::                   A handy format for storing mucho numbers.
11030 * Group Info::               The group info format.
11031 * Various File Formats::     Formats of files that Gnus use.
11032 @end menu
11033
11034
11035 @node Backend Interface
11036 @subsection Backend Interface
11037
11038 Gnus doesn't know anything about @sc{nntp}, spools, mail or virtual
11039 groups.  It only knows how to talk to @dfn{virtual servers}.  A virtual
11040 server is a @dfn{backend} and some @dfn{backend variables}.  As examples
11041 of the first, we have @code{nntp}, @code{nnspool} and @code{nnmbox}.  As
11042 examples of the latter we have @code{nntp-port-number} and
11043 @code{nnmbox-directory}.
11044
11045 When Gnus asks for information from a backend---say @code{nntp}---on
11046 something, it will normally include a virtual server name in the
11047 function parameters.  (If not, the backend should use the ``current''
11048 virtual server.)  For instance, @code{nntp-request-list} takes a virtual
11049 server as its only (optional) parameter.  If this virtual server hasn't
11050 been opened, the function should fail.
11051
11052 Note that a virtual server name has no relation to some physical server
11053 name.  Take this example:
11054
11055 @lisp
11056 (nntp "odd-one" 
11057       (nntp-address "ifi.uio.no") 
11058       (nntp-port-number 4324))
11059 @end lisp
11060
11061 Here the virtual server name is @samp{"odd-one"} while the name of
11062 the physical server is @samp{"ifi.uio.no"}. 
11063
11064 The backends should be able to switch between several virtual servers.
11065 The standard backends implement this by keeping an alist of virtual
11066 server environments that it pulls down/pushes up when needed.  
11067
11068 There are two groups of interface functions: @dfn{required functions},
11069 which must be present, and @dfn{optional functions}, which Gnus will
11070 always check whether are present before attempting to call.
11071
11072 All these functions are expected to return data in the buffer
11073 @code{nntp-server-buffer} (@samp{" *nntpd*"}), which is somewhat
11074 unfortunately named, but we'll have to live with it.  When I talk about
11075 ``resulting data'', I always refer to the data in that buffer.  When I
11076 talk about ``return value'', I talk about the function value returned by
11077 the function call.
11078
11079 Some backends could be said to be @dfn{server-forming} backends, and
11080 some might be said to not be.  The latter are backends that generally
11081 only operate on one group at a time, and have no concept of ``server'' --
11082 they have a group, and they deliver info on that group and nothing more.
11083
11084 In the examples and definitions I will refer to the imaginary backend
11085 @code{nnchoke}. 
11086
11087 @cindex @code{nnchoke}
11088
11089 @menu
11090 * Required Backend Functions::        Functions that must be implemented.
11091 * Optional Backend Functions::        Functions that need not be implemented.
11092 @end menu
11093
11094
11095 @node Required Backend Functions
11096 @subsubsection Required Backend Functions
11097
11098 @table @code
11099
11100 @item (nnchoke-retrieve-headers ARTICLES &optional GROUP SERVER FETCH-OLD)
11101
11102 @var{articles} is either a range of article numbers or a list of
11103 @code{Message-ID}s.  Current backends do not fully support either---only
11104 sequences (lists) of article numbers, and most backends do not support
11105 retrieval of @code{Message-ID}s.  But they should try for both. 
11106
11107 The result data should either be HEADs or NOV lines, and the result
11108 value should either be @code{headers} or @code{nov} to reflect this.
11109 This might later be expanded to @code{various}, which will be a mixture
11110 of HEADs and NOV lines, but this is currently not supported by Gnus.  
11111
11112 If @var{fetch-old} is non-@code{nil} it says to try to fetch "extra
11113 headers, in some meaning of the word.  This is generally done by
11114 fetching (at most) @var{fetch-old} extra headers less than the smallest
11115 article number in @code{articles}, and fill in the gaps as well.  The
11116 presence of this parameter can be ignored if the backend finds it
11117 cumbersome to follow the request.  If this is non-@code{nil} and not a
11118 number, do maximum fetches.
11119
11120 Here's an example HEAD:
11121
11122 @example
11123 221 1056 Article retrieved.
11124 Path: ifi.uio.no!sturles
11125 From: sturles@@ifi.uio.no (Sturle Sunde)
11126 Newsgroups: ifi.discussion
11127 Subject: Re: Something very droll
11128 Date: 27 Oct 1994 14:02:57 +0100
11129 Organization: Dept. of Informatics, University of Oslo, Norway
11130 Lines: 26
11131 Message-ID: <38o8e1$a0o@@holmenkollen.ifi.uio.no>
11132 References: <38jdmq$4qu@@visbur.ifi.uio.no>
11133 NNTP-Posting-Host: holmenkollen.ifi.uio.no
11134 .
11135 @end example
11136
11137 So a @code{headers} return value would imply that there's a number of
11138 these in the data buffer.
11139
11140 Here's a BNF definition of such a buffer:
11141
11142 @example
11143 headers        = *head
11144 head           = error / valid-head
11145 error-message  = [ "4" / "5" ] 2number " " <error message> eol
11146 valid-head     = valid-message *header "." eol
11147 valid-message  = "221 " <number> " Article retrieved." eol
11148 header         = <text> eol
11149 @end example
11150
11151 If the return value is @code{nov}, the data buffer should contain
11152 @dfn{network overview database} lines.  These are basically fields
11153 separated by tabs. 
11154
11155 @example
11156 nov-buffer = *nov-line
11157 nov-line   = 8*9 [ field <TAB> ] eol
11158 field      = <text except TAB>
11159 @end example
11160
11161 For a closer explanation what should be in those fields,
11162 @xref{Headers}. 
11163
11164
11165 @item (nnchoke-open-server SERVER &optional DEFINITIONS)
11166
11167 @var{server} is here the virtual server name.  @var{definitions} is a
11168 list of @code{(VARIABLE VALUE)} pairs that defines this virtual server. 
11169
11170 If the server can't be opened, no error should be signaled.  The backend
11171 may then choose to refuse further attempts at connecting to this
11172 server.  In fact, it should do so. 
11173
11174 If the server is opened already, this function should return a
11175 non-@code{nil} value.  There should be no data returned.
11176
11177
11178 @item (nnchoke-close-server &optional SERVER)
11179
11180 Close connection to @var{server} and free all resources connected
11181 to it. 
11182
11183 There should be no data returned.
11184
11185
11186 @item (nnchoke-request-close)
11187
11188 Close connection to all servers and free all resources that the backend
11189 have reserved.  All buffers that have been created by that backend
11190 should be killed.  (Not the @code{nntp-server-buffer}, though.)
11191
11192 There should be no data returned. 
11193
11194
11195 @item (nnchoke-server-opened &optional SERVER)
11196
11197 This function should return whether @var{server} is opened, and that the
11198 connection to it is still alive.  This function should under no
11199 circumstances attempt to reconnect to a server that is has lost
11200 connection to. 
11201
11202 There should be no data returned.
11203
11204
11205 @item (nnchoke-status-message &optional SERVER)
11206
11207 This function should return the last error message from @var{server}. 
11208
11209 There should be no data returned.
11210
11211
11212 @item (nnchoke-request-article ARTICLE &optional GROUP SERVER TO-BUFFER)
11213
11214 The result data from this function should be the article specified by
11215 @var{article}.  This might either be a @code{Message-ID} or a number.
11216 It is optional whether to implement retrieval by @code{Message-ID}, but
11217 it would be nice if that were possible.
11218
11219 If @var{to-buffer} is non-@code{nil}, the result data should be returned
11220 in this buffer instead of the normal data buffer.  This is to make it
11221 possible to avoid copying large amounts of data from one buffer to
11222 another, and Gnus mainly request articles to be inserted directly into
11223 its article buffer.
11224
11225
11226 @item (nnchoke-open-group GROUP &optional SERVER)
11227
11228 Make @var{group} the current group.  
11229
11230 There should be no data returned by this function.
11231
11232
11233 @item (nnchoke-request-group GROUP &optional SERVER)
11234
11235 Get data on @var{group}.  This function also has the side effect of
11236 making @var{group} the current group. 
11237
11238 Here's an example of some result data and a definition of the same:
11239
11240 @example
11241 211 56 1000 1059 ifi.discussion
11242 @end example
11243
11244 The first number is the status, which should be @samp{211}.  Next is the
11245 total number of articles in the group, the lowest article number, the
11246 highest article number, and finally the group name.  Note that the total
11247 number of articles may be less than one might think while just
11248 considering the highest and lowest article numbers, but some articles
11249 may have been cancelled.  Gnus just discards the total-number, so
11250 whether one should take the bother to generate it properly (if that is a
11251 problem) is left as an exercise to the reader.
11252
11253 @example
11254 group-status = [ error / info ] eol
11255 error        = [ "4" / "5" ] 2<number> " " <Error message>
11256 info         = "211 " 3* [ <number> " " ] <string>
11257 @end example
11258
11259
11260 @item (nnchoke-close-group GROUP &optional SERVER)
11261
11262 Close @var{group} and free any resources connected to it.  This will be
11263 a no-op on most backends. 
11264
11265 There should be no data returned.
11266
11267
11268 @item (nnchoke-request-list &optional SERVER)
11269
11270 Return a list of all groups available on @var{server}.  And that means
11271 @emph{all}. 
11272
11273 Here's an example from a server that only carries two groups:
11274
11275 @example
11276 ifi.test 0000002200 0000002000 y
11277 ifi.discussion 3324 3300 n
11278 @end example
11279
11280 On each line we have a group name, then the highest article number in
11281 that group, the lowest article number, and finally a flag.
11282
11283 @example
11284 active-file = *active-line
11285 active-line = name " " <number> " " <number> " " flags eol
11286 name        = <string>
11287 flags       = "n" / "y" / "m" / "x" / "j" / "=" name
11288 @end example
11289
11290 The flag says whether the group is read-only (@samp{n}), is moderated
11291 (@samp{m}), is dead (@samp{x}), is aliased to some other group
11292 (@samp{=other-group} or none of the above (@samp{y}). 
11293
11294
11295 @item (nnchoke-request-post &optional SERVER)
11296
11297 This function should post the current buffer.  It might return whether
11298 the posting was successful or not, but that's not required.  If, for
11299 instance, the posting is done asynchronously, it has generally not been
11300 completed by the time this function concludes.  In that case, this
11301 function should set up some kind of sentinel to beep the user loud and
11302 clear if the posting could not be completed.
11303
11304 There should be no result data from this function. 
11305
11306
11307 @item (nnchoke-request-post-buffer POST GROUP SUBJECT HEADER ARTICLE-BUFFER INFO FOLLOW-TO RESPECT-POSTER)
11308
11309 This function should return a buffer suitable for composing an article
11310 to be posted by @code{nnchoke-request-post}.  If @var{post} is
11311 non-@code{nil}, this is not a followup, but a totally new article.
11312 @var{group} is the name of the group to be posted to.  @var{subject} is
11313 the subject of the message.  @var{article-buffer} is the buffer being
11314 followed up, if that is the case.  @var{info} is the group info.
11315 @var{follow-to} is the group that one is supposed to re-direct the
11316 article ot.  If @var{respect-poster} is non-@code{nil}, the special
11317 @samp{"poster"} value of a @code{Followup-To} header is to be respected.
11318
11319 There should be no result data returned.
11320
11321 @end table
11322
11323 @node Optional Backend Functions
11324 @subsubsection Optional Backend Functions
11325
11326 @table @code
11327
11328 @item (nnchoke-retrieve-groups GROUPS &optional SERVER)
11329
11330 @var{groups} is a list of groups, and this function should request data
11331 on all those groups.  How it does it is of no concern to Gnus, but it
11332 should attempt to do this in a speedy fashion.
11333
11334 The return value of this function can be either @code{active} or
11335 @code{group}, which says what the format of the result data is.  The
11336 former is in the same format as the data from
11337 @code{nnchoke-request-list}, while the latter is a buffer full of lines
11338 in the same format as @code{nnchoke-request-group} gives.
11339
11340 @example
11341 group-buffer = *active-line / *group-status
11342 @end example
11343
11344
11345 @item (nnchoke-request-update-info GROUP INFO &optional SERVER)
11346
11347 A Gnus group info (@pxref{Group Info}) is handed to the backend for
11348 alterations.  This comes in handy if the backend really carries all the
11349 information (as is the case with virtual an imap groups).  This function
11350 may alter the info in any manner it sees fit, and should return the
11351 (altered) group info.  This function may alter the group info
11352 destructively, so no copying is needed before boogeying. 
11353
11354 There should be no result data from this function.
11355
11356
11357 @item (nnchoke-request-type GROUP &optional ARTICLE)
11358
11359 When the user issues commands for ``sending news'' (@kbd{F} in the summary
11360 buffer, for instance), Gnus has to know whether the article the user is
11361 following up is news or mail.  This function should return @code{news}
11362 if @var{article} in @var{group} is news, @code{mail} if it is mail and
11363 @code{unknown} if the type can't be decided.  (The @var{article}
11364 parameter is necessary in @code{nnvirtual} groups which might very well
11365 combine mail groups and news groups.)
11366
11367 There should be no result data from this function.
11368
11369
11370 @item (nnchoke-request-update-mark GROUP ARTICLE MARK)
11371
11372 If the user tries to set a mark that the backend doesn't like, this
11373 function may change the mark.  Gnus will use whatever this function
11374 returns as the mark for @var{article} instead of the original
11375 @var{mark}.  If the backend doesn't care, it must return the original
11376 @var{mark}, and not @code{nil} or any other type of garbage.  
11377
11378 The only use for this that I can see is what @code{nnvirtual} does with
11379 it---if a component group is auto-expirable, marking an article as read
11380 in the virtual group should result in the article being marked as
11381 expirable. 
11382
11383 There should be no result data from this function.
11384
11385
11386 @item (nnchoke-request-scan &optional GROUP SERVER)
11387
11388 This function may be called at any time (by Gnus or anything else) to
11389 request that the backend check for incoming articles, in one way or
11390 another.  A mail backend will typically read the spool file or query the
11391 POP server when this function is invoked.  The @var{group} doesn't have
11392 to be heeded---if the backend decides that it is too much work just
11393 scanning for a single group, it may do a total scan of all groups.  It
11394 would be nice, however, to keep things local if that's practical.
11395
11396 There should be no result data from this function.
11397
11398
11399 @item (nnchoke-request-asynchronous GROUP &optional SERVER ARTICLES)
11400
11401 This is a request to fetch articles asynchronously later.
11402 @var{articles} is an alist of @var{(article-number line-number)}.  One
11403 would generally expect that if one later fetches article number 4, for
11404 instance, some sort of asynchronous fetching of the articles after 4
11405 (which might be 5, 6, 7 or 11, 3, 909 depending on the order in that
11406 alist) would be fetched asynchronously, but that is left up to the
11407 backend.  Gnus doesn't care.
11408
11409 There should be no result data from this function.
11410  
11411
11412 @item (nnchoke-request-group-description GROUP &optional SERVER)
11413
11414 The result data from this function should be a description of
11415 @var{group}. 
11416
11417 @example
11418 description-line = name <TAB> description eol
11419 name             = <string>
11420 description      = <text>
11421 @end example
11422
11423 @item (nnchoke-request-list-newsgroups &optional SERVER)
11424
11425 The result data from this function should be the description of all
11426 groups available on the server.
11427
11428 @example
11429 description-buffer = *description-line
11430 @end example
11431
11432
11433 @item (nnchoke-request-newgroups DATE &optional SERVER)
11434
11435 The result data from this function should be all groups that were
11436 created after @samp{date}, which is in normal human-readable date
11437 format.  The data should be in the active buffer format.
11438
11439
11440 @item (nnchoke-request-create-groups GROUP &optional SERVER)
11441
11442 This function should create an empty group with name @var{group}.  
11443
11444 There should be no return data.
11445
11446
11447 @item (nnchoke-request-expire-articles ARTICLES &optional GROUP SERVER FORCE)
11448
11449 This function should run the expiry process on all articles in the
11450 @var{articles} range (which is currently a simple list of article
11451 numbers.)  It is left up to the backend to decide how old articles
11452 should be before they are removed by this function.  If @var{force} is
11453 non-@code{nil}, all @var{articles} should be deleted, no matter how new
11454 they are. 
11455
11456 This function should return a list of articles that it did not/was not
11457 able to delete.
11458
11459 There should be no result data returned.
11460
11461
11462 @item (nnchoke-request-move-article ARTICLE GROUP SERVER ACCEPT-FORM
11463 &optional LAST)
11464
11465 This function should move @var{article} (which is a number) from
11466 @var{group} by calling @var{accept-form}.  
11467
11468 This function should ready the article in question for moving by
11469 removing any header lines it has added to the article, and generally
11470 should ``tidy up'' the article.  Then it should @code{eval}
11471 @var{accept-form} in the buffer where the ``tidy'' article is.  This will
11472 do the actual copying.  If this @code{eval} returns a non-@code{nil}
11473 value, the article should be removed.
11474
11475 If @var{last} is @code{nil}, that means that there is a high likelihood
11476 that there will be more requests issued shortly, so that allows some
11477 optimizations. 
11478
11479 There should be no data returned. 
11480
11481
11482 @item (nnchoke-request-accept-article GROUP &optional LAST)
11483
11484 This function takes the current buffer and inserts it into @var{group}.
11485 If @var{last} in @code{nil}, that means that there will be more calls to
11486 this function in short order.
11487
11488 There should be no data returned.
11489
11490
11491 @item (nnchoke-request-replace-article ARTICLE GROUP BUFFER)
11492
11493 This function should remove @var{article} (which is a number) from
11494 @var{group} and insert @var{buffer} there instead.
11495
11496 There should be no data returned.
11497
11498
11499 @item (nnchoke-request-delete-group GROUP FORCE &optional SERVER)
11500
11501 This function should delete @var{group}.  If @var{force}, it should
11502 really delete all the articles in the group, and then delete the group
11503 itself.  (If there is such a thing as ``the group itself''.)
11504
11505 There should be no data returned.
11506
11507
11508 @item (nnchoke-request-rename-group GROUP NEW-NAME &optional SERVER)
11509
11510 This function should rename @var{group} into @var{new-name}.  All
11511 articles that are in @var{group} should move to @var{new-name}.
11512
11513 There should be no data returned.
11514
11515
11516 @end table
11517
11518
11519 @node Score File Syntax
11520 @subsection Score File Syntax
11521
11522 Score files are meant to be easily parsable, but yet extremely
11523 mallable.   It was decided that something that had the same read syntax
11524 as an Emacs Lisp list would fit that spec.
11525
11526 Here's a typical score file:
11527
11528 @lisp
11529 (("summary"
11530   ("win95" -10000 nil s)
11531   ("Gnus"))
11532  ("from"
11533   ("Lars" -1000))
11534  (mark -100))
11535 @end lisp
11536
11537 BNF definition of a score file:
11538
11539 @example
11540 score-file       = "" / "(" *element ")"
11541 element          = rule / atom
11542 rule             = string-rule / number-rule / date-rule
11543 string-rule      = "(" quote string-header quote space *string-match ")"
11544 number-rule      = "(" quote number-header quote space *number-match ")"
11545 date-rule        = "(" quote date-header quote space *date-match ")"
11546 quote            = <ascii 34>
11547 string-header    = "subject" / "from" / "references" / "message-id" / 
11548                    "xref" / "body" / "head" / "all" / "followup"
11549 number-header    = "lines" / "chars"
11550 date-header      = "date"
11551 string-match     = "(" quote <string> quote [ "" / [ space score [ "" / 
11552                    space date [ "" / [ space string-match-t ] ] ] ] ] ")"
11553 score            = "nil" / <integer>
11554 date             = "nil" / <natural number>
11555 string-match-t   = "nil" / "s" / "substring" / "S" / "Substring" / 
11556                    "r" / "regex" / "R" / "Regex" /
11557                    "e" / "exact" / "E" / "Exact" /
11558                    "f" / "fuzzy" / "F" / "Fuzzy"
11559 number-match     = "(" <integer> [ "" / [ space score [ "" / 
11560                    space date [ "" / [ space number-match-t ] ] ] ] ] ")"
11561 number-match-t   = "nil" / "=" / "<" / ">" / ">=" / "<="
11562 date-match       = "(" quote <string> quote [ "" / [ space score [ "" / 
11563                    space date [ "" / [ space date-match-t ] ] ] ] ")"
11564 date-match-t     = "nil" / "at" / "before" / "after"
11565 atom             = "(" [ required-atom / optional-atom ] ")"
11566 required-atom    = mark / expunge / mark-and-expunge / files /
11567                    exclude-files / read-only / touched
11568 optional-atom    = adapt / local / eval 
11569 mark             = "mark" space nil-or-number
11570 nil-or-number    = "nil" / <integer>
11571 expunge          = "expunge" space nil-or-number
11572 mark-and-expunge = "mark-and-expunge" space nil-or-number
11573 files            = "files" *[ space <string> ]
11574 exclude-files    = "exclude-files" *[ space <string> ]
11575 read-only        = "read-only" [ space "nil" / space "t" ]
11576 adapt            = "adapt" [ space "nil" / space "t" / space adapt-rule ]
11577 adapt-rule       = "(" *[ <string> *[ "(" <string> <integer> ")" ] ")"
11578 local            = "local" *[ space "(" <string> space <form> ")" ]
11579 eval             = "eval" space <form>
11580 space            = *[ " " / <TAB> / <NEWLINE> ]
11581 @end example
11582
11583 Any unrecognized elements in a score file should be ignored, but not
11584 discarded.  
11585
11586 As you can see, white space is needed, but the type and amount of white
11587 space is irrelevant.  This means that formatting of the score file is
11588 left up to the programmer---if it's simpler to just spew it all out on
11589 one looong line, then that's ok.
11590
11591 The meaning of the various atoms are explained elsewhere in this
11592 manual. 
11593
11594
11595 @node Headers
11596 @subsection Headers
11597
11598 Gnus uses internally a format for storing article headers that
11599 corresponds to the @sc{nov} format in a mysterious fashion.  One could
11600 almost suspect that the author looked at the @sc{nov} specification and
11601 just shamelessly @emph{stole} the entire thing, and one would be right.
11602
11603 @dfn{Header} is a severely overloaded term.  ``Header'' is used in RFC1036
11604 to talk about lines in the head of an article (eg., @code{From}).  It is
11605 used by many people as a synonym for ``head''---``the header and the
11606 body''.  (That should be avoided, in my opinion.)  And Gnus uses a format
11607 internally that it calls ``header'', which is what I'm talking about
11608 here.  This is a 9-element vector, basically, with each header (ouch)
11609 having one slot. 
11610
11611 These slots are, in order: @code{number}, @code{subject}, @code{from},
11612 @code{date}, @code{id}, @code{references}, @code{chars}, @code{lines},
11613 @code{xref}.  There are macros for accessing and setting these slots --
11614 they all have predictable names beginning with @code{mail-header-} and
11615 @code{mail-header-set-}, respectively.  
11616
11617 The @code{xref} slot is really a @code{misc} slot.  Any extra info will
11618 be put in there.
11619
11620
11621 @node Ranges
11622 @subsection Ranges
11623
11624 @sc{gnus} introduced a concept that I found so useful that I've started
11625 using it a lot and have elaborated on it greatly. 
11626
11627 The question is simple: If you have a large amount of objects that are
11628 identified by numbers (say, articles, to take a @emph{wild} example)
11629 that you want to callify as being ``included'', a normal sequence isn't
11630 very useful.  (A 200,000 length sequence is a bit long-winded.)
11631
11632 The solution is as simple as the question: You just collapse the
11633 sequence. 
11634
11635 @example
11636 (1 2 3 4 5 6 10 11 12)
11637 @end example
11638
11639 is transformed into
11640
11641 @example
11642 ((1 . 6) (10 . 12))
11643 @end example
11644
11645 To avoid having those nasty @samp{(13 . 13)} elements to denote a
11646 lonesome object, a @samp{13} is a valid element:
11647
11648 @example
11649 ((1 . 6) 7 (10 . 12))
11650 @end example
11651
11652 This means that comparing two ranges to find out whether they are equal
11653 is slightly tricky:
11654
11655 @example
11656 ((1 . 5) 7 8 (10 . 12))
11657 @end example
11658
11659 and
11660
11661 @example
11662 ((1 . 5) (7 . 8) (10 . 12))
11663 @end example
11664
11665 are equal.  In fact, any non-descending list is a range:
11666
11667 @example
11668 (1 2 3 4 5)
11669 @end example
11670
11671 is a perfectly valid range, although a pretty long-winded one.  This is
11672 also legal:
11673
11674 @example
11675 (1 . 5)
11676 @end example
11677
11678 and is equal to the previous range.
11679
11680 Here's a BNF definition of ranges.  Of course, one must remember the
11681 semantic requirement that the numbers are non-descending.  (Any number
11682 of repetition of the same number is allowed, but apt to disappear in
11683 range handling.)
11684
11685 @example
11686 range           = simple-range / normal-range
11687 simple-range    = "(" number " . " number ")"
11688 normal-range    = "(" start-contents ")"
11689 contents        = "" / simple-range *[ " " contents ] / 
11690                   number *[ " " contents ]
11691 @end example
11692
11693 Gnus currently uses ranges to keep track of read articles and article
11694 marks.  I plan on implementing a number of range operators in C if The
11695 Powers That Be are willing to let me.  (I haven't asked yet, because I
11696 need to do some more thinking on what operators I need to make life
11697 totally range-based without ever having to convert back to normal
11698 sequences.) 
11699
11700
11701 @node Group Info
11702 @subsection Group Info
11703
11704 Gnus stores all permanent info on groups in a @dfn{group info} list.
11705 This list is from three to six elements (or more) long and exhaustively
11706 describes the group.
11707
11708 Here are two example group infos; one is a very simple group while the
11709 second is a more complex one:
11710
11711 @example
11712 ("no.group" 5 (1 . 54324))
11713
11714 ("nnml:my.mail" 3 ((1 . 5) 9 (20 . 55))
11715                 ((tick (15 . 19)) (replied 3 6 (19 . 3)))
11716                 (nnml "")
11717                 (auto-expire (to-address "ding@@ifi.uio.no")))
11718 @end example
11719
11720 The first element is the group name as Gnus knows the group; the second
11721 is the group level; the third is the read articles in range format; the
11722 fourth is a list of article marks lists; the fifth is the select method;
11723 and the sixth contains the group parameters.
11724
11725 Here's a BNF definition of the group info format:
11726
11727 @example
11728 info          = "(" group space level space read 
11729                 [ "" / [ space marks-list [ "" / [ space method [ "" /
11730                 space parameters ] ] ] ] ] ")" 
11731 group         = quote <string> quote
11732 level         = <integer in the range of 1 to inf>
11733 read          = range
11734 marks-lists   = nil / "(" *marks ")"
11735 marks         = "(" <string> range ")"
11736 method        = "(" <string> *elisp-forms ")"
11737 parameters    = "(" *elisp-forms ")"
11738 @end example
11739
11740 Actually that @samp{marks} rule is a fib.  A @samp{marks} is a
11741 @samp{<string>} consed on to a @samp{range}, but that's a bitch to say
11742 in pseudo-BNF.
11743
11744
11745 @node Various File Formats
11746 @subsection Various File Formats
11747
11748 @menu
11749 * Active File Format::      Information on articles and groups available.
11750 * Newsgroups File Format::  Group descriptions.
11751 @end menu
11752
11753
11754 @node Active File Format
11755 @subsubsection Active File Format
11756
11757 The active file lists all groups that are available on the server in
11758 question.  It also lists the highest and lowest current article numbers
11759 in each group.  
11760
11761 Here's an excerpt from a typical active file:
11762
11763 @example
11764 soc.motss 296030 293865 y
11765 alt.binaries.pictures.fractals 3922 3913 n
11766 comp.sources.unix 1605 1593 m
11767 comp.binaries.ibm.pc 5097 5089 y
11768 no.general 1000 900 y
11769 @end example
11770
11771 Here's a pseudo-BNF definition of this file:
11772
11773 @example
11774 active      = *group-line
11775 group-line  = group space high-number space low-number space flag <NEWLINE>
11776 group       = <non-white-space string>
11777 space       = " "
11778 high-number = <non-negative integer>
11779 low-number  = <positive integer>
11780 flag        = "y" / "n" / "m" / "j" / "x" / "=" group
11781 @end example
11782
11783
11784 @node Newsgroups File Format
11785 @subsubsection Newsgroups File Format
11786
11787 The newsgroups file lists groups along with their descriptions.  Not all
11788 groups on the server have to be listed,  and not all groups in the file
11789 have to exist on the server.  The file is meant purely as information to
11790 the user.
11791
11792 The format is quite simple; a group name, a tab, and the description.
11793 Here's the definition:
11794
11795 @example
11796 newsgroups    = *line
11797 line          = group tab description <NEWLINE>
11798 group         = <non-white-space string>
11799 tab           = <TAB>
11800 description   = <string>
11801 @end example
11802
11803
11804 @node Emacs for Heathens
11805 @section Emacs for Heathens
11806
11807 Believe it or not, but some people who use Gnus haven't really used
11808 Emacs much before they embarked on their journey on the Gnus Love Boat.
11809 If you are one of those unfortunates whom ``@kbd{M-C-a}'', ``kill the
11810 region'', and ``set @code{gnus-flargblossen} to an alist where the key is
11811 a regexp that is used for matching on the group name'' are magical
11812 phrases with little or no meaning, then this appendix is for you.  If
11813 you are already familiar with Emacs, just ignore this and go fondle your
11814 cat instead.
11815
11816 @menu
11817 * Keystrokes::      Entering text and executing commands.
11818 * Emacs Lisp::      The built-in Emacs programming language.
11819 @end menu
11820
11821
11822 @node Keystrokes
11823 @subsection Keystrokes
11824
11825 @itemize @bullet
11826 @item
11827 Q: What is an experienced Emacs user?
11828
11829 @item 
11830 A: A person who wishes that the terminal had pedals.
11831 @end itemize
11832
11833 Yes, when you use Emacs, you are apt to use the control key, the shift
11834 key and the meta key a lot.  This is very annoying to some people
11835 (notably @code{vi}le users), and the rest of us just love the hell out
11836 of it.  Just give up and submit.  Emacs really does stand for
11837 ``Escape-Meta-Alt-Control-Shift'', and not ``Editing Macros'', as you may
11838 have heard from other disreputable sources (like the Emacs author).
11839
11840 The shift key is normally located near your pinky fingers, and are
11841 normally used to get capital letters and stuff.  You probably use it all
11842 the time.  The control key is normally marked ``CTRL'' or something like
11843 that.  The meta key is, funnily enough, never marked as such on any
11844 keyboards.  The one I'm currently at has a key that's marked ``Alt'', which
11845 is the meta key on this keyboard.  It's usually located somewhere to the
11846 left hand side of the keyboard, usually on the bottom row.
11847
11848 Now, us Emacs people doesn't say ``press the meta-control-m key'', because
11849 that's just too inconvenient.  We say ``press the @kbd{M-C-m} key''.
11850 @kbd{M-} is the prefix that means ``meta'' and ``C-'' is the prefix that
11851 means ``control''.  So ``press @kbd{C-k}'' means ``press down the control
11852 key, and hold it down while you press @kbd{k}''.  ``Press @kbd{M-C-k}''
11853 means ``press down and hold down the meta key and the control key and
11854 then press @kbd{k}''.  Simple, ay?
11855
11856 This is somewhat complicated by the fact that not all keyboards have a
11857 meta key.  In that case you can use the ``escape'' key.  Then @kbd{M-k}
11858 means ``press escape, release escape, press @kbd{k}''.  That's much more
11859 work than if you have a meta key, so if that's the case, I respectfully
11860 suggest you get a real keyboard with a meta key.  You can't live without
11861 it.
11862
11863
11864
11865 @node Emacs Lisp
11866 @subsection Emacs Lisp
11867
11868 Emacs is the King of Editors because it's really a Lisp interpreter.
11869 Each and every key you tap runs some Emacs Lisp code snippet, and since
11870 Emacs Lisp is an interpreted language, that means that you can configure
11871 any key to run any random code.  You just, like, do it.  
11872
11873 Gnus is written in Emacs Lisp, and is run as a bunch of interpreted
11874 functions.  (These are byte-compiled for speed, but it's still
11875 interpreted.)  If you decide that you don't like the way Gnus does
11876 certain things, it's trivial to have it do something a different way.
11877 (Well, at least if you know how to write Lisp code.)  However, that's
11878 beyond the scope of this manual, so we are simply going to talk about
11879 some common constructs that you normally use in your @file{.emacs} file
11880 to customize Gnus.
11881
11882 If you want to set the variable @code{gnus-florgbnize} to four (4), you
11883 write the following:
11884
11885 @lisp
11886 (setq gnus-florgbnize 4)
11887 @end lisp
11888
11889 This function (really ``special form'') @code{setq} is the one that can
11890 set a variable to some value.  This is really all you need to know.  Now
11891 you can go and fill your @code{.emacs} file with lots of these to change
11892 how Gnus works.
11893
11894 If you have put that thing in your @code{.emacs} file, it will be read
11895 and @code{eval}ed (which is lisp-ese for ``run'') the next time you start
11896 Emacs.  If you want to change the variable right away, simply say
11897 @kbd{C-x C-e} after the closing parenthesis.  That will @code{eval} the
11898 previous ``form'', which here is a simple @code{setq} statement.
11899
11900 Go ahead---just try it, if you're located at your Emacs.  After you
11901 @kbd{C-x C-e}, you will see @samp{4} appear in the echo area, which
11902 is the return value of the form you @code{eval}ed.
11903
11904 Some pitfalls:
11905
11906 If the manual says ``set @code{gnus-read-active-file} to @code{some}'',
11907 that means:
11908
11909 @lisp
11910 (setq gnus-read-active-file 'some)
11911 @end lisp
11912
11913 On the other hand, if the manual says ``set @code{gnus-nntp-server} to
11914 @samp{"nntp.ifi.uio.no"}'', that means:
11915
11916 @lisp
11917 (setq gnus-nntp-server "nntp.ifi.uio.no")
11918 @end lisp
11919
11920 So be careful not to mix up strings (the latter) with symbols (the
11921 former).  The manual is unambiguous, but it can be confusing.
11922
11923
11924 @include gnus-faq.texi
11925
11926 @node Index
11927 @chapter Index
11928 @printindex cp
11929
11930 @node Key Index
11931 @chapter Key Index
11932 @printindex ky
11933
11934 @summarycontents
11935 @contents
11936 @bye
11937
11938 @iftex
11939 @iflatex
11940 \end{document}
11941 @end iflatex
11942 @end iftex
11943
11944 @c End:
11945