*** empty log message ***
[gnus] / texi / gnus.texi
1 \input texinfo                  @c -*-texinfo-*-
2
3 @setfilename gnus.info
4 @settitle September Gnus Manual
5 @synindex fn cp
6 @synindex vr cp
7 @synindex pg cp
8 @iftex
9 @finalout
10 @end iftex
11 @setchapternewpage odd
12
13 @iftex
14 @iflatex
15 \documentclass[twoside,a4paper,openright]{book}
16 \usepackage[latin1]{inputenc}
17 % \usepackage{fontenc}
18 % \usepackage{babel}
19 \usepackage{pagestyle}
20 \usepackage{epsfig}
21 % \usepackage{ifitricks}
22 \fontfamily{bembo}\selectfont
23
24 \makeindex
25 \begin{document}
26
27 \newcommand{\gnuschaptername}{}
28 \newcommand{\gnussectionname}{}
29
30 \newcommand{\gnusbackslash}{/}
31
32 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
33 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
34
35 \newcommand{\gnuskindex}[1]{\index{#1}}
36 \newcommand{\gnusindex}[1]{\index{#1}}
37
38 \newcommand{\gnustt}[1]{{\textbf{\textsf{#1}}}}
39 \newcommand{\gnuscode}[1]{\gnustt{#1}}
40 \newcommand{\gnussamp}[1]{``\gnustt{#1}''}
41 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
42 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
43 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
44 \newcommand{\gnusdfn}[1]{\textit{#1}}
45 \newcommand{\gnusi}[1]{\textit{#1}}
46 \newcommand{\gnusstrong}[1]{\textbf{#1}}
47 \newcommand{\gnusemph}[1]{\textit{#1}}
48 \newcommand{\gnusvar}[1]{\textsl{\textsf{#1}}}
49 \newcommand{\gnussc}[1]{\textsc{#1}}
50 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
51 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
52
53 \newcommand{\gnusbullet}{{${\bullet}$}}
54 \newcommand{\gnusdollar}{\$}
55 \newcommand{\gnusampersand}{\&}
56 \newcommand{\gnuspercent}{\%}
57 \newcommand{\gnushash}{\#}
58 \newcommand{\gnushat}{\symbol{"5E}}
59 \newcommand{\gnusunderline}{\symbol{"5F}}
60 \newcommand{\gnustilde}{\symbol{"7E}}
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 \renewcommand{\gnussectionname}{}
71 \chapter{#1}
72 \renewcommand{\gnuschaptername}{#1}
73 \thispagestyle{empty}
74 % \epsfig{figure=gnus-herd-\arabic{chapter}.eps,height=15cm}
75 \clearpage
76 }
77
78 \newcommand{\gnusitemx}[1]{\vspace{-\itemsep}\item#1}
79
80 \newcommand{\gnussection}[1]{
81 \renewcommand{\gnussectionname}{#1}
82 \section{#1}
83 }
84
85 \newenvironment{codelist}%
86 {\begin{list}{}{
87 }
88 }{\end{list}}
89
90 \newenvironment{kbdlist}%
91 {\begin{list}{}{
92 \labelwidth=0cm
93 }
94 }{\end{list}}
95
96 \newenvironment{dfnlist}%
97 {\begin{list}{}{
98 }
99 }{\end{list}}
100
101 \newenvironment{stronglist}%
102 {\begin{list}{}{
103 }
104 }{\end{list}}
105
106 \newenvironment{samplist}%
107 {\begin{list}{}{
108 }
109 }{\end{list}}
110
111 \newenvironment{varlist}%
112 {\begin{list}{}{
113 }
114 }{\end{list}}
115
116 \newenvironment{emphlist}%
117 {\begin{list}{}{
118 }
119 }{\end{list}}
120
121 \newpagestyle{gnus}%
122 {
123 {
124 \ifodd\count0
125 {
126 \hspace*{-2ex}
127 \underline{
128 \makebox[\headtextwidth]{
129 \hspace*{-2.3ex}
130 \textbf{\arabic{chapter}.\arabic{section}}
131 \textbf{\gnussectionname\hfill\arabic{page}}
132 }}
133 }
134 \else
135 {
136 \hspace*{-2.25cm}
137 \underline{
138 \hspace*{-2.3ex}
139 \makebox[\headtextwidth]{
140 \textbf{\arabic{page}\hfill\gnuschaptername}
141 }}
142 }
143 \fi
144 }
145 }
146 {
147 \ifodd\count0
148 \mbox{} \hfill 
149 \raisebox{-0.5cm}{\epsfig{figure=gnus-big-logo.eps,height=1cm}}
150 \else
151 \raisebox{-0.5cm}{\epsfig{figure=gnus-big-logo.eps,height=1cm}}
152 \hfill \mbox{}
153 \fi
154 }
155 \pagestyle{gnus}
156
157 @end iflatex
158 @end iftex
159
160 @iftex
161 @iflatex
162 \begin{titlepage}
163 {
164
165 %\addtolength{\oddsidemargin}{-5cm}
166 %\addtolength{\evensidemargin}{-5cm}
167 \parindent=0cm
168 \addtolength{\textheight}{2cm}
169
170 \gnustitle{\gnustitlename}\\
171 \rule{15cm}{1mm}\\
172 \vfill
173 \hspace*{-1cm}\epsfig{figure=gnus-big-logo.eps,height=15cm}
174 \vfill
175 \rule{15cm}{1mm}\\
176 \gnusauthor{by Lars Magne Ingebrigtsen}
177 \newpage
178 }
179
180 \mbox{}
181 \vfill
182
183 \thispagestyle{empty}
184
185 Copyright \copyright{} 1995,96 Free Software Foundation, Inc. 
186
187 Permission is granted to make and distribute verbatim copies of
188 this manual provided the copyright notice and this permission notice
189 are preserved on all copies.
190
191 Permission is granted to copy and distribute modified versions of this
192 manual under the conditions for verbatim copying, provided that the
193 entire resulting derived work is distributed under the terms of a
194 permission notice identical to this one.
195
196 Permission is granted to copy and distribute translations of this manual
197 into another language, under the above conditions for modified versions.
198
199 \newpage
200 \end{titlepage}
201 @end iflatex
202 @end iftex
203
204 @ifinfo
205
206 This file documents Gnus, the GNU Emacs newsreader.
207
208 Copyright (C) 1995,96 Free Software Foundation, Inc.
209
210 Permission is granted to make and distribute verbatim copies of
211 this manual provided the copyright notice and this permission notice
212 are preserved on all copies.
213
214 @ignore
215 Permission is granted to process this file through Tex and print the
216 results, provided the printed document carries copying permission
217 notice identical to this one except for the removal of this paragraph
218 (this paragraph not being relevant to the printed manual).
219
220 @end ignore
221 Permission is granted to copy and distribute modified versions of this
222 manual under the conditions for verbatim copying, provided also that the
223 entire resulting derived work is distributed under the terms of a
224 permission notice identical to this one.
225
226 Permission is granted to copy and distribute translations of this manual
227 into another language, under the above conditions for modified versions.
228 @end ifinfo
229
230 @tex
231
232 @titlepage
233 @title September Gnus Manual
234
235 @author by Lars Magne Ingebrigtsen
236 @page
237
238 @vskip 0pt plus 1filll
239 Copyright @copyright{} 1995,96 Free Software Foundation, Inc. 
240
241 Permission is granted to make and distribute verbatim copies of
242 this manual provided the copyright notice and this permission notice
243 are preserved on all copies.
244
245 Permission is granted to copy and distribute modified versions of this
246 manual under the conditions for verbatim copying, provided that the
247 entire resulting derived work is distributed under the terms of a
248 permission notice identical to this one.
249
250 Permission is granted to copy and distribute translations of this manual
251 into another language, under the above conditions for modified versions.
252
253 @end titlepage
254 @page
255
256 @end tex
257
258
259 @node Top
260 @top The Gnus Newsreader
261
262 @ifinfo
263
264 You can read news (and mail) from within Emacs by using Gnus.  The news
265 can be gotten by any nefarious means you can think of---@sc{nntp}, local
266 spool or your mbox file.  All at the same time, if you want to push your
267 luck.
268
269 @end ifinfo
270
271 @iftex
272
273 @iflatex
274 \thispagestyle{empty}
275 @end iflatex
276
277 Gnus is the advanced, self-documenting, customizable, extensible
278 unreal-time newsreader for GNU Emacs.  
279
280 Oops.  That sounds oddly familiar, so let's start over again to avoid
281 being accused of plagiarism:
282
283 Gnus is a message-reading laboratory.  It will let you look at just
284 about anything as if it were a newsgroup.  You can read mail with it,
285 you can browse directories with it, you can @code{ftp} with it---you can
286 even read news with it!
287
288 Gnus tries to empower people who read news the same way Emacs empowers
289 people who edit text.  Gnus sets no limits to what the user should be
290 allowed to do.  Users are encouraged to extend Gnus to make it behave
291 like they want it to behave.  A program should not control people;
292 people should be empowered to do what they want by using (or abusing)
293 the program.
294
295 @end iftex
296
297
298 @menu
299 * Starting Up::           Finding news can be a pain.
300 * The Group Buffer::      Selecting, subscribing and killing groups.
301 * The Summary Buffer::    Reading, saving and posting articles.
302 * The Article Buffer::    Displaying and handling articles.
303 * Composing Messages::    Information on sending mail and news.
304 * Select Methods::        Gnus reads all messages from various select methods.
305 * Scoring::               Assigning values to articles.
306 * Various::               General purpose settings.
307 * The End::               Farewell and goodbye.
308 * Appendices::            Terminology, Emacs intro, FAQ, History, Internals.
309 * Index::                 Variable, function and concept index.
310 * Key Index::             Key Index.
311 @end menu
312
313
314 @node Starting Up
315 @chapter Starting Gnus
316 @cindex starting up
317
318 @kindex M-x gnus
319 @findex gnus
320 If your system administrator has set things up properly, starting Gnus
321 and reading news is extremely easy---you just type @kbd{M-x gnus} in
322 your Emacs. 
323
324 @findex gnus-other-frame
325 @kindex M-x gnus-other-frame
326 If you want to start Gnus in a different frame, you can use the command
327 @kbd{M-x gnus-other-frame} instead.
328
329 If things do not go smoothly at startup, you have to twiddle some
330 variables. 
331
332 @menu
333 * Finding the News::    Choosing a method for getting news.
334 * The First Time::      What does Gnus do the first time you start it?
335 * The Server is Down::  How can I read my mail then?
336 * Slave Gnusii::        You can have more than one Gnus active at a time.
337 * Fetching a Group::    Starting Gnus just to read a group.
338 * New Groups::          What is Gnus supposed to do with new groups?
339 * Startup Files::       Those pesky startup files---@file{.newsrc}.
340 * Auto Save::           Recovering from a crash.
341 * The Active File::     Reading the active file over a slow line Takes Time.
342 * Startup Variables::   Other variables you might change.
343 @end menu
344
345
346 @node Finding the News
347 @section Finding the News
348
349 @vindex gnus-select-method
350 @c @head
351 The @code{gnus-select-method} variable says where Gnus should look for
352 news.  This variable should be a list where the first element says
353 @dfn{how} and the second element says @dfn{where}.  This method is your
354 native method.  All groups that are not fetched with this method are
355 foreign groups.
356
357 For instance, if the @samp{news.somewhere.edu} @sc{nntp} server is where
358 you want to get your daily dosage of news from, you'd say:
359
360 @lisp
361 (setq gnus-select-method '(nntp "news.somewhere.edu"))
362 @end lisp
363
364 If you want to read directly from the local spool, say:
365
366 @lisp
367 (setq gnus-select-method '(nnspool ""))
368 @end lisp
369
370 If you can use a local spool, you probably should, as it will almost
371 certainly be much faster.
372
373 @vindex gnus-nntpserver-file
374 @cindex NNTPSERVER
375 @cindex @sc{nntp} server
376 If this variable is not set, Gnus will take a look at the
377 @code{NNTPSERVER} environment variable.  If that variable isn't set,
378 Gnus will see whether @code{gnus-nntpserver-file}
379 (@file{/etc/nntpserver} by default) has any opinions on the matter.  If
380 that fails as well, Gnus will will try to use the machine that is
381 running Emacs as an @sc{nntp} server.  That's a long-shot, though.
382
383 @vindex gnus-nntp-server
384 If @code{gnus-nntp-server} is set, this variable will override
385 @code{gnus-select-method}.  You should therefore set
386 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
387
388 @vindex gnus-secondary-servers
389 You can also make Gnus prompt you interactively for the name of an
390 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
391 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
392 in the @code{gnus-secondary-servers} list (if any).  You can also just
393 type in the name of any server you feel like visiting.
394
395 @findex gnus-group-browse-foreign-server
396 @kindex B (Group)
397 However, if you use one @sc{nntp} server regularly and are just
398 interested in a couple of groups from a different server, you would be
399 better served by using the @kbd{B} command in the group buffer.  It will
400 let you have a look at what groups are available, and you can subscribe
401 to any of the groups you want to.  This also makes @file{.newsrc}
402 maintenance much tidier.  @xref{Foreign Groups}.
403
404 @vindex gnus-secondary-select-methods
405 @c @head
406 A slightly different approach to foreign groups is to set the
407 @code{gnus-secondary-select-methods} variable.  The select methods
408 listed in this variable are in many ways just as native as the
409 @code{gnus-select-method} server.  They will also be queried for active
410 files during startup (if that's required), and new newsgroups that
411 appear on these servers will be subscribed (or not) just as native
412 groups are.
413
414 For instance, if you use the @code{nnmbox} backend to read your mail, you
415 would typically set this variable to
416
417 @lisp
418 (setq gnus-secondary-select-methods '((nnmbox "")))
419 @end lisp
420
421
422 @node The First Time
423 @section The First Time
424 @cindex first time usage
425
426 If no startup files exist, Gnus will try to determine what groups should
427 be subscribed by default.
428
429 @vindex gnus-default-subscribed-newsgroups
430 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
431 will subscribe you to just those groups in that list, leaving the rest
432 killed.  Your system administrator should have set this variable to
433 something useful.
434
435 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
436 picked groups (i.e., @samp{*.newusers}).  (@dfn{Arbitrary} is here
437 defined as @dfn{whatever Lars thinks you should read}.)
438
439 You'll also be subscribed to the Gnus documentation group, which should
440 help you with most common problems.  
441
442 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
443 use the normal functions for handling new groups, and not do anything
444 special.
445
446
447 @node The Server is Down
448 @section The Server is Down
449 @cindex server errors
450
451 If the default server is down, Gnus will understandably have some
452 problems starting.  However, if you have some mail groups in addition to
453 the news groups, you may want to start Gnus anyway.
454
455 Gnus, being the trusting sort of program, will ask whether to proceed
456 without a native select method if that server can't be contacted.  This
457 will happen whether the server doesn't actually exist (i.e., you have
458 given the wrong address) or the server has just momentarily taken ill
459 for some reason or other.  If you decide to continue and have no foreign
460 groups, you'll find it difficult to actually do anything in the group
461 buffer.  But, hey, that's your problem.  Blllrph!
462
463 @findex gnus-no-server
464 @c @head
465 If you know that the server is definitely down, or you just want to read
466 your mail without bothering with the server at all, you can use the
467 @code{gnus-no-server} command to start Gnus.  That might come in handy
468 if you're in a hurry as well.
469
470
471 @node Slave Gnusii
472 @section Slave Gnusiï
473 @cindex slave
474
475 You might want to run more than one Emacs with more than one Gnus at the
476 same time.  If you are using different @file{.newsrc} files (eg., if you
477 are using the two different Gnusiï to read from two different servers),
478 that is no problem whatsoever.  You just do it.
479
480 The problem appears when you want to run two Gnusiï that use the same
481 @code{.newsrc} file.
482
483 To work around that problem some, we here at the Think-Tank at the Gnus
484 Towers have come up with a new concept: @dfn{Masters} and
485 @dfn{servants}.  (We have applied for a patent on this concept, and have
486 taken out a copyright on those words.  If you wish to use those words in
487 conjunction with each other, you have to send $1 per usage instance to
488 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
489 Applications}) will be much more expensive, of course.)
490
491 Anyways, you start one Gnus up the normal way with @kbd{M-x gnus} (or
492 however you do it).  Each subsequent slave Gnusiï should be started with
493 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
494 files, but instead save @dfn{slave files} that contains information only
495 on what groups have been read in the slave session.  When a master Gnus
496 starts, it will read (and delete) these slave files, incorporating all
497 information from them.  (The slave files will be read in the sequence
498 they were created, so the latest changes will have precedence.)
499
500 Information from the slave files has, of course, precedence over the
501 information in the normal (i. e., master) @code{.newsrc} file.
502
503
504 @node Fetching a Group
505 @section Fetching a Group
506
507 @findex gnus-fetch-group
508 It it sometime convenient to be able to just say ``I want to read this
509 group and I don't care whether Gnus has been started or not''.  This is
510 perhaps more useful for people who write code than for users, but the
511 command @code{gnus-fetch-group} provides this functionality in any case.
512 It takes the group name as a parameter.
513
514
515 @node New Groups
516 @section New Groups
517 @cindex new groups
518
519 @vindex gnus-subscribe-newsgroup-method
520 What Gnus does when it encounters a new group is determined by the
521 @code{gnus-subscribe-newsgroup-method} variable.
522
523 This variable should contain a function.  Some handy pre-fab values
524 are:
525
526 @table @code
527
528 @item gnus-subscribe-zombies
529 @vindex gnus-subscribe-zombies
530 Make all new groups zombies.  You can browse the zombies later (with
531 @kbd{A z}) and either kill them all off properly, or subscribe to them.
532 This is the default.
533
534 @item gnus-subscribe-randomly
535 @vindex gnus-subscribe-randomly
536 Subscribe all new groups randomly.
537
538 @item gnus-subscribe-alphabetically
539 @vindex gnus-subscribe-alphabetically
540 Subscribe all new groups alphabetically.
541
542 @item gnus-subscribe-hierarchically
543 @vindex gnus-subscribe-hierarchically
544 Subscribe all new groups hierarchically.
545
546 @item gnus-subscribe-interactively
547 @vindex gnus-subscribe-interactively
548 Subscribe new groups interactively.  This means that Gnus will ask
549 you about @strong{all} new groups.
550
551 @item gnus-subscribe-killed
552 @vindex gnus-subscribe-killed
553 Kill all new groups.
554
555 @end table
556
557 @vindex gnus-subscribe-hierarchical-interactive
558 A closely related variable is
559 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
560 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
561 hierarchical fashion whether to subscribe to new groups or not.  Gnus
562 will ask you for each sub-hierarchy whether you want to descend the
563 hierarchy or not.  
564
565 One common mistake is to set the variable a few paragraphs above to
566 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
567 will not work.  This is ga-ga.  So don't do it.
568
569 A nice and portable way to control which new newsgroups should be
570 subscribed (or ignored) is to put an @dfn{options} line at the start of
571 the @file{.newsrc} file.  Here's an example:
572
573 @example
574 options -n !alt.all !rec.all sci.all
575 @end example
576
577 @vindex gnus-subscribe-options-newsgroup-method
578 This line obviously belongs to a serious-minded intellectual scientific
579 person (or she may just be plain old boring), because it says that all
580 groups that have names beginning with @samp{alt} and @samp{rec} should
581 be ignored, and all groups with names beginning with @samp{sci} should
582 be subscribed.  Gnus will not use the normal subscription method for
583 subscribing these groups.
584 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
585 variable defaults to @code{gnus-subscribe-alphabetically}.
586
587 @vindex gnus-options-not-subscribe
588 @vindex gnus-options-subscribe
589 If you don't want to mess with your @file{.newsrc} file, you can just
590 set the two variables @code{gnus-options-subscribe} and
591 @code{gnus-options-not-subscribe}.  These two variables do exactly the
592 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
593 and if the the new group matches the former, it will be unconditionally
594 subscribed, and if it matches the latter, it will be ignored.
595
596 @vindex gnus-auto-subscribed-groups
597 Yet another variable that meddles here is
598 @code{gnus-auto-subscribed-groups}.  It works exactly like
599 @code{gnus-options-subscribe}, and is therefore really superfluous, but I
600 thought it would be nice to have two of these.  This variable is more
601 meant for setting some ground rules, while the other variable is used
602 more for user fiddling.  By default this variable makes all new groups
603 that come from mail backends (@code{nnml}, @code{nnbabyl},
604 @code{nnfolder}, @code{nnmbox}, and @code{nnmh}) subscribed.  If you
605 don't like that, just set this variable to @code{nil}.
606
607 @vindex gnus-check-new-newsgroups
608 If you are satisfied that you really never want to see any new groups,
609 you could set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
610 also save you some time at startup.  Even if this variable is
611 @code{nil}, you can always subscribe to the new groups just by pressing
612 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
613 is @code{t} by default.
614
615 Gnus normally determines whether a group is new or not by comparing the
616 list of groups from the active file(s) with the lists of subscribed and
617 dead groups.  This isn't a particularly fast method.  If
618 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
619 server for new groups since the last time.  This is both faster &
620 cheaper.  This also means that you can get rid of the list of killed
621 groups altogether, so you may set @code{gnus-save-killed-list} to
622 @code{nil}, which will save time both at startup, at exit, and all over.
623 Saves disk space, too.  Why isn't this the default, then?
624 Unfortunately, not all servers support this command. 
625
626 I bet I know what you're thinking now: How do I find out whether my
627 server supports @code{ask-server}?  No?  Good, because I don't have a
628 fail-safe answer.  I would suggest just setting this variable to
629 @code{ask-server} and see whether any new groups appear within the next
630 few days.  If any do, then it works.  If any don't, then it doesn't
631 work.  I could write a function to make Gnus guess whether the server
632 supports @code{ask-server}, but it would just be a guess.  So I won't.
633 You could @code{telnet} to the server and say @code{HELP} and see
634 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
635 it does, then it might work.  (But there are servers that lists
636 @samp{NEWGROUPS} without supporting the function properly.)
637
638 This variable can also be a list of select methods.  If so, Gnus will
639 issue an @code{ask-server} command to each of the select methods, and
640 subscribe them (or not) using the normal methods.  This might be handy
641 if you are monitoring a few servers for new groups.  A side effect is
642 that startup will take much longer, so you can meditate while waiting.
643 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
644
645
646 @node Startup Files
647 @section Startup Files
648 @cindex startup files
649 @cindex .newsrc
650
651 Now, you all know about the @file{.newsrc} file.  All subscription
652 information is traditionally stored in this file.
653
654 Things got a bit more complicated with @sc{gnus}.  In addition to
655 keeping the @file{.newsrc} file updated, it also used a file called
656 @file{.newsrc.el} for storing all the information that didn't fit into
657 the @file{.newsrc} file.  (Actually, it also duplicated everything in
658 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
659 files was the most recently saved, which enabled people to swap between
660 @sc{gnus} and other newsreaders.
661
662 That was kinda silly, so Gnus went one better: In addition to the
663 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
664 @file{.newsrc.eld}.  It will read whichever of these files that are most
665 recent, but it will never write a @file{.newsrc.el} file.
666
667 @vindex gnus-save-newsrc-file
668 You can turn off writing the @file{.newsrc} file by setting
669 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
670 the file and save some space, as well as making exit from Gnus faster.
671 However, this will make it impossible to use other newsreaders than
672 Gnus.  But hey, who would want to, right?
673
674 @vindex gnus-save-killed-list
675 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
676 will not save the list of killed groups to the startup file.  This will
677 save both time (when starting and quitting) and space (on disk).  It
678 will also means that Gnus has no record of what groups are new or old,
679 so the automatic new groups subscription methods become meaningless.
680 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
681 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
682 Groups}).
683
684 @vindex gnus-startup-file
685 The @code{gnus-startup-file} variable says where the startup files are.
686 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
687 file being whatever that one is with a @samp{.eld} appended.
688
689 @vindex gnus-save-newsrc-hook
690 @vindex gnus-save-quick-newsrc-hook
691 @vindex gnus-save-standard-newsrc-hook
692 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
693 files, while @code{gnus-save-quick-newsrc-hook} is called just before
694 saving the @file{.newsrc.eld} file, and
695 @code{gnus-save-standard-newsrc-hook} is called just before saving the
696 @file{.newsrc} file.  The latter two are commonly used to turn version
697 control on or off.  Version control is off by default when saving the
698 startup files.
699
700
701 @node Auto Save
702 @section Auto Save
703 @cindex dribble file
704 @cindex auto-save
705
706 Whenever you do something that changes the Gnus data (reading articles,
707 catching up, killing/subscribing groups), the change is added to a
708 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
709 Emacs way.  If your Emacs should crash before you have saved the
710 @file{.newsrc} files, all changes you have made can be recovered from
711 this file.
712
713 If Gnus detects this file at startup, it will ask the user whether to
714 read it.  The auto save file is deleted whenever the real startup file is
715 saved.
716
717 @vindex gnus-use-dribble-file
718 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
719 maintain a dribble buffer.  The default is @code{t}.
720
721 @vindex gnus-dribble-directory
722 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
723 this variable is @code{nil}, which it is by default, Gnus will dribble
724 into the directory where the @file{.newsrc} file is located.  (This is
725 normally the user's home directory.)  The dribble file will get the same
726 file permissions as the @code{.newsrc} file.
727
728
729 @node The Active File
730 @section The Active File
731 @cindex active file
732 @cindex ignored groups
733
734 When Gnus starts, or indeed whenever it tries to determine whether new
735 articles have arrived, it reads the active file.  This is a very large
736 file that lists all the active groups and articles on the server.
737
738 @vindex gnus-ignored-newsgroups
739 Before examining the active file, Gnus deletes all lines that match the
740 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
741 any groups with bogus names, but you can use this variable to make Gnus
742 ignore hierarchies you aren't ever interested in.  However, this is not
743 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
744 Groups} for an overview of other variables that can be used instead.
745
746 @c This variable is
747 @c @code{nil} by default, and will slow down active file handling somewhat
748 @c if you set it to anything else.
749
750 @vindex gnus-read-active-file
751 @c @head
752 The active file can be rather Huge, so if you have a slow network, you
753 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
754 reading the active file.  This variable is @code{t} by default.
755
756 Gnus will try to make do by getting information just on the groups that
757 you actually subscribe to.
758
759 Note that if you subscribe to lots and lots of groups, setting this
760 variable to @code{nil} will probably make Gnus slower, not faster.  At
761 present, having this variable @code{nil} will slow Gnus down
762 considerably, unless you read news over a 2400 baud modem.  
763
764 This variable can also have the value @code{some}.  Gnus will then
765 attempt to read active info only on the subscribed groups.  On some
766 servers this is quite fast (on sparkling, brand new INN servers that
767 support the @code{LIST ACTIVE group} command), on others this isn't fast
768 at all.  In any case, @code{some} should be faster than @code{nil}, and
769 is certainly faster than @code{t} over slow lines.
770
771 If this variable is @code{nil}, Gnus will ask for group info in total
772 lock-step, which isn't very fast.  If it is @code{some} and you use an
773 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
774 read all the replies in one swoop.  This will normally result in better
775 performance, but if the server does not support the aforementioned
776 @code{LIST ACTIVE group} command, this isn't very nice to the server.
777
778 In any case, if you use @code{some} or @code{nil}, you should definitely
779 kill all groups that you aren't interested in to speed things up.
780
781
782 @node Startup Variables
783 @section Startup Variables
784
785 @table @code
786
787 @item gnus-load-hook
788 @vindex gnus-load-hook
789 A hook that is run while Gnus is being loaded.  Note that this hook will
790 normally be run just once in each Emacs session, no matter how many
791 times you start Gnus.
792
793 @item gnus-startup-hook
794 @vindex gnus-startup-hook
795 A hook that is run after starting up Gnus successfully.
796
797 @item gnus-check-bogus-newsgroups
798 @vindex gnus-check-bogus-newsgroups
799 If non-@code{nil}, Gnus will check for and delete all bogus groups at
800 startup.  A @dfn{bogus group} is a group that you have in your
801 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
802 bogus groups can take quite a while, so to save time and resources it's
803 best to leave this option off, and do the checking for bogus groups once
804 in a while from the group buffer instead (@pxref{Group Maintenance}).
805
806 @item gnus-inhibit-startup-message
807 @vindex gnus-inhibit-startup-message
808 If non-@code{nil}, the startup message won't be displayed.  That way,
809 your boss might not notice that you are reading news instead of doing
810 your job as easily.
811
812 @item gnus-no-groups-message
813 @vindex gnus-no-groups-message
814 Message displayed by Gnus when no groups are available.
815 @end table
816
817
818 @node The Group Buffer
819 @chapter The Group Buffer
820 @cindex group buffer
821
822 The @dfn{group buffer} lists all (or parts) of the available groups.  It
823 is the first buffer shown when Gnus starts, and will never be killed as
824 long as Gnus is active.
825
826 @menu
827 * Group Buffer Format::    Information listed and how you can change it.
828 * Group Maneuvering::      Commands for moving in the group buffer.
829 * Selecting a Group::      Actually reading news.
830 * Subscription Commands::  Unsubscribing, killing, subscribing.
831 * Group Levels::           Levels? What are those, then?
832 * Group Score::            A mechanism for finding out what groups you like.
833 * Marking Groups::         You can mark groups for later processing.
834 * Foreign Groups::         Creating and editing groups.
835 * Group Parameters::       Each group may have different parameters set.
836 * Listing Groups::         Gnus can list various subsets of the groups.
837 * Sorting Groups::         Re-arrange the group order.
838 * Group Maintenance::      Maintaining a tidy @file{.newsrc} file.
839 * Browse Foreign Server::  You can browse a server.  See what it has to offer.
840 * Exiting Gnus::           Stop reading news and get some work done.
841 * Group Topics::           A folding group mode divided into topics.
842 * Misc Group Stuff::       Other stuff that you can to do.
843 @end menu
844
845
846 @node Group Buffer Format
847 @section Group Buffer Format
848 @cindex group buffer format
849
850 @menu 
851 * Group Line Specification::       Deciding how the group buffer is to look.
852 * Group Modeline Specification::   The group buffer modeline.
853 * Group Highlighting::             Having nice colors in the group buffer.
854 @end menu
855
856
857 @node Group Line Specification
858 @subsection Group Line Specification
859
860 The default format of the group buffer is nice and dull, but you can
861 make it as exciting and ugly as you feel like.
862
863 Here's a couple of example group lines:
864
865 @example
866      25: news.announce.newusers
867  *    0: alt.fan.andrea-dworkin
868 @end example
869
870 Quite simple, huh?
871
872 You can see that there are 25 unread articles in
873 @samp{news.announce.newusers}.  There are no unread articles, but some
874 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
875 asterisk at the beginning of the line?)
876
877 @vindex gnus-group-line-format
878 You can change that format to whatever you want by fiddling with the
879 @code{gnus-group-line-format} variable.  This variable works along the
880 lines of a @code{format} specification, which is pretty much the same as
881 a @code{printf} specifications, for those of you who use (feh!) C.
882 @xref{Formatting Variables}. 
883
884 The default value that produced those lines above is 
885 @samp{%M%S%5y: %(%g%)\n}.
886
887 There should always be a colon on the line; the cursor always moves to
888 the colon after performing an operation.  Nothing else is required---not
889 even the group name.  All displayed text is just window dressing, and is
890 never examined by Gnus.  Gnus stores all real information it needs using
891 text properties.
892
893 (Note that if you make a really strange, wonderful, spreadsheet-like
894 layout, everybody will believe you are hard at work with the accounting
895 instead of wasting time reading news.)
896
897 Here's a list of all available format characters:
898
899 @table @samp
900
901 @item M    
902 Only marked articles.
903
904 @item S
905 Whether the group is subscribed.
906
907 @item L    
908 Level of subscribedness.
909
910 @item N
911 Number of unread articles.
912
913 @item I
914 Number of dormant articles.
915
916 @item T
917 Number of ticked articles.
918
919 @item R
920 Number of read articles.
921
922 @item t
923 Total number of articles.
924
925 @item y
926 Number of unread, unticked, non-dormant articles.
927
928 @item i
929 Number of ticked and dormant articles.
930
931 @item g
932 Full group name.
933
934 @item G
935 Group name.
936
937 @item D
938 Newsgroup description.
939
940 @item o
941 @samp{m} if moderated.
942
943 @item O
944 @samp{(m)} if moderated.
945
946 @item s
947 Select method.
948
949 @item n
950 Select from where.
951
952 @item z
953 A string that looks like @samp{<%s:%n>} if a foreign select method is
954 used.
955
956 @item P
957 Indentation based on the level of the topic (@pxref{Group Topics}). 
958
959 @item c
960 @vindex gnus-group-uncollapsed-levels
961 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
962 variable says how many levels to leave at the end of the group name.
963 The default is @code{1}.
964
965 @item u
966 User defined specifier.  The next character in the format string should
967 be a letter.  @sc{gnus} will call the function
968 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
969 following @samp{%u}.  The function will be passed the current headers as
970 argument.  The function should return a string, which will be inserted
971 into the buffer just like information from any other specifier.
972 @end table
973
974 @cindex *
975 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
976 if no info is available---for instance, if it is a non-activated foreign
977 group, or a bogus (or semi-bogus) native group.
978
979
980 @node Group Modeline Specification
981 @subsection Group Modeline Specification
982
983 @vindex gnus-group-mode-line-format
984 The mode line can be changed by setting
985 (@code{gnus-group-mode-line-format}).  It doesn't understand that many
986 format specifiers:
987
988 @table @samp
989 @item S
990 The native news server.
991 @item M
992 The native select method.
993 @end table
994
995
996 @node Group Highlighting
997 @subsection Group Highlighting
998
999 @vindex gnus-group-highlight
1000 Highlighting in the group buffer is controlled by the
1001 @code{gnus-group-highlight} variable.  This is an alist with elements
1002 that look like @var{(form . face)}.  If @var{form} evaluates to
1003 something non-@code{nil}, the @var{face} will be used on the line.
1004
1005 Here's an example value for this variable that might look nice if the
1006 background is dark:
1007
1008 @lisp
1009 (setq gnus-group-highlight
1010     `(((> unread 200) . 
1011        ,(custom-face-lookup "Red" nil nil t nil nil))
1012       ((and (< level 3) (zerop unread)) . 
1013        ,(custom-face-lookup "SeaGreen" nil nil t nil nil))
1014       ((< level 3) . 
1015        ,(custom-face-lookup "SpringGreen" nil nil t nil nil))
1016       ((zerop unread) . 
1017        ,(custom-face-lookup "SteelBlue" nil nil t nil nil))
1018       (t . 
1019        ,(custom-face-lookup "SkyBlue" nil nil t nil nil))
1020       ))
1021 @end lisp
1022
1023 Variables that are dynamically bound when the forms are evaluated
1024 include:
1025
1026 @table @code
1027 @item group
1028 The group name.
1029 @item unread
1030 The number of unread articles in the group.
1031 @item method
1032 The select method.
1033 @item mailp
1034 Whether the group is a mail group.
1035 @item level
1036 The level of the group.
1037 @item score
1038 The score of the group.
1039 @item ticked 
1040 The number of ticked articles in the group.
1041 @item topic
1042 When using the topic minor mode, this variable is bound to the current
1043 topic being inserted.
1044 @end table
1045
1046 When the forms are @code{eval}ed, point is at the beginning of the line
1047 of the group in question, so you can use many of the normal Gnus
1048 functions for snarfing info on the group.
1049
1050 @vindex gnus-group-update-hook
1051 @findex gnus-group-highlight-line
1052 @code{gnus-group-update-hook} is called when a group line is changed.
1053 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
1054 calls @code{gnus-group-highlight-line} by default.
1055
1056
1057 @node Group Maneuvering
1058 @section Group Maneuvering
1059 @cindex group movement
1060
1061 All movement commands understand the numeric prefix and will behave as
1062 expected, hopefully. 
1063
1064 @table @kbd
1065
1066 @item n
1067 @kindex n (Group)
1068 @findex gnus-group-next-unread-group
1069 Go to the next group that has unread articles
1070 (@code{gnus-group-next-unread-group}).
1071
1072 @item p
1073
1074 @itemx DEL
1075 @kindex DEL (Group)
1076 @kindex p (Group)
1077 @findex gnus-group-prev-unread-group
1078 Go to the previous group group that has unread articles
1079 (@code{gnus-group-prev-unread-group}).
1080
1081 @item N
1082 @kindex N (Group)
1083 @findex gnus-group-next-group
1084 Go to the next group (@code{gnus-group-next-group}).
1085
1086 @item P
1087 @kindex P (Group)
1088 @findex gnus-group-prev-group
1089 Go to the previous group (@code{gnus-group-prev-group}).
1090
1091 @item M-p
1092 @kindex M-p (Group)
1093 @findex gnus-group-next-unread-group-same-level
1094 Go to the next unread group on the same level (or lower)
1095 (@code{gnus-group-next-unread-group-same-level}). 
1096
1097 @item M-n
1098 @kindex M-n (Group)
1099 @findex gnus-group-prev-unread-group-same-level
1100 Go to the previous unread group on the same level (or lower)
1101 (@code{gnus-group-prev-unread-group-same-level}). 
1102 @end table
1103
1104 Three commands for jumping to groups:
1105
1106 @table @kbd
1107
1108 @item j
1109 @kindex j (Group)
1110 @findex gnus-group-jump-to-group
1111 Jump to a group (and make it visible if it isn't already)
1112 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
1113 like living groups.
1114
1115 @item ,
1116 @kindex , (Group)
1117 @findex gnus-group-best-unread-group
1118 Jump to the unread group with the lowest level
1119 (@code{gnus-group-best-unread-group}). 
1120
1121 @item .
1122 @kindex . (Group)
1123 @findex gnus-group-first-unread-group
1124 Jump to the first group with unread articles
1125 (@code{gnus-group-first-unread-group}).  
1126 @end table
1127
1128 @vindex gnus-group-goto-unread
1129 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
1130 commands will move to the next group, not the next unread group.  Even
1131 the commands that say they move to the next unread group.  The default
1132 is @code{t}.
1133
1134
1135 @node Selecting a Group
1136 @section Selecting a Group
1137 @cindex group selection
1138
1139 @table @kbd
1140
1141 @item SPACE
1142 @kindex SPACE (Group)
1143 @findex gnus-group-read-group
1144 Select the current group, switch to the summary buffer and display the
1145 first unread article (@code{gnus-group-read-group}).  If there are no
1146 unread articles in the group, or if you give a non-numerical prefix to
1147 this command, Gnus will offer to fetch all the old articles in this
1148 group from the server.  If you give a numerical prefix @var{N}, Gnus
1149 will fetch @var{N} number of articles.  If @var{N} is positive, fetch
1150 the @var{N} newest articles, if @var{N} is negative, fetch the
1151 @var{abs(N)} oldest articles.
1152
1153 @item RET
1154 @kindex RET (Group)
1155 @findex gnus-group-select-group
1156 Select the current group and switch to the summary buffer
1157 (@code{gnus-group-select-group}).  Takes the same arguments as
1158 @code{gnus-group-read-group}---the only difference is that this command
1159 does not display the first unread article automatically upon group
1160 entry. 
1161
1162 @item M-RET
1163 @kindex M-RET (Group)
1164 @findex gnus-group-quick-select-group
1165 This does the same as the command above, but tries to do it with the
1166 minimum amount off fuzz (@code{gnus-group-quick-select-group}).  No
1167 scoring/killing will be performed, there will be no highlights and no
1168 expunging.  This might be useful if you're in a real hurry and have to
1169 enter some humongous group.
1170
1171 @item M-SPACE
1172 @kindex M-RET (Group)
1173 @findex gnus-group-visible-select-group
1174 This is yet one more command that does the same as the one above, but
1175 this one does it without expunging and hiding dormants
1176 (@code{gnus-group-visible-select-group}).  
1177
1178 @item c
1179 @kindex c (Group)
1180 @findex gnus-group-catchup-current
1181 @vindex gnus-group-catchup-group-hook
1182 Mark all unticked articles in this group as read
1183 (@code{gnus-group-catchup-current}).
1184 @code{gnus-group-catchup-group-hook} is when catching up a group from
1185 the group buffer.
1186
1187 @item C
1188 @kindex C (Group)
1189 @findex gnus-group-catchup-current-all
1190 Mark all articles in this group, even the ticked ones, as read
1191 (@code{gnus-group-catchup-current-all}).   
1192 @end table
1193
1194 @vindex gnus-large-newsgroup
1195 The @code{gnus-large-newsgroup} variable says what Gnus should consider
1196 to be a big group.  This is 200 by default.  If the group has more
1197 unread articles than this, Gnus will query the user before entering the
1198 group.  The user can then specify how many articles should be fetched
1199 from the server.  If the user specifies a negative number (@code{-n}),
1200 the @code{n} oldest articles will be fetched.  If it is positive, the
1201 @code{n} articles that have arrived most recently will be fetched.
1202
1203 @vindex gnus-select-group-hook
1204 @vindex gnus-auto-select-first
1205 @code{gnus-auto-select-first} control whether any articles are selected
1206 automatically when entering a group.  
1207
1208 @table @code
1209
1210 @item nil
1211 Don't select any articles when entering the group.  Just display the
1212 full summary buffer.
1213
1214 @item t
1215 Select the first unread article when entering the group.  
1216
1217 @item best
1218 Select the most high-scored article in the group when entering the
1219 group. 
1220 @end table
1221         
1222 If you want to prevent automatic selection in some group (say, in a
1223 binary group with Huge articles) you can set this variable to @code{nil}
1224 in @code{gnus-select-group-hook}, which is called when a group is
1225 selected.
1226
1227
1228 @node Subscription Commands
1229 @section Subscription Commands
1230 @cindex subscribing
1231
1232 @table @kbd
1233
1234 @item S t
1235 @itemx u
1236 @kindex S t (Group)
1237 @kindex u (Group)
1238 @findex gnus-group-unsubscribe-current-group
1239 Toggle subscription to the current group
1240 (@code{gnus-group-unsubscribe-current-group}).  
1241
1242 @item S s
1243 @itemx U
1244 @kindex S s (Group)
1245 @kindex U (Group)
1246 @findex gnus-group-unsubscribe-group
1247 Prompt for a group to subscribe, and then subscribe it.  If it was
1248 subscribed already, unsubscribe it instead
1249 (@code{gnus-group-unsubscribe-group}).
1250
1251 @item S k
1252 @itemx C-k
1253 @kindex S k (Group)
1254 @kindex C-k (Group)
1255 @findex gnus-group-kill-group
1256 Kill the current group (@code{gnus-group-kill-group}).
1257
1258 @item S y
1259 @itemx C-y
1260 @kindex S y (Group)
1261 @kindex C-y (Group)
1262 @findex gnus-group-yank-group
1263 Yank the last killed group (@code{gnus-group-yank-group}).
1264
1265 @item C-x C-t
1266 @kindex C-x C-t (Group)
1267 @findex gnus-group-transpose-groups
1268 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
1269 really a subscription command, but you can use it instead of a
1270 kill-and-yank sequence sometimes.
1271
1272 @item S w
1273 @itemx C-w
1274 @kindex S w (Group)
1275 @kindex C-w (Group)
1276 @findex gnus-group-kill-region
1277 Kill all groups in the region (@code{gnus-group-kill-region}). 
1278
1279 @item S z
1280 @kindex S z (Group)
1281 @findex gnus-group-kill-all-zombies
1282 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
1283
1284 @item S C-k
1285 @kindex S C-k (Group)
1286 @findex gnus-group-kill-level
1287 Kill all groups on a certain level (@code{gnus-group-kill-level}).
1288 These groups can't be yanked back after killing, so this command should
1289 be used with some caution.  The only thing where this command comes in
1290 really handy is when you have a @file{.newsrc} with lots of unsubscribed
1291 groups that you want to get rid off.  @kbd{S C-k} on level @code{7} will
1292 kill off all unsubscribed groups that do not have message numbers in the
1293 @file{.newsrc} file.  
1294
1295 @end table
1296
1297 Also @pxref{Group Levels}.
1298
1299
1300 @node Group Levels
1301 @section Group Levels
1302 @cindex group level
1303
1304 All groups have a level of @dfn{subscribedness}.  For instance, if a
1305 group is on level 2, it is more subscribed than a group on level 5.  You
1306 can ask Gnus to just list groups on a given level or lower
1307 (@pxref{Listing Groups}), or to just check for new articles in groups on
1308 a given level or lower (@pxref{Scanning New Messages}).
1309
1310 @table @kbd
1311
1312 @item S l
1313 @kindex S l (Group)
1314 @findex gnus-group-set-current-level
1315 Set the level of the current group.  If a numeric prefix is given, the
1316 next @var{n} groups will have their levels set.  The user will be
1317 prompted for a level.
1318 @end table
1319
1320 @vindex gnus-level-killed
1321 @vindex gnus-level-zombie
1322 @vindex gnus-level-unsubscribed
1323 @vindex gnus-level-subscribed
1324 Gnus considers groups on between levels 1 and
1325 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
1326 @code{gnus-level-subscribed} (exclusive) and
1327 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
1328 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
1329 (default 8) and @code{gnus-level-killed} to be killed (default 9),
1330 completely dead.  Gnus treats subscribed and unsubscribed groups exactly
1331 the same, but zombie and killed groups have no information on what
1332 articles you have read, etc, stored.  This distinction between dead and
1333 living groups isn't done because it is nice or clever, it is done purely
1334 for reasons of efficiency.
1335
1336 It is recommended that you keep all your mail groups (if any) on quite
1337 low levels (eg. 1 or 2).
1338
1339 If you want to play with the level variables, you should show some care.
1340 Set them once, and don't touch them ever again.  Better yet, don't touch
1341 them at all unless you know exactly what you're doing.
1342
1343 @vindex gnus-level-default-unsubscribed
1344 @vindex gnus-level-default-subscribed
1345 Two closely related variables are @code{gnus-level-default-subscribed}
1346 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
1347 which are the levels that new groups will be put on if they are
1348 (un)subscribed.  These two variables should, of course, be inside the
1349 relevant legal ranges.
1350
1351 @vindex gnus-keep-same-level
1352 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
1353 will only move to groups that are of the same level (or lower).  In
1354 particular, going from the last article in one group to the next group
1355 will go to the next group of the same level (or lower).  This might be
1356 handy if you want to read the most important groups before you read the
1357 rest.
1358
1359 @vindex gnus-group-default-list-level
1360 All groups with a level less than or equal to
1361 @code{gnus-group-default-list-level} will be listed in the group buffer
1362 by default.
1363
1364 @vindex gnus-group-list-inactive-groups
1365 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
1366 groups will be listed along with the unread groups.  This variable is
1367 @code{t} by default.  If it is @code{nil}, inactive groups won't be
1368 listed. 
1369
1370 @vindex gnus-group-use-permanent-levels
1371 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
1372 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
1373 use this level as the ``work'' level.
1374
1375 @vindex gnus-activate-level
1376 Gnus will normally just activate groups that are on level
1377 @code{gnus-activate-level} or less.  If you don't want to activate
1378 unsubscribed groups, for instance, you might set this variable to
1379 @code{5}. 
1380
1381
1382 @node Group Score
1383 @section Group Score
1384 @cindex group score
1385
1386 You would normally keep important groups on high levels, but that scheme
1387 is somewhat restrictive.  Don't you wish you could have Gnus sort the
1388 group buffer according to how often you read groups, perhaps?  Within
1389 reason?  
1390
1391 This is what @dfn{group score} is for.  You can assign a score to each
1392 group.  You can then sort the group buffer based on this score.
1393 Alternatively, you can sort on score and then level.  (Taken together,
1394 the level and the score is called the @dfn{rank} of the group.  A group
1395 that is on level 4 and has a score of 1 has a higher rank than a group
1396 on level 5 that has a score of 300.  (The level is the most significant
1397 part and the score is the least significant part.)
1398
1399 @findex gnus-summary-bubble-group
1400 If you want groups you read often to get higher scores than groups you
1401 read seldom you can add the @code{gnus-summary-bubble-group} function to
1402 the @code{gnus-summary-exit-hook} hook.  This will result (after
1403 sorting) in a bubbling sort of action.  If you want to see that in
1404 action after each summary exit, you can add
1405 @code{gnus-group-sort-groups-by-rank} or
1406 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
1407 slow things down somewhat.
1408
1409
1410 @node Marking Groups
1411 @section Marking Groups
1412 @cindex marking groups
1413
1414 If you want to perform some command on several groups, and they appear
1415 subsequently in the group buffer, you would normally just give a
1416 numerical prefix to the command.  Most group commands will then do your
1417 bidding on those groups.
1418
1419 However, if the groups are not in sequential order, you can still
1420 perform a command on several groups.  You simply mark the groups first
1421 with the process mark and then execute the command.
1422
1423 @table @kbd
1424
1425 @item #
1426 @kindex # (Group)
1427 @itemx M m
1428 @kindex M m (Group)
1429 @findex gnus-group-mark-group
1430 Set the mark on the current group (@code{gnus-group-mark-group}). 
1431
1432 @item M-#
1433 @kindex M-# (Group)
1434 @itemx M u
1435 @kindex M u (Group)
1436 @findex gnus-group-unmark-group
1437 Remove the mark from the current group
1438 (@code{gnus-group-unmark-group}). 
1439
1440 @item M U
1441 @kindex M U (Group)
1442 @findex gnus-group-unmark-all-groups
1443 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}). 
1444
1445 @item M w
1446 @kindex M w (Group)
1447 @findex gnus-group-mark-region
1448 Mark all groups between point and mark (@code{gnus-group-mark-region}). 
1449
1450 @item M b
1451 @kindex M b (Group)
1452 @findex gnus-group-mark-buffer
1453 Mark all groups in the buffer (@code{gnus-group-mark-buffer}). 
1454
1455 @item M r
1456 @kindex M r (Group)
1457 @findex gnus-group-mark-regexp
1458 Mark all groups that match some regular expression
1459 (@code{gnus-group-mark-regexp}).  
1460 @end table
1461
1462 Also @pxref{Process/Prefix}.
1463
1464 @findex gnus-group-universal-argument
1465 If you want to execute some command on all groups that have been marked
1466 with the process mark, you can use the @kbd{M-&}
1467 (@code{gnus-group-universal-argument}) command.  It will prompt you for
1468 the command to be executed.
1469
1470
1471 @node Foreign Groups
1472 @section Foreign Groups
1473
1474 Here are some group mode commands for making and editing general foreign
1475 groups, as well as commands to ease the creation of a few
1476 special-purpose groups:
1477
1478 @table @kbd
1479
1480 @item G m
1481 @kindex G m (Group)
1482 @findex gnus-group-make-group
1483 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
1484 for a name, a method and possibly an @dfn{address}.  For an easier way
1485 to subscribe to @sc{nntp} groups, @pxref{Browse Foreign Server}.
1486
1487 @item G r
1488 @kindex G r (Group)
1489 @findex gnus-group-rename-group
1490 Rename the current group to something else
1491 (@code{gnus-group-rename-group}).  This is legal only on some groups --
1492 mail groups mostly.  This command might very well be quite slow on some
1493 backends. 
1494
1495 @item G e
1496 @kindex G e (Group)
1497 @findex gnus-group-edit-group-method
1498 Enter a buffer where you can edit the select method of the current
1499 group (@code{gnus-group-edit-group-method}).
1500
1501 @item G p
1502 @kindex G p (Group)
1503 @findex gnus-group-edit-group-parameters
1504 Enter a buffer where you can edit the group parameters
1505 (@code{gnus-group-edit-group-parameters}). 
1506
1507 @item G E
1508 @kindex G E (Group)
1509 @findex gnus-group-edit-group
1510 Enter a buffer where you can edit the group info
1511 (@code{gnus-group-edit-group}).
1512
1513 @item G d
1514 @kindex G d (Group)
1515 @findex gnus-group-make-directory-group
1516 Make a directory group.  You will be prompted for a directory name
1517 (@code{gnus-group-make-directory-group}).  
1518
1519 @item G h 
1520 @kindex G h (Group)
1521 @findex gnus-group-make-help-group
1522 Make the Gnus help group (@code{gnus-group-make-help-group}).
1523
1524 @item G a
1525 @kindex G a (Group)
1526 @findex gnus-group-make-archive-group
1527 @vindex gnus-group-archive-directory
1528 @vindex gnus-group-recent-archive-directory
1529 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
1530 default a group pointing to the most recent articles will be created
1531 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
1532 group will be created from from @code{gnus-group-archive-directory}.
1533
1534 @item G k
1535 @kindex G k (Group)
1536 @findex gnus-group-make-kiboze-group
1537 Make a kiboze group.  You will be prompted for a name, for a regexp to
1538 match groups to be ``included'' in the kiboze group, and a series of
1539 strings to match on headers (@code{gnus-group-make-kiboze-group}).
1540
1541 @item G D
1542 @kindex G D (Group)
1543 @findex gnus-group-enter-directory
1544 Read an arbitrary directory as if with were a newsgroup with the
1545 @code{nneething} backend (@code{gnus-group-enter-directory}).
1546
1547 @item G f
1548 @kindex G f (Group)
1549 @findex gnus-group-make-doc-group
1550 @cindex ClariNet Briefs
1551 Make a group based on some file or other
1552 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
1553 command, you will be prompted for a file name and a file type.
1554 Currently supported types are @code{babyl}, @code{mbox}, @code{digest},
1555 @code{mmdf}, @code{news}, @code{rnews}, @code{clari-briefs}, and
1556 @code{forward}.  If you run this command without a prefix, Gnus will
1557 guess at the file type.
1558
1559 @item G DEL
1560 @kindex G DEL (Group)
1561 @findex gnus-group-delete-group
1562 This function will delete the current group
1563 (@code{gnus-group-delete-group}).  If given a prefix, this function will
1564 actually delete all the articles in the group, and forcibly remove the
1565 group itself from the face of the Earth.  Use a prefix only if you are
1566 absolutely sure of what you are doing.
1567
1568 @item G V
1569 @kindex G V (Group)
1570 @findex gnus-group-make-empty-virtual
1571 Make a new, fresh, empty @code{nnvirtual} group
1572 (@code{gnus-group-make-empty-virtual}).
1573
1574 @item G v
1575 @kindex G v (Group)
1576 @findex gnus-group-add-to-virtual
1577 Add the current group to an @code{nnvirtual} group
1578 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
1579 @end table
1580
1581 @xref{Select Methods} for more information on the various select
1582 methods. 
1583
1584 @vindex gnus-activate-foreign-newsgroups
1585 If the @code{gnus-activate-foreign-newsgroups} is a positive number,
1586 Gnus will check all foreign groups with this level or lower at startup.
1587 This might take quite a while, especially if you subscribe to lots of
1588 groups from different @sc{nntp} servers.
1589
1590
1591 @node Group Parameters
1592 @section Group Parameters
1593 @cindex group parameters
1594
1595 Gnus stores all information on a group in a list that is usually known
1596 as the @dfn{group info}.  This list has from three to six elements.
1597 Here's an example info.
1598
1599 @lisp
1600 ("nnml:mail.ding" 3 ((1 . 232) 244 (256 . 270)) ((tick 246 249))
1601                   (nnml "private") ((to-address . "ding@@ifi.uio.no")))
1602 @end lisp
1603
1604 The first element is the @dfn{group name}, as Gnus knows the group,
1605 anyway.  The second element is the @dfn{subscription level}, which
1606 normally is a small integer.  The third element is a list of ranges of
1607 read articles.  The fourth element is a list of lists of article marks
1608 of various kinds.  The fifth element is the select method (or virtual
1609 server, if you like).  The sixth element is a list of @dfn{group
1610 parameters}, which is what this section is about.
1611
1612 Any of the last three elements may be missing if they are not required.
1613 In fact, the vast majority of groups will normally only have the first
1614 three elements, which saves quite a lot of cons cells.
1615
1616 The group parameters store information local to a particular group:
1617
1618 @table @code
1619 @item to-address
1620 @cindex to-address
1621 If the group parameter list contains an element that looks like
1622 @code{(to-address .  "some@@where.com")}, that address will be used by
1623 the backend when doing followups and posts.  This is primarily useful in
1624 mail groups that represent closed mailing lists---mailing lists where
1625 it's expected that everybody that writes to the mailing list is
1626 subscribed to it.  Since using this parameter ensures that the mail only
1627 goes to the mailing list itself, it means that members won't receive two
1628 copies of your followups.
1629
1630 Using @code{to-address} will actually work whether the group is foreign
1631 or not.  Let's say there's a group on the server that is called
1632 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
1633 the articles from a mail-to-news gateway.  Posting directly to this
1634 group is therefore impossible---you have to send mail to the mailing
1635 list address instead. 
1636
1637 @item to-list
1638 @cindex to-list
1639 If the group parameter list has an element that looks like
1640 @code{(to-list . "some@@where.com")}, that address will be used when
1641 doing a @kbd{a} in any group.  It is totally ignored when doing a
1642 followup---except that if it is present in a news group, you'll get mail
1643 group semantics when doing @kbd{f}.
1644
1645 @item broken-reply-to
1646 @cindex broken-reply-to
1647 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
1648 headers in this group are to be ignored.  This can be useful if you're
1649 reading a mailing list group where the listserv has inserted
1650 @code{Reply-To} headers that point back to the listserv itself.  This is
1651 broken behavior.  So there!
1652
1653 @item to-group
1654 @cindex to-group
1655 If the group parameter list contains an element like @code{(to-group
1656 . "some.group.name")}, all posts will be sent to that group.
1657
1658 @item auto-expire
1659 @cindex auto-expire
1660 If this symbol is present in the group parameter list, all articles that
1661 are read will be marked as expirable.  For an alternative approach,
1662 @pxref{Expiring Mail}.
1663
1664 @item total-expire
1665 @cindex total-expire
1666 If this symbol is present, all read articles will be put through the
1667 expiry process, even if they are not marked as expirable.  Use with
1668 caution. 
1669
1670 @item expiry-wait
1671 @cindex expiry-wait
1672 @vindex nnmail-expiry-wait-function
1673 If the group parameter has an element that looks like @code{(expiry-wait
1674 . 10)}, this value will override any @code{nnmail-expiry-wait} and
1675 @code{nnmail-expiry-wait-function} when expiring expirable messages.
1676 The value can either be a number of days (not necessarily an integer) or
1677 the symbols @code{never} or @code{immediate}.
1678
1679 @item score-file
1680 Elements that look like @code{(score-file . "file")} will make
1681 @samp{file} into the current score file for the group in question.  This
1682 means that all score commands you issue will end up in that file. 
1683
1684 @item admin-address
1685 When unsubscribing to a mailing list you should never send the
1686 unsubscription notice to the mailing list itself.  Instead, you'd send
1687 messages to the administrative address.  This parameter allows you to
1688 put the admin address somewhere convenient.
1689
1690 @item comment
1691 This parameter allows you to enter a arbitrary comment on the group.
1692
1693 @item @var{(variable form)}
1694 You can use the group parameters to set variables local to the group you
1695 are entering.  Say you want to turn threading off in
1696 @samp{news.answers}.  You'd then put @code{(gnus-show-threads nil)} in
1697 the group parameters of that group.  @code{gnus-show-threads} will be
1698 made into a local variable in the summary buffer you enter, and the form
1699 @code{nil} will be @code{eval}ed there.  
1700
1701 This can also be used as a group-specific hook function, if you'd like.
1702 If you want to hear a beep when you enter the group
1703 @samp{alt.binaries.pictures.furniture}, you could put something like
1704 @code{(dummy-variable (ding))} in the parameters of that group.
1705 @code{dummy-variable} will be set to the result of the @code{(ding)}
1706 form, but who cares?
1707
1708 @end table
1709
1710 If you want to change the group info you can use the @kbd{G E} command
1711 to enter a buffer where you can edit it.
1712
1713 You usually don't want to edit the entire group info, so you'd be better
1714 off using the @kbd{G p} command to just edit the group parameters.
1715
1716
1717 @node Listing Groups
1718 @section Listing Groups
1719 @cindex group listing
1720
1721 These commands all list various slices of the groups that are available.
1722
1723 @table @kbd
1724
1725 @item l
1726 @itemx A s
1727 @kindex A s (Group)
1728 @kindex l (Group)
1729 @findex gnus-group-list-groups
1730 List all groups that have unread articles
1731 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
1732 command will list only groups of level ARG and lower.  By default, it
1733 only lists groups of level five or lower (i.e., just subscribed groups).
1734
1735 @item L
1736 @itemx A u
1737 @kindex A u (Group)
1738 @kindex L (Group)
1739 @findex gnus-group-list-all-groups
1740 List all groups, whether they have unread articles or not
1741 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
1742 this command will list only groups of level ARG and lower.  By default,
1743 it lists groups of level seven or lower (i.e., just subscribed and
1744 unsubscribed groups).
1745
1746 @item A l
1747 @kindex A l (Group)
1748 @findex gnus-group-list-level
1749 List all unread groups on a specific level
1750 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
1751 with no unread articles.
1752
1753 @item A k
1754 @kindex A k (Group)
1755 @findex gnus-group-list-killed
1756 List all killed groups (@code{gnus-group-list-killed}).  If given a
1757 prefix argument, really list all groups that are available, but aren't
1758 currently (un)subscribed.  This could entail reading the active file
1759 from the server.
1760
1761 @item A z
1762 @kindex A z (Group)
1763 @findex gnus-group-list-zombies
1764 List all zombie groups (@code{gnus-group-list-zombies}).
1765
1766 @item A m
1767 @kindex A m (Group)
1768 @findex gnus-group-list-matching
1769 List all subscribed groups with unread articles that match a regexp
1770 (@code{gnus-group-list-matching}). 
1771
1772 @item A M
1773 @kindex A M (Group)
1774 @findex gnus-group-list-all-matching
1775 List groups that match a regexp (@code{gnus-group-list-all-matching}).
1776
1777 @item A A
1778 @kindex A A (Group)
1779 @findex gnus-group-list-active
1780 List absolutely all groups that are in the active file(s) of the
1781 server(s) you are connected to (@code{gnus-group-list-active}).  This
1782 might very well take quite a while.  It might actually be a better idea
1783 to do a @kbd{A m} to list all matching, and just give @samp{.} as the
1784 thing to match on.
1785
1786 @item A a
1787 @kindex A a (Group)
1788 @findex gnus-group-apropos
1789 List all groups that have names that match a regexp
1790 (@code{gnus-group-apropos}).
1791
1792 @item A d
1793 @kindex A d (Group)
1794 @findex gnus-group-description-apropos
1795 List all groups that have names or descriptions that match a regexp
1796 (@code{gnus-group-description-apropos}).
1797
1798 @end table
1799
1800 @vindex gnus-permanently-visible-groups
1801 @cindex visible group parameter
1802 Groups that match the @code{gnus-permanently-visible-groups} regexp will
1803 always be shown, whether they have unread articles or not.  You can also
1804 add the @code{visible} element to the group parameters in question to
1805 get the same effect.
1806
1807 @vindex gnus-list-groups-with-ticked-articles
1808 Groups that have just ticked articles in it are normally listed in the
1809 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
1810 @code{nil}, these groups will be treated just like totally empty
1811 groups.  It is @code{t} by default.
1812
1813
1814 @node Sorting Groups
1815 @section Sorting Groups
1816 @cindex sorting groups
1817
1818 @kindex C-c C-s (Group)
1819 @findex gnus-group-sort-groups
1820 @vindex gnus-group-sort-function
1821 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
1822 group buffer according to the function(s) given by the
1823 @code{gnus-group-sort-function} variable.  Available sorting functions
1824 include: 
1825
1826 @table @code
1827
1828 @item gnus-group-sort-by-alphabet
1829 @findex gnus-group-sort-by-alphabet
1830 Sort the group names alphabetically.  This is the default.
1831
1832 @item gnus-group-sort-by-level
1833 @findex gnus-group-sort-by-level
1834 Sort by group level.
1835
1836 @item gnus-group-sort-by-score
1837 @findex gnus-group-sort-by-score
1838 Sort by group score.
1839
1840 @item gnus-group-sort-by-rank
1841 @findex gnus-group-sort-by-rank
1842 Sort by group score and then the group level.  The level and the score
1843 are, when taken together, the group's @dfn{rank}. 
1844
1845 @item gnus-group-sort-by-unread
1846 @findex gnus-group-sort-by-unread
1847 Sort by number of unread articles.
1848
1849 @item gnus-group-sort-by-method
1850 @findex gnus-group-sort-by-method
1851 Sort by alphabetically on the select method.
1852
1853
1854 @end table
1855
1856 @code{gnus-group-sort-function} can also be a list of sorting
1857 functions.  In that case, the most significant sort key function must be
1858 the last one.
1859
1860
1861 There are also a number of commands for sorting directly according to
1862 some sorting criteria:
1863
1864 @table @kbd
1865 @item G S a
1866 @kindex G S a (Group)
1867 @findex gnus-group-sort-groups-by-alphabet
1868 Sort the group buffer alphabetically by group name
1869 (@code{gnus-group-sort-groups-by-alphabet}). 
1870
1871 @item G S u
1872 @kindex G S u (Group)
1873 @findex gnus-group-sort-groups-by-unread
1874 Sort the group buffer by the number of unread articles
1875 (@code{gnus-group-sort-groups-by-unread}).
1876
1877 @item G S l
1878 @kindex G S l (Group)
1879 @findex gnus-group-sort-groups-by-level
1880 Sort the group buffer by group level
1881 (@code{gnus-group-sort-groups-by-level}). 
1882
1883 @item G S v
1884 @kindex G S v (Group)
1885 @findex gnus-group-sort-groups-by-score
1886 Sort the group buffer by group score
1887 (@code{gnus-group-sort-groups-by-score}). 
1888
1889 @item G S r
1890 @kindex G S r (Group)
1891 @findex gnus-group-sort-groups-by-rank
1892 Sort the group buffer by group level
1893 (@code{gnus-group-sort-groups-by-rank}). 
1894
1895 @item G S m
1896 @kindex G S m (Group)
1897 @findex gnus-group-sort-groups-by-method
1898 Sort the group buffer alphabetically by backend name
1899 (@code{gnus-group-sort-groups-by-method}). 
1900
1901 @end table
1902
1903 When given a prefix, all these commands will sort in reverse order. 
1904
1905
1906 @node Group Maintenance
1907 @section Group Maintenance
1908 @cindex bogus groups
1909
1910 @table @kbd
1911 @item b
1912 @kindex b (Group)
1913 @findex gnus-group-check-bogus-groups
1914 Find bogus groups and delete them
1915 (@code{gnus-group-check-bogus-groups}).
1916
1917 @item F
1918 @kindex F (Group)
1919 @findex gnus-find-new-newsgroups
1920 Find new groups and process them (@code{gnus-find-new-newsgroups}).  If
1921 given a prefix, use the @code{ask-server} method to query the server for
1922 new groups.
1923
1924 @item C-c C-x
1925 @kindex C-c C-x (Group)
1926 @findex gnus-group-expire-articles
1927 Run all expirable articles in the current group through the expiry
1928 process (if any) (@code{gnus-group-expire-articles}).
1929
1930 @item C-c M-C-x
1931 @kindex C-c M-C-x (Group)
1932 @findex gnus-group-expire-all-groups
1933 Run all articles in all groups through the expiry process
1934 (@code{gnus-group-expire-all-groups}).
1935
1936 @end table
1937
1938
1939 @node Browse Foreign Server
1940 @section Browse Foreign Server
1941 @cindex foreign servers
1942 @cindex browsing servers
1943
1944 @table @kbd
1945 @item B
1946 @kindex B (Group)
1947 @findex gnus-group-browse-foreign-server
1948 You will be queried for a select method and a server name.  Gnus will
1949 then attempt to contact this server and let you browse the groups there
1950 (@code{gnus-group-browse-foreign-server}).
1951 @end table
1952
1953 @findex gnus-browse-server-mode
1954 A new buffer with a list of available groups will appear.  This buffer
1955 will be use the @code{gnus-browse-server-mode}.  This buffer looks a bit
1956 (well, a lot) like a normal group buffer, but with one major difference
1957 - you can't enter any of the groups.  If you want to read any of the
1958 news available on that server, you have to subscribe to the groups you
1959 think may be interesting, and then you have to exit this buffer.  The
1960 new groups will be added to the group buffer, and then you can read them
1961 as you would any other group.
1962
1963 Future versions of Gnus may possibly permit reading groups straight from
1964 the browse buffer.
1965
1966 Here's a list of keystrokes available in the browse mode:
1967
1968 @table @kbd
1969 @item n
1970 @kindex n (Browse)
1971 @findex gnus-group-next-group
1972 Go to the next group (@code{gnus-group-next-group}).
1973
1974 @item p
1975 @kindex p (Browse)
1976 @findex gnus-group-prev-group
1977 Go to the previous group (@code{gnus-group-prev-group}).
1978
1979 @item SPACE
1980 @kindex SPACE (Browse)
1981 @findex gnus-browse-read-group
1982 Enter the current group and display the first article
1983 (@code{gnus-browse-read-group}). 
1984
1985 @item RET
1986 @kindex RET (Browse)
1987 @findex gnus-browse-select-group
1988 Enter the current group (@code{gnus-browse-select-group}). 
1989
1990 @item u
1991 @kindex u (Browse)
1992 @findex gnus-browse-unsubscribe-current-group
1993 Unsubscribe to the current group, or, as will be the case here,
1994 subscribe to it (@code{gnus-browse-unsubscribe-current-group}). 
1995
1996 @item l
1997 @itemx q
1998 @kindex q (Browse)
1999 @kindex l (Browse)
2000 @findex gnus-browse-exit
2001 Exit browse mode (@code{gnus-browse-exit}).
2002
2003 @item ?
2004 @kindex ? (Browse)
2005 @findex gnus-browse-describe-briefly
2006 Describe browse mode briefly (well, there's not much to describe, is
2007 there) (@code{gnus-browse-describe-briefly}).
2008 @end table
2009
2010
2011 @node Exiting Gnus
2012 @section Exiting Gnus
2013 @cindex exiting Gnus
2014
2015 Yes, Gnus is ex(c)iting.
2016
2017 @table @kbd
2018 @item z
2019 @kindex z (Group)
2020 @findex gnus-group-suspend
2021 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
2022 but it kills all buffers except the Group buffer.  I'm not sure why this
2023 is a gain, but then who am I to judge?
2024
2025 @item q
2026 @kindex q (Group)
2027 @findex gnus-group-exit
2028 Quit Gnus (@code{gnus-group-exit}).
2029
2030 @item Q
2031 @kindex Q (Group)
2032 @findex gnus-group-quit
2033 Quit Gnus without saving any startup files (@code{gnus-group-quit}).
2034 @end table
2035
2036 @vindex gnus-exit-gnus-hook
2037 @vindex gnus-suspend-gnus-hook
2038 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
2039 @code{gnus-exit-gnus-hook} is called when you quit Gnus, while
2040 @code{gnus-after-exiting-gnus-hook} is called as the final item when
2041 exiting Gnus.
2042
2043 @findex gnus-unload
2044 @cindex unloading
2045 If you wish to completely unload Gnus and all its adherents, you can use
2046 the @code{gnus-unload} command.  This command is also very handy when
2047 trying to customize meta-variables.
2048
2049 Note:
2050
2051 @quotation
2052 Miss Lisa Cannifax, while sitting in English class, feels her feet go
2053 numbly heavy and herself fall into a hazy trance as the boy sitting
2054 behind her drew repeated lines with his pencil across the back of her
2055 plastic chair.
2056 @end quotation
2057
2058
2059 @node Group Topics
2060 @section Group Topics
2061 @cindex topics
2062
2063 If you read lots and lots of groups, it might be convenient to group
2064 them hierarchically according to topics.  You put your Emacs groups over
2065 here, your sex groups over there, and the rest (what, two groups or so?)
2066 you put in some misc section that you never bother with anyway.  You can
2067 even group the Emacs sex groups as a sub-topic to either the Emacs
2068 groups or the sex groups---or both!  Go wild!
2069
2070 @findex gnus-topic-mode
2071 @kindex t (Group)
2072 To get this @emph{fab} functionality you simply turn on (ooh!) the
2073 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
2074 is a toggling command.)
2075
2076 Go ahead, just try it.  I'll still be here when you get back.  La de
2077 dum...  Nice tune, that...  la la la...  What, you're back? Yes, and now
2078 press @kbd{l}.  There.  All your groups are now listed under
2079 @samp{misc}.  Doesn't that make you feel all warm and fuzzy?  Hot and
2080 bothered?
2081
2082 If you want this permanently enabled, you should add that minor mode to
2083 the hook for the group mode:
2084
2085 @lisp
2086 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
2087 @end lisp
2088
2089 @menu 
2090 * Topic Variables::    How to customize the topics the Lisp Way.
2091 * Topic Commands::     Interactive E-Z commands.
2092 * Topic Topology::     A map of the world.
2093 @end menu
2094
2095
2096 @node Topic Variables
2097 @subsection Topic Variables
2098 @cindex topic variables
2099
2100 Now, if you select a topic, if will fold/unfold that topic, which is
2101 really neat, I think.
2102
2103 @vindex gnus-topic-line-format
2104 The topic lines themselves are created according to the
2105 @code{gnus-topic-line-format} variable.  @xref{Formatting Variables}.
2106 Elements allowed are:
2107
2108 @table @samp
2109 @item i
2110 Indentation.
2111 @item n
2112 Topic name.
2113 @item v
2114 Visibility.
2115 @item l
2116 Level.
2117 @item g
2118 Number of groups in the topic.
2119 @item a
2120 Number of unread articles in the topic.
2121 @item A 
2122 Number of unread articles in the topic and all its subtopics. 
2123 @end table
2124
2125 @vindex gnus-topic-indent-level
2126 Each sub-topic (and the groups in the sub-topics) will be indented with
2127 @code{gnus-topic-indent-level} times the topic level number of spaces.
2128 The default is @code{2}.
2129
2130 @vindex gnus-topic-mode-hook
2131 @code{gnus-topic-mode-hook} is called in topic minor mode buffers. 
2132
2133
2134 @node Topic Commands
2135 @subsection Topic Commands
2136 @cindex topic commands
2137
2138 When the topic minor mode is turned on, a new @kbd{T} submap will be
2139 available.  In addition, a few of the standard keys change their
2140 definitions slightly.
2141
2142 @table @kbd
2143
2144 @item T n
2145 @kindex T n (Group)
2146 @findex gnus-topic-create-topic
2147 Prompt for a new topic name and create it 
2148 (@code{gnus-topic-create-topic}). 
2149
2150 @item T m
2151 @kindex T m (Group)
2152 @findex gnus-topic-move-group
2153 Move the current group to some other topic
2154 (@code{gnus-topic-move-group}).  This command understands the
2155 process/prefix convention (@pxref{Process/Prefix}).
2156
2157 @item T c
2158 @kindex T c (Group)
2159 @findex gnus-topic-copy-group
2160 Copy the current group to some other topic
2161 (@code{gnus-topic-copy-group}).  This command understands the
2162 process/prefix convention (@pxref{Process/Prefix}).
2163
2164 @item T D
2165 @kindex T D (Group)
2166 @findex gnus-topic-remove-group
2167 Remove a group from the current topic (@code{gnus-topic-remove-group}).
2168 This command understands the process/prefix convention
2169 (@pxref{Process/Prefix}).
2170
2171 @item T M
2172 @kindex T M (Group)
2173 @findex gnus-topic-move-matching
2174 Move all groups that match some regular expression to a topic
2175 (@code{gnus-topic-move-matching}). 
2176
2177 @item T C
2178 @kindex T C (Group)
2179 @findex gnus-topic-copy-matching
2180 Copy all groups that match some regular expression to a topic
2181 (@code{gnus-topic-copy-matching}). 
2182
2183 @item T #
2184 @kindex T # (Group)
2185 @findex gnus-topic-mark-topic
2186 Mark all groups in the current topic with the process mark
2187 (@code{gnus-topic-mark-topic}). 
2188
2189 @item T M-#
2190 @kindex T M-# (Group)
2191 @findex gnus-topic-unmark-topic
2192 Remove the process mark from all groups in the current topic
2193 (@code{gnus-topic-unmark-topic}). 
2194
2195 @item RET
2196 @kindex RET (Group)
2197 @findex gnus-topic-select-group
2198 @itemx SPACE
2199 Either select a group or fold a topic (@code{gnus-topic-select-group}).
2200 When you perform this command on a group, you'll enter the group, as
2201 usual.  When done on a topic line, the topic will be folded (if it was
2202 visible) or unfolded (if it was folded already).  So it's basically a
2203 toggling command on topics.  In addition, if you give a numerical
2204 prefix, group on that level (and lower) will be displayed.
2205
2206 @item T TAB
2207 @kindex T TAB (Group)
2208 @findex gnus-topic-indent
2209 ``Indent'' the current topic so that it becomes a sub-topic of the
2210 previous topic (@code{gnus-topic-indent}).  If given a prefix,
2211 ``un-indent'' the topic instead.
2212
2213 @item C-k
2214 @kindex C-k (Group)
2215 @findex gnus-topic-kill-group
2216 Kill a group or topic (@code{gnus-topic-kill-group}).  
2217
2218 @item C-y
2219 @kindex C-y (Group)
2220 @findex gnus-topic-yank-group
2221 Yank the previously killed group or topic (@code{gnus-topic-yank-group}).
2222 Note that all topics will be yanked before all groups.
2223
2224 @item T r
2225 @kindex T r (Group)
2226 @findex gnus-topic-rename
2227 Rename a topic (@code{gnus-topic-rename}). 
2228
2229 @item T DEL
2230 @kindex T DEL (Group)
2231 @findex gnus-topic-delete
2232 Delete an empty topic (@code{gnus-topic-delete}). 
2233
2234 @item A T
2235 @kindex A T (Group)
2236 @findex gnus-topic-list-active
2237 List all groups that Gnus knows about in a topics-ified way
2238 (@code{gnus-topic-list-active}).
2239
2240 @end table
2241
2242
2243 @node Topic Topology
2244 @subsection Topic Topology
2245 @cindex topic topology
2246 @cindex topology
2247
2248 So, let's have a look at an example group buffer:
2249
2250 @example
2251 Gnus
2252   Emacs -- I wuw it!
2253        3: comp.emacs
2254        2: alt.religion.emacs
2255     Naughty Emacs
2256      452: alt.sex.emacs
2257        0: comp.talk.emacs.recovery
2258   Misc
2259        8: comp.binaries.fractals
2260       13: comp.sources.unix
2261 @end example
2262
2263 So, here we have one top-level topic, two topics under that, and one
2264 sub-topic under one of the sub-topics.  (There is always just one (1)
2265 top-level topic).  This topology can be expressed as follows:
2266
2267 @lisp
2268 (("Gnus" visible)
2269  (("Emacs -- I wuw it!" visible) 
2270   (("Naughty Emacs" visible)))
2271  (("Misc" visible)))
2272 @end lisp
2273
2274 @vindex gnus-topic-topology
2275 This is in fact how the variable @code{gnus-topic-topology} would look
2276 for the display above.  That variable is saved in the @file{.newsrc.eld}
2277 file, and shouldn't be messed with manually---unless you really want
2278 to.  Since this variable is read from the @file{.newsrc.eld} file,
2279 setting it in any other startup files will have no effect.  
2280
2281 This topology shows what topics are sub-topics of what topics (right),
2282 and which topics are visible.  Two settings are currently
2283 allowed---@code{visible} and @code{invisible}.
2284
2285
2286 @node Misc Group Stuff
2287 @section Misc Group Stuff
2288
2289 @menu
2290 * Scanning New Messages:: Asking Gnus to see whether new messages have arrived.
2291 * Group Information::     Information and help on groups and Gnus.
2292 * File Commands::         Reading and writing the Gnus files.
2293 @end menu
2294
2295 @table @kbd
2296
2297 @item ^
2298 @kindex ^ (Group)
2299 @findex gnus-group-enter-server-mode
2300 Enter the server buffer (@code{gnus-group-enter-server-mode}). @xref{The
2301 Server Buffer}.
2302
2303 @item a
2304 @kindex a (Group)
2305 @findex gnus-group-post-news
2306 Post an article to a group (@code{gnus-group-post-news}).  The current
2307 group name will be used as the default.
2308
2309 @item m
2310 @kindex m (Group)
2311 @findex gnus-group-mail
2312 Mail a message somewhere (@code{gnus-group-mail}).
2313
2314 @end table
2315
2316 Variables for the group buffer:
2317
2318 @table @code
2319
2320 @item gnus-group-mode-hook
2321 @vindex gnus-group-mode-hook
2322 @code{gnus-group-mode-hook} is called after the group buffer has been
2323 created. 
2324
2325 @item gnus-group-prepare-hook
2326 @vindex gnus-group-prepare-hook
2327 @code{gnus-group-prepare-hook} is called after the group buffer is
2328 generated.  It may be used to modify the buffer in some strange,
2329 unnatural way.
2330
2331 @item gnus-permanently-visible-groups
2332 @vindex gnus-permanently-visible-groups
2333 Groups matching this regexp will always be listed in the group buffer,
2334 whether they are empty or not.
2335
2336 @end table
2337
2338
2339 @node Scanning New Messages
2340 @subsection Scanning New Messages
2341 @cindex new messages
2342 @cindex scanning new news
2343
2344 @table @kbd
2345
2346 @item g
2347 @kindex g (Group)
2348 @findex gnus-group-get-new-news
2349 Check the server(s) for new articles.  If the numerical prefix is used,
2350 this command will check only groups of level @var{arg} and lower
2351 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
2352 command will force a total rereading of the active file(s) from the
2353 backend(s).
2354
2355 @item M-g
2356 @kindex M-g (Group)
2357 @findex gnus-group-get-new-news-this-group
2358 @vindex gnus-goto-next-group-when-activating
2359 Check whether new articles have arrived in the current group
2360 (@code{gnus-group-get-new-news-this-group}).  The
2361 @code{gnus-goto-next-group-when-activating} variable controls whether
2362 this command is to move point to the next group or not.  It is @code{t}
2363 by default.
2364
2365 @findex gnus-activate-all-groups
2366 @cindex activating groups
2367 @item C-c M-g
2368 @kindex C-c M-g (Group)
2369 Activate absolutely all groups (@code{gnus-activate-all-groups}). 
2370
2371 @item R
2372 @kindex R (Group)
2373 @cindex restarting
2374 @findex gnus-group-restart
2375 Restart Gnus (@code{gnus-group-restart}).
2376
2377 @end table
2378
2379 @vindex gnus-get-new-news-hook
2380 @code{gnus-get-new-news-hook} is run just before checking for new news. 
2381
2382 @vindex gnus-after-getting-new-news-hook
2383 @code{gnus-after-getting-new-news-hook} is run after checking for new
2384 news.
2385
2386
2387 @node Group Information
2388 @subsection Group Information
2389 @cindex group information
2390 @cindex information on groups
2391
2392 @table @kbd
2393
2394 @item M-f
2395 @kindex M-f (Group)
2396 @findex gnus-group-fetch-faq
2397 @cindex FAQ
2398 @cindex ange-ftp
2399 Try to fetch the FAQ for the current group
2400 (@code{gnus-group-fetch-faq}).  Gnus will try to get the FAQ from
2401 @code{gnus-group-faq-directory}, which is usually a directory on a
2402 remote machine.  @code{ange-ftp} will be used for fetching the file.
2403
2404 @item D
2405 @kindex D (Group)
2406 @cindex describing groups
2407 @cindex group description
2408 @findex gnus-group-describe-group
2409 Describe the current group (@code{gnus-group-describe-group}).  If given
2410 a prefix, force Gnus to re-read the description from the server.
2411
2412 @item M-d
2413 @kindex M-d (Group)
2414 @findex gnus-group-describe-all-groups
2415 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
2416 prefix, force Gnus to re-read the description file from the server.
2417
2418 @item V
2419 @kindex V (Group)
2420 @cindex version
2421 @findex gnus-version
2422 Display current Gnus version numbers (@code{gnus-version}).
2423
2424 @item ?
2425 @kindex ? (Group)
2426 @findex gnus-group-describe-briefly
2427 Give a very short help message (@code{gnus-group-describe-briefly}).
2428
2429 @item C-c C-i
2430 @kindex C-c C-i (Group)
2431 @cindex info
2432 @cindex manual
2433 @findex gnus-info-find-node
2434 Go to the Gnus info node (@code{gnus-info-find-node}).
2435 @end table
2436
2437
2438 @node File Commands
2439 @subsection File Commands
2440 @cindex file commands
2441
2442 @table @kbd
2443
2444 @item r
2445 @kindex r (Group)
2446 @findex gnus-group-read-init-file
2447 @vindex gnus-init-file
2448 @cindex reading init file
2449 Read the init file (@code{gnus-init-file}, which defaults to
2450 @file{~/.gnus}) (@code{gnus-group-read-init-file}).
2451
2452 @item s
2453 @kindex s (Group)
2454 @findex gnus-group-save-newsrc
2455 @cindex saving .newsrc
2456 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
2457 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
2458 file(s) whether Gnus thinks it is necessary or not.
2459
2460 @item Z
2461 @kindex Z (Group)
2462 @findex gnus-group-clear-dribble
2463 Clear the dribble buffer (@code{gnus-group-clear-dribble}).
2464
2465 @end table
2466
2467
2468 @node The Summary Buffer
2469 @chapter The Summary Buffer
2470 @cindex summary buffer
2471
2472 A line for each article is displayed in the summary buffer.  You can
2473 move around, read articles, post articles and reply to articles.
2474
2475 @menu
2476 * Summary Buffer Format::       Deciding how the summary buffer is to look.
2477 * Summary Maneuvering::         Moving around the summary buffer.
2478 * Choosing Articles::           Reading articles.
2479 * Paging the Article::          Scrolling the current article.
2480 * Reply Followup and Post::     Posting articles.
2481 * Canceling and Superseding::   ``Whoops, I shouldn't have called him that.''
2482 * Marking Articles::            Marking articles as read, expirable, etc.
2483 * Limiting::                    You can limit the summary buffer.
2484 * Threading::                   How threads are made.
2485 * Sorting::                     How articles and threads are sorted.
2486 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
2487 * Article Caching::             You may store articles in a cache.
2488 * Persistent Articles::         Making articles expiry-resistant.
2489 * Article Backlog::             Having already read articles hang around.
2490 * Saving Articles::             Ways of customizing article saving.
2491 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
2492 * Article Treatment::           The article buffer can be mangled at will.
2493 * Summary Sorting::             Sorting the summary buffer in various ways.
2494 * Finding the Parent::          No child support? Get the parent.
2495 * Alternative Approaches::      Reading using non-default summaries.
2496 * Tree Display::                A more visual display of threads.
2497 * Mail Group Commands::         Some commands can only be used in mail groups.
2498 * Various Summary Stuff::       What didn't fit anywhere else.
2499 * Exiting the Summary Buffer::  Returning to the Group buffer.
2500 @end menu
2501
2502
2503 @node Summary Buffer Format
2504 @section Summary Buffer Format
2505 @cindex summary buffer format
2506
2507 @menu
2508 * Summary Buffer Lines::     You can specify how summary lines should look.
2509 * Summary Buffer Mode Line:: You can say how the mode line should look.
2510 * Summary Highlighting::     Making the summary buffer all pretty and nice.
2511 @end menu
2512
2513 @findex mail-extract-address-components
2514 @findex gnus-extract-address-components
2515 @vindex gnus-extract-address-components
2516 Gnus will use the value of the @code{gnus-extract-address-components}
2517 variable as a function for getting the name and address parts of a
2518 @code{From} header.  Two pre-defined function exist:
2519 @code{gnus-extract-address-components}, which is the default, quite
2520 fast, and too simplistic solution; and
2521 @code{mail-extract-address-components}, which works very nicely, but is
2522 slower.
2523
2524 @vindex gnus-summary-same-subject
2525 @code{gnus-summary-same-subject} is a string indicating that the current
2526 article has the same subject as the previous.  This string will be used
2527 with those specs that require it.  The default is @samp{}.
2528
2529
2530 @node Summary Buffer Lines
2531 @subsection Summary Buffer Lines
2532
2533 @vindex gnus-summary-line-format
2534 You can change the format of the lines in the summary buffer by changing
2535 the @code{gnus-summary-line-format} variable.  It works along the same
2536 lines a a normal @code{format} string, with some extensions.
2537
2538 The default string is @samp{%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n}.
2539
2540 The following format specification characters are understood:
2541
2542 @table @samp
2543 @item N 
2544 Article number.
2545 @item S
2546 Subject string.
2547 @item s
2548 Subject if the article is the root, @code{gnus-summary-same-subject}
2549 otherwise. 
2550 @item F
2551 Full @code{From} line.
2552 @item n
2553 The name (from the @code{From} header).
2554 @item a
2555 The name (from the @code{From} header).  This differs from the @code{n}
2556 spec in that it uses @code{gnus-extract-address-components}, which is
2557 slower, but may be more thorough.
2558 @item A
2559 The address (from the @code{From} header).  This works the same way as
2560 the @code{a} spec.
2561 @item L
2562 Number of lines in the article.
2563 @item c
2564 Number of characters in the article.
2565 @item I
2566 Indentation based on thread level (@pxref{Customizing Threading}).
2567 @item T
2568 Nothing if the article is a root and lots of spaces if it isn't (it
2569 pushes everything after it off the screen).
2570 @item \[
2571 Opening bracket, which is normally @samp{\[}, but can also be @samp{<}
2572 for adopted articles.
2573 @item \]
2574 Closing bracket, which is normally @samp{\]}, but can also be @samp{>}
2575 for adopted articles.
2576 @item >
2577 One space for each thread level.
2578 @item <
2579 Twenty minus thread level spaces.
2580 @item U
2581 Unread.
2582 @item R
2583 Replied.
2584 @item i
2585 Score as a number.
2586 @item z
2587 @vindex gnus-summary-zcore-fuzz
2588 Zcore, @samp{+} if above the default level and @samp{-} if below the
2589 default level.  If the difference between
2590 @code{gnus-summary-default-level} and the score is less than
2591 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
2592 @item V
2593 Total thread score.
2594 @item x
2595 @code{Xref}.
2596 @item D
2597 @code{Date}.
2598 @item M
2599 @code{Message-ID}.
2600 @item r
2601 @code{References}.
2602 @item t
2603 Number of articles in the current sub-thread.  Using this spec will slow
2604 down summary buffer generation somewhat.
2605 @item e
2606 A single character will be displayed if the article has any children. 
2607 @item u
2608 User defined specifier.  The next character in the format string should
2609 be a letter.  @sc{gnus} will call the function
2610 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
2611 following @samp{%u}.  The function will be passed the current header as
2612 argument.  The function should return a string, which will be inserted
2613 into the summary just like information from any other summary specifier.
2614 @end table
2615
2616 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
2617 have to be handled with care.  For reasons of efficiency, Gnus will
2618 compute what column these characters will end up in, and ``hard-code''
2619 that.  This means that it is illegal to have these specs after a
2620 variable-length spec.  Well, you might not be arrested, but your summary
2621 buffer will look strange, which is bad enough.
2622
2623 The smart choice is to have these specs as far to the left as possible.
2624 (Isn't that the case with everything, though?  But I digress.)
2625
2626 This restriction may disappear in later versions of Gnus.
2627
2628
2629 @node Summary Buffer Mode Line
2630 @subsection Summary Buffer Mode Line
2631
2632 @vindex gnus-summary-mode-line-format
2633 You can also change the format of the summary mode bar.  Set
2634 @code{gnus-summary-mode-line-format} to whatever you like.  Here are the
2635 elements you can play with:
2636
2637 @table @samp
2638 @item G
2639 Group name.
2640 @item p
2641 Unprefixed group name.
2642 @item A
2643 Current article number.
2644 @item V
2645 Gnus version.
2646 @item U
2647 Number of unread articles in this group.
2648 @item e
2649 Number of unselected articles in this group.
2650 @item Z
2651 A string with the number of unread and unselected articles represented
2652 either as @samp{<%U(+%u) more>} if there are both unread and unselected
2653 articles, and just as @samp{<%U more>} if there are just unread articles
2654 and no unselected ones.
2655 @item g
2656 Shortish group name.  For instance, @samp{rec.arts.anime} will be
2657 shortened to @samp{r.a.anime}. 
2658 @item S
2659 Subject of the current article.
2660 @item u
2661 Used-defined spec.
2662 @item s
2663 Name of the current score file.
2664 @item d
2665 Number of dormant articles.
2666 @item t
2667 Number of ticked articles.
2668 @item r
2669 Number of articles that have been marked as read in this session. 
2670 @item E
2671 Number of articles expunged by the score files.
2672 @end table
2673
2674
2675 @node Summary Highlighting
2676 @subsection Summary Highlighting
2677
2678 @table @code
2679
2680 @item gnus-visual-mark-article-hook
2681 @vindex gnus-visual-mark-article-hook
2682 This hook is run after selecting an article.  It is meant to be used for
2683 highlighting the article in some way.  It is not run if
2684 @code{gnus-visual} is @code{nil}.
2685
2686 @item gnus-summary-update-hook
2687 @vindex gnus-summary-update-hook
2688 This hook is called when a summary line is changed.  It is not run if
2689 @code{gnus-visual} is @code{nil}.
2690
2691 @item gnus-summary-selected-face
2692 @vindex gnus-summary-selected-face
2693 This is the face (or @dfn{font} as some people call it) that is used to
2694 highlight the current article in the summary buffer.
2695
2696 @item gnus-summary-highlight
2697 @vindex gnus-summary-highlight
2698 Summary lines are highlighted according to this variable, which is a
2699 list where the elements are on the format @code{(FORM . FACE)}.  If you
2700 would, for instance, like ticked articles to be italic and high-scored
2701 articles to be bold, you could set this variable to something like
2702 @lisp
2703 (((eq mark gnus-ticked-mark) . italic)
2704  ((> score default) . bold))
2705 @end lisp
2706 As you may have guessed, if @var{FORM} returns a non-@code{nil} value,
2707 @var{FACE} will be applied to the line.
2708 @end table
2709
2710
2711 @node Summary Maneuvering
2712 @section Summary Maneuvering
2713 @cindex summary movement
2714
2715 All the straight movement commands understand the numeric prefix and
2716 behave pretty much as you'd expect. 
2717
2718 None of these commands select articles.
2719
2720 @table @kbd
2721 @item G M-n
2722 @itemx M-n
2723 @kindex M-n (Summary)
2724 @kindex G M-n (Summary)
2725 @findex gnus-summary-next-unread-subject
2726 Go to the next summary line of an unread article
2727 (@code{gnus-summary-next-unread-subject}). 
2728
2729 @item G M-p
2730 @itemx M-p
2731 @kindex M-p (Summary)
2732 @kindex G M-p (Summary)
2733 @findex gnus-summary-prev-unread-subject
2734 Go to the previous summary line of an unread article
2735 (@code{gnus-summary-prev-unread-subject}). 
2736
2737 @item G j
2738 @itemx j
2739 @kindex j (Summary)
2740 @kindex G j (Summary)
2741 @findex gnus-summary-goto-article
2742 Ask for an article number and then go that article
2743 (@code{gnus-summary-goto-article}). 
2744
2745 @item G g
2746 @kindex G g (Summary)
2747 @findex gnus-summary-goto-subject
2748 Ask for an article number and then go the summary line of that article
2749 (@code{gnus-summary-goto-subject}).
2750 @end table
2751
2752 If Gnus asks you to press a key to confirm going to the next group, you
2753 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
2754 buffer, searching for the next group to read without actually returning
2755 to the group buffer.
2756
2757 Variables related to summary movement:
2758
2759 @table @code
2760
2761 @vindex gnus-auto-select-next
2762 @item gnus-auto-select-next
2763 If you are at the end of the group and issue one of the movement
2764 commands, Gnus will offer to go to the next group.  If this variable is
2765 @code{t} and the next group is empty, Gnus will exit summary mode and
2766 return to the group buffer.  If this variable is neither @code{t} nor
2767 @code{nil}, Gnus will select the next group, no matter whether it has
2768 any unread articles or not.  As a special case, if this variable is
2769 @code{quietly}, Gnus will select the next group without asking for
2770 confirmation.  If this variable is @code{almost-quietly}, the same will
2771 happen only if you are located on the last article in the group.
2772 Finally, if this variable is @code{slightly-quietly}, the @kbd{Z n}
2773 command will go to the next group without confirmation.  Also
2774 @pxref{Group Levels}.
2775
2776 @item gnus-auto-select-same
2777 @vindex gnus-auto-select-same
2778 If non-@code{nil}, all the movement commands will try to go to the next
2779 article with the same subject as the current.  This variable is not
2780 particularly useful if you use a threaded display.
2781
2782 @item gnus-summary-check-current
2783 @vindex gnus-summary-check-current
2784 If non-@code{nil}, all the ``unread'' movement commands will not proceed
2785 to the next (or previous) article if the current article is unread.
2786 Instead, they will choose the current article.
2787
2788 @item gnus-auto-center-summary
2789 @vindex gnus-auto-center-summary
2790 If non-@code{nil}, Gnus will keep the point in the summary buffer
2791 centered at all times.  This makes things quite tidy, but if you have a
2792 slow network connection, or simply do not like this un-Emacsism, you can
2793 set this variable to @code{nil} to get the normal Emacs scrolling
2794 action.  This will also inhibit horizontal re-centering of the summary
2795 buffer, which might make it more inconvenient to read extremely long
2796 threads.
2797
2798 @end table
2799
2800
2801 @node Choosing Articles
2802 @section Choosing Articles
2803 @cindex selecting articles
2804
2805 None of the following movement commands understand the numeric prefix,
2806 and they all select and display an article.
2807
2808 @table @kbd
2809 @item SPACE
2810 @kindex SPACE (Summary)
2811 @findex gnus-summary-next-page
2812 Select the current article, or, if that one's read already, the next
2813 unread article (@code{gnus-summary-next-page}).
2814
2815 @item G n
2816 @itemx n
2817 @kindex n (Summary)
2818 @kindex G n (Summary)
2819 @findex gnus-summary-next-unread-article
2820 Go to next unread article (@code{gnus-summary-next-unread-article}).
2821
2822 @item G p
2823 @itemx p
2824 @kindex p (Summary)
2825 @findex gnus-summary-prev-unread-article
2826 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
2827
2828 @item G N
2829 @itemx N
2830 @kindex N (Summary)
2831 @kindex G N (Summary)
2832 @findex gnus-summary-next-article
2833 Go to the next article (@code{gnus-summary-next-article}).
2834
2835 @item G P
2836 @itemx P
2837 @kindex P (Summary)
2838 @kindex G P (Summary)
2839 @findex gnus-summary-prev-article
2840 Go to the previous article (@code{gnus-summary-prev-article}).
2841
2842 @item G C-n
2843 @kindex G C-n (Summary)
2844 @findex gnus-summary-next-same-subject
2845 Go to the next article with the same subject
2846 (@code{gnus-summary-next-same-subject}). 
2847
2848 @item G C-p
2849 @kindex G C-p (Summary)
2850 @findex gnus-summary-prev-same-subject
2851 Go to the previous article with the same subject
2852 (@code{gnus-summary-prev-same-subject}). 
2853
2854 @item G f
2855 @itemx .
2856 @kindex G f  (Summary)
2857 @kindex .  (Summary)
2858 @findex gnus-summary-first-unread-article
2859 Go to the first unread article
2860 (@code{gnus-summary-first-unread-article}).
2861
2862 @item G b
2863 @itemx ,
2864 @kindex G b (Summary)
2865 @kindex , (Summary)
2866 @findex gnus-summary-best-unread-article
2867 Go to the article with the highest score
2868 (@code{gnus-summary-best-unread-article}). 
2869
2870 @item G l
2871 @itemx l
2872 @kindex l (Summary)
2873 @kindex G l (Summary)
2874 @findex gnus-summary-goto-last-article
2875 Go to the previous article read (@code{gnus-summary-goto-last-article}).
2876
2877 @item G p
2878 @kindex G p (Summary)
2879 @findex gnus-summary-pop-article
2880 Pop an article off the summary history and go to this article
2881 (@code{gnus-summary-pop-article}).  This command differs from the
2882 command above in that you can pop as many previous articles off the
2883 history as you like.
2884 @end table
2885
2886 Some variables that are relevant for moving and selecting articles:
2887
2888 @table @code
2889 @item gnus-auto-extend-newsgroup
2890 @vindex gnus-auto-extend-newsgroup
2891 All the movement commands will try to go to the previous (or next)
2892 article, even if that article isn't displayed in the Summary buffer if
2893 this variable is non-@code{nil}.  Gnus will then fetch the article from
2894 the server and display it in the article buffer.
2895
2896 @item gnus-select-article-hook
2897 @vindex gnus-select-article-hook
2898 This hook is called whenever an article is selected.  By default it
2899 exposes any threads hidden under the selected article.
2900
2901 @item gnus-mark-article-hook
2902 @vindex gnus-mark-article-hook
2903 @findex gnus-summary-mark-unread-as-read
2904 @findex gnus-summary-mark-read-and-unread-as-read
2905 @findex gnus-unread-mark
2906 This hook is called whenever an article is selected.  It is intended to
2907 be used for marking articles as read.  The default value is
2908 @code{gnus-summary-mark-read-and-unread-as-read}, and will change the
2909 mark of almost any article you read to @code{gnus-unread-mark}.  The
2910 only articles not affected by this function are ticked, dormant, and
2911 expirable articles.  If you'd instead like to just have unread articles
2912 marked as read, you can use @code{gnus-summary-mark-unread-as-read}
2913 instead.  It will leave marks like @code{gnus-low-score-mark},
2914 @code{gnus-del-mark} (and so on) alone.
2915
2916 @end table
2917
2918
2919 @node Paging the Article
2920 @section Scrolling the Article
2921 @cindex article scrolling
2922
2923 @table @kbd
2924
2925 @item SPACE
2926 @kindex SPACE (Summary)
2927 @findex gnus-summary-next-page
2928 Pressing @kbd{SPACE} will scroll the current article forward one page,
2929 or, if you have come to the end of the current article, will choose the
2930 next article (@code{gnus-summary-next-page}).
2931
2932 @item DEL
2933 @kindex DEL (Summary)
2934 @findex gnus-summary-prev-page
2935 Scroll the current article back one page (@code{gnus-summary-prev-page}). 
2936
2937 @item RET
2938 @kindex RET (Summary)
2939 @findex gnus-summary-scroll-up
2940 Scroll the current article one line forward
2941 (@code{gnus-summary-scroll-up}).
2942
2943 @item A <
2944 @itemx <
2945 @kindex < (Summary)
2946 @kindex A < (Summary)
2947 @findex gnus-summary-beginning-of-article
2948 Scroll to the beginning of the article
2949 (@code{gnus-summary-beginning-of-article}).
2950
2951 @item A >
2952 @itemx >
2953 @kindex > (Summary)
2954 @kindex A > (Summary)
2955 @findex gnus-summary-end-of-article
2956 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
2957
2958 @item A s 
2959 @kindex A s (Summary)
2960 @findex gnus-summary-isearch-article
2961 Perform an isearch in the article buffer
2962 (@code{gnus-summary-isearch-article}). 
2963
2964 @end table
2965
2966
2967 @node Reply Followup and Post
2968 @section Reply, Followup and Post
2969
2970 @menu
2971 * Summary Mail Commands::            Sending mail.
2972 * Summary Post Commands::            Sending news.
2973 * Summary Mail and Post Commands::   Sending both news and mail.
2974 @end menu
2975
2976
2977 @node Summary Mail Commands
2978 @subsection Summary Mail Commands
2979 @cindex mail
2980 @cindex composing mail
2981
2982 Commands for composing a mail message:
2983
2984 @table @kbd
2985
2986 @item S r
2987 @itemx r
2988 @kindex S r (Summary)
2989 @kindex r (Summary)
2990 @findex gnus-summary-reply
2991 Mail a reply to the author of the current article
2992 (@code{gnus-summary-reply}). 
2993
2994 @item S R
2995 @itemx R
2996 @kindex R (Summary)
2997 @kindex S R (Summary)
2998 @findex gnus-summary-reply-with-original
2999 Mail a reply to the author of the current article and include the
3000 original message (@code{gnus-summary-reply-with-original}).  This
3001 command uses the process/prefix convention.
3002
3003 @item S o m
3004 @kindex S o m (Summary)
3005 @findex gnus-summary-mail-forward
3006 Forward the current article to some other person
3007 (@code{gnus-summary-mail-forward}). 
3008
3009 @item S o p
3010 @kindex S o p (Summary)
3011 @findex gnus-summary-post-forward
3012 Forward the current article to a newsgroup
3013 (@code{gnus-summary-post-forward}).
3014
3015 @item S m
3016 @itemx m
3017 @kindex m (Summary)
3018 @kindex S m (Summary)
3019 @findex gnus-summary-mail-other-window
3020 Send a mail to some other person
3021 (@code{gnus-summary-mail-other-window}).
3022
3023 @item S D b
3024 @kindex S D b (Summary)
3025 @findex gnus-summary-resend-bounced-mail
3026 @vindex gnus-bounced-headers-junk
3027 @cindex bouncing mail
3028 If you have sent a mail, but the mail was bounced back to you for some
3029 reason (wrong address, transient failure), you can use this command to
3030 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
3031 will be popped into a mail buffer where you can edit the headers before
3032 sending the mail off again.  The headers that match the regexp
3033 @code{gnus-bounced-headers-junk} (default @samp{^Received:}) are
3034 automatically deleted first.  If you give a prefix to this command, and
3035 the bounced mail is a reply to some other mail, Gnus will try to fetch
3036 that mail and display it for easy perusal of its headers.  This might
3037 very well fail, though.
3038
3039 @item S D r
3040 @kindex S D r (Summary)
3041 @findex gnus-summary-resend-message
3042 @vindex gnus-ignored-resent-headers
3043 Not to be confused with the previous command,
3044 @code{gnus-summary-resend-message} will prompt you for an address to
3045 send the current message off to, and then send it to that place.  The
3046 headers of the message won't be altered---but lots of headers that say
3047 @code{Resent-To}, @code{Resent-From} and so on will be added.  This
3048 means that you actually send a mail to someone that has a @code{To}
3049 header that (probably) points to yourself.  This will confuse people.
3050 So, natcherly you'll only do that if you're really eVIl.  All old
3051 headers that match the regular expression
3052 @code{gnus-ignored-resent-headers} will be deleted before resending the
3053 message.  The default is @samp{"^Return-receipt"}.
3054
3055 This command is mainly used if you have several accounts and want to
3056 ship a mail to a different account of yours.  (If you're both
3057 @code{root} and @code{postmaster} and get a mail for @code{postmaster}
3058 to the @code{root} account, you may want to resend it to
3059 @code{postmaster}.  Ordnung muss sein!
3060
3061 @item S O m
3062 @kindex S O m (Summary)
3063 @findex gnus-uu-digest-mail-forward
3064 Digest the current series and forward the result using mail
3065 (@code{gnus-uu-digest-mail-forward}).  This command uses the
3066 process/prefix convention (@pxref{Process/Prefix}). 
3067
3068 @item S O p
3069 @kindex S O p (Summary)
3070 @findex gnus-uu-digest-post-forward
3071 Digest the current series and forward the result to a newsgroup
3072 (@code{gnus-uu-digest-mail-forward}).  
3073 @end table
3074
3075
3076 @node Summary Post Commands
3077 @subsection Summary Post Commands
3078 @cindex post
3079 @cindex composing news
3080
3081 Commands for posting an article:
3082
3083 @table @kbd
3084 @item S p
3085 @itemx a
3086 @kindex a (Summary)
3087 @kindex S p (Summary)
3088 @findex gnus-summary-post-news
3089 Post an article to the current group
3090 (@code{gnus-summary-post-news}).
3091
3092 @item S f
3093 @itemx f
3094 @kindex f (Summary)
3095 @kindex S f (Summary)
3096 @findex gnus-summary-followup
3097 Post a followup to the current article (@code{gnus-summary-followup}).
3098
3099 @item S F
3100 @itemx F
3101 @kindex S F (Summary)
3102 @kindex F (Summary)
3103 @findex gnus-summary-followup-with-original
3104 Post a followup to the current article and include the original message
3105 (@code{gnus-summary-followup-with-original}).   This command uses the
3106 process/prefix convention.
3107
3108 @item S u
3109 @kindex S u (Summary)
3110 @findex gnus-uu-post-news
3111 Uuencode a file, split it into parts, and post it as a series
3112 (@code{gnus-uu-post-news}). (@pxref{Uuencoding and Posting}). 
3113 @end table
3114
3115
3116 @node Summary Mail and Post Commands
3117 @subsection Summary Mail and Post Commands
3118 @cindex mail and post
3119 @cindex post and mail
3120
3121 Commands for sending mail and post at the same time:
3122
3123 @table @kbd
3124 @item S b
3125 @kindex S b (Summary)
3126 @findex gnus-summary-followup-and-reply
3127 Post a followup and send a reply to the current article
3128 (@code{gnus-summary-followup-and-reply}).
3129
3130 @item S B
3131 @kindex S B (Summary)
3132 @findex gnus-summary-followup-and-reply-with-original
3133 Post a followup and send a reply to the current article and include the
3134 original message (@code{gnus-summary-followup-and-reply-with-original}).
3135 This command uses the process/prefix convention.
3136 @end table
3137
3138
3139 @node Canceling and Superseding
3140 @section Canceling Articles
3141 @cindex canceling articles
3142 @cindex superseding articles
3143
3144 Have you ever written something, and then decided that you really,
3145 really, really wish you hadn't posted that?
3146
3147 Well, you can't cancel mail, but you can cancel posts.
3148
3149 @findex gnus-summary-cancel-article
3150 @kindex C (Summary)
3151 Find the article you wish to cancel (you can only cancel your own
3152 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
3153 c} (@code{gnus-summary-cancel-article}).  Your article will be
3154 canceled---machines all over the world will be deleting your article. 
3155
3156 Be aware, however, that not all sites honor cancels, so your article may
3157 live on here and there, while most sites will delete the article in
3158 question.
3159
3160 If you discover that you have made some mistakes and want to do some
3161 corrections, you can post a @dfn{superseding} article that will replace
3162 your original article.
3163
3164 @findex gnus-summary-supersede-article
3165 @kindex S (Summary)
3166 Go to the original article and press @kbd{S s}
3167 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
3168 where you can edit the article all you want before sending it off the
3169 usual way.
3170
3171 @vindex gnus-delete-supersedes-headers
3172 You probably want to delete some of the old headers before sending the
3173 superseding article---@code{Path} and @code{Date} are probably
3174 incorrect.  Set @code{gnus-delete-supersedes-headers} to a regexp to
3175 match the lines you want removed.  The default is
3176 @samp{^Path:\\|^Date}. 
3177
3178 The same goes for superseding as for canceling, only more so: Some
3179 sites do not honor superseding.  On those sites, it will appear that you
3180 have posted almost the same article twice.
3181
3182 If you have just posted the article, and change your mind right away,
3183 there is a trick you can use to cancel/supersede the article without
3184 waiting for the article to appear on your site first.  You simply return
3185 to the post buffer (which is called @code{*post-buf*}).  There you will
3186 find the article you just posted, with all the headers intact.  Change
3187 the @code{Message-ID} header to a @code{Cancel} or @code{Supersedes}
3188 header by substituting one of those words for @code{Message-ID}.  Then
3189 just press @kbd{C-c C-c} to send the article as you would do normally.
3190 The previous article will be canceled/superseded.
3191
3192 Just remember, kids: There is no 'c' in 'supersede'.
3193
3194
3195 @node Marking Articles
3196 @section Marking Articles
3197 @cindex article marking
3198 @cindex article ticking
3199 @cindex marks
3200
3201 There are several marks you can set on an article. 
3202
3203 You have marks that decide the @dfn{readedness} (whoo, neato-keano
3204 neologism ohoy!) of the article.  Alphabetic marks generally mean
3205 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
3206
3207 In addition, you also have marks that do not affect readedness.
3208
3209 @menu
3210 * Unread Articles::      Marks for unread articles.
3211 * Read Articles::        Marks for read articles.
3212 * Other Marks::          Marks that do not affect readedness.
3213 @end menu
3214
3215 @ifinfo
3216 There's a plethora of commands for manipulating these marks:
3217 @end ifinfo
3218
3219 @menu
3220 * Setting Marks::           How to set and remove marks.
3221 * Setting Process Marks::   How to mark articles for later processing.
3222 @end menu
3223
3224
3225 @node Unread Articles
3226 @subsection Unread Articles
3227
3228 The following marks mark articles as unread, in one form or other.
3229
3230 @vindex gnus-dormant-mark
3231 @vindex gnus-ticked-mark
3232 @table @samp
3233 @item !
3234 @dfn{Ticked articles} are articles that will remain visible always.  If
3235 you see an article that you find interesting, or you want to put off
3236 reading it, or replying to it, until sometime later, you'd typically
3237 tick it.  However, articles can be expired, so if you want to keep an
3238 article forever, you'll have to save it.  Ticked articles have a
3239 @samp{!} (@code{gnus-ticked-mark}) in the first column.
3240
3241 @item ?
3242 @vindex gnus-dormant-mark
3243 A @dfn{dormant} article is marked with a @samp{?}
3244 (@code{gnus-dormant-mark}), and will only appear in the summary buffer
3245 if there are followups to it.
3246
3247 @item SPACE
3248 @vindex gnus-unread-mark
3249 An @dfn{unread} article is marked with a @samp{SPACE}
3250 (@code{gnus-unread-mark}).  These are articles that haven't been read at
3251 all yet.
3252 @end table
3253
3254
3255 @node Read Articles
3256 @subsection Read Articles
3257 @cindex expirable mark
3258
3259 All the following marks mark articles as read.
3260
3261 @table @samp
3262
3263 @item r
3264 @vindex gnus-del-mark
3265 Articles that are marked as read.  They have a @samp{r}
3266 (@code{gnus-del-mark}) in the first column.  These are articles that the
3267 user has marked as read more or less manually.
3268
3269 @item R
3270 @vindex gnus-read-mark
3271 Articles that are actually read are marked with @samp{R}
3272 (@code{gnus-read-mark}). 
3273
3274 @item O
3275 @vindex gnus-ancient-mark
3276 Articles that were marked as read in previous sessions are now
3277 @dfn{old} and marked with @samp{O} (@code{gnus-ancient-mark}). 
3278
3279 @item K
3280 @vindex gnus-killed-mark
3281 Marked as killed (@code{gnus-killed-mark}).
3282
3283 @item X
3284 @vindex gnus-kill-file-mark
3285 Marked as killed by kill files (@code{gnus-kill-file-mark}).
3286
3287 @item Y
3288 @vindex gnus-low-score-mark
3289 Marked as read by having a too low score (@code{gnus-low-score-mark}).
3290
3291 @item C
3292 @vindex gnus-catchup-mark
3293 Marked as read by a catchup (@code{gnus-catchup-mark}).
3294
3295 @item G
3296 @vindex gnus-canceled-mark
3297 Canceled article (@code{gnus-canceled-mark})
3298
3299 @item F
3300 @vindex gnus-souped-mark
3301 @sc{SOUP}ed article (@code{gnus-souped-mark}).
3302
3303 @item Q
3304 @vindex gnus-sparse-mark
3305 Sparsely reffed article (@code{gnus-sparse-mark}).
3306 @end table
3307
3308 All these marks just mean that the article is marked as read, really.
3309 They are interpreted differently by the adaptive scoring scheme,
3310 however.
3311
3312 One more special mark, though:
3313
3314 @table @samp
3315 @item E
3316 @vindex gnus-expirable-mark
3317 You can also mark articles as @dfn{expirable} (or have them marked as
3318 such automatically).  That doesn't make much sense in normal groups,
3319 because a user does not control the expiring of news articles, but in
3320 mail groups, for instance, articles that are marked as @dfn{expirable}
3321 can be deleted by Gnus at any time.  Expirable articles are marked with
3322 @samp{E} (@code{gnus-expirable-mark}).
3323 @end table
3324
3325
3326 @node Other Marks
3327 @subsection Other Marks
3328 @cindex process mark
3329 @cindex bookmarks
3330
3331 There are some marks that have nothing to do with whether the article is
3332 read or not.
3333
3334 @itemize @bullet
3335
3336 @item 
3337 You can set a bookmark in the current article.  Say you are reading a
3338 long thesis on cats' urinary tracts, and have to go home for dinner
3339 before you've finished reading the thesis.  You can then set a bookmark
3340 in the article, and Gnus will jump to this bookmark the next time it
3341 encounters the article.
3342
3343 @item
3344 @vindex gnus-replied-mark
3345 All articles that you have replied to or made a followup to (i.e., have
3346 answered) will be marked with an @samp{A} in the second column
3347 (@code{gnus-replied-mark}).
3348
3349 @item 
3350 @vindex gnus-cached-mark
3351 Articles that are stored in the article cache will be marked with an
3352 @samp{*} in the second column (@code{gnus-cached-mark}).
3353
3354 @item 
3355 @vindex gnus-saved-mark
3356 Articles that are ``saved'' (in some manner or other; not necessarily
3357 religiously) are marked with an @samp{S} in the second column
3358 (@code{gnus-saved-mark}.
3359
3360 @item 
3361 @vindex gnus-not-empty-thread-mark
3362 @vindex gnus-empty-thread-mark
3363 It the @samp{%e} spec is used, the presence of threads or not will be
3364 marked with @code{gnus-not-empty-thread-mark} and
3365 @code{gnus-empty-thread-mark} in the third column, respectively.
3366
3367 @item 
3368 @vindex gnus-process-mark
3369 Finally we have the @dfn{process mark} (@code{gnus-process-mark}.  A
3370 variety of commands react to the presence of the process mark.  For
3371 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
3372 all articles that have been marked with the process mark.  Articles
3373 marked with the process mark have a @samp{#} in the second column.
3374
3375 @end itemize
3376
3377 You might have noticed that most of these ``non-readedness'' marks
3378 appear in the second column by default.  So if you have a cached, saved,
3379 replied article that you have process-marked, what will that look like?
3380
3381 Nothing much.  The precedence rules go as follows: process -> cache ->
3382 replied -> saved.  So if the article is in the cache and is replied,
3383 you'll only see the cache mark and not the replied mark.
3384
3385
3386 @node Setting Marks
3387 @subsection Setting Marks
3388 @cindex setting marks
3389
3390 All the marking commands understand the numeric prefix.
3391
3392 @table @kbd
3393 @item M t
3394 @itemx !
3395 @kindex ! (Summary)
3396 @kindex M t (Summary)
3397 @findex gnus-summary-tick-article-forward
3398 Tick the current article (@code{gnus-summary-tick-article-forward}).
3399
3400 @item M ?
3401 @itemx ?
3402 @kindex ? (Summary)
3403 @kindex M ? (Summary)
3404 @findex gnus-summary-mark-as-dormant
3405 Mark the current article as dormant
3406 (@code{gnus-summary-mark-as-dormant}).
3407
3408 @item M d
3409 @itemx d
3410 @kindex M d (Summary)
3411 @kindex d (Summary)
3412 @findex gnus-summary-mark-as-read-forward
3413 Mark the current article as read
3414 (@code{gnus-summary-mark-as-read-forward}).
3415
3416 @item M k
3417 @itemx k
3418 @kindex k (Summary)
3419 @kindex M k (Summary)
3420 @findex gnus-summary-kill-same-subject-and-select
3421 Mark all articles that have the same subject as the current one as read,
3422 and then select the next unread article
3423 (@code{gnus-summary-kill-same-subject-and-select}).
3424
3425 @item M K
3426 @itemx C-k
3427 @kindex M K (Summary)
3428 @kindex C-k (Summary)
3429 @findex gnus-summary-kill-same-subject
3430 Mark all articles that have the same subject as the current one as read
3431 (@code{gnus-summary-kill-same-subject}).  
3432
3433 @item M C
3434 @kindex M C (Summary)
3435 @findex gnus-summary-catchup
3436 Mark all unread articles in the group as read
3437 (@code{gnus-summary-catchup}).
3438
3439 @item M C-c
3440 @kindex M C-c (Summary)
3441 @findex gnus-summary-catchup-all
3442 Mark all articles in the group as read---even the ticked and dormant
3443 articles (@code{gnus-summary-catchup-all}).
3444
3445 @item M H
3446 @kindex M H (Summary)
3447 @findex gnus-summary-catchup-to-here
3448 Catchup the current group to point
3449 (@code{gnus-summary-catchup-to-here}). 
3450
3451 @item C-w
3452 @kindex C-w (Summary)
3453 @findex gnus-summary-mark-region-as-read
3454 Mark all articles between point and mark as read
3455 (@code{gnus-summary-mark-region-as-read}). 
3456
3457 @item M V k
3458 @kindex M V k (Summary)
3459 @findex gnus-summary-kill-below
3460 Kill all articles with scores below the default score (or below the
3461 numeric prefix) (@code{gnus-summary-kill-below}).
3462
3463 @item M c
3464 @itemx M-u
3465 @kindex M c (Summary)
3466 @kindex M-u (Summary)
3467 @findex gnus-summary-clear-mark-forward
3468 Clear all readedness-marks from the current article
3469 (@code{gnus-summary-clear-mark-forward}).
3470
3471 @item M e
3472 @itemx E
3473 @kindex M e (Summary)
3474 @kindex E (Summary)
3475 @findex gnus-summary-mark-as-expirable
3476 Mark the current article as expirable
3477 (@code{gnus-summary-mark-as-expirable}).
3478
3479 @item M b
3480 @kindex M b (Summary)
3481 @findex gnus-summary-set-bookmark
3482 Set a bookmark in the current article
3483 (@code{gnus-summary-set-bookmark}).
3484
3485 @item M B
3486 @kindex M B (Summary)
3487 @findex gnus-summary-remove-bookmark
3488 Remove the bookmark from the current article
3489 (@code{gnus-summary-remove-bookmark}).
3490
3491 @item M V c
3492 @kindex M V c (Summary)
3493 @findex gnus-summary-clear-above
3494 Clear all marks from articles with scores over the default score (or
3495 over the numeric prefix) (@code{gnus-summary-clear-above}).
3496
3497 @item M V u
3498 @kindex M V u (Summary)
3499 @findex gnus-summary-tick-above
3500 Tick all articles with scores over the default score (or over the
3501 numeric prefix) (@code{gnus-summary-tick-above}).
3502
3503 @item M V m
3504 @kindex M V m (Summary)
3505 @findex gnus-summary-mark-above
3506 Prompt for a mark, and mark all articles with scores over the default
3507 score (or over the numeric prefix) with this mark
3508 (@code{gnus-summary-clear-above}).
3509 @end table
3510
3511 @vindex gnus-summary-goto-unread
3512 The @code{gnus-summary-goto-unread} variable controls what action should
3513 be taken after setting a mark.  If non-@code{nil}, point will move to
3514 the next/previous unread article.  If @code{nil}, point will just move
3515 one line up or down.  As a special case, if this variable is
3516 @code{never}, all the marking commands as well as other commands (like
3517 @kbd{SPACE}) will move to the next article, whether it is unread or not.
3518 The default is @code{t}.
3519
3520
3521 @node Setting Process Marks
3522 @subsection Setting Process Marks
3523 @cindex setting process marks
3524
3525 @table @kbd
3526
3527 @item M P p
3528 @itemx #
3529 @kindex # (Summary)
3530 @kindex M P p (Summary)
3531 @findex gnus-summary-mark-as-processable
3532 Mark the current article with the process mark
3533 (@code{gnus-summary-mark-as-processable}). 
3534 @findex gnus-summary-unmark-as-processable
3535
3536 @item M P u 
3537 @itemx M-#
3538 @kindex M P u (Summary)
3539 @kindex M-# (Summary)
3540 Remove the process mark, if any, from the current article
3541 (@code{gnus-summary-unmark-as-processable}).
3542
3543 @item M P U
3544 @kindex M P U (Summary)
3545 @findex gnus-summary-unmark-all-processable
3546 Remove the process mark from all articles
3547 (@code{gnus-summary-unmark-all-processable}). 
3548
3549 @item M P R
3550 @kindex M P R (Summary)
3551 @findex gnus-uu-mark-by-regexp
3552 Mark articles by a regular expression (@code{gnus-uu-mark-by-regexp}). 
3553
3554 @item M P r
3555 @kindex M P r (Summary)
3556 @findex gnus-uu-mark-region
3557 Mark articles in region (@code{gnus-uu-mark-region}).
3558
3559 @item M P t
3560 @kindex M P t (Summary)
3561 @findex gnus-uu-mark-thread
3562 Mark all articles in the current (sub)thread
3563 (@code{gnus-uu-mark-thread}).
3564
3565 @item M P T
3566 @kindex M P T (Summary)
3567 @findex gnus-uu-unmark-thread
3568 Unmark all articles in the current (sub)thread
3569 (@code{gnus-uu-unmark-thread}).
3570
3571 @item M P v
3572 @kindex M P v (Summary)
3573 @findex gnus-uu-mark-over
3574 Mark all articles that have a score above the prefix argument
3575 (@code{gnus-uu-mark-over}).
3576
3577 @item M P s
3578 @kindex M P s (Summary)
3579 @findex gnus-uu-mark-series
3580 Mark all articles in the current series (@code{gnus-uu-mark-series}).
3581
3582 @item M P S
3583 @kindex M P S (Summary)
3584 @findex gnus-uu-mark-sparse
3585 Mark all series that have already had some articles marked
3586 (@code{gnus-uu-mark-sparse}).
3587
3588 @item M P a
3589 @kindex M P a (Summary)
3590 @findex gnus-uu-mark-all
3591 Mark all articles in series order (@code{gnus-uu-mark-series}).
3592
3593 @item M P b
3594 @kindex M P b (Summary)
3595 @findex gnus-uu-mark-buffer
3596 Mark all articles in the buffer in the order they appear
3597 (@code{gnus-uu-mark-buffer}). 
3598 @end table
3599
3600
3601 @node Limiting
3602 @section Limiting
3603 @cindex limiting
3604
3605 It can be convenient to limit the summary buffer to just show some
3606 subset of the articles currently in the group.  The effect most limit
3607 commands have is to remove a few (or many) articles from the summary
3608 buffer. 
3609
3610 @table @kbd
3611
3612 @item / /
3613 @itemx / s
3614 @kindex / / (Summary)
3615 @findex gnus-summary-limit-to-subject
3616 Limit the summary buffer to articles that match some subject
3617 (@code{gnus-summary-limit-to-subject}). 
3618
3619 @item / a
3620 @kindex / a (Summary)
3621 @findex gnus-summary-limit-to-author
3622 Limit the summary buffer to articles that match some author
3623 (@code{gnus-summary-limit-to-author}).
3624
3625 @item / u
3626 @itemx x
3627 @kindex / u (Summary)
3628 @kindex x (Summary)
3629 @findex gnus-summary-limit-to-unread
3630 Limit the summary buffer to articles that are not marked as read
3631 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
3632 buffer to articles that are strictly unread.  This means that ticked and
3633 dormant articles will also be excluded.
3634
3635 @item / m
3636 @kindex / m (Summary)
3637 @findex gnus-summary-limit-to-marks
3638 Ask for a mark and then limit to all articles that have not been marked
3639 with that mark (@code{gnus-summary-limit-to-marks}).
3640
3641 @item / n
3642 @kindex / n (Summary)
3643 @findex gnus-summary-limit-to-articles
3644 Limit the summary buffer to the current article
3645 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
3646 convention (@pxref{Process/Prefix}).
3647
3648 @item / w
3649 @kindex / w (Summary)
3650 @findex gnus-summary-pop-limit
3651 Pop the previous limit off the stack and restore it
3652 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
3653 the stack.
3654
3655 @item / v
3656 @kindex / v (Summary)
3657 @findex gnus-summary-limit-to-score
3658 Limit the summary buffer to articles that have a score at or above some
3659 score (@code{gnus-summary-limit-to-score}).
3660
3661 @item / E
3662 @itemx M S
3663 @kindex M S (Summary)
3664 @kindex / E (Summary)
3665 @findex gnus-summary-limit-include-expunged
3666 Display all expunged articles
3667 (@code{gnus-summary-limit-include-expunged}). 
3668
3669 @item / D
3670 @kindex / D (Summary)
3671 @findex gnus-summary-limit-include-dormant
3672 Display all dormant articles (@code{gnus-summary-limit-include-dormant}).
3673
3674 @item / d
3675 @kindex / d (Summary)
3676 @findex gnus-summary-limit-exclude-dormant
3677 Hide all dormant articles (@code{gnus-summary-limit-exclude-dormant}).
3678
3679 @item / c
3680 @kindex / c (Summary)
3681 @findex gnus-summary-limit-exclude-childless-dormant
3682 Hide all dormant articles that have no children
3683 (@code{gnus-summary-limit-exclude-childless-dormant}). 
3684
3685 @item / C
3686 @kindex / C (Summary)
3687 @findex gnus-summary-limit-mark-excluded-as-read
3688 Mark all excluded unread articles as read
3689 (@code{gnus-summary-limit-mark-excluded-as-read}).   If given a prefix,
3690 also mark excluded ticked and dormant articles as read.
3691
3692 @end table
3693
3694
3695 @node Threading
3696 @section Threading
3697 @cindex threading
3698 @cindex article threading
3699
3700 Gnus threads articles by default.  @dfn{To thread} is to put replies to
3701 articles directly after the articles they reply to---in a hierarchical
3702 fashion.
3703
3704 @menu
3705 * Customizing Threading::     Variables you can change to affect the threading.
3706 * Thread Commands::           Thread based commands in the summary buffer.
3707 @end menu
3708
3709
3710 @node Customizing Threading
3711 @subsection Customizing Threading
3712 @cindex customizing threading
3713 @cindex <
3714 @cindex >
3715
3716 @table @code
3717
3718 @item gnus-show-threads
3719 @vindex gnus-show-threads
3720 If this variable is @code{nil}, no threading will be done, and all of
3721 the rest of the variables here will have no effect.  Turning threading
3722 off will speed group selection up a bit, but it is sure to make reading
3723 slower and more awkward.
3724
3725 @item gnus-fetch-old-headers
3726 @vindex gnus-fetch-old-headers
3727 If non-@code{nil}, Gnus will attempt to build old threads by fetching
3728 more old headers---headers to articles that are marked as read.  If you
3729 would like to display as few summary lines as possible, but still
3730 connect as many loose threads as possible, you should set this variable
3731 to @code{some} or a number.  If you set it to a number, no more than
3732 that number of extra old headers will be fetched.  In either case,
3733 fetching old headers only works if the backend you are using carries
3734 overview files---this would normally be @code{nntp}, @code{nnspool} and
3735 @code{nnml}.  Also remember that if the root of the thread has been
3736 expired by the server, there's not much Gnus can do about that.
3737
3738 @item gnus-build-sparse-threads
3739 @vindex gnus-build-sparse-threads
3740 Fetching old headers can be slow.  A low-rent similar effect can be
3741 gotten by setting this variable to @code{some}.  Gnus will then look at
3742 the complete @code{References} headers of all articles and try to string
3743 articles that belong in the same thread together.  This will leave
3744 @dfn{gaps} in the threading display where Gnus guesses that an article
3745 is missing from the thread.  (These gaps appear like normal summary
3746 lines.  If you select a gap, Gnus will try to fetch the article in
3747 question.)  If this variable is @code{t}, Gnus will display all these
3748 ``gaps'' without regard for whether they are useful for completing the
3749 thread or not.  Finally, if this variable is @code{more}, Gnus won't cut
3750 off sparse leaf nodes that don't lead anywhere.  This variable is
3751 @code{nil} by default.
3752
3753 @item gnus-summary-gather-subject-limit
3754 @vindex gnus-summary-gather-subject-limit
3755 Loose threads are gathered by comparing subjects of articles.  If this
3756 variable is @code{nil}, Gnus requires an exact match between the
3757 subjects of the loose threads before gathering them into one big
3758 super-thread.  This might be too strict a requirement, what with the
3759 presence of stupid newsreaders that chop off long subjects lines.  If
3760 you think so, set this variable to, say, 20 to require that only the
3761 first 20 characters of the subjects have to match.  If you set this
3762 variable to a really low number, you'll find that Gnus will gather
3763 everything in sight into one thread, which isn't very helpful.
3764
3765 @cindex fuzzy article gathering
3766 If you set this variable to the special value @code{fuzzy}, Gnus will
3767 use a fuzzy string comparison algorithm on the subjects.
3768
3769 @item gnus-simplify-subject-fuzzy-regexp
3770 @vindex gnus-simplify-subject-fuzzy-regexp
3771 This can either be a regular expression or list of regular expressions
3772 that match strings that will be removed from subjects if fuzzy subject
3773 simplification is used.
3774
3775 @item gnus-simplify-ignored-prefixes
3776 @vindex gnus-simplify-ignored-prefixes
3777 If you set @code{gnus-summary-gather-subject-limit} to something as low
3778 as 10, you might consider setting this variable to something sensible:
3779
3780 @c Written by Michael Ernst <mernst@cs.rice.edu>
3781 @lisp
3782 (setq gnus-simplify-ignored-prefixes
3783       (concat 
3784        "\\`\\[?\\("
3785        (mapconcat 'identity
3786                   '("looking"
3787                      "wanted" "followup" "summary\\( of\\)?"
3788                      "help" "query" "problem" "question" 
3789                      "answer" "reference" "announce"
3790                      "How can I" "How to" "Comparison of"
3791                      ;; ...
3792                      )
3793                   "\\|")
3794                   "\\)\\s *\\("
3795                   (mapconcat 'identity
3796                              '("for" "for reference" "with" "about")
3797                              "\\|")
3798                   "\\)?\\]?:?[ \t]*"))
3799 @end lisp
3800
3801 All words that match this regexp will be removed before comparing two
3802 subjects. 
3803
3804 @item gnus-summary-gather-exclude-subject
3805 @vindex gnus-summary-gather-exclude-subject
3806 Since loose thread gathering is done on subjects only, that might lead
3807 to many false hits, especially with certain common subjects like
3808 @samp{} and @samp{(none)}.  To make the situation slightly better,
3809 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
3810 what subjects should be excluded from the gathering process.  The
3811 default is @samp{^ *$\\|^(none)$}.  
3812
3813 @item gnus-summary-thread-gathering-function
3814 @vindex gnus-summary-thread-gathering-function
3815 Gnus gathers threads by looking at @code{Subject} headers.  This means
3816 that totally unrelated articles may end up in the same ``thread'', which
3817 is confusing.  An alternate approach is to look at all the
3818 @code{Message-ID}s in all the @code{References} headers to find matches.
3819 This will ensure that no gathered threads ever includes unrelated
3820 articles, but it's also means that people who have posted with broken
3821 newsreaders won't be gathered properly.  The choice is yours---plague or
3822 cholera:
3823
3824 @table @code
3825 @item gnus-gather-threads-by-subject
3826 @findex gnus-gather-threads-by-subject
3827 This function is the default gathering function and looks at
3828 @code{Subject}s exclusively.
3829
3830 @item gnus-gather-threads-by-references
3831 @findex gnus-gather-threads-by-references
3832 This function looks at @code{References} headers exclusively.
3833 @end table
3834
3835 If you want to test gathering by @code{References}, you could say
3836 something like:
3837
3838 @lisp
3839 (setq gnus-summary-thread-gathering-function
3840       'gnus-gather-threads-by-references)
3841 @end lisp
3842
3843 @item gnus-summary-make-false-root
3844 @vindex gnus-summary-make-false-root
3845 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
3846 and create a dummy root at the top.  (Wait a minute.  Root at the top?
3847 Yup.)  Loose subtrees occur when the real root has expired, or you've
3848 read or killed the root in a previous session.
3849
3850 When there is no real root of a thread, Gnus will have to fudge
3851 something.  This variable says what fudging method Gnus should use.
3852 There are four possible values:
3853
3854 @cindex adopting articles
3855
3856 @table @code
3857
3858 @item adopt
3859 Gnus will make the first of the orphaned articles the parent.  This
3860 parent will adopt all the other articles.  The adopted articles will be
3861 marked as such by pointy brackets (@samp{<>}) instead of the standard
3862 square brackets (@samp{[]}).  This is the default method.
3863
3864 @item dummy
3865 @vindex gnus-summary-dummy-line-format
3866 Gnus will create a dummy summary line that will pretend to be the
3867 parent.  This dummy line does not correspond to any real article, so
3868 selecting it will just select the first real article after the dummy
3869 article.  @code{gnus-summary-dummy-line-format} is used to specify the
3870 format of the dummy roots.  It accepts only one format spec:  @samp{S},
3871 which is the subject of the article.  @xref{Formatting Variables}.
3872
3873 @item empty
3874 Gnus won't actually make any article the parent, but simply leave the
3875 subject field of all orphans except the first empty.  (Actually, it will
3876 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
3877 Buffer Format}).)
3878
3879 @item none
3880 Don't make any article parent at all.  Just gather the threads and
3881 display them after one another.
3882
3883 @item nil
3884 Don't gather loose threads.
3885 @end table
3886
3887 @item gnus-thread-hide-subtree
3888 @vindex gnus-thread-hide-subtree
3889 If non-@code{nil}, all threads will be hidden when the summary buffer is
3890 generated.
3891
3892 @item gnus-thread-hide-killed
3893 @vindex gnus-thread-hide-killed
3894 if you kill a thread and this variable is non-@code{nil}, the subtree
3895 will be hidden.
3896
3897 @item gnus-thread-ignore-subject
3898 @vindex gnus-thread-ignore-subject
3899 Sometimes somebody changes the subject in the middle of a thread.  If
3900 this variable is non-@code{nil}, the subject change is ignored.  If it
3901 is @code{nil}, which is the default, a change in the subject will result
3902 in a new thread.
3903
3904 @item gnus-thread-indent-level
3905 @vindex gnus-thread-indent-level
3906 This is a number that says how much each sub-thread should be indented.
3907 The default is @code{4}.
3908 @end table
3909
3910
3911 @node Thread Commands
3912 @subsection Thread Commands
3913 @cindex thread commands
3914
3915 @table @kbd
3916
3917 @item T k
3918 @itemx M-C-k
3919 @kindex T k (Summary)
3920 @kindex M-C-k (Summary)
3921 @findex gnus-summary-kill-thread
3922 Mark all articles in the current sub-thread as read
3923 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
3924 remove all marks instead.  If the prefix argument is negative, tick
3925 articles instead.
3926
3927 @item T l
3928 @itemx M-C-l
3929 @kindex T l (Summary)
3930 @kindex M-C-l (Summary)
3931 @findex gnus-summary-lower-thread
3932 Lower the score of the current thread
3933 (@code{gnus-summary-lower-thread}). 
3934
3935 @item T i
3936 @kindex T i (Summary)
3937 @findex gnus-summary-raise-thread
3938 Increase the score of the current thread
3939 (@code{gnus-summary-raise-thread}).
3940
3941 @item T #
3942 @kindex T # (Summary)
3943 @findex gnus-uu-mark-thread
3944 Set the process mark on the current thread
3945 (@code{gnus-uu-mark-thread}).
3946
3947 @item T M-#
3948 @kindex T M-# (Summary)
3949 @findex gnus-uu-unmark-thread
3950 Remove the process mark from the current thread
3951 (@code{gnus-uu-unmark-thread}).
3952
3953 @item T T
3954 @kindex T T (Summary)
3955 @findex gnus-summary-toggle-threads
3956 Toggle threading (@code{gnus-summary-toggle-threads}).
3957
3958 @item T s
3959 @kindex T s (Summary)
3960 @findex gnus-summary-show-thread
3961 Expose the thread hidden under the current article, if any
3962 (@code{gnus-summary-show-thread}).
3963
3964 @item T h
3965 @kindex T h (Summary)
3966 @findex gnus-summary-hide-thread
3967 Hide the current (sub)thread (@code{gnus-summary-hide-thread}).
3968
3969 @item T S
3970 @kindex T S (Summary)
3971 @findex gnus-summary-show-all-threads
3972 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
3973
3974 @item T H
3975 @kindex T H (Summary)
3976 @findex gnus-summary-hide-all-threads
3977 Hide all threads (@code{gnus-summary-hide-all-threads}).
3978
3979 @item T t
3980 @kindex T t (Summary)
3981 @findex gnus-summary-rethread-current
3982 Re-thread the thread the current article is part of
3983 (@code{gnus-summary-rethread-current}).  This works even when the
3984 summary buffer is otherwise unthreaded.
3985
3986 @item T ^
3987 @kindex T ^ (Summary)
3988 @findex gnus-summary-reparent-thread
3989 Make the current article the child of the marked (or previous) article
3990 (@code{gnus-summary-reparent-thread}.
3991
3992 @end table
3993
3994 The following commands are thread movement commands.  They all
3995 understand the numeric prefix.
3996
3997 @table @kbd
3998
3999 @item T n
4000 @kindex T n (Summary)
4001 @findex gnus-summary-next-thread
4002 Go to the next thread (@code{gnus-summary-next-thread}).
4003
4004 @item T p
4005 @kindex T p (Summary)
4006 @findex gnus-summary-prev-thread
4007 Go to the previous thread (@code{gnus-summary-prev-thread}).
4008
4009 @item T d
4010 @kindex T d (Summary)
4011 @findex gnus-summary-down-thread
4012 Descend the thread (@code{gnus-summary-down-thread}).
4013
4014 @item T u
4015 @kindex T u (Summary)
4016 @findex gnus-summary-up-thread
4017 Ascend the thread (@code{gnus-summary-up-thread}).
4018
4019 @item T o
4020 @kindex T o (Summary)
4021 @findex gnus-summary-top-thread
4022 Go to the top of the thread (@code{gnus-summary-top-thread}).
4023 @end table
4024
4025 @vindex gnus-thread-operation-ignore-subject 
4026 If you ignore subject while threading, you'll naturally end up with
4027 threads that have several different subjects in them.  If you then issue
4028 a command like `T k' (@code{gnus-summary-kill-thread}) you might not
4029 wish to kill the entire thread, but just those parts of the thread that
4030 have the same subject as the current article.  If you like this idea,
4031 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If is
4032 is non-@code{nil} (which it is by default), subjects will be ignored
4033 when doing thread commands.  If this variable is @code{nil}, articles in
4034 the same thread with different subjects will not be included in the
4035 operation in question.  If this variable is @code{fuzzy}, only articles
4036 that have subjects that are fuzzily equal will be included.
4037
4038
4039 @node Sorting
4040 @section Sorting
4041
4042 @findex gnus-thread-sort-by-total-score
4043 @findex gnus-thread-sort-by-date
4044 @findex gnus-thread-sort-by-score
4045 @findex gnus-thread-sort-by-subject
4046 @findex gnus-thread-sort-by-author
4047 @findex gnus-thread-sort-by-number
4048 @vindex gnus-thread-sort-functions
4049 If you are using a threaded summary display, you can sort the threads by
4050 setting @code{gnus-thread-sort-functions}, which is a list of functions.
4051 By default, sorting is done on article numbers.  Ready-made sorting
4052 predicate functions include @code{gnus-thread-sort-by-number},
4053 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-subject},
4054 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-score}, and
4055 @code{gnus-thread-sort-by-total-score}.
4056
4057 Each function takes two threads and return non-@code{nil} if the first
4058 thread should be sorted before the other.  Note that sorting really is
4059 normally done by looking only at the roots of each thread.  If you use
4060 more than one function, the primary sort key should be the last function
4061 in the list.  You should probably always include
4062 @code{gnus-thread-sort-by-number} in the list of sorting
4063 functions---preferably first.  This will ensure that threads that are
4064 equal with respect to the other sort criteria will be displayed in
4065 ascending article order.
4066
4067 If you would like to sort by score, then by subject, and finally by
4068 number, you could do something like:
4069
4070 @lisp
4071 (setq gnus-thread-sort-functions 
4072       '(gnus-thread-sort-by-number
4073         gnus-thread-sort-by-subject
4074         gnus-thread-sort-by-score))
4075 @end lisp
4076
4077 The threads that have highest score will be displayed first in the
4078 summary buffer.  When threads have the same score, they will be sorted
4079 alphabetically.  The threads that have the same score and the same
4080 subject will be sorted by number, which is (normally) the sequence in
4081 which the articles arrived.
4082
4083 If you want to sort by score and then reverse arrival order, you could
4084 say something like:
4085
4086 @lisp
4087 (setq gnus-thread-sort-functions
4088       '((lambda (t1 t2) 
4089           (not (gnus-thread-sort-by-number t1 t2)))
4090         gnus-thread-sort-by-score))
4091 @end lisp
4092
4093 @vindex gnus-thread-score-function
4094 The function in the @code{gnus-thread-score-function} variable (default
4095 @code{+}) is used for calculating the total score of a thread.  Useful
4096 functions might be @code{max}, @code{min}, or squared means, or whatever
4097 tickles your fancy.
4098
4099 @findex gnus-article-sort-functions
4100 @findex gnus-article-sort-by-date
4101 @findex gnus-article-sort-by-score
4102 @findex gnus-article-sort-by-subject
4103 @findex gnus-article-sort-by-author
4104 @findex gnus-article-sort-by-number
4105 If you are using an unthreaded display for some strange reason or other,
4106 you have to fiddle with the @code{gnus-article-sort-functions} variable.
4107 It is very similar to the @code{gnus-thread-sort-functions}, except that
4108 is uses slightly different functions for article comparison.  Available
4109 sorting predicate functions are @code{gnus-article-sort-by-number},
4110 @code{gnus-article-sort-by-author}, @code{gnus-article-sort-by-subject},
4111 @code{gnus-article-sort-by-date}, and @code{gnus-article-sort-by-score}.
4112
4113 If you want to sort an unthreaded summary display by subject, you could
4114 say something like:
4115
4116 @lisp
4117 (setq gnus-article-sort-functions 
4118       '(gnus-article-sort-by-number
4119         gnus-article-sort-by-subject))
4120 @end lisp
4121
4122
4123
4124 @node Asynchronous Fetching
4125 @section Asynchronous Article Fetching
4126 @cindex asynchronous article fetching
4127
4128 If you read your news from an @sc{nntp} server that's far away, the
4129 network latencies may make reading articles a chore.  You have to wait
4130 for a while after pressing @kbd{n} to go to the next article before the
4131 article appears.  Why can't Gnus just go ahead and fetch the article
4132 while you are reading the previous one? Why not, indeed.
4133
4134 First, some caveats.  There are some pitfalls to using asynchronous
4135 article fetching, especially the way Gnus does it.  
4136
4137 Let's say you are reading article 1, which is short, and article 2 is
4138 quite long, and you are not interested in reading that.  Gnus does not
4139 know this, so it goes ahead and fetches article 2.  You decide to read
4140 article 3, but since Gnus is in the process of fetching article 2, the
4141 connection is blocked.
4142
4143 To avoid these situations, Gnus will open two (count 'em two)
4144 connections to the server.  Some people may think this isn't a very nice
4145 thing to do, but I don't see any real alternatives.  Setting up that
4146 extra connection takes some time, so Gnus startup will be slower.
4147
4148 Gnus will fetch more articles than you will read.  This will mean that
4149 the link between your machine and the @sc{nntp} server will become more
4150 loaded than if you didn't use article pre-fetch.  The server itself will
4151 also become more loaded---both with the extra article requests, and the
4152 extra connection.
4153
4154 Ok, so now you know that you shouldn't really use this thing...  unless
4155 you really want to.
4156
4157 @vindex gnus-asynchronous
4158 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
4159 happen automatically.
4160
4161 @vindex nntp-async-number
4162 You can control how many articles that are to be pre-fetched by setting
4163 @code{nntp-async-number}.  This is five by default, which means that when
4164 you read an article in the group, @code{nntp} will pre-fetch the next
4165 five articles.  If this variable is @code{t}, @code{nntp} will pre-fetch
4166 all the articles that it can without bound.  If it is @code{nil}, no
4167 pre-fetching will be made.
4168
4169 @vindex gnus-asynchronous-article-function
4170 You may wish to create some sort of scheme for choosing which articles
4171 that @code{nntp} should consider as candidates for pre-fetching.  For
4172 instance, you may wish to pre-fetch all articles with high scores, and
4173 not pre-fetch low-scored articles.  You can do that by setting the
4174 @code{gnus-asynchronous-article-function}, which will be called with an
4175 alist where the keys are the article numbers.  Your function should
4176 return an alist where the articles you are not interested in have been
4177 removed.  You could also do sorting on article score and the like. 
4178
4179
4180 @node Article Caching
4181 @section Article Caching
4182 @cindex article caching
4183 @cindex caching
4184
4185 If you have an @emph{extremely} slow @sc{nntp} connection, you may
4186 consider turning article caching on.  Each article will then be stored
4187 locally under your home directory.  As you may surmise, this could
4188 potentially use @emph{huge} amounts of disk space, as well as eat up all
4189 your inodes so fast it will make your head swim.  In vodka.
4190
4191 Used carefully, though, it could be just an easier way to save articles.
4192
4193 @vindex gnus-use-long-file-name
4194 @vindex gnus-cache-directory
4195 @vindex gnus-use-cache
4196 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
4197 all articles that are ticked or marked as dormant will then be copied
4198 over to your local cache (@code{gnus-cache-directory}).  Whether this
4199 cache is flat or hierarchal is controlled by the
4200 @code{gnus-use-long-file-name} variable, as usual.
4201
4202 When re-select a ticked or dormant article, it will be fetched from the
4203 cache instead of from the server.  As articles in your cache will never
4204 expire, this might serve as a method of saving articles while still
4205 keeping them where they belong.  Just mark all articles you want to save
4206 as dormant, and don't worry.
4207
4208 When an article is marked as read, is it removed from the cache.
4209
4210 @vindex gnus-cache-remove-articles
4211 @vindex gnus-cache-enter-articles
4212 The entering/removal of articles from the cache is controlled by the
4213 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
4214 variables.  Both are lists of symbols.  The first is @code{(ticked
4215 dormant)} by default, meaning that ticked and dormant articles will be
4216 put in the cache.  The latter is @code{(read)} by default, meaning that
4217 articles that are marked as read are removed from the cache.  Possibly
4218 symbols in these two lists are @code{ticked}, @code{dormant},
4219 @code{unread} and @code{read}.
4220
4221 @findex gnus-jog-cache
4222 So where does the massive article-fetching and storing come into the
4223 picture?  The @code{gnus-jog-cache} command will go through all
4224 subscribed newsgroups, request all unread articles, and store them in
4225 the cache.  You should only ever, ever ever ever, use this command if 1)
4226 your connection to the @sc{nntp} server is really, really, really slow
4227 and 2) you have a really, really, really huge disk.  Seriously.
4228
4229 @vindex gnus-uncacheable-groups
4230 It is likely that you do not want caching on some groups.  For instance,
4231 if your @code{nnml} mail is located under your home directory, it makes no
4232 sense to cache it somewhere else under your home directory.  Unless you
4233 feel that it's neat to use twice as much space.  To limit the caching,
4234 you could set the @code{gnus-uncacheable-groups} regexp to
4235 @samp{^nnml}, for instance.  This variable is @code{nil} by
4236 default.
4237
4238 @findex gnus-cache-generate-nov-databases
4239 @findex gnus-cache-generate-active
4240 @vindex gnus-cache-active-file
4241 The cache stores information on what articles it contains in its active
4242 file (@code{gnus-cache-active-file}).  If this file (or any other parts
4243 of the cache) becomes all messed up for some reason or other, Gnus
4244 offers two functions that will try to set things right.  @kbd{M-x
4245 gnus-cache-generate-nov-databases} will (re)build all the @sc{nov}
4246 files, and @kbd{gnus-cache-generate-active} will (re)generate the active
4247 file.
4248
4249
4250 @node Persistent Articles
4251 @section Persistent Articles
4252 @cindex persistent articles
4253
4254 Closely related to article caching, we have @dfn{persistent articles}.
4255 In fact, it's just a different way of looking at caching, and much more
4256 useful in my opinion.
4257
4258 Say you're reading a newsgroup, and you happen on to some valuable gem
4259 that you want to keep and treasure forever.  You'd normally just save it
4260 (using one of the many saving commands) in some file.  The problem with
4261 that is that it's just, well, yucky.  Ideally you'd prefer just having
4262 the article remain in the group where you found it forever; untouched by
4263 the expiry going on at the news server.
4264
4265 This is what a @dfn{persistent article} is---an article that just won't
4266 be deleted.  It's implemented using the normal cache functions, but
4267 you use two explicit commands for managing persistent articles:
4268
4269 @table @kbd
4270
4271 @item *
4272 @kindex * (Summary)
4273 @findex gnus-cache-enter-article
4274 Make the current article persistent (@code{gnus-cache-enter-article}). 
4275
4276 @item M-*
4277 @kindex M-* (Summary)
4278 @findex gnus-cache-remove-article
4279 Remove the current article from the persistent articles
4280 (@code{gnus-cache-remove-article}).  This will normally delete the
4281 article. 
4282 @end table
4283
4284 Both these commands understand the process/prefix convention. 
4285
4286 To avoid having all ticked articles (and stuff) entered into the cache,
4287 you should set @code{gnus-use-cache} to @code{passive} if you're just
4288 interested in persistent articles:
4289
4290 @lisp
4291 (setq gnus-use-cache 'passive)
4292 @end lisp
4293
4294
4295 @node Article Backlog
4296 @section Article Backlog
4297 @cindex backlog
4298 @cindex article backlog
4299
4300 If you have a slow connection, but the idea of using caching seems
4301 unappealing to you (and it is, really), you can help the situation some
4302 by switching on the @dfn{backlog}.  This is where Gnus will buffer
4303 already read articles so that it doesn't have to re-fetch articles
4304 you've already read.  This only helps if you are in the habit of
4305 re-selecting articles you've recently read, of course.  If you never do
4306 that, turning the backlog on will slow Gnus down a little bit, and
4307 increase memory usage some.
4308
4309 @vindex gnus-keep-backlog
4310 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
4311 at most @var{n} old articles in a buffer for later re-fetching.  If this
4312 variable is non-@code{nil} and is not a number, Gnus will store
4313 @emph{all} read articles, which means that your Emacs will grow without
4314 bound before exploding and taking your machine down with you.  I put
4315 that in there just to keep y'all on your toes.  
4316
4317 This variable is @code{nil} by default.
4318
4319
4320 @node Saving Articles
4321 @section Saving Articles
4322 @cindex saving articles
4323
4324 Gnus can save articles in a number of ways.  Below is the documentation
4325 for saving articles in a fairly straight-forward fashion (i.e., little
4326 processing of the article is done before it is saved).  For a different
4327 approach (uudecoding, unsharing) you should use @code{gnus-uu}
4328 (@pxref{Decoding Articles}).
4329
4330 @vindex gnus-save-all-headers
4331 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
4332 unwanted headers before saving the article.
4333
4334 @vindex gnus-saved-headers
4335 If the preceding variable is @code{nil}, all headers that match the
4336 @code{gnus-saved-headers} regexp will be kept, while the rest will be
4337 deleted before saving.
4338
4339 @table @kbd
4340
4341 @item O o
4342 @itemx o
4343 @kindex O o (Summary)
4344 @kindex o (Summary)
4345 @findex gnus-summary-save-article
4346 Save the current article using the default article saver
4347 (@code{gnus-summary-save-article}). 
4348
4349 @item O m
4350 @kindex O m (Summary)
4351 @findex gnus-summary-save-article-mail
4352 Save the current article in mail format
4353 (@code{gnus-summary-save-article-mail}). 
4354
4355 @item O r
4356 @kindex O r (Summary)
4357 @findex gnus-summary-save-article-rmail
4358 Save the current article in rmail format
4359 (@code{gnus-summary-save-article-rmail}). 
4360
4361 @item O f
4362 @kindex O f (Summary)
4363 @findex gnus-summary-save-article-file
4364 Save the current article in plain file format
4365 (@code{gnus-summary-save-article-file}). 
4366
4367 @item O b
4368 @kindex O b (Summary)
4369 @findex gnus-summary-save-article-body-file
4370 Save the current article body in plain file format
4371 (@code{gnus-summary-save-article-body-file}). 
4372
4373 @item O h
4374 @kindex O h (Summary)
4375 @findex gnus-summary-save-article-folder
4376 Save the current article in mh folder format
4377 (@code{gnus-summary-save-article-folder}). 
4378
4379 @item O v
4380 @kindex O v (Summary)
4381 @findex gnus-summary-save-article-vm
4382 Save the current article in a VM folder
4383 (@code{gnus-summary-save-article-vm}).
4384
4385 @item O p
4386 @kindex O p (Summary)
4387 @findex gnus-summary-pipe-output
4388 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
4389 the current article to a process (@code{gnus-summary-pipe-output}).
4390 @end table
4391
4392 @vindex gnus-prompt-before-saving
4393 All these commands use the process/prefix convention
4394 (@pxref{Process/Prefix}).  If you save bunches of articles using these
4395 functions, you might get tired of being prompted for files to save each
4396 and every article in.  The prompting action is controlled by
4397 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
4398 default, giving you that excessive prompting action you know and
4399 loathe.  If you set this variable to @code{t} instead, you'll be prompted
4400 just once for each series of articles you save.  If you like to really
4401 have Gnus do all your thinking for you, you can even set this variable
4402 to @code{nil}, which means that you will never be prompted for files to
4403 save articles in.  Gnus will simply save all the articles in the default
4404 files. 
4405
4406
4407 @vindex gnus-default-article-saver
4408 You can customize the @code{gnus-default-article-saver} variable to make
4409 Gnus do what you want it to.  You can use any of the four ready-made
4410 functions below, or you can create your own.
4411
4412 @table @code
4413
4414 @item gnus-summary-save-in-rmail
4415 @findex gnus-summary-save-in-rmail
4416 @vindex gnus-rmail-save-name
4417 @findex gnus-plain-save-name
4418 This is the default format, @dfn{babyl}.  Uses the function in the
4419 @code{gnus-rmail-save-name} variable to get a file name to save the
4420 article in.  The default is @code{gnus-plain-save-name}.
4421
4422 @item gnus-summary-save-in-mail
4423 @findex gnus-summary-save-in-mail
4424 @vindex gnus-mail-save-name
4425 Save in a Unix mail (mbox) file.  Uses the function in the
4426 @code{gnus-mail-save-name} variable to get a file name to save the
4427 article in.  The default is @code{gnus-plain-save-name}.
4428
4429 @item gnus-summary-save-in-file
4430 @findex gnus-summary-save-in-file
4431 @vindex gnus-file-save-name
4432 @findex gnus-numeric-save-name
4433 Append the article straight to an ordinary file.  Uses the function in
4434 the @code{gnus-file-save-name} variable to get a file name to save the
4435 article in.  The default is @code{gnus-numeric-save-name}.
4436
4437 @item gnus-summary-save-body-in-file
4438 @findex gnus-summary-save-body-in-file
4439 Append the article body to an ordinary file.  Uses the function in the
4440 @code{gnus-file-save-name} variable to get a file name to save the
4441 article in.  The default is @code{gnus-numeric-save-name}.
4442
4443 @item gnus-summary-save-in-folder
4444 @findex gnus-summary-save-in-folder
4445 @findex gnus-folder-save-name
4446 @findex gnus-Folder-save-name
4447 @vindex gnus-folder-save-name
4448 @cindex rcvstore
4449 @cindex MH folders
4450 Save the article to an MH folder using @code{rcvstore} from the MH
4451 library.  Uses the function in the @code{gnus-folder-save-name} variable
4452 to get a file name to save the article in.  The default is
4453 @code{gnus-folder-save-name}, but you can also use
4454 @code{gnus-Folder-save-name}.  The former creates capitalized names, and
4455 the latter does not.
4456
4457 @item gnus-summary-save-in-vm
4458 @findex gnus-summary-save-in-vm
4459 Save the article in a VM folder.  You have to have the VM mail
4460 reader to use this setting.
4461 @end table
4462
4463 @vindex gnus-article-save-directory
4464 All of these functions, except for the last one, will save the article
4465 in the @code{gnus-article-save-directory}, which is initialized from the
4466 @code{SAVEDIR} environment variable.  This is @file{~/News/} by
4467 default. 
4468
4469 As you can see above, the functions use different functions to find a
4470 suitable name of a file to save the article in.  Below is a list of
4471 available functions that generate names:
4472
4473 @table @code
4474
4475 @item gnus-Numeric-save-name
4476 @findex gnus-Numeric-save-name
4477 Generates file names that look like @file{~/News/Alt.andrea-dworkin/45}.
4478
4479 @item gnus-numeric-save-name
4480 @findex gnus-numeric-save-name
4481 Generates file names that look like @file{~/News/alt.andrea-dworkin/45}.
4482
4483 @item gnus-Plain-save-name
4484 @findex gnus-Plain-save-name
4485 Generates file names that look like @file{~/News/Alt.andrea-dworkin}.
4486
4487 @item gnus-plain-save-name
4488 @findex gnus-plain-save-name
4489 Generates file names that look like @file{~/News/alt.andrea-dworkin}.
4490 @end table
4491
4492 @vindex gnus-split-methods
4493 You can have Gnus suggest where to save articles by plonking a regexp into
4494 the @code{gnus-split-methods} alist.  For instance, if you would like to
4495 save articles related to Gnus in the file @file{gnus-stuff}, and articles
4496 related to VM in @code{vm-stuff}, you could set this variable to something
4497 like:
4498
4499 @lisp
4500 (("^Subject:.*gnus\\|^Newsgroups:.*gnus" "gnus-stuff")
4501  ("^Subject:.*vm\\|^Xref:.*vm" "vm-stuff")
4502  (my-choosing-function "../other-dir/my-stuff")
4503  ((equal gnus-newsgroup-name "mail.misc") "mail-stuff"))
4504 @end lisp
4505
4506 We see that this is a list where each element is a list that has two
4507 elements---the @dfn{match} and the @dfn{file}.  The match can either be
4508 a string (in which case it is used as a regexp to match on the article
4509 head); it can be a symbol (which will be called as a function); or it
4510 can be a list (which will be @code{eval}ed).  If any of these actions
4511 have a non-@code{nil} result, the @dfn{file} will be used as a default
4512 prompt.  In addition, the result of the operation itself will be used if
4513 the function or form called returns a string or a list of strings. 
4514
4515 You basically end up with a list of file names that might be used when
4516 saving the current article.  (All ``matches'' will be used.)  You will
4517 then be prompted for what you really want to use as a name, with file
4518 name completion over the results from applying this variable.
4519
4520 This variable is @code{((gnus-article-archive-name))} by default, which
4521 means that Gnus will look at the articles it saves for an
4522 @code{Archive-name} line and use that as a suggestion for the file
4523 name. 
4524
4525 @vindex gnus-use-long-file-name
4526 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
4527 @code{nil}, all the preceding functions will replace all periods
4528 (@samp{.}) in the group names with slashes (@samp{/})---which means that
4529 the functions will generate hierarchies of directories instead of having
4530 all the files in the toplevel directory
4531 (@file{~/News/alt/andrea-dworkin} instead of
4532 @file{~/News/alt.andrea-dworkin}.)  This variable is @code{t} by default
4533 on most systems.  However, for historical reasons, this is @code{nil} on
4534 Xenix and usg-unix-v machines by default.
4535
4536 This function also affects kill and score file names.  If this variable
4537 is a list, and the list contains the element @code{not-score}, long file
4538 names will not be used for score files, if it contains the element
4539 @code{not-save}, long file names will not be used for saving, and if it
4540 contains the element @code{not-kill}, long file names will not be used
4541 for kill files.
4542
4543 If you'd like to save articles in a hierarchy that looks something like
4544 a spool, you could
4545
4546 @lisp
4547 (setq gnus-use-long-file-name '(not-save)) ; to get a hierarchy
4548 (setq gnus-default-article-save 'gnus-summary-save-in-file) ; no encoding
4549 @end lisp
4550
4551 Then just save with @kbd{o}.  You'd then read this hierarchy with
4552 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
4553 the toplevel directory as the argument (@file{~/News/}).  Then just walk
4554 around to the groups/directories with @code{nneething}.
4555
4556
4557 @node Decoding Articles
4558 @section Decoding Articles
4559 @cindex decoding articles
4560
4561 Sometime users post articles (or series of articles) that have been
4562 encoded in some way or other.  Gnus can decode them for you.
4563
4564 @menu 
4565 * Uuencoded Articles::    Uudecode articles.
4566 * Shared Articles::       Unshar articles.
4567 * PostScript Files::      Split PostScript.
4568 * Decoding Variables::    Variables for a happy decoding.
4569 * Viewing Files::         You want to look at the result of the decoding?
4570 @end menu
4571
4572 All these functions use the process/prefix convention
4573 (@pxref{Process/Prefix}) for finding out what articles to work on, with
4574 the extension that a ``single article'' means ``a single series''.  Gnus
4575 can find out by itself what articles belong to a series, decode all the
4576 articles and unpack/view/save the resulting file(s).
4577
4578 Gnus guesses what articles are in the series according to the following
4579 simplish rule: The subjects must be (nearly) identical, except for the
4580 last two numbers of the line.  (Spaces are largely ignored, however.)
4581
4582 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
4583 will find all the articles that match the regexp @samp{^cat.gif
4584 ([0-9]+/[0-9]+).*$}.  
4585
4586 Subjects that are nonstandard, like @samp{cat.gif (2/3) Part 6 of a
4587 series}, will not be properly recognized by any of the automatic viewing
4588 commands, and you have to mark the articles manually with @kbd{#}.
4589
4590
4591 @node Uuencoded Articles
4592 @subsection Uuencoded Articles
4593 @cindex uudecode
4594 @cindex uuencoded articles
4595
4596 @table @kbd
4597
4598 @item X u
4599 @kindex X u (Summary)
4600 @findex gnus-uu-decode-uu
4601 Uudecodes the current series (@code{gnus-uu-decode-uu}).
4602
4603 @item X U
4604 @kindex X U (Summary)
4605 @findex gnus-uu-decode-uu-and-save
4606 Uudecodes and saves the current series
4607 (@code{gnus-uu-decode-uu-and-save}).
4608
4609 @item X v u
4610 @kindex X v u (Summary)
4611 @findex gnus-uu-decode-uu-view
4612 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
4613
4614 @item X v U
4615 @kindex X v U (Summary)
4616 @findex gnus-uu-decode-uu-and-save-view
4617 Uudecodes, views and saves the current series
4618 (@code{gnus-uu-decode-uu-and-save-view}). 
4619 @end table
4620
4621 Remember that these all react to the presence of articles marked with
4622 the process mark.  If, for instance, you'd like to decode and save an
4623 entire newsgroup, you'd typically do @kbd{M P a}
4624 (@code{gnus-uu-mark-all}) and then @kbd{X U}
4625 (@code{gnus-uu-decode-uu-and-save}).
4626
4627 All this is very much different from how @code{gnus-uu} worked with
4628 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
4629 the sun.  This version of @code{gnus-uu} generally assumes that you mark
4630 articles in some way (@pxref{Setting Process Marks}) and then press
4631 @kbd{X u}.
4632
4633 @vindex gnus-uu-notify-files
4634 Note: When trying to decode articles that have names matching
4635 @code{gnus-uu-notify-files}, which is hard-coded to
4636 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
4637 automatically post an article on @samp{comp.unix.wizards} saying that
4638 you have just viewed the file in question.  This feature can't be turned
4639 off.
4640
4641
4642 @node Shared Articles
4643 @subsection Shared Articles
4644 @cindex unshar
4645 @cindex shared articles
4646
4647 @table @kbd
4648
4649 @item X s
4650 @kindex X s (Summary)
4651 @findex gnus-uu-decode-unshar
4652 Unshars the current series (@code{gnus-uu-decode-unshar}).
4653
4654 @item X S
4655 @kindex X S (Summary)
4656 @findex gnus-uu-decode-unshar-and-save
4657 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
4658
4659 @item X v s
4660 @kindex X v s (Summary)
4661 @findex gnus-uu-decode-unshar-view
4662 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
4663
4664 @item X v S
4665 @kindex X v S (Summary)
4666 @findex gnus-uu-decode-unshar-and-save-view
4667 Unshars, views and saves the current series
4668 (@code{gnus-uu-decode-unshar-and-save-view}). 
4669 @end table
4670
4671
4672 @node PostScript Files
4673 @subsection PostScript Files
4674 @cindex PostScript
4675
4676 @table @kbd
4677
4678 @item X p
4679 @kindex X p (Summary)
4680 @findex gnus-uu-decode-postscript
4681 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
4682
4683 @item X P
4684 @kindex X P (Summary)
4685 @findex gnus-uu-decode-postscript-and-save
4686 Unpack and save the current PostScript series
4687 (@code{gnus-uu-decode-postscript-and-save}).
4688
4689 @item X v p
4690 @kindex X v p (Summary)
4691 @findex gnus-uu-decode-postscript-view
4692 View the current PostScript series
4693 (@code{gnus-uu-decode-postscript-view}).
4694
4695 @item X v P
4696 @kindex X v P (Summary)
4697 @findex gnus-uu-decode-postscript-and-save-view
4698 View and save the current PostScript series
4699 (@code{gnus-uu-decode-postscript-and-save-view}). 
4700 @end table
4701
4702
4703 @node Decoding Variables
4704 @subsection Decoding Variables
4705
4706 Adjective, not verb.
4707
4708 @menu 
4709 * Rule Variables::          Variables that say how a file is to be viewed.
4710 * Other Decode Variables::  Other decode variables.
4711 * Uuencoding and Posting::  Variables for customizing uuencoding.
4712 @end menu
4713
4714
4715 @node Rule Variables
4716 @subsubsection Rule Variables
4717 @cindex rule variables
4718
4719 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
4720 variables are on the form
4721   
4722 @lisp
4723       (list '(regexp1 command2)
4724             '(regexp2 command2)
4725             ...)
4726 @end lisp
4727
4728 @table @code
4729
4730 @item gnus-uu-user-view-rules
4731 @vindex gnus-uu-user-view-rules
4732 @cindex sox
4733 This variable is consulted first when viewing files.  If you wish to use,
4734 for instance, @code{sox} to convert an @samp{.au} sound file, you could
4735 say something like:
4736 @lisp
4737        (setq gnus-uu-user-view-rules
4738          (list '(\"\\\\.au$\" \"sox %s -t .aiff > /dev/audio\")))
4739 @end lisp
4740
4741 @item gnus-uu-user-view-rules-end
4742 @vindex gnus-uu-user-view-rules-end
4743 This variable is consulted if Gnus couldn't make any matches from the
4744 user and default view rules.
4745
4746 @item gnus-uu-user-archive-rules
4747 @vindex gnus-uu-user-archive-rules
4748 This variable can be used to say what commands should be used to unpack
4749 archives.
4750 @end table
4751
4752
4753 @node Other Decode Variables
4754 @subsubsection Other Decode Variables
4755
4756 @table @code
4757 @vindex gnus-uu-grabbed-file-functions
4758
4759 @item gnus-uu-grabbed-file-functions
4760 All functions in this list will be called right each file has been
4761 successfully decoded---so that you can move or view files right away,
4762 and don't have to wait for all files to be decoded before you can do
4763 anything.  Ready-made functions you can put in this list are:
4764
4765 @table @code
4766
4767 @item gnus-uu-grab-view
4768 @findex gnus-uu-grab-view
4769 View the file.
4770
4771 @item gnus-uu-grab-move
4772 @findex gnus-uu-grab-move
4773 Move the file (if you're using a saving function.)
4774 @end table
4775
4776 @item gnus-uu-ignore-files-by-name
4777 @vindex gnus-uu-ignore-files-by-name
4778 Files with name matching this regular expression won't be viewed.
4779
4780 @item gnus-uu-ignore-files-by-type
4781 @vindex gnus-uu-ignore-files-by-type
4782 Files with a @sc{mime} type matching this variable won't be viewed.
4783 Note that Gnus tries to guess what type the file is based on the name.
4784 @code{gnus-uu} is not a @sc{mime} package (yet), so this is slightly
4785 kludgey.
4786
4787 @item gnus-uu-tmp-dir
4788 @vindex gnus-uu-tmp-dir
4789 Where @code{gnus-uu} does its work.
4790
4791 @item gnus-uu-do-not-unpack-archives
4792 @vindex gnus-uu-do-not-unpack-archives
4793 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
4794 looking for files to display.
4795
4796 @item gnus-uu-view-and-save
4797 @vindex gnus-uu-view-and-save
4798 Non-@code{nil} means that the user will always be asked to save a file
4799 after viewing it.
4800
4801 @item gnus-uu-ignore-default-view-rules
4802 @vindex gnus-uu-ignore-default-view-rules
4803 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
4804 rules.
4805
4806 @item gnus-uu-ignore-default-archive-rules
4807 @vindex gnus-uu-ignore-default-archive-rules
4808 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
4809 unpacking commands.
4810
4811 @item gnus-uu-kill-carriage-return
4812 @vindex gnus-uu-kill-carriage-return
4813 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
4814 from articles.
4815
4816 @item gnus-uu-unmark-articles-not-decoded
4817 @vindex gnus-uu-unmark-articles-not-decoded
4818 Non-@code{nil} means that @code{gnus-uu} will mark articles that were
4819 unsuccessfully decoded as unread.
4820
4821 @item gnus-uu-correct-stripped-uucode
4822 @vindex gnus-uu-correct-stripped-uucode
4823 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
4824 uuencoded files that have had trailing spaces deleted.
4825
4826 @item gnus-uu-view-with-metamail
4827 @vindex gnus-uu-view-with-metamail
4828 @cindex metamail
4829 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
4830 commands defined by the rule variables and just fudge a @sc{mime}
4831 content type based on the file name.  The result will be fed to
4832 @code{metamail} for viewing.
4833
4834 @item gnus-uu-save-in-digest
4835 @vindex gnus-uu-save-in-digest
4836 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
4837 decoding, will save in digests.  If this variable is @code{nil},
4838 @code{gnus-uu} will just save everything in a file without any
4839 embellishments.  The digesting almost conforms to RFC1153---no easy way
4840 to specify any meaningful volume and issue numbers were found, so I
4841 simply dropped them.
4842
4843 @end table
4844
4845
4846 @node Uuencoding and Posting
4847 @subsubsection Uuencoding and Posting
4848
4849 @table @code
4850
4851 @item gnus-uu-post-include-before-composing
4852 @vindex gnus-uu-post-include-before-composing
4853 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
4854 before you compose the article.  If this variable is @code{t}, you can
4855 either include an encoded file with @kbd{C-c C-i} or have one included
4856 for you when you post the article.
4857
4858 @item gnus-uu-post-length
4859 @vindex gnus-uu-post-length
4860 Maximum length of an article.  The encoded file will be split into how
4861 many articles it takes to post the entire file.
4862
4863 @item gnus-uu-post-threaded
4864 @vindex gnus-uu-post-threaded
4865 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
4866 thread.  This may not be smart, as no other decoder I have seen are able
4867 to follow threads when collecting uuencoded articles.  (Well, I have
4868 seen one package that does that---@code{gnus-uu}, but somehow, I don't
4869 think that counts...) Default is @code{nil}.
4870
4871 @item gnus-uu-post-separate-description
4872 @vindex gnus-uu-post-separate-description
4873 Non-@code{nil} means that the description will be posted in a separate
4874 article.  The first article will typically be numbered (0/x).  If this
4875 variable is @code{nil}, the description the user enters will be included
4876 at the beginning of the first article, which will be numbered (1/x).
4877 Default is @code{t}.
4878
4879 @end table
4880
4881
4882 @node Viewing Files
4883 @subsection Viewing Files
4884 @cindex viewing files
4885 @cindex pseudo-articles
4886
4887 After decoding, if the file is some sort of archive, Gnus will attempt
4888 to unpack the archive and see if any of the files in the archive can be
4889 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
4890 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
4891 uncompress and de-tar the main file, and then view the two pictures.
4892 This unpacking process is recursive, so if the archive contains archives
4893 of archives, it'll all be unpacked.
4894
4895 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
4896 extracted file into the summary buffer.  If you go to these
4897 ``articles'', you will be prompted for a command to run (usually Gnus
4898 will make a suggestion), and then the command will be run.
4899
4900 @vindex gnus-view-pseudo-asynchronously
4901 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
4902 until the viewing is done before proceeding.
4903
4904 @vindex gnus-view-pseudos
4905 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
4906 the pseudo-articles into the summary buffer, but view them
4907 immediately.  If this variable is @code{not-confirm}, the user won't even
4908 be asked for a confirmation before viewing is done.
4909
4910 @vindex gnus-view-pseudos-separately 
4911 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
4912 pseudo-article will be created for each file to be viewed.  If
4913 @code{nil}, all files that use the same viewing command will be given as
4914 a list of parameters to that command.
4915
4916 @vindex gnus-insert-pseudo-articles
4917 If @code{gnus-insert-pseudo-articles} is non-@code{nil}, insert
4918 pseudo-articles when decoding.  It is @code{t} by default.
4919
4920 So; there you are, reading your @emph{pseudo-articles} in your
4921 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
4922 Why isn't anything real anymore? How did we get here?
4923
4924
4925 @node Article Treatment
4926 @section Article Treatment
4927
4928 Reading through this huge manual, you may have quite forgotten that the
4929 object of newsreaders are to actually, like, read what people have
4930 written.  Reading articles.  Unfortunately, people are quite bad at
4931 writing, so there are tons of functions and variables to make reading
4932 these articles easier.
4933
4934 @menu
4935 * Article Highlighting::    You want to make the article look like fruit salad.
4936 * Article Hiding::          You also want to make certain info go away.
4937 * Article Washing::         Lots of way-neat functions to make life better.
4938 * Article Buttons::         Click on URLs, Message-IDs, addresses and the like.
4939 * Article Date::            Grumble, UT!
4940 @end menu
4941
4942
4943 @node Article Highlighting
4944 @subsection Article Highlighting
4945 @cindex highlight
4946
4947 Not only do you want your article buffer to look like fruit salad, but
4948 you want it to look like technicolor fruit salad.
4949
4950 @table @kbd
4951
4952 @item W H a
4953 @kindex W H a (Summary)
4954 @findex gnus-article-highlight
4955 Highlight the current article (@code{gnus-article-highlight}).
4956
4957 @item W H h
4958 @kindex W H h (Summary)
4959 @findex gnus-article-highlight-headers
4960 @vindex gnus-header-face-alist
4961 Highlight the headers (@code{gnus-article-highlight-headers}).  The
4962 highlighting will be done according to the @code{gnus-header-face-alist}
4963 variable, which is a list where each element has the form @var{(regexp
4964 name content)}.  @var{regexp} is a regular expression for matching the
4965 header, @var{name} is the face used for highlighting the header name and
4966 @var{content} is the face for highlighting the header value.  The first
4967 match made will be used.  Note that @var{regexp} shouldn't have @samp{^}
4968 prepended---Gnus will add one.
4969
4970 @item W H c
4971 @kindex W H c (Summary)
4972 @findex gnus-article-highlight-citation
4973 Highlight cited text (@code{gnus-article-highlight-citation}). 
4974
4975 Some variables to customize the citation highlights:
4976
4977 @table @code
4978 @vindex gnus-cite-parse-max-size
4979
4980 @item gnus-cite-parse-max-size
4981 If the article size if bigger than this variable (which is 25000 by
4982 default), no citation highlighting will be performed.  
4983
4984 @item gnus-cite-prefix-regexp
4985 @vindex gnus-cite-prefix-regexp
4986 Regexp matching the longest possible citation prefix on a line. 
4987
4988 @item gnus-cite-max-prefix
4989 @vindex gnus-cite-max-prefix
4990 Maximum possible length for a citation prefix (default 20).
4991
4992 @item gnus-cite-face-list
4993 @vindex gnus-cite-face-list
4994 List of faces used for highlighting citations.  When there are citations
4995 from multiple articles in the same message, Gnus will try to give each
4996 citation from each article its own face.  This should make it easier to
4997 see who wrote what.
4998
4999 @item gnus-supercite-regexp
5000 @vindex gnus-supercite-regexp
5001 Regexp matching normal SuperCite attribution lines.  
5002
5003 @item gnus-supercite-secondary-regexp
5004 @vindex gnus-supercite-secondary-regexp
5005 Regexp matching mangled SuperCite attribution lines.
5006
5007 @item gnus-cite-minimum-match-count
5008 @vindex gnus-cite-minimum-match-count
5009 Minimum number of identical prefixes we have to see before we believe
5010 that it's a citation.
5011
5012 @item gnus-cite-attribution-prefix
5013 @vindex gnus-cite-attribution-prefix
5014 Regexp matching the beginning of an attribution line.
5015
5016 @item gnus-cite-attribution-suffix
5017 @vindex gnus-cite-attribution-suffix
5018 Regexp matching the end of an attribution line.
5019
5020 @item gnus-cite-attribution-face
5021 @vindex gnus-cite-attribution-face
5022 Face used for attribution lines.  It is merged with the face for the
5023 cited text belonging to the attribution.
5024
5025 @end table
5026
5027
5028 @item W H s
5029 @kindex W H s (Summary)
5030 @vindex gnus-signature-separator
5031 @vindex gnus-signature-face
5032 @findex gnus-article-highlight-signature
5033 Highlight the signature (@code{gnus-article-highlight-signature}).
5034 Everything after @code{gnus-signature-separator} in an article will be
5035 considered a signature and will be highlighted with
5036 @code{gnus-signature-face}, which is @code{italic} by default. 
5037
5038 @end table
5039
5040
5041 @node Article Hiding
5042 @subsection Article Hiding
5043 @cindex article hiding
5044
5045 Or rather, hiding certain things in each article.  There usually is much
5046 too much cruft in most articles.  
5047
5048 @table @kbd
5049
5050 @item W W a
5051 @kindex W W a (Summary)
5052 @findex gnus-article-hide
5053 Do maximum hiding on the summary buffer (@kbd{gnus-article-hide}). 
5054
5055 @item W W h
5056 @kindex W W h (Summary)
5057 @findex gnus-article-hide-headers
5058 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
5059 Headers}. 
5060
5061 @item W W b
5062 @kindex W W b (Summary)
5063 @findex gnus-article-hide-boring-headers
5064 Hide headers that aren't particularly interesting
5065 (@code{gnus-article-hide-boring-headers}).  @xref{Hiding Headers}.
5066
5067 @item W W s
5068 @kindex W W s (Summary)
5069 @findex gnus-article-hide-signature
5070 Hide signature (@code{gnus-article-hide-signature}).
5071
5072 @item W W p
5073 @kindex W W p (Summary)
5074 @findex gnus-article-hide-pgp
5075 Hide @sc{pgp} signatures (@code{gnus-article-hide-pgp}). 
5076
5077 @item W W c
5078 @kindex W W c (Summary)
5079 @findex gnus-article-hide-citation
5080 Hide citation (@code{gnus-article-hide-citation}).  Some variables for
5081 customizing the hiding:
5082
5083 @table @code
5084
5085 @item gnus-cite-hide-percentage
5086 @vindex gnus-cite-hide-percentage
5087 If the cited text is of a bigger percentage than this variable (default
5088 50), hide the cited text.
5089
5090 @item gnus-cite-hide-absolute
5091 @vindex gnus-cite-hide-absolute
5092 The cited text must be have at least this length (default 10) before it
5093 is hidden.
5094
5095 @item gnus-cited-text-button-line-format
5096 @vindex gnus-cited-text-button-line-format
5097 Gnus adds buttons show where the cited text has been hidden, and to
5098 allow toggle hiding the text.  The format of the variable is specified
5099 by this format-like variable.  These specs are legal:
5100
5101 @table @samp
5102 @item b
5103 Start point of the hidden text.
5104 @item e
5105 End point of the hidden text.
5106 @item l
5107 Length of the hidden text.
5108 @end table
5109
5110 @item gnus-cited-lines-visible
5111 @vindex gnus-cited-lines-visible
5112 The number of lines at the beginning of the cited text to leave shown. 
5113
5114 @end table
5115
5116 @item W W C
5117 @kindex W W C (Summary)
5118 @findex gnus-article-hide-citation-in-followups
5119 Hide cited text in articles that aren't roots
5120 (@code{gnus-article-hide-citation-in-followups}).  This isn't very
5121 useful as an interactive command, but might be a handy function to stick
5122 in @code{gnus-article-display-hook} (@pxref{Customizing Articles}). 
5123
5124 @end table
5125
5126 All these ``hiding'' commands are toggles, but if you give a negative
5127 prefix to these commands, they will show what they have previously
5128 hidden.  If you give a positive prefix, they will always hide.
5129
5130 Also @pxref{Article Highlighting} for further variables for
5131 citation customization.
5132
5133 @vindex gnus-signature-limit
5134 @code{gnus-signature-limit} provides a limit to what is considered a
5135 signature.  If it is a number, no signature may not be longer (in
5136 characters) than that number.  If it is a function, the function will be
5137 called without any parameters, and if it returns @code{nil}, there is no
5138 signature in the buffer.  If it is a string, it will be used as a
5139 regexp.  If it matches, the text in question is not a signature.
5140
5141
5142 @node Article Washing
5143 @subsection Article Washing
5144 @cindex washing
5145 @cindex article washing
5146
5147 We call this ``article washing'' for a really good reason.  Namely, the
5148 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
5149
5150 @dfn{Washing} is defined by us as ``changing something from something to
5151 something else'', but normally results in something looking better.
5152 Cleaner, perhaps.
5153
5154 @table @kbd
5155
5156 @item W l
5157 @kindex W l (Summary)
5158 @findex gnus-summary-stop-page-breaking
5159 Remove page breaks from the current article
5160 (@code{gnus-summary-stop-page-breaking}).
5161
5162 @item W r
5163 @kindex W r (Summary)
5164 @findex gnus-summary-caesar-message
5165 Do a Caesar rotate (rot13) on the article buffer
5166 (@code{gnus-summary-caesar-message}). 
5167
5168 @item A g
5169 @kindex A g (Summary)
5170 @findex gnus-summary-show-article
5171 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
5172 given a prefix, fetch the current article, but don't run any of the
5173 article treatment functions.  This will give you a ``raw'' article, just
5174 the way it came from the server.
5175
5176 @item W t
5177 @kindex W t (Summary)
5178 @findex gnus-summary-toggle-header
5179 Toggle whether to display all headers in the article buffer
5180 (@code{gnus-summary-toggle-header}). 
5181
5182 @item W v
5183 @kindex W v (Summary)
5184 @findex gnus-summary-verbose-header
5185 Toggle whether to display all headers in the article buffer permanently
5186 (@code{gnus-summary-verbose-header}).
5187
5188 @item W m
5189 @kindex W m (Summary)
5190 @findex gnus-summary-toggle-mime
5191 Toggle whether to run the article through @sc{mime} before displaying
5192 (@code{gnus-summary-toggle-mime}).
5193
5194 @item W o
5195 @kindex W o (Summary)
5196 @findex gnus-article-treat-overstrike
5197 Treat overstrike (@code{gnus-article-treat-overstrike}).
5198
5199 @item W w
5200 @kindex W w (Summary)
5201 @findex gnus-article-fill-cited-article
5202 Do word wrap (@code{gnus-article-fill-cited-article}).
5203
5204 @item W c
5205 @kindex W c (Summary)
5206 @findex gnus-article-remove-cr
5207 Remove CR (@code{gnus-article-remove-cr}).
5208
5209 @item W L
5210 @kindex W L (Summary)
5211 @findex gnus-article-remove-trailing-blank-lines
5212 Remove all blank lines at the end of the article
5213 (@code{gnus-article-remove-trailing-blank-lines}).
5214
5215 @item W q
5216 @kindex W q (Summary)
5217 @findex gnus-article-de-quoted-unreadable
5218 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
5219
5220 @item W f
5221 @kindex W f (Summary)
5222 @cindex x-face
5223 @findex gnus-article-display-x-face
5224 @findex gnus-article-x-face-command
5225 @vindex gnus-article-x-face-command
5226 @vindex gnus-article-x-face-too-ugly
5227 Look for and display any X-Face headers
5228 (@code{gnus-article-display-x-face}).  The command executed by this
5229 function is given by the @code{gnus-article-x-face-command} variable.  If
5230 this variable is a string, this string will be executed in a sub-shell.
5231 If it is a function, this function will be called with the face as the
5232 argument.  If the @code{gnus-article-x-face-too-ugly} (which is a regexp)
5233 matches the @code{From} header, the face will not be shown.
5234
5235 @item W b
5236 @kindex W b (Summary)
5237 @findex gnus-article-add-buttons
5238 Add clickable buttons to the article (@code{gnus-article-add-buttons}). 
5239
5240 @item W B
5241 @kindex W B (Summary)
5242 @findex gnus-article-add-buttons-to-head
5243 Add clickable buttons to the article headers
5244 (@code{gnus-article-add-buttons-to-head}).  
5245
5246 @end table
5247
5248
5249 @node Article Buttons
5250 @subsection Article Buttons
5251 @cindex buttons
5252
5253 People often include references to other stuff in articles, and it would
5254 be nice if Gnus could just fetch whatever it is that people talk about
5255 with the minimum of fuzz.
5256
5257 Gnus adds @dfn{buttons} to certain standard references by default:
5258 Well-formed URLs, mail addresses and Message-IDs.  This is controlled by
5259 two variables, one that handles article bodies and one that handles
5260 article heads:
5261
5262 @table @code
5263
5264 @item gnus-button-alist
5265 @vindex gnus-button-alist
5266 This is an alist where each entry has this form:
5267
5268 @lisp
5269 (REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
5270 @end lisp
5271
5272 @table @var
5273
5274 @item regexp
5275 All text that match this regular expression will be considered an
5276 external reference.  Here's a typical regexp that match embedded URLs:
5277 @samp{<URL:\\([^\n\r>]*\\)>}. 
5278
5279 @item button-par
5280 Gnus has to know which parts of the match is to be highlighted.  This is
5281 a number that says what sub-expression of the regexp that is to be
5282 highlighted.  If you want it all highlighted, you use @code{0} here.
5283
5284 @item use-p
5285 This form will be @code{eval}ed, and if the result is non-@code{nil},
5286 this is considered a match.  This is useful if you want extra sifting to
5287 avoid false matches.
5288
5289 @item function
5290 This function will be called when you click on this button.
5291
5292 @item data-par
5293 As with @var{button-par}, this is a sub-expression number, but this one
5294 says which part of the match is to be sent as data to @var{function}. 
5295
5296 @end table
5297
5298 So the full entry for buttonizing URLs is then
5299
5300 @lisp
5301 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
5302 @end lisp
5303
5304 @item gnus-header-button-alist
5305 @vindex gnus-header-button-alist
5306 This is just like the other alist, except that it is applied to the
5307 article head only, and that each entry has an additional element that is
5308 used to say what headers to apply the buttonize coding to:
5309
5310 @lisp
5311 (HEADER REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
5312 @end lisp
5313
5314 @var{header} is a regular expression.
5315
5316 @item gnus-button-url-regexp
5317 @vindex gnus-button-url-regexp
5318 A regular expression that matches embedded URLs.  It is used in the
5319 default values of the variables above.
5320
5321 @item gnus-article-button-face
5322 @vindex gnus-article-button-face
5323 Face used on bottons.
5324
5325 @item gnus-article-mouse-face
5326 @vindex gnus-article-mouse-face
5327 Face is used when the mouse cursor is over a button.
5328
5329 @end table
5330
5331
5332 @node Article Date
5333 @subsection Article Date
5334
5335 The date is most likely generated in some obscure timezone you've never
5336 heard of, so it's quite nice to be able to find out what the time was
5337 when the article was sent.
5338
5339 @table @kbd
5340
5341 @item W T u
5342 @kindex W T u (Summary)
5343 @findex gnus-article-date-ut
5344 Display the date in UT (aka. GMT, aka ZULU)
5345 (@code{gnus-article-date-ut}). 
5346
5347 @item W T l
5348 @kindex W T l (Summary)
5349 @findex gnus-article-date-local
5350 Display the date in the local timezone (@code{gnus-article-date-local}).
5351
5352 @item W T e
5353 @kindex W T e (Summary)
5354 @findex gnus-article-date-lapsed
5355 Say how much time has (e)lapsed between the article was posted and now
5356 (@code{gnus-article-date-lapsed}).
5357
5358 @item W T o
5359 @kindex W T o (Summary)
5360 @findex gnus-article-date-original
5361 Display the original date (@code{gnus-article-date-original}).  This can
5362 be useful if you normally use some other conversion function and is
5363 worried that it might be doing something totally wrong.  Say, claiming
5364 that the article was posted in 1854.  Although something like that is
5365 @emph{totally} impossible.  Don't you trust me? *titter*
5366
5367 @end table
5368
5369
5370 @node Summary Sorting
5371 @section Summary Sorting
5372 @cindex summary sorting
5373
5374 You can have the summary buffer sorted in various ways, even though I
5375 can't really see why you'd want that.
5376
5377 @table @kbd
5378
5379 @item C-c C-s C-n
5380 @kindex C-c C-s C-n (Summary)
5381 @findex gnus-summary-sort-by-number
5382 Sort by article number (@code{gnus-summary-sort-by-number}).
5383
5384 @item C-c C-s C-a
5385 @kindex C-c C-s C-a (Summary)
5386 @findex gnus-summary-sort-by-author
5387 Sort by author (@code{gnus-summary-sort-by-author}).
5388
5389 @item C-c C-s C-s
5390 @kindex C-c C-s C-s (Summary)
5391 @findex gnus-summary-sort-by-subject
5392 Sort by subject (@code{gnus-summary-sort-by-subject}).
5393
5394 @item C-c C-s C-d
5395 @kindex C-c C-s C-d (Summary)
5396 @findex gnus-summary-sort-by-date
5397 Sort by date (@code{gnus-summary-sort-by-date}).
5398
5399 @item C-c C-s C-i
5400 @kindex C-c C-s C-i (Summary)
5401 @findex gnus-summary-sort-by-score
5402 Sort by score (@code{gnus-summary-sort-by-score}).
5403 @end table
5404
5405 These functions will work both when you use threading and when you don't
5406 use threading.  In the latter case, all summary lines will be sorted,
5407 line by line.  In the former case, sorting will be done on a
5408 root-by-root basis, which might not be what you were looking for.  To
5409 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
5410 Commands}).
5411
5412
5413 @node Finding the Parent
5414 @section Finding the Parent
5415 @cindex parent articles
5416 @cindex referring articles
5417
5418 @findex gnus-summary-refer-parent-article
5419 @kindex ^ (Summary)
5420 If you'd like to read the parent of the current article, and it is not
5421 displayed in the article buffer, you might still be able to.  That is,
5422 if the current group is fetched by @sc{nntp}, the parent hasn't expired
5423 and the @code{References} in the current article are not mangled, you
5424 can just press @kbd{^} or @kbd{A r}
5425 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
5426 you'll get the parent.  If the parent is already displayed in the
5427 summary buffer, point will just move to this article.
5428
5429 @findex gnus-summary-refer-references
5430 @kindex A R (Summary)
5431 You can have Gnus fetch all articles mentioned in the @code{References}
5432 header of the article by pushing @kbd{A R}
5433 (@code{gnus-summary-refer-references}). 
5434
5435 @findex gnus-summary-refer-article
5436 @kindex M-^ (Summary)
5437 You can also ask the @sc{nntp} server for an arbitrary article, no
5438 matter what group it belongs to.  @kbd{M-^}
5439 (@code{gnus-summary-refer-article}) will ask you for a
5440 @code{Message-ID}, which is one of those long thingies that look
5441 something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.  You have to get
5442 it all exactly right.  No fuzzy searches, I'm afraid.
5443
5444 @vindex gnus-refer-article-method
5445 If the group you are reading is located on a backend that does not
5446 support fetching by @code{Message-ID} very well (like @code{nnspool}),
5447 you can set @code{gnus-refer-article-method} to an @sc{nntp} method.  It
5448 would, perhaps, be best if the @sc{nntp} server you consult is the same
5449 as the one that keeps the spool you are reading from updated, but that's
5450 not really necessary.
5451
5452 Most of the mail backends support fetching by @code{Message-ID}, but do
5453 not do a particularly excellent job of it.  That is, @code{nnmbox} and
5454 @code{nnbabyl} are able to locate articles from any groups, while
5455 @code{nnml} and @code{nnfolder} are only able to locate articles that
5456 have been posted to the current group.  (Anything else would be too time
5457 consuming.)  @code{nnmh} does not support this at all.
5458
5459
5460 @node Alternative Approaches
5461 @section Alternative Approaches
5462
5463 Different people like to read news using different methods.  This being
5464 Gnus, we offer a small selection of minor modes for the summary buffers.
5465
5466 @menu
5467 * Pick and Read::               First mark articles and then read them.
5468 * Binary Groups::               Auto-decode all articles.
5469 @end menu
5470
5471
5472 @node Pick and Read
5473 @subsection Pick and Read
5474 @cindex pick and read
5475
5476 Some newsreaders (like @code{nn} and, uhm, @code{nn}) use a two-phased
5477 reading interface.  The user first marks the articles she wants to read
5478 from a summary buffer.  Then she starts reading the articles with just
5479 an article buffer displayed.
5480
5481 @findex gnus-pick-mode
5482 @kindex M-x gnus-pick-mode
5483 Gnus provides a summary buffer minor mode that allows
5484 this---@code{gnus-pick-mode}.  This basically means that a few process
5485 mark commands become one-keystroke commands to allow easy marking, and
5486 it makes one additional command for switching to the summary buffer
5487 available. 
5488
5489 Here are the available keystrokes when using pick mode:
5490
5491 @table @kbd
5492 @item SPACE
5493 @kindex SPACE (Pick)
5494 @findex gnus-summary-mark-as-processable
5495 Pick the article (@code{gnus-summary-mark-as-processable}). 
5496
5497 @item u
5498 @kindex u (Pick)
5499 @findex gnus-summary-unmark-as-processable
5500 Unpick the article (@code{gnus-summary-unmark-as-processable}). 
5501
5502 @item U
5503 @kindex U (Pick)
5504 @findex gnus-summary-unmark-all-processable
5505 Unpick all articles (@code{gnus-summary-unmark-all-processable}). 
5506
5507 @item t
5508 @kindex t (Pick)
5509 @findex gnus-uu-mark-thread
5510 Pick the thread (@code{gnus-uu-mark-thread}). 
5511
5512 @item T
5513 @kindex T (Pick)
5514 @findex gnus-uu-unmark-thread
5515 Unpick the thread (@code{gnus-uu-unmark-thread}). 
5516
5517 @item r
5518 @kindex r (Pick)
5519 @findex gnus-uu-mark-region
5520 Pick the region (@code{gnus-uu-mark-region}). 
5521
5522 @item R
5523 @kindex R (Pick)
5524 @findex gnus-uu-unmark-region
5525 Unpick the region (@code{gnus-uu-unmark-region}). 
5526
5527 @item e
5528 @kindex e (Pick)
5529 @findex gnus-uu-unmark-regexp
5530 Pick articles that match a regexp (@code{gnus-uu-unmark-regexp}). 
5531
5532 @item E
5533 @kindex E (Pick)
5534 @findex gnus-uu-unmark-regexp
5535 Unpick articles that match a regexp (@code{gnus-uu-unmark-regexp}). 
5536
5537 @item b
5538 @kindex b (Pick)
5539 @findex gnus-uu-mark-buffer
5540 Pick the buffer (@code{gnus-uu-mark-buffer}). 
5541
5542 @item B
5543 @kindex B (Pick)
5544 @findex gnus-uu-unmark-buffer
5545 Unpick the buffer (@code{gnus-uu-unmark-buffer}). 
5546
5547 @item RET
5548 @kindex RET (Pick)
5549 @findex gnus-pick-start-reading
5550 @vindex gnus-pick-display-summary
5551 Start reading the picked articles (@code{gnus-pick-start-reading}).  If
5552 given a prefix, mark all unpicked articles as read first.  If
5553 @code{gnus-pick-display-summary} is non-@code{nil}, the summary buffer
5554 will still be visible when you are reading.
5555
5556 @end table
5557
5558 If this sounds like a good idea to you, you could say:
5559
5560 @lisp
5561 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
5562 @end lisp
5563
5564 @vindex gnus-pick-mode-hook
5565 @code{gnus-pick-mode-hook} is run in pick minor mode buffers.
5566
5567
5568 @node Binary Groups
5569 @subsection Binary Groups
5570 @cindex binary groups
5571
5572 @findex gnus-binary-mode
5573 @kindex M-x gnus-binary-mode
5574 If you spend much time in binary groups, you may grow tired of hitting
5575 @kbd{X u}, @kbd{n}, @kbd{RET} all the time.  @kbd{M-x gnus-binary-mode}
5576 is a minor mode for summary buffers that makes all ordinary Gnus article
5577 selection functions uudecode series of articles and display the result
5578 instead of just displaying the articles the normal way.  
5579
5580 @kindex g (Binary)
5581 @findex gnus-binary-show-article
5582 In fact, the only way to see the actual articles if you have turned this
5583 mode on is the @kbd{g} command (@code{gnus-binary-show-article}). 
5584
5585 @vindex gnus-binary-mode-hook
5586 @code{gnus-binary-mode-hook} is called in binary minor mode buffers.
5587
5588
5589 @node Tree Display
5590 @section Tree Display
5591 @cindex trees
5592
5593 @vindex gnus-use-trees
5594 If you don't like the normal Gnus summary display, you might try setting
5595 @code{gnus-use-trees} to @code{t}.  This will create (by default) an
5596 additional @dfn{tree buffer}.  You can execute all summary mode commands
5597 in the tree buffer.  
5598
5599 There are a few variables to customize the tree display, of course:
5600
5601 @table @code
5602 @item gnus-tree-mode-hook
5603 @vindex gnus-tree-mode-hook
5604 A hook called in all tree mode buffers.
5605
5606 @item gnus-tree-mode-line-format
5607 @vindex gnus-tree-mode-line-format
5608 A format string for the mode bar in the tree mode buffers.  The default
5609 is @samp{Gnus: %%b [%A] %Z}.  For a list of legal specs, @pxref{Summary
5610 Buffer Mode Line}. 
5611
5612 @item gnus-selected-tree-face
5613 @vindex gnus-selected-tree-face
5614 Face used for highlighting the selected article in the tree buffer.  The
5615 default is @code{modeline}.
5616
5617 @item gnus-tree-line-format
5618 @vindex gnus-tree-line-format
5619 A format string for the tree nodes.  The name is a bit of a misnomer,
5620 though---it doesn't define a line, but just the node.  The default value
5621 is @samp{%(%[%3,3n%]%)}, which displays the first three characters of
5622 the name of the poster.  It is vital that all nodes are of the same
5623 length, so you @emph{must} use @samp{%4,4n}-like specifiers.
5624
5625 Legal specs are:
5626
5627 @table @samp
5628 @item n
5629 The name of the poster.
5630 @item f
5631 The @code{From} header.
5632 @item N
5633 The number of the article.
5634 @item [
5635 The opening bracket.
5636 @item ] 
5637 The closing bracket.
5638 @item s
5639 The subject.
5640 @end table
5641
5642 @xref{Formatting Variables}.
5643
5644 Variables related to the display are:
5645
5646 @table @code
5647 @item gnus-tree-brackets
5648 @vindex gnus-tree-brackets
5649 This is used for differentiating between ``real'' articles and
5650 ``sparse'' articles.  The format is @var{((real-open . real-close)
5651 (sparse-open . sparse-close) (dummy-open . dummy-close))}, and the
5652 default is @code{((?[ . ?]) (?( . ?)) (?@{ . ?@}))}.
5653
5654 @item gnus-tree-parent-child-edges
5655 @vindex gnus-tree-parent-child-edges
5656 This is a list that contains the characters used for connecting parent
5657 nodes to their children.  The default is @code{(?- ?\\ ?|)}. 
5658
5659 @end table
5660
5661 @item gnus-tree-minimize-window
5662 @vindex gnus-tree-minimize-window
5663 If this variable is non-@code{nil}, Gnus will try to keep the tree
5664 buffer as small as possible to allow more room for the other Gnus
5665 windows.  If this variable is a number, the tree buffer will never be
5666 higher than that number.  The default is @code{t}.
5667
5668 @item gnus-generate-tree-function
5669 @vindex gnus-generate-tree-function
5670 @findex gnus-generate-horizontal-tree
5671 @findex gnus-generate-vertical-tree
5672 The function that actually generates the thread tree.  Two predefined
5673 functions are available: @code{gnus-generate-horizontal-tree} and
5674 @code{gnus-generate-vertical-tree} (which is the default).
5675
5676 @end table
5677
5678 Here's and example from a horizontal tree buffer:
5679
5680 @example
5681 @{***@}-(***)-[odd]-[Gun]
5682      |     \[Jan]
5683      |     \[odd]-[Eri]
5684      |     \(***)-[Eri]
5685      |           \[odd]-[Paa]
5686      \[Bjo]
5687      \[Gun]
5688      \[Gun]-[Jor]
5689 @end example
5690
5691 Here's the same thread displayed in a vertical tree buffer:
5692
5693 @example
5694 @{***@}
5695   |--------------------------\-----\-----\
5696 (***)                         [Bjo] [Gun] [Gun]
5697   |--\-----\-----\                          |
5698 [odd] [Jan] [odd] (***)                   [Jor]
5699   |           |     |--\
5700 [Gun]       [Eri] [Eri] [odd]
5701                           |
5702                         [Paa]
5703 @end example
5704
5705
5706 @node Mail Group Commands
5707 @section Mail Group Commands
5708 @cindex mail group commands
5709
5710 Some commands only make sense in mail groups.  If these commands are
5711 illegal in the current group, they will raise a hell and let you know.
5712
5713 All these commands (except the expiry and edit commands) use the
5714 process/prefix convention (@pxref{Process/Prefix}).
5715
5716 @table @kbd
5717
5718 @item B e
5719 @kindex B e (Summary)
5720 @findex gnus-summary-expire-articles
5721 Expire all expirable articles in the group
5722 (@code{gnus-summary-expire-articles}).
5723
5724 @item B M-C-e
5725 @kindex B M-C-e (Summary)
5726 @findex gnus-summary-expire-articles-now
5727 Expunge all the expirable articles in the group
5728 (@code{gnus-summary-expire-articles-now}).  This means that @strong{all}
5729 articles that are eligible for expiry in the current group will
5730 disappear forever into that big @file{/dev/null} in the sky.
5731
5732 @item B DEL
5733 @kindex B DEL (Summary)
5734 @findex gnus-summary-delete-articles
5735 Delete the mail article.  This is ``delete'' as in ``delete it from your
5736 disk forever and ever, never to return again.'' Use with caution.
5737 (@code{gnus-summary-delete-article}).
5738
5739 @item B m
5740 @kindex B m (Summary)
5741 @cindex move mail
5742 @findex gnus-summary-move-article
5743 Move the article from one mail group to another
5744 (@code{gnus-summary-move-article}). 
5745
5746 @item B c
5747 @kindex B c (Summary)
5748 @cindex copy mail
5749 @findex gnus-summary-copy-article
5750 Copy the article from one group (mail group or not) to a mail group
5751 (@code{gnus-summary-copy-article}).
5752
5753 @item B C
5754 @kindex B C (Summary)
5755 @cindex crosspost mail
5756 @findex gnus-summary-crosspost-article
5757 Crosspost the current article to some other group
5758 (@code{gnus-summary-crosspost-article}).  This will create a new copy of
5759 the article in the other group, and the Xref headers of the article will
5760 be properly updated.
5761
5762 @item B i
5763 @kindex B i (Summary)
5764 @findex gnus-summary-import-article
5765 Import an arbitrary file into the current mail newsgroup
5766 (@code{gnus-summary-import-article}).  You will be prompted for a file
5767 name, a @code{From} header and a @code{Subject} header.
5768
5769 Something similar can be done by just starting to compose a mail
5770 message.  Instead of typing @kbd{C-c C-c} to mail it off, you can type
5771 @kbd{C-c M-C-p} instead.  This will put the message you have just created
5772 into the current mail group.
5773
5774 @item B r
5775 @kindex B r (Summary)
5776 @findex gnus-summary-respool-article
5777 Respool the mail article (@code{gnus-summary-move-article}).
5778
5779 @item B w
5780 @itemx e
5781 @kindex B w (Summary)
5782 @kindex e (Summary)
5783 @findex gnus-summary-edit-article
5784 @kindex C-c C-c (Article)
5785 Edit the current article (@code{gnus-summary-edit-article}).  To finish
5786 editing and make the changes permanent, type @kbd{C-c C-c}
5787 (@kbd{gnus-summary-edit-article-done}).
5788
5789 @item B q
5790 @kindex B q (Summary)
5791 @findex gnus-summary-respool-query
5792 If you want to re-spool an article, you might be curious as to what group
5793 the article will end up in before you do the re-spooling.  This command
5794 will tell you (@code{gnus-summary-respool-query}). 
5795 @end table
5796
5797 @vindex gnus-move-split-methods
5798 @cindex moving articles
5799 If you move (or copy) articles regularly, you might wish to have Gnus
5800 suggest where to put the articles.  @code{gnus-move-split-methods} is a
5801 variable that uses the same syntax as @code{gnus-split-methods}
5802 (@pxref{Saving Articles}).  You may customize that variable to create
5803 suggestions you find reasonable.
5804
5805
5806 @node Various Summary Stuff
5807 @section Various Summary Stuff
5808
5809 @menu
5810 * Summary Group Information::         Information oriented commands.
5811 * Searching for Articles::            Multiple article commands.
5812 * Really Various Summary Commands::   Those pesky non-conformant commands.
5813 @end menu
5814
5815 @table @code
5816 @vindex gnus-summary-mode-hook
5817 @item gnus-summary-mode-hook
5818 This hook is called when creating a summary mode buffer.
5819
5820 @vindex gnus-summary-generate-hook
5821 @item gnus-summary-generate-hook
5822 This is called as the last thing before doing the threading and the
5823 generation of the summary buffer.  It's quite convenient for customizing
5824 the threading variables based on what data the newsgroup has.  This hook
5825 is called from the summary buffer after most summary buffer variables
5826 has been set.
5827
5828 @vindex gnus-summary-prepare-hook
5829 @item gnus-summary-prepare-hook
5830 Is is called after the summary buffer has been generated.  You might use
5831 it to, for instance, highlight lines or modify the look of the buffer in
5832 some other ungodly manner.  I don't care.
5833
5834 @end table
5835
5836
5837 @node Summary Group Information
5838 @subsection Summary Group Information
5839
5840 @table @kbd
5841
5842 @item H f
5843 @kindex H f (Summary)
5844 @findex gnus-summary-fetch-faq
5845 @vindex gnus-group-faq-directory
5846 Try to fetch the FAQ (list of frequently asked questions) for the
5847 current group (@code{gnus-summary-fetch-faq}).  Gnus will try to get the
5848 FAQ from @code{gnus-group-faq-directory}, which is usually a directory
5849 on a remote machine.  This variable can also be a list of directories.
5850 In that case, giving a prefix to this command will allow you to choose
5851 between the various sites.  @code{ange-ftp} probably will be used for
5852 fetching the file.
5853
5854 @item H d
5855 @kindex H d (Summary)
5856 @findex gnus-summary-describe-group
5857 Give a brief description of the current group
5858 (@code{gnus-summary-describe-group}).  If given a prefix, force
5859 rereading the description from the server.
5860
5861 @item H h
5862 @kindex H h (Summary)
5863 @findex gnus-summary-describe-briefly
5864 Give a very brief description of the most important summary keystrokes
5865 (@code{gnus-summary-describe-briefly}). 
5866
5867 @item H i
5868 @kindex H i (Summary)
5869 @findex gnus-info-find-node
5870 Go to the Gnus info node (@code{gnus-info-find-node}).
5871 @end table
5872
5873
5874 @node Searching for Articles
5875 @subsection Searching for Articles
5876
5877 @table @kbd
5878
5879 @item M-s
5880 @kindex M-s (Summary)
5881 @findex gnus-summary-search-article-forward
5882 Search through all subsequent articles for a regexp
5883 (@code{gnus-summary-search-article-forward}). 
5884
5885 @item M-r
5886 @kindex M-r (Summary)
5887 @findex gnus-summary-search-article-backward
5888 Search through all previous articles for a regexp
5889 (@code{gnus-summary-search-article-backward}). 
5890
5891 @item &
5892 @kindex & (Summary)
5893 @findex gnus-summary-execute-command
5894 This command will prompt you for a header field, a regular expression to
5895 match on this field, and a command to be executed if the match is made
5896 (@code{gnus-summary-execute-command}).
5897
5898 @item M-&
5899 @kindex M-& (Summary)
5900 @findex gnus-summary-universal-argument
5901 Perform any operation on all articles that have been marked with
5902 the process mark (@code{gnus-summary-universal-argument}).
5903 @end table
5904
5905
5906 @node Really Various Summary Commands
5907 @subsection Really Various Summary Commands
5908
5909 @table @kbd
5910
5911 @item A D
5912 @kindex A D (Summary)
5913 @findex gnus-summary-enter-digest-group
5914 If the current article is a collection of other articles (for instance,
5915 a digest), you might use this command to enter a group based on the that
5916 article (@code{gnus-summary-enter-digest-group}).  Gnus will try to
5917 guess what article type is currently displayed unless you give a prefix
5918 to this command, which forces a ``digest'' interpretation.  Basically,
5919 whenever you see a message that is a collection of other messages on
5920 some format, you @kbd{A D} and read these messages in a more convenient
5921 fashion.
5922
5923 @item C-t
5924 @kindex C-t (Summary)
5925 @findex gnus-summary-toggle-truncation
5926 Toggle truncation of summary lines (@code{gnus-summary-toggle-truncation}).
5927
5928 @item =
5929 @kindex = (Summary)
5930 @findex gnus-summary-expand-window
5931 Expand the summary buffer window (@code{gnus-summary-expand-window}).
5932 If given a prefix, force an @code{article} window configuration. 
5933 @end table
5934
5935
5936 @node Exiting the Summary Buffer
5937 @section Exiting the Summary Buffer
5938 @cindex summary exit
5939 @cindex exiting groups
5940
5941 Exiting from the summary buffer will normally update all info on the
5942 group and return you to the group buffer. 
5943
5944 @table @kbd
5945
5946 @item Z Z
5947 @itemx q
5948 @kindex Z Z (Summary)
5949 @kindex q (Summary)
5950 @findex gnus-summary-exit
5951 @vindex gnus-summary-exit-hook
5952 @vindex gnus-summary-prepare-exit-hook
5953 Exit the current group and update all information on the group
5954 (@code{gnus-summary-exit}). @code{gnus-summary-prepare-exit-hook} is
5955 called before doing much of the exiting, and calls
5956 @code{gnus-summary-expire-articles} by default.
5957 @code{gnus-summary-exit-hook} is called after finishing the exiting
5958 process. 
5959
5960 @item Z E
5961 @itemx Q
5962 @kindex Z E (Summary)
5963 @kindex Q (Summary)
5964 @findex gnus-summary-exit-no-update
5965 Exit the current group without updating any information on the group
5966 (@code{gnus-summary-exit-no-update}).
5967
5968 @item Z c
5969 @itemx c
5970 @kindex Z c (Summary)
5971 @kindex c (Summary)
5972 @findex gnus-summary-catchup-and-exit
5973 Mark all unticked articles in the group as read and then exit
5974 (@code{gnus-summary-catchup-and-exit}).
5975
5976 @item Z C
5977 @kindex Z C (Summary)
5978 @findex gnus-summary-catchup-all-and-exit
5979 Mark all articles, even the ticked ones, as read and then exit
5980 (@code{gnus-summary-catchup-all-and-exit}).
5981
5982 @item Z n
5983 @kindex Z n (Summary)
5984 @findex gnus-summary-catchup-and-goto-next-group
5985 Mark all articles as read and go to the next group
5986 (@code{gnus-summary-catchup-and-goto-next-group}). 
5987
5988 @item Z R
5989 @kindex Z R (Summary)
5990 @findex gnus-summary-reselect-current-group
5991 Exit this group, and then enter it again
5992 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
5993 all articles, both read and unread.
5994
5995 @item Z G
5996 @itemx M-g
5997 @kindex Z G (Summary)
5998 @kindex M-g (Summary)
5999 @findex gnus-summary-rescan-group
6000 Exit the group, check for new articles in the group, and select the
6001 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
6002 articles, both read and unread.
6003
6004 @item Z N
6005 @kindex Z N (Summary)
6006 @findex gnus-summary-next-group
6007 Exit the group and go to the next group
6008 (@code{gnus-summary-next-group}). 
6009
6010 @item Z P
6011 @kindex Z P (Summary)
6012 @findex gnus-summary-prev-group
6013 Exit the group and go to the previous group
6014 (@code{gnus-summary-prev-group}). 
6015 @end table
6016
6017 @vindex gnus-exit-group-hook
6018 @code{gnus-exit-group-hook} is called when you exit the current
6019 group.  
6020
6021 @findex gnus-summary-wake-up-the-dead
6022 @findex gnus-dead-summary-mode
6023 @vindex gnus-kill-summary-on-exit
6024 If you're in the habit of exiting groups, and then changing your mind
6025 about it, you might set @code{gnus-kill-summary-on-exit} to @code{nil}.
6026 If you do that, Gnus won't kill the summary buffer when you exit it.
6027 (Quelle surprise!)  Instead it will change the name of the buffer to
6028 something like @samp{*Dead Summary ... *} and install a minor mode
6029 called @code{gnus-dead-summary-mode}.  Now, if you switch back to this
6030 buffer, you'll find that all keys are mapped to a function called
6031 @code{gnus-summary-wake-up-the-dead}.  So tapping any keys in a dead
6032 summary buffer will result in a live, normal summary buffer.  
6033
6034 There will never be more than one dead summary buffer at any one time. 
6035
6036 @vindex gnus-use-cross-reference
6037 The data on the current group will be updated (which articles you have
6038 read, which articles you have replied to, etc.) when you exit the
6039 summary buffer.  If the @code{gnus-use-cross-reference} variable is
6040 @code{t} (which is the default), articles that are cross-referenced to
6041 this group and are marked as read, will also be marked as read in the
6042 other subscribed groups they were cross-posted to.  If this variable is
6043 neither @code{nil} nor @code{t}, the article will be marked as read in
6044 both subscribed and unsubscribed groups.
6045
6046 @cindex velveeta
6047 @cindex spamming
6048 Marking cross-posted articles as read ensures that you'll never have to
6049 read the same article more than once.  Unless, of course, somebody has
6050 posted it to several groups separately.  Posting the same article to
6051 several groups (not cross-posting) is called @dfn{spamming}, and you are
6052 by law required to send nasty-grams to anyone who perpetrates such a
6053 heinous crime.
6054
6055 Remember: Cross-posting is kinda ok, but posting the same article
6056 separately to several groups is not.
6057
6058 @cindex cross-posting
6059 @cindex Xref
6060 @cindex @sc{nov}
6061 One thing that may cause Gnus to not do the cross-posting thing
6062 correctly is if you use an @sc{nntp} server that supports @sc{xover}
6063 (which is very nice, because it speeds things up considerably) which
6064 does not include the @code{Xref} header in its @sc{nov} lines.  This is
6065 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
6066 even with @sc{xover} by registering the @code{Xref} lines of all
6067 articles you actually read, but if you kill the articles, or just mark
6068 them as read without reading them, Gnus will not get a chance to snoop
6069 the @code{Xref} lines out of these articles, and will be unable to use
6070 the cross reference mechanism.
6071
6072 @cindex LIST overview.fmt
6073 @cindex overview.fmt
6074 To check whether your @sc{nntp} server includes the @code{Xref} header
6075 in its overview files, try @samp{telnet your.nntp.server nntp},
6076 @samp{MODE READER} on @code{inn} servers, and then say @samp{LIST
6077 overview.fmt}.  This may not work, but if it does, and the last line you
6078 get does not read @samp{Xref:full}, then you should shout and whine at
6079 your news admin until she includes the @code{Xref} header in the
6080 overview files.
6081
6082 @vindex gnus-nov-is-evil
6083 If you want Gnus to get the @code{Xref}s right all the time, you have to
6084 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
6085 considerably.
6086
6087 C'est la vie.
6088
6089
6090 @node The Article Buffer
6091 @chapter The Article Buffer
6092 @cindex article buffer
6093
6094 The articles are displayed in the article buffer, of which there is only
6095 one.  All the summary buffers share the same article buffer unless you
6096 tell Gnus otherwise.
6097
6098 @menu
6099 * Hiding Headers::        Deciding what headers should be displayed.
6100 * Using MIME::            Pushing articles through @sc{mime} before reading them.
6101 * Customizing Articles::  Tailoring the look of the articles.
6102 * Article Keymap::        Keystrokes available in the article buffer
6103 * Misc Article::          Other stuff.
6104 @end menu
6105
6106
6107 @node Hiding Headers
6108 @section Hiding Headers
6109 @cindex hiding headers
6110 @cindex deleting headers
6111
6112 The top section of each article is the @dfn{head}.  (The rest is the
6113 @dfn{body}, but you may have guessed that already.)
6114
6115 @vindex gnus-show-all-headers
6116 There is a lot of useful information in the head: the name of the person
6117 who wrote the article, the date it was written and the subject of the
6118 article.  That's well and nice, but there's also lots of information
6119 most people do not want to see---what systems the article has passed
6120 through before reaching you, the @code{Message-ID}, the
6121 @code{References}, etc. ad nauseum---and you'll probably want to get rid
6122 of some of those lines.  If you want to keep all those lines in the
6123 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
6124
6125 Gnus provides you with two variables for sifting headers:
6126
6127 @table @code
6128
6129 @item gnus-visible-headers
6130 @vindex gnus-visible-headers
6131 If this variable is non-@code{nil}, it should be a regular expression
6132 that says what headers you wish to keep in the article buffer.  All
6133 headers that do not match this variable will be hidden.
6134
6135 For instance, if you only want to see the name of the person who wrote
6136 the article and the subject, you'd say:
6137
6138 @lisp
6139 (setq gnus-visible-headers "^From:\\|^Subject:")
6140 @end lisp
6141
6142 This variable can also be a list of regexps to match headers that are to
6143 remain visible.
6144
6145 @item gnus-ignored-headers
6146 @vindex gnus-ignored-headers
6147 This variable is the reverse of @code{gnus-visible-headers}.  If this
6148 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
6149 should be a regular expression that matches all lines that you want to
6150 hide.  All lines that do not match this variable will remain visible.
6151
6152 For instance, if you just want to get rid of the @code{References} line
6153 and the @code{Xref} line, you might say:
6154
6155 @lisp
6156 (setq gnus-ignored-headers "^References:\\|^Xref:")
6157 @end lisp
6158
6159 This variable can also be a list of regexps to match headers that are to
6160 be removed.
6161
6162 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
6163 variable will have no effect.
6164
6165 @end table
6166
6167 @vindex gnus-sorted-header-list
6168 Gnus can also sort the headers for you.  (It does this by default.)  You
6169 can control the sorting by setting the @code{gnus-sorted-header-list}
6170 variable.  It is a list of regular expressions that says in what order
6171 the headers are to be displayed.
6172
6173 For instance, if you want the name of the author of the article first,
6174 and then the subject, you might say something like:
6175
6176 @lisp
6177 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
6178 @end lisp
6179
6180 Any headers that are to remain visible, but are not listed in this
6181 variable, will be displayed in random order after all the headers that
6182 are listed in this variable.
6183
6184 @findex gnus-article-hide-boring-headers
6185 @vindex gnus-article-display-hook
6186 @vindex gnus-boring-article-headers
6187 You can hide further boring headers by entering
6188 @code{gnus-article-hide-boring-headers} into
6189 @code{gnus-article-display-hook}.  What this function does depends on
6190 the @code{gnus-boring-article-headers} variable.  It's a list, but this
6191 list doesn't actually contain header names.  Instead is lists various
6192 @dfn{boring conditions} that Gnus can check and remove from sight.
6193
6194 These conditions are:
6195 @table @code
6196 @item empty
6197 Remove all empty headers.
6198 @item newsgroups
6199 Remove the @code{Newsgroups} header if it only contains the current group
6200 name. 
6201 @item followup-to
6202 Remove the @code{Followup-To} header if it is identical to the
6203 @code{Newsgroups} header.
6204 @item reply-to
6205 Remove the @code{Reply-To} header if it lists the same address as the
6206 @code{From} header.
6207 @item date
6208 Remove the @code{Date} header if the article is less than three days
6209 old. 
6210 @end table
6211
6212 To include the four first elements, you could say something like;
6213
6214 @lisp
6215 (setq gnus-boring-article-headers 
6216       '(empty newsgroups followup-to reply-to))
6217 @end lisp
6218
6219 This is also the default value for this variable.
6220
6221
6222 @node Using MIME
6223 @section Using @sc{mime}
6224 @cindex @sc{mime}
6225
6226 Mime is a standard for waving your hands through the air, aimlessly,
6227 while people stand around yawning.
6228
6229 @sc{mime}, however, is a standard for encoding your articles, aimlessly,
6230 while all newsreaders die of fear.
6231
6232 @sc{mime} may specify what character set the article uses, the encoding
6233 of the characters, and it also makes it possible to embed pictures and
6234 other naughty stuff in innocent-looking articles.
6235
6236 @vindex gnus-show-mime
6237 @vindex gnus-show-mime-method
6238 @vindex gnus-strict-mime
6239 @findex metamail-buffer
6240 Gnus handles @sc{mime} by shoving the articles through
6241 @code{gnus-show-mime-method}, which is @code{metamail-buffer} by
6242 default.  Set @code{gnus-show-mime} to @code{t} if you want to use
6243 @sc{mime} all the time.  However, if @code{gnus-strict-mime} is
6244 non-@code{nil}, the @sc{mime} method will only be used if there are
6245 @sc{mime} headers in the article.
6246
6247 It might be best to just use the toggling functions from the summary
6248 buffer to avoid getting nasty surprises. (For instance, you enter the
6249 group @samp{alt.sing-a-long} and, before you know it, @sc{mime} has
6250 decoded the sound file in the article and some horrible sing-a-long song
6251 comes streaming out out your speakers, and you can't find the volume
6252 button, because there isn't one, and people are starting to look at you,
6253 and you try to stop the program, but you can't, and you can't find the
6254 program to control the volume, and everybody else in the room suddenly
6255 decides to look at you disdainfully, and you'll feel rather stupid.)
6256
6257 Any similarity to real events and people is purely coincidental.  Ahem.
6258
6259
6260 @node Customizing Articles
6261 @section Customizing Articles
6262 @cindex article customization
6263
6264 @vindex gnus-article-display-hook
6265 The @code{gnus-article-display-hook} is called after the article has
6266 been inserted into the article buffer.  It is meant to handle all
6267 treatment of the article before it is displayed. 
6268
6269 @findex gnus-article-maybe-highlight
6270 By default it contains @code{gnus-article-hide-headers},
6271 @code{gnus-article-treat-overstrike}, and
6272 @code{gnus-article-maybe-highlight}, but there are thousands, nay
6273 millions, of functions you can put in this hook.  For an overview of
6274 functions @pxref{Article Highlighting}, @pxref{Article Hiding},
6275 @pxref{Article Washing}, @pxref{Article Buttons} and @pxref{Article
6276 Date}.
6277
6278 You can, of course, write your own functions.  The functions are called
6279 from the article buffer, and you can do anything you like, pretty much.
6280 There is no information that you have to keep in the buffer---you can
6281 change everything.  However, you shouldn't delete any headers.  Instead
6282 make them invisible if you want to make them go away.
6283
6284
6285 @node Article Keymap
6286 @section Article Keymap
6287
6288 Most of the keystrokes in the summary buffer can also be used in the
6289 article buffer.  They should behave as if you typed them in the summary
6290 buffer, which means that you don't actually have to have a summary
6291 buffer displayed while reading.  You can do it all from the article
6292 buffer.
6293
6294 A few additional keystrokes are available:
6295
6296 @table @kbd
6297
6298 @item SPACE
6299 @kindex SPACE (Article)
6300 @findex gnus-article-next-page
6301 Scroll forwards one page (@code{gnus-article-next-page}).
6302
6303 @item DEL
6304 @kindex DEL (Article)
6305 @findex gnus-article-prev-page
6306 Scroll backwards one page (@code{gnus-article-prev-page}).
6307
6308 @item C-c ^
6309 @kindex C-c ^ (Article)
6310 @findex gnus-article-refer-article
6311 If point is in the neighborhood of a @code{Message-ID} and you press
6312 @kbd{r}, Gnus will try to get that article from the server
6313 (@code{gnus-article-refer-article}).
6314
6315 @item C-c C-m
6316 @kindex C-c C-m (Article)
6317 @findex gnus-article-mail
6318 Send a reply to the address near point (@code{gnus-article-mail}).  If
6319 given a prefix, include the mail.
6320
6321 @item s
6322 @kindex s (Article)
6323 @findex gnus-article-show-summary
6324 Reconfigure the buffers so that the summary buffer becomes visible
6325 (@code{gnus-article-show-summary}).
6326
6327 @item ?
6328 @kindex ? (Article)
6329 @findex gnus-article-describe-briefly
6330 Give a very brief description of the available keystrokes
6331 (@code{gnus-article-describe-briefly}). 
6332
6333 @item TAB
6334 @kindex TAB (Article)
6335 @findex gnus-article-next-button
6336 Go to the next button, if any (@code{gnus-article-next-button}.  This
6337 only makes sense if you have buttonizing turned on.
6338
6339 @item M-TAB
6340 @kindex M-TAB (Article)
6341 @findex gnus-article-prev-button
6342 Go to the previous button, if any (@code{gnus-article-prev-button}.  
6343
6344 @end table
6345
6346
6347 @node Misc Article
6348 @section Misc Article
6349
6350 @table @code
6351
6352 @item gnus-single-article-buffer
6353 @vindex gnus-single-article-buffer
6354 If non-@code{nil}, use the same article buffer for all the groups.
6355 (This is the default.)  If @code{nil}, each group will have its own
6356 article buffer.
6357
6358 @vindex gnus-article-prepare-hook
6359 @item gnus-article-prepare-hook
6360 This hook is called right after the article has been inserted into the
6361 article buffer.  It is mainly intended for functions that do something
6362 depending on the contents; it should probably not be used for changing
6363 the contents of the article buffer.
6364
6365 @vindex gnus-article-display-hook
6366 @item gnus-article-display-hook
6367 This hook is called as the last thing when displaying an article, and is
6368 intended for modifying the contents of the buffer, doing highlights,
6369 hiding headers, and the like.
6370
6371 @item gnus-article-mode-hook
6372 @vindex gnus-article-mode-hook
6373 Hook called in article mode buffers.
6374
6375 @vindex gnus-article-mode-line-format
6376 @item gnus-article-mode-line-format
6377 This variable is a format string along the same lines as
6378 @code{gnus-summary-mode-line-format}.  It accepts exactly the same
6379 format specifications as that variable.
6380 @vindex gnus-break-pages
6381
6382 @item gnus-break-pages
6383 Controls whether @dfn{page breaking} is to take place.  If this variable
6384 is non-@code{nil}, the articles will be divided into pages whenever a
6385 page delimiter appears in the article.  If this variable is @code{nil},
6386 paging will not be done.
6387
6388 @item gnus-page-delimiter
6389 @vindex gnus-page-delimiter
6390 This is the delimiter mentioned above.  By default, it is @samp{^L}
6391 (form linefeed).
6392 @end table
6393
6394
6395 @node Composing Messages
6396 @chapter Composing Messages
6397 @cindex reply
6398 @cindex followup
6399 @cindex post
6400
6401 @kindex C-c C-c (Post)
6402 All commands for posting and mailing will put you in a message buffer
6403 where you can edit the article all you like, before you send the article
6404 by pressing @kbd{C-c C-c}.  If you are in a foreign news group, and you
6405 wish to post the article using the foreign server, you can give a prefix
6406 to @kbd{C-c C-c} to make Gnus try to post using the foreign server.
6407
6408 @menu 
6409 * Mail::                 Mailing and replying.
6410 * Post::                 Posting and following up.
6411 * Posting Server::       What server should you post via?
6412 * Mail and Post::        Mailing and posting at the same time.
6413 * Archived Messages::    Where Gnus stores the messages you've sent.
6414 * Posting Styles::       An easier way to configure some key elements.
6415 @c * Drafts::               Postponing messages and rejected messages.
6416 * Rejected Articles::    What happens if the server doesn't like your article?
6417 @end menu
6418
6419 Also see @pxref{Canceling and Superseding} for information on how to
6420 remove articles you shouldn't have posted.
6421
6422
6423 @node Mail
6424 @section Mail
6425
6426 Variables for customizing outgoing mail:
6427
6428 @table @code
6429 @item gnus-uu-digest-headers
6430 @vindex gnus-uu-digest-headers
6431 List of regexps to match headers included in digested messages.  The
6432 headers will be included in the sequence they are matched.
6433
6434 @end table
6435
6436
6437 @node Post
6438 @section Post
6439
6440 Variables for composing news articles:
6441
6442 @table @code
6443 @item gnus-sent-message-ids-file
6444 @vindex gnus-sent-message-ids-file
6445 Gnus will keep a @code{Message-ID} history file of all the mails it has
6446 sent.  If it discovers that it has already sent a mail, it will ask the
6447 user whether to re-send the mail.  (This is primarily useful when
6448 dealing with @sc{soup} packets and the like where one is apt to sent the
6449 same packet multiple times.)  This variable says what the name of this
6450 history file is.  It is @file{~/News/Sent-Message-IDs} by default.  Set
6451 this variable to @code{nil} if you don't want Gnus to keep a history
6452 file.
6453
6454 @item gnus-sent-message-ids-length
6455 @vindex gnus-sent-message-ids-length
6456 This variable says how many @code{Message-ID}s to keep in the history
6457 file.  It is 1000 by default.
6458
6459 @end table
6460
6461
6462 @node Posting Server
6463 @section Posting Server
6464
6465 When you press those magical @kbd{C-c C-c} keys to ship off your latest
6466 (extremely intelligent, of course) article, where does it go?
6467
6468 Thank you for asking.  I hate you.
6469
6470 @vindex gnus-post-method
6471
6472 It can be quite complicated.  Normally, Gnus will use the same native
6473 server.  However.  If your native server doesn't allow posting, just
6474 reading, you probably want to use some other server to post your
6475 (extremely intelligent and fabulously interesting) articles.  You can
6476 then set the @code{gnus-post-method} to some other method:
6477
6478 @lisp
6479 (setq gnus-post-method '(nnspool ""))
6480 @end lisp
6481
6482 Now, if you've done this, and then this server rejects your article, or
6483 this server is down, what do you do then?  To override this variable you
6484 can use a non-zero prefix to the @kbd{C-c C-c} command to force using
6485 the ``current'' server for posting.
6486
6487 If you give a zero prefix (i. e., @kbd{C-u 0 C-c C-c}) to that command,
6488 Gnus will prompt you for what method to use for posting.  
6489
6490 You can also set @code{gnus-post-method} to a list of select methods.
6491 If that's the case, Gnus will always prompt you for what method to use
6492 for posting. 
6493
6494
6495 @node Mail and Post
6496 @section Mail and Post
6497
6498 Here's a list of variables that are relevant to both mailing and
6499 posting:
6500
6501 @table @code
6502 @item gnus-mailing-list-groups
6503 @findex gnus-mailing-list-groups
6504 @cindex mailing lists
6505
6506 If your news server offers groups that are really mailing lists that are
6507 gatewayed to the @sc{nntp} server, you can read those groups without
6508 problems, but you can't post/followup to them without some difficulty.
6509 One solution is to add a @code{to-address} to the group parameters
6510 (@pxref{Group Parameters}).  An easier thing to do is set the
6511 @code{gnus-mailing-list-groups} to a regexp that match the groups that
6512 really are mailing lists.  Then, at least, followups to the mailing
6513 lists will work most of the time.  Posting to these groups (@kbd{a}) is
6514 still a pain, though.
6515
6516 @end table
6517
6518 You may want to do spell-checking on messages that you send out.  Or, if
6519 you don't want to spell-check by hand, you could add automatic
6520 spell-checking via the @code{ispell} package:
6521
6522 @vindex news-inews-hook
6523 @cindex ispell
6524 @findex ispell-message
6525 @lisp
6526 (add-hook 'message-send-hook 'ispell-message) 
6527 @end lisp
6528
6529
6530 @node Archived Messages
6531 @section Archived Messages
6532 @cindex archived messages
6533 @cindex sent messages
6534
6535 Gnus provides a few different methods for storing the mail you send.
6536 The default method is to use the @dfn{archive virtual server} to store
6537 the mail.  If you want to disable this completely, you should set
6538 @code{gnus-message-archive-group} to @code{nil}.
6539
6540 @vindex gnus-message-archive-method
6541 @code{gnus-message-archive-method} says what virtual server Gnus is to
6542 use to store sent messages.  It is @code{(nnfolder "archive"
6543 (nnfolder-directory "~/Mail/archive/"))} by default, but you can use any
6544 mail select method (@code{nnml}, @code{nnmbox}, etc.).  However,
6545 @code{nnfolder} is a quite likeable select method for doing this sort of
6546 thing.  If you don't like the default directory chosen, you could say
6547 something like:
6548
6549 @lisp
6550 (setq gnus-message-archive-method
6551       '(nnfolder "archive" 
6552                  (nnfolder-inhibit-expiry t)
6553                  (nnfolder-active-file "~/News/sent-mail/active")
6554                  (nnfolder-directory "~/News/sent-mail/")))
6555 @end lisp
6556
6557 @vindex gnus-message-archive-group
6558 @cindex Gcc
6559 Gnus will insert @code{Gcc} headers in all outgoing messages that point
6560 to one or more group(s) on that server.  Which group to use is
6561 determined by the @code{gnus-message-archive-group} variable.  
6562
6563 This variable can be:
6564
6565 @itemize @bullet
6566 @item a string
6567 Messages will be saved in that group.
6568 @item a list of strings
6569 Messages will be saved in all those groups.
6570 @item an alist of regexps, functions and forms
6571 When a key ``matches'', the result is used.
6572 @end itemize
6573
6574 Let's illustrate:
6575
6576 Just saving to a single group called @samp{MisK}:
6577 @lisp
6578 (setq gnus-message-archive-group "MisK")
6579 @end lisp
6580
6581 Saving to two groups, @samp{MisK} and @samp{safe}:
6582 @lisp
6583 (setq gnus-message-archive-group '("MisK" "safe"))
6584 @end lisp
6585
6586 Save to different groups based on what group you are in:
6587 @lisp
6588 (setq gnus-message-archive-group 
6589       '(("^alt" "sent-to-alt")
6590         ("mail" "sent-to-mail")
6591         (".*" "sent-to-misc")))
6592 @end lisp
6593
6594 More complex stuff:
6595 @lisp
6596 (setq gnus-message-archive-group 
6597       '((if (message-news-p)
6598             "misc-news" 
6599           "misc-mail")))
6600 @end lisp       
6601
6602 This is the default.
6603
6604 How about storing all news messages in one file, but storing all mail
6605 messages in one file per month:
6606
6607 @lisp
6608 (setq gnus-message-archive-group
6609       '((if (message-news-p)
6610             "misc-news" 
6611           (concat "mail." (format-time-string 
6612                            "%Y-%m" (current-time))))))
6613 @end lisp
6614
6615 Now, when you send a message off, it will be stored in the appropriate
6616 group.  (If you want to disable storing for just one particular message,
6617 you can just remove the @code{Gcc} header that has been inserted.)  The
6618 archive group will appear in the group buffer the next time you start
6619 Gnus, or the next time you press @kbd{F} in the group buffer.  You can
6620 enter it and read the articles in it just like you'd read any other
6621 group.  If the group gets really big and annoying, you can simply rename
6622 if (using @kbd{G r} in the group buffer) to something nice --
6623 @samp{misc-mail-september-1995}, or whatever.  New messages will
6624 continue to be stored in the old (now empty) group.
6625
6626 That's the default method of archiving sent mail.  Gnus also offers two
6627 other variables for the people who don't like the default method.  In
6628 that case you should set @code{gnus-message-archive-group} to
6629 @code{nil}; this will disable archiving.
6630
6631 @table @code
6632 @item gnus-author-copy
6633 @vindex gnus-author-copy
6634 @cindex AUTHORCOPY
6635 This is a file name, and all outgoing articles will be saved in that
6636 file.  Initialized from the @code{AUTHORCOPY} environment variable.
6637
6638 If this variable begins with the character @samp{|}, outgoing articles
6639 will be piped to the named program. It is possible to save an article in
6640 an MH folder as follows:
6641
6642 @lisp
6643 (setq gnus-author-copy 
6644       "|/usr/local/lib/mh/rcvstore +Article")
6645 @end lisp
6646
6647 If the first character is not a pipe, articles are saved using the
6648 function specified by the @code{gnus-author-copy-saver} variable.
6649
6650 @item gnus-author-copy-saver
6651 @vindex gnus-author-copy-saver
6652 @findex rmail-output
6653 A function called to save outgoing articles.  This function will be
6654 called with the same of the file to store the article in. The default
6655 function is @code{rmail-output} which saves in the Unix mailbox format.
6656
6657 @item gnus-outgoing-message-group 
6658 @vindex gnus-outgoing-message-group 
6659 All outgoing messages will be put in this group.  If you want to store
6660 all your outgoing mail and articles in the group @samp{nnml:archive},
6661 you set this variable to that value.  This variable can also be a list of
6662 group names.
6663
6664 If you want to have greater control over what group to put each
6665 message in, you can set this variable to a function that checks the
6666 current newsgroup name and then returns a suitable group name (or list
6667 of names).
6668 @end table
6669
6670
6671 @node Posting Styles
6672 @section Posting Styles
6673 @cindex posting styles
6674 @cindex styles
6675
6676 All them variables, they make my head swim.  
6677
6678 So what if you want a different @code{Organization} and signature based
6679 on what groups you post to?  And you post both from your home machine
6680 and your work machine, and you want different @code{From} lines, and so
6681 on? 
6682
6683 @vindex gnus-posting-styles
6684 One way to do stuff like that is to write clever hooks that change the
6685 variables you need to have changed.  That's a bit boring, so somebody
6686 came up with the bright idea of letting the user specify these things in
6687 a handy alist.  Here's an example of a @code{gnus-posting-styles}
6688 variable: 
6689
6690 @lisp
6691 ((".*" 
6692   (signature . "Peace and happiness")
6693   (organization . "What me?"))
6694  ("^comp" 
6695   (signature . "Death to everybody"))
6696  ("comp.emacs.i-love-it" 
6697   (organization . "Emacs is it")))
6698 @end lisp
6699
6700 As you might surmise from this example, this alist consists of several
6701 @dfn{styles}.  Each style will be applicable if the first element
6702 ``matches'', in some form or other.  The entire alist will be iterated
6703 over, from the beginning towards the end, and each match will be
6704 applied, which means that attributes in later styles that match override
6705 the same attributes in earlier matching styles.  So
6706 @samp{comp.programming.literate} will have the @samp{Death to everybody}
6707 signature and the @samp{What me?} @code{Organization} header.
6708
6709 The first element in each style is called the @code{match}.  If it's a
6710 string, then Gnus will try to regexp match it against the group name.
6711 If it's a function symbol, that function will be called with no
6712 arguments.  If it's a variable symbol, then the variable will be
6713 referenced.  If it's a list, then that list will be @code{eval}ed.  In
6714 any case, if this returns a non-@code{nil} value, then the style is said
6715 to @dfn{match}.
6716
6717 Each style may contain a arbitrary amount of @dfn{attributes}.  Each
6718 attribute consists of a @var{(name . value)} pair.  The attribute name
6719 can be one of @code{signature}, @code{organization} or @code{from}.  The
6720 attribute name can also be a string.  In that case, this will be used as
6721 a header name, and the value will be inserted in the headers of the
6722 article.
6723
6724 The attribute value can be a string (used verbatim), a function (the
6725 return value will be used), a variable (its value will be used) or a
6726 list (it will be @code{eval}ed and the return value will be used).
6727
6728 So here's a new example:
6729
6730 @lisp
6731 (setq gnus-posting-styles
6732       '((".*" 
6733           (signature . "~/.signature") 
6734           (from . "user@@foo (user)")
6735           ("X-Home-Page" . (getenv "WWW_HOME"))
6736           (organization . "People's Front Against MWM"))
6737         ("^rec.humor" 
6738           (signature . my-funny-signature-randomizer))
6739         ((equal (system-name) "gnarly")
6740           (signature . my-quote-randomizer))
6741         (posting-from-work-p
6742           (signature . "~/.work-signature")
6743           (from . "user@@bar.foo (user)")
6744           (organization . "Important Work, Inc"))
6745         ("^nn.+:" 
6746           (signature . "~/.mail-signature"))))
6747 @end lisp
6748
6749
6750 @c @node Drafts
6751 @c @section Drafts
6752 @c @cindex drafts
6753 @c 
6754 @c If you are writing a message (mail or news) and suddenly remember that
6755 @c you have a steak in the oven (or some pesto in the food processor, you
6756 @c craazy vegetarians), you'll probably wish there was a method to save the
6757 @c message you are writing so that you can continue editing it some other
6758 @c day, and send it when you feel its finished.
6759 @c 
6760 @c Well, don't worry about it.  Whenever you start composing a message of
6761 @c some sort using the Gnus mail and post commands, the buffer you get will
6762 @c automatically associate to an article in a special @dfn{draft} group.
6763 @c If you save the buffer the normal way (@kbd{C-x C-s}, for instance), the
6764 @c article will be saved there.  (Auto-save files also go to the draft
6765 @c group.) 
6766 @c 
6767 @c @cindex nndraft
6768 @c @vindex gnus-draft-group-directory
6769 @c The draft group is a special group (which is implemented as an
6770 @c @code{nndraft} group, if you absolutely have to know) called
6771 @c @samp{nndraft:drafts}.  The variable @code{gnus-draft-group-directory}
6772 @c controls both the name of the group and the location---the leaf element
6773 @c in the path will be used as the name of the group.  What makes this
6774 @c group special is that you can't tick any articles in it or mark any
6775 @c articles as read---all articles in the group are permanently unread.
6776 @c 
6777 @c If the group doesn't exist, it will be created and you'll be subscribed
6778 @c to it.
6779 @c 
6780 @c @findex gnus-dissociate-buffer-from-draft
6781 @c @kindex C-c M-d (Mail)
6782 @c @kindex C-c M-d (Post)
6783 @c @findex gnus-associate-buffer-with-draft
6784 @c @kindex C-c C-d (Mail)
6785 @c @kindex C-c C-d (Post)
6786 @c If you're writing some super-secret message that you later want to
6787 @c encode with PGP before sending, you may wish to turn the auto-saving
6788 @c (and association with the draft group) off.  You never know who might be
6789 @c interested in reading all your extremely valuable and terribly horrible
6790 @c and interesting secrets.  The @kbd{C-c M-d}
6791 @c (@code{gnus-dissociate-buffer-from-draft}) command does that for you.
6792 @c If you change your mind and want to turn the auto-saving back on again,
6793 @c @kbd{C-c C-d} (@code{gnus-associate-buffer-with-draft} does that.
6794 @c 
6795 @c @vindex gnus-use-draft
6796 @c To leave association with the draft group off by default, set
6797 @c @code{gnus-use-draft} to @code{nil}.  It is @code{t} by default. 
6798 @c 
6799 @c @findex gnus-summary-send-draft
6800 @c @kindex S D c (Summary)
6801 @c When you want to continue editing the article, you simply enter the
6802 @c draft group and push @kbd{S D c} (@code{gnus-summary-send-draft}) to do
6803 @c that.  You will be placed in a buffer where you left off.
6804 @c 
6805 @c Rejected articles will also be put in this draft group (@pxref{Rejected
6806 @c Articles}).
6807 @c 
6808 @c @findex gnus-summary-send-all-drafts
6809 @c If you have lots of rejected messages you want to post (or mail) without
6810 @c doing further editing, you can use the @kbd{S D a} command
6811 @c (@code{gnus-summary-send-all-drafts}).  This command understands the
6812 @c process/prefix convention (@pxref{Process/Prefix}).  
6813 @c 
6814 @c 
6815 @c @node Rejected Articles
6816 @c @section Rejected Articles
6817 @c @cindex rejected articles
6818 @c 
6819 @c Sometimes a news server will reject an article.  Perhaps the server
6820 @c doesn't like your face.  Perhaps it just feels miserable.  Perhaps
6821 @c @emph{there be demons}.  Perhaps you have included too much cited text.
6822 @c Perhaps the disk is full.  Perhaps the server is down.
6823 @c 
6824 @c These situations are, of course, totally beyond the control of Gnus.
6825 @c (Gnus, of course, loves the way you look, always feels great, has angels
6826 @c fluttering around inside of it, doesn't care about how much cited text
6827 @c you include, never runs full and never goes down.)  So Gnus saves these
6828 @c articles until some later time when the server feels better.
6829 @c 
6830 @c The rejected articles will automatically be put in a special draft group
6831 @c (@pxref{Drafts}).  When the server comes back up again, you'd then
6832 @c typically enter that group and send all the articles off.
6833 @c 
6834
6835 @node Select Methods
6836 @chapter Select Methods
6837 @cindex foreign groups
6838 @cindex select methods
6839
6840 A @dfn{foreign group} is a group that is not read by the usual (or
6841 default) means.  It could be, for instance, a group from a different
6842 @sc{nntp} server, it could be a virtual group, or it could be your own
6843 personal mail group.
6844
6845 A foreign group (or any group, really) is specified by a @dfn{name} and
6846 a @dfn{select method}.  To take the latter first, a select method is a
6847 list where the first element says what backend to use (eg. @code{nntp},
6848 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
6849 name}.  There may be additional elements in the select method, where the
6850 value may have special meaning for the backend in question.
6851
6852 One could say that a select method defines a @dfn{virtual server}---so
6853 we do just that (@pxref{The Server Buffer}).
6854
6855 The @dfn{name} of the group is the name the backend will recognize the
6856 group as.
6857
6858 For instance, the group @samp{soc.motss} on the @sc{nntp} server
6859 @samp{some.where.edu} will have the name @samp{soc.motss} and select
6860 method @code{(nntp "some.where.edu")}.  Gnus will call this group, in
6861 all circumstances, @samp{nntp+some.where.edu:soc.motss}, even though the
6862 @code{nntp} backend just knows this group as @samp{soc.motss}.
6863
6864 The different methods all have their peculiarities, of course.
6865
6866 @menu
6867 * The Server Buffer::     Making and editing virtual servers.
6868 * Getting News::          Reading USENET news with Gnus.
6869 * Getting Mail::          Reading your personal mail with Gnus.
6870 * Other Sources::         Reading directories, files, SOUP packets.
6871 * Combined Groups::       Combining groups into one group.
6872 @end menu
6873
6874
6875 @node The Server Buffer
6876 @section The Server Buffer
6877
6878 Traditionally, a @dfn{server} is a machine or a piece of software that
6879 one connects to, and then requests information from.  Gnus does not
6880 connect directly to any real servers, but does all transactions through
6881 one backend or other.  But that's just putting one layer more between
6882 the actual media and Gnus, so we might just as well say that each
6883 backend represents a virtual server.
6884
6885 For instance, the @code{nntp} backend may be used to connect to several
6886 different actual @sc{nntp} servers, or, perhaps, to many different ports
6887 on the same actual @sc{nntp} server.  You tell Gnus which backend to
6888 use, and what parameters to set by specifying a @dfn{select method}.
6889
6890 These select methods specifications can sometimes become quite
6891 complicated---say, for instance, that you want to read from the
6892 @sc{nntp} server @samp{news.funet.fi} on port number @code{13}, which
6893 hangs if queried for @sc{nov} headers and has a buggy select.  Ahem.
6894 Anyways, if you had to specify that for each group that used this
6895 server, that would be too much work, so Gnus offers a way of naming
6896 select methods, which is what you do in the server buffer.
6897
6898 To enter the server buffer, user the @kbd{^}
6899 (@code{gnus-group-enter-server-mode}) command in the group buffer.
6900
6901 @menu
6902 * Server Buffer Format::      You can customize the look of this buffer.
6903 * Server Commands::           Commands to manipulate servers.
6904 * Example Methods::           Examples server specifications.
6905 * Creating a Virtual Server:: An example session.
6906 * Servers and Methods::       You can use server names as select methods.
6907 * Unavailable Servers::       Some servers you try to contact may be down.
6908 @end menu
6909
6910 @vindex gnus-server-mode-hook
6911 @code{gnus-server-mode-hook} is run when creating the server buffer.
6912
6913
6914 @node Server Buffer Format
6915 @subsection Server Buffer Format
6916 @cindex server buffer format
6917
6918 @vindex gnus-server-line-format
6919 You can change the look of the server buffer lines by changing the
6920 @code{gnus-server-line-format} variable.  This is a @code{format}-like
6921 variable, with some simple extensions:
6922
6923 @table @samp
6924
6925 @item h 
6926 How the news is fetched---the backend name.
6927
6928 @item n
6929 The name of this server.
6930
6931 @item w
6932 Where the news is to be fetched from---the address.
6933
6934 @item s
6935 The opened/closed/denied status of the server.
6936 @end table
6937
6938 @vindex gnus-server-mode-line-format
6939 The mode line can also be customized by using the
6940 @code{gnus-server-mode-line-format} variable.  The following specs are
6941 understood: 
6942
6943 @table @samp
6944 @item S
6945 Server name.
6946
6947 @item M
6948 Server method.
6949 @end table
6950
6951 Also @pxref{Formatting Variables}.
6952
6953
6954 @node Server Commands
6955 @subsection Server Commands
6956 @cindex server commands
6957
6958 @table @kbd
6959
6960 @item a
6961 @kindex a (Server)
6962 @findex gnus-server-add-server
6963 Add a new server (@code{gnus-server-add-server}).
6964
6965 @item e
6966 @kindex e (Server)
6967 @findex gnus-server-edit-server
6968 Edit a server (@code{gnus-server-edit-server}).
6969
6970 @item SPACE
6971 @kindex SPACE (Server)
6972 @findex gnus-server-read-server
6973 Browse the current server (@code{gnus-server-read-server}).
6974
6975 @item q
6976 @kindex q (Server)
6977 @findex gnus-server-exit
6978 Return to the group buffer (@code{gnus-server-exit}).
6979
6980 @item k
6981 @kindex k (Server)
6982 @findex gnus-server-kill-server
6983 Kill the current server (@code{gnus-server-kill-server}).
6984
6985 @item y
6986 @kindex y (Server)
6987 @findex gnus-server-yank-server
6988 Yank the previously killed server (@code{gnus-server-yank-server}).
6989
6990 @item c
6991 @kindex c (Server)
6992 @findex gnus-server-copy-server
6993 Copy the current server (@code{gnus-server-copy-server}).
6994
6995 @item l
6996 @kindex l (Server)
6997 @findex gnus-server-list-servers
6998 List all servers (@code{gnus-server-list-servers}).
6999
7000 @end table
7001
7002
7003 @node Example Methods
7004 @subsection Example Methods
7005
7006 Most select methods are pretty simple and self-explanatory: 
7007
7008 @lisp
7009 (nntp "news.funet.fi")
7010 @end lisp
7011
7012 Reading directly from the spool is even simpler:
7013
7014 @lisp
7015 (nnspool "")
7016 @end lisp
7017
7018 As you can see, the first element in a select method is the name of the
7019 backend, and the second is the @dfn{address}, or @dfn{name}, if you
7020 will. 
7021
7022 After these two elements, there may be a arbitrary number of
7023 @var{(variable form)} pairs.
7024
7025 To go back to the first example---imagine that you want to read from
7026 port @code{15} from that machine.  This is what the select method should
7027 look like then:
7028
7029 @lisp
7030 (nntp "news.funet.fi" (nntp-port-number 15))
7031 @end lisp
7032
7033 You should read the documentation to each backend to find out what
7034 variables are relevant, but here's an @code{nnmh} example. 
7035
7036 @code{nnmh} is a mail backend that reads a spool-like structure.  Say
7037 you have two structures that you wish to access: One is your private
7038 mail spool, and the other is a public one.  Here's the possible spec for
7039 you private mail:
7040
7041 @lisp
7042 (nnmh "private" (nnmh-directory "~/private/mail/"))
7043 @end lisp
7044
7045 (This server is then called @samp{private}, but you may have guessed
7046 that.)
7047
7048 Here's the method for a public spool:
7049
7050 @lisp
7051 (nnmh "public" 
7052       (nnmh-directory "/usr/information/spool/") 
7053       (nnmh-get-new-mail nil))
7054 @end lisp
7055
7056
7057 @node Creating a Virtual Server
7058 @subsection Creating a Virtual Server
7059
7060 If you're saving lots of articles in the cache by using persistent
7061 articles, you may want to create a virtual server to read the cache.
7062
7063 First you need to add a new server.  The @kbd{a} command does that.  It
7064 would probably be best to use @code{nnspool} to read the cache.  You
7065 could also use @code{nnml} or @code{nnmh}, though.
7066
7067 Type @kbd{a nnspool RET cache RET}.
7068
7069 You should now have a brand new @code{nnspool} virtual server called
7070 @samp{cache}.  You now need to edit it to have the right definitions.
7071 Type @kbd{e} to edit the server.  You'll be entered into a buffer that
7072 will contain the following:
7073
7074 @lisp
7075 (nnspool "cache")
7076 @end lisp
7077
7078 Change that to:
7079
7080 @lisp
7081 (nnspool "cache"
7082          (nnspool-spool-directory "~/News/cache/")
7083          (nnspool-nov-directory "~/News/cache/")
7084          (nnspool-active-file "~/News/cache/active"))
7085 @end lisp
7086
7087 Type @kbd{C-c C-c} to return to the server buffer.  If you now press
7088 @kbd{RET} over this virtual server, you should be entered into a browse
7089 buffer, and you should be able to enter any of the groups displayed.
7090
7091
7092 @node Servers and Methods
7093 @subsection Servers and Methods
7094
7095 Wherever you would normally use a select method
7096 (eg. @code{gnus-secondary-select-method}, in the group select method,
7097 when browsing a foreign server) you can use a virtual server name
7098 instead.  This could potentially save lots of typing.  And it's nice all
7099 over.
7100
7101
7102 @node Unavailable Servers
7103 @subsection Unavailable Servers
7104
7105 If a server seems to be unreachable, Gnus will mark that server as
7106 @code{denied}.  That means that any subsequent attempt to make contact
7107 with that server will just be ignored.  ``It can't be opened,'' Gnus
7108 will tell you, without making the least effort to see whether that is
7109 actually the case or not.
7110
7111 That might seem quite naughty, but it does make sense most of the time.
7112 Let's say you have 10 groups subscribed to the server
7113 @samp{nepholococcygia.com}.  This server is located somewhere quite far
7114 away from you, the machine is quite, so it takes 1 minute just to find
7115 out that it refuses connection from you today.  If Gnus were to attempt
7116 to do that 10 times, you'd be quite annoyed, so Gnus won't attempt to do
7117 that.  Once it has gotten a single ``connection refused'', it will
7118 regard that server as ``down''.
7119
7120 So, what happens if the machine was only feeling unwell temporarily?
7121 How do you test to see whether the machine has come up again?
7122
7123 You jump to the server buffer (@pxref{The Server Buffer}) and poke it
7124 with the following commands:
7125
7126 @table @kbd
7127
7128 @item O
7129 @kindex O (Server)
7130 @findex gnus-server-open-server
7131 Try to establish connection to the server on the current line
7132 (@code{gnus-server-open-server}).
7133
7134 @item C
7135 @kindex C (Server)
7136 @findex gnus-server-close-server
7137 Close the connection (if any) to the server
7138 (@code{gnus-server-close-server}).
7139
7140 @item D
7141 @kindex D (Server)
7142 @findex gnus-server-deny-server
7143 Mark the current server as unreachable
7144 (@code{gnus-server-deny-server}). 
7145
7146 @item R
7147 @kindex R (Server)
7148 @findex gnus-server-remove-denials
7149 Remove all marks to whether Gnus was denied connection from all servers
7150 (@code{gnus-server-remove-denials}). 
7151
7152 @end table
7153
7154
7155 @node Getting News
7156 @section Getting News
7157 @cindex reading news
7158 @cindex news backends
7159
7160 A newsreader is normally used for reading news.  Gnus currently provides
7161 only two methods of getting news -- it can read from an @sc{nntp}
7162 server, or it can read from a local spool.
7163
7164 @menu
7165 * NNTP::               Reading news from an @sc{nntp} server.
7166 * News Spool::         Reading news from the local spool.
7167 @end menu
7168
7169
7170 @node NNTP
7171 @subsection @sc{nntp}
7172 @cindex nntp
7173
7174 Subscribing to a foreign group from an @sc{nntp} server is rather easy.
7175 You just specify @code{nntp} as method and the address of the @sc{nntp}
7176 server as the, uhm, address.
7177
7178 If the @sc{nntp} server is located at a non-standard port, setting the
7179 third element of the select method to this port number should allow you
7180 to connect to the right port.  You'll have to edit the group info for
7181 that (@pxref{Foreign Groups}).
7182
7183 The name of the foreign group can be the same as a native group.  In
7184 fact, you can subscribe to the same group from as many different servers
7185 you feel like.  There will be no name collisions.
7186
7187 The following variables can be used to create a virtual @code{nntp}
7188 server: 
7189
7190 @table @code
7191
7192 @item nntp-server-opened-hook
7193 @vindex nntp-server-opened-hook
7194 @cindex @sc{mode reader}
7195 @cindex authinfo
7196 @cindex authentification
7197 @cindex nntp authentification
7198 @findex nntp-send-authinfo
7199 @findex nntp-send-mode-reader
7200 @code{nntp-server-opened-hook} is run after a connection has been made.
7201 It can be used to send commands to the @sc{nntp} server after it has
7202 been contacted.  By default is sends the command @code{MODE READER} to
7203 the server with the @code{nntp-send-mode-reader} function.  Another
7204 popular function is @code{nntp-send-authinfo}, which will prompt you for
7205 an @sc{nntp} password and stuff.
7206
7207 @item nntp-server-action-alist 
7208 @vindex nntp-server-action-alist 
7209 This is an list of regexps to match on server types and actions to be
7210 taken when matches are made.  For instance, if you want Gnus to beep
7211 every time you connect to innd, you could say something like:
7212
7213 @lisp
7214 (setq nntp-server-action-alist
7215       '(("innd" (ding))))
7216 @end lisp
7217
7218 You probably don't want to do that, though.
7219
7220 The default value is
7221
7222 @lisp
7223   '(("nntpd 1\\.5\\.11t" 
7224      (remove-hook 'nntp-server-opened-hook nntp-send-mode-reader)))
7225 @end lisp
7226
7227 This ensures that Gnus doesn't send the @code{MODE READER} command to
7228 nntpd 1.5.11t, since that command chokes that server, I've been told. 
7229
7230 @item nntp-maximum-request
7231 @vindex nntp-maximum-request
7232 If the @sc{nntp} server doesn't support @sc{nov} headers, this backend
7233 will collect headers by sending a series of @code{head} commands.  To
7234 speed things up, the backend sends lots of these commands without
7235 waiting for reply, and then reads all the replies.  This is controlled
7236 by the @code{nntp-maximum-request} variable, and is 400 by default.  If
7237 your network is buggy, you should set this to 1.
7238
7239 @item nntp-connection-timeout
7240 @vindex nntp-connection-timeout
7241 If you have lots of foreign @code{nntp} groups that you connect to
7242 regularly, you're sure to have problems with @sc{nntp} servers not
7243 responding properly, or being too loaded to reply within reasonable
7244 time.  This is can lead to awkward problems, which can be helped
7245 somewhat by setting @code{nntp-connection-timeout}.  This is an integer
7246 that says how many seconds the @code{nntp} backend should wait for a
7247 connection before giving up.  If it is @code{nil}, which is the default,
7248 no timeouts are done.
7249
7250 @item nntp-command-timeout
7251 @vindex nntp-command-timeout
7252 @cindex PPP connections
7253 @cindex dynamic IP addresses
7254 If you're running Gnus on a machine that has a dynamically assigned
7255 address, Gnus may become confused.  If the address of your machine
7256 changes after connecting to the @sc{nntp} server, Gnus will simply sit
7257 waiting forever for replies from the server.  To help with this
7258 unfortunate problem, you can set this command to a number.  Gnus will
7259 then, if it sits waiting longer than that number of seconds for a reply
7260 from the server, shut down the connection, start a new one, and resend
7261 the command.  This should hopefully be transparent to the user.  A
7262 likely number is 30 seconds. 
7263
7264 @item nntp-retry-on-break
7265 @vindex nntp-retry-on-break
7266 If this variable is non-@code{nil}, you can also @kbd{C-g} if Gnus
7267 hangs.  This will have much the same effect as the command timeout
7268 described above.
7269
7270 @item nntp-server-hook
7271 @vindex nntp-server-hook
7272 This hook is run as the last step when connecting to an @sc{nntp}
7273 server.
7274
7275 @findex nntp-open-rlogin
7276 @findex nntp-open-network-stream
7277 @item nntp-open-server-function
7278 @vindex nntp-open-server-function
7279 This function is used to connect to the remote system.  Two pre-made
7280 functions are @code{nntp-open-network-stream}, which is the default, and
7281 simply connects to some port or other on the remote system.  The other
7282 is @code{nntp-open-rlogin}, which does an rlogin on the remote system,
7283 and then does a telnet to the @sc{nntp} server available there.
7284
7285 @item nntp-rlogin-parameters
7286 @vindex nntp-rlogin-parameters
7287 If you use @code{nntp-open-rlogin} as the
7288 @code{nntp-open-server-function}, this list will be used as the
7289 parameter list given to @code{rsh}.
7290
7291 @item nntp-end-of-line
7292 @vindex nntp-end-of-line
7293 String to use as end-of-line markers when talking to the @sc{nntp}
7294 server.  This is @samp{\r\n} by default, but should be @samp{\n} when
7295 using @code{rlogin} to talk to the server.
7296
7297 @item nntp-rlogin-user-name
7298 @vindex nntp-rlogin-user-name
7299 User name on the remote system when using the @code{rlogin} connect
7300 function. 
7301
7302 @item nntp-address
7303 @vindex nntp-address
7304 The address of the remote system running the @sc{nntp} server.
7305
7306 @item nntp-port-number
7307 @vindex nntp-port-number
7308 Port number to connect to when using the @code{nntp-open-network-stream}
7309 connect function.
7310
7311 @item nntp-buggy-select
7312 @vindex nntp-buggy-select
7313 Set this to non-@code{nil} if your select routine is buggy.
7314
7315 @item nntp-nov-is-evil 
7316 @vindex nntp-nov-is-evil 
7317 If the @sc{nntp} server does not support @sc{nov}, you could set this
7318 variable to @code{t}, but @code{nntp} usually checks whether @sc{nov}
7319 can be used automatically.
7320
7321 @item nntp-xover-commands
7322 @vindex nntp-xover-commands
7323 @cindex nov
7324 @cindex XOVER
7325 List of strings that are used as commands to fetch @sc{nov} lines from a
7326 server.  The default value of this variable is @code{("XOVER"
7327 "XOVERVIEW")}. 
7328
7329 @item nntp-nov-gap
7330 @vindex nntp-nov-gap
7331 @code{nntp} normally sends just one big request for @sc{nov} lines to
7332 the server.  The server responds with one huge list of lines.  However,
7333 if you have read articles 2-5000 in the group, and only want to read
7334 article 1 and 5001, that means that @code{nntp} will fetch 4999 @sc{nov}
7335 lines that you do not want, and will not use.  This variable says how
7336 big a gap between two consecutive articles is allowed to be before the
7337 @code{XOVER} request is split into several request.  Note that if your
7338 network is fast, setting this variable to a really small number means
7339 that fetching will probably be slower.  If this variable is @code{nil},
7340 @code{nntp} will never split requests.
7341
7342 @item nntp-prepare-server-hook
7343 @vindex nntp-prepare-server-hook
7344 A hook run before attempting to connect to an @sc{nntp} server.
7345
7346 @item nntp-async-number
7347 @vindex nntp-async-number
7348 How many articles should be pre-fetched when in asynchronous mode.  If
7349 this variable is @code{t}, @code{nntp} will pre-fetch all the articles
7350 that it can without bound.  If it is @code{nil}, no pre-fetching will be
7351 made.
7352
7353 @item nntp-warn-about-losing-connection
7354 @vindex nntp-warn-about-losing-connection
7355 If this variable is non-@code{nil}, some noise will be made when a
7356 server closes connection.
7357
7358 @end table
7359
7360
7361 @node News Spool
7362 @subsection News Spool
7363 @cindex nnspool
7364 @cindex news spool
7365
7366 Subscribing to a foreign group from the local spool is extremely easy,
7367 and might be useful, for instance, to speed up reading groups like
7368 @samp{alt.binaries.pictures.furniture}.
7369
7370 Anyways, you just specify @code{nnspool} as the method and @samp{} (or
7371 anything else) as the address.
7372
7373 If you have access to a local spool, you should probably use that as the
7374 native select method (@pxref{Finding the News}).  It is normally faster
7375 than using an @code{nntp} select method, but might not be.  It depends.
7376 You just have to try to find out what's best at your site.
7377
7378 @table @code
7379
7380 @item nnspool-inews-program
7381 @vindex nnspool-inews-program
7382 Program used to post an article.
7383
7384 @item nnspool-inews-switches
7385 @vindex nnspool-inews-switches
7386 Parameters given to the inews program when posting an article. 
7387
7388 @item nnspool-spool-directory
7389 @vindex nnspool-spool-directory
7390 Where @code{nnspool} looks for the articles.  This is normally
7391 @file{/usr/spool/news/}.
7392
7393 @item nnspool-nov-directory 
7394 @vindex nnspool-nov-directory 
7395 Where @code{nnspool} will look for @sc{nov} files.  This is normally
7396 @file{/usr/spool/news/over.view/}.
7397
7398 @item nnspool-lib-dir
7399 @vindex nnspool-lib-dir
7400 Where the news lib dir is (@file{/usr/lib/news/} by default).
7401
7402 @item nnspool-active-file
7403 @vindex nnspool-active-file
7404 The path of the active file.
7405
7406 @item nnspool-newsgroups-file
7407 @vindex nnspool-newsgroups-file
7408 The path of the group descriptions file.
7409
7410 @item nnspool-history-file
7411 @vindex nnspool-history-file
7412 The path of the news history file.
7413
7414 @item nnspool-active-times-file
7415 @vindex nnspool-active-times-file
7416 The path of the active date file.
7417
7418 @item nnspool-nov-is-evil
7419 @vindex nnspool-nov-is-evil
7420 If non-@code{nil}, @code{nnspool} won't try to use any @sc{nov} files
7421 that it finds.
7422
7423 @item nnspool-sift-nov-with-sed
7424 @vindex nnspool-sift-nov-with-sed
7425 @cindex sed
7426 If non-@code{nil}, which is the default, use @code{sed} to get the
7427 relevant portion from the overview file.  If nil, @code{nnspool} will
7428 load the entire file into a buffer and process it there.
7429
7430 @end table
7431
7432
7433 @node Getting Mail
7434 @section Getting Mail
7435 @cindex reading mail
7436 @cindex mail
7437
7438 Reading mail with a newsreader---isn't that just plain WeIrD? But of
7439 course.
7440
7441 @menu
7442 * Getting Started Reading Mail:: A simple cookbook example.
7443 * Splitting Mail::               How to create mail groups.
7444 * Mail Backend Variables::       Variables for customizing mail handling.
7445 * Fancy Mail Splitting::         Gnus can do hairy splitting of incoming mail.
7446 * Mail and Procmail::            Reading mail groups that procmail create.
7447 * Incorporating Old Mail::       What about the old mail you have?
7448 * Expiring Mail::                Getting rid of unwanted mail.
7449 * Duplicates::                   Dealing with duplicated mail.
7450 * Not Reading Mail::             Using mail backends for reading other files.
7451 * Choosing a Mail Backend::      Gnus can read a variety of mail formats.
7452 @end menu
7453
7454
7455 @node Getting Started Reading Mail
7456 @subsection Getting Started Reading Mail
7457
7458 It's quite easy to use Gnus to read your new mail.  You just plonk the
7459 mail backend of your choice into @code{gnus-secondary-select-methods},
7460 and things will happen automatically.
7461
7462 For instance, if you want to use @code{nnml} (which is a one file per
7463 mail backend), you could put the following in your @file{.gnus} file:
7464
7465 @lisp
7466 (setq gnus-secondary-select-methods
7467       '((nnml "private")))
7468 @end lisp
7469
7470 Now, the next time you start Gnus, this backend will be queried for new
7471 articles, and it will move all the messages in your spool file to its
7472 directory, which is @code{~/Mail/} by default.  The new group that will
7473 be created (@samp{mail.misc}) will be subscribed, and you can read it
7474 like any other group.
7475
7476 You will probably want to split the mail into several groups, though:
7477
7478 @lisp
7479 (setq nnmail-split-methods
7480   '(("junk" "^From:.*Lars Ingebrigtsen")
7481     ("crazy" "^Subject:.*die\\|^Organization:.*flabby")
7482     ("other" "")))
7483 @end lisp
7484
7485 This will result in three new mail groups being created:
7486 @samp{nnml:junk}, @samp{nnml:crazy}, and @samp{nnml:other}.  All the
7487 mail that doesn't fit into the first two groups will be placed in the
7488 latter group.
7489
7490 This should be sufficient for reading mail with Gnus.  You might want to
7491 give the other sections in this part of the manual a perusal, though,
7492 especially @pxref{Choosing a Mail Backend} and @pxref{Expiring Mail}. 
7493
7494
7495 @node Splitting Mail
7496 @subsection Splitting Mail
7497 @cindex splitting mail
7498 @cindex mail splitting
7499
7500 @vindex nnmail-split-methods
7501 The @code{nnmail-split-methods} variable says how the incoming mail is
7502 to be split into groups.
7503
7504 @lisp
7505 (setq nnmail-split-methods
7506   '(("mail.junk" "^From:.*Lars Ingebrigtsen")
7507     ("mail.crazy" "^Subject:.*die\\|^Organization:.*flabby")
7508     ("mail.other" "")))
7509 @end lisp
7510
7511 This variable is a list of lists, where the first element of each of
7512 these lists is the name of the mail group (they do not have to be called
7513 something beginning with @samp{mail}, by the way), and the second
7514 element is a regular expression used on the header of each mail to
7515 determine if it belongs in this mail group.
7516
7517 The second element can also be a function.  In that case, it will be
7518 called narrowed to the headers with the first element of the rule as the
7519 argument.  It should return a non-@code{nil} value if it thinks that the
7520 mail belongs in that group.
7521
7522 The last of these groups should always be a general one, and the regular
7523 expression should @emph{always} be @samp{} so that it matches any
7524 mails that haven't been matched by any of the other regexps.
7525
7526 If you like to tinker with this yourself, you can set this variable to a
7527 function of your choice.  This function will be called without any
7528 arguments in a buffer narrowed to the headers of an incoming mail
7529 message.  The function should return a list of groups names that it
7530 thinks should carry this mail message.
7531
7532 Note that the mail backends are free to maul the poor, innocent
7533 incoming headers all they want to.  They all add @code{Lines} headers;
7534 some add @code{X-Gnus-Group} headers; most rename the Unix mbox
7535 @code{From<SPACE>} line to something else.
7536
7537 @vindex nnmail-crosspost
7538 The mail backends all support cross-posting.  If several regexps match,
7539 the mail will be ``cross-posted'' to all those groups.
7540 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
7541 that no articles are crossposted to the general (@samp{}) group.
7542
7543 @vindex nnmail-crosspost-link-function
7544 @cindex crosspost
7545 @cindex links
7546 @code{nnmh} and @code{nnml} makes crossposts by creating hard links to
7547 the crossposted articles.  However, not all files systems support hard
7548 links.  If that's the case for you, set
7549 @code{nnmail-crosspost-link-function} to @code{copy-file}.  (This
7550 variable is @code{add-name-to-file} by default.)  
7551
7552 Gnus gives you all the opportunity you could possibly want for shooting
7553 yourself in the foot.  Let's say you create a group that will contain
7554 all the mail you get from your boss.  And then you accidentally
7555 unsubscribe from the group.  Gnus will still put all the mail from your
7556 boss in the unsubscribed group, and so, when your boss mails you ``Have
7557 that report ready by Monday or you're fired!'', you'll never see it and,
7558 come Tuesday, you'll still believe that you're gainfully employed while
7559 you really should be out collecting empty bottles to save up for next
7560 month's rent money.
7561
7562
7563 @node Mail Backend Variables
7564 @subsection Mail Backend Variables
7565
7566 These variables are (for the most part) pertinent to all the various
7567 mail backends.
7568
7569 @table @code
7570 @vindex nnmail-read-incoming-hook
7571 @item nnmail-read-incoming-hook
7572 The mail backends all call this hook after reading new mail.  You can
7573 use this hook to notify any mail watch programs, if you want to.
7574
7575 @vindex nnmail-spool-file
7576 @item nnmail-spool-file
7577 @cindex POP mail
7578 @cindex MAILHOST
7579 @cindex movemail
7580 The backends will look for new mail in this file.  If this variable is
7581 @code{nil}, the mail backends will never attempt to fetch mail by
7582 themselves.  If you are using a POP mail server and your name is
7583 @samp{larsi}, you should set this variable to @samp{po:larsi}.  If
7584 your name is not @samp{larsi}, you should probably modify that
7585 slightly, but you may have guessed that already, you smart & handsome
7586 devil!  You can also set this variable to @code{pop}, and Gnus will try
7587 to figure out the POP mail string by itself.  In any case, Gnus will
7588 call @code{movemail} which will contact the POP server named in the
7589 @code{MAILHOST} environment variable.
7590
7591 When you use a mail backend, Gnus will slurp all your mail from your
7592 inbox and plonk it down in your home directory.  Gnus doesn't move any
7593 mail if you're not using a mail backend---you have to do a lot of magic
7594 invocations first.  At the time when you have finished drawing the
7595 pentagram, lightened the candles, and sacrificed the goat, you really
7596 shouldn't be too surprised when Gnus moves your mail.
7597
7598 @vindex nnmail-use-procmail
7599 @vindex nnmail-procmail-suffix
7600 @item nnmail-use-procmail
7601 If non-@code{nil}, the mail backends will look in
7602 @code{nnmail-procmail-directory} for incoming mail.  All the files in
7603 that directory that have names ending in @code{nnmail-procmail-suffix}
7604 will be considered incoming mailboxes, and will be searched for new
7605 mail.
7606
7607 @vindex nnmail-crash-box
7608 @item nnmail-crash-box
7609 When the mail backends read a spool file, it is first moved to this
7610 file, which is @file{~/.gnus-crash-box} by default.  If this file
7611 already exists, it will always be read (and incorporated) before any
7612 other spool files.
7613
7614 @vindex nnmail-prepare-incoming-hook
7615 @item nnmail-prepare-incoming-hook
7616 This is run in a buffer that holds all the new incoming mail, and can be
7617 used for, well, anything, really.
7618
7619 @vindex nnmail-pre-get-new-mail-hook
7620 @vindex nnmail-post-get-new-mail-hook
7621 @item nnmail-pre-get-new-mail-hook
7622 @itemx nnmail-post-get-new-mail-hook
7623 These are two useful hooks executed when treating new incoming
7624 mail---@code{nnmail-pre-get-new-mail-hook} (is called just before
7625 starting to handle the new mail) and
7626 @code{nnmail-post-get-new-mail-hook} (is called when the mail handling
7627 is done).  Here's and example of using these two hooks to change the
7628 default file modes the new mail files get:
7629
7630 @lisp
7631 (add-hook 'gnus-pre-get-new-mail-hook 
7632           (lambda () (set-default-file-modes 511)))
7633
7634 (add-hook 'gnus-post-get-new-mail-hook 
7635           (lambda () (set-default-file-modes 551)))
7636 @end lisp
7637
7638 @item nnmail-tmp-directory
7639 @vindex nnmail-tmp-directory
7640 This variable says where to move the incoming mail to while processing
7641 it.  This is usually done in the same directory that the mail backend
7642 inhabits (i.e., @file{~/Mail/}), but if this variable is non-@code{nil},
7643 it will be used instead.
7644
7645 @item nnmail-movemail-program
7646 @vindex nnmail-movemail-program
7647 This program is executed to move mail from the user's inbox to her home
7648 directory.  The default is @samp{movemail}.
7649
7650 @item nnmail-delete-incoming
7651 @vindex nnmail-delete-incoming
7652 @cindex incoming mail files
7653 @cindex deleting incoming files
7654 If non-@code{nil}, the mail backends will delete the temporary incoming
7655 file after splitting mail into the proper groups.  This is @code{nil} by
7656 default for reasons of security.
7657
7658 @item nnmail-use-long-file-names
7659 @vindex nnmail-use-long-file-names
7660 If non-@code{nil}, the mail backends will use long file and directory
7661 names.  Groups like @samp{mail.misc} will end up in directories like
7662 @file{mail.misc/}.  If it is @code{nil}, the same group will end up in
7663 @file{mail/misc/}.
7664
7665 @item nnmail-delete-file-function
7666 @vindex nnmail-delete-file-function
7667 @findex delete-file
7668 Function called to delete files.  It is @code{delete-file} by default. 
7669
7670 @end table
7671
7672
7673 @node Fancy Mail Splitting
7674 @subsection Fancy Mail Splitting
7675 @cindex mail splitting
7676 @cindex fancy mail splitting
7677
7678 @vindex nnmail-split-fancy
7679 @findex nnmail-split-fancy
7680 If the rather simple, standard method for specifying how to split mail
7681 doesn't allow you to do what you want, you can set
7682 @code{nnmail-split-methods} to @code{nnmail-split-fancy}.  Then you can
7683 play with the @code{nnmail-split-fancy} variable. 
7684
7685 Let's look at an example value of this variable first:
7686
7687 @lisp
7688 ;; Messages from the mailer daemon are not crossposted to any of
7689 ;; the ordinary groups.  Warnings are put in a separate group
7690 ;; from real errors.
7691 (| ("from" mail (| ("subject" "warn.*" "mail.warning")
7692                    "mail.misc"))
7693    ;; Non-error messages are crossposted to all relevant
7694    ;; groups, but we don't crosspost between the group for the
7695    ;; (ding) list and the group for other (ding) related mail.
7696    (& (| (any "ding@@ifi\\.uio\\.no" "ding.list")
7697          ("subject" "ding" "ding.misc"))
7698       ;; Other mailing lists...
7699       (any "procmail@@informatik\\.rwth-aachen\\.de" "procmail.list")
7700       (any "SmartList@@informatik\\.rwth-aachen\\.de" "SmartList.list")
7701       ;; People...
7702       (any "larsi@@ifi\\.uio\\.no" "people.Lars Magne Ingebrigtsen"))
7703    ;; Unmatched mail goes to the catch all group.
7704    "misc.misc"))")
7705 @end lisp
7706
7707 This variable has the format of a @dfn{split}.  A split is a (possibly)
7708 recursive structure where each split may contain other splits.  Here are
7709 the four possible split syntaxes:
7710
7711 @table @dfn
7712
7713 @item GROUP 
7714 If the split is a string, that will be taken as a group name. 
7715
7716 @item (FIELD VALUE SPLIT)
7717 If the split is a list, and the first element is a string, then that
7718 means that if header FIELD (a regexp) contains VALUE (also a regexp),
7719 then store the message as specified by SPLIT.
7720
7721 @item (| SPLIT...)
7722 If the split is a list, and the first element is @code{|} (vertical
7723 bar), then process each SPLIT until one of them matches.  A SPLIT is
7724 said to match if it will cause the mail message to be stored in one or
7725 more groups.
7726
7727 @item (& SPLIT...)
7728 If the split is a list, and the first element is @code{&}, then process
7729 all SPLITs in the list.
7730 @end table
7731
7732 In these splits, FIELD must match a complete field name.  VALUE must
7733 match a complete word according to the fundamental mode syntax table.
7734 You can use @code{.*} in the regexps to match partial field names or
7735 words.
7736
7737 @vindex nnmail-split-abbrev-alist
7738 FIELD and VALUE can also be lisp symbols, in that case they are expanded
7739 as specified by the variable @code{nnmail-split-abbrev-alist}.  This is
7740 an alist of cons cells, where the car of the cells contains the key, and
7741 the cdr contains a string.
7742
7743 @vindex nnmail-split-fancy-syntax-table
7744 @code{nnmail-split-fancy-syntax-table} is the syntax table in effect
7745 when all this splitting is performed.
7746
7747
7748 @node Mail and Procmail
7749 @subsection Mail and Procmail
7750 @cindex procmail
7751
7752 @cindex slocal
7753 @cindex elm
7754 Many people use @code{procmail} (or some other mail filter program or
7755 external delivery agent---@code{slocal}, @code{elm}, etc) to split
7756 incoming mail into groups.  If you do that, you should set
7757 @code{nnmail-spool-file} to @code{procmail} to ensure that the mail
7758 backends never ever try to fetch mail by themselves.
7759
7760 This also means that you probably don't want to set
7761 @code{nnmail-split-methods} either, which has some, perhaps, unexpected
7762 side effects.
7763
7764 When a mail backend is queried for what groups it carries, it replies
7765 with the contents of that variable, along with any groups it has figured
7766 out that it carries by other means.  None of the backends (except
7767 @code{nnmh}) actually go out to the disk and check what groups actually
7768 exist.  (It's not trivial to distinguish between what the user thinks is
7769 a basis for a newsgroup and what is just a plain old file or directory.)
7770
7771 This means that you have to tell Gnus (and the backends) what groups
7772 exist by hand.
7773
7774 Let's take the @code{nnmh} backend as an example. 
7775
7776 The folders are located in @code{nnmh-directory}, say, @file{~/Mail/}.
7777 There are three folders, @file{foo}, @file{bar} and @file{mail.baz}.
7778
7779 Go to the group buffer and type @kbd{G m}.  When prompted, answer
7780 @samp{foo} for the name and @samp{nnmh} for the method.  Repeat
7781 twice for the two other groups, @samp{bar} and @samp{mail.baz}.  Be sure
7782 to include all your mail groups.
7783
7784 That's it.  You are now set to read your mail.  An active file for this
7785 method will be created automatically.
7786
7787 @vindex nnmail-procmail-suffix
7788 @vindex nnmail-procmail-directory
7789 If you use @code{nnfolder} or any other backend that store more than a
7790 single article in each file, you should never have procmail add mails to
7791 the file that Gnus sees.  Instead, procmail should put all incoming mail
7792 in @code{nnmail-procmail-directory}.  To arrive at the file name to put
7793 the incoming mail in, append @code{nnmail-procmail-suffix} to the group
7794 name.  The mail backends will read the mail from these files.
7795
7796 @vindex nnmail-resplit-incoming
7797 When Gnus reads a file called @file{mail.misc.spool}, this mail will be
7798 put in the @code{mail.misc}, as one would expect.  However, if you want
7799 Gnus to split the mail the normal way, you could set
7800 @code{nnmail-resplit-incoming} to @code{t}.
7801
7802 @vindex nnmail-keep-last-article
7803 If you use @code{procmail} to split things directory into an @code{nnmh}
7804 directory (which you shouldn't do), you should set
7805 @code{nnmail-keep-last-article} to non-@code{nil} to prevent Gnus from
7806 ever expiring the final article in a mail newsgroup.  This is quite,
7807 quite important.
7808
7809
7810 @node Incorporating Old Mail
7811 @subsection Incorporating Old Mail
7812
7813 Most people have lots of old mail stored in various file formats.  If
7814 you have set up Gnus to read mail using one of the spiffy Gnus mail
7815 backends, you'll probably wish to have that old mail incorporated into
7816 your mail groups.
7817
7818 Doing so can be quite easy.
7819
7820 To take an example: You're reading mail using @code{nnml}
7821 (@pxref{Mail Spool}), and have set @code{nnmail-split-methods} to a
7822 satisfactory value (@pxref{Splitting Mail}).  You have an old Unix mbox
7823 file filled with important, but old, mail.  You want to move it into
7824 your @code{nnml} groups.
7825
7826 Here's how:
7827
7828 @enumerate
7829 @item
7830 Go to the group buffer.
7831
7832 @item 
7833 Type `G f' and give the path of the mbox file when prompted to create an
7834 @code{nndoc} group from the mbox file (@pxref{Foreign Groups}).
7835
7836 @item 
7837 Type `SPACE' to enter the newly created group.
7838
7839 @item
7840 Type `M P b' to process-mark all articles in this group (@pxref{Setting
7841 Process Marks}).
7842
7843 @item 
7844 Type `B r' to respool all the process-marked articles, and answer
7845 @samp{nnml} when prompted (@pxref{Mail Group Commands}).
7846 @end enumerate
7847
7848 All the mail messages in the mbox file will now also be spread out over
7849 all your @code{nnml} groups.  Try entering them and check whether things
7850 have gone without a glitch.  If things look ok, you may consider
7851 deleting the mbox file, but I wouldn't do that unless I was absolutely
7852 sure that all the mail has ended up where it should be.
7853
7854 Respooling is also a handy thing to do if you're switching from one mail
7855 backend to another.  Just respool all the mail in the old mail groups
7856 using the new mail backend.
7857
7858
7859 @node Expiring Mail
7860 @subsection Expiring Mail
7861 @cindex article expiry
7862
7863 Traditional mail readers have a tendency to remove mail articles when
7864 you mark them as read, in some way.  Gnus takes a fundamentally
7865 different approach to mail reading.
7866
7867 Gnus basically considers mail just to be news that has been received in
7868 a rather peculiar manner.  It does not think that it has the power to
7869 actually change the mail, or delete any mail messages.  If you enter a
7870 mail group, and mark articles as ``read'', or kill them in some other
7871 fashion, the mail articles will still exist on the system.  I repeat:
7872 Gnus will not delete your old, read mail.  Unless you ask it to, of
7873 course.
7874
7875 To make Gnus get rid of your unwanted mail, you have to mark the
7876 articles as @dfn{expirable}.  This does not mean that the articles will
7877 disappear right away, however.  In general, a mail article will be
7878 deleted from your system if, 1) it is marked as expirable, AND 2) it is
7879 more than one week old.  If you do not mark an article as expirable, it
7880 will remain on your system until hell freezes over.  This bears
7881 repeating one more time, with some spurious capitalizations: IF you do
7882 NOT mark articles as EXPIRABLE, Gnus will NEVER delete those ARTICLES.
7883
7884 @vindex gnus-auto-expirable-newsgroups
7885 You do not have to mark articles as expirable by hand.  Groups that
7886 match the regular expression @code{gnus-auto-expirable-newsgroups} will
7887 have all articles that you read marked as expirable automatically.  All
7888 articles that are marked as expirable have an @samp{E} in the first
7889 column in the summary buffer.
7890
7891 Let's say you subscribe to a couple of mailing lists, and you want the
7892 articles you have read to disappear after a while:
7893
7894 @lisp
7895 (setq gnus-auto-expirable-newsgroups 
7896       "mail.nonsense-list\\|mail.nice-list")
7897 @end lisp
7898
7899 Another way to have auto-expiry happen is to have the element
7900 @code{auto-expire} in the group parameters of the group. 
7901
7902 @vindex nnmail-expiry-wait
7903 The @code{nnmail-expiry-wait} variable supplies the default time an
7904 expirable article has to live.  The default is seven days.  
7905
7906 Gnus also supplies a function that lets you fine-tune how long articles
7907 are to live, based on what group they are in.  Let's say you want to
7908 have one month expiry period in the @samp{mail.private} group, a one day
7909 expiry period in the @samp{mail.junk} group, and a six day expiry period
7910 everywhere else:
7911
7912 @vindex nnmail-expiry-wait-function
7913 @lisp
7914 (setq nnmail-expiry-wait-function
7915       (lambda (group)
7916        (cond ((string= group "mail.private")
7917                31)
7918              ((string= group "mail.junk")
7919                1)
7920              ((string= group "important")
7921                'never)
7922              (t
7923                6))))
7924 @end lisp
7925
7926 The group names that this function is fed are ``unadorned'' group
7927 names---no @samp{nnml:} prefixes and the like.
7928
7929 The @code{nnmail-expiry-wait} variable and
7930 @code{nnmail-expiry-wait-function} function can be either a number (not
7931 necessarily an integer) or the symbols @code{immediate} or
7932 @code{never}.  
7933
7934 You can also use the @code{expiry-wait} group parameter to selectively
7935 change the expiry period (@pxref{Group Parameters}).
7936
7937 @vindex nnmail-keep-last-article
7938 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never
7939 expire the final article in a mail newsgroup.  This is to make life
7940 easier for procmail users.
7941
7942 @vindex gnus-total-expirable-newsgroups
7943 By the way, that line up there about Gnus never expiring non-expirable
7944 articles is a lie.  If you put @code{total-expire} in the group
7945 parameters, articles will not be marked as expirable, but all read
7946 articles will be put through the expiry process.  Use with extreme
7947 caution.  Even more dangerous is the
7948 @code{gnus-total-expirable-newsgroups} variable.  All groups that match
7949 this regexp will have all read articles put through the expiry process,
7950 which means that @emph{all} old mail articles in the groups in question
7951 will be deleted after a while.  Use with extreme caution, and don't come
7952 crying to me when you discover that the regexp you used matched the
7953 wrong group and all your important mail has disappeared.  Be a
7954 @emph{man}!  Or a @emph{woman}!  Whatever you feel more comfortable
7955 with!  So there!
7956
7957
7958 @node Duplicates
7959 @subsection Duplicates
7960
7961 @vindex nnmail-delete-duplicates
7962 @vindex nnmail-message-id-cache-length
7963 @vindex nnmail-message-id-cache-file
7964 @vindex nnmail-treat-duplicates
7965 @cindex duplicate mails
7966 If you are a member of a couple of mailing list, you will sometime
7967 receive two copies of the same mail.  This can be quite annoying, so
7968 @code{nnmail} checks for and treats any duplicates it might find.  To do
7969 this, it keeps a cache of old @code{Message-ID}s -
7970 @code{nnmail-message-id-cache-file}, which is @file{~/.nnmail-cache} by
7971 default.  The approximate maximum number of @code{Message-ID}s stored
7972 there is controlled by the @code{nnmail-message-id-cache-length}
7973 variable, which is 1000 by default. (So 1000 @code{Message-ID}s will be
7974 stored.) If all this sounds scary to you, you can set
7975 @code{nnmail-delete-duplicates} to @code{warn} (which is what it is by
7976 default), and @code{nnmail} won't delete duplicate mails.  Instead it
7977 will generate a brand new @code{Message-ID} for the mail and insert a
7978 warning into the head of the mail saying that it thinks that this is a
7979 duplicate of a different message.  
7980
7981 This variable can also be a function.  If that's the case, the function
7982 will be called from a buffer narrowed to the message in question with
7983 the @code{Message-ID} as a parameter.  The function must return either
7984 @code{nil}, @code{warn}, or @code{delete}.
7985
7986 You can turn this feature off completely by setting the variable to
7987 @code{nil}.
7988
7989 If you want all the duplicate mails to be put into a special
7990 @dfn{duplicates} group, you could do that using the normal mail split
7991 methods:
7992
7993 @lisp
7994 (setq nnmail-split-fancy
7995       '(| ;; Messages duplicates go to a separate group.
7996           ("gnus-warning" "duplication of message" "duplicate")
7997           ;; Message from daemons, postmaster, and the like to another.
7998           (any mail "mail.misc")
7999           ;; Other rules.
8000           [ ... ] ))
8001 @end lisp
8002
8003 Or something like:
8004 @lisp
8005 (setq nnmail-split-methods 
8006       '(("duplicates" "^Gnus-Warning:")
8007         ;; Other rules.
8008         [...]))
8009 @end lisp
8010
8011 Here's a neat feature: If you know that the recipient reads her mail
8012 with Gnus, and that she has @code{nnmail-treat-duplicates} set to
8013 @code{delete}, you can send her as many insults as you like, just by
8014 using a @code{Message-ID} of a mail that you know that she's already
8015 received.  Think of all the fun!  She'll never see any of it!  Whee!
8016
8017
8018 @node Not Reading Mail
8019 @subsection Not Reading Mail
8020
8021 If you start using any of the mail backends, they have the annoying
8022 habit of assuming that you want to read mail with them.  This might not
8023 be unreasonable, but it might not be what you want.
8024
8025 If you set @code{nnmail-spool-file} to @code{nil}, none of the backends
8026 will ever attempt to read incoming mail, which should help.
8027
8028 @vindex nnbabyl-get-new-mail
8029 @vindex nnmbox-get-new-mail
8030 @vindex nnml-get-new-mail
8031 @vindex nnmh-get-new-mail
8032 @vindex nnfolder-get-new-mail
8033 This might be too much, if, for instance, you are reading mail quite
8034 happily with @code{nnml} and just want to peek at some old @sc{rmail}
8035 file you have stashed away with @code{nnbabyl}.  All backends have
8036 variables called backend-@code{get-new-mail}.  If you want to disable
8037 the @code{nnbabyl} mail reading, you edit the virtual server for the
8038 group to have a setting where @code{nnbabyl-get-new-mail} to @code{nil}.
8039
8040 All the mail backends will call @code{nn}*@code{-prepare-save-mail-hook}
8041 narrowed to the article to be saved before saving it when reading
8042 incoming mail.
8043
8044
8045 @node Choosing a Mail Backend
8046 @subsection Choosing a Mail Backend
8047
8048 Gnus will read the mail spool when you activate a mail group.  The mail
8049 file is first copied to your home directory.  What happens after that
8050 depends on what format you want to store your mail in.
8051
8052 @menu
8053 * Unix Mail Box::               Using the (quite) standard Un*x mbox.
8054 * Rmail Babyl::                 Emacs programs use the rmail babyl format.
8055 * Mail Spool::                  Store your mail in a private spool?
8056 * MH Spool::                    An mhspool-like backend.
8057 * Mail Folders::                Having one file for each group.
8058 @end menu
8059
8060
8061 @node Unix Mail Box
8062 @subsubsection Unix Mail Box
8063 @cindex nnmbox
8064 @cindex unix mail box
8065
8066 @vindex nnmbox-active-file
8067 @vindex nnmbox-mbox-file
8068 The @dfn{nnmbox} backend will use the standard Un*x mbox file to store
8069 mail.  @code{nnmbox} will add extra headers to each mail article to say
8070 which group it belongs in.
8071
8072 Virtual server settings:
8073
8074 @table @code
8075 @item nnmbox-mbox-file
8076 @vindex nnmbox-mbox-file
8077 The name of the mail box in the user's home directory. 
8078
8079 @item nnmbox-active-file
8080 @vindex nnmbox-active-file
8081 The name of the active file for the mail box.
8082
8083 @item nnmbox-get-new-mail
8084 @vindex nnmbox-get-new-mail
8085 If non-@code{nil}, @code{nnmbox} will read incoming mail and split it
8086 into groups.
8087 @end table
8088
8089
8090 @node Rmail Babyl
8091 @subsubsection Rmail Babyl
8092 @cindex nnbabyl
8093 @cindex rmail mbox
8094
8095 @vindex nnbabyl-active-file
8096 @vindex nnbabyl-mbox-file
8097 The @dfn{nnbabyl} backend will use a babyl mail box (aka. @dfn{rmail
8098 mbox}) to store mail. @code{nnbabyl} will add extra headers to each mail
8099 article to say which group it belongs in.
8100
8101 Virtual server settings:
8102
8103 @table @code
8104 @item nnbabyl-mbox-file
8105 @vindex nnbabyl-mbox-file
8106 The name of the rmail mbox file.
8107
8108 @item nnbabyl-active-file
8109 @vindex nnbabyl-active-file
8110 The name of the active file for the rmail box.
8111
8112 @item nnbabyl-get-new-mail
8113 @vindex nnbabyl-get-new-mail
8114 If non-@code{nil}, @code{nnbabyl} will read incoming mail. 
8115 @end table
8116
8117
8118 @node Mail Spool
8119 @subsubsection Mail Spool
8120 @cindex nnml
8121 @cindex mail @sc{nov} spool
8122
8123 The @dfn{nnml} spool mail format isn't compatible with any other known
8124 format.  It should be used with some caution.
8125
8126 @vindex nnml-directory
8127 If you use this backend, Gnus will split all incoming mail into files;
8128 one file for each mail, and put the articles into the correct
8129 directories under the directory specified by the @code{nnml-directory}
8130 variable.  The default value is @file{~/Mail/}.
8131
8132 You do not have to create any directories beforehand; Gnus will take
8133 care of all that.
8134
8135 If you have a strict limit as to how many files you are allowed to store
8136 in your account, you should not use this backend.  As each mail gets its
8137 own file, you might very well occupy thousands of inodes within a few
8138 weeks.  If this is no problem for you, and it isn't a problem for you
8139 having your friendly systems administrator walking around, madly,
8140 shouting ``Who is eating all my inodes?! Who? Who!?!'', then you should
8141 know that this is probably the fastest format to use.  You do not have
8142 to trudge through a big mbox file just to read your new mail.
8143
8144 @code{nnml} is probably the slowest backend when it comes to article
8145 splitting.  It has to create lots of files, and it also generates
8146 @sc{nov} databases for the incoming mails.  This makes is the fastest
8147 backend when it comes to reading mail.
8148
8149 Virtual server settings:
8150
8151 @table @code
8152 @item nnml-directory
8153 @vindex nnml-directory
8154 All @code{nnml} directories will be placed under this directory. 
8155
8156 @item nnml-active-file
8157 @vindex nnml-active-file
8158 The active file for the @code{nnml} server.
8159
8160 @item nnml-newsgroups-file
8161 @vindex nnml-newsgroups-file
8162 The @code{nnml} group descriptions file.  @xref{Newsgroups File
8163 Format}. 
8164
8165 @item nnml-get-new-mail
8166 @vindex nnml-get-new-mail
8167 If non-@code{nil}, @code{nnml} will read incoming mail.
8168
8169 @item nnml-nov-is-evil
8170 @vindex nnml-nov-is-evil
8171 If non-@code{nil}, this backend will ignore any @sc{nov} files.  
8172
8173 @item nnml-nov-file-name
8174 @vindex nnml-nov-file-name
8175 The name of the @sc{nov} files.  The default is @file{.overview}. 
8176
8177 @item nnml-prepare-save-mail-hook
8178 @vindex nnml-prepare-save-mail-hook
8179 Hook run narrowed to an article before saving.
8180
8181 @end table
8182
8183 @findex nnml-generate-nov-databases
8184 If your @code{nnml} groups and @sc{nov} files get totally out of whack,
8185 you can do a complete update by typing @kbd{M-x
8186 nnml-generate-nov-databases}.  This command will trawl through the
8187 entire @code{nnml} hierarchy, looking at each and every article, so it
8188 might take a while to complete.
8189
8190
8191 @node MH Spool
8192 @subsubsection MH Spool
8193 @cindex nnmh
8194 @cindex mh-e mail spool
8195
8196 @code{nnmh} is just like @code{nnml}, except that is doesn't generate
8197 @sc{nov} databases and it doesn't keep an active file.  This makes
8198 @code{nnmh} a @emph{much} slower backend than @code{nnml}, but it also
8199 makes it easier to write procmail scripts for.
8200
8201 Virtual server settings:
8202
8203 @table @code
8204 @item nnmh-directory
8205 @vindex nnmh-directory
8206 All @code{nnmh} directories will be located under this directory.
8207
8208 @item nnmh-get-new-mail
8209 @vindex nnmh-get-new-mail
8210 If non-@code{nil}, @code{nnmh} will read incoming mail.
8211
8212 @item nnmh-be-safe
8213 @vindex nnmh-be-safe
8214 If non-@code{nil}, @code{nnmh} will go to ridiculous lengths to make
8215 sure that the articles in the folder are actually what Gnus thinks they
8216 are.  It will check date stamps and stat everything in sight, so
8217 setting this to @code{t} will mean a serious slow-down.  If you never
8218 use anything but Gnus to read the @code{nnmh} articles, you do not have
8219 to set this variable to @code{t}.
8220 @end table
8221
8222
8223 @node Mail Folders
8224 @subsubsection Mail Folders
8225 @cindex nnfolder
8226 @cindex mbox folders
8227 @cindex mail folders
8228
8229 @code{nnfolder} is a backend for storing each mail group in a separate
8230 file.  Each file is in the standard Un*x mbox format.  @code{nnfolder}
8231 will add extra headers to keep track of article numbers and arrival
8232 dates.
8233
8234 Virtual server settings:
8235
8236 @table @code
8237 @item nnfolder-directory
8238 @vindex nnfolder-directory
8239 All the @code{nnfolder} mail boxes will be stored under this directory. 
8240
8241 @item nnfolder-active-file
8242 @vindex nnfolder-active-file
8243 The name of the active file.
8244
8245 @item nnfolder-newsgroups-file
8246 @vindex nnfolder-newsgroups-file
8247 The name of the group descriptions file.  @xref{Newsgroups File Format}.
8248
8249 @item nnfolder-get-new-mail
8250 @vindex nnfolder-get-new-mail
8251 If non-@code{nil}, @code{nnfolder} will read incoming mail.
8252 @end table
8253
8254 @findex nnfolder-generate-active-file
8255 @kindex M-x nnfolder-generate-active-file
8256 If you have lots of @code{nnfolder}-like files you'd like to read with
8257 @code{nnfolder}, you can use the @kbd{M-x nnfolder-generate-active-file}
8258 command to make @code{nnfolder} aware of all likely files in
8259 @code{nnfolder-directory}.
8260
8261
8262 @node Other Sources
8263 @section Other Sources
8264
8265 Gnus can do more than just read news or mail.  The methods described
8266 below allow Gnus to view directories and files as if they were
8267 newsgroups.
8268
8269 @menu
8270 * Directory Groups::   You can read a directory as if it was a newsgroup.
8271 * Anything Groups::    Dired?  Who needs dired?
8272 * Document Groups::    Single files can be the basis of a group.
8273 * SOUP::               Reading @sc{SOUP} packets ``offline''.
8274 @end menu
8275
8276
8277 @node Directory Groups
8278 @subsection Directory Groups
8279 @cindex nndir
8280 @cindex directory groups
8281
8282 If you have a directory that has lots of articles in separate files in
8283 it, you might treat it as a newsgroup.  The files have to have numerical
8284 names, of course.
8285
8286 This might be an opportune moment to mention @code{ange-ftp}, that most
8287 wonderful of all wonderful Emacs packages.  When I wrote @code{nndir}, I
8288 didn't think much about it---a backend to read directories.  Big deal.
8289
8290 @code{ange-ftp} changes that picture dramatically.  For instance, if you
8291 enter @file{"/ftp.hpc.uh.edu:/pub/emacs/ding-list/"} as the the
8292 directory name, ange-ftp will actually allow you to read this directory
8293 over at @samp{sina} as a newsgroup.  Distributed news ahoy!
8294
8295 @code{nndir} will use @sc{nov} files if they are present.
8296
8297 @code{nndir} is a ``read-only'' backend---you can't delete or expire
8298 articles with this method.  You can use @code{nnmh} or @code{nnml} for
8299 whatever you use @code{nndir} for, so you could switch to any of those
8300 methods if you feel the need to have a non-read-only @code{nndir}.
8301
8302
8303 @node Anything Groups
8304 @subsection Anything Groups
8305 @cindex nneething
8306
8307 From the @code{nndir} backend (which reads a single spool-like
8308 directory), it's just a hop and a skip to @code{nneething}, which
8309 pretends that any arbitrary directory is a newsgroup.  Strange, but
8310 true.
8311
8312 When @code{nneething} is presented with a directory, it will scan this
8313 directory and assign article numbers to each file.  When you enter such
8314 a group, @code{nneething} must create ``headers'' that Gnus can use.
8315 After all, Gnus is a newsreader, in case you're
8316 forgetting. @code{nneething} does this in a two-step process.  First, it
8317 snoops each file in question.  If the file looks like an article (i.e.,
8318 the first few lines look like headers), it will use this as the head.
8319 If this is just some arbitrary file without a head (eg. a C source
8320 file), @code{nneething} will cobble up a header out of thin air.  It
8321 will use file ownership, name and date and do whatever it can with these
8322 elements.
8323
8324 All this should happen automatically for you, and you will be presented
8325 with something that looks very much like a newsgroup.  Totally like a
8326 newsgroup, to be precise.  If you select an article, it will be displayed
8327 in the article buffer, just as usual.
8328
8329 If you select a line that represents a directory, Gnus will pop you into
8330 a new summary buffer for this @code{nneething} group.  And so on.  You can
8331 traverse the entire disk this way, if you feel like, but remember that
8332 Gnus is not dired, really, and does not intend to be, either.
8333
8334 There are two overall modes to this action---ephemeral or solid.  When
8335 doing the ephemeral thing (i.e., @kbd{G D} from the group buffer), Gnus
8336 will not store information on what files you have read, and what files
8337 are new, and so on.  If you create a solid @code{nneething} group the
8338 normal way with @kbd{G m}, Gnus will store a mapping table between
8339 article numbers and file names, and you can treat this group like any
8340 other groups.  When you activate a solid @code{nneething} group, you will
8341 be told how many unread articles it contains, etc., etc.
8342
8343 Some variables:
8344
8345 @table @code
8346 @item nneething-map-file-directory
8347 @vindex nneething-map-file-directory
8348 All the mapping files for solid @code{nneething} groups will be stored
8349 in this directory, which defaults to @file{~/.nneething/}.
8350
8351 @item nneething-exclude-files
8352 @vindex nneething-exclude-files
8353 All files that match this regexp will be ignored.  Nice to use to exclude
8354 auto-save files and the like, which is what it does by default.
8355
8356 @item nneething-map-file
8357 @vindex nneething-map-file
8358 Name of the map files.
8359 @end table
8360
8361
8362 @node Document Groups
8363 @subsection Document Groups
8364 @cindex nndoc
8365 @cindex documentation group
8366 @cindex help group
8367
8368 @code{nndoc} is a cute little thing that will let you read a single file
8369 as a newsgroup.  Several files types are supported:
8370
8371 @table @code
8372 @cindex babyl
8373 @cindex rmail mbox
8374
8375 @item babyl
8376 The babyl (rmail) mail box.
8377 @cindex mbox
8378 @cindex Unix mbox
8379
8380 @item mbox
8381 The standard Unix mbox file.
8382
8383 @cindex MMDF mail box
8384 @item mmdf
8385 The MMDF mail box format.
8386
8387 @item news
8388 Several news articles appended into a file.
8389
8390 @item rnews
8391 @cindex rnews batch files
8392 The rnews batch transport format.
8393 @cindex forwarded messages
8394
8395 @item forward
8396 Forwarded articles.
8397
8398 @item mime-digest
8399 @cindex digest
8400 @cindex MIME digest
8401 @cindex 1153 digest
8402 @cindex RFC 1153 digest
8403 @cindex RFC 341 digest
8404 MIME (RFC 1341) digest format.
8405
8406 @item standard-digest
8407 The standard (RFC 1153) digest format.
8408
8409 @item slack-digest
8410 Non-standard digest format---matches most things, but does it badly. 
8411 @end table
8412
8413 You can also use the special ``file type'' @code{guess}, which means
8414 that @code{nndoc} will try to guess what file type it is looking at.
8415 @code{digest} means that @code{nndoc} should guess what digest type the
8416 file is.
8417
8418 @code{nndoc} will not try to change the file or insert any extra headers into
8419 it---it will simply, like, let you use the file as the basis for a
8420 group.  And that's it.
8421
8422 If you have some old archived articles that you want to insert into your
8423 new & spiffy Gnus mail backend, @code{nndoc} can probably help you with
8424 that.  Say you have an old @file{RMAIL} file with mail that you now want
8425 to split into your new @code{nnml} groups.  You look at that file using
8426 @code{nndoc}, set the process mark on all the articles in the buffer
8427 (@kbd{M P b}, for instance), and then re-spool (@kbd{B r}) using
8428 @code{nnml}.  If all goes well, all the mail in the @file{RMAIL} file is
8429 now also stored in lots of @code{nnml} directories, and you can delete
8430 that pesky @file{RMAIL} file.  If you have the guts!  
8431
8432 Virtual server variables:
8433
8434 @table @code
8435 @item nndoc-article-type
8436 @vindex nndoc-article-type
8437 This should be one of @code{mbox}, @code{babyl}, @code{digest},
8438 @code{mmdf}, @code{forward}, @code{news}, @code{rnews},
8439 @code{mime-digest}, @code{clari-briefs}, or @code{guess}.
8440
8441 @item nndoc-post-type
8442 @vindex nndoc-post-type
8443 This variable says whether Gnus is to consider the group a news group or
8444 a mail group.  There are two legal values:  @code{mail} (the default)
8445 and @code{news}.
8446 @end table
8447
8448
8449 @node SOUP
8450 @subsection SOUP
8451 @cindex SOUP
8452 @cindex offline
8453
8454 In the PC world people often talk about ``offline'' newsreaders.  These
8455 are thingies that are combined reader/news transport monstrosities.
8456 With built-in modem programs.  Yecchh!
8457
8458 Of course, us Unix Weenie types of human beans use things like
8459 @code{uucp} and, like, @code{nntpd} and set up proper news and mail
8460 transport things like Ghod intended.  And then we just use normal
8461 newsreaders.  
8462
8463 However, it can sometimes be convenient to do something a that's a bit
8464 easier on the brain if you have a very slow modem, and you're not really
8465 that interested in doing things properly.  
8466
8467 A file format called @sc{soup} has been developed for transporting news
8468 and mail from servers to home machines and back again.  It can be a bit
8469 fiddly.
8470
8471 @enumerate
8472
8473 @item
8474 You log in on the server and create a @sc{soup} packet.  You can either
8475 use a dedicated @sc{soup} thingie, or you can use Gnus to create the
8476 packet with the @kbd{O s} command.
8477
8478 @item 
8479 You transfer the packet home.  Rail, boat, car or modem will do fine.
8480
8481 @item
8482 You put the packet in your home directory.
8483
8484 @item
8485 You fire up Gnus using the @code{nnsoup} backend as the native server.
8486
8487 @item
8488 You read articles and mail and answer and followup to the things you
8489 want.
8490
8491 @item 
8492 You do the @kbd{G s r} command to pack these replies into a @sc{soup}
8493 packet.
8494
8495 @item 
8496 You transfer this packet to the server.  
8497
8498 @item
8499 You use Gnus to mail this packet out with the @kbd{G s s} command.
8500
8501 @item
8502 You then repeat until you die.
8503
8504 @end enumerate
8505
8506 So you basically have a bipartite system---you use @code{nnsoup} for
8507 reading and Gnus for packing/sending these @sc{soup} packets.
8508
8509 @menu
8510 * SOUP Commands::     Commands for creating and sending @sc{soup} packets
8511 * SOUP Groups::       A backend for reading @sc{soup} packets.
8512 * SOUP Replies::      How to enable @code{nnsoup} to take over mail and news.
8513 @end menu
8514
8515
8516 @node SOUP Commands
8517 @subsubsection SOUP Commands
8518
8519 @table @kbd
8520 @item G s b
8521 @kindex G s b (Group)
8522 @findex gnus-group-brew-soup
8523 Pack all unread articles in the current group
8524 (@code{gnus-group-brew-soup}).  This command understands the
8525 process/prefix convention.
8526
8527 @item G s w
8528 @kindex G s w (Group)
8529 @findex gnus-soup-save-areas
8530 Save all data files (@code{gnus-soup-save-areas}).
8531
8532 @item G s s
8533 @kindex G s s (Group)
8534 @findex gnus-soup-send-replies
8535 Send all replies from the replies packet
8536 (@code{gnus-soup-send-replies}). 
8537
8538 @item G s p
8539 @kindex G s p (Group)
8540 @findex gnus-soup-pack-packet
8541 Pack all files into a @sc{soup} packet (@code{gnus-soup-pack-packet}). 
8542
8543 @item G s r
8544 @kindex G s r (Group)
8545 @findex nnsoup-pack-replies
8546 Pack all replies into a replies packet (@code{nnsoup-pack-replies}). 
8547
8548 @item O s
8549 @kindex O s (Summary)
8550 @findex gnus-soup-add-article
8551 This summary-mode command adds the current article to a @sc{soup} packet
8552 (@code{gnus-soup-add-article}).  It understands the process/prefix
8553 convention. 
8554
8555 @end table
8556
8557
8558 There are a few variables to customize where Gnus will put all these
8559 thingies:  
8560
8561 @table @code
8562
8563 @item gnus-soup-directory
8564 @vindex gnus-soup-directory
8565 Directory where Gnus will save intermediate files while composing
8566 @sc{soup} packets.  The default is @file{~/SoupBrew/}. 
8567
8568 @item gnus-soup-replies-directory
8569 @vindex gnus-soup-replies-directory
8570 This is what Gnus will use as a temporary directory while sending our
8571 reply packets.  The default is @file{~/SoupBrew/SoupReplies/}. 
8572
8573 @item gnus-soup-prefix-file
8574 @vindex gnus-soup-prefix-file
8575 Name of the file where Gnus stores the last used prefix.  The default is
8576 @samp{gnus-prefix}. 
8577
8578 @item gnus-soup-packer
8579 @vindex gnus-soup-packer
8580 A format string command for packing a @sc{soup} packet.  The default is
8581 @samp{tar cf - %s | gzip > $HOME/Soupout%d.tgz}. 
8582
8583 @item gnus-soup-unpacker
8584 @vindex gnus-soup-unpacker
8585 Format string command for unpacking a @sc{soup} packet.  The default is
8586 @samp{gunzip -c %s | tar xvf -}.
8587
8588 @item gnus-soup-packet-directory
8589 @vindex gnus-soup-packet-directory
8590 Where Gnus will look for reply packets.  The default is @file{~/}. 
8591
8592 @item gnus-soup-packet-regexp
8593 @vindex gnus-soup-packet-regexp
8594 Regular expression matching @sc{soup} reply packets in
8595 @code{gnus-soup-packet-directory}. 
8596
8597 @end table
8598  
8599
8600 @node SOUP Groups
8601 @subsubsection @sc{soup} Groups
8602 @cindex nnsoup
8603
8604 @code{nnsoup} is the backend for reading @sc{soup} packets.  It will
8605 read incoming packets, unpack them, and put them in a directory where
8606 you can read them at leisure.
8607
8608 These are the variables you can use to customize its behavior:
8609
8610 @table @code
8611
8612 @item nnsoup-tmp-directory
8613 @vindex nnsoup-tmp-directory
8614 When @code{nnsoup} unpacks a @sc{soup} packet, it does it in this
8615 directory.  (@file{/tmp/} by default.)  
8616
8617 @item nnsoup-directory
8618 @vindex nnsoup-directory
8619 @code{nnsoup} then moves each message and index file to this directory.
8620 The default is @file{~/SOUP/}.
8621
8622 @item nnsoup-replies-directory 
8623 @vindex nnsoup-replies-directory 
8624 All replies will stored in this directory before being packed into a
8625 reply packet.  The default is @file{~/SOUP/replies/"}.
8626
8627 @item nnsoup-replies-format-type
8628 @vindex nnsoup-replies-format-type
8629 The @sc{soup} format of the replies packets.  The default is @samp{?n}
8630 (rnews), and I don't think you should touch that variable.  I probably
8631 shouldn't even have documented it.  Drats!  Too late!
8632
8633 @item nnsoup-replies-index-type
8634 @vindex nnsoup-replies-index-type
8635 The index type of the replies packet.  The is @samp{?n}, which means
8636 ``none''.  Don't fiddle with this one either!
8637
8638 @item nnsoup-active-file
8639 @vindex nnsoup-active-file
8640 Where @code{nnsoup} stores lots of information.  This is not an ``active
8641 file'' in the @code{nntp} sense; it's an Emacs Lisp file.  If you lose
8642 this file or mess it up in any way, you're dead.  The default is
8643 @file{~/SOUP/active}.
8644
8645 @item nnsoup-packer
8646 @vindex nnsoup-packer
8647 Format string command for packing a reply @sc{soup} packet.  The default
8648 is @samp{tar cf - %s | gzip > $HOME/Soupin%d.tgz}. 
8649
8650 @item nnsoup-unpacker
8651 @vindex nnsoup-unpacker
8652 Format string command for unpacking incoming @sc{soup} packets.  The
8653 default is @samp{gunzip -c %s | tar xvf -}. 
8654
8655 @item nnsoup-packet-directory
8656 @vindex nnsoup-packet-directory
8657 Where @code{nnsoup} will look for incoming packets.  The default is
8658 @file{~/}.  
8659
8660 @item nnsoup-packet-regexp
8661 @vindex nnsoup-packet-regexp
8662 Regular expression matching incoming @sc{soup} packets.  The default is
8663 @samp{Soupout}. 
8664
8665 @end table
8666
8667
8668 @node SOUP Replies
8669 @subsubsection SOUP Replies
8670
8671 Just using @code{nnsoup} won't mean that your postings and mailings end
8672 up in @sc{soup} reply packets automagically.  You have to work a bit
8673 more for that to happen.
8674
8675 @findex nnsoup-set-variables
8676 The @code{nnsoup-set-variables} command will set the appropriate
8677 variables to ensure that all your followups and replies end up in the
8678 @sc{soup} system.
8679
8680 In specific, this is what it does:
8681
8682 @lisp
8683 (setq gnus-inews-article-function 'nnsoup-request-post)
8684 (setq send-mail-function 'nnsoup-request-mail)
8685 @end lisp
8686
8687 And that's it, really.  If you only want news to go into the @sc{soup}
8688 system you just use the first line.  If you only want mail to be
8689 @sc{soup}ed you use the second.
8690
8691
8692 @node Combined Groups
8693 @section Combined Groups
8694
8695 Gnus allows combining a mixture of all the other group types into bigger
8696 groups.
8697
8698 @menu
8699 * Virtual Groups::     Combining articles from many groups.
8700 * Kibozed Groups::     Looking through parts of the newsfeed for articles.
8701 @end menu
8702
8703
8704 @node Virtual Groups
8705 @subsection Virtual Groups
8706 @cindex nnvirtual
8707 @cindex virtual groups
8708
8709 An @dfn{nnvirtual group} is really nothing more than a collection of
8710 other groups.
8711
8712 For instance, if you are tired of reading many small group, you can
8713 put them all in one big group, and then grow tired of reading one
8714 big, unwieldy group.  The joys of computing!
8715
8716 You specify @code{nnvirtual} as the method.  The address should be a
8717 regexp to match component groups.
8718
8719 All marks in the virtual group will stick to the articles in the
8720 component groups.  So if you tick an article in a virtual group, the
8721 article will also be ticked in the component group from whence it came.
8722 (And vice versa---marks from the component groups will also be shown in
8723 the virtual group.)
8724
8725 Here's an example @code{nnvirtual} method that collects all Andrea Dworkin
8726 newsgroups into one, big, happy newsgroup:
8727
8728 @lisp
8729 (nnvirtual "^alt\\.fan\\.andrea-dworkin$\\|^rec\\.dworkin.*")
8730 @end lisp
8731
8732 The component groups can be native or foreign; everything should work
8733 smoothly, but if your computer explodes, it was probably my fault.
8734
8735 Collecting the same group from several servers might actually be a good
8736 idea if users have set the Distribution header to limit distribution.
8737 If you would like to read @samp{soc.motss} both from a server in Japan
8738 and a server in Norway, you could use the following as the group regexp:
8739
8740 @example
8741 "^nntp+some.server.jp:soc.motss$\\|^nntp+some.server.no:soc.motss$"
8742 @end example
8743
8744 This should work kinda smoothly---all articles from both groups should
8745 end up in this one, and there should be no duplicates.  Threading (and
8746 the rest) will still work as usual, but there might be problems with the
8747 sequence of articles.  Sorting on date might be an option here
8748 (@pxref{Selecting a Group}.
8749
8750 One limitation, however---all groups that are included in a virtual
8751 group has to be alive (i.e., subscribed or unsubscribed).  Killed or
8752 zombie groups can't be component groups for @code{nnvirtual} groups.
8753
8754 @vindex nnvirtual-always-rescan
8755 If the @code{nnvirtual-always-rescan} is non-@code{nil},
8756 @code{nnvirtual} will always scan groups for unread articles when
8757 entering a virtual group.  If this variable is @code{nil} (which is the
8758 default) and you read articles in a component group after the virtual
8759 group has been activated, the read articles from the component group
8760 will show up when you enter the virtual group.  You'll also see this
8761 effect if you have two virtual groups that contain the same component
8762 group.  If that's the case, you should set this variable to @code{t}.
8763 Or you can just tap @code{M-g} on the virtual group every time before
8764 you enter it---it'll have much the same effect.
8765
8766
8767 @node Kibozed Groups
8768 @subsection Kibozed Groups
8769 @cindex nnkiboze
8770 @cindex kibozing
8771
8772 @dfn{Kibozing} is defined by @sc{oed} as ``grepping through (parts of)
8773 the news feed''.  @code{nnkiboze} is a backend that will do this for
8774 you.  Oh joy!  Now you can grind any @sc{nntp} server down to a halt
8775 with useless requests!  Oh happiness!
8776
8777 The address field of the @code{nnkiboze} method is, as with
8778 @code{nnvirtual}, a regexp to match groups to be ``included'' in the
8779 @code{nnkiboze} group.  There most similarities between @code{nnkiboze}
8780 and @code{nnvirtual} ends.
8781
8782 In addition to this regexp detailing component groups, an @code{nnkiboze} group
8783 must have a score file to say what articles that are to be included in
8784 the group (@pxref{Scoring}).
8785
8786 @kindex M-x nnkiboze-generate-groups
8787 @findex nnkiboze-generate-groups
8788 You must run @kbd{M-x nnkiboze-generate-groups} after creating the
8789 @code{nnkiboze} groups you want to have.  This command will take time.  Lots of
8790 time.  Oodles and oodles of time.  Gnus has to fetch the headers from
8791 all the articles in all the components groups and run them through the
8792 scoring process to determine if there are any articles in the groups
8793 that are to be part of the @code{nnkiboze} groups.
8794
8795 Please limit the number of component groups by using restrictive
8796 regexps.  Otherwise your sysadmin may become annoyed with you, and the
8797 @sc{nntp} site may throw you off and never let you back in again.
8798 Stranger things have happened.
8799
8800 @code{nnkiboze} component groups do not have to be alive---they can be dead,
8801 and they can be foreign.  No restrictions.
8802
8803 @vindex nnkiboze-directory
8804 The generation of an @code{nnkiboze} group means writing two files in
8805 @code{nnkiboze-directory}, which is @file{~/News/} by default.  One
8806 contains the @sc{nov} header lines for all the articles in the group,
8807 and the other is an additional @file{.newsrc} file to store information
8808 on what groups that have been searched through to find component
8809 articles.
8810
8811 Articles that are marked as read in the @code{nnkiboze} group will have their
8812 @sc{nov} lines removed from the @sc{nov} file.
8813
8814
8815 @node Scoring
8816 @chapter Scoring
8817 @cindex scoring
8818
8819 Other people use @dfn{kill files}, but we here at Gnus Towers like
8820 scoring better than killing, so we'd rather switch than fight.  They do
8821 something completely different as well, so sit up straight and pay
8822 attention!
8823
8824 @vindex gnus-summary-mark-below
8825 All articles have a default score (@code{gnus-summary-default-score}),
8826 which is 0 by default.  This score may be raised or lowered either
8827 interactively or by score files.  Articles that have a score lower than
8828 @code{gnus-summary-mark-below} are marked as read.
8829
8830 Gnus will read any @dfn{score files} that apply to the current group
8831 before generating the summary buffer.
8832
8833 There are several commands in the summary buffer that insert score
8834 entries based on the current article.  You can, for instance, ask Gnus to
8835 lower or increase the score of all articles with a certain subject.
8836
8837 There are two sorts of scoring entries: Permanent and temporary.
8838 Temporary score entries are self-expiring entries.  Any entries that are
8839 temporary and have not been used for, say, a week, will be removed
8840 silently to help keep the sizes of the score files down.
8841
8842 @menu 
8843 * Summary Score Commands::   Adding score entries for the current group.
8844 * Group Score Commands::     General score commands.
8845 * Score Variables::          Customize your scoring.  (My, what terminology).
8846 * Score File Format::        What a score file may contain.
8847 * Score File Editing::       You can edit score files by hand as well.
8848 * Adaptive Scoring::         Big Sister Gnus *knows* what you read.
8849 * Followups To Yourself::    Having Gnus notice when people answer you.
8850 * Scoring Tips::             How to score effectively.
8851 * Reverse Scoring::          That problem child of old is not problem.
8852 * Global Score Files::       Earth-spanning, ear-splitting score files.
8853 * Kill Files::               They are still here, but they can be ignored.
8854 * GroupLens::                Getting predictions on what you like to read.
8855 @end menu
8856
8857
8858 @node Summary Score Commands
8859 @section Summary Score Commands
8860 @cindex score commands
8861
8862 The score commands that alter score entries do not actually modify real
8863 score files.  That would be too inefficient.  Gnus maintains a cache of
8864 previously loaded score files, one of which is considered the
8865 @dfn{current score file alist}.  The score commands simply insert
8866 entries into this list, and upon group exit, this list is saved.
8867
8868 The current score file is by default the group's local score file, even
8869 if no such score file actually exists.  To insert score commands into
8870 some other score file (eg. @file{all.SCORE}), you must first make this
8871 score file the current one.
8872
8873 General score commands that don't actually change the score file:
8874
8875 @table @kbd
8876
8877 @item V s
8878 @kindex V s (Summary)
8879 @findex gnus-summary-set-score
8880 Set the score of the current article (@code{gnus-summary-set-score}).  
8881
8882 @item V S
8883 @kindex V S (Summary)
8884 @findex gnus-summary-current-score
8885 Display the score of the current article
8886 (@code{gnus-summary-current-score}).   
8887
8888 @item V t
8889 @kindex V t (Summary)
8890 @findex gnus-score-find-trace
8891 Display all score rules that have been used on the current article
8892 (@code{gnus-score-find-trace}).   
8893
8894 @item V R
8895 @cindex V R (Summary)
8896 @findex gnus-summary-rescore
8897 Run the current summary through the scoring process
8898 (@code{gnus-summary-rescore}).  This might be useful if you're playing
8899 around with your score files behind Gnus' back and want to see the
8900 effect you're having.
8901
8902 @item V a
8903 @kindex V a (Summary)
8904 @findex gnus-summary-score-entry
8905 Add a new score entry, and allow specifying all elements 
8906 (@code{gnus-summary-score-entry}).
8907
8908 @item V c
8909 @kindex V c (Summary)
8910 @findex gnus-score-change-score-file
8911 Make a different score file the current
8912 (@code{gnus-score-change-score-file}). 
8913
8914 @item V e
8915 @kindex V e (Summary)
8916 @findex gnus-score-edit-current-scores
8917 Edit the current score file (@code{gnus-score-edit-current-scores}).
8918 You will be popped into a @code{gnus-score-mode} buffer (@pxref{Score
8919 File Editing}).
8920
8921 @item V f
8922 @kindex V f (Summary)
8923 @findex gnus-score-edit-file
8924 Edit a score file and make this score file the current one
8925 (@code{gnus-score-edit-file}).
8926
8927 @item V C
8928 @kindex V C (Summary)
8929 @findex gnus-score-customize
8930 Customize a score file in a visually pleasing manner
8931 (@code{gnus-score-customize}). 
8932
8933 @item I C-i
8934 @kindex I C-i (Summary)
8935 @findex gnus-summary-raise-score
8936 Increase the score of the current article
8937 (@code{gnus-summary-raise-score}).
8938
8939 @item L C-l
8940 @kindex L C-l (Summary)
8941 @findex gnus-summary-lower-score
8942 Lower the score of the current article
8943 (@code{gnus-summary-lower-score}). 
8944 @end table
8945
8946 The rest of these commands modify the local score file.
8947
8948 @table @kbd
8949
8950 @item V m
8951 @kindex V m (Summary)
8952 @findex gnus-score-set-mark-below
8953 Prompt for a score, and mark all articles with a score below this as
8954 read (@code{gnus-score-set-mark-below}).
8955
8956 @item V E
8957 @kindex V E (Summary)
8958 @findex gnus-score-set-expunge-below
8959 Expunge all articles with a score below the default score (or the
8960 numeric prefix) (@code{gnus-score-set-expunge-below}).
8961 @end table
8962
8963 The keystrokes for actually making score entries follow a very regular
8964 pattern, so there's no need to list all the commands.  (Hundreds of
8965 them.)  
8966
8967 @enumerate
8968 @item
8969 The first key is either @kbd{I} (upper case i) for increasing the score
8970 or @kbd{L} for lowering the score. 
8971 @item
8972 The second key says what header you want to score on.  The following
8973 keys are available:
8974 @table @kbd
8975
8976 @item a
8977 Score on the author name.
8978
8979 @item s
8980 Score on the subject line.
8981
8982 @item x
8983 Score on the Xref line---i.e., the cross-posting line.
8984
8985 @item t
8986 Score on thread---the References line.
8987
8988 @item d
8989 Score on the date.
8990
8991 @item l
8992 Score on the number of lines.
8993
8994 @item i
8995 Score on the Message-ID.
8996
8997 @item f
8998 Score on followups.
8999
9000 @item b
9001 Score on the body.
9002
9003 @item h
9004 Score on the head.
9005 @end table
9006
9007 @item
9008 The third key is the match type.  Which match types are legal depends on
9009 what headers you are scoring on.
9010
9011 @table @code
9012
9013 @item strings 
9014
9015 @table @kbd
9016
9017 @item e
9018 Exact matching.
9019
9020 @item s
9021 Substring matching.
9022
9023 @item f
9024 Fuzzy matching.
9025
9026 @item r
9027 Regexp matching
9028 @end table
9029
9030 @item date
9031 @table @kbd
9032
9033 @item b
9034 Before date.
9035
9036 @item a
9037 At date.
9038
9039 @item n
9040 This date.
9041 @end table
9042
9043 @item number
9044 @table @kbd
9045
9046 @item <
9047 Less than number.
9048
9049 @item =
9050 Equal to number.
9051
9052 @item >
9053 Greater than number.
9054 @end table
9055 @end table
9056
9057 @item 
9058 The fourth and final key says whether this is a temporary (i.e., expiring)
9059 score entry, or a permanent (i.e., non-expiring) score entry, or whether
9060 it is to be done immediately, without adding to the score file.
9061 @table @kbd
9062
9063 @item t
9064 Temporary score entry.
9065
9066 @item p
9067 Permanent score entry.
9068
9069 @item i
9070 Immediately scoring.
9071 @end table
9072
9073 @end enumerate
9074
9075 So, let's say you want to increase the score on the current author with
9076 exact matching permanently: @kbd{I a e p}.  If you want to lower the
9077 score based on the subject line, using substring matching, and make a
9078 temporary score entry: @kbd{L s s t}.  Pretty easy.
9079
9080 To make things a bit more complicated, there are shortcuts.  If you use
9081 a capital letter on either the second or third keys, Gnus will use
9082 defaults for the remaining one or two keystrokes.  The defaults are
9083 ``substring'' and ``temporary''.  So @kbd{I A} is the same as @kbd{I a s
9084 t}, and @kbd{I a R} is the same as @kbd{I a r t}.
9085
9086 @vindex gnus-score-mimic-keymap
9087 The @code{gnus-score-mimic-keymap} says whether these commands will
9088 pretend they are keymaps or not.
9089
9090
9091 @node Group Score Commands
9092 @section Group Score Commands
9093 @cindex group score commands
9094
9095 There aren't many of these as yet, I'm afraid.
9096
9097 @table @kbd
9098
9099 @item W f
9100 @kindex W f (Group)
9101 @findex gnus-score-flush-cache
9102 Gnus maintains a cache of score alists to avoid having to reload them
9103 all the time.  This command will flush the cache
9104 (@code{gnus-score-flush-cache}). 
9105
9106 @end table
9107
9108
9109 @node Score Variables
9110 @section Score Variables
9111 @cindex score variables
9112
9113 @table @code
9114
9115 @item gnus-use-scoring
9116 @vindex gnus-use-scoring
9117 If @code{nil}, Gnus will not check for score files, and will not, in
9118 general, do any score-related work.  This is @code{t} by default.
9119
9120 @item gnus-kill-killed
9121 @vindex gnus-kill-killed
9122 If this variable is @code{nil}, Gnus will never apply score files to
9123 articles that have already been through the kill process.  While this
9124 may save you lots of time, it also means that if you apply a kill file
9125 to a group, and then change the kill file and want to run it over you
9126 group again to kill more articles, it won't work.  You have to set this
9127 variable to @code{t} to do that.  (It is @code{t} by default.)
9128
9129 @item gnus-kill-files-directory
9130 @vindex gnus-kill-files-directory
9131 All kill and score files will be stored in this directory, which is
9132 initialized from the @code{SAVEDIR} environment variable by default.
9133 This is @file{~/News/} by default.
9134
9135 @item gnus-score-file-suffix
9136 @vindex gnus-score-file-suffix
9137 Suffix to add to the group name to arrive at the score file name
9138 (@samp{SCORE} by default.)
9139
9140 @item gnus-score-uncacheable-files
9141 @vindex gnus-score-uncacheable-files
9142 @cindex score cache
9143 All score files are normally cached to avoid excessive re-loading of
9144 score files.  However, if this might make you Emacs grow big and
9145 bloated, so this regexp can be used to weed out score files that are
9146 unlikely to be needed again.  It would be a bad idea to deny caching of
9147 @file{all.SCORE}, while it might be a good idea to not cache
9148 @file{comp.infosystems.www.authoring.misc.ADAPT}.  In fact, this
9149 variable is @samp{ADAPT$} by default, so no adaptive score files will
9150 be cached.
9151
9152 @item gnus-save-score
9153 @vindex gnus-save-score
9154 If you have really complicated score files, and do lots of batch
9155 scoring, then you might set this variable to @code{t}.  This will make
9156 Gnus save the scores into the @file{.newsrc.eld} file.
9157
9158 @item gnus-score-interactive-default-score
9159 @vindex gnus-score-interactive-default-score
9160 Score used by all the interactive raise/lower commands to raise/lower
9161 score with.  Default is 1000, which may seem excessive, but this is to
9162 ensure that the adaptive scoring scheme gets enough room to play with.
9163 We don't want the small changes from the adaptive scoring to overwrite
9164 manually entered data.
9165
9166 @item gnus-summary-default-score
9167 @vindex gnus-summary-default-score
9168 Default score of an article, which is 0 by default.
9169
9170 @item gnus-score-over-mark
9171 @vindex gnus-score-over-mark
9172 Mark (in the third column) used for articles with a score over the
9173 default.  Default is @samp{+}.
9174
9175 @item gnus-score-below-mark
9176 @vindex gnus-score-below-mark
9177 Mark (in the third column) used for articles with a score below the
9178 default.  Default is @samp{-}.
9179
9180 @item gnus-score-find-score-files-function
9181 @vindex gnus-score-find-score-files-function
9182 Function used to find score files for the current group.  This function
9183 is called with the name of the group as the argument. 
9184
9185 Predefined functions available are:
9186 @table @code
9187
9188 @item gnus-score-find-single
9189 @findex gnus-score-find-single
9190 Only apply the group's own score file.
9191
9192 @item gnus-score-find-bnews
9193 @findex gnus-score-find-bnews
9194 Apply all score files that match, using bnews syntax.  This is the
9195 default.  For instance, if the current group is @samp{gnu.emacs.gnus},
9196 @file{all.emacs.all.SCORE}, @file{not.alt.all.SCORE} and
9197 @file{gnu.all.SCORE} would all apply.  In short, the instances of
9198 @samp{all} in the score file names are translated into @samp{.*}, and
9199 then a regexp match is done.
9200
9201 This means that if you have some score entries that you want to apply to
9202 all groups, then you put those entries in the @file{all.SCORE} file. 
9203
9204 @item gnus-score-find-hierarchical
9205 @findex gnus-score-find-hierarchical
9206 Apply all score files from all the parent groups.  This means that you
9207 can't have score files like @file{all.SCORE} or @file{all.emacs.SCORE},
9208 but you can have @file{SCORE},  @file{comp.SCORE} and
9209 @file{comp.emacs.SCORE}. 
9210
9211 @end table
9212 This variable can also be a list of functions.  In that case, all these
9213 functions will be called, and all the returned lists of score files will
9214 be applied.  These functions can also return lists of score alists
9215 directly.  In that case, the functions that return these non-file score
9216 alists should probably be placed before the ``real'' score file
9217 functions, to ensure that the last score file returned is the local
9218 score file.  Phu.
9219
9220 @item gnus-score-expiry-days
9221 @vindex gnus-score-expiry-days
9222 This variable says how many days should pass before an unused score file
9223 entry is expired.  If this variable is @code{nil}, no score file entries
9224 are expired.  It's 7 by default.
9225
9226 @item gnus-update-score-entry-dates
9227 @vindex gnus-update-score-entry-dates
9228 If this variable is non-@code{nil}, matching score entries will have
9229 their dates updated.  (This is how Gnus controls expiry---all
9230 non-matching entries will become too old while matching entries will
9231 stay fresh and young.)  However, if you set this variable to @code{nil},
9232 even matching entries will grow old and will have to face that oh-so
9233 grim reaper.  
9234
9235 @item gnus-score-after-write-file-function
9236 @vindex gnus-score-after-write-file-function
9237 Function called with the name of the score file just written.
9238
9239 @end table
9240
9241
9242 @node Score File Format
9243 @section Score File Format
9244 @cindex score file format
9245
9246 A score file is an @code{emacs-lisp} file that normally contains just a
9247 single form.  Casual users are not expected to edit these files;
9248 everything can be changed from the summary buffer.
9249
9250 Anyway, if you'd like to dig into it yourself, here's an example:
9251
9252 @lisp
9253 (("from"
9254   ("Lars Ingebrigtsen" -10000)
9255   ("Per Abrahamsen")
9256   ("larsi\\|lmi" -50000 nil R))
9257  ("subject"
9258   ("Ding is Badd" nil 728373))
9259  ("xref"
9260   ("alt.politics" -1000 728372 s))
9261  ("lines"
9262   (2 -100 nil <))
9263  (mark 0)
9264  (expunge -1000)
9265  (mark-and-expunge -10)
9266  (read-only nil)
9267  (orphan -10)
9268  (adapt t)
9269  (files "/hom/larsi/News/gnu.SCORE")
9270  (exclude-files "all.SCORE")
9271  (local (gnus-newsgroup-auto-expire t)
9272         (gnus-summary-make-false-root 'empty))
9273  (eval (ding)))
9274 @end lisp
9275
9276 This example demonstrates absolutely everything about a score file. 
9277
9278 Even though this looks much like lisp code, nothing here is actually
9279 @code{eval}ed.  The lisp reader is used to read this form, though, so it
9280 has to be legal syntactically, if not semantically.
9281
9282 Six keys are supported by this alist:
9283
9284 @table @code
9285
9286 @item STRING
9287 If the key is a string, it is the name of the header to perform the
9288 match on.  Scoring can only be performed on these eight headers:
9289 @code{From}, @code{Subject}, @code{References}, @code{Message-ID},
9290 @code{Xref}, @code{Lines}, @code{Chars} and @code{Date}.  In addition to
9291 these headers, there are three strings to tell Gnus to fetch the entire
9292 article and do the match on larger parts of the article: @code{Body}
9293 will perform the match on the body of the article, @code{Head} will
9294 perform the match on the head of the article, and @code{All} will
9295 perform the match on the entire article.  Note that using any of these
9296 last three keys will slow down group entry @emph{considerably}.  The
9297 final ``header'' you can score on is @code{Followup}.  These score
9298 entries will result in new score entries being added for all follow-ups
9299 to articles that matches these score entries.
9300
9301 Following this key is a arbitrary number of score entries, where each
9302 score entry has one to four elements.
9303 @enumerate
9304
9305 @item 
9306 The first element is the @dfn{match element}.  On most headers this will
9307 be a string, but on the Lines and Chars headers, this must be an
9308 integer. 
9309
9310 @item 
9311 If the second element is present, it should be a number---the @dfn{score
9312 element}.  This number should be an integer in the neginf to posinf
9313 interval.  This number is added to the score of the article if the match
9314 is successful.  If this element is not present, the
9315 @code{gnus-score-interactive-default-score} number will be used
9316 instead.  This is 1000 by default.
9317
9318 @item 
9319 If the third element is present, it should be a number---the @dfn{date
9320 element}.  This date says when the last time this score entry matched,
9321 which provides a mechanism for expiring the score entries.  It this
9322 element is not present, the score entry is permanent.  The date is
9323 represented by the number of days since December 31, 1 ce.
9324
9325 @item 
9326 If the fourth element is present, it should be a symbol---the @dfn{type
9327 element}.  This element specifies what function should be used to see
9328 whether this score entry matches the article.  What match types that can
9329 be used depends on what header you wish to perform the match on.
9330 @table @dfn
9331
9332 @item From, Subject, References, Xref, Message-ID
9333 For most header types, there are the @code{r} and @code{R} (regexp) as
9334 well as @code{s} and @code{S} (substring) types and @code{e} and
9335 @code{E} (exact match) types.  If this element is not present, Gnus will
9336 assume that substring matching should be used.  @code{R} and @code{S}
9337 differ from the other two in that the matches will be done in a
9338 case-sensitive manner.  All these one-letter types are really just
9339 abbreviations for the @code{regexp}, @code{string} and @code{exact}
9340 types, which you can use instead, if you feel like.
9341
9342 @item Lines, Chars
9343 These two headers use different match types: @code{<}, @code{>},
9344 @code{=}, @code{>=} and @code{<=}.
9345
9346 @item Date
9347 For the Date header we have three match types: @code{before}, @code{at}
9348 and @code{after}.  I can't really imagine this ever being useful, but,
9349 like, it would feel kinda silly not to provide this function.  Just in
9350 case.  You never know.  Better safe than sorry.  Once burnt, twice shy.
9351 Don't judge a book by its cover.  Never not have sex on a first date.
9352
9353 @item Head, Body, All
9354 These three match keys use the same match types as the @code{From} (etc)
9355 header uses.
9356
9357 @item Followup
9358 This match key will add a score entry on all articles that followup to
9359 some author.  Uses the same match types as the @code{From} header uses.
9360
9361 @item Thread
9362 This match key will add a score entry on all articles that are part of
9363 a thread.  Uses the same match types as the @code{References} header
9364 uses.
9365 @end table
9366 @end enumerate
9367
9368 @item mark
9369 The value of this entry should be a number.  Any articles with a score
9370 lower than this number will be marked as read.
9371
9372 @item expunge
9373 The value of this entry should be a number.  Any articles with a score
9374 lower than this number will be removed from the summary buffer.
9375
9376 @item mark-and-expunge
9377 The value of this entry should be a number.  Any articles with a score
9378 lower than this number will be marked as read and removed from the
9379 summary buffer.
9380
9381 @item thread-mark-and-expunge
9382 The value of this entry should be a number.  All articles that belong to
9383 a thread that has a total score below this number will be marked as read
9384 and removed from the summary buffer.  @code{gnus-thread-score-function}
9385 says how to compute the total score for a thread.
9386
9387 @item files
9388 The value of this entry should be any number of file names.  These files
9389 are assumed to be score files as well, and will be loaded the same way
9390 this one was.
9391
9392 @item exclude-files
9393 The clue of this entry should be any number of files.  This files will
9394 not be loaded, even though they would normally be so, for some reason or
9395 other. 
9396
9397 @item eval
9398 The value of this entry will be @code{eval}el.  This element will be
9399 ignored when handling global score files. 
9400
9401 @item read-only
9402 Read-only score files will not be updated or saved.  Global score files
9403 should feature this atom (@pxref{Global Score Files}).
9404
9405 @item orphan
9406 The value of this entry should be a number.  Articles that do not have
9407 parents will get this number added to their scores.  Imagine you follow
9408 some high-volume newsgroup, like @samp{comp.lang.c}.  Most likely you
9409 will only follow a few of the threads, also want to see any new threads.
9410
9411 You can do this with the following two score file entries:
9412
9413 @example
9414         (orphan -500)
9415         (mark-and-expunge -100)
9416 @end example
9417
9418 When you enter the group the first time, you will only see the new
9419 threads.  You then raise the score of the threads that you find
9420 interesting (with @kbd{I T} or @kbd{I S}), and ignore (@kbd{C y}) the
9421 rest.  Next time you enter the group, you will see new articles in the
9422 interesting threads, plus any new threads.
9423
9424 I.e. -- the orphan score atom is for high-volume groups where there
9425 exist a few interesting threads which can't be found automatically by
9426 ordinary scoring rules.
9427
9428 @item adapt
9429 This entry controls the adaptive scoring.  If it is @code{t}, the
9430 default adaptive scoring rules will be used.  If it is @code{ignore}, no
9431 adaptive scoring will be performed on this group.  If it is a list, this
9432 list will be used as the adaptive scoring rules.  If it isn't present,
9433 or is something other than @code{t} or @code{ignore}, the default
9434 adaptive scoring rules will be used.  If you want to use adaptive
9435 scoring on most groups, you'd set @code{gnus-use-adaptive-scoring} to
9436 @code{t}, and insert an @code{(adapt ignore)} in the groups where you do
9437 not want adaptive scoring.  If you only want adaptive scoring in a few
9438 groups, you'd set @code{gnus-use-adaptive-scoring} to @code{nil}, and
9439 insert @code{(adapt t)} in the score files of the groups where you want
9440 it. 
9441
9442 @item adapt-file
9443 All adaptive score entries will go to the file named by this entry.  It
9444 will also be applied when entering the group.  This atom might be handy
9445 if you want to adapt on several groups at once, using the same adaptive
9446 file for a number of groups.
9447
9448 @item local
9449 @cindex local variables
9450 The value of this entry should be a list of @code{(VAR VALUE)} pairs.
9451 Each @var{var} will be made buffer-local to the current summary buffer,
9452 and set to the value specified.  This is a convenient, if somewhat
9453 strange, way of setting variables in some groups if you don't like hooks
9454 much.
9455 @end table
9456
9457
9458 @node Score File Editing
9459 @section Score File Editing
9460
9461 You normally enter all scoring commands from the summary buffer, but you
9462 might feel the urge to edit them by hand as well, so we've supplied you
9463 with a mode for that.  
9464
9465 It's simply a slightly customized @code{emacs-lisp} mode, with these
9466 additional commands:
9467
9468 @table @kbd
9469
9470 @item C-c C-c
9471 @kindex C-c C-c (Score)
9472 @findex gnus-score-edit-done
9473 Save the changes you have made and return to the summary buffer
9474 (@code{gnus-score-edit-done}). 
9475
9476 @item C-c C-d
9477 @kindex C-c C-d (Score)
9478 @findex gnus-score-edit-insert-date
9479 Insert the current date in numerical format
9480 (@code{gnus-score-edit-insert-date}).  This is really the day number, if
9481 you were wondering.
9482
9483 @item C-c C-p
9484 @kindex C-c C-p (Score)
9485 @findex gnus-score-pretty-print
9486 The adaptive score files are saved in an unformatted fashion.  If you
9487 intend to read one of these files, you want to @dfn{pretty print} it
9488 first.  This command (@code{gnus-score-pretty-print}) does that for
9489 you. 
9490
9491 @end table
9492
9493 Type @kbd{M-x gnus-score-mode} to use this mode.
9494
9495 @vindex gnus-score-mode-hook
9496 @code{gnus-score-menu-hook} is run in score mode buffers.
9497
9498 In the summary buffer you can use commands like @kbd{V f} and @kbd{V
9499 e} to begin editing score files.
9500
9501
9502 @node Adaptive Scoring
9503 @section Adaptive Scoring
9504 @cindex adaptive scoring
9505
9506 If all this scoring is getting you down, Gnus has a way of making it all
9507 happen automatically---as if by magic.  Or rather, as if by artificial
9508 stupidity, to be precise.
9509
9510 @vindex gnus-use-adaptive-scoring
9511 When you read an article, or mark an article as read, or kill an
9512 article, you leave marks behind.  On exit from the group, Gnus can sniff
9513 these marks and add score elements depending on what marks it finds.
9514 You turn on this ability by setting @code{gnus-use-adaptive-scoring} to
9515 @code{t}. 
9516
9517 @vindex gnus-default-adaptive-score-alist
9518 To give you complete control over the scoring process, you can customize
9519 the @code{gnus-default-adaptive-score-alist} variable.  For instance, it
9520 might look something like this:
9521
9522 @lisp
9523 (defvar gnus-default-adaptive-score-alist
9524   '((gnus-unread-mark)
9525     (gnus-ticked-mark (from 4))
9526     (gnus-dormant-mark (from 5))
9527     (gnus-del-mark (from -4) (subject -1))
9528     (gnus-read-mark (from 4) (subject 2))
9529     (gnus-expirable-mark (from -1) (subject -1))
9530     (gnus-killed-mark (from -1) (subject -3))
9531     (gnus-kill-file-mark)
9532     (gnus-ancient-mark)
9533     (gnus-low-score-mark)
9534     (gnus-catchup-mark (from -1) (subject -1))))
9535 @end lisp
9536
9537 As you see, each element in this alist has a mark as a key (either a
9538 variable name or a ``real'' mark---a character).  Following this key is
9539 a arbitrary number of header/score pairs.  If there are no header/score
9540 pairs following the key, no adaptive scoring will be done on articles
9541 that have that key as the article mark.  For instance, articles with
9542 @code{gnus-unread-mark} in the example above will not get adaptive score
9543 entries.
9544
9545 Each article can have only one mark, so just a single of these rules
9546 will be applied to each article.
9547
9548 To take @code{gnus-del-mark} as an example---this alist says that all
9549 articles that have that mark (i.e., are marked with @samp{D}) will have a
9550 score entry added to lower based on the @code{From} header by -4, and
9551 lowered by @code{Subject} by -1.  Change this to fit your prejudices. 
9552
9553 If you have marked 10 articles with the same subject with
9554 @code{gnus-del-mark}, the rule for that mark will be applied ten times.
9555 That means that that subject will get a score of ten times -1, which
9556 should be, unless I'm much mistaken, -10.
9557
9558 The headers you can score on are @code{from}, @code{subject},
9559 @code{message-id}, @code{references}, @code{xref}, @code{lines},
9560 @code{chars} and @code{date}.  In addition, you can score on
9561 @code{followup}, which will create an adaptive score entry that matches
9562 on the @code{References} header using the @code{Message-ID} of the
9563 current article, thereby matching the following thread.  
9564
9565 You can also score on @code{thread}, which will try to score all
9566 articles that appear in a thread.  @code{thread} matches uses a
9567 @code{Message-ID} to match on the @code{References} header of the
9568 article.  If the match is made, the @code{Message-ID} of the article is
9569 added to the @code{thread} rule.  (Think about it.  I'd recommend two
9570 aspirins afterwards.)
9571
9572 If you use this scheme, you should set the score file atom @code{mark}
9573 to something small---like -300, perhaps, to avoid having small random
9574 changes result in articles getting marked as read.
9575
9576 After using adaptive scoring for a week or so, Gnus should start to
9577 become properly trained and enhance the authors you like best, and kill
9578 the authors you like least, without you having to say so explicitly. 
9579
9580 You can control what groups the adaptive scoring is to be performed on
9581 by using the score files (@pxref{Score File Format}).  This will also
9582 let you use different rules in different groups.
9583
9584 @vindex gnus-adaptive-file-suffix
9585 The adaptive score entries will be put into a file where the name is the
9586 group name with @code{gnus-adaptive-file-suffix} appended.  The default
9587 is @samp{ADAPT}.
9588
9589 @vindex gnus-score-exact-adapt-limit
9590 When doing adaptive scoring, substring or fuzzy matching would probably
9591 give you the best results in most cases.  However, if the header one
9592 matches is short, the possibility for false positives is great, so if
9593 the length of the match is less than
9594 @code{gnus-score-exact-adapt-limit}, exact matching will be used.  If
9595 this variable is @code{nil}, exact matching will always be used to avoid
9596 this problem.
9597
9598
9599 @node Followups To Yourself
9600 @section Followups To Yourself
9601
9602 Gnus offers two commands for picking out the @code{Message-ID} header in
9603 the current buffer.  Gnus will then add a score rule that scores using
9604 this @code{Message-ID} on the @code{References} header of other
9605 articles.  This will, in effect, increase the score of all articles that
9606 respond to the article in the current buffer.  Quite useful if you want
9607 to easily note when people answer what you've said.
9608
9609 @table @code
9610
9611 @item gnus-score-followup-article
9612 @findex gnus-score-followup-article
9613 This will add a score to articles that directly follow up your own
9614 article. 
9615
9616 @item gnus-score-followup-thread
9617 @findex gnus-score-followup-thread
9618 This will add a score to all articles that appear in a thread ``below''
9619 your own article.
9620 @end table
9621
9622 @vindex gnus-inews-article-hook
9623 These two functions are both primarily meant to be used in hooks like
9624 @code{gnus-inews-article-hook}.  
9625
9626
9627 @node Scoring Tips
9628 @section Scoring Tips
9629 @cindex scoring tips
9630
9631 @table @dfn
9632
9633 @item Crossposts
9634 @cindex crossposts
9635 @cindex scoring crossposts
9636 If you want to lower the score of crossposts, the line to match on is
9637 the @code{Xref} header.
9638 @lisp
9639 ("xref" (" talk.politics.misc:" -1000))
9640 @end lisp
9641
9642 @item Multiple crossposts
9643 If you want to lower the score of articles that have been crossposted to
9644 more than, say, 3 groups:
9645 @lisp
9646 ("xref" ("[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+" -1000 nil r))
9647 @end lisp
9648
9649 @item Matching on the body
9650 This is generally not a very good idea---it takes a very long time.
9651 Gnus actually has to fetch each individual article from the server.  But
9652 you might want to anyway, I guess.  Even though there are three match
9653 keys (@code{Head}, @code{Body} and @code{All}), you should choose one
9654 and stick with it in each score file.  If you use any two, each article
9655 will be fetched @emph{twice}.  If you want to match a bit on the
9656 @code{Head} and a bit on the @code{Body}, just use @code{All} for all
9657 the matches.  
9658
9659 @item Marking as read
9660 You will probably want to mark articles that has a score below a certain
9661 number as read.  This is most easily achieved by putting the following
9662 in your @file{all.SCORE} file:
9663 @lisp
9664 ((mark -100))
9665 @end lisp
9666 You may also consider doing something similar with @code{expunge}.  
9667
9668 @item Negated character classes
9669 If you say stuff like @code{[^abcd]*}, you may get unexpected results.
9670 That will match newlines, which might lead to, well, The Unknown.  Say
9671 @code{[^abcd\n]*} instead.
9672 @end table
9673
9674
9675 @node Reverse Scoring
9676 @section Reverse Scoring
9677 @cindex reverse scoring
9678
9679 If you want to keep just articles that have @samp{Sex with Emacs} in the
9680 subject header, and expunge all other articles, you could put something
9681 like this in your score file:
9682
9683 @lisp
9684 (("subject"
9685   ("Sex with Emacs" 2))
9686  (mark 1)
9687  (expunge 1))
9688 @end lisp
9689
9690 So, you raise all articles that match @samp{Sex with Emacs} and mark the
9691 rest as read, and expunge them to boot.
9692
9693
9694 @node Global Score Files
9695 @section Global Score Files
9696 @cindex global score files
9697
9698 Sure, other newsreaders have ``global kill files''.  These are usually
9699 nothing more than a single kill file that applies to all groups, stored
9700 in the user's home directory.  Bah!  Puny, weak newsreaders!
9701
9702 What I'm talking about here are Global Score Files.  Score files from
9703 all over the world, from users everywhere, uniting all nations in one
9704 big, happy score file union!  Ange-score!  New and untested!
9705
9706 @vindex gnus-global-score-files
9707 All you have to do to use other people's score files is to set the
9708 @code{gnus-global-score-files} variable.  One entry for each score file,
9709 or each score file directory.  Gnus will decide by itself what score
9710 files are applicable to which group.
9711
9712 Say you want to use all score files in the
9713 @file{/ftp@@ftp.some-where:/pub/score} directory and the single score
9714 file @file{/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE}:
9715
9716 @lisp
9717 (setq gnus-global-score-files
9718       '("/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE"
9719         "/ftp@@ftp.some-where:/pub/score/"))
9720 @end lisp
9721
9722 @findex gnus-score-search-global-directories
9723 Simple, eh?  Directory names must end with a @samp{/}.  These
9724 directories are typically scanned only once during each Gnus session.
9725 If you feel the need to manually re-scan the remote directories, you can
9726 use the @code{gnus-score-search-global-directories} command.
9727
9728 Note that, at present, using this option will slow down group entry
9729 somewhat.  (That is---a lot.)
9730
9731 If you want to start maintaining score files for other people to use,
9732 just put your score file up for anonymous ftp and announce it to the
9733 world.  Become a retro-moderator!  Participate in the retro-moderator
9734 wars sure to ensue, where retro-moderators battle it out for the
9735 sympathy of the people, luring them to use their score files on false
9736 premises!  Yay!  The net is saved!
9737
9738 Here are some tips for the would-be retro-moderator, off the top of my
9739 head: 
9740
9741 @itemize @bullet
9742
9743 @item 
9744 Articles that are heavily crossposted are probably junk. 
9745 @item
9746 To lower a single inappropriate article, lower by @code{Message-ID}.
9747 @item
9748 Particularly brilliant authors can be raised on a permanent basis. 
9749 @item
9750 Authors that repeatedly post off-charter for the group can safely be
9751 lowered out of existence.
9752 @item
9753 Set the @code{mark} and @code{expunge} atoms to obliterate the nastiest
9754 articles completely.
9755
9756 @item 
9757 Use expiring score entries to keep the size of the file down.  You
9758 should probably have a long expiry period, though, as some sites keep
9759 old articles for a long time.
9760 @end itemize
9761
9762 ... I wonder whether other newsreaders will support global score files
9763 in the future.  @emph{Snicker}.  Yup, any day now, newsreaders like Blue
9764 Wave, xrn and 1stReader are bound to implement scoring.  Should we start
9765 holding our breath yet?
9766
9767
9768 @node Kill Files
9769 @section Kill Files
9770 @cindex kill files
9771
9772 Gnus still supports those pesky old kill files.  In fact, the kill file
9773 entries can now be expiring, which is something I wrote before Daniel
9774 Quinlan thought of doing score files, so I've left the code in there.
9775
9776 In short, kill processing is a lot slower (and I do mean @emph{a lot})
9777 than score processing, so it might be a good idea to rewrite your kill
9778 files into score files.
9779
9780 Anyway, a kill file is a normal @code{emacs-lisp} file.  You can put any
9781 forms into this file, which means that you can use kill files as some
9782 sort of primitive hook function to be run on group entry, even though
9783 that isn't a very good idea.
9784
9785 XCNormal kill files look like this:
9786
9787 @lisp
9788 (gnus-kill "From" "Lars Ingebrigtsen")
9789 (gnus-kill "Subject" "ding")
9790 (gnus-expunge "X")
9791 @end lisp
9792
9793 This will mark every article written by me as read, and remove them from
9794 the summary buffer.  Very useful, you'll agree.
9795
9796 Other programs use a totally different kill file syntax.  If Gnus
9797 encounters what looks like a @code{rn} kill file, it will take a stab at
9798 interpreting it. 
9799
9800 Two summary functions for editing a GNUS kill file:
9801
9802 @table @kbd
9803
9804 @item M-k
9805 @kindex M-k (Summary)
9806 @findex gnus-summary-edit-local-kill
9807 Edit this group's kill file (@code{gnus-summary-edit-local-kill}).
9808
9809 @item M-K
9810 @kindex M-K (Summary)
9811 @findex gnus-summary-edit-global-kill
9812 Edit the general kill file (@code{gnus-summary-edit-global-kill}).
9813 @end table
9814
9815 Two group mode functions for editing the kill files:
9816
9817 @table @kbd
9818
9819 @item M-k
9820 @kindex M-k (Group)
9821 @findex gnus-group-edit-local-kill
9822 Edit this group's kill file (@code{gnus-group-edit-local-kill}).
9823
9824 @item M-K
9825 @kindex M-K (Group)
9826 @findex gnus-group-edit-global-kill
9827 Edit the general kill file (@code{gnus-group-edit-global-kill}).
9828 @end table
9829
9830 Kill file variables:
9831
9832 @table @code
9833 @item gnus-kill-file-name
9834 @vindex gnus-kill-file-name
9835 A kill file for the group @samp{soc.motss} is normally called
9836 @file{soc.motss.KILL}.  The suffix appended to the group name to get
9837 this file name is detailed by the @code{gnus-kill-file-name} variable.
9838 The ``global'' kill file (not in the score file sense of ``global'', of
9839 course) is called just @file{KILL}.
9840
9841 @vindex gnus-kill-save-kill-file
9842 @item gnus-kill-save-kill-file
9843 If this variable is non-@code{nil}, Gnus will save the
9844 kill file after processing, which is necessary if you use expiring
9845 kills. 
9846
9847 @item gnus-apply-kill-hook
9848 @vindex gnus-apply-kill-hook
9849 @findex gnus-apply-kill-file-unless-scored
9850 @findex gnus-apply-kill-file
9851 A hook called to apply kill files to a group.  It is
9852 @code{(gnus-apply-kill-file)} by default.  If you want to ignore the
9853 kill file if you have a score file for the same group, you can set this
9854 hook to @code{(gnus-apply-kill-file-unless-scored)}.  If you don't want
9855 kill files to be processed, you should set this variable to @code{nil}.
9856
9857 @item gnus-kill-file-mode-hook
9858 @vindex gnus-kill-file-mode-hook
9859 A hook called in kill-file mode buffers.
9860
9861 @end table
9862
9863
9864 @node GroupLens
9865 @section GroupLens
9866 @cindex GroupLens
9867
9868 GroupLens is a collaborative filtering system that helps you work
9869 together with other people to find the quality news articles out of the
9870 huge volume of news articles generated every day.
9871
9872 To accomplish this the GroupLens system combines your opinions about
9873 articles you have already read with the opinions of others who have done
9874 likewise and gives you a personalized prediction for each unread news
9875 article.  Think of GroupLens as a matchmaker.  GroupLens watches how you
9876 rate articles, and finds other people that rate articles the same way.
9877 Once it has found for you some people you agree with it tells you, in
9878 the form of a prediction, what they thought of the article.  You can use
9879 this prediction to help you decide whether or not you want to read the
9880 article.
9881
9882 @menu
9883 * Using GroupLens::          How to make Gnus use GroupLens.
9884 * Rating Articles::          Letting GroupLens know how you rate articles.
9885 * Displaying Predictions::   Displaying predictions given by GroupLens.
9886 * GroupLens Variables::      Customizing GroupLens.
9887 @end menu
9888
9889
9890 @node Using GroupLens
9891 @subsection Using GroupLens
9892
9893 To use GroupLens you must register a pseudonym with your local Better
9894 Bit Bureau (BBB).  At the moment the only better bit in town is at
9895 @samp{http://www.cs.umn.edu/Research/GroupLens/bbb.html}.
9896
9897 Once you have registered you'll need to set a couple of variables.
9898
9899 @table @code
9900
9901 @item gnus-use-grouplens
9902 @vindex gnus-use-grouplens
9903 Setting this variable to a non-@code{nil} value will make Gnus hook into
9904 all the relevant GroupLens functions.
9905
9906 @item grouplens-pseudonym
9907 @vindex grouplens-pseudonym
9908 This variable should be set to the pseudonum you got when registering
9909 with the Better Bit Bureau.
9910
9911 @item grouplens-newsgroups
9912 @vindex grouplens-newsgroups
9913 A list of groups that you want to get GroupLens predictions for. 
9914
9915 @end table
9916
9917 Thats the minimum of what you need to get up and running with GroupLens.
9918 Once you've registered, GroupLens will start giving you scores for
9919 articles based on the average of what other people think.  But, to get
9920 the real benefit of GroupLens you need to start rating articles
9921 yourself.  Then the scores GroupLens gives you will be personalized for
9922 you, based on how the people you usually agree with have already rated.
9923
9924
9925 @node Rating Articles
9926 @subsection Rating Articles
9927
9928 In GroupLens, an article is rated on a scale from 1 to 5, inclusive.
9929 Where 1 means something like this article is a waste of bandwidth and 5
9930 means that the article was really good.  The basic question to ask
9931 yourself is, "on a scale from 1 to 5 would I like to see more articles
9932 like this one?"
9933
9934 There are four ways to enter a rating for an article in GroupLens.
9935
9936 @table @kbd
9937
9938 @item r
9939 @kindex r (GroupLens)
9940 @findex bbb-summary-rate-article
9941 This function will prompt you for a rating on a scale of one to five.
9942
9943 @item k
9944 @kindex k (GroupLens)
9945 @findex grouplens-score-thread
9946 This function will prompt you for a rating, and rate all the articles in
9947 the thread.  This is really useful for some of those long running giant
9948 threads in rec.humor.
9949
9950 @end table
9951
9952 The next two commands, @kbd{n} and @kbd{,} take a numerical prefix to be
9953 the score of the article you're reading.
9954
9955 @table @kbd
9956
9957 @item 1-5 n
9958 @kindex n (GroupLens)
9959 @findex grouplens-next-unread-article
9960 Rate the article and go to the next unread article.
9961
9962 @item 1-5 ,
9963 @kindex , (GroupLens)
9964 @findex grouplens-best-unread-article
9965 Rate the article and go to the next unread article with the highest score.
9966
9967 @end table
9968
9969 If you want to give the current article a score of 4 and then go to the
9970 next article, just type @kbd{4 n}.
9971
9972
9973 @node Displaying Predictions
9974 @subsection Displaying Predictions
9975
9976 GroupLens makes a prediction for you about how much you will like a
9977 news article.  The predictions from GroupLens are on a scale from 1 to
9978 5, where 1 is the worst and 5 is the best.  You can use the predictions
9979 from GroupLens in one of three ways controlled by the variable
9980 @code{gnus-grouplens-override-scoring}.
9981
9982 @vindex gnus-grouplens-override-scoring
9983 There are three ways to display predictions in grouplens.  You may
9984 choose to have the GroupLens scores contribute to, or override the
9985 regular gnus scoring mechanism. override is the default; however, some
9986 people prefer to see the Gnus scores plus the grouplens scores.  To get
9987 the separate scoring behavior you need to set
9988 @code{gnus-grouplens-override-scoring} to @code{'separate}.  To have the
9989 GroupLens predictions combined with the grouplens scores set it to
9990 @code{'override} and to combine the scores set
9991 @code{gnus-grouplens-override-scoring} to @code{'combine}.  When you use
9992 the combine option you will also want to set the values for
9993 @code{grouplens-prediction-offset} and
9994 @code{grouplens-score-scale-factor}.
9995
9996 @vindex grouplens-prediction-display
9997 In either case, GroupLens gives you a few choices for how you would like
9998 to see your predictions displayed.  The display of predictions is
9999 controlled by the @code{grouplens-prediction-display} variable.
10000
10001 The following are legal values for that variable.
10002
10003 @table @code
10004 @item prediction-spot
10005 The higher the prediction, the further to the right an @samp{*} is
10006 displayed. 
10007
10008 @item confidence-interval
10009 A numeric confidence interval.
10010
10011 @item prediction-bar
10012 The higher the prediction, the longer the bar.
10013
10014 @item confidence-bar
10015 Numerical confidence.
10016
10017 @item confidence-spot
10018 The spot gets bigger with more confidence.
10019
10020 @item prediction-num
10021 Plain-old numeric value.
10022
10023 @item confidence-plus-minus
10024 Prediction +/i confidence.
10025
10026 @end table
10027
10028
10029 @node GroupLens Variables
10030 @subsection GroupLens Variables
10031
10032 @table @code
10033
10034 @item gnus-summary-grouplens-line-format
10035 The summary line format used in summary buffers that are GroupLens
10036 enhanced.  It accepts the same specs as the normal summary line format
10037 (@pxref{Summary Buffer Lines}).  The default is
10038 @samp{%U%R%z%l%I%(%[%4L: %-20,20n%]%) %s\n}.
10039
10040 @item grouplens-bbb-host
10041 Host running the bbbd server.  The default is
10042 @samp{grouplens.cs.umn.edu}. 
10043
10044 @item grouplens-bbb-port
10045 Port of the host running the bbbd server.  The default is 9000.
10046
10047 @item grouplens-score-offset
10048 Offset the prediction by this value.  In other words, subtract the
10049 prediction value by this number to arrive at the effective score.  The
10050 default is 0.
10051
10052 @item grouplens-score-scale-factor 
10053 This variable allows the user to magnify the effect of GroupLens scores.
10054 The scale factor is applied after the offset.  The default is 1.
10055
10056 @end table
10057
10058
10059
10060 @node Various
10061 @chapter Various
10062
10063 @menu
10064 * Process/Prefix::             A convention used by many treatment commands.
10065 * Interactive::                Making Gnus ask you many questions.
10066 * Formatting Variables::       You can specify what buffers should look like.
10067 * Windows Configuration::      Configuring the Gnus buffer windows.
10068 * Compilation::                How to speed Gnus up.
10069 * Mode Lines::                 Displaying information in the mode lines.
10070 * Highlighting and Menus::     Making buffers look all nice and cozy.
10071 * Buttons::                    Get tendonitis in ten easy steps!
10072 * Daemons::                    Gnus can do things behind your back.
10073 * NoCeM::                      How to avoid spam and other fatty foods.
10074 * Picons::                     How to display pictures of what your reading.
10075 * Various Various::            Things that are really various.
10076 @end menu
10077
10078
10079 @node Process/Prefix
10080 @section Process/Prefix
10081 @cindex process/prefix convention
10082
10083 Many functions, among them functions for moving, decoding and saving
10084 articles, use what is known as the @dfn{Process/Prefix convention}.
10085
10086 This is a method for figuring out what articles that the user wants the
10087 command to be performed on.
10088
10089 It goes like this:
10090
10091 If the numeric prefix is N, perform the operation on the next N
10092 articles, starting with the current one.  If the numeric prefix is
10093 negative, perform the operation on the previous N articles, starting
10094 with the current one.
10095
10096 @vindex transient-mark-mode
10097 If @code{transient-mark-mode} in non-@code{nil} and the region is
10098 active, all articles in the region will be worked upon.
10099
10100 If there is no numeric prefix, but some articles are marked with the
10101 process mark, perform the operation on the articles that are marked with
10102 the process mark.
10103
10104 If there is neither a numeric prefix nor any articles marked with the
10105 process mark, just perform the operation on the current article.
10106
10107 Quite simple, really, but it needs to be made clear so that surprises
10108 are avoided.
10109
10110 @vindex gnus-summary-goto-unread
10111 One thing that seems to shock & horrify lots of people is that, for
10112 instance, @kbd{3 d} does exactly the same as @kbd{d} @kbd{d} @kbd{d}.
10113 Since each @kbd{d} (which marks the current article as read) by default
10114 goes to the next unread article after marking, this means that @kbd{3 d}
10115 will mark the next three unread articles as read, no matter what the
10116 summary buffer looks like.  Set @code{gnus-summary-goto-unread} to
10117 @code{nil} for a more straightforward action.
10118
10119
10120 @node Interactive
10121 @section Interactive
10122 @cindex interaction
10123
10124 @table @code
10125
10126 @item gnus-novice-user
10127 @vindex gnus-novice-user
10128 If this variable is non-@code{nil}, you are either a newcomer to the
10129 World of Usenet, or you are very cautious, which is a nice thing to be,
10130 really.  You will be given questions of the type ``Are you sure you want
10131 to do this?'' before doing anything dangerous.  This is @code{t} by
10132 default.
10133
10134 @item gnus-expert-user
10135 @vindex gnus-expert-user
10136 If this variable is non-@code{nil}, you will never ever be asked any
10137 questions by Gnus.  It will simply assume you know what you're doing, no
10138 matter how strange.
10139
10140 @item gnus-interactive-catchup
10141 @vindex gnus-interactive-catchup
10142 Require confirmation before catching up a group if non-@code{nil}.  It
10143 is @code{t} by default.
10144
10145 @item gnus-interactive-post
10146 @vindex gnus-interactive-post
10147 If non-@code{nil}, the user will be prompted for a group name when
10148 posting an article.  It is @code{t} by default.
10149
10150 @item gnus-interactive-exit
10151 @vindex gnus-interactive-exit
10152 Require confirmation before exiting Gnus.  This variable is @code{t} by
10153 default. 
10154 @end table
10155
10156
10157 @node Formatting Variables
10158 @section Formatting Variables
10159 @cindex formatting variables
10160
10161 Throughout this manual you've probably noticed lots of variables that
10162 are called things like @code{gnus-group-line-format} and
10163 @code{gnus-summary-mode-line-format}.  These control how Gnus is to
10164 output lines in the various buffers.  There's quite a lot of them.
10165 Fortunately, they all use the same syntax, so there's not that much to
10166 be annoyed by.
10167
10168 Here's an example format spec (from the group buffer): @samp{%M%S%5y:
10169 %(%g%)\n}.  We see that it is indeed extremely ugly, and that there are
10170 lots of percentages everywhere.  
10171
10172 Each @samp{%} element will be replaced by some string or other when the
10173 buffer in question is generated.  @samp{%5y} means ``insert the @samp{y}
10174 spec, and pad with spaces to get a 5-character field''.  Just like a
10175 normal format spec, almost.
10176
10177 You can also say @samp{%6,4y}, which means that the field will never be
10178 more than 6 characters wide and never less than 4 characters wide.
10179
10180 There are also specs for highlighting, and these are shared by all the
10181 format variables.  Text inside the @samp{%(} and @samp{%)} specifiers
10182 will get the special @code{mouse-face} property set, which means that it
10183 will be highlighted (with @code{gnus-mouse-face}) when you put the mouse
10184 pointer over it.
10185
10186 Text inside the @samp{%[} and @samp{%]} specifiers will have their
10187 normal faces set using @code{gnus-face-0}, which is @code{bold} by
10188 default.  If you say @samp{%1[} instead, you'll get @code{gnus-face-1}
10189 instead, and so on.  Create as many faces as you wish.  The same goes
10190 for the @code{mouse-face} specs---you can say @samp{%3(hello%)} to have
10191 @samp{hello} mouse-highlighted with @code{gnus-mouse-face-3}.
10192
10193 Here's an alternative recipe for the group buffer:
10194
10195 @lisp
10196 ;; Create three face types.
10197 (setq gnus-face-1 'bold)
10198 (setq gnus-face-3 'italic)
10199
10200 ;; We want the article count to be in 
10201 ;; a bold and green face.  So we create 
10202 ;; a new face called `my-green-bold'.
10203 (copy-face 'bold 'my-green-bold)
10204 ;; Set the color.
10205 (set-face-foreground 'my-green-bold "ForestGreen")
10206 (setq gnus-face-2 'my-green-bold)
10207
10208 ;; Set the new & fancy format.
10209 (setq gnus-group-line-format 
10210       "%M%S%3@{%5y%@}%2[:%] %(%1@{%g%@}%)\n")
10211 @end lisp
10212
10213 I'm sure you'll be able to use this scheme to create totally unreadable
10214 and extremely vulgar displays.  Have fun!
10215
10216 Currently Gnus uses the following formatting variables:
10217 @code{gnus-group-line-format}, @code{gnus-summary-line-format},
10218 @code{gnus-server-line-format}, @code{gnus-topic-line-format},
10219 @code{gnus-group-mode-line-format},
10220 @code{gnus-summary-mode-line-format},
10221 @code{gnus-article-mode-line-format},
10222 @code{gnus-server-mode-line-format}. 
10223
10224 Note that the @samp{%(} specs (and friends) do not make any sense on the
10225 mode-line variables.
10226
10227 All these format variables can also be arbitrary elisp forms.  In that
10228 case, they will be @code{eval}ed to insert the required lines.
10229
10230 @kindex M-x gnus-update-format
10231 @findex gnus-update-format
10232 Gnus includes a command to help you while creating your own format
10233 specs.  @kbd{M-x gnus-update-format} will @code{eval} the current form,
10234 update the spec in question and pop you to a buffer where you can
10235 examine the resulting lisp code to be run to generate the line.  
10236
10237
10238 @node Windows Configuration
10239 @section Windows Configuration
10240 @cindex windows configuration
10241
10242 No, there's nothing here about X, so be quiet.
10243
10244 @vindex gnus-use-full-window
10245 If @code{gnus-use-full-window} non-@code{nil}, Gnus will delete all
10246 other windows and occupy the entire Emacs screen by itself.  It is
10247 @code{t} by default.
10248
10249 @vindex gnus-buffer-configuration
10250 @code{gnus-buffer-configuration} describes how much space each Gnus
10251 buffer should be given.  Here's an excerpt of this variable:
10252
10253 @lisp
10254 ((group (vertical 1.0 (group 1.0 point)
10255                       (if gnus-carpal (group-carpal 4))))
10256  (article (vertical 1.0 (summary 0.25 point) 
10257                         (article 1.0))))
10258 @end lisp
10259
10260 This is an alist.  The @dfn{key} is a symbol that names some action or
10261 other.  For instance, when displaying the group buffer, the window
10262 configuration function will use @code{group} as the key.  A full list of
10263 possible names is listed below.
10264
10265 The @dfn{value} (i. e., the @dfn{split}) says how much space each buffer
10266 should occupy.  To take the @code{article} split as an example -
10267
10268 @lisp
10269 (article (vertical 1.0 (summary 0.25 point)
10270                        (article 1.0)))
10271 @end lisp
10272
10273 This @dfn{split} says that the summary buffer should occupy 25% of upper
10274 half of the screen, and that it is placed over the article buffer.  As
10275 you may have noticed, 100% + 25% is actually 125% (yup, I saw y'all
10276 reaching for that calculator there).  However, the special number
10277 @code{1.0} is used to signal that this buffer should soak up all the
10278 rest of the space available after the rest of the buffers have taken
10279 whatever they need.  There should be only one buffer with the @code{1.0}
10280 size spec per split.
10281
10282 Point will be put in the buffer that has the optional third element
10283 @code{point}. 
10284
10285 Here's a more complicated example:
10286
10287 @lisp
10288 (article (vertical 1.0 (group 4)
10289                        (summary 0.25 point)
10290                        (if gnus-carpal (summary-carpal 4))
10291                        (article 1.0)))
10292 @end lisp
10293
10294 If the size spec is an integer instead of a floating point number, 
10295 then that number will be used to say how many lines a buffer should
10296 occupy, not a percentage.
10297
10298 If the @dfn{split} looks like something that can be @code{eval}ed (to be
10299 precise---if the @code{car} of the split is a function or a subr), this
10300 split will be @code{eval}ed.  If the result is non-@code{nil}, it will
10301 be used as a split.  This means that there will be three buffers if
10302 @code{gnus-carpal} is @code{nil}, and four buffers if @code{gnus-carpal}
10303 is non-@code{nil}.
10304
10305 Not complicated enough for you?  Well, try this on for size:
10306
10307 @lisp
10308 (article (horizontal 1.0 
10309              (vertical 0.5
10310                  (group 1.0)
10311                  (gnus-carpal 4))
10312              (vertical 1.0
10313                  (summary 0.25 point)
10314                  (summary-carpal 4)
10315                  (article 1.0))))
10316 @end lisp
10317
10318 Whoops.  Two buffers with the mystery 100% tag.  And what's that
10319 @code{horizontal} thingie?  
10320
10321 If the first element in one of the split is @code{horizontal}, Gnus will
10322 split the window horizontally, giving you two windows side-by-side.
10323 Inside each of these strips you may carry on all you like in the normal
10324 fashion.  The number following @code{horizontal} says what percentage of
10325 the screen is to be given to this strip.
10326
10327 For each split, there @emph{must} be one element that has the 100% tag.
10328 The splitting is never accurate, and this buffer will eat any leftover
10329 lines from the splits.
10330
10331 To be slightly more formal, here's a definition of what a legal split
10332 may look like:
10333
10334 @example
10335 split       = frame | horizontal | vertical | buffer | form
10336 frame       = "(frame " size *split ")"
10337 horizontal  = "(horizontal " size *split ")"
10338 vertical    = "(vertical " size *split ")"
10339 buffer      = "(" buffer-name " " size *[ "point" ] ")"
10340 size        = number | frame-params
10341 buffer-name = group | article | summary ...
10342 @end example
10343
10344 The limitations are that the @code{frame} split can only appear as the
10345 top-level split.  @var{form} should be an Emacs Lisp form that should
10346 return a valid split.  We see that each split is fully recursive, and
10347 may contain any number of @code{vertical} and @code{horizontal} splits. 
10348
10349 @vindex gnus-window-min-width
10350 @vindex gnus-window-min-height
10351 @cindex window height
10352 @cindex window width
10353 Finding the right sizes can be a bit complicated.  No window may be less
10354 than @code{gnus-window-min-height} (default 2) characters high, and all
10355 windows must be at least @code{gnus-window-min-width} (default 1)
10356 characters wide.  Gnus will try to enforce this before applying the
10357 splits.  If you want to use the normal Emacs window width/height limit,
10358 you can just set these two variables to @code{nil}.
10359
10360 If you're not familiar with Emacs terminology, @code{horizontal} and
10361 @code{vertical} splits may work the opposite way of what you'd expect.
10362 Windows inside a @code{horizontal} split are shown side-by-side, and
10363 windows within a @code{vertical} split are shown above each other.
10364
10365 @findex gnus-configure-frame
10366 If you want to experiment with window placement, a good tip is to call
10367 @code{gnus-configure-frame} directly with a split.  This is the function
10368 that does all the real work when splitting buffers.  Below is a pretty
10369 nonsensical configuration with 5 windows; two for the group buffer and
10370 three for the article buffer.  (I said it was nonsensical.)  If you
10371 @code{eval} the statement below, you can get an idea of how that would
10372 look straight away, without going through the normal Gnus channels.
10373 Play with it until you're satisfied, and then use
10374 @code{gnus-add-configuration} to add your new creation to the buffer
10375 configuration list. 
10376
10377 @lisp
10378 (gnus-configure-frame
10379  '(horizontal 1.0
10380     (vertical 10
10381       (group 1.0)
10382       (article 0.3 point))
10383     (vertical 1.0
10384       (article 1.0)
10385       (horizontal 4
10386         (group 1.0)
10387         (article 10)))))
10388 @end lisp
10389
10390 You might want to have several frames as well.  No prob---just use the
10391 @code{frame} split:
10392
10393 @lisp
10394 (gnus-configure-frame
10395  '(frame 1.0
10396          (vertical 1.0
10397                    (summary 0.25 point)
10398                    (article 1.0))
10399          (vertical ((height . 5) (width . 15)
10400                     (user-position . t)
10401                     (left . -1) (top . 1))
10402                    (picon 1.0))))
10403
10404 @end lisp
10405
10406 This split will result in the familiar summary/article window
10407 configuration in the first (or ``main'') frame, while a small additional
10408 frame will be created where picons will be shown.  As you can see,
10409 instead of the normal @code{1.0} top-level spec, each additional split
10410 should have a frame parameter alist as the size spec.
10411 @xref{(elisp)Frame Parameters}.
10412
10413 Here's a list of all possible keys for
10414 @code{gnus-buffer-configuration}:
10415
10416 @code{group}, @code{summary}, @code{article}, @code{server},
10417 @code{browse}, @code{group-mail}, @code{summary-mail},
10418 @code{summary-reply}, @code{info}, @code{summary-faq},
10419 @code{edit-group}, @code{edit-server}, @code{reply}, @code{reply-yank},
10420 @code{followup}, @code{followup-yank}, @code{edit-score}.  
10421
10422 @findex gnus-add-configuration
10423 Since the @code{gnus-buffer-configuration} variable is so long and
10424 complicated, there's a function you can use to ease changing the config
10425 of a single setting: @code{gnus-add-configuration}.  If, for instance,
10426 you want to change the @code{article} setting, you could say:
10427
10428 @lisp
10429 (gnus-add-configuration
10430  '(article (vertical 1.0
10431                (group 4)
10432                (summary .25 point)
10433                (article 1.0))))
10434 @end lisp
10435
10436 You'd typically stick these @code{gnus-add-configuration} calls in your
10437 @file{.gnus} file or in some startup hook -- they should be run after
10438 Gnus has been loaded.
10439
10440
10441 @node Compilation 
10442 @section Compilation 
10443 @cindex compilation
10444 @cindex byte-compilation
10445
10446 @findex gnus-compile
10447
10448 Remember all those line format specification variables?
10449 @code{gnus-summary-line-format}, @code{gnus-group-line-format}, and so
10450 on.  Now, Gnus will of course heed whatever these variables are, but,
10451 unfortunately, changing them will mean a quite significant slow-down.
10452 (The default values of these variables have byte-compiled functions
10453 associated with them, while the user-generated versions do not, of
10454 course.) 
10455
10456 To help with this, you can run @kbd{M-x gnus-compile} after you've
10457 fiddled around with the variables and feel that you're (kind of)
10458 satisfied.  This will result in the new specs being byte-compiled, and
10459 you'll get top speed again.
10460
10461
10462 @node Mode Lines
10463 @section Mode Lines
10464 @cindex mode lines
10465
10466 @vindex gnus-updated-mode-lines
10467 @code{gnus-updated-mode-lines} says what buffers should keep their mode
10468 lines updated.  It is a list of symbols.  Supported symbols include
10469 @code{group}, @code{article}, @code{summary}, @code{server},
10470 @code{browse}, and @code{tree}.  If the corresponding symbol is present,
10471 Gnus will keep that mode line updated with information that may be
10472 pertinent.  If this variable is @code{nil}, screen refresh may be
10473 quicker.
10474
10475 @cindex display-time
10476
10477 @vindex gnus-mode-non-string-length
10478 By default, Gnus displays information on the current article in the mode
10479 lines of the summary and article buffers.  The information Gnus wishes
10480 to display (eg. the subject of the article) is often longer than the
10481 mode lines, and therefore have to be cut off at some point.  The
10482 @code{gnus-mode-non-string-length} variable says how long the other
10483 elements on the line is (i.e., the non-info part).  If you put
10484 additional elements on the mode line (eg. a clock), you should modify
10485 this variable:
10486
10487 @c Hook written by Francesco Potorti` <pot@cnuce.cnr.it>
10488 @lisp
10489 (add-hook 'display-time-hook
10490           (lambda () (setq gnus-mode-non-string-length
10491                            (+ 21
10492                               (if line-number-mode 5 0)
10493                               (if column-number-mode 4 0)
10494                               (length display-time-string)))))
10495 @end lisp
10496
10497 If this variable is @code{nil} (which is the default), the mode line
10498 strings won't be chopped off, and they won't be padded either.
10499
10500
10501 @node Highlighting and Menus
10502 @section Highlighting and Menus
10503 @cindex visual
10504 @cindex highlighting
10505 @cindex menus
10506
10507 @vindex gnus-visual
10508 The @code{gnus-visual} variable controls most of the prettifying Gnus
10509 aspects.  If @code{nil}, Gnus won't attempt to create menus or use fancy
10510 colors or fonts.  This will also inhibit loading the @file{gnus-vis.el}
10511 file.
10512
10513 This variable can be a list of visual properties that are enabled.  The
10514 following elements are legal, and are all included by default:
10515
10516 @table @code
10517 @item group-highlight
10518 Do highlights in the group buffer.
10519 @item summary-highlight
10520 Do highlights in the summary buffer.
10521 @item article-highlight
10522 Do highlights in the article buffer.
10523 @item highlight
10524 Turn on highlighting in all buffers.
10525 @item group-menu
10526 Create menus in the group buffer.
10527 @item summary-menu
10528 Create menus in the summary buffers.
10529 @item article-menu
10530 Create menus in the article buffer.
10531 @item browse-menu
10532 Create menus in the browse buffer.
10533 @item server-menu
10534 Create menus in the server buffer.
10535 @item score-menu
10536 Create menus in the score buffers.
10537 @item menu
10538 Create menus in all buffers.
10539 @end table
10540
10541 So if you only want highlighting in the article buffer and menus in all
10542 buffers, you could say something like:
10543
10544 @lisp
10545 (setq gnus-visual '(article-highlight menu))
10546 @end lisp
10547
10548 If you want only highlighting and no menus whatsoever, you'd say:
10549
10550 @lisp
10551 (setq gnus-visual '(highlight))
10552 @end lisp
10553
10554 If @code{gnus-visual} is @code{t}, highlighting and menus will be used
10555 in all Gnus buffers.
10556
10557 Other general variables that influence the look of all buffers include:
10558
10559 @table @code
10560 @item gnus-mouse-face
10561 @vindex gnus-mouse-face
10562 This is the face (i.e., font) used for mouse highlighting in Gnus.  No
10563 mouse highlights will be done if @code{gnus-visual} is @code{nil}.
10564
10565 @item gnus-display-type
10566 @vindex gnus-display-type
10567 This variable is symbol indicating the display type Emacs is running
10568 under.  The symbol should be one of @code{color}, @code{grayscale} or
10569 @code{mono}.  If Gnus guesses this display attribute wrongly, either set
10570 this variable in your @file{~/.emacs} or set the resource
10571 @code{Emacs.displayType} in your @file{~/.Xdefaults}.
10572
10573 @item gnus-background-mode 
10574 @vindex gnus-background-mode 
10575 This is a symbol indicating the Emacs background brightness.  The symbol
10576 should be one of @code{light} or @code{dark}.  If Gnus guesses this
10577 frame attribute wrongly, either set this variable in your @file{~/.emacs} or
10578 set the resource @code{Emacs.backgroundMode} in your @file{~/.Xdefaults}. 
10579 `gnus-display-type'.
10580 @end table
10581
10582 There are hooks associated with the creation of all the different menus:
10583
10584 @table @code
10585
10586 @item gnus-article-menu-hook
10587 @vindex gnus-article-menu-hook
10588 Hook called after creating the article mode menu.
10589
10590 @item gnus-group-menu-hook
10591 @vindex gnus-group-menu-hook
10592 Hook called after creating the group mode menu.
10593
10594 @item gnus-summary-menu-hook
10595 @vindex gnus-summary-menu-hook
10596 Hook called after creating the summary mode menu.
10597
10598 @item gnus-server-menu-hook
10599 @vindex gnus-server-menu-hook
10600 Hook called after creating the server mode menu.
10601
10602 @item gnus-browse-menu-hook
10603 @vindex gnus-browse-menu-hook
10604 Hook called after creating the browse mode menu.
10605
10606 @item gnus-score-menu-hook
10607 @vindex gnus-score-menu-hook
10608 Hook called after creating the score mode menu.
10609
10610 @end table
10611
10612
10613 @node Buttons
10614 @section Buttons
10615 @cindex buttons
10616 @cindex mouse
10617 @cindex click
10618
10619 Those new-fangled @dfn{mouse} contraptions is very popular with the
10620 young, hep kids who don't want to learn the proper way to do things
10621 these days.  Why, I remember way back in the summer of '89, when I was
10622 using Emacs on a Tops 20 system.  Three hundred users on one single
10623 machine, and every user was running Simula compilers.  Bah!
10624
10625 Right.
10626
10627 @vindex gnus-carpal
10628 Well, you can make Gnus display bufferfuls of buttons you can click to
10629 do anything by setting @code{gnus-carpal} to @code{t}.  Pretty simple,
10630 really.  Tell the chiropractor I sent you.
10631
10632
10633 @table @code
10634
10635 @item gnus-carpal-mode-hook
10636 @vindex gnus-carpal-mode-hook
10637 Hook run in all carpal mode buffers.
10638
10639 @item gnus-carpal-button-face
10640 @vindex gnus-carpal-button-face
10641 Face used on buttons.
10642
10643 @item gnus-carpal-header-face
10644 @vindex gnus-carpal-header-face
10645 Face used on carpal buffer headers.
10646
10647 @item gnus-carpal-group-buffer-buttons
10648 @vindex gnus-carpal-group-buffer-buttons
10649 Buttons in the group buffer.
10650
10651 @item gnus-carpal-summary-buffer-buttons
10652 @vindex gnus-carpal-summary-buffer-buttons
10653 Buttons in the summary buffer.
10654
10655 @item gnus-carpal-server-buffer-buttons
10656 @vindex gnus-carpal-server-buffer-buttons
10657 Buttons in the server buffer.
10658
10659 @item gnus-carpal-browse-buffer-buttons
10660 @vindex gnus-carpal-browse-buffer-buttons
10661 Buttons in the browse buffer.
10662 @end table
10663
10664 All the @code{buttons} variables are lists.  The elements in these list
10665 is either a cons cell where the car contains a text to be displayed and
10666 the cdr contains a function symbol, or a simple string.
10667
10668
10669 @node Daemons
10670 @section Daemons
10671 @cindex demons
10672 @cindex daemons
10673
10674 Gnus, being larger than any program ever written (allegedly), does lots
10675 of strange stuff that you may wish to have done while you're not
10676 present.  For instance, you may want it to check for new mail once in a
10677 while.  Or you may want it to close down all connections to all servers
10678 when you leave Emacs idle.  And stuff like that.
10679
10680 Gnus will let you do stuff like that by defining various
10681 @dfn{handlers}.  Each handler consists of three elements:  A
10682 @var{function}, a @var{time}, and an @var{idle} parameter.
10683
10684 Here's an example of a handler that closes connections when Emacs has
10685 been idle for thirty minutes:
10686
10687 @lisp
10688 (gnus-demon-close-connections nil 30)
10689 @end lisp
10690
10691 Here's a handler that scans for PGP headers every hour when Emacs is
10692 idle: 
10693
10694 @lisp
10695 (gnus-demon-scan-pgp 60 t)
10696 @end lisp
10697
10698 This @var{time} parameter and than @var{idle} parameter works together
10699 in a strange, but wonderful fashion.  Basically, if @var{idle} is
10700 @code{nil}, then the function will be called every @var{time} minutes.
10701
10702 If @var{idle} is @code{t}, then the function will be called after
10703 @var{time} minutes only if Emacs is idle.  So if Emacs is never idle,
10704 the function will never be called.  But once Emacs goes idle, the
10705 function will be called every @var{time} minutes.
10706
10707 If @var{idle} is a number and @var{time} is a number, the function will
10708 be called every @var{time} minutes only when Emacs has been idle for
10709 @var{idle} minutes.
10710
10711 If @var{idle} is a number and @var{time} is @code{nil}, the function
10712 will be called once every time Emacs has been idle for @var{idle}
10713 minutes.  
10714
10715 And if @var{time} is a string, it should look like @samp{07:31}, and
10716 the function will then be called once every day somewhere near that
10717 time.  Modified by the @var{idle} parameter, of course.
10718
10719 @vindex gnus-demon-timestep
10720 (When I say ``minute'' here, I really mean @code{gnus-demon-timestep}
10721 seconds.  This is @code{60} by default.  If you change that variable,
10722 all the timings in the handlers will be affected.)
10723
10724 @vindex gnus-use-demon
10725 To set the whole thing in motion, though, you have to set
10726 @code{gnus-use-demon} to @code{t}.
10727
10728 So, if you want to add a handler, you could put something like this in
10729 your @file{.gnus} file:
10730
10731 @findex gnus-demon-add-handler
10732 @lisp
10733 (gnus-demon-add-handler 'gnus-demon-close-connections nil 30)
10734 @end lisp
10735
10736 @findex gnus-demon-add-nocem
10737 @findex gnus-demon-add-scanmail
10738 @findex gnus-demon-add-disconnection
10739 Some ready-made functions to do this has been created:
10740 @code{gnus-demon-add-nocem}, @code{gnus-demon-add-disconnection}, and
10741 @code{gnus-demon-add-scanmail}.  Just put those functions in your
10742 @file{.gnus} if you want those abilities.
10743
10744 @findex gnus-demon-init
10745 @findex gnus-demon-cancel
10746 @vindex gnus-demon-handlers
10747 If you add handlers to @code{gnus-demon-handlers} directly, you should
10748 run @code{gnus-demon-init} to make the changes take hold.  To cancel all
10749 daemons, you can use the @code{gnus-demon-cancel} function.
10750
10751 Note that adding daemons can be pretty naughty if you overdo it.  Adding
10752 functions that scan all news and mail from all servers every two seconds
10753 is a sure-fire way of getting booted off any respectable system.  So
10754 behave. 
10755
10756
10757 @node NoCeM
10758 @section NoCeM
10759 @cindex nocem
10760 @cindex spam
10761
10762 @dfn{Spamming} is posting the same article lots and lots of times.
10763 Spamming is bad.  Spamming is evil.  
10764
10765 Spamming is usually canceled within a day or so by various anti-spamming
10766 agencies.  These agencies usually also send out @dfn{NoCeM} messages.
10767 NoCeM is pronounced ``no see-'em'', and means what the name
10768 implies---these are messages that make the offending articles, like, go
10769 away.  
10770
10771 What use are these NoCeM messages if the articles are canceled anyway?
10772 Some sites do not honor cancel messages and some sites just honor cancels
10773 from a select few people.  Then you may wish to make use of the NoCeM
10774 messages, which are distributed in the @samp{alt.nocem.misc} newsgroup.
10775
10776 Gnus can read and parse the messages in this group automatically, and
10777 this will make spam disappear.  
10778
10779 There are some variables to customize, of course:
10780
10781 @table @code
10782 @item gnus-use-nocem
10783 @vindex gnus-use-nocem
10784 Set this variable to @code{t} to set the ball rolling.  It is @code{nil}
10785 by default. 
10786
10787 @item gnus-nocem-groups
10788 @vindex gnus-nocem-groups
10789 Gnus will look for NoCeM messages in the groups in this list.  The
10790 default is @code{("alt.nocem.misc" "news.admin.net-abuse.announce")}. 
10791
10792 @item gnus-nocem-issuers
10793 @vindex gnus-nocem-issuers
10794 There are many people issuing NoCeM messages.  This list says what
10795 people you want to listen to.  The default is @code{("Automoose-1"
10796 "clewis@@ferret.ocunix.on.ca;" "jem@@xpat.com;" "red@@redpoll.mrfs.oh.us
10797 (Richard E. Depew)")}; fine, upstanding citizens all of them.
10798
10799 Known despammers that you can put in this list include:
10800
10801 @table @samp
10802 @item clewis@@ferret.ocunix.on.ca;
10803 @cindex Chris Lewis
10804 Chris Lewis---Major Canadian despammer who has probably canceled more
10805 usenet abuse than anybody else.
10806
10807 @item Automoose-1
10808 @cindex CancelMoose[tm]
10809 The CancelMoose[tm] on autopilot.  The CancelMoose[tm] is reputed to be
10810 Norwegian, and was the person(s) who invented NoCeM.  
10811
10812 @item jem@@xpat.com;
10813 @cindex Jem
10814 Jem---Korean despammer who is getting very busy these days.
10815
10816 @item red@@redpoll.mrfs.oh.us (Richard E. Depew)
10817 Richard E. Depew---lone American despammer.  He mostly cancels binary
10818 postings to non-binary groups and removes spews (regurgitated articles).
10819 @end table
10820
10821 You do not have to heed NoCeM messages from all these people---just the
10822 ones you want to listen to.
10823
10824 @item gnus-nocem-directory
10825 @vindex gnus-nocem-directory
10826 This is where Gnus will store its NoCeM cache files.  The default is
10827 @file{~/News/NoCeM/}. 
10828
10829 @item gnus-nocem-expiry-wait
10830 @vindex gnus-nocem-expiry-wait
10831 The number of days before removing old NoCeM entries from the cache.
10832 The default is 15.  If you make it shorter Gnus will be faster, but you
10833 might then see old spam.
10834
10835 @end table
10836
10837
10838 @node Picons
10839 @section Picons
10840
10841 So...  You want to slow down your news reader even more!  This is a
10842 good way to do so.  Its also a great way to impress people staring
10843 over your shoulder as you read news.
10844
10845 @menu
10846 * Picon Basics::           What are picons and How do I get them.
10847 * Picon Requirements::     Don't go further if you aren't using XEmacs.
10848 * Easy Picons::            Displaying Picons -- the easy way.
10849 * Hard Picons::            The way you should do it.  You'll learn something.
10850 * Picon Configuration::    Other variables you can trash/tweak/munge/play with.
10851 @end menu
10852
10853
10854 @node Picon Basics
10855 @subsection Picon Basics
10856
10857 What are Picons?  To quote directly from the Picons Web site
10858 (@samp{http://www.cs.indiana.edu/picons/ftp/index.html}):
10859
10860 @quotation 
10861 @dfn{Picons} is short for ``personal icons''.  They're small,
10862 constrained images used to represent users and domains on the net,
10863 organized into databases so that the appropriate image for a given
10864 e-mail address can be found.  Besides users and domains, there are picon
10865 databases for Usenet newsgroups and weather forecasts.  The picons are
10866 in either monochrome @code{XBM} format or color @code{XPM} and
10867 @code{GIF} formats.
10868 @end quotation
10869
10870 Please see the above mentioned web site for instructions on obtaining
10871 and installing the picons databases, or the following ftp site:
10872 @samp{http://www.cs.indiana.edu/picons/ftp/index.html}.
10873
10874 @vindex gnus-picons-database
10875 Gnus expects picons to be installed into a location pointed to by
10876 @code{gnus-picons-database}.
10877
10878
10879 @node Picon Requirements
10880 @subsection Picon Requirements
10881
10882 To use have Gnus display Picons for you, you must be running XEmacs
10883 19.13 or greater since all other versions of Emacs aren't yet able to
10884 display images.
10885
10886 Additionally, you must have @code{xpm} support compiled into XEmacs.
10887
10888 @vindex gnus-picons-convert-x-face
10889 If you want to display faces from @code{X-Face} headers, you must have
10890 the @code{netpbm} utilities installed, or munge the
10891 @code{gnus-picons-convert-x-face} variable to use something else.
10892
10893
10894 @node Easy Picons
10895 @subsection Easy Picons
10896
10897 To enable displaying picons, simply put the following line in your
10898 @file{~/.gnus} file and start Gnus.
10899
10900 @lisp
10901 (setq gnus-use-picons t)
10902 (add-hook 'gnus-article-display-hook 'gnus-article-display-picons t)
10903 (add-hook 'gnus-summary-prepare-hook 'gnus-group-display-picons t)
10904 (add-hook 'gnus-article-display-hook 'gnus-picons-article-display-x-face)
10905 @end lisp
10906
10907
10908 @node Hard Picons
10909 @subsection Hard Picons 
10910
10911 Gnus can display picons for you as you enter and leave groups and
10912 articles.  It knows how to interact with three sections of the picons
10913 database.  Namely, it can display the picons newsgroup pictures,
10914 author's face picture(s), and the authors domain.  To enable this
10915 feature, you need to first decide where to display them.
10916
10917 @table @code 
10918
10919 @item gnus-picons-display-where 
10920 @vindex gnus-picons-display-where 
10921 Where the picon images should be displayed.  It is @code{picons} by
10922 default (which by default maps to the buffer @samp{*Picons*}).  Other
10923 valid places could be @code{article}, @code{summary}, or
10924 @samp{"*scratch*"} for all I care.  Just make sure that you've made the
10925 buffer visible using the standard Gnus window configuration routines --
10926 @xref{Windows Configuration}.
10927
10928 @end table
10929
10930 Note: If you set @code{gnus-use-picons} to @code{t}, it will set up your
10931 window configuration for you to include the @code{picons} buffer.
10932
10933 Now that you've made that decision, you need to add the following
10934 functions to the appropriate hooks so these pictures will get
10935 displayed at the right time.
10936
10937 @vindex gnus-article-display-hook
10938 @vindex gnus-picons-display-where
10939 @table @code
10940 @item gnus-article-display-picons
10941 @findex gnus-article-display-picons
10942 Looks up and display the picons for the author and the author's domain
10943 in the @code{gnus-picons-display-where} buffer.  Should be added to
10944 the @code{gnus-article-display-hook}.
10945
10946 @item gnus-group-display-picons
10947 @findex gnus-article-display-picons
10948 Displays picons representing the current group.  This function should
10949 be added to the @code{gnus-summary-prepare-hook} or to the
10950 @code{gnus-article-display-hook} if @code{gnus-picons-display-where}
10951 is set to @code{article}.
10952
10953 @item gnus-picons-article-display-x-face
10954 @findex gnus-article-display-picons
10955 Decodes and displays the X-Face header if present.  This function
10956 should be added to @code{gnus-article-display-hook}.
10957
10958 @end table
10959
10960 Note:  You must append them to the hook, so make sure to specify 't'
10961 to the append flag of @code{add-hook}:
10962
10963 @lisp
10964 (add-hook 'gnus-article-display-hook 'gnus-article-display-picons t)
10965 @end lisp
10966
10967
10968 @node Picon Configuration
10969 @subsection Picon Configuration
10970
10971 The following variables offer further control over how things are
10972 done, where things are located, and other useless stuff you really
10973 don't need to worry about.
10974
10975 @table @code
10976 @item gnus-picons-database
10977 @vindex gnus-picons-database
10978 The location of the picons database.  Should point to a directory
10979 containing the @file{news}, @file{domains}, @file{users} (and so on)
10980 subdirectories.  Defaults to @file{/usr/local/faces}.
10981
10982 @item gnus-picons-news-directory
10983 @vindex gnus-picons-news-directory
10984 Sub-directory of the faces database containing the icons for
10985 newsgroups.
10986
10987 @item gnus-picons-user-directories
10988 @vindex gnus-picons-user-directories
10989 List of subdirectories to search in @code{gnus-picons-database} for user
10990 faces.  Defaults to @code{("local" "users" "usenix" "misc/MISC")}.
10991
10992 @item gnus-picons-domain-directories
10993 @vindex gnus-picons-domain-directories
10994 List of subdirectories to search in @code{gnus-picons-database} for
10995 domain name faces.  Defaults to @code{("domains")}.  Some people may
10996 want to add @samp{unknown} to this list.
10997
10998 @item gnus-picons-convert-x-face
10999 @vindex gnus-picons-convert-x-face
11000 The command to use to convert the @code{X-Face} header to an X bitmap
11001 (@code{xbm}).  Defaults to @code{(format "@{ echo '/* Width=48,
11002 Height=48 */'; uncompface; @} | icontopbm | pbmtoxbm > %s"
11003 gnus-picons-x-face-file-name)}
11004
11005 @item gnus-picons-x-face-file-name
11006 @vindex gnus-picons-x-face-file-name
11007 Names a temporary file to store the @code{X-Face} bitmap in.  Defaults
11008 to @code{(format "/tmp/picon-xface.%s.xbm" (user-login-name))}.
11009
11010 @item gnus-picons-buffer
11011 @vindex gnus-picons-buffer
11012 The name of the buffer that @code{picons} points to.  Defaults to
11013 @samp{*Icon Buffer*}.
11014
11015 @end table
11016
11017
11018 @node Various Various
11019 @section Various Various
11020 @cindex mode lines
11021 @cindex highlights
11022
11023 @table @code
11024
11025 @item gnus-verbose
11026 @vindex gnus-verbose
11027 This variable is an integer between zero and ten.  The higher the value,
11028 the more messages will be displayed.  If this variable is zero, Gnus
11029 will never flash any messages, if it is seven (which is the default),
11030 most important messages will be shown, and if it is ten, Gnus won't ever
11031 shut up, but will flash so many messages it will make your head swim.
11032
11033 @item gnus-verbose-backends
11034 @vindex gnus-verbose-backends
11035 This variable works the same way as @code{gnus-verbose}, but it applies
11036 to the Gnus backends instead of Gnus proper.
11037
11038 @item nnheader-max-head-length
11039 @vindex nnheader-max-head-length
11040 When the backends read straight heads of articles, they all try to read
11041 as little as possible.  This variable (default @code{4096}) specifies
11042 the absolute max length the backends will try to read before giving up
11043 on finding a separator line between the head and the body.  If this
11044 variable is @code{nil}, there is no upper read bound.  If it is
11045 @code{t}, the backends won't try to read the articles piece by piece,
11046 but read the entire articles.  This makes sense with some versions of
11047 @code{ange-ftp}. 
11048
11049 @item nnheader-file-name-translation-alist 
11050 @vindex nnheader-file-name-translation-alist 
11051 @cindex file names
11052 @cindex illegal characters in file names
11053 @cindex characters in file names
11054 This is an alist that says how to translate characters in file names.
11055 For instance, if @samp{:} is illegal as a file character in file names
11056 on your system (you OS/2 user you), you could say something like:
11057
11058 @lisp
11059 (setq nnheader-file-name-translation-alist 
11060       '((?: . ?_)))
11061 @end lisp
11062
11063 In fact, this is the default value for this variable on OS/2 and MS
11064 Windows (phooey) systems.
11065
11066 @item gnus-hidden-properties
11067 @vindex gnus-hidden-properties
11068 This is a list of properties to use to hide ``invisible'' text.  It is
11069 @code{(invisible t intangible t)} by default on most systems, which
11070 makes invisible text invisible and intangible.
11071
11072 @item gnus-parse-header-hook
11073 @vindex gnus-parse-header-hook
11074 A hook called before parsing headers.  It can be used, for instance, to
11075 gather statistics on the headers fetched, or perhaps you'd like to prune
11076 some headers.  I don't see why you'd want that, though.
11077
11078 @end table
11079
11080
11081 @node The End
11082 @chapter The End
11083
11084 Well, that's the manual---you can get on with your life now.  Keep in
11085 touch.  Say hello to your cats from me.  
11086
11087 My @strong{ghod}---I just can't stand goodbyes.  Sniffle.
11088
11089 Ol' Charles Reznikoff said it pretty well, so I leave the floor to him:
11090
11091 @quotation
11092 @strong{Te Deum}
11093 @sp 1
11094 Not because of victories @*
11095 I sing,@*
11096 having none,@*
11097 but for the common sunshine,@*
11098 the breeze,@*
11099 the largess of the spring.
11100 @sp 1
11101 Not for victory@*
11102 but for the day's work done@*
11103 as well as I was able;@*
11104 not for a seat upon the dais@*
11105 but at the common table.@*
11106 @end quotation
11107
11108
11109 @node Appendices
11110 @chapter Appendices
11111
11112 @menu
11113 * History::                        How Gnus got where it is today.
11114 * Terminology::                    We use really difficult, like, words here.
11115 * Customization::                  Tailoring Gnus to your needs.
11116 * Troubleshooting::                What you might try if things do not work.
11117 * A Programmers Guide to Gnus::    Rilly, rilly technical stuff.
11118 * Emacs for Heathens::             A short introduction to Emacsian terms.
11119 * Frequently Asked Questions::     A question-and-answer session.
11120 @end menu
11121
11122
11123 @node History
11124 @section History
11125
11126 @cindex history
11127 @sc{gnus} was written by Masanobu @sc{Umeda}.  When autumn crept up in
11128 '94, Lars Magne Ingebrigtsen grew bored and decided to rewrite Gnus.
11129
11130 If you want to investigate the person responsible for this outrage, you
11131 can point your (feh!) web browser to
11132 @file{http://www.ifi.uio.no/~larsi/}.  This is also the primary
11133 distribution point for the new and spiffy versions of Gnus, and is known
11134 as The Site That Destroys Newsrcs And Drives People Mad.
11135
11136 During the first extended alpha period of development, the new Gnus was
11137 called ``(ding) Gnus''.  @dfn{(ding)}, is, of course, short for
11138 @dfn{ding is not Gnus}, which is a total and utter lie, but who cares?
11139 (Besides, the ``Gnus'' in this abbreviation should probably be
11140 pronounced ``news'' as @sc{Umeda} intended, which makes it a more
11141 appropriate name, don't you think?)
11142
11143 In any case, after spending all that energy on coming up with a new and
11144 spunky name, we decided that the name was @emph{too} spunky, so we
11145 renamed it back again to ``Gnus''.  But in mixed case.  ``Gnus'' vs.
11146 ``@sc{gnus}''.  New vs. old.
11147
11148 The first ``proper'' release of Gnus 5 was done in November 1995 when it
11149 was included in the Emacs 19.30 distribution.
11150
11151 Incidentally, the next Gnus generation will be called ``September
11152 Gnus'', and won't be released until April 1996.  Confused?  You will be.
11153
11154 @menu
11155 * Why?::                What's the point of Gnus?
11156 * Compatibility::       Just how compatible is Gnus with @sc{gnus}?
11157 * Conformity::          Gnus tries to conform to all standards.
11158 * Emacsen::             Gnus can be run on a few modern Emacsen.
11159 * Contributors::        Oodles of people.  
11160 * New Features::        Pointers to some of the new stuff in Gnus.
11161 * Newest Features::     Features so new that they haven't been written yet.
11162 * Censorship::          This manual has been censored.
11163 @end menu
11164
11165
11166 @node Why?
11167 @subsection Why?
11168
11169 What's the point of Gnus?  
11170
11171 I want to provide a ``rad'', ``happening'', ``way cool'' and ``hep''
11172 newsreader, that lets you do anything you can think of.  That was my
11173 original motivation, but while working on Gnus, it has become clear to
11174 me that this generation of newsreaders really belong in the stone age.
11175 Newsreaders haven't developed much since the infancy of the net.  If the
11176 volume continues to rise with the current rate of increase, all current
11177 newsreaders will be pretty much useless.  How do you deal with
11178 newsgroups that have thousands of new articles each day?  How do you
11179 keep track of millions of people who post?
11180
11181 Gnus offers no real solutions to these questions, but I would very much
11182 like to see Gnus being used as a testing ground for new methods of
11183 reading and fetching news.  Expanding on @sc{Umeda}-san's wise decision
11184 to separate the newsreader from the backends, Gnus now offers a simple
11185 interface for anybody who wants to write new backends for fetching mail
11186 and news from different sources.  I have added hooks for customizations
11187 everywhere I could imagine useful.  By doing so, I'm inviting every one
11188 of you to explore and invent.
11189
11190 May Gnus never be complete. @kbd{C-u 100 M-x hail-emacs}. 
11191
11192
11193 @node Compatibility
11194 @subsection Compatibility
11195
11196 @cindex compatibility
11197 Gnus was designed to be fully compatible with @sc{gnus}.  Almost all key
11198 bindings have been kept.  More key bindings have been added, of course,
11199 but only in one or two obscure cases have old bindings been changed.
11200
11201 Our motto is:
11202 @quotation
11203 @cartouche
11204 @center In a cloud bones of steel.
11205 @end cartouche
11206 @end quotation
11207
11208 All commands have kept their names.  Some internal functions have changed
11209 their names.
11210
11211 The @code{gnus-uu} package has changed drastically. @pxref{Decoding
11212 Articles}. 
11213
11214 One major compatibility question is the presence of several summary
11215 buffers.  All variables that are relevant while reading a group are
11216 buffer-local to the summary buffer they belong in.  Although many
11217 important variables have their values copied into their global
11218 counterparts whenever a command is executed in the summary buffer, this
11219 change might lead to incorrect values being used unless you are careful.
11220
11221 All code that relies on knowledge of @sc{gnus} internals will probably
11222 fail.  To take two examples: Sorting @code{gnus-newsrc-alist} (or
11223 changing it in any way, as a matter of fact) is strictly verboten.  Gnus
11224 maintains a hash table that points to the entries in this alist (which
11225 speeds up many functions), and changing the alist directly will lead to
11226 peculiar results.
11227
11228 @cindex hilit19
11229 @cindex highlighting
11230 Old hilit19 code does not work at all.  In fact, you should probably
11231 remove all hilit code from all Gnus hooks
11232 (@code{gnus-group-prepare-hook} and @code{gnus-summary-prepare-hook}).
11233 Gnus provides various integrated functions for highlighting.  These are
11234 faster and more accurate.  To make life easier for everybody, Gnus will
11235 by default remove all hilit calls from all hilit hooks.  Uncleanliness!
11236 Away!
11237
11238 Packages like @code{expire-kill} will no longer work.  As a matter of
11239 fact, you should probably remove all old @sc{gnus} packages (and other
11240 code) when you start using Gnus.  More likely than not, Gnus already
11241 does what you have written code to make @sc{gnus} do.  (Snicker.)
11242
11243 Even though old methods of doing things are still supported, only the
11244 new methods are documented in this manual.  If you detect a new method of
11245 doing something while reading this manual, that does not mean you have
11246 to stop doing it the old way.
11247
11248 Gnus understands all @sc{gnus} startup files.
11249
11250 @kindex M-x gnus-bug
11251 @findex gnus-bug
11252 @cindex reporting bugs
11253 @cindex bugs
11254 Overall, a casual user who hasn't written much code that depends on
11255 @sc{gnus} internals should suffer no problems.  If problems occur,
11256 please let me know by issuing that magic command @kbd{M-x gnus-bug}.
11257
11258
11259 @node Conformity
11260 @subsection Conformity
11261
11262 No rebels without a clue here, ma'am.  We conform to all standards known
11263 to (wo)man.  Except for those standards and/or conventions we disagree
11264 with, of course.
11265
11266 @table @strong
11267
11268 @item RFC 822
11269 @cindex RFC 822
11270 There are no known breaches of this standard.
11271
11272 @item RFC 1036
11273 @cindex RFC 1036
11274 There are no known breaches of this standard, either.
11275
11276 @item Usenet Seal of Approval
11277 @cindex Usenet Seal of Approval
11278 Gnus hasn't been formally through the Seal process, but I have read
11279 through the Seal text and I think Gnus would pass.
11280
11281 @item Son-of-RFC 1036
11282 @cindex Son-of-RFC 1036
11283 We do have some breaches to this one.
11284
11285 @table @emph
11286
11287 @item MIME
11288 Gnus does no MIME handling, and this standard-to-be seems to think that
11289 MIME is the bees' knees, so we have major breakage here.
11290
11291 @item X-Newsreader
11292 This is considered to be a ``vanity header'', while I consider it to be
11293 consumer information.  After seeing so many badly formatted articles
11294 coming from @code{tin} and @code{Netscape} I know not to use either of
11295 those for posting articles.  I would not have known that if it wasn't
11296 for the @code{X-Newsreader} header.
11297
11298 @item References
11299 Gnus does line breaking on this header.  I infer from RFC1036 that being
11300 conservative in what you output is not creating 5000-character lines, so
11301 it seems like a good idea to me.  However, this standard-to-be says that
11302 whitespace in the @code{References} header is to be preserved, so...  It
11303 doesn't matter one way or the other to Gnus, so if somebody tells me
11304 what The Way is, I'll change it.  Or not.
11305 @end table
11306
11307 @end table
11308
11309 If you ever notice Gnus acting non-compliantly with regards to the texts
11310 mentioned above, don't hesitate to drop a note to Gnus Towers and let us
11311 know.
11312
11313
11314 @node Emacsen
11315 @subsection Emacsen
11316 @cindex Emacsen
11317 @cindex XEmacs
11318 @cindex Mule
11319 @cindex Emacs
11320
11321 Gnus should work on :
11322
11323 @itemize @bullet 
11324
11325 @item
11326 Emacs 19.30 and up.
11327
11328 @item
11329 XEmacs 19.13 and up.
11330
11331 @item 
11332 Mule versions based on Emacs 19.30 and up.
11333
11334 @end itemize
11335
11336 Gnus will absolutely not work on any Emacsen older than that.  Not
11337 reliably, at least. 
11338
11339 There are some vague differences between Gnus on the various platforms: 
11340
11341 @itemize @bullet
11342
11343 @item
11344 The mouse-face on Gnus lines under Emacs and Mule is delimited to
11345 certain parts of the lines while they cover the entire line under
11346 XEmacs. 
11347
11348 @item 
11349 The same with current-article marking---XEmacs puts an underline under
11350 the entire summary line while Emacs and Mule are nicer and kinder.
11351
11352 @item
11353 XEmacs features more graphics---a logo and a toolbar.
11354
11355 @item
11356 Citation highlighting us better under Emacs and Mule than under XEmacs.
11357
11358 @item
11359 Emacs 19.26-19.28 have tangible hidden headers, which can be a bit
11360 confusing. 
11361
11362 @end itemize
11363
11364
11365 @node Contributors
11366 @subsection Contributors
11367 @cindex contributors
11368
11369 The new Gnus version couldn't have been done without the help of all the
11370 people on the (ding) mailing list.  Every day for over a year I have
11371 gotten billions of nice bug reports from them, filling me with joy,
11372 every single one of them.  Smooches.  The people on the list have been
11373 tried beyond endurance, what with my ``oh, that's a neat idea <type
11374 type>, yup, I'll release it right away <ship off> no wait, that doesn't
11375 work at all <type type>, yup, I'll ship that one off right away <ship
11376 off> no, wait, that absolutely does not work'' policy for releases.
11377 Micro$oft---bah.  Amateurs.  I'm @emph{much} worse.  (Or is that
11378 ``worser''? ``much worser''?  ``worsest''?)
11379
11380 I would like to take this opportunity to thank the Academy for...  oops,
11381 wrong show.
11382
11383 @itemize @bullet
11384
11385 @item Masanobu @sc{Umeda}
11386 The writer of the original @sc{gnus}.
11387
11388 @item Per Abrahamsen
11389 Custom, scoring, highlighting and @sc{soup} code (as well as numerous
11390 other things).
11391
11392 @item Luis Fernandes
11393 Design and graphics.
11394
11395 @item Wes Hardaker
11396 @file{gnus-picon.el} and the manual section on @dfn{picons}
11397 (@pxref{Picons}). 
11398
11399 @item Brad Miller
11400 @file{gnus-gl.el} and the GroupLens manual section (@pxref{GroupLens}). 
11401
11402 @item Sudish Joseph
11403 Innumerable bug fixes.
11404
11405 @item Ilja Weis
11406 @file{gnus-topic.el}.
11407
11408 @item Steven L. Baur
11409 Lots and lots of bugs detections and fixes.
11410
11411 @item Vladimir Alexiev
11412 The refcard and reference booklets.
11413
11414 @item Felix Lee & JWZ
11415 I stole some pieces from the XGnus distribution by Felix Lee and JWZ.
11416
11417 @item Scott Byer
11418 @file{nnfolder.el} enhancements & rewrite.
11419
11420 @item Peter Mutsaers
11421 Orphan article scoring code.
11422
11423 @item Ken Raeburn
11424 POP mail support.
11425
11426 @item Hallvard B Furuseth
11427 Various bits and pieces, especially dealing with .newsrc files.
11428
11429 @item Brian Edmonds
11430 @file{gnus-bbdb.el}.
11431
11432 @item Ricardo Nassif and Mark Borges
11433 Proof-reading.
11434
11435 @item Kevin Davidson
11436 Came up with the name @dfn{ding}, so blame him.
11437
11438 @end itemize
11439
11440 Peter Arius, Stainless Steel Rat, Ulrik Dickow, Jack Vinson, Daniel
11441 Quinlan, Frank D. Cringle, Geoffrey T. Dairiki, Fabrice Popineau and
11442 Andrew Eskilsson have all contributed code and suggestions.
11443
11444
11445 @node New Features
11446 @subsection New Features
11447 @cindex new features
11448
11449 @itemize @bullet
11450
11451 @item
11452 The look of all buffers can be changed by setting format-like variables
11453 (@pxref{Group Buffer Format} and @pxref{Summary Buffer Format}). 
11454  
11455 @item 
11456 Local spool and several @sc{nntp} servers can be used at once
11457 (@pxref{Select Methods}).  
11458
11459 @item 
11460 You can combine groups into virtual groups (@pxref{Virtual Groups}).
11461
11462 @item 
11463 You can read a number of different mail formats (@pxref{Getting Mail}).
11464 All the mail backends implement a convenient mail expiry scheme
11465 (@pxref{Expiring Mail}). 
11466
11467 @item
11468 Gnus can use various strategies for gathering threads that have lost
11469 their roots (thereby gathering loose sub-threads into one thread) or it
11470 can go back and retrieve enough headers to build a complete thread
11471 (@pxref{Customizing Threading}).
11472
11473 @item 
11474 Killed groups can be displayed in the group buffer, and you can read
11475 them as well (@pxref{Listing Groups}).
11476
11477 @item 
11478 Gnus can do partial group updates---you do not have to retrieve the
11479 entire active file just to check for new articles in a few groups
11480 (@pxref{The Active File}).
11481
11482 @item 
11483 Gnus implements a sliding scale of subscribedness to groups
11484 (@pxref{Group Levels}).
11485
11486 @item 
11487 You can score articles according to any number of criteria
11488 (@pxref{Scoring}).  You can even get Gnus to find out how to score
11489 articles for you (@pxref{Adaptive Scoring}).
11490
11491 @item 
11492 Gnus maintains a dribble buffer that is auto-saved the normal Emacs
11493 manner, so it should be difficult to lose much data on what you have
11494 read if your machine should go down (@pxref{Auto Save}). 
11495
11496 @item 
11497 Gnus now has its own startup file (@file{.gnus}) to avoid cluttering up
11498 the @file{.emacs} file.
11499
11500 @item 
11501 You can set the process mark on both groups and articles and perform
11502 operations on all the marked items (@pxref{Process/Prefix}).
11503
11504 @item 
11505 You can grep through a subset of groups and create a group from the
11506 results (@pxref{Kibozed Groups}). 
11507
11508 @item 
11509 You can list subsets of groups according to, well, anything
11510 (@pxref{Listing Groups}). 
11511
11512 @item 
11513 You can browse foreign servers and subscribe to groups from those
11514 servers (@pxref{Browse Foreign Server}). 
11515
11516 @item 
11517 Gnus can fetch articles asynchronously on a second connection to the
11518 server (@pxref{Asynchronous Fetching}).
11519
11520 @item 
11521 You can cache articles locally (@pxref{Article Caching}). 
11522
11523 @item 
11524 The uudecode functions have been expanded and generalized
11525 (@pxref{Decoding Articles}). 
11526
11527 @item
11528 You can still post uuencoded articles, which was a little-known feature
11529 of @sc{gnus}' past (@pxref{Uuencoding and Posting}). 
11530
11531 @item
11532 Fetching parents (and other articles) now actually works without
11533 glitches (@pxref{Finding the Parent}). 
11534
11535 @item
11536 Gnus can fetch FAQs and group descriptions (@pxref{Group Information}).
11537
11538 @item
11539 Digests (and other files) can be used as the basis for groups
11540 (@pxref{Document Groups}).
11541
11542 @item 
11543 Articles can be highlighted and customized (@pxref{Customizing
11544 Articles}). 
11545
11546 @item 
11547 URLs and other external references can be buttonized (@pxref{Article
11548 Buttons}). 
11549
11550 @item
11551 You can do lots of strange stuff with the Gnus window & frame
11552 configuration (@pxref{Windows Configuration}).
11553
11554 @item
11555 You can click on buttons instead of using the keyboard
11556 (@pxref{Buttons}). 
11557
11558 @item 
11559 Gnus can use NoCeM files to weed out spam (@pxref{NoCeM}). 
11560
11561 @end itemize
11562
11563 This is, of course, just a @emph{short} overview of the @emph{most}
11564 important new features.  No, really.  There are tons more.  Yes, we have
11565 feeping creaturism in full effect, but nothing too gratuitous, I would
11566 hope. 
11567
11568
11569 @node Newest Features
11570 @subsection Newest Features
11571 @cindex todo
11572
11573 Also known as the @dfn{todo list}.  Sure to be implemented before the
11574 next millennium. 
11575
11576 Be afraid.  Be very afraid.
11577
11578 @itemize @bullet
11579 @item
11580 Native @sc{mime} support is something that should be done.  
11581 @item
11582 A better and simpler method for specifying mail composing methods. 
11583 @item
11584 Allow posting through mail-to-news gateways.
11585 @item
11586 Really do unbinhexing.
11587 @end itemize
11588
11589 And much, much, much more.  There is more to come than has already been
11590 implemented.  (But that's always true, isn't it?)
11591
11592 @code{<URL:http://www.ifi.uio.no/~larsi/sgnus/todo>} is where the actual
11593 up-to-the-second todo list is located, so if you're really curious, you
11594 could point your Web browser over that-a-way.
11595
11596
11597 @node Censorship
11598 @subsection Censorship
11599 @cindex censorship
11600
11601 This version of the Gnus manual (as well as Gnus itself) has been
11602 censored in accord with the Communications Decency Act.  This law was
11603 described by its proponents as a ban on pornography---which was a
11604 deception, since it prohibits far more than that.  This manual did not
11605 contain pornography, but part of it was prohibited nonetheless.
11606
11607 For information on US government censorship of the Internet, and
11608 what you can do to bring back freedom of the press, see the web
11609 site @samp{http://www.vtw.org/}.
11610
11611
11612 @node Terminology
11613 @section Terminology
11614
11615 @cindex terminology
11616 @table @dfn
11617
11618 @item news
11619 @cindex news
11620 This is what you are supposed to use this thing for---reading news.
11621 News is generally fetched from a nearby @sc{nntp} server, and is
11622 generally publicly available to everybody.  If you post news, the entire
11623 world is likely to read just what you have written, and they'll all
11624 snigger mischievously.  Behind your back.
11625
11626 @item mail
11627 @cindex mail
11628 Everything that's delivered to you personally is mail.  Some news/mail
11629 readers (like Gnus) blur the distinction between mail and news, but
11630 there is a difference.  Mail is private.  News is public.  Mailing is
11631 not posting, and replying is not following up.
11632
11633 @item reply
11634 @cindex reply
11635 Send a mail to the person who has written what you are reading.
11636
11637 @item follow up
11638 @cindex follow up
11639 Post an article to the current newsgroup responding to the article you
11640 are reading.
11641
11642 @item backend
11643 @cindex backend
11644 Gnus gets fed articles from a number of backends, both news and mail
11645 backends.  Gnus does not handle the underlying media, so to speak---this
11646 is all done by the backends.
11647
11648 @item native
11649 @cindex native
11650 Gnus will always use one method (and backend) as the @dfn{native}, or
11651 default, way of getting news.
11652
11653 @item foreign
11654 @cindex foreign
11655 You can also have any number of foreign groups active at the same time.
11656 These are groups that use different backends for getting news.
11657
11658 @item secondary
11659 @cindex secondary
11660 Secondary backends are somewhere half-way between being native and being
11661 foreign, but they mostly act like they are native.
11662
11663 @item article
11664 @cindex article
11665 A nessage that has been posted as news.
11666
11667 @item mail message
11668 @cindex mail message
11669 A message that has been mailed.
11670
11671 @item message 
11672 @cindex message
11673 A mail message or news article
11674
11675 @item head
11676 @cindex head
11677 The top part of a message, where administrative information (etc.) is
11678 put.
11679
11680 @item body
11681 @cindex body
11682 The rest of an article.  Everything that is not in the head is in the
11683 body. 
11684
11685 @item header
11686 @cindex header
11687 A line from the head of an article. 
11688
11689 @item headers
11690 @cindex headers
11691 A collection of such lines, or a collection of heads.  Or even a
11692 collection of @sc{nov} lines.
11693
11694 @item @sc{nov}
11695 @cindex nov
11696 When Gnus enters a group, it asks the backend for the headers of all
11697 unread articles in the group.  Most servers support the News OverView
11698 format, which is more compact and much faster to read and parse than the
11699 normal @sc{head} format.
11700
11701 @item level
11702 @cindex levels
11703 Each group is subscribed at some @dfn{level} or other (1-9).  The ones
11704 that have a lower level are ``more'' subscribed than the groups with a
11705 higher level.  In fact, groups on levels 1-5 are considered
11706 @dfn{subscribed}; 6-7 are @dfn{unsubscribed}; 8 are @dfn{zombies}; and 9
11707 are @dfn{killed}.  Commands for listing groups and scanning for new
11708 articles will all use the numeric prefix as @dfn{working level}.
11709
11710 @item killed groups
11711 @cindex killed groups
11712 No information on killed groups is stored or updated, which makes killed
11713 groups much easier to handle than subscribed groups.
11714
11715 @item zombie groups
11716 @cindex zombie groups
11717 Just like killed groups, only slightly less dead.
11718
11719 @item active file
11720 @cindex active file
11721 The news server has to keep track of what articles it carries, and what
11722 groups exist.  All this information in stored in the active file, which
11723 is rather large, as you might surmise.
11724
11725 @item bogus groups
11726 @cindex bogus groups
11727 A group that exists in the @file{.newsrc} file, but isn't known to the
11728 server (i. e.,  it isn't in the active file), is a @emph{bogus group}.
11729 This means that the group probably doesn't exist (any more).
11730
11731 @item server 
11732 @cindex server
11733 A machine than one can connect to and get news (or mail) from.
11734
11735 @item select method
11736 @cindex select method
11737 A structure that specifies the backend, the server and the virtual
11738 server parameters.
11739
11740 @item virtual server
11741 @cindex virtual server
11742 A named select method.  Since a select methods defines all there is to
11743 know about connecting to a (physical) server, taking the who things as a
11744 whole is a virtual server.
11745
11746 @end table
11747
11748
11749 @node Customization
11750 @section Customization
11751 @cindex general customization
11752
11753 All variables are properly documented elsewhere in this manual.  This
11754 section is designed to give general pointers on how to customize Gnus
11755 for some quite common situations.
11756
11757 @menu
11758 * Slow/Expensive Connection:: You run a local Emacs and get the news elsewhere.
11759 * Slow Terminal Connection::  You run a remote Emacs.
11760 * Little Disk Space::         You feel that having large setup files is icky.
11761 * Slow Machine::              You feel like buying a faster machine.
11762 @end menu
11763
11764
11765 @node Slow/Expensive Connection
11766 @subsection Slow/Expensive @sc{nntp} Connection
11767
11768 If you run Emacs on a machine locally, and get your news from a machine
11769 over some very thin strings, you want to cut down on the amount of data
11770 Gnus has to get from the @sc{nntp} server.
11771
11772 @table @code
11773
11774 @item gnus-read-active-file
11775 Set this to @code{nil}, which will inhibit Gnus from requesting the
11776 entire active file from the server.  This file is often v.  large.  You
11777 also have to set @code{gnus-check-new-news} and
11778 @code{gnus-check-bogus-newsgroups} to @code{nil} to make sure that Gnus
11779 doesn't suddenly decide to fetch the active file anyway.
11780
11781 @item gnus-nov-is-evil
11782 This one has to be @code{nil}.  If not, grabbing article headers from
11783 the @sc{nntp} server will not be very fast.  Not all @sc{nntp} servers
11784 support @sc{xover}; Gnus will detect this by itself.
11785 @end table
11786
11787
11788 @node Slow Terminal Connection
11789 @subsection Slow Terminal Connection
11790
11791 Let's say you use your home computer for dialing up the system that
11792 runs Emacs and Gnus.  If your modem is slow, you want to reduce the
11793 amount of data that is sent over the wires as much as possible.
11794
11795 @table @code
11796
11797 @item gnus-auto-center-summary
11798 Set this to @code{nil} to inhibit Gnus from re-centering the summary
11799 buffer all the time.  If it is @code{vertical}, do only vertical
11800 re-centering.  If it is neither @code{nil} nor @code{vertical}, do both
11801 horizontal and vertical recentering.
11802
11803 @item gnus-visible-headers
11804 Cut down on the headers that are included in the articles to the
11805 minimum.  You can, in fact, make do without them altogether---most of the
11806 useful data is in the summary buffer, anyway.  Set this variable to
11807 @samp{^NEVVVVER} or @samp{From:}, or whatever you feel you need.
11808
11809 @item gnus-article-display-hook
11810 Set this hook to all the available hiding commands:
11811 @lisp
11812 (setq gnus-article-display-hook 
11813       '(gnus-article-hide-headers gnus-article-hide-signature
11814         gnus-article-hide-citation))
11815 @end lisp
11816
11817 @item gnus-use-full-window
11818 By setting this to @code{nil}, you can make all the windows smaller.
11819 While this doesn't really cut down much generally, it means that you
11820 have to see smaller portions of articles before deciding that you didn't
11821 want to read them anyway.
11822
11823 @item gnus-thread-hide-subtree
11824 If this is non-@code{nil}, all threads in the summary buffer will be
11825 hidden initially.
11826
11827 @item gnus-updated-mode-lines
11828 If this is @code{nil}, Gnus will not put information in the buffer mode
11829 lines, which might save some time.
11830 @end table
11831
11832
11833 @node Little Disk Space
11834 @subsection Little Disk Space
11835 @cindex disk space
11836
11837 The startup files can get rather large, so you may want to cut their
11838 sizes a bit if you are running out of space.
11839
11840 @table @code
11841
11842 @item gnus-save-newsrc-file
11843 If this is @code{nil}, Gnus will never save @file{.newsrc}---it will
11844 only save @file{.newsrc.eld}.  This means that you will not be able to
11845 use any other newsreaders than Gnus.  This variable is @code{t} by
11846 default. 
11847
11848 @item gnus-save-killed-list
11849 If this is @code{nil}, Gnus will not save the list of dead groups.  You
11850 should also set @code{gnus-check-new-newsgroups} to @code{ask-server}
11851 and @code{gnus-check-bogus-newsgroups} to @code{nil} if you set this
11852 variable to @code{nil}.  This variable is @code{t} by default.
11853
11854 @end table
11855
11856
11857 @node Slow Machine
11858 @subsection Slow Machine
11859 @cindex slow machine
11860
11861 If you have a slow machine, or are just really impatient, there are a
11862 few things you can do to make Gnus run faster.
11863
11864 Set@code{gnus-check-new-newsgroups} and
11865 @code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
11866
11867 Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
11868 @code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
11869 summary buffer faster.
11870
11871 Set @code{gnus-article-display-hook} to @code{nil} to make article
11872 processing a bit faster.
11873
11874
11875 @node Troubleshooting
11876 @section Troubleshooting
11877 @cindex troubleshooting
11878
11879 Gnus works @emph{so} well straight out of the box---I can't imagine any
11880 problems, really.
11881
11882 Ahem.
11883
11884 @enumerate
11885
11886 @item
11887 Make sure your computer is switched on.
11888
11889 @item
11890 Make sure that you really load the current Gnus version.  If you have
11891 been running @sc{gnus}, you need to exit Emacs and start it up again before
11892 Gnus will work.
11893
11894 @item
11895 Try doing an @kbd{M-x gnus-version}.  If you get something that looks
11896 like @samp{Gnus v5.46; nntp 4.0} you have the right files loaded.  If,
11897 on the other hand, you get something like @samp{NNTP 3.x} or @samp{nntp
11898 flee}, you have some old @file{.el} files lying around.  Delete these.
11899
11900 @item
11901 Read the help group (@kbd{G h} in the group buffer) for a FAQ and a
11902 how-to. 
11903 @end enumerate
11904
11905 If all else fails, report the problem as a bug.
11906
11907 @cindex bugs
11908 @cindex reporting bugs
11909
11910 @kindex M-x gnus-bug
11911 @findex gnus-bug
11912 If you find a bug in Gnus, you can report it with the @kbd{M-x gnus-bug}
11913 command. @kbd{M-x set-variable RET debug-on-error RET t RET}, and send
11914 me the backtrace.  I will fix bugs, but I can only fix them if you send
11915 me a precise description as to how to reproduce the bug.
11916
11917 You really can never be too detailed in a bug report.  Always use the
11918 @kbd{M-x gnus-bug} command when you make bug reports, even if it creates
11919 a 10Kb mail each time you use it, and even if you have sent me your
11920 environment 500 times before.  I don't care.  I want the full info each
11921 time.  
11922
11923 It is also important to remember that I have no memory whatsoever.  If
11924 you send a bug report, and I send you a reply, and then you send back
11925 just ``No, it's not! Moron!'', I will have no idea what you are
11926 insulting me about.  Always over-explain everything.  It's much easier
11927 for all of us---if I don't have all the information I need, I will just
11928 mail you and ask for more info, and everything takes more time.
11929
11930 If the problem you're seeing is very visual, and you can't quite explain
11931 it, copy the Emacs window to a file (with @code{xwd}, for instance), put
11932 it somewhere it can be reached, and include the URL of the picture in
11933 the bug report.a
11934
11935 If you just need help, you are better off asking on
11936 @samp{gnu.emacs.gnus}.  I'm not very helpful.
11937
11938 @cindex gnu.emacs.gnus
11939 @cindex ding mailing list
11940 You can also ask on the ding mailing list---@samp{ding@@ifi.uio.no}.
11941 Write to @samp{ding-request@@ifi.uio.no} to subscribe.
11942
11943
11944 @node A Programmers Guide to Gnus
11945 @section A Programmer's Guide to Gnus
11946
11947 It is my hope that other people will figure out smart stuff that Gnus
11948 can do, and that other people will write those smart things as well.  To
11949 facilitate that I thought it would be a good idea to describe the inner
11950 workings of Gnus.  And some of the not-so-inner workings, while I'm at
11951 it.
11952
11953 You can never expect the internals of a program not to change, but I
11954 will be defining (in some details) the interface between Gnus and its
11955 backends (this is written in stone), the format of the score files
11956 (ditto), data structures (some are less likely to change than others)
11957 and general method of operations.
11958
11959 @menu 
11960 * Backend Interface::        How Gnus communicates with the servers.
11961 * Score File Syntax::        A BNF definition of the score file standard.
11962 * Headers::                  How Gnus stores headers internally.
11963 * Ranges::                   A handy format for storing mucho numbers.
11964 * Group Info::               The group info format.
11965 * Various File Formats::     Formats of files that Gnus use.
11966 @end menu
11967
11968
11969 @node Backend Interface
11970 @subsection Backend Interface
11971
11972 Gnus doesn't know anything about @sc{nntp}, spools, mail or virtual
11973 groups.  It only knows how to talk to @dfn{virtual servers}.  A virtual
11974 server is a @dfn{backend} and some @dfn{backend variables}.  As examples
11975 of the first, we have @code{nntp}, @code{nnspool} and @code{nnmbox}.  As
11976 examples of the latter we have @code{nntp-port-number} and
11977 @code{nnmbox-directory}.
11978
11979 When Gnus asks for information from a backend---say @code{nntp}---on
11980 something, it will normally include a virtual server name in the
11981 function parameters.  (If not, the backend should use the ``current''
11982 virtual server.)  For instance, @code{nntp-request-list} takes a virtual
11983 server as its only (optional) parameter.  If this virtual server hasn't
11984 been opened, the function should fail.
11985
11986 Note that a virtual server name has no relation to some physical server
11987 name.  Take this example:
11988
11989 @lisp
11990 (nntp "odd-one" 
11991       (nntp-address "ifi.uio.no") 
11992       (nntp-port-number 4324))
11993 @end lisp
11994
11995 Here the virtual server name is @samp{odd-one} while the name of
11996 the physical server is @samp{ifi.uio.no}. 
11997
11998 The backends should be able to switch between several virtual servers.
11999 The standard backends implement this by keeping an alist of virtual
12000 server environments that it pulls down/pushes up when needed.  
12001
12002 There are two groups of interface functions: @dfn{required functions},
12003 which must be present, and @dfn{optional functions}, which Gnus will
12004 always check whether are present before attempting to call.
12005
12006 All these functions are expected to return data in the buffer
12007 @code{nntp-server-buffer} (@samp{ *nntpd*}), which is somewhat
12008 unfortunately named, but we'll have to live with it.  When I talk about
12009 ``resulting data'', I always refer to the data in that buffer.  When I
12010 talk about ``return value'', I talk about the function value returned by
12011 the function call.
12012
12013 Some backends could be said to be @dfn{server-forming} backends, and
12014 some might be said to not be.  The latter are backends that generally
12015 only operate on one group at a time, and have no concept of ``server''
12016 -- they have a group, and they deliver info on that group and nothing
12017 more.
12018
12019 In the examples and definitions I will refer to the imaginary backend
12020 @code{nnchoke}. 
12021
12022 @cindex @code{nnchoke}
12023
12024 @menu
12025 * Required Backend Functions::        Functions that must be implemented.
12026 * Optional Backend Functions::        Functions that need not be implemented.
12027 * Writing New Backends::              Extending old backends.
12028 @end menu
12029
12030
12031 @node Required Backend Functions
12032 @subsubsection Required Backend Functions
12033
12034 @table @code
12035
12036 @item (nnchoke-retrieve-headers ARTICLES &optional GROUP SERVER FETCH-OLD)
12037
12038 @var{articles} is either a range of article numbers or a list of
12039 @code{Message-ID}s.  Current backends do not fully support either---only
12040 sequences (lists) of article numbers, and most backends do not support
12041 retrieval of @code{Message-ID}s.  But they should try for both. 
12042
12043 The result data should either be HEADs or NOV lines, and the result
12044 value should either be @code{headers} or @code{nov} to reflect this.
12045 This might later be expanded to @code{various}, which will be a mixture
12046 of HEADs and NOV lines, but this is currently not supported by Gnus.  
12047
12048 If @var{fetch-old} is non-@code{nil} it says to try to fetch "extra
12049 headers, in some meaning of the word.  This is generally done by
12050 fetching (at most) @var{fetch-old} extra headers less than the smallest
12051 article number in @code{articles}, and fill in the gaps as well.  The
12052 presence of this parameter can be ignored if the backend finds it
12053 cumbersome to follow the request.  If this is non-@code{nil} and not a
12054 number, do maximum fetches.
12055
12056 Here's an example HEAD:
12057
12058 @example
12059 221 1056 Article retrieved.
12060 Path: ifi.uio.no!sturles
12061 From: sturles@@ifi.uio.no (Sturle Sunde)
12062 Newsgroups: ifi.discussion
12063 Subject: Re: Something very droll
12064 Date: 27 Oct 1994 14:02:57 +0100
12065 Organization: Dept. of Informatics, University of Oslo, Norway
12066 Lines: 26
12067 Message-ID: <38o8e1$a0o@@holmenkollen.ifi.uio.no>
12068 References: <38jdmq$4qu@@visbur.ifi.uio.no>
12069 NNTP-Posting-Host: holmenkollen.ifi.uio.no
12070 .
12071 @end example
12072
12073 So a @code{headers} return value would imply that there's a number of
12074 these in the data buffer.
12075
12076 Here's a BNF definition of such a buffer:
12077
12078 @example
12079 headers        = *head
12080 head           = error / valid-head
12081 error-message  = [ "4" / "5" ] 2number " " <error message> eol
12082 valid-head     = valid-message *header "." eol
12083 valid-message  = "221 " <number> " Article retrieved." eol
12084 header         = <text> eol
12085 @end example
12086
12087 If the return value is @code{nov}, the data buffer should contain
12088 @dfn{network overview database} lines.  These are basically fields
12089 separated by tabs. 
12090
12091 @example
12092 nov-buffer = *nov-line
12093 nov-line   = 8*9 [ field <TAB> ] eol
12094 field      = <text except TAB>
12095 @end example
12096
12097 For a closer explanation what should be in those fields,
12098 @pxref{Headers}. 
12099
12100
12101 @item (nnchoke-open-server SERVER &optional DEFINITIONS)
12102
12103 @var{server} is here the virtual server name.  @var{definitions} is a
12104 list of @code{(VARIABLE VALUE)} pairs that defines this virtual server. 
12105
12106 If the server can't be opened, no error should be signaled.  The backend
12107 may then choose to refuse further attempts at connecting to this
12108 server.  In fact, it should do so. 
12109
12110 If the server is opened already, this function should return a
12111 non-@code{nil} value.  There should be no data returned.
12112
12113
12114 @item (nnchoke-close-server &optional SERVER)
12115
12116 Close connection to @var{server} and free all resources connected
12117 to it.  Return @code{nil} if the server couldn't be closed for some
12118 reason.
12119
12120 There should be no data returned.
12121
12122
12123 @item (nnchoke-request-close)
12124
12125 Close connection to all servers and free all resources that the backend
12126 have reserved.  All buffers that have been created by that backend
12127 should be killed.  (Not the @code{nntp-server-buffer}, though.)  This
12128 function is generally only called when Gnus is shutting down.
12129
12130 There should be no data returned. 
12131
12132
12133 @item (nnchoke-server-opened &optional SERVER)
12134
12135 If @var{server} is the current virtual server, and the connection to the
12136 physical server is alive, then this function should return a
12137 non-@code{nil} vlue.  This function should under no circumstances
12138 attempt to reconnect to a server that is has lost connection to.
12139
12140 There should be no data returned.
12141
12142
12143 @item (nnchoke-status-message &optional SERVER)
12144
12145 This function should return the last error message from @var{server}. 
12146
12147 There should be no data returned.
12148
12149
12150 @item (nnchoke-request-article ARTICLE &optional GROUP SERVER TO-BUFFER)
12151
12152 The result data from this function should be the article specified by
12153 @var{article}.  This might either be a @code{Message-ID} or a number.
12154 It is optional whether to implement retrieval by @code{Message-ID}, but
12155 it would be nice if that were possible.
12156
12157 If @var{to-buffer} is non-@code{nil}, the result data should be returned
12158 in this buffer instead of the normal data buffer.  This is to make it
12159 possible to avoid copying large amounts of data from one buffer to
12160 another, and Gnus mainly request articles to be inserted directly into
12161 its article buffer.
12162
12163 If it is at all possible, this function should return a cons cell where
12164 the car is the group name the article was fetched from, and the cdr is
12165 the article number.  This will enable Gnus to find out what the real
12166 group and article numbers are when fetching articles by
12167 @code{Message-ID}.  If this isn't possible, @code{t} should be returned
12168 on successful article retrievement.
12169
12170
12171 @item (nnchoke-open-group GROUP &optional SERVER)
12172
12173 Make @var{group} the current group.  
12174
12175 There should be no data returned by this function.
12176
12177
12178 @item (nnchoke-request-group GROUP &optional SERVER)
12179
12180 Get data on @var{group}.  This function also has the side effect of
12181 making @var{group} the current group. 
12182
12183 Here's an example of some result data and a definition of the same:
12184
12185 @example
12186 211 56 1000 1059 ifi.discussion
12187 @end example
12188
12189 The first number is the status, which should be @code{211}.  Next is the
12190 total number of articles in the group, the lowest article number, the
12191 highest article number, and finally the group name.  Note that the total
12192 number of articles may be less than one might think while just
12193 considering the highest and lowest article numbers, but some articles
12194 may have been canceled.  Gnus just discards the total-number, so
12195 whether one should take the bother to generate it properly (if that is a
12196 problem) is left as an exercise to the reader.
12197
12198 @example
12199 group-status = [ error / info ] eol
12200 error        = [ "4" / "5" ] 2<number> " " <Error message>
12201 info         = "211 " 3* [ <number> " " ] <string>
12202 @end example
12203
12204
12205 @item (nnchoke-close-group GROUP &optional SERVER)
12206
12207 Close @var{group} and free any resources connected to it.  This will be
12208 a no-op on most backends. 
12209
12210 There should be no data returned.
12211
12212
12213 @item (nnchoke-request-list &optional SERVER)
12214
12215 Return a list of all groups available on @var{server}.  And that means
12216 @emph{all}. 
12217
12218 Here's an example from a server that only carries two groups:
12219
12220 @example
12221 ifi.test 0000002200 0000002000 y
12222 ifi.discussion 3324 3300 n
12223 @end example
12224
12225 On each line we have a group name, then the highest article number in
12226 that group, the lowest article number, and finally a flag.
12227
12228 @example
12229 active-file = *active-line
12230 active-line = name " " <number> " " <number> " " flags eol
12231 name        = <string>
12232 flags       = "n" / "y" / "m" / "x" / "j" / "=" name
12233 @end example
12234
12235 The flag says whether the group is read-only (@samp{n}), is moderated
12236 (@samp{m}), is dead (@samp{x}), is aliased to some other group
12237 (@samp{=other-group} or none of the above (@samp{y}). 
12238
12239
12240 @item (nnchoke-request-post &optional SERVER)
12241
12242 This function should post the current buffer.  It might return whether
12243 the posting was successful or not, but that's not required.  If, for
12244 instance, the posting is done asynchronously, it has generally not been
12245 completed by the time this function concludes.  In that case, this
12246 function should set up some kind of sentinel to beep the user loud and
12247 clear if the posting could not be completed.
12248
12249 There should be no result data from this function. 
12250
12251 @end table
12252
12253
12254 @node Optional Backend Functions
12255 @subsubsection Optional Backend Functions
12256
12257 @table @code
12258
12259 @item (nnchoke-retrieve-groups GROUPS &optional SERVER)
12260
12261 @var{groups} is a list of groups, and this function should request data
12262 on all those groups.  How it does it is of no concern to Gnus, but it
12263 should attempt to do this in a speedy fashion.
12264
12265 The return value of this function can be either @code{active} or
12266 @code{group}, which says what the format of the result data is.  The
12267 former is in the same format as the data from
12268 @code{nnchoke-request-list}, while the latter is a buffer full of lines
12269 in the same format as @code{nnchoke-request-group} gives.
12270
12271 @example
12272 group-buffer = *active-line / *group-status
12273 @end example
12274
12275
12276 @item (nnchoke-request-update-info GROUP INFO &optional SERVER)
12277
12278 A Gnus group info (@pxref{Group Info}) is handed to the backend for
12279 alterations.  This comes in handy if the backend really carries all the
12280 information (as is the case with virtual an imap groups).  This function
12281 may alter the info in any manner it sees fit, and should return the
12282 (altered) group info.  This function may alter the group info
12283 destructively, so no copying is needed before boogeying. 
12284
12285 There should be no result data from this function.
12286
12287
12288 @item (nnchoke-request-type GROUP &optional ARTICLE)
12289
12290 When the user issues commands for ``sending news'' (@kbd{F} in the
12291 summary buffer, for instance), Gnus has to know whether the article the
12292 user is following up is news or mail.  This function should return
12293 @code{news} if @var{article} in @var{group} is news, @code{mail} if it
12294 is mail and @code{unknown} if the type can't be decided.  (The
12295 @var{article} parameter is necessary in @code{nnvirtual} groups which
12296 might very well combine mail groups and news groups.)
12297
12298 There should be no result data from this function.
12299
12300
12301 @item (nnchoke-request-update-mark GROUP ARTICLE MARK)
12302
12303 If the user tries to set a mark that the backend doesn't like, this
12304 function may change the mark.  Gnus will use whatever this function
12305 returns as the mark for @var{article} instead of the original
12306 @var{mark}.  If the backend doesn't care, it must return the original
12307 @var{mark}, and not @code{nil} or any other type of garbage.  
12308
12309 The only use for this that I can see is what @code{nnvirtual} does with
12310 it---if a component group is auto-expirable, marking an article as read
12311 in the virtual group should result in the article being marked as
12312 expirable. 
12313
12314 There should be no result data from this function.
12315
12316
12317 @item (nnchoke-request-scan &optional GROUP SERVER)
12318
12319 This function may be called at any time (by Gnus or anything else) to
12320 request that the backend check for incoming articles, in one way or
12321 another.  A mail backend will typically read the spool file or query the
12322 POP server when this function is invoked.  The @var{group} doesn't have
12323 to be heeded---if the backend decides that it is too much work just
12324 scanning for a single group, it may do a total scan of all groups.  It
12325 would be nice, however, to keep things local if that's practical.
12326
12327 There should be no result data from this function.
12328
12329
12330 @item (nnchoke-request-asynchronous GROUP &optional SERVER ARTICLES)
12331
12332 This is a request to fetch articles asynchronously later.
12333 @var{articles} is an alist of @var{(article-number line-number)}.  One
12334 would generally expect that if one later fetches article number 4, for
12335 instance, some sort of asynchronous fetching of the articles after 4
12336 (which might be 5, 6, 7 or 11, 3, 909 depending on the order in that
12337 alist) would be fetched asynchronously, but that is left up to the
12338 backend.  Gnus doesn't care.
12339
12340 There should be no result data from this function.
12341  
12342
12343 @item (nnchoke-request-group-description GROUP &optional SERVER)
12344
12345 The result data from this function should be a description of
12346 @var{group}. 
12347
12348 @example
12349 description-line = name <TAB> description eol
12350 name             = <string>
12351 description      = <text>
12352 @end example
12353
12354 @item (nnchoke-request-list-newsgroups &optional SERVER)
12355
12356 The result data from this function should be the description of all
12357 groups available on the server.
12358
12359 @example
12360 description-buffer = *description-line
12361 @end example
12362
12363
12364 @item (nnchoke-request-newgroups DATE &optional SERVER)
12365
12366 The result data from this function should be all groups that were
12367 created after @samp{date}, which is in normal human-readable date
12368 format.  The data should be in the active buffer format.
12369
12370
12371 @item (nnchoke-request-create-group GROUP &optional SERVER)
12372
12373 This function should create an empty group with name @var{group}.  
12374
12375 There should be no return data.
12376
12377
12378 @item (nnchoke-request-expire-articles ARTICLES &optional GROUP SERVER FORCE)
12379
12380 This function should run the expiry process on all articles in the
12381 @var{articles} range (which is currently a simple list of article
12382 numbers.)  It is left up to the backend to decide how old articles
12383 should be before they are removed by this function.  If @var{force} is
12384 non-@code{nil}, all @var{articles} should be deleted, no matter how new
12385 they are. 
12386
12387 This function should return a list of articles that it did not/was not
12388 able to delete.
12389
12390 There should be no result data returned.
12391
12392
12393 @item (nnchoke-request-move-article ARTICLE GROUP SERVER ACCEPT-FORM
12394 &optional LAST)
12395
12396 This function should move @var{article} (which is a number) from
12397 @var{group} by calling @var{accept-form}.  
12398
12399 This function should ready the article in question for moving by
12400 removing any header lines it has added to the article, and generally
12401 should ``tidy up'' the article.  Then it should @code{eval}
12402 @var{accept-form} in the buffer where the ``tidy'' article is.  This
12403 will do the actual copying.  If this @code{eval} returns a
12404 non-@code{nil} value, the article should be removed.
12405
12406 If @var{last} is @code{nil}, that means that there is a high likelihood
12407 that there will be more requests issued shortly, so that allows some
12408 optimizations. 
12409
12410 The function should return a cons where the car is the group name and
12411 the cdr is the article number that the article was entered as.
12412
12413 There should be no data returned. 
12414
12415
12416 @item (nnchoke-request-accept-article GROUP &optional SERVER LAST)
12417
12418 This function takes the current buffer and inserts it into @var{group}.
12419 If @var{last} in @code{nil}, that means that there will be more calls to
12420 this function in short order.
12421
12422 The function should return a cons where the car is the group name and
12423 the cdr is the article number that the article was entered as.
12424
12425 There should be no data returned.
12426
12427
12428 @item (nnchoke-request-replace-article ARTICLE GROUP BUFFER)
12429
12430 This function should remove @var{article} (which is a number) from
12431 @var{group} and insert @var{buffer} there instead.
12432
12433 There should be no data returned.
12434
12435
12436 @item (nnchoke-request-delete-group GROUP FORCE &optional SERVER)
12437
12438 This function should delete @var{group}.  If @var{force}, it should
12439 really delete all the articles in the group, and then delete the group
12440 itself.  (If there is such a thing as ``the group itself''.)
12441
12442 There should be no data returned.
12443
12444
12445 @item (nnchoke-request-rename-group GROUP NEW-NAME &optional SERVER)
12446
12447 This function should rename @var{group} into @var{new-name}.  All
12448 articles that are in @var{group} should move to @var{new-name}.
12449
12450 There should be no data returned.
12451
12452 @end table
12453
12454
12455 @node Writing New Backends
12456 @subsubsection Writing New Backends
12457
12458 The various backends share many similarities.  @code{nnml} is just like
12459 @code{nnspool}, but it allows you to edit the articles on the server.
12460 @code{nnmh} is just like @code{nnml}, but it doesn't use an active file,
12461 and it doesn't maintain overview databases.  @code{nndir} is just like
12462 @code{nnml}, but it has no concept of ``groups'', and it doesn't allow
12463 editing articles.
12464
12465 It would make sense if it were possible to ``inherit'' functions from
12466 backends when writing new backends.  And, indeed, you can do that if you
12467 want to.  (You don't have to if you don't want to, of course.)  
12468
12469 All the backends declare their public variables and functions by using a
12470 package called @code{nnoo}.  
12471
12472 To inherit functions from other backends (and allow other backends to
12473 inherit functions from the current backend), you should use the
12474 following macros:
12475 following. 
12476
12477 @table @code
12478
12479 @item nnoo-declare
12480 This macro declares the first parameter to be a child of the subsequent
12481 parameters.  For instance:
12482
12483 @lisp
12484 (nnoo-declare nndir
12485   nnml nnmh)
12486 @end lisp
12487
12488 @code{nndir} has here declared that it intends to inherit functions from
12489 both @code{nnml} and @code{nnmh}.
12490
12491 @item defvoo
12492 This macro is equivalent to @code{defvar}, but registers the variable as
12493 a public server variable.  Most state-oriented variables should be
12494 declared with @code{defvoo} instead of @code{defvar}.  
12495
12496 In addition to the normal @code{defvar} parameters, it takes a list of
12497 variables in the parent backends to map the variable to when executing
12498 a function in those backends.
12499
12500 @lisp
12501 (defvoo nndir-directory nil
12502   "Where nndir will look for groups."
12503   nnml-current-directory nnmh-current-directory)
12504 @end lisp
12505
12506 This means that @code{nnml-current-directory} will be set to
12507 @code{nndir-directory} when an @code{nnml} function is called on behalf
12508 of @code{nndir}.  (The same with @code{nnmh}.)  
12509
12510 @item nnoo-define-basics
12511 This macro defines some common functions that almost all backends should
12512 have.
12513
12514 @example
12515 (nnoo-define-basics nndir)
12516 @end example
12517
12518 @item deffoo
12519 This macro is just like @code{defun} and takes the same parameters.  In
12520 addition to doing the normal @code{defun} things, it registers the
12521 function as being public so that other backends can inherit it.
12522
12523 @item nnoo-map-functions
12524 This macro allows mapping of functions from the current backend to
12525 functions from the parent backends.
12526
12527 @example
12528 (nnoo-map-functions nndir
12529   (nnml-retrieve-headers 0 nndir-current-group 0 0)
12530   (nnmh-request-article 0 nndir-current-group 0 0))
12531 @end example
12532
12533 This means that when @code{nndir-retrieve-headers} is called, the first,
12534 third, and fourth parameters will be passed on to
12535 @code{nnml-retrieve-headers}, while the second parameter is set to the
12536 value of @code{nndir-current-group}.
12537
12538 @item nnoo-import
12539 This macro allows importing functions from backends.  It should be the
12540 last thing in the source file, since it will only define functions that
12541 haven't already been defined.
12542
12543 @example
12544 (nnoo-import nndir
12545   (nnmh
12546    nnmh-request-list
12547    nnmh-request-newgroups)
12548   (nnml))
12549 @end example
12550
12551 This means that calls to @code{nndir-request-list} should just be passed
12552 on to @code{nnmh-request-list}, while all public functions from
12553 @code{nnml} that haven't been defined in @code{nndir} yet should be
12554 defined now.
12555
12556 @end table
12557
12558 Below is a slightly shortened version of the @code{nndir} backend.
12559
12560 @lisp
12561 ;;; nndir.el --- single directory newsgroup access for Gnus
12562 ;; Copyright (C) 1995,96 Free Software Foundation, Inc.
12563
12564 ;;; Code:
12565
12566 (require 'nnheader)
12567 (require 'nnmh)
12568 (require 'nnml)
12569 (require 'nnoo)
12570 (eval-when-compile (require 'cl))
12571
12572 (nnoo-declare nndir
12573   nnml nnmh)
12574
12575 (defvoo nndir-directory nil
12576   "Where nndir will look for groups."
12577   nnml-current-directory nnmh-current-directory)
12578
12579 (defvoo nndir-nov-is-evil nil
12580   "*Non-nil means that nndir will never retrieve NOV headers."
12581   nnml-nov-is-evil)
12582
12583 (defvoo nndir-current-group "" nil nnml-current-group nnmh-current-group)
12584 (defvoo nndir-top-directory nil nil nnml-directory nnmh-directory)
12585 (defvoo nndir-get-new-mail nil nil nnml-get-new-mail nnmh-get-new-mail)
12586
12587 (defvoo nndir-status-string "" nil nnmh-status-string)
12588 (defconst nndir-version "nndir 1.0")
12589
12590 ;;; Interface functions.
12591
12592 (nnoo-define-basics nndir)
12593
12594 (deffoo nndir-open-server (server &optional defs)
12595   (setq nndir-directory
12596         (or (cadr (assq 'nndir-directory defs))
12597             server))
12598   (unless (assq 'nndir-directory defs)
12599     (push `(nndir-directory ,server) defs))
12600   (push `(nndir-current-group
12601           ,(file-name-nondirectory (directory-file-name nndir-directory)))
12602         defs)
12603   (push `(nndir-top-directory
12604           ,(file-name-directory (directory-file-name nndir-directory)))
12605         defs)
12606   (nnoo-change-server 'nndir server defs))
12607
12608 (nnoo-map-functions nndir
12609   (nnml-retrieve-headers 0 nndir-current-group 0 0)
12610   (nnmh-request-article 0 nndir-current-group 0 0)
12611   (nnmh-request-group nndir-current-group 0 0)
12612   (nnmh-close-group nndir-current-group 0))
12613
12614 (nnoo-import nndir
12615   (nnmh
12616    nnmh-status-message
12617    nnmh-request-list
12618    nnmh-request-newgroups))
12619
12620 (provide 'nndir)
12621 @end lisp
12622
12623
12624
12625 @node Score File Syntax
12626 @subsection Score File Syntax
12627
12628 Score files are meant to be easily parsable, but yet extremely
12629 mallable.   It was decided that something that had the same read syntax
12630 as an Emacs Lisp list would fit that spec.
12631
12632 Here's a typical score file:
12633
12634 @lisp
12635 (("summary"
12636   ("win95" -10000 nil s)
12637   ("Gnus"))
12638  ("from"
12639   ("Lars" -1000))
12640  (mark -100))
12641 @end lisp
12642
12643 BNF definition of a score file:
12644
12645 @example
12646 score-file       = "" / "(" *element ")"
12647 element          = rule / atom
12648 rule             = string-rule / number-rule / date-rule
12649 string-rule      = "(" quote string-header quote space *string-match ")"
12650 number-rule      = "(" quote number-header quote space *number-match ")"
12651 date-rule        = "(" quote date-header quote space *date-match ")"
12652 quote            = <ascii 34>
12653 string-header    = "subject" / "from" / "references" / "message-id" / 
12654                    "xref" / "body" / "head" / "all" / "followup"
12655 number-header    = "lines" / "chars"
12656 date-header      = "date"
12657 string-match     = "(" quote <string> quote [ "" / [ space score [ "" / 
12658                    space date [ "" / [ space string-match-t ] ] ] ] ] ")"
12659 score            = "nil" / <integer>
12660 date             = "nil" / <natural number>
12661 string-match-t   = "nil" / "s" / "substring" / "S" / "Substring" / 
12662                    "r" / "regex" / "R" / "Regex" /
12663                    "e" / "exact" / "E" / "Exact" /
12664                    "f" / "fuzzy" / "F" / "Fuzzy"
12665 number-match     = "(" <integer> [ "" / [ space score [ "" / 
12666                    space date [ "" / [ space number-match-t ] ] ] ] ] ")"
12667 number-match-t   = "nil" / "=" / "<" / ">" / ">=" / "<="
12668 date-match       = "(" quote <string> quote [ "" / [ space score [ "" / 
12669                    space date [ "" / [ space date-match-t ] ] ] ] ")"
12670 date-match-t     = "nil" / "at" / "before" / "after"
12671 atom             = "(" [ required-atom / optional-atom ] ")"
12672 required-atom    = mark / expunge / mark-and-expunge / files /
12673                    exclude-files / read-only / touched
12674 optional-atom    = adapt / local / eval 
12675 mark             = "mark" space nil-or-number
12676 nil-or-number    = "nil" / <integer>
12677 expunge          = "expunge" space nil-or-number
12678 mark-and-expunge = "mark-and-expunge" space nil-or-number
12679 files            = "files" *[ space <string> ]
12680 exclude-files    = "exclude-files" *[ space <string> ]
12681 read-only        = "read-only" [ space "nil" / space "t" ]
12682 adapt            = "adapt" [ space "nil" / space "t" / space adapt-rule ]
12683 adapt-rule       = "(" *[ <string> *[ "(" <string> <integer> ")" ] ")"
12684 local            = "local" *[ space "(" <string> space <form> ")" ]
12685 eval             = "eval" space <form>
12686 space            = *[ " " / <TAB> / <NEWLINE> ]
12687 @end example
12688
12689 Any unrecognized elements in a score file should be ignored, but not
12690 discarded.  
12691
12692 As you can see, white space is needed, but the type and amount of white
12693 space is irrelevant.  This means that formatting of the score file is
12694 left up to the programmer---if it's simpler to just spew it all out on
12695 one looong line, then that's ok.
12696
12697 The meaning of the various atoms are explained elsewhere in this
12698 manual. 
12699
12700
12701 @node Headers
12702 @subsection Headers
12703
12704 Gnus uses internally a format for storing article headers that
12705 corresponds to the @sc{nov} format in a mysterious fashion.  One could
12706 almost suspect that the author looked at the @sc{nov} specification and
12707 just shamelessly @emph{stole} the entire thing, and one would be right.
12708
12709 @dfn{Header} is a severely overloaded term.  ``Header'' is used in
12710 RFC1036 to talk about lines in the head of an article (eg.,
12711 @code{From}).  It is used by many people as a synonym for
12712 ``head''---``the header and the body''.  (That should be avoided, in my
12713 opinion.)  And Gnus uses a format internally that it calls ``header'',
12714 which is what I'm talking about here.  This is a 9-element vector,
12715 basically, with each header (ouch) having one slot.
12716
12717 These slots are, in order: @code{number}, @code{subject}, @code{from},
12718 @code{date}, @code{id}, @code{references}, @code{chars}, @code{lines},
12719 @code{xref}.  There are macros for accessing and setting these slots --
12720 they all have predictable names beginning with @code{mail-header-} and
12721 @code{mail-header-set-}, respectively.  
12722
12723 The @code{xref} slot is really a @code{misc} slot.  Any extra info will
12724 be put in there.
12725
12726
12727 @node Ranges
12728 @subsection Ranges
12729
12730 @sc{gnus} introduced a concept that I found so useful that I've started
12731 using it a lot and have elaborated on it greatly. 
12732
12733 The question is simple: If you have a large amount of objects that are
12734 identified by numbers (say, articles, to take a @emph{wild} example)
12735 that you want to callify as being ``included'', a normal sequence isn't
12736 very useful.  (A 200,000 length sequence is a bit long-winded.)
12737
12738 The solution is as simple as the question: You just collapse the
12739 sequence. 
12740
12741 @example
12742 (1 2 3 4 5 6 10 11 12)
12743 @end example
12744
12745 is transformed into
12746
12747 @example
12748 ((1 . 6) (10 . 12))
12749 @end example
12750
12751 To avoid having those nasty @samp{(13 . 13)} elements to denote a
12752 lonesome object, a @samp{13} is a valid element:
12753
12754 @example
12755 ((1 . 6) 7 (10 . 12))
12756 @end example
12757
12758 This means that comparing two ranges to find out whether they are equal
12759 is slightly tricky:
12760
12761 @example
12762 ((1 . 5) 7 8 (10 . 12))
12763 @end example
12764
12765 and
12766
12767 @example
12768 ((1 . 5) (7 . 8) (10 . 12))
12769 @end example
12770
12771 are equal.  In fact, any non-descending list is a range:
12772
12773 @example
12774 (1 2 3 4 5)
12775 @end example
12776
12777 is a perfectly valid range, although a pretty long-winded one.  This is
12778 also legal:
12779
12780 @example
12781 (1 . 5)
12782 @end example
12783
12784 and is equal to the previous range.
12785
12786 Here's a BNF definition of ranges.  Of course, one must remember the
12787 semantic requirement that the numbers are non-descending.  (Any number
12788 of repetition of the same number is allowed, but apt to disappear in
12789 range handling.)
12790
12791 @example
12792 range           = simple-range / normal-range
12793 simple-range    = "(" number " . " number ")"
12794 normal-range    = "(" start-contents ")"
12795 contents        = "" / simple-range *[ " " contents ] / 
12796                   number *[ " " contents ]
12797 @end example
12798
12799 Gnus currently uses ranges to keep track of read articles and article
12800 marks.  I plan on implementing a number of range operators in C if The
12801 Powers That Be are willing to let me.  (I haven't asked yet, because I
12802 need to do some more thinking on what operators I need to make life
12803 totally range-based without ever having to convert back to normal
12804 sequences.) 
12805
12806
12807 @node Group Info
12808 @subsection Group Info
12809
12810 Gnus stores all permanent info on groups in a @dfn{group info} list.
12811 This list is from three to six elements (or more) long and exhaustively
12812 describes the group.
12813
12814 Here are two example group infos; one is a very simple group while the
12815 second is a more complex one:
12816
12817 @example
12818 ("no.group" 5 (1 . 54324))
12819
12820 ("nnml:my.mail" 3 ((1 . 5) 9 (20 . 55))
12821                 ((tick (15 . 19)) (replied 3 6 (19 . 3)))
12822                 (nnml "")
12823                 (auto-expire (to-address "ding@@ifi.uio.no")))
12824 @end example
12825
12826 The first element is the group name as Gnus knows the group; the second
12827 is the group level; the third is the read articles in range format; the
12828 fourth is a list of article marks lists; the fifth is the select method;
12829 and the sixth contains the group parameters.
12830
12831 Here's a BNF definition of the group info format:
12832
12833 @example
12834 info          = "(" group space level space read 
12835                 [ "" / [ space marks-list [ "" / [ space method [ "" /
12836                 space parameters ] ] ] ] ] ")" 
12837 group         = quote <string> quote
12838 level         = <integer in the range of 1 to inf>
12839 read          = range
12840 marks-lists   = nil / "(" *marks ")"
12841 marks         = "(" <string> range ")"
12842 method        = "(" <string> *elisp-forms ")"
12843 parameters    = "(" *elisp-forms ")"
12844 @end example
12845
12846 Actually that @samp{marks} rule is a fib.  A @samp{marks} is a
12847 @samp{<string>} consed on to a @samp{range}, but that's a bitch to say
12848 in pseudo-BNF.
12849
12850
12851 @node Various File Formats
12852 @subsection Various File Formats
12853
12854 @menu
12855 * Active File Format::      Information on articles and groups available.
12856 * Newsgroups File Format::  Group descriptions.
12857 @end menu
12858
12859
12860 @node Active File Format
12861 @subsubsection Active File Format
12862
12863 The active file lists all groups that are available on the server in
12864 question.  It also lists the highest and lowest current article numbers
12865 in each group.  
12866
12867 Here's an excerpt from a typical active file:
12868
12869 @example
12870 soc.motss 296030 293865 y
12871 alt.binaries.pictures.fractals 3922 3913 n
12872 comp.sources.unix 1605 1593 m
12873 comp.binaries.ibm.pc 5097 5089 y
12874 no.general 1000 900 y
12875 @end example
12876
12877 Here's a pseudo-BNF definition of this file:
12878
12879 @example
12880 active      = *group-line
12881 group-line  = group space high-number space low-number space flag <NEWLINE>
12882 group       = <non-white-space string>
12883 space       = " "
12884 high-number = <non-negative integer>
12885 low-number  = <positive integer>
12886 flag        = "y" / "n" / "m" / "j" / "x" / "=" group
12887 @end example
12888
12889
12890 @node Newsgroups File Format
12891 @subsubsection Newsgroups File Format
12892
12893 The newsgroups file lists groups along with their descriptions.  Not all
12894 groups on the server have to be listed,  and not all groups in the file
12895 have to exist on the server.  The file is meant purely as information to
12896 the user.
12897
12898 The format is quite simple; a group name, a tab, and the description.
12899 Here's the definition:
12900
12901 @example
12902 newsgroups    = *line
12903 line          = group tab description <NEWLINE>
12904 group         = <non-white-space string>
12905 tab           = <TAB>
12906 description   = <string>
12907 @end example
12908
12909
12910 @node Emacs for Heathens
12911 @section Emacs for Heathens
12912
12913 Believe it or not, but some people who use Gnus haven't really used
12914 Emacs much before they embarked on their journey on the Gnus Love Boat.
12915 If you are one of those unfortunates whom ``@kbd{M-C-a}'', ``kill the
12916 region'', and ``set @code{gnus-flargblossen} to an alist where the key
12917 is a regexp that is used for matching on the group name'' are magical
12918 phrases with little or no meaning, then this appendix is for you.  If
12919 you are already familiar with Emacs, just ignore this and go fondle your
12920 cat instead.
12921
12922 @menu
12923 * Keystrokes::      Entering text and executing commands.
12924 * Emacs Lisp::      The built-in Emacs programming language.
12925 @end menu
12926
12927
12928 @node Keystrokes
12929 @subsection Keystrokes
12930
12931 @itemize @bullet
12932 @item
12933 Q: What is an experienced Emacs user?
12934
12935 @item 
12936 A: A person who wishes that the terminal had pedals.
12937 @end itemize
12938
12939 Yes, when you use Emacs, you are apt to use the control key, the shift
12940 key and the meta key a lot.  This is very annoying to some people
12941 (notably @code{vi}le users), and the rest of us just love the hell out
12942 of it.  Just give up and submit.  Emacs really does stand for
12943 ``Escape-Meta-Alt-Control-Shift'', and not ``Editing Macros'', as you
12944 may have heard from other disreputable sources (like the Emacs author).
12945
12946 The shift key is normally located near your pinky fingers, and are
12947 normally used to get capital letters and stuff.  You probably use it all
12948 the time.  The control key is normally marked ``CTRL'' or something like
12949 that.  The meta key is, funnily enough, never marked as such on any
12950 keyboards.  The one I'm currently at has a key that's marked ``Alt'',
12951 which is the meta key on this keyboard.  It's usually located somewhere
12952 to the left hand side of the keyboard, usually on the bottom row.
12953
12954 Now, us Emacs people doesn't say ``press the meta-control-m key'',
12955 because that's just too inconvenient.  We say ``press the @kbd{M-C-m}
12956 key''.  @kbd{M-} is the prefix that means ``meta'' and ``C-'' is the
12957 prefix that means ``control''.  So ``press @kbd{C-k}'' means ``press
12958 down the control key, and hold it down while you press @kbd{k}''.
12959 ``Press @kbd{M-C-k}'' means ``press down and hold down the meta key and
12960 the control key and then press @kbd{k}''.  Simple, ay?
12961
12962 This is somewhat complicated by the fact that not all keyboards have a
12963 meta key.  In that case you can use the ``escape'' key.  Then @kbd{M-k}
12964 means ``press escape, release escape, press @kbd{k}''.  That's much more
12965 work than if you have a meta key, so if that's the case, I respectfully
12966 suggest you get a real keyboard with a meta key.  You can't live without
12967 it.
12968
12969
12970
12971 @node Emacs Lisp
12972 @subsection Emacs Lisp
12973
12974 Emacs is the King of Editors because it's really a Lisp interpreter.
12975 Each and every key you tap runs some Emacs Lisp code snippet, and since
12976 Emacs Lisp is an interpreted language, that means that you can configure
12977 any key to run any arbitrary code.  You just, like, do it.
12978
12979 Gnus is written in Emacs Lisp, and is run as a bunch of interpreted
12980 functions.  (These are byte-compiled for speed, but it's still
12981 interpreted.)  If you decide that you don't like the way Gnus does
12982 certain things, it's trivial to have it do something a different way.
12983 (Well, at least if you know how to write Lisp code.)  However, that's
12984 beyond the scope of this manual, so we are simply going to talk about
12985 some common constructs that you normally use in your @file{.emacs} file
12986 to customize Gnus.
12987
12988 If you want to set the variable @code{gnus-florgbnize} to four (4), you
12989 write the following:
12990
12991 @lisp
12992 (setq gnus-florgbnize 4)
12993 @end lisp
12994
12995 This function (really ``special form'') @code{setq} is the one that can
12996 set a variable to some value.  This is really all you need to know.  Now
12997 you can go and fill your @code{.emacs} file with lots of these to change
12998 how Gnus works.
12999
13000 If you have put that thing in your @code{.emacs} file, it will be read
13001 and @code{eval}ed (which is lisp-ese for ``run'') the next time you
13002 start Emacs.  If you want to change the variable right away, simply say
13003 @kbd{C-x C-e} after the closing parenthesis.  That will @code{eval} the
13004 previous ``form'', which here is a simple @code{setq} statement.
13005
13006 Go ahead---just try it, if you're located at your Emacs.  After you
13007 @kbd{C-x C-e}, you will see @samp{4} appear in the echo area, which
13008 is the return value of the form you @code{eval}ed.
13009
13010 Some pitfalls:
13011
13012 If the manual says ``set @code{gnus-read-active-file} to @code{some}'',
13013 that means:
13014
13015 @lisp
13016 (setq gnus-read-active-file 'some)
13017 @end lisp
13018
13019 On the other hand, if the manual says ``set @code{gnus-nntp-server} to
13020 @samp{nntp.ifi.uio.no}'', that means:
13021
13022 @lisp
13023 (setq gnus-nntp-server "nntp.ifi.uio.no")
13024 @end lisp
13025
13026 So be careful not to mix up strings (the latter) with symbols (the
13027 former).  The manual is unambiguous, but it can be confusing.
13028
13029
13030 @include gnus-faq.texi
13031
13032 @node Index
13033 @chapter Index
13034 @printindex cp
13035
13036 @node Key Index
13037 @chapter Key Index
13038 @printindex ky
13039
13040 @summarycontents
13041 @contents
13042 @bye
13043
13044 @iftex
13045 @iflatex
13046 \end{document}
13047 @end iflatex
13048 @end iftex
13049
13050 @c End:
13051