*** empty log message ***
[gnus] / texi / gnus.texi
1 \input texinfo                  @c -*-texinfo-*-
2
3 @setfilename gnus
4 @settitle Red 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 Red 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 * Changing Servers::    You may want to move from one server to another.
343 * Startup Variables::   Other variables you might change.
344 @end menu
345
346
347 @node Finding the News
348 @section Finding the News
349
350 @vindex gnus-select-method
351 @c @head
352 The @code{gnus-select-method} variable says where Gnus should look for
353 news.  This variable should be a list where the first element says
354 @dfn{how} and the second element says @dfn{where}.  This method is your
355 native method.  All groups that are not fetched with this method are
356 foreign groups.
357
358 For instance, if the @samp{news.somewhere.edu} @sc{nntp} server is where
359 you want to get your daily dosage of news from, you'd say:
360
361 @lisp
362 (setq gnus-select-method '(nntp "news.somewhere.edu"))
363 @end lisp
364
365 If you want to read directly from the local spool, say:
366
367 @lisp
368 (setq gnus-select-method '(nnspool ""))
369 @end lisp
370
371 If you can use a local spool, you probably should, as it will almost
372 certainly be much faster.
373
374 @vindex gnus-nntpserver-file
375 @cindex NNTPSERVER
376 @cindex @sc{nntp} server
377 If this variable is not set, Gnus will take a look at the
378 @code{NNTPSERVER} environment variable.  If that variable isn't set,
379 Gnus will see whether @code{gnus-nntpserver-file}
380 (@file{/etc/nntpserver} by default) has any opinions on the matter.  If
381 that fails as well, Gnus will will try to use the machine that is
382 running Emacs as an @sc{nntp} server.  That's a long-shot, though.
383
384 @vindex gnus-nntp-server
385 If @code{gnus-nntp-server} is set, this variable will override
386 @code{gnus-select-method}.  You should therefore set
387 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
388
389 @vindex gnus-secondary-servers
390 You can also make Gnus prompt you interactively for the name of an
391 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
392 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
393 in the @code{gnus-secondary-servers} list (if any).  You can also just
394 type in the name of any server you feel like visiting.
395
396 @findex gnus-group-browse-foreign-server
397 @kindex B (Group)
398 However, if you use one @sc{nntp} server regularly and are just
399 interested in a couple of groups from a different server, you would be
400 better served by using the @kbd{B} command in the group buffer.  It will
401 let you have a look at what groups are available, and you can subscribe
402 to any of the groups you want to.  This also makes @file{.newsrc}
403 maintenance much tidier.  @xref{Foreign Groups}.
404
405 @vindex gnus-secondary-select-methods
406 @c @head
407 A slightly different approach to foreign groups is to set the
408 @code{gnus-secondary-select-methods} variable.  The select methods
409 listed in this variable are in many ways just as native as the
410 @code{gnus-select-method} server.  They will also be queried for active
411 files during startup (if that's required), and new newsgroups that
412 appear on these servers will be subscribed (or not) just as native
413 groups are.
414
415 For instance, if you use the @code{nnmbox} backend to read your mail, you
416 would typically set this variable to
417
418 @lisp
419 (setq gnus-secondary-select-methods '((nnmbox "")))
420 @end lisp
421
422
423 @node The First Time
424 @section The First Time
425 @cindex first time usage
426
427 If no startup files exist, Gnus will try to determine what groups should
428 be subscribed by default.
429
430 @vindex gnus-default-subscribed-newsgroups
431 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
432 will subscribe you to just those groups in that list, leaving the rest
433 killed.  Your system administrator should have set this variable to
434 something useful.
435
436 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
437 picked groups (i.e., @samp{*.newusers}).  (@dfn{Arbitrary} is here
438 defined as @dfn{whatever Lars thinks you should read}.)
439
440 You'll also be subscribed to the Gnus documentation group, which should
441 help you with most common problems.  
442
443 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
444 use the normal functions for handling new groups, and not do anything
445 special.
446
447
448 @node The Server is Down
449 @section The Server is Down
450 @cindex server errors
451
452 If the default server is down, Gnus will understandably have some
453 problems starting.  However, if you have some mail groups in addition to
454 the news groups, you may want to start Gnus anyway.
455
456 Gnus, being the trusting sort of program, will ask whether to proceed
457 without a native select method if that server can't be contacted.  This
458 will happen whether the server doesn't actually exist (i.e., you have
459 given the wrong address) or the server has just momentarily taken ill
460 for some reason or other.  If you decide to continue and have no foreign
461 groups, you'll find it difficult to actually do anything in the group
462 buffer.  But, hey, that's your problem.  Blllrph!
463
464 @findex gnus-no-server
465 @c @head
466 If you know that the server is definitely down, or you just want to read
467 your mail without bothering with the server at all, you can use the
468 @code{gnus-no-server} command to start Gnus.  That might come in handy
469 if you're in a hurry as well.
470
471
472 @node Slave Gnusii
473 @section Slave Gnusiï
474 @cindex slave
475
476 You might want to run more than one Emacs with more than one Gnus at the
477 same time.  If you are using different @file{.newsrc} files (eg., if you
478 are using the two different Gnusiï to read from two different servers),
479 that is no problem whatsoever.  You just do it.
480
481 The problem appears when you want to run two Gnusiï that use the same
482 @code{.newsrc} file.
483
484 To work around that problem some, we here at the Think-Tank at the Gnus
485 Towers have come up with a new concept: @dfn{Masters} and
486 @dfn{servants}.  (We have applied for a patent on this concept, and have
487 taken out a copyright on those words.  If you wish to use those words in
488 conjunction with each other, you have to send $1 per usage instance to
489 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
490 Applications}) will be much more expensive, of course.)
491
492 Anyways, you start one Gnus up the normal way with @kbd{M-x gnus} (or
493 however you do it).  Each subsequent slave Gnusiï should be started with
494 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
495 files, but instead save @dfn{slave files} that contains information only
496 on what groups have been read in the slave session.  When a master Gnus
497 starts, it will read (and delete) these slave files, incorporating all
498 information from them.  (The slave files will be read in the sequence
499 they were created, so the latest changes will have precedence.)
500
501 Information from the slave files has, of course, precedence over the
502 information in the normal (i. e., master) @code{.newsrc} file.
503
504
505 @node Fetching a Group
506 @section Fetching a Group
507
508 @findex gnus-fetch-group
509 It it sometime convenient to be able to just say ``I want to read this
510 group and I don't care whether Gnus has been started or not''.  This is
511 perhaps more useful for people who write code than for users, but the
512 command @code{gnus-fetch-group} provides this functionality in any case.
513 It takes the group name as a parameter.
514
515
516 @node New Groups
517 @section New Groups
518 @cindex new groups
519
520 @vindex gnus-subscribe-newsgroup-method
521 What Gnus does when it encounters a new group is determined by the
522 @code{gnus-subscribe-newsgroup-method} variable.
523
524 This variable should contain a function.  Some handy pre-fab values
525 are:
526
527 @table @code
528
529 @item gnus-subscribe-zombies
530 @vindex gnus-subscribe-zombies
531 Make all new groups zombies.  You can browse the zombies later (with
532 @kbd{A z}) and either kill them all off properly, or subscribe to them.
533 This is the default.
534
535 @item gnus-subscribe-randomly
536 @vindex gnus-subscribe-randomly
537 Subscribe all new groups randomly.
538
539 @item gnus-subscribe-alphabetically
540 @vindex gnus-subscribe-alphabetically
541 Subscribe all new groups alphabetically.
542
543 @item gnus-subscribe-hierarchically
544 @vindex gnus-subscribe-hierarchically
545 Subscribe all new groups hierarchically.  The difference between this
546 function and @code{gnus-subscribe-alphabetically} is slight.
547 @code{gnus-subscribe-alphabetically} will subscribe new groups in a strictly
548 alphabetical fashion, while this function will enter groups into it's
549 hierarchy.  So if you want to have the @samp{rec} hierarchy before the
550 @samp{comp} hierarchy, this function will not mess that configuration
551 up.  Or something like that.
552
553 @item gnus-subscribe-interactively
554 @vindex gnus-subscribe-interactively
555 Subscribe new groups interactively.  This means that Gnus will ask
556 you about @strong{all} new groups.
557
558 @item gnus-subscribe-killed
559 @vindex gnus-subscribe-killed
560 Kill all new groups.
561
562 @end table
563
564 @vindex gnus-subscribe-hierarchical-interactive
565 A closely related variable is
566 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
567 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
568 hierarchical fashion whether to subscribe to new groups or not.  Gnus
569 will ask you for each sub-hierarchy whether you want to descend the
570 hierarchy or not.  
571
572 One common mistake is to set the variable a few paragraphs above to
573 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
574 will not work.  This is ga-ga.  So don't do it.
575
576 A nice and portable way to control which new newsgroups should be
577 subscribed (or ignored) is to put an @dfn{options} line at the start of
578 the @file{.newsrc} file.  Here's an example:
579
580 @example
581 options -n !alt.all !rec.all sci.all
582 @end example
583
584 @vindex gnus-subscribe-options-newsgroup-method
585 This line obviously belongs to a serious-minded intellectual scientific
586 person (or she may just be plain old boring), because it says that all
587 groups that have names beginning with @samp{alt} and @samp{rec} should
588 be ignored, and all groups with names beginning with @samp{sci} should
589 be subscribed.  Gnus will not use the normal subscription method for
590 subscribing these groups.
591 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
592 variable defaults to @code{gnus-subscribe-alphabetically}.
593
594 @vindex gnus-options-not-subscribe
595 @vindex gnus-options-subscribe
596 If you don't want to mess with your @file{.newsrc} file, you can just
597 set the two variables @code{gnus-options-subscribe} and
598 @code{gnus-options-not-subscribe}.  These two variables do exactly the
599 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
600 and if the the new group matches the former, it will be unconditionally
601 subscribed, and if it matches the latter, it will be ignored.
602
603 @vindex gnus-auto-subscribed-groups
604 Yet another variable that meddles here is
605 @code{gnus-auto-subscribed-groups}.  It works exactly like
606 @code{gnus-options-subscribe}, and is therefore really superfluous, but I
607 thought it would be nice to have two of these.  This variable is more
608 meant for setting some ground rules, while the other variable is used
609 more for user fiddling.  By default this variable makes all new groups
610 that come from mail backends (@code{nnml}, @code{nnbabyl},
611 @code{nnfolder}, @code{nnmbox}, and @code{nnmh}) subscribed.  If you
612 don't like that, just set this variable to @code{nil}.
613
614 @vindex gnus-check-new-newsgroups
615 If you are satisfied that you really never want to see any new groups,
616 you could set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
617 also save you some time at startup.  Even if this variable is
618 @code{nil}, you can always subscribe to the new groups just by pressing
619 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
620 is @code{t} by default.
621
622 Gnus normally determines whether a group is new or not by comparing the
623 list of groups from the active file(s) with the lists of subscribed and
624 dead groups.  This isn't a particularly fast method.  If
625 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
626 server for new groups since the last time.  This is both faster &
627 cheaper.  This also means that you can get rid of the list of killed
628 groups altogether, so you may set @code{gnus-save-killed-list} to
629 @code{nil}, which will save time both at startup, at exit, and all over.
630 Saves disk space, too.  Why isn't this the default, then?
631 Unfortunately, not all servers support this command. 
632
633 I bet I know what you're thinking now: How do I find out whether my
634 server supports @code{ask-server}?  No?  Good, because I don't have a
635 fail-safe answer.  I would suggest just setting this variable to
636 @code{ask-server} and see whether any new groups appear within the next
637 few days.  If any do, then it works.  If any don't, then it doesn't
638 work.  I could write a function to make Gnus guess whether the server
639 supports @code{ask-server}, but it would just be a guess.  So I won't.
640 You could @code{telnet} to the server and say @code{HELP} and see
641 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
642 it does, then it might work.  (But there are servers that lists
643 @samp{NEWGROUPS} without supporting the function properly.)
644
645 This variable can also be a list of select methods.  If so, Gnus will
646 issue an @code{ask-server} command to each of the select methods, and
647 subscribe them (or not) using the normal methods.  This might be handy
648 if you are monitoring a few servers for new groups.  A side effect is
649 that startup will take much longer, so you can meditate while waiting.
650 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
651
652
653 @node Changing Servers
654 @section Changing Servers
655
656 Sometimes it is necessary to move from one @sc{nntp} server to another.
657 This happens very rarely, but perhaps you change jobs, or one server is
658 very flake and you want to use another.  
659
660 Changing the server is pretty easy, right?  You just change
661 @code{gnus-select-method} to point to the new server?  
662
663 @emph{Wrong!}
664
665 Article numbers are not (in any way) kept synchronized between different
666 @sc{nntp} servers, and the only way Gnus keeps track of what articles
667 you have read is by keeping track of article numbers.  So when you
668 change @code{gnus-select-method}, your @file{.newsrc} file becomes
669 worthless.  
670
671 Gnus provides a few functions to attempt to translate a @file{.newsrc}
672 file from one server to another.  They all have one thing in
673 common---they take a looong time to run.  You don't want to use these
674 functions more than absolutely necessary.
675
676 @kindex M-x gnus-change-server
677 @findex gnus-change-server
678 If you have access to both servers, Gnus can request the headers for all
679 the articles you have read and compare @code{Message-ID}s and map
680 reads and article marks.  The @kbd{M-x gnus-change-server} command will
681 do this for all your native groups.  It will prompt for the method you
682 want to move to.
683
684 @kindex M-x gnus-group-move-group-to-server
685 @findex gnus-group-move-group-to-server
686 You can also move individual groups with the @kbd{M-x
687 gnus-group-move-group-to-server} command.  This is useful if you want to
688 move a (foreign) group from one server to another.
689
690
691 @node Startup Files
692 @section Startup Files
693 @cindex startup files
694 @cindex .newsrc
695
696 Now, you all know about the @file{.newsrc} file.  All subscription
697 information is traditionally stored in this file.
698
699 Things got a bit more complicated with @sc{gnus}.  In addition to
700 keeping the @file{.newsrc} file updated, it also used a file called
701 @file{.newsrc.el} for storing all the information that didn't fit into
702 the @file{.newsrc} file.  (Actually, it also duplicated everything in
703 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
704 files was the most recently saved, which enabled people to swap between
705 @sc{gnus} and other newsreaders.
706
707 That was kinda silly, so Gnus went one better: In addition to the
708 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
709 @file{.newsrc.eld}.  It will read whichever of these files that are most
710 recent, but it will never write a @file{.newsrc.el} file.
711
712 @vindex gnus-save-newsrc-file
713 You can turn off writing the @file{.newsrc} file by setting
714 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
715 the file and save some space, as well as making exit from Gnus faster.
716 However, this will make it impossible to use other newsreaders than
717 Gnus.  But hey, who would want to, right?
718
719 @vindex gnus-save-killed-list
720 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
721 will not save the list of killed groups to the startup file.  This will
722 save both time (when starting and quitting) and space (on disk).  It
723 will also means that Gnus has no record of what groups are new or old,
724 so the automatic new groups subscription methods become meaningless.
725 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
726 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
727 Groups}).
728
729 @vindex gnus-startup-file
730 The @code{gnus-startup-file} variable says where the startup files are.
731 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
732 file being whatever that one is with a @samp{.eld} appended.
733
734 @vindex gnus-save-newsrc-hook
735 @vindex gnus-save-quick-newsrc-hook
736 @vindex gnus-save-standard-newsrc-hook
737 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
738 files, while @code{gnus-save-quick-newsrc-hook} is called just before
739 saving the @file{.newsrc.eld} file, and
740 @code{gnus-save-standard-newsrc-hook} is called just before saving the
741 @file{.newsrc} file.  The latter two are commonly used to turn version
742 control on or off.  Version control is off by default when saving the
743 startup files.
744
745 @vindex gnus-init-file
746 When Gnus starts, it will read the @code{gnus-init-file} file, which is
747 @file{~/.gnus.el} by default.  This is a normal Emacs Lisp file and can
748 be used to avoid cluttering your @file{.emacs} file with Gnus stuff.
749
750
751 @node Auto Save
752 @section Auto Save
753 @cindex dribble file
754 @cindex auto-save
755
756 Whenever you do something that changes the Gnus data (reading articles,
757 catching up, killing/subscribing groups), the change is added to a
758 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
759 Emacs way.  If your Emacs should crash before you have saved the
760 @file{.newsrc} files, all changes you have made can be recovered from
761 this file.
762
763 If Gnus detects this file at startup, it will ask the user whether to
764 read it.  The auto save file is deleted whenever the real startup file is
765 saved.
766
767 @vindex gnus-use-dribble-file
768 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
769 maintain a dribble buffer.  The default is @code{t}.
770
771 @vindex gnus-dribble-directory
772 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
773 this variable is @code{nil}, which it is by default, Gnus will dribble
774 into the directory where the @file{.newsrc} file is located.  (This is
775 normally the user's home directory.)  The dribble file will get the same
776 file permissions as the @code{.newsrc} file.
777
778
779 @node The Active File
780 @section The Active File
781 @cindex active file
782 @cindex ignored groups
783
784 When Gnus starts, or indeed whenever it tries to determine whether new
785 articles have arrived, it reads the active file.  This is a very large
786 file that lists all the active groups and articles on the server.
787
788 @vindex gnus-ignored-newsgroups
789 Before examining the active file, Gnus deletes all lines that match the
790 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
791 any groups with bogus names, but you can use this variable to make Gnus
792 ignore hierarchies you aren't ever interested in.  However, this is not
793 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
794 Groups} for an overview of other variables that can be used instead.
795
796 @c This variable is
797 @c @code{nil} by default, and will slow down active file handling somewhat
798 @c if you set it to anything else.
799
800 @vindex gnus-read-active-file
801 @c @head
802 The active file can be rather Huge, so if you have a slow network, you
803 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
804 reading the active file.  This variable is @code{t} by default.
805
806 Gnus will try to make do by getting information just on the groups that
807 you actually subscribe to.
808
809 Note that if you subscribe to lots and lots of groups, setting this
810 variable to @code{nil} will probably make Gnus slower, not faster.  At
811 present, having this variable @code{nil} will slow Gnus down
812 considerably, unless you read news over a 2400 baud modem.  
813
814 This variable can also have the value @code{some}.  Gnus will then
815 attempt to read active info only on the subscribed groups.  On some
816 servers this is quite fast (on sparkling, brand new INN servers that
817 support the @code{LIST ACTIVE group} command), on others this isn't fast
818 at all.  In any case, @code{some} should be faster than @code{nil}, and
819 is certainly faster than @code{t} over slow lines.
820
821 If this variable is @code{nil}, Gnus will ask for group info in total
822 lock-step, which isn't very fast.  If it is @code{some} and you use an
823 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
824 read all the replies in one swoop.  This will normally result in better
825 performance, but if the server does not support the aforementioned
826 @code{LIST ACTIVE group} command, this isn't very nice to the server.
827
828 In any case, if you use @code{some} or @code{nil}, you should definitely
829 kill all groups that you aren't interested in to speed things up.
830
831
832 @node Startup Variables
833 @section Startup Variables
834
835 @table @code
836
837 @item gnus-load-hook
838 @vindex gnus-load-hook
839 A hook that is run while Gnus is being loaded.  Note that this hook will
840 normally be run just once in each Emacs session, no matter how many
841 times you start Gnus.
842
843 @item gnus-startup-hook
844 @vindex gnus-startup-hook
845 A hook that is run after starting up Gnus successfully.
846
847 @item gnus-check-bogus-newsgroups
848 @vindex gnus-check-bogus-newsgroups
849 If non-@code{nil}, Gnus will check for and delete all bogus groups at
850 startup.  A @dfn{bogus group} is a group that you have in your
851 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
852 bogus groups can take quite a while, so to save time and resources it's
853 best to leave this option off, and do the checking for bogus groups once
854 in a while from the group buffer instead (@pxref{Group Maintenance}).
855
856 @item gnus-inhibit-startup-message
857 @vindex gnus-inhibit-startup-message
858 If non-@code{nil}, the startup message won't be displayed.  That way,
859 your boss might not notice that you are reading news instead of doing
860 your job as easily.
861
862 @item gnus-no-groups-message
863 @vindex gnus-no-groups-message
864 Message displayed by Gnus when no groups are available.
865 @end table
866
867
868 @node The Group Buffer
869 @chapter The Group Buffer
870 @cindex group buffer
871
872 The @dfn{group buffer} lists all (or parts) of the available groups.  It
873 is the first buffer shown when Gnus starts, and will never be killed as
874 long as Gnus is active.
875
876 @menu
877 * Group Buffer Format::    Information listed and how you can change it.
878 * Group Maneuvering::      Commands for moving in the group buffer.
879 * Selecting a Group::      Actually reading news.
880 * Subscription Commands::  Unsubscribing, killing, subscribing.
881 * Group Levels::           Levels? What are those, then?
882 * Group Score::            A mechanism for finding out what groups you like.
883 * Marking Groups::         You can mark groups for later processing.
884 * Foreign Groups::         Creating and editing groups.
885 * Group Parameters::       Each group may have different parameters set.
886 * Listing Groups::         Gnus can list various subsets of the groups.
887 * Sorting Groups::         Re-arrange the group order.
888 * Group Maintenance::      Maintaining a tidy @file{.newsrc} file.
889 * Browse Foreign Server::  You can browse a server.  See what it has to offer.
890 * Exiting Gnus::           Stop reading news and get some work done.
891 * Group Topics::           A folding group mode divided into topics.
892 * Misc Group Stuff::       Other stuff that you can to do.
893 @end menu
894
895
896 @node Group Buffer Format
897 @section Group Buffer Format
898 @cindex group buffer format
899
900 @menu 
901 * Group Line Specification::       Deciding how the group buffer is to look.
902 * Group Modeline Specification::   The group buffer modeline.
903 * Group Highlighting::             Having nice colors in the group buffer.
904 @end menu
905
906
907 @node Group Line Specification
908 @subsection Group Line Specification
909
910 The default format of the group buffer is nice and dull, but you can
911 make it as exciting and ugly as you feel like.
912
913 Here's a couple of example group lines:
914
915 @example
916      25: news.announce.newusers
917  *    0: alt.fan.andrea-dworkin
918 @end example
919
920 Quite simple, huh?
921
922 You can see that there are 25 unread articles in
923 @samp{news.announce.newusers}.  There are no unread articles, but some
924 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
925 asterisk at the beginning of the line?)
926
927 @vindex gnus-group-line-format
928 You can change that format to whatever you want by fiddling with the
929 @code{gnus-group-line-format} variable.  This variable works along the
930 lines of a @code{format} specification, which is pretty much the same as
931 a @code{printf} specifications, for those of you who use (feh!) C.
932 @xref{Formatting Variables}. 
933
934 The default value that produced those lines above is 
935 @samp{%M%S%5y: %(%g%)\n}.
936
937 There should always be a colon on the line; the cursor always moves to
938 the colon after performing an operation.  Nothing else is required---not
939 even the group name.  All displayed text is just window dressing, and is
940 never examined by Gnus.  Gnus stores all real information it needs using
941 text properties.
942
943 (Note that if you make a really strange, wonderful, spreadsheet-like
944 layout, everybody will believe you are hard at work with the accounting
945 instead of wasting time reading news.)
946
947 Here's a list of all available format characters:
948
949 @table @samp
950
951 @item M    
952 Only marked articles.
953
954 @item S
955 Whether the group is subscribed.
956
957 @item L    
958 Level of subscribedness.
959
960 @item N
961 Number of unread articles.
962
963 @item I
964 Number of dormant articles.
965
966 @item T
967 Number of ticked articles.
968
969 @item R
970 Number of read articles.
971
972 @item t
973 Estimated total number of articles.  (This is really @var{max-number}
974 minus @var{min-number} plus 1.)
975
976 @item y
977 Number of unread, unticked, non-dormant articles.
978
979 @item i
980 Number of ticked and dormant articles.
981
982 @item g
983 Full group name.
984
985 @item G
986 Group name.
987
988 @item D
989 Newsgroup description.
990
991 @item o
992 @samp{m} if moderated.
993
994 @item O
995 @samp{(m)} if moderated.
996
997 @item s
998 Select method.
999
1000 @item n
1001 Select from where.
1002
1003 @item z
1004 A string that looks like @samp{<%s:%n>} if a foreign select method is
1005 used.
1006
1007 @item P
1008 Indentation based on the level of the topic (@pxref{Group Topics}). 
1009
1010 @item c
1011 @vindex gnus-group-uncollapsed-levels
1012 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
1013 variable says how many levels to leave at the end of the group name.
1014 The default is @code{1}.
1015
1016 @item u
1017 User defined specifier.  The next character in the format string should
1018 be a letter.  @sc{gnus} will call the function
1019 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1020 following @samp{%u}.  The function will be passed the current headers as
1021 argument.  The function should return a string, which will be inserted
1022 into the buffer just like information from any other specifier.
1023 @end table
1024
1025 @cindex *
1026 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
1027 if no info is available---for instance, if it is a non-activated foreign
1028 group, or a bogus (or semi-bogus) native group.
1029
1030
1031 @node Group Modeline Specification
1032 @subsection Group Modeline Specification
1033
1034 @vindex gnus-group-mode-line-format
1035 The mode line can be changed by setting
1036 (@code{gnus-group-mode-line-format}).  It doesn't understand that many
1037 format specifiers:
1038
1039 @table @samp
1040 @item S
1041 The native news server.
1042 @item M
1043 The native select method.
1044 @end table
1045
1046
1047 @node Group Highlighting
1048 @subsection Group Highlighting
1049
1050 @vindex gnus-group-highlight
1051 Highlighting in the group buffer is controlled by the
1052 @code{gnus-group-highlight} variable.  This is an alist with elements
1053 that look like @var{(form . face)}.  If @var{form} evaluates to
1054 something non-@code{nil}, the @var{face} will be used on the line.
1055
1056 Here's an example value for this variable that might look nice if the
1057 background is dark:
1058
1059 @lisp
1060 (setq gnus-group-highlight
1061     `(((> unread 200) . 
1062        ,(custom-face-lookup "Red" nil nil t nil nil))
1063       ((and (< level 3) (zerop unread)) . 
1064        ,(custom-face-lookup "SeaGreen" nil nil t nil nil))
1065       ((< level 3) . 
1066        ,(custom-face-lookup "SpringGreen" nil nil t nil nil))
1067       ((zerop unread) . 
1068        ,(custom-face-lookup "SteelBlue" nil nil t nil nil))
1069       (t . 
1070        ,(custom-face-lookup "SkyBlue" nil nil t nil nil))
1071       ))
1072 @end lisp
1073
1074 Variables that are dynamically bound when the forms are evaluated
1075 include:
1076
1077 @table @code
1078 @item group
1079 The group name.
1080 @item unread
1081 The number of unread articles in the group.
1082 @item method
1083 The select method.
1084 @item mailp
1085 Whether the group is a mail group.
1086 @item level
1087 The level of the group.
1088 @item score
1089 The score of the group.
1090 @item ticked 
1091 The number of ticked articles in the group.
1092 @item topic
1093 When using the topic minor mode, this variable is bound to the current
1094 topic being inserted.
1095 @end table
1096
1097 When the forms are @code{eval}ed, point is at the beginning of the line
1098 of the group in question, so you can use many of the normal Gnus
1099 functions for snarfing info on the group.
1100
1101 @vindex gnus-group-update-hook
1102 @findex gnus-group-highlight-line
1103 @code{gnus-group-update-hook} is called when a group line is changed.
1104 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
1105 calls @code{gnus-group-highlight-line} by default.
1106
1107
1108 @node Group Maneuvering
1109 @section Group Maneuvering
1110 @cindex group movement
1111
1112 All movement commands understand the numeric prefix and will behave as
1113 expected, hopefully. 
1114
1115 @table @kbd
1116
1117 @item n
1118 @kindex n (Group)
1119 @findex gnus-group-next-unread-group
1120 Go to the next group that has unread articles
1121 (@code{gnus-group-next-unread-group}).
1122
1123 @item p
1124
1125 @itemx DEL
1126 @kindex DEL (Group)
1127 @kindex p (Group)
1128 @findex gnus-group-prev-unread-group
1129 Go to the previous group group that has unread articles
1130 (@code{gnus-group-prev-unread-group}).
1131
1132 @item N
1133 @kindex N (Group)
1134 @findex gnus-group-next-group
1135 Go to the next group (@code{gnus-group-next-group}).
1136
1137 @item P
1138 @kindex P (Group)
1139 @findex gnus-group-prev-group
1140 Go to the previous group (@code{gnus-group-prev-group}).
1141
1142 @item M-p
1143 @kindex M-p (Group)
1144 @findex gnus-group-next-unread-group-same-level
1145 Go to the next unread group on the same level (or lower)
1146 (@code{gnus-group-next-unread-group-same-level}). 
1147
1148 @item M-n
1149 @kindex M-n (Group)
1150 @findex gnus-group-prev-unread-group-same-level
1151 Go to the previous unread group on the same level (or lower)
1152 (@code{gnus-group-prev-unread-group-same-level}). 
1153 @end table
1154
1155 Three commands for jumping to groups:
1156
1157 @table @kbd
1158
1159 @item j
1160 @kindex j (Group)
1161 @findex gnus-group-jump-to-group
1162 Jump to a group (and make it visible if it isn't already)
1163 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
1164 like living groups.
1165
1166 @item ,
1167 @kindex , (Group)
1168 @findex gnus-group-best-unread-group
1169 Jump to the unread group with the lowest level
1170 (@code{gnus-group-best-unread-group}). 
1171
1172 @item .
1173 @kindex . (Group)
1174 @findex gnus-group-first-unread-group
1175 Jump to the first group with unread articles
1176 (@code{gnus-group-first-unread-group}).  
1177 @end table
1178
1179 @vindex gnus-group-goto-unread
1180 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
1181 commands will move to the next group, not the next unread group.  Even
1182 the commands that say they move to the next unread group.  The default
1183 is @code{t}.
1184
1185
1186 @node Selecting a Group
1187 @section Selecting a Group
1188 @cindex group selection
1189
1190 @table @kbd
1191
1192 @item SPACE
1193 @kindex SPACE (Group)
1194 @findex gnus-group-read-group
1195 Select the current group, switch to the summary buffer and display the
1196 first unread article (@code{gnus-group-read-group}).  If there are no
1197 unread articles in the group, or if you give a non-numerical prefix to
1198 this command, Gnus will offer to fetch all the old articles in this
1199 group from the server.  If you give a numerical prefix @var{N}, Gnus
1200 will fetch @var{N} number of articles.  If @var{N} is positive, fetch
1201 the @var{N} newest articles, if @var{N} is negative, fetch the
1202 @var{abs(N)} oldest articles.
1203
1204 @item RET
1205 @kindex RET (Group)
1206 @findex gnus-group-select-group
1207 Select the current group and switch to the summary buffer
1208 (@code{gnus-group-select-group}).  Takes the same arguments as
1209 @code{gnus-group-read-group}---the only difference is that this command
1210 does not display the first unread article automatically upon group
1211 entry. 
1212
1213 @item M-RET
1214 @kindex M-RET (Group)
1215 @findex gnus-group-quick-select-group
1216 This does the same as the command above, but tries to do it with the
1217 minimum amount off fuzz (@code{gnus-group-quick-select-group}).  No
1218 scoring/killing will be performed, there will be no highlights and no
1219 expunging.  This might be useful if you're in a real hurry and have to
1220 enter some humongous group.
1221
1222 @item M-SPACE
1223 @kindex M-RET (Group)
1224 @findex gnus-group-visible-select-group
1225 This is yet one more command that does the same as the one above, but
1226 this one does it without expunging and hiding dormants
1227 (@code{gnus-group-visible-select-group}).  
1228
1229 @item c
1230 @kindex c (Group)
1231 @findex gnus-group-catchup-current
1232 @vindex gnus-group-catchup-group-hook
1233 Mark all unticked articles in this group as read
1234 (@code{gnus-group-catchup-current}).
1235 @code{gnus-group-catchup-group-hook} is when catching up a group from
1236 the group buffer.
1237
1238 @item C
1239 @kindex C (Group)
1240 @findex gnus-group-catchup-current-all
1241 Mark all articles in this group, even the ticked ones, as read
1242 (@code{gnus-group-catchup-current-all}).   
1243 @end table
1244
1245 @vindex gnus-large-newsgroup
1246 The @code{gnus-large-newsgroup} variable says what Gnus should consider
1247 to be a big group.  This is 200 by default.  If the group has more
1248 unread articles than this, Gnus will query the user before entering the
1249 group.  The user can then specify how many articles should be fetched
1250 from the server.  If the user specifies a negative number (@code{-n}),
1251 the @code{n} oldest articles will be fetched.  If it is positive, the
1252 @code{n} articles that have arrived most recently will be fetched.
1253
1254 @vindex gnus-select-group-hook
1255 @vindex gnus-auto-select-first
1256 @code{gnus-auto-select-first} control whether any articles are selected
1257 automatically when entering a group.  
1258
1259 @table @code
1260
1261 @item nil
1262 Don't select any articles when entering the group.  Just display the
1263 full summary buffer.
1264
1265 @item t
1266 Select the first unread article when entering the group.  
1267
1268 @item best
1269 Select the most high-scored article in the group when entering the
1270 group. 
1271 @end table
1272         
1273 If you want to prevent automatic selection in some group (say, in a
1274 binary group with Huge articles) you can set this variable to @code{nil}
1275 in @code{gnus-select-group-hook}, which is called when a group is
1276 selected.
1277
1278
1279 @node Subscription Commands
1280 @section Subscription Commands
1281 @cindex subscribing
1282
1283 @table @kbd
1284
1285 @item S t
1286 @itemx u
1287 @kindex S t (Group)
1288 @kindex u (Group)
1289 @findex gnus-group-unsubscribe-current-group
1290 Toggle subscription to the current group
1291 (@code{gnus-group-unsubscribe-current-group}).  
1292
1293 @item S s
1294 @itemx U
1295 @kindex S s (Group)
1296 @kindex U (Group)
1297 @findex gnus-group-unsubscribe-group
1298 Prompt for a group to subscribe, and then subscribe it.  If it was
1299 subscribed already, unsubscribe it instead
1300 (@code{gnus-group-unsubscribe-group}).
1301
1302 @item S k
1303 @itemx C-k
1304 @kindex S k (Group)
1305 @kindex C-k (Group)
1306 @findex gnus-group-kill-group
1307 Kill the current group (@code{gnus-group-kill-group}).
1308
1309 @item S y
1310 @itemx C-y
1311 @kindex S y (Group)
1312 @kindex C-y (Group)
1313 @findex gnus-group-yank-group
1314 Yank the last killed group (@code{gnus-group-yank-group}).
1315
1316 @item C-x C-t
1317 @kindex C-x C-t (Group)
1318 @findex gnus-group-transpose-groups
1319 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
1320 really a subscription command, but you can use it instead of a
1321 kill-and-yank sequence sometimes.
1322
1323 @item S w
1324 @itemx C-w
1325 @kindex S w (Group)
1326 @kindex C-w (Group)
1327 @findex gnus-group-kill-region
1328 Kill all groups in the region (@code{gnus-group-kill-region}). 
1329
1330 @item S z
1331 @kindex S z (Group)
1332 @findex gnus-group-kill-all-zombies
1333 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
1334
1335 @item S C-k
1336 @kindex S C-k (Group)
1337 @findex gnus-group-kill-level
1338 Kill all groups on a certain level (@code{gnus-group-kill-level}).
1339 These groups can't be yanked back after killing, so this command should
1340 be used with some caution.  The only thing where this command comes in
1341 really handy is when you have a @file{.newsrc} with lots of unsubscribed
1342 groups that you want to get rid off.  @kbd{S C-k} on level @code{7} will
1343 kill off all unsubscribed groups that do not have message numbers in the
1344 @file{.newsrc} file.  
1345
1346 @end table
1347
1348 Also @pxref{Group Levels}.
1349
1350
1351 @node Group Levels
1352 @section Group Levels
1353 @cindex group level
1354
1355 All groups have a level of @dfn{subscribedness}.  For instance, if a
1356 group is on level 2, it is more subscribed than a group on level 5.  You
1357 can ask Gnus to just list groups on a given level or lower
1358 (@pxref{Listing Groups}), or to just check for new articles in groups on
1359 a given level or lower (@pxref{Scanning New Messages}).
1360
1361 Remember:  The higher the level of the group, the less important it is. 
1362
1363 @table @kbd
1364
1365 @item S l
1366 @kindex S l (Group)
1367 @findex gnus-group-set-current-level
1368 Set the level of the current group.  If a numeric prefix is given, the
1369 next @var{n} groups will have their levels set.  The user will be
1370 prompted for a level.
1371 @end table
1372
1373 @vindex gnus-level-killed
1374 @vindex gnus-level-zombie
1375 @vindex gnus-level-unsubscribed
1376 @vindex gnus-level-subscribed
1377 Gnus considers groups on between levels 1 and
1378 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
1379 @code{gnus-level-subscribed} (exclusive) and
1380 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
1381 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
1382 (default 8) and @code{gnus-level-killed} to be killed (default 9),
1383 completely dead.  Gnus treats subscribed and unsubscribed groups exactly
1384 the same, but zombie and killed groups have no information on what
1385 articles you have read, etc, stored.  This distinction between dead and
1386 living groups isn't done because it is nice or clever, it is done purely
1387 for reasons of efficiency.
1388
1389 It is recommended that you keep all your mail groups (if any) on quite
1390 low levels (eg. 1 or 2).
1391
1392 If you want to play with the level variables, you should show some care.
1393 Set them once, and don't touch them ever again.  Better yet, don't touch
1394 them at all unless you know exactly what you're doing.
1395
1396 @vindex gnus-level-default-unsubscribed
1397 @vindex gnus-level-default-subscribed
1398 Two closely related variables are @code{gnus-level-default-subscribed}
1399 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
1400 which are the levels that new groups will be put on if they are
1401 (un)subscribed.  These two variables should, of course, be inside the
1402 relevant legal ranges.
1403
1404 @vindex gnus-keep-same-level
1405 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
1406 will only move to groups that are of the same level (or lower).  In
1407 particular, going from the last article in one group to the next group
1408 will go to the next group of the same level (or lower).  This might be
1409 handy if you want to read the most important groups before you read the
1410 rest.
1411
1412 @vindex gnus-group-default-list-level
1413 All groups with a level less than or equal to
1414 @code{gnus-group-default-list-level} will be listed in the group buffer
1415 by default.
1416
1417 @vindex gnus-group-list-inactive-groups
1418 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
1419 groups will be listed along with the unread groups.  This variable is
1420 @code{t} by default.  If it is @code{nil}, inactive groups won't be
1421 listed. 
1422
1423 @vindex gnus-group-use-permanent-levels
1424 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
1425 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
1426 use this level as the ``work'' level.
1427
1428 @vindex gnus-activate-level
1429 Gnus will normally just activate groups that are on level
1430 @code{gnus-activate-level} or less.  If you don't want to activate
1431 unsubscribed groups, for instance, you might set this variable to
1432 @code{5}. 
1433
1434
1435 @node Group Score
1436 @section Group Score
1437 @cindex group score
1438
1439 You would normally keep important groups on high levels, but that scheme
1440 is somewhat restrictive.  Don't you wish you could have Gnus sort the
1441 group buffer according to how often you read groups, perhaps?  Within
1442 reason?  
1443
1444 This is what @dfn{group score} is for.  You can assign a score to each
1445 group.  You can then sort the group buffer based on this score.
1446 Alternatively, you can sort on score and then level.  (Taken together,
1447 the level and the score is called the @dfn{rank} of the group.  A group
1448 that is on level 4 and has a score of 1 has a higher rank than a group
1449 on level 5 that has a score of 300.  (The level is the most significant
1450 part and the score is the least significant part.)
1451
1452 @findex gnus-summary-bubble-group
1453 If you want groups you read often to get higher scores than groups you
1454 read seldom you can add the @code{gnus-summary-bubble-group} function to
1455 the @code{gnus-summary-exit-hook} hook.  This will result (after
1456 sorting) in a bubbling sort of action.  If you want to see that in
1457 action after each summary exit, you can add
1458 @code{gnus-group-sort-groups-by-rank} or
1459 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
1460 slow things down somewhat.
1461
1462
1463 @node Marking Groups
1464 @section Marking Groups
1465 @cindex marking groups
1466
1467 If you want to perform some command on several groups, and they appear
1468 subsequently in the group buffer, you would normally just give a
1469 numerical prefix to the command.  Most group commands will then do your
1470 bidding on those groups.
1471
1472 However, if the groups are not in sequential order, you can still
1473 perform a command on several groups.  You simply mark the groups first
1474 with the process mark and then execute the command.
1475
1476 @table @kbd
1477
1478 @item #
1479 @kindex # (Group)
1480 @itemx M m
1481 @kindex M m (Group)
1482 @findex gnus-group-mark-group
1483 Set the mark on the current group (@code{gnus-group-mark-group}). 
1484
1485 @item M-#
1486 @kindex M-# (Group)
1487 @itemx M u
1488 @kindex M u (Group)
1489 @findex gnus-group-unmark-group
1490 Remove the mark from the current group
1491 (@code{gnus-group-unmark-group}). 
1492
1493 @item M U
1494 @kindex M U (Group)
1495 @findex gnus-group-unmark-all-groups
1496 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}). 
1497
1498 @item M w
1499 @kindex M w (Group)
1500 @findex gnus-group-mark-region
1501 Mark all groups between point and mark (@code{gnus-group-mark-region}). 
1502
1503 @item M b
1504 @kindex M b (Group)
1505 @findex gnus-group-mark-buffer
1506 Mark all groups in the buffer (@code{gnus-group-mark-buffer}). 
1507
1508 @item M r
1509 @kindex M r (Group)
1510 @findex gnus-group-mark-regexp
1511 Mark all groups that match some regular expression
1512 (@code{gnus-group-mark-regexp}).  
1513 @end table
1514
1515 Also @pxref{Process/Prefix}.
1516
1517 @findex gnus-group-universal-argument
1518 If you want to execute some command on all groups that have been marked
1519 with the process mark, you can use the @kbd{M-&}
1520 (@code{gnus-group-universal-argument}) command.  It will prompt you for
1521 the command to be executed.
1522
1523
1524 @node Foreign Groups
1525 @section Foreign Groups
1526
1527 Here are some group mode commands for making and editing general foreign
1528 groups, as well as commands to ease the creation of a few
1529 special-purpose groups:
1530
1531 @table @kbd
1532
1533 @item G m
1534 @kindex G m (Group)
1535 @findex gnus-group-make-group
1536 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
1537 for a name, a method and possibly an @dfn{address}.  For an easier way
1538 to subscribe to @sc{nntp} groups, @pxref{Browse Foreign Server}.
1539
1540 @item G r
1541 @kindex G r (Group)
1542 @findex gnus-group-rename-group
1543 Rename the current group to something else
1544 (@code{gnus-group-rename-group}).  This is legal only on some
1545 groups---mail groups mostly.  This command might very well be quite slow
1546 on some backends.
1547
1548 @item G e
1549 @kindex G e (Group)
1550 @findex gnus-group-edit-group-method
1551 Enter a buffer where you can edit the select method of the current
1552 group (@code{gnus-group-edit-group-method}).
1553
1554 @item G p
1555 @kindex G p (Group)
1556 @findex gnus-group-edit-group-parameters
1557 Enter a buffer where you can edit the group parameters
1558 (@code{gnus-group-edit-group-parameters}). 
1559
1560 @item G E
1561 @kindex G E (Group)
1562 @findex gnus-group-edit-group
1563 Enter a buffer where you can edit the group info
1564 (@code{gnus-group-edit-group}).
1565
1566 @item G d
1567 @kindex G d (Group)
1568 @findex gnus-group-make-directory-group
1569 Make a directory group.  You will be prompted for a directory name
1570 (@code{gnus-group-make-directory-group}).  
1571
1572 @item G h 
1573 @kindex G h (Group)
1574 @findex gnus-group-make-help-group
1575 Make the Gnus help group (@code{gnus-group-make-help-group}).
1576
1577 @item G a
1578 @kindex G a (Group)
1579 @findex gnus-group-make-archive-group
1580 @vindex gnus-group-archive-directory
1581 @vindex gnus-group-recent-archive-directory
1582 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
1583 default a group pointing to the most recent articles will be created
1584 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
1585 group will be created from @code{gnus-group-archive-directory}.
1586
1587 @item G k
1588 @kindex G k (Group)
1589 @findex gnus-group-make-kiboze-group
1590 Make a kiboze group.  You will be prompted for a name, for a regexp to
1591 match groups to be ``included'' in the kiboze group, and a series of
1592 strings to match on headers (@code{gnus-group-make-kiboze-group}).
1593 @xref{Kibozed Groups}
1594
1595 @item G D
1596 @kindex G D (Group)
1597 @findex gnus-group-enter-directory
1598 Read an arbitrary directory as if with were a newsgroup with the
1599 @code{nneething} backend (@code{gnus-group-enter-directory}).
1600
1601 @item G f
1602 @kindex G f (Group)
1603 @findex gnus-group-make-doc-group
1604 @cindex ClariNet Briefs
1605 Make a group based on some file or other
1606 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
1607 command, you will be prompted for a file name and a file type.
1608 Currently supported types are @code{babyl}, @code{mbox}, @code{digest},
1609 @code{mmdf}, @code{news}, @code{rnews}, @code{clari-briefs}, and
1610 @code{forward}.  If you run this command without a prefix, Gnus will
1611 guess at the file type.
1612
1613 @item G DEL
1614 @kindex G DEL (Group)
1615 @findex gnus-group-delete-group
1616 This function will delete the current group
1617 (@code{gnus-group-delete-group}).  If given a prefix, this function will
1618 actually delete all the articles in the group, and forcibly remove the
1619 group itself from the face of the Earth.  Use a prefix only if you are
1620 absolutely sure of what you are doing.
1621
1622 @item G V
1623 @kindex G V (Group)
1624 @findex gnus-group-make-empty-virtual
1625 Make a new, fresh, empty @code{nnvirtual} group
1626 (@code{gnus-group-make-empty-virtual}).
1627
1628 @item G v
1629 @kindex G v (Group)
1630 @findex gnus-group-add-to-virtual
1631 Add the current group to an @code{nnvirtual} group
1632 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
1633 @end table
1634
1635 @xref{Select Methods} for more information on the various select
1636 methods. 
1637
1638 @vindex gnus-activate-foreign-newsgroups
1639 If the @code{gnus-activate-foreign-newsgroups} is a positive number,
1640 Gnus will check all foreign groups with this level or lower at startup.
1641 This might take quite a while, especially if you subscribe to lots of
1642 groups from different @sc{nntp} servers.
1643
1644
1645 @node Group Parameters
1646 @section Group Parameters
1647 @cindex group parameters
1648
1649 Gnus stores all information on a group in a list that is usually known
1650 as the @dfn{group info}.  This list has from three to six elements.
1651 Here's an example info.
1652
1653 @lisp
1654 ("nnml:mail.ding" 3 ((1 . 232) 244 (256 . 270)) ((tick 246 249))
1655                   (nnml "private") ((to-address . "ding@@ifi.uio.no")))
1656 @end lisp
1657
1658 The first element is the @dfn{group name}, as Gnus knows the group,
1659 anyway.  The second element is the @dfn{subscription level}, which
1660 normally is a small integer.  The third element is a list of ranges of
1661 read articles.  The fourth element is a list of lists of article marks
1662 of various kinds.  The fifth element is the select method (or virtual
1663 server, if you like).  The sixth element is a list of @dfn{group
1664 parameters}, which is what this section is about.
1665
1666 Any of the last three elements may be missing if they are not required.
1667 In fact, the vast majority of groups will normally only have the first
1668 three elements, which saves quite a lot of cons cells.
1669
1670 The group parameters store information local to a particular group:
1671
1672 @table @code
1673 @item to-address
1674 @cindex to-address
1675 If the group parameter list contains an element that looks like
1676 @code{(to-address .  "some@@where.com")}, that address will be used by
1677 the backend when doing followups and posts.  This is primarily useful in
1678 mail groups that represent closed mailing lists---mailing lists where
1679 it's expected that everybody that writes to the mailing list is
1680 subscribed to it.  Since using this parameter ensures that the mail only
1681 goes to the mailing list itself, it means that members won't receive two
1682 copies of your followups.
1683
1684 Using @code{to-address} will actually work whether the group is foreign
1685 or not.  Let's say there's a group on the server that is called
1686 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
1687 the articles from a mail-to-news gateway.  Posting directly to this
1688 group is therefore impossible---you have to send mail to the mailing
1689 list address instead. 
1690
1691 @item to-list
1692 @cindex to-list
1693 If the group parameter list has an element that looks like
1694 @code{(to-list . "some@@where.com")}, that address will be used when
1695 doing a @kbd{a} in any group.  It is totally ignored when doing a
1696 followup---except that if it is present in a news group, you'll get mail
1697 group semantics when doing @kbd{f}.
1698
1699 @item broken-reply-to
1700 @cindex broken-reply-to
1701 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
1702 headers in this group are to be ignored.  This can be useful if you're
1703 reading a mailing list group where the listserv has inserted
1704 @code{Reply-To} headers that point back to the listserv itself.  This is
1705 broken behavior.  So there!
1706
1707 @item to-group
1708 @cindex to-group
1709 If the group parameter list contains an element like @code{(to-group
1710 . "some.group.name")}, all posts will be sent to that group.
1711
1712 @item auto-expire
1713 @cindex auto-expire
1714 If this symbol is present in the group parameter list, all articles that
1715 are read will be marked as expirable.  For an alternative approach,
1716 @pxref{Expiring Mail}.
1717
1718 @item total-expire
1719 @cindex total-expire
1720 If this symbol is present, all read articles will be put through the
1721 expiry process, even if they are not marked as expirable.  Use with
1722 caution. 
1723
1724 @item expiry-wait
1725 @cindex expiry-wait
1726 @vindex nnmail-expiry-wait-function
1727 If the group parameter has an element that looks like @code{(expiry-wait
1728 . 10)}, this value will override any @code{nnmail-expiry-wait} and
1729 @code{nnmail-expiry-wait-function} when expiring expirable messages.
1730 The value can either be a number of days (not necessarily an integer) or
1731 the symbols @code{never} or @code{immediate}.
1732
1733 @item score-file
1734 @cindex score file group parameter
1735 Elements that look like @code{(score-file . "file")} will make
1736 @file{file} into the current score file for the group in question.  This
1737 means that all score commands you issue will end up in that file. 
1738
1739 @item adapt-file
1740 @cindex adapt file group parameter
1741 Elements that look like @code{(adapt-file . "file")} will make
1742 @file{file} into the current adaptive file for the group in question.
1743 All adaptive score entries will be put into this file.
1744
1745 @item admin-address
1746 When unsubscribing to a mailing list you should never send the
1747 unsubscription notice to the mailing list itself.  Instead, you'd send
1748 messages to the administrative address.  This parameter allows you to
1749 put the admin address somewhere convenient.
1750
1751 @item comment
1752 This parameter allows you to enter a arbitrary comment on the group.
1753
1754 @item @var{(variable form)}
1755 You can use the group parameters to set variables local to the group you
1756 are entering.  Say you want to turn threading off in
1757 @samp{news.answers}.  You'd then put @code{(gnus-show-threads nil)} in
1758 the group parameters of that group.  @code{gnus-show-threads} will be
1759 made into a local variable in the summary buffer you enter, and the form
1760 @code{nil} will be @code{eval}ed there.  
1761
1762 This can also be used as a group-specific hook function, if you'd like.
1763 If you want to hear a beep when you enter the group
1764 @samp{alt.binaries.pictures.furniture}, you could put something like
1765 @code{(dummy-variable (ding))} in the parameters of that group.
1766 @code{dummy-variable} will be set to the result of the @code{(ding)}
1767 form, but who cares?
1768
1769 @end table
1770
1771 Use the @kbd{G p} command to edit group parameters of a group.
1772
1773 Also @xref{Topic Parameters}.
1774
1775
1776 @node Listing Groups
1777 @section Listing Groups
1778 @cindex group listing
1779
1780 These commands all list various slices of the groups that are available.
1781
1782 @table @kbd
1783
1784 @item l
1785 @itemx A s
1786 @kindex A s (Group)
1787 @kindex l (Group)
1788 @findex gnus-group-list-groups
1789 List all groups that have unread articles
1790 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
1791 command will list only groups of level ARG and lower.  By default, it
1792 only lists groups of level five or lower (i.e., just subscribed groups).
1793
1794 @item L
1795 @itemx A u
1796 @kindex A u (Group)
1797 @kindex L (Group)
1798 @findex gnus-group-list-all-groups
1799 List all groups, whether they have unread articles or not
1800 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
1801 this command will list only groups of level ARG and lower.  By default,
1802 it lists groups of level seven or lower (i.e., just subscribed and
1803 unsubscribed groups).
1804
1805 @item A l
1806 @kindex A l (Group)
1807 @findex gnus-group-list-level
1808 List all unread groups on a specific level
1809 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
1810 with no unread articles.
1811
1812 @item A k
1813 @kindex A k (Group)
1814 @findex gnus-group-list-killed
1815 List all killed groups (@code{gnus-group-list-killed}).  If given a
1816 prefix argument, really list all groups that are available, but aren't
1817 currently (un)subscribed.  This could entail reading the active file
1818 from the server.
1819
1820 @item A z
1821 @kindex A z (Group)
1822 @findex gnus-group-list-zombies
1823 List all zombie groups (@code{gnus-group-list-zombies}).
1824
1825 @item A m
1826 @kindex A m (Group)
1827 @findex gnus-group-list-matching
1828 List all unread, subscribed groups with names that match a regexp
1829 (@code{gnus-group-list-matching}). 
1830
1831 @item A M
1832 @kindex A M (Group)
1833 @findex gnus-group-list-all-matching
1834 List groups that match a regexp (@code{gnus-group-list-all-matching}).
1835
1836 @item A A
1837 @kindex A A (Group)
1838 @findex gnus-group-list-active
1839 List absolutely all groups that are in the active file(s) of the
1840 server(s) you are connected to (@code{gnus-group-list-active}).  This
1841 might very well take quite a while.  It might actually be a better idea
1842 to do a @kbd{A m} to list all matching, and just give @samp{.} as the
1843 thing to match on.
1844
1845 @item A a
1846 @kindex A a (Group)
1847 @findex gnus-group-apropos
1848 List all groups that have names that match a regexp
1849 (@code{gnus-group-apropos}).
1850
1851 @item A d
1852 @kindex A d (Group)
1853 @findex gnus-group-description-apropos
1854 List all groups that have names or descriptions that match a regexp
1855 (@code{gnus-group-description-apropos}).
1856
1857 @end table
1858
1859 @vindex gnus-permanently-visible-groups
1860 @cindex visible group parameter
1861 Groups that match the @code{gnus-permanently-visible-groups} regexp will
1862 always be shown, whether they have unread articles or not.  You can also
1863 add the @code{visible} element to the group parameters in question to
1864 get the same effect.
1865
1866 @vindex gnus-list-groups-with-ticked-articles
1867 Groups that have just ticked articles in it are normally listed in the
1868 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
1869 @code{nil}, these groups will be treated just like totally empty
1870 groups.  It is @code{t} by default.
1871
1872
1873 @node Sorting Groups
1874 @section Sorting Groups
1875 @cindex sorting groups
1876
1877 @kindex C-c C-s (Group)
1878 @findex gnus-group-sort-groups
1879 @vindex gnus-group-sort-function
1880 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
1881 group buffer according to the function(s) given by the
1882 @code{gnus-group-sort-function} variable.  Available sorting functions
1883 include: 
1884
1885 @table @code
1886
1887 @item gnus-group-sort-by-alphabet
1888 @findex gnus-group-sort-by-alphabet
1889 Sort the group names alphabetically.  This is the default.
1890
1891 @item gnus-group-sort-by-level
1892 @findex gnus-group-sort-by-level
1893 Sort by group level.
1894
1895 @item gnus-group-sort-by-score
1896 @findex gnus-group-sort-by-score
1897 Sort by group score.
1898
1899 @item gnus-group-sort-by-rank
1900 @findex gnus-group-sort-by-rank
1901 Sort by group score and then the group level.  The level and the score
1902 are, when taken together, the group's @dfn{rank}. 
1903
1904 @item gnus-group-sort-by-unread
1905 @findex gnus-group-sort-by-unread
1906 Sort by number of unread articles.
1907
1908 @item gnus-group-sort-by-method
1909 @findex gnus-group-sort-by-method
1910 Sort by alphabetically on the select method.
1911
1912
1913 @end table
1914
1915 @code{gnus-group-sort-function} can also be a list of sorting
1916 functions.  In that case, the most significant sort key function must be
1917 the last one.
1918
1919
1920 There are also a number of commands for sorting directly according to
1921 some sorting criteria:
1922
1923 @table @kbd
1924 @item G S a
1925 @kindex G S a (Group)
1926 @findex gnus-group-sort-groups-by-alphabet
1927 Sort the group buffer alphabetically by group name
1928 (@code{gnus-group-sort-groups-by-alphabet}). 
1929
1930 @item G S u
1931 @kindex G S u (Group)
1932 @findex gnus-group-sort-groups-by-unread
1933 Sort the group buffer by the number of unread articles
1934 (@code{gnus-group-sort-groups-by-unread}).
1935
1936 @item G S l
1937 @kindex G S l (Group)
1938 @findex gnus-group-sort-groups-by-level
1939 Sort the group buffer by group level
1940 (@code{gnus-group-sort-groups-by-level}). 
1941
1942 @item G S v
1943 @kindex G S v (Group)
1944 @findex gnus-group-sort-groups-by-score
1945 Sort the group buffer by group score
1946 (@code{gnus-group-sort-groups-by-score}). 
1947
1948 @item G S r
1949 @kindex G S r (Group)
1950 @findex gnus-group-sort-groups-by-rank
1951 Sort the group buffer by group level
1952 (@code{gnus-group-sort-groups-by-rank}). 
1953
1954 @item G S m
1955 @kindex G S m (Group)
1956 @findex gnus-group-sort-groups-by-method
1957 Sort the group buffer alphabetically by backend name
1958 (@code{gnus-group-sort-groups-by-method}). 
1959
1960 @end table
1961
1962 When given a prefix, all these commands will sort in reverse order. 
1963
1964
1965 @node Group Maintenance
1966 @section Group Maintenance
1967 @cindex bogus groups
1968
1969 @table @kbd
1970 @item b
1971 @kindex b (Group)
1972 @findex gnus-group-check-bogus-groups
1973 Find bogus groups and delete them
1974 (@code{gnus-group-check-bogus-groups}).
1975
1976 @item F
1977 @kindex F (Group)
1978 @findex gnus-find-new-newsgroups
1979 Find new groups and process them (@code{gnus-find-new-newsgroups}).  If
1980 given a prefix, use the @code{ask-server} method to query the server for
1981 new groups.
1982
1983 @item C-c C-x
1984 @kindex C-c C-x (Group)
1985 @findex gnus-group-expire-articles
1986 Run all expirable articles in the current group through the expiry
1987 process (if any) (@code{gnus-group-expire-articles}).
1988
1989 @item C-c M-C-x
1990 @kindex C-c M-C-x (Group)
1991 @findex gnus-group-expire-all-groups
1992 Run all articles in all groups through the expiry process
1993 (@code{gnus-group-expire-all-groups}).
1994
1995 @end table
1996
1997
1998 @node Browse Foreign Server
1999 @section Browse Foreign Server
2000 @cindex foreign servers
2001 @cindex browsing servers
2002
2003 @table @kbd
2004 @item B
2005 @kindex B (Group)
2006 @findex gnus-group-browse-foreign-server
2007 You will be queried for a select method and a server name.  Gnus will
2008 then attempt to contact this server and let you browse the groups there
2009 (@code{gnus-group-browse-foreign-server}).
2010 @end table
2011
2012 @findex gnus-browse-mode
2013 A new buffer with a list of available groups will appear.  This buffer
2014 will be use the @code{gnus-browse-mode}.  This buffer looks a bit
2015 (well, a lot) like a normal group buffer, but with one major difference
2016 - you can't enter any of the groups.  If you want to read any of the
2017 news available on that server, you have to subscribe to the groups you
2018 think may be interesting, and then you have to exit this buffer.  The
2019 new groups will be added to the group buffer, and then you can read them
2020 as you would any other group.
2021
2022 Future versions of Gnus may possibly permit reading groups straight from
2023 the browse buffer.
2024
2025 Here's a list of keystrokes available in the browse mode:
2026
2027 @table @kbd
2028 @item n
2029 @kindex n (Browse)
2030 @findex gnus-group-next-group
2031 Go to the next group (@code{gnus-group-next-group}).
2032
2033 @item p
2034 @kindex p (Browse)
2035 @findex gnus-group-prev-group
2036 Go to the previous group (@code{gnus-group-prev-group}).
2037
2038 @item SPACE
2039 @kindex SPACE (Browse)
2040 @findex gnus-browse-read-group
2041 Enter the current group and display the first article
2042 (@code{gnus-browse-read-group}). 
2043
2044 @item RET
2045 @kindex RET (Browse)
2046 @findex gnus-browse-select-group
2047 Enter the current group (@code{gnus-browse-select-group}). 
2048
2049 @item u
2050 @kindex u (Browse)
2051 @findex gnus-browse-unsubscribe-current-group
2052 Unsubscribe to the current group, or, as will be the case here,
2053 subscribe to it (@code{gnus-browse-unsubscribe-current-group}). 
2054
2055 @item l
2056 @itemx q
2057 @kindex q (Browse)
2058 @kindex l (Browse)
2059 @findex gnus-browse-exit
2060 Exit browse mode (@code{gnus-browse-exit}).
2061
2062 @item ?
2063 @kindex ? (Browse)
2064 @findex gnus-browse-describe-briefly
2065 Describe browse mode briefly (well, there's not much to describe, is
2066 there) (@code{gnus-browse-describe-briefly}).
2067 @end table
2068
2069
2070 @node Exiting Gnus
2071 @section Exiting Gnus
2072 @cindex exiting Gnus
2073
2074 Yes, Gnus is ex(c)iting.
2075
2076 @table @kbd
2077 @item z
2078 @kindex z (Group)
2079 @findex gnus-group-suspend
2080 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
2081 but it kills all buffers except the Group buffer.  I'm not sure why this
2082 is a gain, but then who am I to judge?
2083
2084 @item q
2085 @kindex q (Group)
2086 @findex gnus-group-exit
2087 Quit Gnus (@code{gnus-group-exit}).
2088
2089 @item Q
2090 @kindex Q (Group)
2091 @findex gnus-group-quit
2092 Quit Gnus without saving any startup files (@code{gnus-group-quit}).
2093 @end table
2094
2095 @vindex gnus-exit-gnus-hook
2096 @vindex gnus-suspend-gnus-hook
2097 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
2098 @code{gnus-exit-gnus-hook} is called when you quit Gnus, while
2099 @code{gnus-after-exiting-gnus-hook} is called as the final item when
2100 exiting Gnus.
2101
2102 @findex gnus-unload
2103 @cindex unloading
2104 If you wish to completely unload Gnus and all its adherents, you can use
2105 the @code{gnus-unload} command.  This command is also very handy when
2106 trying to customize meta-variables.
2107
2108 Note:
2109
2110 @quotation
2111 Miss Lisa Cannifax, while sitting in English class, feels her feet go
2112 numbly heavy and herself fall into a hazy trance as the boy sitting
2113 behind her drew repeated lines with his pencil across the back of her
2114 plastic chair.
2115 @end quotation
2116
2117
2118 @node Group Topics
2119 @section Group Topics
2120 @cindex topics
2121
2122 If you read lots and lots of groups, it might be convenient to group
2123 them hierarchically according to topics.  You put your Emacs groups over
2124 here, your sex groups over there, and the rest (what, two groups or so?)
2125 you put in some misc section that you never bother with anyway.  You can
2126 even group the Emacs sex groups as a sub-topic to either the Emacs
2127 groups or the sex groups---or both!  Go wild!
2128
2129 @findex gnus-topic-mode
2130 @kindex t (Group)
2131 To get this @emph{fab} functionality you simply turn on (ooh!) the
2132 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
2133 is a toggling command.)
2134
2135 Go ahead, just try it.  I'll still be here when you get back.  La de
2136 dum...  Nice tune, that...  la la la...  What, you're back? Yes, and now
2137 press @kbd{l}.  There.  All your groups are now listed under
2138 @samp{misc}.  Doesn't that make you feel all warm and fuzzy?  Hot and
2139 bothered?
2140
2141 If you want this permanently enabled, you should add that minor mode to
2142 the hook for the group mode:
2143
2144 @lisp
2145 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
2146 @end lisp
2147
2148 @menu 
2149 * Topic Variables::    How to customize the topics the Lisp Way.
2150 * Topic Commands::     Interactive E-Z commands.
2151 * Topic Topology::     A map of the world.
2152 * Topic Parameters::   Parameters that apply to all groups in a topic.
2153 @end menu
2154
2155
2156 @node Topic Variables
2157 @subsection Topic Variables
2158 @cindex topic variables
2159
2160 Now, if you select a topic, if will fold/unfold that topic, which is
2161 really neat, I think.
2162
2163 @vindex gnus-topic-line-format
2164 The topic lines themselves are created according to the
2165 @code{gnus-topic-line-format} variable.  @xref{Formatting Variables}.
2166 Elements allowed are:
2167
2168 @table @samp
2169 @item i
2170 Indentation.
2171 @item n
2172 Topic name.
2173 @item v
2174 Visibility.
2175 @item l
2176 Level.
2177 @item g
2178 Number of groups in the topic.
2179 @item a
2180 Number of unread articles in the topic.
2181 @item A 
2182 Number of unread articles in the topic and all its subtopics. 
2183 @end table
2184
2185 @vindex gnus-topic-indent-level
2186 Each sub-topic (and the groups in the sub-topics) will be indented with
2187 @code{gnus-topic-indent-level} times the topic level number of spaces.
2188 The default is @code{2}.
2189
2190 @vindex gnus-topic-mode-hook
2191 @code{gnus-topic-mode-hook} is called in topic minor mode buffers. 
2192
2193
2194 @node Topic Commands
2195 @subsection Topic Commands
2196 @cindex topic commands
2197
2198 When the topic minor mode is turned on, a new @kbd{T} submap will be
2199 available.  In addition, a few of the standard keys change their
2200 definitions slightly.
2201
2202 @table @kbd
2203
2204 @item T n
2205 @kindex T n (Topic)
2206 @findex gnus-topic-create-topic
2207 Prompt for a new topic name and create it 
2208 (@code{gnus-topic-create-topic}). 
2209
2210 @item T m
2211 @kindex T m (Topic)
2212 @findex gnus-topic-move-group
2213 Move the current group to some other topic
2214 (@code{gnus-topic-move-group}).  This command understands the
2215 process/prefix convention (@pxref{Process/Prefix}).
2216
2217 @item T c
2218 @kindex T c (Topic)
2219 @findex gnus-topic-copy-group
2220 Copy the current group to some other topic
2221 (@code{gnus-topic-copy-group}).  This command understands the
2222 process/prefix convention (@pxref{Process/Prefix}).
2223
2224 @item T D
2225 @kindex T D (Topic)
2226 @findex gnus-topic-remove-group
2227 Remove a group from the current topic (@code{gnus-topic-remove-group}).
2228 This command understands the process/prefix convention
2229 (@pxref{Process/Prefix}).
2230
2231 @item T M
2232 @kindex T M (Topic)
2233 @findex gnus-topic-move-matching
2234 Move all groups that match some regular expression to a topic
2235 (@code{gnus-topic-move-matching}). 
2236
2237 @item T C
2238 @kindex T C (Topic)
2239 @findex gnus-topic-copy-matching
2240 Copy all groups that match some regular expression to a topic
2241 (@code{gnus-topic-copy-matching}). 
2242
2243 @item T #
2244 @kindex T # (Topic)
2245 @findex gnus-topic-mark-topic
2246 Mark all groups in the current topic with the process mark
2247 (@code{gnus-topic-mark-topic}). 
2248
2249 @item T M-#
2250 @kindex T M-# (Topic)
2251 @findex gnus-topic-unmark-topic
2252 Remove the process mark from all groups in the current topic
2253 (@code{gnus-topic-unmark-topic}). 
2254
2255 @item RET
2256 @kindex RET (Topic)
2257 @findex gnus-topic-select-group
2258 @itemx SPACE
2259 Either select a group or fold a topic (@code{gnus-topic-select-group}).
2260 When you perform this command on a group, you'll enter the group, as
2261 usual.  When done on a topic line, the topic will be folded (if it was
2262 visible) or unfolded (if it was folded already).  So it's basically a
2263 toggling command on topics.  In addition, if you give a numerical
2264 prefix, group on that level (and lower) will be displayed.
2265
2266 @item T TAB
2267 @kindex T TAB (Topic)
2268 @findex gnus-topic-indent
2269 ``Indent'' the current topic so that it becomes a sub-topic of the
2270 previous topic (@code{gnus-topic-indent}).  If given a prefix,
2271 ``un-indent'' the topic instead.
2272
2273 @item C-k
2274 @kindex C-k (Topic)
2275 @findex gnus-topic-kill-group
2276 Kill a group or topic (@code{gnus-topic-kill-group}).  
2277
2278 @item C-y
2279 @kindex C-y (Topic)
2280 @findex gnus-topic-yank-group
2281 Yank the previously killed group or topic (@code{gnus-topic-yank-group}).
2282 Note that all topics will be yanked before all groups.
2283
2284 @item T r
2285 @kindex T r (Topic)
2286 @findex gnus-topic-rename
2287 Rename a topic (@code{gnus-topic-rename}). 
2288
2289 @item T DEL
2290 @kindex T DEL (Topic)
2291 @findex gnus-topic-delete
2292 Delete an empty topic (@code{gnus-topic-delete}). 
2293
2294 @item A T
2295 @kindex A T (Topic)
2296 @findex gnus-topic-list-active
2297 List all groups that Gnus knows about in a topics-ified way
2298 (@code{gnus-topic-list-active}).
2299
2300 @item G p
2301 @kindex G p (Topic)
2302 @findex gnus-topic-edit-parameters
2303 @cindex group parameters
2304 @cindex topic parameters
2305 @cindex parameters
2306 Edit the topic parameters (@code{gnus-topic-edit-parameters}).
2307 @xref{Topic Parameters}.
2308
2309 @end table
2310
2311
2312 @node Topic Topology
2313 @subsection Topic Topology
2314 @cindex topic topology
2315 @cindex topology
2316
2317 So, let's have a look at an example group buffer:
2318
2319 @example
2320 Gnus
2321   Emacs -- I wuw it!
2322      3: comp.emacs
2323      2: alt.religion.emacs
2324     Naughty Emacs
2325      452: alt.sex.emacs
2326        0: comp.talk.emacs.recovery
2327   Misc
2328      8: comp.binaries.fractals
2329     13: comp.sources.unix
2330 @end example
2331
2332 So, here we have one top-level topic, two topics under that, and one
2333 sub-topic under one of the sub-topics.  (There is always just one (1)
2334 top-level topic).  This topology can be expressed as follows:
2335
2336 @lisp
2337 (("Gnus" visible)
2338  (("Emacs -- I wuw it!" visible) 
2339   (("Naughty Emacs" visible)))
2340  (("Misc" visible)))
2341 @end lisp
2342
2343 @vindex gnus-topic-topology
2344 This is in fact how the variable @code{gnus-topic-topology} would look
2345 for the display above.  That variable is saved in the @file{.newsrc.eld}
2346 file, and shouldn't be messed with manually---unless you really want
2347 to.  Since this variable is read from the @file{.newsrc.eld} file,
2348 setting it in any other startup files will have no effect.  
2349
2350 This topology shows what topics are sub-topics of what topics (right),
2351 and which topics are visible.  Two settings are currently
2352 allowed---@code{visible} and @code{invisible}.
2353
2354
2355 @node Topic Parameters
2356 @subsection Topic Parameters
2357
2358 All groups in a topic will inherit group parameters from the parent (and
2359 ancestor) topic parameters.  All legal group parameters are legal topic
2360 parameters (@pxref{Group Parameters}).  
2361
2362 Group parameters (of course) override topic parameters, and topic
2363 parameters in sub-topics override topic parameters in super-topics.  You
2364 know.  Normal inheretance rules.  (@dfn{Rules} is here a noun, not a
2365 verb, although you may feel free to disagree with me here.)
2366
2367 @example
2368 Gnus
2369   Emacs
2370      3: comp.emacs
2371      2: alt.religion.emacs
2372    452: alt.sex.emacs
2373     Relief
2374      452: alt.sex.emacs
2375        0: comp.talk.emacs.recovery
2376   Misc
2377      8: comp.binaries.fractals
2378     13: comp.sources.unix
2379    452: alt.sex.emacs
2380 @end example
2381
2382 Now, the @samp{Emacs} topic has the topic parameter 
2383 @code{(score-file . "emacs.SCORE")}; the @samp{Relief} topic has the topic
2384 parameter @code{(score-file . "relief.SCORE")}; and the @samp{Misc}
2385 topic has the topic parameter @code{(score-file . "emacs.SCORE")}.  In
2386 addition, @samp{alt.religion.emacs} has the group parameter
2387 @code{(score-file . "religion.SCORE")}.
2388
2389 Now, when you enter @samp{alt.sex.emacs} in the @samp{Relief} topic, you
2390 will get the @file{relief.SCORE} home score file.  If you enter the same
2391 group in the @samp{Emacs} topic, you'll get the @file{emacs.SCORE} home
2392 score file.  If you enter @samp{alt.religion.emacs}, you'll get the
2393 @file{religion.SCORE} home score file.  
2394
2395 This seems rather simple and self-evident, doesn't it?  Well, yes.  But
2396 there are some problems, especially with the @code{total-expiry}
2397 parameter.  Say you have a mail group in two topics; one with
2398 @code{total-expiry} and one without.  What happens when you do @kbd{M-x
2399 gnus-expire-all-expirable-groups}?  Gnus has no way of telling which one
2400 of these topics you mean to expire articles from, so anything may
2401 happen.  In fact, I hereby declare that it is @dfn{undefined} what
2402 happens.  You just have to be careful if you do stuff like that.
2403
2404
2405 @node Misc Group Stuff
2406 @section Misc Group Stuff
2407
2408 @menu
2409 * Scanning New Messages:: Asking Gnus to see whether new messages have arrived.
2410 * Group Information::     Information and help on groups and Gnus.
2411 * File Commands::         Reading and writing the Gnus files.
2412 @end menu
2413
2414 @table @kbd
2415
2416 @item ^
2417 @kindex ^ (Group)
2418 @findex gnus-group-enter-server-mode
2419 Enter the server buffer (@code{gnus-group-enter-server-mode}). @xref{The
2420 Server Buffer}.
2421
2422 @item a
2423 @kindex a (Group)
2424 @findex gnus-group-post-news
2425 Post an article to a group (@code{gnus-group-post-news}).  The current
2426 group name will be used as the default.
2427
2428 @item m
2429 @kindex m (Group)
2430 @findex gnus-group-mail
2431 Mail a message somewhere (@code{gnus-group-mail}).
2432
2433 @end table
2434
2435 Variables for the group buffer:
2436
2437 @table @code
2438
2439 @item gnus-group-mode-hook
2440 @vindex gnus-group-mode-hook
2441 @code{gnus-group-mode-hook} is called after the group buffer has been
2442 created. 
2443
2444 @item gnus-group-prepare-hook
2445 @vindex gnus-group-prepare-hook
2446 @code{gnus-group-prepare-hook} is called after the group buffer is
2447 generated.  It may be used to modify the buffer in some strange,
2448 unnatural way.
2449
2450 @item gnus-permanently-visible-groups
2451 @vindex gnus-permanently-visible-groups
2452 Groups matching this regexp will always be listed in the group buffer,
2453 whether they are empty or not.
2454
2455 @end table
2456
2457
2458 @node Scanning New Messages
2459 @subsection Scanning New Messages
2460 @cindex new messages
2461 @cindex scanning new news
2462
2463 @table @kbd
2464
2465 @item g
2466 @kindex g (Group)
2467 @findex gnus-group-get-new-news
2468 Check the server(s) for new articles.  If the numerical prefix is used,
2469 this command will check only groups of level @var{arg} and lower
2470 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
2471 command will force a total rereading of the active file(s) from the
2472 backend(s).
2473
2474 @item M-g
2475 @kindex M-g (Group)
2476 @findex gnus-group-get-new-news-this-group
2477 @vindex gnus-goto-next-group-when-activating
2478 Check whether new articles have arrived in the current group
2479 (@code{gnus-group-get-new-news-this-group}).  The
2480 @code{gnus-goto-next-group-when-activating} variable controls whether
2481 this command is to move point to the next group or not.  It is @code{t}
2482 by default.
2483
2484 @findex gnus-activate-all-groups
2485 @cindex activating groups
2486 @item C-c M-g
2487 @kindex C-c M-g (Group)
2488 Activate absolutely all groups (@code{gnus-activate-all-groups}). 
2489
2490 @item R
2491 @kindex R (Group)
2492 @cindex restarting
2493 @findex gnus-group-restart
2494 Restart Gnus (@code{gnus-group-restart}).
2495
2496 @end table
2497
2498 @vindex gnus-get-new-news-hook
2499 @code{gnus-get-new-news-hook} is run just before checking for new news. 
2500
2501 @vindex gnus-after-getting-new-news-hook
2502 @code{gnus-after-getting-new-news-hook} is run after checking for new
2503 news.
2504
2505
2506 @node Group Information
2507 @subsection Group Information
2508 @cindex group information
2509 @cindex information on groups
2510
2511 @table @kbd
2512
2513 @item M-f
2514 @kindex M-f (Group)
2515 @findex gnus-group-fetch-faq
2516 @cindex FAQ
2517 @cindex ange-ftp
2518 Try to fetch the FAQ for the current group
2519 (@code{gnus-group-fetch-faq}).  Gnus will try to get the FAQ from
2520 @code{gnus-group-faq-directory}, which is usually a directory on a
2521 remote machine.  @code{ange-ftp} will be used for fetching the file.
2522
2523 @item D
2524 @kindex D (Group)
2525 @cindex describing groups
2526 @cindex group description
2527 @findex gnus-group-describe-group
2528 Describe the current group (@code{gnus-group-describe-group}).  If given
2529 a prefix, force Gnus to re-read the description from the server.
2530
2531 @item M-d
2532 @kindex M-d (Group)
2533 @findex gnus-group-describe-all-groups
2534 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
2535 prefix, force Gnus to re-read the description file from the server.
2536
2537 @item V
2538 @kindex V (Group)
2539 @cindex version
2540 @findex gnus-version
2541 Display current Gnus version numbers (@code{gnus-version}).
2542
2543 @item ?
2544 @kindex ? (Group)
2545 @findex gnus-group-describe-briefly
2546 Give a very short help message (@code{gnus-group-describe-briefly}).
2547
2548 @item C-c C-i
2549 @kindex C-c C-i (Group)
2550 @cindex info
2551 @cindex manual
2552 @findex gnus-info-find-node
2553 Go to the Gnus info node (@code{gnus-info-find-node}).
2554 @end table
2555
2556
2557 @node File Commands
2558 @subsection File Commands
2559 @cindex file commands
2560
2561 @table @kbd
2562
2563 @item r
2564 @kindex r (Group)
2565 @findex gnus-group-read-init-file
2566 @vindex gnus-init-file
2567 @cindex reading init file
2568 Read the init file (@code{gnus-init-file}, which defaults to
2569 @file{~/.gnus}) (@code{gnus-group-read-init-file}).
2570
2571 @item s
2572 @kindex s (Group)
2573 @findex gnus-group-save-newsrc
2574 @cindex saving .newsrc
2575 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
2576 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
2577 file(s) whether Gnus thinks it is necessary or not.
2578
2579 @c @item Z
2580 @c @kindex Z (Group)
2581 @c @findex gnus-group-clear-dribble
2582 @c Clear the dribble buffer (@code{gnus-group-clear-dribble}).
2583
2584 @end table
2585
2586
2587 @node The Summary Buffer
2588 @chapter The Summary Buffer
2589 @cindex summary buffer
2590
2591 A line for each article is displayed in the summary buffer.  You can
2592 move around, read articles, post articles and reply to articles.
2593
2594 @menu
2595 * Summary Buffer Format::       Deciding how the summary buffer is to look.
2596 * Summary Maneuvering::         Moving around the summary buffer.
2597 * Choosing Articles::           Reading articles.
2598 * Paging the Article::          Scrolling the current article.
2599 * Reply Followup and Post::     Posting articles.
2600 * Canceling and Superseding::   ``Whoops, I shouldn't have called him that.''
2601 * Marking Articles::            Marking articles as read, expirable, etc.
2602 * Limiting::                    You can limit the summary buffer.
2603 * Threading::                   How threads are made.
2604 * Sorting::                     How articles and threads are sorted.
2605 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
2606 * Article Caching::             You may store articles in a cache.
2607 * Persistent Articles::         Making articles expiry-resistant.
2608 * Article Backlog::             Having already read articles hang around.
2609 * Saving Articles::             Ways of customizing article saving.
2610 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
2611 * Article Treatment::           The article buffer can be mangled at will.
2612 * Summary Sorting::             Sorting the summary buffer in various ways.
2613 * Finding the Parent::          No child support? Get the parent.
2614 * Alternative Approaches::      Reading using non-default summaries.
2615 * Tree Display::                A more visual display of threads.
2616 * Mail Group Commands::         Some commands can only be used in mail groups.
2617 * Various Summary Stuff::       What didn't fit anywhere else.
2618 * Exiting the Summary Buffer::  Returning to the Group buffer.
2619 * Crosspost Handling::          How crossposted articles are dealt with.
2620 * Duplicate Suppression::       An alternative when crosspost handling fails.
2621 @end menu
2622
2623
2624 @node Summary Buffer Format
2625 @section Summary Buffer Format
2626 @cindex summary buffer format
2627
2628 @menu
2629 * Summary Buffer Lines::     You can specify how summary lines should look.
2630 * Summary Buffer Mode Line:: You can say how the mode line should look.
2631 * Summary Highlighting::     Making the summary buffer all pretty and nice.
2632 @end menu
2633
2634 @findex mail-extract-address-components
2635 @findex gnus-extract-address-components
2636 @vindex gnus-extract-address-components
2637 Gnus will use the value of the @code{gnus-extract-address-components}
2638 variable as a function for getting the name and address parts of a
2639 @code{From} header.  Two pre-defined function exist:
2640 @code{gnus-extract-address-components}, which is the default, quite
2641 fast, and too simplistic solution; and
2642 @code{mail-extract-address-components}, which works very nicely, but is
2643 slower.  The default function will return the wrong answer in 5% of the
2644 cases.  If this is unacceptable to you, use the other function instead.
2645
2646 @vindex gnus-summary-same-subject
2647 @code{gnus-summary-same-subject} is a string indicating that the current
2648 article has the same subject as the previous.  This string will be used
2649 with those specs that require it.  The default is @samp{}.
2650
2651
2652 @node Summary Buffer Lines
2653 @subsection Summary Buffer Lines
2654
2655 @vindex gnus-summary-line-format
2656 You can change the format of the lines in the summary buffer by changing
2657 the @code{gnus-summary-line-format} variable.  It works along the same
2658 lines a a normal @code{format} string, with some extensions.
2659
2660 The default string is @samp{%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n}.
2661
2662 The following format specification characters are understood:
2663
2664 @table @samp
2665 @item N 
2666 Article number.
2667 @item S
2668 Subject string.
2669 @item s
2670 Subject if the article is the root, @code{gnus-summary-same-subject}
2671 otherwise. 
2672 @item F
2673 Full @code{From} line.
2674 @item n
2675 The name (from the @code{From} header).
2676 @item a
2677 The name (from the @code{From} header).  This differs from the @code{n}
2678 spec in that it uses @code{gnus-extract-address-components}, which is
2679 slower, but may be more thorough.
2680 @item A
2681 The address (from the @code{From} header).  This works the same way as
2682 the @code{a} spec.
2683 @item L
2684 Number of lines in the article.
2685 @item c
2686 Number of characters in the article.
2687 @item I
2688 Indentation based on thread level (@pxref{Customizing Threading}).
2689 @item T
2690 Nothing if the article is a root and lots of spaces if it isn't (it
2691 pushes everything after it off the screen).
2692 @item \[
2693 Opening bracket, which is normally @samp{\[}, but can also be @samp{<}
2694 for adopted articles.
2695 @item \]
2696 Closing bracket, which is normally @samp{\]}, but can also be @samp{>}
2697 for adopted articles.
2698 @item >
2699 One space for each thread level.
2700 @item <
2701 Twenty minus thread level spaces.
2702 @item U
2703 Unread.
2704 @item R
2705 Replied.
2706 @item i
2707 Score as a number.
2708 @item z
2709 @vindex gnus-summary-zcore-fuzz
2710 Zcore, @samp{+} if above the default level and @samp{-} if below the
2711 default level.  If the difference between
2712 @code{gnus-summary-default-level} and the score is less than
2713 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
2714 @item V
2715 Total thread score.
2716 @item x
2717 @code{Xref}.
2718 @item D
2719 @code{Date}.
2720 @item M
2721 @code{Message-ID}.
2722 @item r
2723 @code{References}.
2724 @item t
2725 Number of articles in the current sub-thread.  Using this spec will slow
2726 down summary buffer generation somewhat.
2727 @item e
2728 A single character will be displayed if the article has any children. 
2729 @item P
2730 The line number.
2731 @item u
2732 User defined specifier.  The next character in the format string should
2733 be a letter.  @sc{gnus} will call the function
2734 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
2735 following @samp{%u}.  The function will be passed the current header as
2736 argument.  The function should return a string, which will be inserted
2737 into the summary just like information from any other summary specifier.
2738 @end table
2739
2740 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
2741 have to be handled with care.  For reasons of efficiency, Gnus will
2742 compute what column these characters will end up in, and ``hard-code''
2743 that.  This means that it is illegal to have these specs after a
2744 variable-length spec.  Well, you might not be arrested, but your summary
2745 buffer will look strange, which is bad enough.
2746
2747 The smart choice is to have these specs as far to the left as possible.
2748 (Isn't that the case with everything, though?  But I digress.)
2749
2750 This restriction may disappear in later versions of Gnus.
2751
2752
2753 @node Summary Buffer Mode Line
2754 @subsection Summary Buffer Mode Line
2755
2756 @vindex gnus-summary-mode-line-format
2757 You can also change the format of the summary mode bar.  Set
2758 @code{gnus-summary-mode-line-format} to whatever you like.  Here are the
2759 elements you can play with:
2760
2761 @table @samp
2762 @item G
2763 Group name.
2764 @item p
2765 Unprefixed group name.
2766 @item A
2767 Current article number.
2768 @item V
2769 Gnus version.
2770 @item U
2771 Number of unread articles in this group.
2772 @item e
2773 Number of unselected articles in this group.
2774 @item Z
2775 A string with the number of unread and unselected articles represented
2776 either as @samp{<%U(+%u) more>} if there are both unread and unselected
2777 articles, and just as @samp{<%U more>} if there are just unread articles
2778 and no unselected ones.
2779 @item g
2780 Shortish group name.  For instance, @samp{rec.arts.anime} will be
2781 shortened to @samp{r.a.anime}. 
2782 @item S
2783 Subject of the current article.
2784 @item u
2785 Used-defined spec.
2786 @item s
2787 Name of the current score file.
2788 @item d
2789 Number of dormant articles.
2790 @item t
2791 Number of ticked articles.
2792 @item r
2793 Number of articles that have been marked as read in this session. 
2794 @item E
2795 Number of articles expunged by the score files.
2796 @end table
2797
2798
2799 @node Summary Highlighting
2800 @subsection Summary Highlighting
2801
2802 @table @code
2803
2804 @item gnus-visual-mark-article-hook
2805 @vindex gnus-visual-mark-article-hook
2806 This hook is run after selecting an article.  It is meant to be used for
2807 highlighting the article in some way.  It is not run if
2808 @code{gnus-visual} is @code{nil}.
2809
2810 @item gnus-summary-update-hook
2811 @vindex gnus-summary-update-hook
2812 This hook is called when a summary line is changed.  It is not run if
2813 @code{gnus-visual} is @code{nil}.
2814
2815 @item gnus-summary-selected-face
2816 @vindex gnus-summary-selected-face
2817 This is the face (or @dfn{font} as some people call it) that is used to
2818 highlight the current article in the summary buffer.
2819
2820 @item gnus-summary-highlight
2821 @vindex gnus-summary-highlight
2822 Summary lines are highlighted according to this variable, which is a
2823 list where the elements are on the format @code{(FORM . FACE)}.  If you
2824 would, for instance, like ticked articles to be italic and high-scored
2825 articles to be bold, you could set this variable to something like
2826 @lisp
2827 (((eq mark gnus-ticked-mark) . italic)
2828  ((> score default) . bold))
2829 @end lisp
2830 As you may have guessed, if @var{FORM} returns a non-@code{nil} value,
2831 @var{FACE} will be applied to the line.
2832 @end table
2833
2834
2835 @node Summary Maneuvering
2836 @section Summary Maneuvering
2837 @cindex summary movement
2838
2839 All the straight movement commands understand the numeric prefix and
2840 behave pretty much as you'd expect. 
2841
2842 None of these commands select articles.
2843
2844 @table @kbd
2845 @item G M-n
2846 @itemx M-n
2847 @kindex M-n (Summary)
2848 @kindex G M-n (Summary)
2849 @findex gnus-summary-next-unread-subject
2850 Go to the next summary line of an unread article
2851 (@code{gnus-summary-next-unread-subject}). 
2852
2853 @item G M-p
2854 @itemx M-p
2855 @kindex M-p (Summary)
2856 @kindex G M-p (Summary)
2857 @findex gnus-summary-prev-unread-subject
2858 Go to the previous summary line of an unread article
2859 (@code{gnus-summary-prev-unread-subject}). 
2860
2861 @item G j
2862 @itemx j
2863 @kindex j (Summary)
2864 @kindex G j (Summary)
2865 @findex gnus-summary-goto-article
2866 Ask for an article number and then go that article
2867 (@code{gnus-summary-goto-article}). 
2868
2869 @item G g
2870 @kindex G g (Summary)
2871 @findex gnus-summary-goto-subject
2872 Ask for an article number and then go the summary line of that article
2873 (@code{gnus-summary-goto-subject}).
2874 @end table
2875
2876 If Gnus asks you to press a key to confirm going to the next group, you
2877 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
2878 buffer, searching for the next group to read without actually returning
2879 to the group buffer.
2880
2881 Variables related to summary movement:
2882
2883 @table @code
2884
2885 @vindex gnus-auto-select-next
2886 @item gnus-auto-select-next
2887 If you are at the end of the group and issue one of the movement
2888 commands, Gnus will offer to go to the next group.  If this variable is
2889 @code{t} and the next group is empty, Gnus will exit summary mode and
2890 return to the group buffer.  If this variable is neither @code{t} nor
2891 @code{nil}, Gnus will select the next group, no matter whether it has
2892 any unread articles or not.  As a special case, if this variable is
2893 @code{quietly}, Gnus will select the next group without asking for
2894 confirmation.  If this variable is @code{almost-quietly}, the same will
2895 happen only if you are located on the last article in the group.
2896 Finally, if this variable is @code{slightly-quietly}, the @kbd{Z n}
2897 command will go to the next group without confirmation.  Also
2898 @pxref{Group Levels}.
2899
2900 @item gnus-auto-select-same
2901 @vindex gnus-auto-select-same
2902 If non-@code{nil}, all the movement commands will try to go to the next
2903 article with the same subject as the current.  (@dfn{Same} here might
2904 mean @dfn{roughly equal}.  See @code{gnus-summary-gather-subject-limit}
2905 for details (@pxref{Customizing Threading}).)  This variable is not
2906 particularly useful if you use a threaded display.
2907
2908 @item gnus-summary-check-current
2909 @vindex gnus-summary-check-current
2910 If non-@code{nil}, all the ``unread'' movement commands will not proceed
2911 to the next (or previous) article if the current article is unread.
2912 Instead, they will choose the current article.
2913
2914 @item gnus-auto-center-summary
2915 @vindex gnus-auto-center-summary
2916 If non-@code{nil}, Gnus will keep the point in the summary buffer
2917 centered at all times.  This makes things quite tidy, but if you have a
2918 slow network connection, or simply do not like this un-Emacsism, you can
2919 set this variable to @code{nil} to get the normal Emacs scrolling
2920 action.  This will also inhibit horizontal re-centering of the summary
2921 buffer, which might make it more inconvenient to read extremely long
2922 threads.
2923
2924 @end table
2925
2926
2927 @node Choosing Articles
2928 @section Choosing Articles
2929 @cindex selecting articles
2930
2931 None of the following movement commands understand the numeric prefix,
2932 and they all select and display an article.
2933
2934 @table @kbd
2935 @item SPACE
2936 @kindex SPACE (Summary)
2937 @findex gnus-summary-next-page
2938 Select the current article, or, if that one's read already, the next
2939 unread article (@code{gnus-summary-next-page}).
2940
2941 @item G n
2942 @itemx n
2943 @kindex n (Summary)
2944 @kindex G n (Summary)
2945 @findex gnus-summary-next-unread-article
2946 Go to next unread article (@code{gnus-summary-next-unread-article}).
2947
2948 @item G p
2949 @itemx p
2950 @kindex p (Summary)
2951 @findex gnus-summary-prev-unread-article
2952 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
2953
2954 @item G N
2955 @itemx N
2956 @kindex N (Summary)
2957 @kindex G N (Summary)
2958 @findex gnus-summary-next-article
2959 Go to the next article (@code{gnus-summary-next-article}).
2960
2961 @item G P
2962 @itemx P
2963 @kindex P (Summary)
2964 @kindex G P (Summary)
2965 @findex gnus-summary-prev-article
2966 Go to the previous article (@code{gnus-summary-prev-article}).
2967
2968 @item G C-n
2969 @kindex G C-n (Summary)
2970 @findex gnus-summary-next-same-subject
2971 Go to the next article with the same subject
2972 (@code{gnus-summary-next-same-subject}). 
2973
2974 @item G C-p
2975 @kindex G C-p (Summary)
2976 @findex gnus-summary-prev-same-subject
2977 Go to the previous article with the same subject
2978 (@code{gnus-summary-prev-same-subject}). 
2979
2980 @item G f
2981 @itemx .
2982 @kindex G f  (Summary)
2983 @kindex .  (Summary)
2984 @findex gnus-summary-first-unread-article
2985 Go to the first unread article
2986 (@code{gnus-summary-first-unread-article}).
2987
2988 @item G b
2989 @itemx ,
2990 @kindex G b (Summary)
2991 @kindex , (Summary)
2992 @findex gnus-summary-best-unread-article
2993 Go to the article with the highest score
2994 (@code{gnus-summary-best-unread-article}). 
2995
2996 @item G l
2997 @itemx l
2998 @kindex l (Summary)
2999 @kindex G l (Summary)
3000 @findex gnus-summary-goto-last-article
3001 Go to the previous article read (@code{gnus-summary-goto-last-article}).
3002
3003 @item G p
3004 @kindex G p (Summary)
3005 @findex gnus-summary-pop-article
3006 Pop an article off the summary history and go to this article
3007 (@code{gnus-summary-pop-article}).  This command differs from the
3008 command above in that you can pop as many previous articles off the
3009 history as you like.
3010 @end table
3011
3012 Some variables that are relevant for moving and selecting articles:
3013
3014 @table @code
3015 @item gnus-auto-extend-newsgroup
3016 @vindex gnus-auto-extend-newsgroup
3017 All the movement commands will try to go to the previous (or next)
3018 article, even if that article isn't displayed in the Summary buffer if
3019 this variable is non-@code{nil}.  Gnus will then fetch the article from
3020 the server and display it in the article buffer.
3021
3022 @item gnus-select-article-hook
3023 @vindex gnus-select-article-hook
3024 This hook is called whenever an article is selected.  By default it
3025 exposes any threads hidden under the selected article.
3026
3027 @item gnus-mark-article-hook
3028 @vindex gnus-mark-article-hook
3029 @findex gnus-summary-mark-unread-as-read
3030 @findex gnus-summary-mark-read-and-unread-as-read
3031 @findex gnus-unread-mark
3032 This hook is called whenever an article is selected.  It is intended to
3033 be used for marking articles as read.  The default value is
3034 @code{gnus-summary-mark-read-and-unread-as-read}, and will change the
3035 mark of almost any article you read to @code{gnus-unread-mark}.  The
3036 only articles not affected by this function are ticked, dormant, and
3037 expirable articles.  If you'd instead like to just have unread articles
3038 marked as read, you can use @code{gnus-summary-mark-unread-as-read}
3039 instead.  It will leave marks like @code{gnus-low-score-mark},
3040 @code{gnus-del-mark} (and so on) alone.
3041
3042 @end table
3043
3044
3045 @node Paging the Article
3046 @section Scrolling the Article
3047 @cindex article scrolling
3048
3049 @table @kbd
3050
3051 @item SPACE
3052 @kindex SPACE (Summary)
3053 @findex gnus-summary-next-page
3054 Pressing @kbd{SPACE} will scroll the current article forward one page,
3055 or, if you have come to the end of the current article, will choose the
3056 next article (@code{gnus-summary-next-page}).
3057
3058 @item DEL
3059 @kindex DEL (Summary)
3060 @findex gnus-summary-prev-page
3061 Scroll the current article back one page (@code{gnus-summary-prev-page}). 
3062
3063 @item RET
3064 @kindex RET (Summary)
3065 @findex gnus-summary-scroll-up
3066 Scroll the current article one line forward
3067 (@code{gnus-summary-scroll-up}).
3068
3069 @item A g
3070 @itemx g
3071 @kindex A g (Summary)
3072 @kindex g (Summary)
3073 @findex gnus-summary-show-article
3074 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
3075 given a prefix, fetch the current article, but don't run any of the
3076 article treatment functions.  This will give you a ``raw'' article, just
3077 the way it came from the server.
3078
3079 @item A <
3080 @itemx <
3081 @kindex < (Summary)
3082 @kindex A < (Summary)
3083 @findex gnus-summary-beginning-of-article
3084 Scroll to the beginning of the article
3085 (@code{gnus-summary-beginning-of-article}).
3086
3087 @item A >
3088 @itemx >
3089 @kindex > (Summary)
3090 @kindex A > (Summary)
3091 @findex gnus-summary-end-of-article
3092 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
3093
3094 @item A s 
3095 @kindex A s (Summary)
3096 @findex gnus-summary-isearch-article
3097 Perform an isearch in the article buffer
3098 (@code{gnus-summary-isearch-article}). 
3099
3100 @end table
3101
3102
3103 @node Reply Followup and Post
3104 @section Reply, Followup and Post
3105
3106 @menu
3107 * Summary Mail Commands::            Sending mail.
3108 * Summary Post Commands::            Sending news.
3109 @end menu
3110
3111
3112 @node Summary Mail Commands
3113 @subsection Summary Mail Commands
3114 @cindex mail
3115 @cindex composing mail
3116
3117 Commands for composing a mail message:
3118
3119 @table @kbd
3120
3121 @item S r
3122 @itemx r
3123 @kindex S r (Summary)
3124 @kindex r (Summary)
3125 @findex gnus-summary-reply
3126 Mail a reply to the author of the current article
3127 (@code{gnus-summary-reply}). 
3128
3129 @item S R
3130 @itemx R
3131 @kindex R (Summary)
3132 @kindex S R (Summary)
3133 @findex gnus-summary-reply-with-original
3134 Mail a reply to the author of the current article and include the
3135 original message (@code{gnus-summary-reply-with-original}).  This
3136 command uses the process/prefix convention.
3137
3138 @item S o m
3139 @kindex S o m (Summary)
3140 @findex gnus-summary-mail-forward
3141 Forward the current article to some other person
3142 (@code{gnus-summary-mail-forward}). 
3143
3144 @item S o p
3145 @kindex S o p (Summary)
3146 @findex gnus-summary-post-forward
3147 Forward the current article to a newsgroup
3148 (@code{gnus-summary-post-forward}).
3149
3150 @item S m
3151 @itemx m
3152 @kindex m (Summary)
3153 @kindex S m (Summary)
3154 @findex gnus-summary-mail-other-window
3155 Send a mail to some other person
3156 (@code{gnus-summary-mail-other-window}).
3157
3158 @item S D b
3159 @kindex S D b (Summary)
3160 @findex gnus-summary-resend-bounced-mail
3161 @cindex bouncing mail
3162 If you have sent a mail, but the mail was bounced back to you for some
3163 reason (wrong address, transient failure), you can use this command to
3164 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
3165 will be popped into a mail buffer where you can edit the headers before
3166 sending the mail off again.  If you give a prefix to this command, and
3167 the bounced mail is a reply to some other mail, Gnus will try to fetch
3168 that mail and display it for easy perusal of its headers.  This might
3169 very well fail, though.
3170
3171 @item S D r
3172 @kindex S D r (Summary)
3173 @findex gnus-summary-resend-message
3174 Not to be confused with the previous command,
3175 @code{gnus-summary-resend-message} will prompt you for an address to
3176 send the current message off to, and then send it to that place.  The
3177 headers of the message won't be altered---but lots of headers that say
3178 @code{Resent-To}, @code{Resent-From} and so on will be added.  This
3179 means that you actually send a mail to someone that has a @code{To}
3180 header that (probably) points to yourself.  This will confuse people.
3181 So, natcherly you'll only do that if you're really eVIl.  
3182
3183 This command is mainly used if you have several accounts and want to
3184 ship a mail to a different account of yours.  (If you're both
3185 @code{root} and @code{postmaster} and get a mail for @code{postmaster}
3186 to the @code{root} account, you may want to resend it to
3187 @code{postmaster}.  Ordnung muss sein!
3188
3189 @item S O m
3190 @kindex S O m (Summary)
3191 @findex gnus-uu-digest-mail-forward
3192 Digest the current series and forward the result using mail
3193 (@code{gnus-uu-digest-mail-forward}).  This command uses the
3194 process/prefix convention (@pxref{Process/Prefix}). 
3195
3196 @item S O p
3197 @kindex S O p (Summary)
3198 @findex gnus-uu-digest-post-forward
3199 Digest the current series and forward the result to a newsgroup
3200 (@code{gnus-uu-digest-mail-forward}).  
3201 @end table
3202
3203
3204 @node Summary Post Commands
3205 @subsection Summary Post Commands
3206 @cindex post
3207 @cindex composing news
3208
3209 Commands for posting an article:
3210
3211 @table @kbd
3212 @item S p
3213 @itemx a
3214 @kindex a (Summary)
3215 @kindex S p (Summary)
3216 @findex gnus-summary-post-news
3217 Post an article to the current group
3218 (@code{gnus-summary-post-news}).
3219
3220 @item S f
3221 @itemx f
3222 @kindex f (Summary)
3223 @kindex S f (Summary)
3224 @findex gnus-summary-followup
3225 Post a followup to the current article (@code{gnus-summary-followup}).
3226
3227 @item S F
3228 @itemx F
3229 @kindex S F (Summary)
3230 @kindex F (Summary)
3231 @findex gnus-summary-followup-with-original
3232 Post a followup to the current article and include the original message
3233 (@code{gnus-summary-followup-with-original}).   This command uses the
3234 process/prefix convention.
3235
3236 @item S u
3237 @kindex S u (Summary)
3238 @findex gnus-uu-post-news
3239 Uuencode a file, split it into parts, and post it as a series
3240 (@code{gnus-uu-post-news}). (@pxref{Uuencoding and Posting}). 
3241 @end table
3242
3243
3244 @node Canceling and Superseding
3245 @section Canceling Articles
3246 @cindex canceling articles
3247 @cindex superseding articles
3248
3249 Have you ever written something, and then decided that you really,
3250 really, really wish you hadn't posted that?
3251
3252 Well, you can't cancel mail, but you can cancel posts.
3253
3254 @findex gnus-summary-cancel-article
3255 @kindex C (Summary)
3256 Find the article you wish to cancel (you can only cancel your own
3257 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
3258 c} (@code{gnus-summary-cancel-article}).  Your article will be
3259 canceled---machines all over the world will be deleting your article. 
3260
3261 Be aware, however, that not all sites honor cancels, so your article may
3262 live on here and there, while most sites will delete the article in
3263 question.
3264
3265 If you discover that you have made some mistakes and want to do some
3266 corrections, you can post a @dfn{superseding} article that will replace
3267 your original article.
3268
3269 @findex gnus-summary-supersede-article
3270 @kindex S (Summary)
3271 Go to the original article and press @kbd{S s}
3272 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
3273 where you can edit the article all you want before sending it off the
3274 usual way.
3275
3276 The same goes for superseding as for canceling, only more so: Some
3277 sites do not honor superseding.  On those sites, it will appear that you
3278 have posted almost the same article twice.
3279
3280 If you have just posted the article, and change your mind right away,
3281 there is a trick you can use to cancel/supersede the article without
3282 waiting for the article to appear on your site first.  You simply return
3283 to the post buffer (which is called @code{*post-buf*}).  There you will
3284 find the article you just posted, with all the headers intact.  Change
3285 the @code{Message-ID} header to a @code{Cancel} or @code{Supersedes}
3286 header by substituting one of those words for @code{Message-ID}.  Then
3287 just press @kbd{C-c C-c} to send the article as you would do normally.
3288 The previous article will be canceled/superseded.
3289
3290 Just remember, kids: There is no 'c' in 'supersede'.
3291
3292
3293 @node Marking Articles
3294 @section Marking Articles
3295 @cindex article marking
3296 @cindex article ticking
3297 @cindex marks
3298
3299 There are several marks you can set on an article. 
3300
3301 You have marks that decide the @dfn{readedness} (whoo, neato-keano
3302 neologism ohoy!) of the article.  Alphabetic marks generally mean
3303 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
3304
3305 In addition, you also have marks that do not affect readedness.
3306
3307 @menu
3308 * Unread Articles::      Marks for unread articles.
3309 * Read Articles::        Marks for read articles.
3310 * Other Marks::          Marks that do not affect readedness.
3311 @end menu
3312
3313 @ifinfo
3314 There's a plethora of commands for manipulating these marks:
3315 @end ifinfo
3316
3317 @menu
3318 * Setting Marks::           How to set and remove marks.
3319 * Setting Process Marks::   How to mark articles for later processing.
3320 @end menu
3321
3322
3323 @node Unread Articles
3324 @subsection Unread Articles
3325
3326 The following marks mark articles as unread, in one form or other.
3327
3328 @vindex gnus-dormant-mark
3329 @vindex gnus-ticked-mark
3330 @table @samp
3331 @item !
3332 @dfn{Ticked articles} are articles that will remain visible always.  If
3333 you see an article that you find interesting, or you want to put off
3334 reading it, or replying to it, until sometime later, you'd typically
3335 tick it.  However, articles can be expired, so if you want to keep an
3336 article forever, you'll have to save it.  Ticked articles have a
3337 @samp{!} (@code{gnus-ticked-mark}) in the first column.
3338
3339 @item ?
3340 @vindex gnus-dormant-mark
3341 A @dfn{dormant} article is marked with a @samp{?}
3342 (@code{gnus-dormant-mark}), and will only appear in the summary buffer
3343 if there are followups to it.
3344
3345 @item SPACE
3346 @vindex gnus-unread-mark
3347 An @dfn{unread} article is marked with a @samp{SPACE}
3348 (@code{gnus-unread-mark}).  These are articles that haven't been read at
3349 all yet.
3350 @end table
3351
3352
3353 @node Read Articles
3354 @subsection Read Articles
3355 @cindex expirable mark
3356
3357 All the following marks mark articles as read.
3358
3359 @table @samp
3360
3361 @item r
3362 @vindex gnus-del-mark
3363 Articles that are marked as read.  They have a @samp{r}
3364 (@code{gnus-del-mark}) in the first column.  These are articles that the
3365 user has marked as read more or less manually.
3366
3367 @item R
3368 @vindex gnus-read-mark
3369 Articles that are actually read are marked with @samp{R}
3370 (@code{gnus-read-mark}). 
3371
3372 @item O
3373 @vindex gnus-ancient-mark
3374 Articles that were marked as read in previous sessions are now
3375 @dfn{old} and marked with @samp{O} (@code{gnus-ancient-mark}). 
3376
3377 @item K
3378 @vindex gnus-killed-mark
3379 Marked as killed (@code{gnus-killed-mark}).
3380
3381 @item X
3382 @vindex gnus-kill-file-mark
3383 Marked as killed by kill files (@code{gnus-kill-file-mark}).
3384
3385 @item Y
3386 @vindex gnus-low-score-mark
3387 Marked as read by having a too low score (@code{gnus-low-score-mark}).
3388
3389 @item C
3390 @vindex gnus-catchup-mark
3391 Marked as read by a catchup (@code{gnus-catchup-mark}).
3392
3393 @item G
3394 @vindex gnus-canceled-mark
3395 Canceled article (@code{gnus-canceled-mark})
3396
3397 @item F
3398 @vindex gnus-souped-mark
3399 @sc{SOUP}ed article (@code{gnus-souped-mark}).
3400
3401 @item Q
3402 @vindex gnus-sparse-mark
3403 Sparsely reffed article (@code{gnus-sparse-mark}).
3404 @end table
3405
3406 All these marks just mean that the article is marked as read, really.
3407 They are interpreted differently by the adaptive scoring scheme,
3408 however.
3409
3410 One more special mark, though:
3411
3412 @table @samp
3413 @item E
3414 @vindex gnus-expirable-mark
3415 You can also mark articles as @dfn{expirable} (or have them marked as
3416 such automatically).  That doesn't make much sense in normal groups,
3417 because a user does not control the expiring of news articles, but in
3418 mail groups, for instance, articles that are marked as @dfn{expirable}
3419 can be deleted by Gnus at any time.  Expirable articles are marked with
3420 @samp{E} (@code{gnus-expirable-mark}).
3421 @end table
3422
3423
3424 @node Other Marks
3425 @subsection Other Marks
3426 @cindex process mark
3427 @cindex bookmarks
3428
3429 There are some marks that have nothing to do with whether the article is
3430 read or not.
3431
3432 @itemize @bullet
3433
3434 @item 
3435 You can set a bookmark in the current article.  Say you are reading a
3436 long thesis on cats' urinary tracts, and have to go home for dinner
3437 before you've finished reading the thesis.  You can then set a bookmark
3438 in the article, and Gnus will jump to this bookmark the next time it
3439 encounters the article.
3440
3441 @item
3442 @vindex gnus-replied-mark
3443 All articles that you have replied to or made a followup to (i.e., have
3444 answered) will be marked with an @samp{A} in the second column
3445 (@code{gnus-replied-mark}).
3446
3447 @item 
3448 @vindex gnus-cached-mark
3449 Articles that are stored in the article cache will be marked with an
3450 @samp{*} in the second column (@code{gnus-cached-mark}).
3451
3452 @item 
3453 @vindex gnus-saved-mark
3454 Articles that are ``saved'' (in some manner or other; not necessarily
3455 religiously) are marked with an @samp{S} in the second column
3456 (@code{gnus-saved-mark}.
3457
3458 @item 
3459 @vindex gnus-not-empty-thread-mark
3460 @vindex gnus-empty-thread-mark
3461 It the @samp{%e} spec is used, the presence of threads or not will be
3462 marked with @code{gnus-not-empty-thread-mark} and
3463 @code{gnus-empty-thread-mark} in the third column, respectively.
3464
3465 @item 
3466 @vindex gnus-process-mark
3467 Finally we have the @dfn{process mark} (@code{gnus-process-mark}.  A
3468 variety of commands react to the presence of the process mark.  For
3469 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
3470 all articles that have been marked with the process mark.  Articles
3471 marked with the process mark have a @samp{#} in the second column.
3472
3473 @end itemize
3474
3475 You might have noticed that most of these ``non-readedness'' marks
3476 appear in the second column by default.  So if you have a cached, saved,
3477 replied article that you have process-marked, what will that look like?
3478
3479 Nothing much.  The precedence rules go as follows: process -> cache ->
3480 replied -> saved.  So if the article is in the cache and is replied,
3481 you'll only see the cache mark and not the replied mark.
3482
3483
3484 @node Setting Marks
3485 @subsection Setting Marks
3486 @cindex setting marks
3487
3488 All the marking commands understand the numeric prefix.
3489
3490 @table @kbd
3491 @item M t
3492 @itemx !
3493 @kindex ! (Summary)
3494 @kindex M t (Summary)
3495 @findex gnus-summary-tick-article-forward
3496 Tick the current article (@code{gnus-summary-tick-article-forward}).
3497
3498 @item M ?
3499 @itemx ?
3500 @kindex ? (Summary)
3501 @kindex M ? (Summary)
3502 @findex gnus-summary-mark-as-dormant
3503 Mark the current article as dormant
3504 (@code{gnus-summary-mark-as-dormant}).
3505
3506 @item M d
3507 @itemx d
3508 @kindex M d (Summary)
3509 @kindex d (Summary)
3510 @findex gnus-summary-mark-as-read-forward
3511 Mark the current article as read
3512 (@code{gnus-summary-mark-as-read-forward}).
3513
3514 @item M k
3515 @itemx k
3516 @kindex k (Summary)
3517 @kindex M k (Summary)
3518 @findex gnus-summary-kill-same-subject-and-select
3519 Mark all articles that have the same subject as the current one as read,
3520 and then select the next unread article
3521 (@code{gnus-summary-kill-same-subject-and-select}).
3522
3523 @item M K
3524 @itemx C-k
3525 @kindex M K (Summary)
3526 @kindex C-k (Summary)
3527 @findex gnus-summary-kill-same-subject
3528 Mark all articles that have the same subject as the current one as read
3529 (@code{gnus-summary-kill-same-subject}).  
3530
3531 @item M C
3532 @kindex M C (Summary)
3533 @findex gnus-summary-catchup
3534 Mark all unread articles in the group as read
3535 (@code{gnus-summary-catchup}).
3536
3537 @item M C-c
3538 @kindex M C-c (Summary)
3539 @findex gnus-summary-catchup-all
3540 Mark all articles in the group as read---even the ticked and dormant
3541 articles (@code{gnus-summary-catchup-all}).
3542
3543 @item M H
3544 @kindex M H (Summary)
3545 @findex gnus-summary-catchup-to-here
3546 Catchup the current group to point
3547 (@code{gnus-summary-catchup-to-here}). 
3548
3549 @item C-w
3550 @kindex C-w (Summary)
3551 @findex gnus-summary-mark-region-as-read
3552 Mark all articles between point and mark as read
3553 (@code{gnus-summary-mark-region-as-read}). 
3554
3555 @item M V k
3556 @kindex M V k (Summary)
3557 @findex gnus-summary-kill-below
3558 Kill all articles with scores below the default score (or below the
3559 numeric prefix) (@code{gnus-summary-kill-below}).
3560
3561 @item M c
3562 @itemx M-u
3563 @kindex M c (Summary)
3564 @kindex M-u (Summary)
3565 @findex gnus-summary-clear-mark-forward
3566 Clear all readedness-marks from the current article
3567 (@code{gnus-summary-clear-mark-forward}).
3568
3569 @item M e
3570 @itemx E
3571 @kindex M e (Summary)
3572 @kindex E (Summary)
3573 @findex gnus-summary-mark-as-expirable
3574 Mark the current article as expirable
3575 (@code{gnus-summary-mark-as-expirable}).
3576
3577 @item M b
3578 @kindex M b (Summary)
3579 @findex gnus-summary-set-bookmark
3580 Set a bookmark in the current article
3581 (@code{gnus-summary-set-bookmark}).
3582
3583 @item M B
3584 @kindex M B (Summary)
3585 @findex gnus-summary-remove-bookmark
3586 Remove the bookmark from the current article
3587 (@code{gnus-summary-remove-bookmark}).
3588
3589 @item M V c
3590 @kindex M V c (Summary)
3591 @findex gnus-summary-clear-above
3592 Clear all marks from articles with scores over the default score (or
3593 over the numeric prefix) (@code{gnus-summary-clear-above}).
3594
3595 @item M V u
3596 @kindex M V u (Summary)
3597 @findex gnus-summary-tick-above
3598 Tick all articles with scores over the default score (or over the
3599 numeric prefix) (@code{gnus-summary-tick-above}).
3600
3601 @item M V m
3602 @kindex M V m (Summary)
3603 @findex gnus-summary-mark-above
3604 Prompt for a mark, and mark all articles with scores over the default
3605 score (or over the numeric prefix) with this mark
3606 (@code{gnus-summary-clear-above}).
3607 @end table
3608
3609 @vindex gnus-summary-goto-unread
3610 The @code{gnus-summary-goto-unread} variable controls what action should
3611 be taken after setting a mark.  If non-@code{nil}, point will move to
3612 the next/previous unread article.  If @code{nil}, point will just move
3613 one line up or down.  As a special case, if this variable is
3614 @code{never}, all the marking commands as well as other commands (like
3615 @kbd{SPACE}) will move to the next article, whether it is unread or not.
3616 The default is @code{t}.
3617
3618
3619 @node Setting Process Marks
3620 @subsection Setting Process Marks
3621 @cindex setting process marks
3622
3623 @table @kbd
3624
3625 @item M P p
3626 @itemx #
3627 @kindex # (Summary)
3628 @kindex M P p (Summary)
3629 @findex gnus-summary-mark-as-processable
3630 Mark the current article with the process mark
3631 (@code{gnus-summary-mark-as-processable}). 
3632 @findex gnus-summary-unmark-as-processable
3633
3634 @item M P u 
3635 @itemx M-#
3636 @kindex M P u (Summary)
3637 @kindex M-# (Summary)
3638 Remove the process mark, if any, from the current article
3639 (@code{gnus-summary-unmark-as-processable}).
3640
3641 @item M P U
3642 @kindex M P U (Summary)
3643 @findex gnus-summary-unmark-all-processable
3644 Remove the process mark from all articles
3645 (@code{gnus-summary-unmark-all-processable}). 
3646
3647 @item M P R
3648 @kindex M P R (Summary)
3649 @findex gnus-uu-mark-by-regexp
3650 Mark articles by a regular expression (@code{gnus-uu-mark-by-regexp}). 
3651
3652 @item M P r
3653 @kindex M P r (Summary)
3654 @findex gnus-uu-mark-region
3655 Mark articles in region (@code{gnus-uu-mark-region}).
3656
3657 @item M P t
3658 @kindex M P t (Summary)
3659 @findex gnus-uu-mark-thread
3660 Mark all articles in the current (sub)thread
3661 (@code{gnus-uu-mark-thread}).
3662
3663 @item M P T
3664 @kindex M P T (Summary)
3665 @findex gnus-uu-unmark-thread
3666 Unmark all articles in the current (sub)thread
3667 (@code{gnus-uu-unmark-thread}).
3668
3669 @item M P v
3670 @kindex M P v (Summary)
3671 @findex gnus-uu-mark-over
3672 Mark all articles that have a score above the prefix argument
3673 (@code{gnus-uu-mark-over}).
3674
3675 @item M P s
3676 @kindex M P s (Summary)
3677 @findex gnus-uu-mark-series
3678 Mark all articles in the current series (@code{gnus-uu-mark-series}).
3679
3680 @item M P S
3681 @kindex M P S (Summary)
3682 @findex gnus-uu-mark-sparse
3683 Mark all series that have already had some articles marked
3684 (@code{gnus-uu-mark-sparse}).
3685
3686 @item M P a
3687 @kindex M P a (Summary)
3688 @findex gnus-uu-mark-all
3689 Mark all articles in series order (@code{gnus-uu-mark-series}).
3690
3691 @item M P b
3692 @kindex M P b (Summary)
3693 @findex gnus-uu-mark-buffer
3694 Mark all articles in the buffer in the order they appear
3695 (@code{gnus-uu-mark-buffer}). 
3696 @end table
3697
3698
3699 @node Limiting
3700 @section Limiting
3701 @cindex limiting
3702
3703 It can be convenient to limit the summary buffer to just show some
3704 subset of the articles currently in the group.  The effect most limit
3705 commands have is to remove a few (or many) articles from the summary
3706 buffer. 
3707
3708 @table @kbd
3709
3710 @item / /
3711 @itemx / s
3712 @kindex / / (Summary)
3713 @findex gnus-summary-limit-to-subject
3714 Limit the summary buffer to articles that match some subject
3715 (@code{gnus-summary-limit-to-subject}). 
3716
3717 @item / a
3718 @kindex / a (Summary)
3719 @findex gnus-summary-limit-to-author
3720 Limit the summary buffer to articles that match some author
3721 (@code{gnus-summary-limit-to-author}).
3722
3723 @item / u
3724 @itemx x
3725 @kindex / u (Summary)
3726 @kindex x (Summary)
3727 @findex gnus-summary-limit-to-unread
3728 Limit the summary buffer to articles that are not marked as read
3729 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
3730 buffer to articles that are strictly unread.  This means that ticked and
3731 dormant articles will also be excluded.
3732
3733 @item / m
3734 @kindex / m (Summary)
3735 @findex gnus-summary-limit-to-marks
3736 Ask for a mark and then limit to all articles that have not been marked
3737 with that mark (@code{gnus-summary-limit-to-marks}).
3738
3739 @item / n
3740 @kindex / n (Summary)
3741 @findex gnus-summary-limit-to-articles
3742 Limit the summary buffer to the current article
3743 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
3744 convention (@pxref{Process/Prefix}).
3745
3746 @item / w
3747 @kindex / w (Summary)
3748 @findex gnus-summary-pop-limit
3749 Pop the previous limit off the stack and restore it
3750 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
3751 the stack.
3752
3753 @item / v
3754 @kindex / v (Summary)
3755 @findex gnus-summary-limit-to-score
3756 Limit the summary buffer to articles that have a score at or above some
3757 score (@code{gnus-summary-limit-to-score}).
3758
3759 @item / E
3760 @itemx M S
3761 @kindex M S (Summary)
3762 @kindex / E (Summary)
3763 @findex gnus-summary-limit-include-expunged
3764 Display all expunged articles
3765 (@code{gnus-summary-limit-include-expunged}). 
3766
3767 @item / D
3768 @kindex / D (Summary)
3769 @findex gnus-summary-limit-include-dormant
3770 Display all dormant articles (@code{gnus-summary-limit-include-dormant}).
3771
3772 @item / d
3773 @kindex / d (Summary)
3774 @findex gnus-summary-limit-exclude-dormant
3775 Hide all dormant articles (@code{gnus-summary-limit-exclude-dormant}).
3776
3777 @item / c
3778 @kindex / c (Summary)
3779 @findex gnus-summary-limit-exclude-childless-dormant
3780 Hide all dormant articles that have no children
3781 (@code{gnus-summary-limit-exclude-childless-dormant}). 
3782
3783 @item / C
3784 @kindex / C (Summary)
3785 @findex gnus-summary-limit-mark-excluded-as-read
3786 Mark all excluded unread articles as read
3787 (@code{gnus-summary-limit-mark-excluded-as-read}).   If given a prefix,
3788 also mark excluded ticked and dormant articles as read.
3789
3790 @end table
3791
3792
3793 @node Threading
3794 @section Threading
3795 @cindex threading
3796 @cindex article threading
3797
3798 Gnus threads articles by default.  @dfn{To thread} is to put replies to
3799 articles directly after the articles they reply to---in a hierarchical
3800 fashion.
3801
3802 @menu
3803 * Customizing Threading::     Variables you can change to affect the threading.
3804 * Thread Commands::           Thread based commands in the summary buffer.
3805 @end menu
3806
3807
3808 @node Customizing Threading
3809 @subsection Customizing Threading
3810 @cindex customizing threading
3811 @cindex <
3812 @cindex >
3813
3814 @table @code
3815
3816 @item gnus-show-threads
3817 @vindex gnus-show-threads
3818 If this variable is @code{nil}, no threading will be done, and all of
3819 the rest of the variables here will have no effect.  Turning threading
3820 off will speed group selection up a bit, but it is sure to make reading
3821 slower and more awkward.
3822
3823 @item gnus-fetch-old-headers
3824 @vindex gnus-fetch-old-headers
3825 If non-@code{nil}, Gnus will attempt to build old threads by fetching
3826 more old headers---headers to articles that are marked as read.  If you
3827 would like to display as few summary lines as possible, but still
3828 connect as many loose threads as possible, you should set this variable
3829 to @code{some} or a number.  If you set it to a number, no more than
3830 that number of extra old headers will be fetched.  In either case,
3831 fetching old headers only works if the backend you are using carries
3832 overview files---this would normally be @code{nntp}, @code{nnspool} and
3833 @code{nnml}.  Also remember that if the root of the thread has been
3834 expired by the server, there's not much Gnus can do about that.
3835
3836 @item gnus-build-sparse-threads
3837 @vindex gnus-build-sparse-threads
3838 Fetching old headers can be slow.  A low-rent similar effect can be
3839 gotten by setting this variable to @code{some}.  Gnus will then look at
3840 the complete @code{References} headers of all articles and try to string
3841 articles that belong in the same thread together.  This will leave
3842 @dfn{gaps} in the threading display where Gnus guesses that an article
3843 is missing from the thread.  (These gaps appear like normal summary
3844 lines.  If you select a gap, Gnus will try to fetch the article in
3845 question.)  If this variable is @code{t}, Gnus will display all these
3846 ``gaps'' without regard for whether they are useful for completing the
3847 thread or not.  Finally, if this variable is @code{more}, Gnus won't cut
3848 off sparse leaf nodes that don't lead anywhere.  This variable is
3849 @code{nil} by default.
3850
3851 @item gnus-summary-gather-subject-limit
3852 @vindex gnus-summary-gather-subject-limit
3853 Loose threads are gathered by comparing subjects of articles.  If this
3854 variable is @code{nil}, Gnus requires an exact match between the
3855 subjects of the loose threads before gathering them into one big
3856 super-thread.  This might be too strict a requirement, what with the
3857 presence of stupid newsreaders that chop off long subjects lines.  If
3858 you think so, set this variable to, say, 20 to require that only the
3859 first 20 characters of the subjects have to match.  If you set this
3860 variable to a really low number, you'll find that Gnus will gather
3861 everything in sight into one thread, which isn't very helpful.
3862
3863 @cindex fuzzy article gathering
3864 If you set this variable to the special value @code{fuzzy}, Gnus will
3865 use a fuzzy string comparison algorithm on the subjects.
3866
3867 @item gnus-simplify-subject-fuzzy-regexp
3868 @vindex gnus-simplify-subject-fuzzy-regexp
3869 This can either be a regular expression or list of regular expressions
3870 that match strings that will be removed from subjects if fuzzy subject
3871 simplification is used.
3872
3873 @item gnus-simplify-ignored-prefixes
3874 @vindex gnus-simplify-ignored-prefixes
3875 If you set @code{gnus-summary-gather-subject-limit} to something as low
3876 as 10, you might consider setting this variable to something sensible:
3877
3878 @c Written by Michael Ernst <mernst@cs.rice.edu>
3879 @lisp
3880 (setq gnus-simplify-ignored-prefixes
3881       (concat 
3882        "\\`\\[?\\("
3883        (mapconcat 'identity
3884                   '("looking"
3885                      "wanted" "followup" "summary\\( of\\)?"
3886                      "help" "query" "problem" "question" 
3887                      "answer" "reference" "announce"
3888                      "How can I" "How to" "Comparison of"
3889                      ;; ...
3890                      )
3891                   "\\|")
3892                   "\\)\\s *\\("
3893                   (mapconcat 'identity
3894                              '("for" "for reference" "with" "about")
3895                              "\\|")
3896                   "\\)?\\]?:?[ \t]*"))
3897 @end lisp
3898
3899 All words that match this regexp will be removed before comparing two
3900 subjects. 
3901
3902 @item gnus-summary-gather-exclude-subject
3903 @vindex gnus-summary-gather-exclude-subject
3904 Since loose thread gathering is done on subjects only, that might lead
3905 to many false hits, especially with certain common subjects like
3906 @samp{} and @samp{(none)}.  To make the situation slightly better,
3907 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
3908 what subjects should be excluded from the gathering process.  The
3909 default is @samp{^ *$\\|^(none)$}.  
3910
3911 @item gnus-summary-thread-gathering-function
3912 @vindex gnus-summary-thread-gathering-function
3913 Gnus gathers threads by looking at @code{Subject} headers.  This means
3914 that totally unrelated articles may end up in the same ``thread'', which
3915 is confusing.  An alternate approach is to look at all the
3916 @code{Message-ID}s in all the @code{References} headers to find matches.
3917 This will ensure that no gathered threads ever includes unrelated
3918 articles, but it's also means that people who have posted with broken
3919 newsreaders won't be gathered properly.  The choice is yours---plague or
3920 cholera:
3921
3922 @table @code
3923 @item gnus-gather-threads-by-subject
3924 @findex gnus-gather-threads-by-subject
3925 This function is the default gathering function and looks at
3926 @code{Subject}s exclusively.
3927
3928 @item gnus-gather-threads-by-references
3929 @findex gnus-gather-threads-by-references
3930 This function looks at @code{References} headers exclusively.
3931 @end table
3932
3933 If you want to test gathering by @code{References}, you could say
3934 something like:
3935
3936 @lisp
3937 (setq gnus-summary-thread-gathering-function
3938       'gnus-gather-threads-by-references)
3939 @end lisp
3940
3941 @item gnus-summary-make-false-root
3942 @vindex gnus-summary-make-false-root
3943 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
3944 and create a dummy root at the top.  (Wait a minute.  Root at the top?
3945 Yup.)  Loose subtrees occur when the real root has expired, or you've
3946 read or killed the root in a previous session.
3947
3948 When there is no real root of a thread, Gnus will have to fudge
3949 something.  This variable says what fudging method Gnus should use.
3950 There are four possible values:
3951
3952 @cindex adopting articles
3953
3954 @table @code
3955
3956 @item adopt
3957 Gnus will make the first of the orphaned articles the parent.  This
3958 parent will adopt all the other articles.  The adopted articles will be
3959 marked as such by pointy brackets (@samp{<>}) instead of the standard
3960 square brackets (@samp{[]}).  This is the default method.
3961
3962 @item dummy
3963 @vindex gnus-summary-dummy-line-format
3964 Gnus will create a dummy summary line that will pretend to be the
3965 parent.  This dummy line does not correspond to any real article, so
3966 selecting it will just select the first real article after the dummy
3967 article.  @code{gnus-summary-dummy-line-format} is used to specify the
3968 format of the dummy roots.  It accepts only one format spec:  @samp{S},
3969 which is the subject of the article.  @xref{Formatting Variables}.
3970
3971 @item empty
3972 Gnus won't actually make any article the parent, but simply leave the
3973 subject field of all orphans except the first empty.  (Actually, it will
3974 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
3975 Buffer Format}).)
3976
3977 @item none
3978 Don't make any article parent at all.  Just gather the threads and
3979 display them after one another.
3980
3981 @item nil
3982 Don't gather loose threads.
3983 @end table
3984
3985 @item gnus-thread-hide-subtree
3986 @vindex gnus-thread-hide-subtree
3987 If non-@code{nil}, all threads will be hidden when the summary buffer is
3988 generated.
3989
3990 @item gnus-thread-hide-killed
3991 @vindex gnus-thread-hide-killed
3992 if you kill a thread and this variable is non-@code{nil}, the subtree
3993 will be hidden.
3994
3995 @item gnus-thread-ignore-subject
3996 @vindex gnus-thread-ignore-subject
3997 Sometimes somebody changes the subject in the middle of a thread.  If
3998 this variable is non-@code{nil}, the subject change is ignored.  If it
3999 is @code{nil}, which is the default, a change in the subject will result
4000 in a new thread.
4001
4002 @item gnus-thread-indent-level
4003 @vindex gnus-thread-indent-level
4004 This is a number that says how much each sub-thread should be indented.
4005 The default is @code{4}.
4006 @end table
4007
4008
4009 @node Thread Commands
4010 @subsection Thread Commands
4011 @cindex thread commands
4012
4013 @table @kbd
4014
4015 @item T k
4016 @itemx M-C-k
4017 @kindex T k (Summary)
4018 @kindex M-C-k (Summary)
4019 @findex gnus-summary-kill-thread
4020 Mark all articles in the current sub-thread as read
4021 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
4022 remove all marks instead.  If the prefix argument is negative, tick
4023 articles instead.
4024
4025 @item T l
4026 @itemx M-C-l
4027 @kindex T l (Summary)
4028 @kindex M-C-l (Summary)
4029 @findex gnus-summary-lower-thread
4030 Lower the score of the current thread
4031 (@code{gnus-summary-lower-thread}). 
4032
4033 @item T i
4034 @kindex T i (Summary)
4035 @findex gnus-summary-raise-thread
4036 Increase the score of the current thread
4037 (@code{gnus-summary-raise-thread}).
4038
4039 @item T #
4040 @kindex T # (Summary)
4041 @findex gnus-uu-mark-thread
4042 Set the process mark on the current thread
4043 (@code{gnus-uu-mark-thread}).
4044
4045 @item T M-#
4046 @kindex T M-# (Summary)
4047 @findex gnus-uu-unmark-thread
4048 Remove the process mark from the current thread
4049 (@code{gnus-uu-unmark-thread}).
4050
4051 @item T T
4052 @kindex T T (Summary)
4053 @findex gnus-summary-toggle-threads
4054 Toggle threading (@code{gnus-summary-toggle-threads}).
4055
4056 @item T s
4057 @kindex T s (Summary)
4058 @findex gnus-summary-show-thread
4059 Expose the thread hidden under the current article, if any
4060 (@code{gnus-summary-show-thread}).
4061
4062 @item T h
4063 @kindex T h (Summary)
4064 @findex gnus-summary-hide-thread
4065 Hide the current (sub)thread (@code{gnus-summary-hide-thread}).
4066
4067 @item T S
4068 @kindex T S (Summary)
4069 @findex gnus-summary-show-all-threads
4070 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
4071
4072 @item T H
4073 @kindex T H (Summary)
4074 @findex gnus-summary-hide-all-threads
4075 Hide all threads (@code{gnus-summary-hide-all-threads}).
4076
4077 @item T t
4078 @kindex T t (Summary)
4079 @findex gnus-summary-rethread-current
4080 Re-thread the thread the current article is part of
4081 (@code{gnus-summary-rethread-current}).  This works even when the
4082 summary buffer is otherwise unthreaded.
4083
4084 @item T ^
4085 @kindex T ^ (Summary)
4086 @findex gnus-summary-reparent-thread
4087 Make the current article the child of the marked (or previous) article
4088 (@code{gnus-summary-reparent-thread}.
4089
4090 @end table
4091
4092 The following commands are thread movement commands.  They all
4093 understand the numeric prefix.
4094
4095 @table @kbd
4096
4097 @item T n
4098 @kindex T n (Summary)
4099 @findex gnus-summary-next-thread
4100 Go to the next thread (@code{gnus-summary-next-thread}).
4101
4102 @item T p
4103 @kindex T p (Summary)
4104 @findex gnus-summary-prev-thread
4105 Go to the previous thread (@code{gnus-summary-prev-thread}).
4106
4107 @item T d
4108 @kindex T d (Summary)
4109 @findex gnus-summary-down-thread
4110 Descend the thread (@code{gnus-summary-down-thread}).
4111
4112 @item T u
4113 @kindex T u (Summary)
4114 @findex gnus-summary-up-thread
4115 Ascend the thread (@code{gnus-summary-up-thread}).
4116
4117 @item T o
4118 @kindex T o (Summary)
4119 @findex gnus-summary-top-thread
4120 Go to the top of the thread (@code{gnus-summary-top-thread}).
4121 @end table
4122
4123 @vindex gnus-thread-operation-ignore-subject 
4124 If you ignore subject while threading, you'll naturally end up with
4125 threads that have several different subjects in them.  If you then issue
4126 a command like `T k' (@code{gnus-summary-kill-thread}) you might not
4127 wish to kill the entire thread, but just those parts of the thread that
4128 have the same subject as the current article.  If you like this idea,
4129 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If is
4130 is non-@code{nil} (which it is by default), subjects will be ignored
4131 when doing thread commands.  If this variable is @code{nil}, articles in
4132 the same thread with different subjects will not be included in the
4133 operation in question.  If this variable is @code{fuzzy}, only articles
4134 that have subjects that are fuzzily equal will be included.
4135
4136
4137 @node Sorting
4138 @section Sorting
4139
4140 @findex gnus-thread-sort-by-total-score
4141 @findex gnus-thread-sort-by-date
4142 @findex gnus-thread-sort-by-score
4143 @findex gnus-thread-sort-by-subject
4144 @findex gnus-thread-sort-by-author
4145 @findex gnus-thread-sort-by-number
4146 @vindex gnus-thread-sort-functions
4147 If you are using a threaded summary display, you can sort the threads by
4148 setting @code{gnus-thread-sort-functions}, which is a list of functions.
4149 By default, sorting is done on article numbers.  Ready-made sorting
4150 predicate functions include @code{gnus-thread-sort-by-number},
4151 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-subject},
4152 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-score}, and
4153 @code{gnus-thread-sort-by-total-score}.
4154
4155 Each function takes two threads and return non-@code{nil} if the first
4156 thread should be sorted before the other.  Note that sorting really is
4157 normally done by looking only at the roots of each thread.  If you use
4158 more than one function, the primary sort key should be the last function
4159 in the list.  You should probably always include
4160 @code{gnus-thread-sort-by-number} in the list of sorting
4161 functions---preferably first.  This will ensure that threads that are
4162 equal with respect to the other sort criteria will be displayed in
4163 ascending article order.
4164
4165 If you would like to sort by score, then by subject, and finally by
4166 number, you could do something like:
4167
4168 @lisp
4169 (setq gnus-thread-sort-functions 
4170       '(gnus-thread-sort-by-number
4171         gnus-thread-sort-by-subject
4172         gnus-thread-sort-by-score))
4173 @end lisp
4174
4175 The threads that have highest score will be displayed first in the
4176 summary buffer.  When threads have the same score, they will be sorted
4177 alphabetically.  The threads that have the same score and the same
4178 subject will be sorted by number, which is (normally) the sequence in
4179 which the articles arrived.
4180
4181 If you want to sort by score and then reverse arrival order, you could
4182 say something like:
4183
4184 @lisp
4185 (setq gnus-thread-sort-functions
4186       '((lambda (t1 t2) 
4187           (not (gnus-thread-sort-by-number t1 t2)))
4188         gnus-thread-sort-by-score))
4189 @end lisp
4190
4191 @vindex gnus-thread-score-function
4192 The function in the @code{gnus-thread-score-function} variable (default
4193 @code{+}) is used for calculating the total score of a thread.  Useful
4194 functions might be @code{max}, @code{min}, or squared means, or whatever
4195 tickles your fancy.
4196
4197 @findex gnus-article-sort-functions
4198 @findex gnus-article-sort-by-date
4199 @findex gnus-article-sort-by-score
4200 @findex gnus-article-sort-by-subject
4201 @findex gnus-article-sort-by-author
4202 @findex gnus-article-sort-by-number
4203 If you are using an unthreaded display for some strange reason or other,
4204 you have to fiddle with the @code{gnus-article-sort-functions} variable.
4205 It is very similar to the @code{gnus-thread-sort-functions}, except that
4206 is uses slightly different functions for article comparison.  Available
4207 sorting predicate functions are @code{gnus-article-sort-by-number},
4208 @code{gnus-article-sort-by-author}, @code{gnus-article-sort-by-subject},
4209 @code{gnus-article-sort-by-date}, and @code{gnus-article-sort-by-score}.
4210
4211 If you want to sort an unthreaded summary display by subject, you could
4212 say something like:
4213
4214 @lisp
4215 (setq gnus-article-sort-functions 
4216       '(gnus-article-sort-by-number
4217         gnus-article-sort-by-subject))
4218 @end lisp
4219
4220
4221
4222 @node Asynchronous Fetching
4223 @section Asynchronous Article Fetching
4224 @cindex asynchronous article fetching
4225
4226 If you read your news from an @sc{nntp} server that's far away, the
4227 network latencies may make reading articles a chore.  You have to wait
4228 for a while after pressing @kbd{n} to go to the next article before the
4229 article appears.  Why can't Gnus just go ahead and fetch the article
4230 while you are reading the previous one? Why not, indeed.
4231
4232 First, some caveats.  There are some pitfalls to using asynchronous
4233 article fetching, especially the way Gnus does it.  
4234
4235 Let's say you are reading article 1, which is short, and article 2 is
4236 quite long, and you are not interested in reading that.  Gnus does not
4237 know this, so it goes ahead and fetches article 2.  You decide to read
4238 article 3, but since Gnus is in the process of fetching article 2, the
4239 connection is blocked.
4240
4241 To avoid these situations, Gnus will open two (count 'em two)
4242 connections to the server.  Some people may think this isn't a very nice
4243 thing to do, but I don't see any real alternatives.  Setting up that
4244 extra connection takes some time, so Gnus startup will be slower.
4245
4246 Gnus will fetch more articles than you will read.  This will mean that
4247 the link between your machine and the @sc{nntp} server will become more
4248 loaded than if you didn't use article pre-fetch.  The server itself will
4249 also become more loaded---both with the extra article requests, and the
4250 extra connection.
4251
4252 Ok, so now you know that you shouldn't really use this thing...  unless
4253 you really want to.
4254
4255 @vindex gnus-asynchronous
4256 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
4257 happen automatically.
4258
4259 @vindex nntp-async-number
4260 You can control how many articles that are to be pre-fetched by setting
4261 @code{nntp-async-number}.  This is five by default, which means that when
4262 you read an article in the group, @code{nntp} will pre-fetch the next
4263 five articles.  If this variable is @code{t}, @code{nntp} will pre-fetch
4264 all the articles that it can without bound.  If it is @code{nil}, no
4265 pre-fetching will be made.
4266
4267 @vindex gnus-asynchronous-article-function
4268 You may wish to create some sort of scheme for choosing which articles
4269 that @code{nntp} should consider as candidates for pre-fetching.  For
4270 instance, you may wish to pre-fetch all articles with high scores, and
4271 not pre-fetch low-scored articles.  You can do that by setting the
4272 @code{gnus-asynchronous-article-function}, which will be called with an
4273 alist where the keys are the article numbers.  Your function should
4274 return an alist where the articles you are not interested in have been
4275 removed.  You could also do sorting on article score and the like. 
4276
4277
4278 @node Article Caching
4279 @section Article Caching
4280 @cindex article caching
4281 @cindex caching
4282
4283 If you have an @emph{extremely} slow @sc{nntp} connection, you may
4284 consider turning article caching on.  Each article will then be stored
4285 locally under your home directory.  As you may surmise, this could
4286 potentially use @emph{huge} amounts of disk space, as well as eat up all
4287 your inodes so fast it will make your head swim.  In vodka.
4288
4289 Used carefully, though, it could be just an easier way to save articles.
4290
4291 @vindex gnus-use-long-file-name
4292 @vindex gnus-cache-directory
4293 @vindex gnus-use-cache
4294 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
4295 all articles that are ticked or marked as dormant will then be copied
4296 over to your local cache (@code{gnus-cache-directory}).  Whether this
4297 cache is flat or hierarchal is controlled by the
4298 @code{gnus-use-long-file-name} variable, as usual.
4299
4300 When re-select a ticked or dormant article, it will be fetched from the
4301 cache instead of from the server.  As articles in your cache will never
4302 expire, this might serve as a method of saving articles while still
4303 keeping them where they belong.  Just mark all articles you want to save
4304 as dormant, and don't worry.
4305
4306 When an article is marked as read, is it removed from the cache.
4307
4308 @vindex gnus-cache-remove-articles
4309 @vindex gnus-cache-enter-articles
4310 The entering/removal of articles from the cache is controlled by the
4311 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
4312 variables.  Both are lists of symbols.  The first is @code{(ticked
4313 dormant)} by default, meaning that ticked and dormant articles will be
4314 put in the cache.  The latter is @code{(read)} by default, meaning that
4315 articles that are marked as read are removed from the cache.  Possibly
4316 symbols in these two lists are @code{ticked}, @code{dormant},
4317 @code{unread} and @code{read}.
4318
4319 @findex gnus-jog-cache
4320 So where does the massive article-fetching and storing come into the
4321 picture?  The @code{gnus-jog-cache} command will go through all
4322 subscribed newsgroups, request all unread articles, and store them in
4323 the cache.  You should only ever, ever ever ever, use this command if 1)
4324 your connection to the @sc{nntp} server is really, really, really slow
4325 and 2) you have a really, really, really huge disk.  Seriously.
4326
4327 @vindex gnus-uncacheable-groups
4328 It is likely that you do not want caching on some groups.  For instance,
4329 if your @code{nnml} mail is located under your home directory, it makes no
4330 sense to cache it somewhere else under your home directory.  Unless you
4331 feel that it's neat to use twice as much space.  To limit the caching,
4332 you could set the @code{gnus-uncacheable-groups} regexp to
4333 @samp{^nnml}, for instance.  This variable is @code{nil} by
4334 default.
4335
4336 @findex gnus-cache-generate-nov-databases
4337 @findex gnus-cache-generate-active
4338 @vindex gnus-cache-active-file
4339 The cache stores information on what articles it contains in its active
4340 file (@code{gnus-cache-active-file}).  If this file (or any other parts
4341 of the cache) becomes all messed up for some reason or other, Gnus
4342 offers two functions that will try to set things right.  @kbd{M-x
4343 gnus-cache-generate-nov-databases} will (re)build all the @sc{nov}
4344 files, and @kbd{gnus-cache-generate-active} will (re)generate the active
4345 file.
4346
4347
4348 @node Persistent Articles
4349 @section Persistent Articles
4350 @cindex persistent articles
4351
4352 Closely related to article caching, we have @dfn{persistent articles}.
4353 In fact, it's just a different way of looking at caching, and much more
4354 useful in my opinion.
4355
4356 Say you're reading a newsgroup, and you happen on to some valuable gem
4357 that you want to keep and treasure forever.  You'd normally just save it
4358 (using one of the many saving commands) in some file.  The problem with
4359 that is that it's just, well, yucky.  Ideally you'd prefer just having
4360 the article remain in the group where you found it forever; untouched by
4361 the expiry going on at the news server.
4362
4363 This is what a @dfn{persistent article} is---an article that just won't
4364 be deleted.  It's implemented using the normal cache functions, but
4365 you use two explicit commands for managing persistent articles:
4366
4367 @table @kbd
4368
4369 @item *
4370 @kindex * (Summary)
4371 @findex gnus-cache-enter-article
4372 Make the current article persistent (@code{gnus-cache-enter-article}). 
4373
4374 @item M-*
4375 @kindex M-* (Summary)
4376 @findex gnus-cache-remove-article
4377 Remove the current article from the persistent articles
4378 (@code{gnus-cache-remove-article}).  This will normally delete the
4379 article. 
4380 @end table
4381
4382 Both these commands understand the process/prefix convention. 
4383
4384 To avoid having all ticked articles (and stuff) entered into the cache,
4385 you should set @code{gnus-use-cache} to @code{passive} if you're just
4386 interested in persistent articles:
4387
4388 @lisp
4389 (setq gnus-use-cache 'passive)
4390 @end lisp
4391
4392
4393 @node Article Backlog
4394 @section Article Backlog
4395 @cindex backlog
4396 @cindex article backlog
4397
4398 If you have a slow connection, but the idea of using caching seems
4399 unappealing to you (and it is, really), you can help the situation some
4400 by switching on the @dfn{backlog}.  This is where Gnus will buffer
4401 already read articles so that it doesn't have to re-fetch articles
4402 you've already read.  This only helps if you are in the habit of
4403 re-selecting articles you've recently read, of course.  If you never do
4404 that, turning the backlog on will slow Gnus down a little bit, and
4405 increase memory usage some.
4406
4407 @vindex gnus-keep-backlog
4408 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
4409 at most @var{n} old articles in a buffer for later re-fetching.  If this
4410 variable is non-@code{nil} and is not a number, Gnus will store
4411 @emph{all} read articles, which means that your Emacs will grow without
4412 bound before exploding and taking your machine down with you.  I put
4413 that in there just to keep y'all on your toes.  
4414
4415 This variable is @code{nil} by default.
4416
4417
4418 @node Saving Articles
4419 @section Saving Articles
4420 @cindex saving articles
4421
4422 Gnus can save articles in a number of ways.  Below is the documentation
4423 for saving articles in a fairly straight-forward fashion (i.e., little
4424 processing of the article is done before it is saved).  For a different
4425 approach (uudecoding, unsharing) you should use @code{gnus-uu}
4426 (@pxref{Decoding Articles}).
4427
4428 @vindex gnus-save-all-headers
4429 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
4430 unwanted headers before saving the article.
4431
4432 @vindex gnus-saved-headers
4433 If the preceding variable is @code{nil}, all headers that match the
4434 @code{gnus-saved-headers} regexp will be kept, while the rest will be
4435 deleted before saving.
4436
4437 @table @kbd
4438
4439 @item O o
4440 @itemx o
4441 @kindex O o (Summary)
4442 @kindex o (Summary)
4443 @findex gnus-summary-save-article
4444 Save the current article using the default article saver
4445 (@code{gnus-summary-save-article}). 
4446
4447 @item O m
4448 @kindex O m (Summary)
4449 @findex gnus-summary-save-article-mail
4450 Save the current article in mail format
4451 (@code{gnus-summary-save-article-mail}). 
4452
4453 @item O r
4454 @kindex O r (Summary)
4455 @findex gnus-summary-save-article-rmail
4456 Save the current article in rmail format
4457 (@code{gnus-summary-save-article-rmail}). 
4458
4459 @item O f
4460 @kindex O f (Summary)
4461 @findex gnus-summary-save-article-file
4462 Save the current article in plain file format
4463 (@code{gnus-summary-save-article-file}). 
4464
4465 @item O b
4466 @kindex O b (Summary)
4467 @findex gnus-summary-save-article-body-file
4468 Save the current article body in plain file format
4469 (@code{gnus-summary-save-article-body-file}). 
4470
4471 @item O h
4472 @kindex O h (Summary)
4473 @findex gnus-summary-save-article-folder
4474 Save the current article in mh folder format
4475 (@code{gnus-summary-save-article-folder}). 
4476
4477 @item O v
4478 @kindex O v (Summary)
4479 @findex gnus-summary-save-article-vm
4480 Save the current article in a VM folder
4481 (@code{gnus-summary-save-article-vm}).
4482
4483 @item O p
4484 @kindex O p (Summary)
4485 @findex gnus-summary-pipe-output
4486 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
4487 the current article to a process (@code{gnus-summary-pipe-output}).
4488 @end table
4489
4490 @vindex gnus-prompt-before-saving
4491 All these commands use the process/prefix convention
4492 (@pxref{Process/Prefix}).  If you save bunches of articles using these
4493 functions, you might get tired of being prompted for files to save each
4494 and every article in.  The prompting action is controlled by
4495 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
4496 default, giving you that excessive prompting action you know and
4497 loathe.  If you set this variable to @code{t} instead, you'll be prompted
4498 just once for each series of articles you save.  If you like to really
4499 have Gnus do all your thinking for you, you can even set this variable
4500 to @code{nil}, which means that you will never be prompted for files to
4501 save articles in.  Gnus will simply save all the articles in the default
4502 files. 
4503
4504
4505 @vindex gnus-default-article-saver
4506 You can customize the @code{gnus-default-article-saver} variable to make
4507 Gnus do what you want it to.  You can use any of the four ready-made
4508 functions below, or you can create your own.
4509
4510 @table @code
4511
4512 @item gnus-summary-save-in-rmail
4513 @findex gnus-summary-save-in-rmail
4514 @vindex gnus-rmail-save-name
4515 @findex gnus-plain-save-name
4516 This is the default format, @dfn{babyl}.  Uses the function in the
4517 @code{gnus-rmail-save-name} variable to get a file name to save the
4518 article in.  The default is @code{gnus-plain-save-name}.
4519
4520 @item gnus-summary-save-in-mail
4521 @findex gnus-summary-save-in-mail
4522 @vindex gnus-mail-save-name
4523 Save in a Unix mail (mbox) file.  Uses the function in the
4524 @code{gnus-mail-save-name} variable to get a file name to save the
4525 article in.  The default is @code{gnus-plain-save-name}.
4526
4527 @item gnus-summary-save-in-file
4528 @findex gnus-summary-save-in-file
4529 @vindex gnus-file-save-name
4530 @findex gnus-numeric-save-name
4531 Append the article straight to an ordinary file.  Uses the function in
4532 the @code{gnus-file-save-name} variable to get a file name to save the
4533 article in.  The default is @code{gnus-numeric-save-name}.
4534
4535 @item gnus-summary-save-body-in-file
4536 @findex gnus-summary-save-body-in-file
4537 Append the article body to an ordinary file.  Uses the function in the
4538 @code{gnus-file-save-name} variable to get a file name to save the
4539 article in.  The default is @code{gnus-numeric-save-name}.
4540
4541 @item gnus-summary-save-in-folder
4542 @findex gnus-summary-save-in-folder
4543 @findex gnus-folder-save-name
4544 @findex gnus-Folder-save-name
4545 @vindex gnus-folder-save-name
4546 @cindex rcvstore
4547 @cindex MH folders
4548 Save the article to an MH folder using @code{rcvstore} from the MH
4549 library.  Uses the function in the @code{gnus-folder-save-name} variable
4550 to get a file name to save the article in.  The default is
4551 @code{gnus-folder-save-name}, but you can also use
4552 @code{gnus-Folder-save-name}.  The former creates capitalized names, and
4553 the latter does not.
4554
4555 @item gnus-summary-save-in-vm
4556 @findex gnus-summary-save-in-vm
4557 Save the article in a VM folder.  You have to have the VM mail
4558 reader to use this setting.
4559 @end table
4560
4561 @vindex gnus-article-save-directory
4562 All of these functions, except for the last one, will save the article
4563 in the @code{gnus-article-save-directory}, which is initialized from the
4564 @code{SAVEDIR} environment variable.  This is @file{~/News/} by
4565 default. 
4566
4567 As you can see above, the functions use different functions to find a
4568 suitable name of a file to save the article in.  Below is a list of
4569 available functions that generate names:
4570
4571 @table @code
4572
4573 @item gnus-Numeric-save-name
4574 @findex gnus-Numeric-save-name
4575 Generates file names that look like @file{~/News/Alt.andrea-dworkin/45}.
4576
4577 @item gnus-numeric-save-name
4578 @findex gnus-numeric-save-name
4579 Generates file names that look like @file{~/News/alt.andrea-dworkin/45}.
4580
4581 @item gnus-Plain-save-name
4582 @findex gnus-Plain-save-name
4583 Generates file names that look like @file{~/News/Alt.andrea-dworkin}.
4584
4585 @item gnus-plain-save-name
4586 @findex gnus-plain-save-name
4587 Generates file names that look like @file{~/News/alt.andrea-dworkin}.
4588 @end table
4589
4590 @vindex gnus-split-methods
4591 You can have Gnus suggest where to save articles by plonking a regexp into
4592 the @code{gnus-split-methods} alist.  For instance, if you would like to
4593 save articles related to Gnus in the file @file{gnus-stuff}, and articles
4594 related to VM in @code{vm-stuff}, you could set this variable to something
4595 like:
4596
4597 @lisp
4598 (("^Subject:.*gnus\\|^Newsgroups:.*gnus" "gnus-stuff")
4599  ("^Subject:.*vm\\|^Xref:.*vm" "vm-stuff")
4600  (my-choosing-function "../other-dir/my-stuff")
4601  ((equal gnus-newsgroup-name "mail.misc") "mail-stuff"))
4602 @end lisp
4603
4604 We see that this is a list where each element is a list that has two
4605 elements---the @dfn{match} and the @dfn{file}.  The match can either be
4606 a string (in which case it is used as a regexp to match on the article
4607 head); it can be a symbol (which will be called as a function with the
4608 group name as a parameter); or it can be a list (which will be
4609 @code{eval}ed).  If any of these actions have a non-@code{nil} result,
4610 the @dfn{file} will be used as a default prompt.  In addition, the
4611 result of the operation itself will be used if the function or form
4612 called returns a string or a list of strings.
4613
4614 You basically end up with a list of file names that might be used when
4615 saving the current article.  (All ``matches'' will be used.)  You will
4616 then be prompted for what you really want to use as a name, with file
4617 name completion over the results from applying this variable.
4618
4619 This variable is @code{((gnus-article-archive-name))} by default, which
4620 means that Gnus will look at the articles it saves for an
4621 @code{Archive-name} line and use that as a suggestion for the file
4622 name. 
4623
4624 @vindex gnus-use-long-file-name
4625 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
4626 @code{nil}, all the preceding functions will replace all periods
4627 (@samp{.}) in the group names with slashes (@samp{/})---which means that
4628 the functions will generate hierarchies of directories instead of having
4629 all the files in the toplevel directory
4630 (@file{~/News/alt/andrea-dworkin} instead of
4631 @file{~/News/alt.andrea-dworkin}.)  This variable is @code{t} by default
4632 on most systems.  However, for historical reasons, this is @code{nil} on
4633 Xenix and usg-unix-v machines by default.
4634
4635 This function also affects kill and score file names.  If this variable
4636 is a list, and the list contains the element @code{not-score}, long file
4637 names will not be used for score files, if it contains the element
4638 @code{not-save}, long file names will not be used for saving, and if it
4639 contains the element @code{not-kill}, long file names will not be used
4640 for kill files.
4641
4642 If you'd like to save articles in a hierarchy that looks something like
4643 a spool, you could
4644
4645 @lisp
4646 (setq gnus-use-long-file-name '(not-save)) ; to get a hierarchy
4647 (setq gnus-default-article-save 'gnus-summary-save-in-file) ; no encoding
4648 @end lisp
4649
4650 Then just save with @kbd{o}.  You'd then read this hierarchy with
4651 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
4652 the toplevel directory as the argument (@file{~/News/}).  Then just walk
4653 around to the groups/directories with @code{nneething}.
4654
4655
4656 @node Decoding Articles
4657 @section Decoding Articles
4658 @cindex decoding articles
4659
4660 Sometime users post articles (or series of articles) that have been
4661 encoded in some way or other.  Gnus can decode them for you.
4662
4663 @menu 
4664 * Uuencoded Articles::    Uudecode articles.
4665 * Shared Articles::       Unshar articles.
4666 * PostScript Files::      Split PostScript.
4667 * Decoding Variables::    Variables for a happy decoding.
4668 * Viewing Files::         You want to look at the result of the decoding?
4669 @end menu
4670
4671 All these functions use the process/prefix convention
4672 (@pxref{Process/Prefix}) for finding out what articles to work on, with
4673 the extension that a ``single article'' means ``a single series''.  Gnus
4674 can find out by itself what articles belong to a series, decode all the
4675 articles and unpack/view/save the resulting file(s).
4676
4677 Gnus guesses what articles are in the series according to the following
4678 simplish rule: The subjects must be (nearly) identical, except for the
4679 last two numbers of the line.  (Spaces are largely ignored, however.)
4680
4681 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
4682 will find all the articles that match the regexp @samp{^cat.gif
4683 ([0-9]+/[0-9]+).*$}.  
4684
4685 Subjects that are nonstandard, like @samp{cat.gif (2/3) Part 6 of a
4686 series}, will not be properly recognized by any of the automatic viewing
4687 commands, and you have to mark the articles manually with @kbd{#}.
4688
4689
4690 @node Uuencoded Articles
4691 @subsection Uuencoded Articles
4692 @cindex uudecode
4693 @cindex uuencoded articles
4694
4695 @table @kbd
4696
4697 @item X u
4698 @kindex X u (Summary)
4699 @findex gnus-uu-decode-uu
4700 Uudecodes the current series (@code{gnus-uu-decode-uu}).
4701
4702 @item X U
4703 @kindex X U (Summary)
4704 @findex gnus-uu-decode-uu-and-save
4705 Uudecodes and saves the current series
4706 (@code{gnus-uu-decode-uu-and-save}).
4707
4708 @item X v u
4709 @kindex X v u (Summary)
4710 @findex gnus-uu-decode-uu-view
4711 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
4712
4713 @item X v U
4714 @kindex X v U (Summary)
4715 @findex gnus-uu-decode-uu-and-save-view
4716 Uudecodes, views and saves the current series
4717 (@code{gnus-uu-decode-uu-and-save-view}). 
4718 @end table
4719
4720 Remember that these all react to the presence of articles marked with
4721 the process mark.  If, for instance, you'd like to decode and save an
4722 entire newsgroup, you'd typically do @kbd{M P a}
4723 (@code{gnus-uu-mark-all}) and then @kbd{X U}
4724 (@code{gnus-uu-decode-uu-and-save}).
4725
4726 All this is very much different from how @code{gnus-uu} worked with
4727 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
4728 the sun.  This version of @code{gnus-uu} generally assumes that you mark
4729 articles in some way (@pxref{Setting Process Marks}) and then press
4730 @kbd{X u}.
4731
4732 @vindex gnus-uu-notify-files
4733 Note: When trying to decode articles that have names matching
4734 @code{gnus-uu-notify-files}, which is hard-coded to
4735 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
4736 automatically post an article on @samp{comp.unix.wizards} saying that
4737 you have just viewed the file in question.  This feature can't be turned
4738 off.
4739
4740
4741 @node Shared Articles
4742 @subsection Shared Articles
4743 @cindex unshar
4744 @cindex shared articles
4745
4746 @table @kbd
4747
4748 @item X s
4749 @kindex X s (Summary)
4750 @findex gnus-uu-decode-unshar
4751 Unshars the current series (@code{gnus-uu-decode-unshar}).
4752
4753 @item X S
4754 @kindex X S (Summary)
4755 @findex gnus-uu-decode-unshar-and-save
4756 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
4757
4758 @item X v s
4759 @kindex X v s (Summary)
4760 @findex gnus-uu-decode-unshar-view
4761 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
4762
4763 @item X v S
4764 @kindex X v S (Summary)
4765 @findex gnus-uu-decode-unshar-and-save-view
4766 Unshars, views and saves the current series
4767 (@code{gnus-uu-decode-unshar-and-save-view}). 
4768 @end table
4769
4770
4771 @node PostScript Files
4772 @subsection PostScript Files
4773 @cindex PostScript
4774
4775 @table @kbd
4776
4777 @item X p
4778 @kindex X p (Summary)
4779 @findex gnus-uu-decode-postscript
4780 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
4781
4782 @item X P
4783 @kindex X P (Summary)
4784 @findex gnus-uu-decode-postscript-and-save
4785 Unpack and save the current PostScript series
4786 (@code{gnus-uu-decode-postscript-and-save}).
4787
4788 @item X v p
4789 @kindex X v p (Summary)
4790 @findex gnus-uu-decode-postscript-view
4791 View the current PostScript series
4792 (@code{gnus-uu-decode-postscript-view}).
4793
4794 @item X v P
4795 @kindex X v P (Summary)
4796 @findex gnus-uu-decode-postscript-and-save-view
4797 View and save the current PostScript series
4798 (@code{gnus-uu-decode-postscript-and-save-view}). 
4799 @end table
4800
4801
4802 @node Decoding Variables
4803 @subsection Decoding Variables
4804
4805 Adjective, not verb.
4806
4807 @menu 
4808 * Rule Variables::          Variables that say how a file is to be viewed.
4809 * Other Decode Variables::  Other decode variables.
4810 * Uuencoding and Posting::  Variables for customizing uuencoding.
4811 @end menu
4812
4813
4814 @node Rule Variables
4815 @subsubsection Rule Variables
4816 @cindex rule variables
4817
4818 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
4819 variables are on the form
4820   
4821 @lisp
4822       (list '(regexp1 command2)
4823             '(regexp2 command2)
4824             ...)
4825 @end lisp
4826
4827 @table @code
4828
4829 @item gnus-uu-user-view-rules
4830 @vindex gnus-uu-user-view-rules
4831 @cindex sox
4832 This variable is consulted first when viewing files.  If you wish to use,
4833 for instance, @code{sox} to convert an @samp{.au} sound file, you could
4834 say something like:
4835 @lisp
4836        (setq gnus-uu-user-view-rules
4837          (list '(\"\\\\.au$\" \"sox %s -t .aiff > /dev/audio\")))
4838 @end lisp
4839
4840 @item gnus-uu-user-view-rules-end
4841 @vindex gnus-uu-user-view-rules-end
4842 This variable is consulted if Gnus couldn't make any matches from the
4843 user and default view rules.
4844
4845 @item gnus-uu-user-archive-rules
4846 @vindex gnus-uu-user-archive-rules
4847 This variable can be used to say what commands should be used to unpack
4848 archives.
4849 @end table
4850
4851
4852 @node Other Decode Variables
4853 @subsubsection Other Decode Variables
4854
4855 @table @code
4856 @vindex gnus-uu-grabbed-file-functions
4857
4858 @item gnus-uu-grabbed-file-functions
4859 All functions in this list will be called right each file has been
4860 successfully decoded---so that you can move or view files right away,
4861 and don't have to wait for all files to be decoded before you can do
4862 anything.  Ready-made functions you can put in this list are:
4863
4864 @table @code
4865
4866 @item gnus-uu-grab-view
4867 @findex gnus-uu-grab-view
4868 View the file.
4869
4870 @item gnus-uu-grab-move
4871 @findex gnus-uu-grab-move
4872 Move the file (if you're using a saving function.)
4873 @end table
4874
4875 @item gnus-uu-ignore-files-by-name
4876 @vindex gnus-uu-ignore-files-by-name
4877 Files with name matching this regular expression won't be viewed.
4878
4879 @item gnus-uu-ignore-files-by-type
4880 @vindex gnus-uu-ignore-files-by-type
4881 Files with a @sc{mime} type matching this variable won't be viewed.
4882 Note that Gnus tries to guess what type the file is based on the name.
4883 @code{gnus-uu} is not a @sc{mime} package (yet), so this is slightly
4884 kludgey.
4885
4886 @item gnus-uu-tmp-dir
4887 @vindex gnus-uu-tmp-dir
4888 Where @code{gnus-uu} does its work.
4889
4890 @item gnus-uu-do-not-unpack-archives
4891 @vindex gnus-uu-do-not-unpack-archives
4892 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
4893 looking for files to display.
4894
4895 @item gnus-uu-view-and-save
4896 @vindex gnus-uu-view-and-save
4897 Non-@code{nil} means that the user will always be asked to save a file
4898 after viewing it.
4899
4900 @item gnus-uu-ignore-default-view-rules
4901 @vindex gnus-uu-ignore-default-view-rules
4902 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
4903 rules.
4904
4905 @item gnus-uu-ignore-default-archive-rules
4906 @vindex gnus-uu-ignore-default-archive-rules
4907 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
4908 unpacking commands.
4909
4910 @item gnus-uu-kill-carriage-return
4911 @vindex gnus-uu-kill-carriage-return
4912 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
4913 from articles.
4914
4915 @item gnus-uu-unmark-articles-not-decoded
4916 @vindex gnus-uu-unmark-articles-not-decoded
4917 Non-@code{nil} means that @code{gnus-uu} will mark articles that were
4918 unsuccessfully decoded as unread.
4919
4920 @item gnus-uu-correct-stripped-uucode
4921 @vindex gnus-uu-correct-stripped-uucode
4922 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
4923 uuencoded files that have had trailing spaces deleted.
4924
4925 @item gnus-uu-view-with-metamail
4926 @vindex gnus-uu-view-with-metamail
4927 @cindex metamail
4928 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
4929 commands defined by the rule variables and just fudge a @sc{mime}
4930 content type based on the file name.  The result will be fed to
4931 @code{metamail} for viewing.
4932
4933 @item gnus-uu-save-in-digest
4934 @vindex gnus-uu-save-in-digest
4935 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
4936 decoding, will save in digests.  If this variable is @code{nil},
4937 @code{gnus-uu} will just save everything in a file without any
4938 embellishments.  The digesting almost conforms to RFC1153---no easy way
4939 to specify any meaningful volume and issue numbers were found, so I
4940 simply dropped them.
4941
4942 @end table
4943
4944
4945 @node Uuencoding and Posting
4946 @subsubsection Uuencoding and Posting
4947
4948 @table @code
4949
4950 @item gnus-uu-post-include-before-composing
4951 @vindex gnus-uu-post-include-before-composing
4952 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
4953 before you compose the article.  If this variable is @code{t}, you can
4954 either include an encoded file with @kbd{C-c C-i} or have one included
4955 for you when you post the article.
4956
4957 @item gnus-uu-post-length
4958 @vindex gnus-uu-post-length
4959 Maximum length of an article.  The encoded file will be split into how
4960 many articles it takes to post the entire file.
4961
4962 @item gnus-uu-post-threaded
4963 @vindex gnus-uu-post-threaded
4964 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
4965 thread.  This may not be smart, as no other decoder I have seen are able
4966 to follow threads when collecting uuencoded articles.  (Well, I have
4967 seen one package that does that---@code{gnus-uu}, but somehow, I don't
4968 think that counts...) Default is @code{nil}.
4969
4970 @item gnus-uu-post-separate-description
4971 @vindex gnus-uu-post-separate-description
4972 Non-@code{nil} means that the description will be posted in a separate
4973 article.  The first article will typically be numbered (0/x).  If this
4974 variable is @code{nil}, the description the user enters will be included
4975 at the beginning of the first article, which will be numbered (1/x).
4976 Default is @code{t}.
4977
4978 @end table
4979
4980
4981 @node Viewing Files
4982 @subsection Viewing Files
4983 @cindex viewing files
4984 @cindex pseudo-articles
4985
4986 After decoding, if the file is some sort of archive, Gnus will attempt
4987 to unpack the archive and see if any of the files in the archive can be
4988 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
4989 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
4990 uncompress and de-tar the main file, and then view the two pictures.
4991 This unpacking process is recursive, so if the archive contains archives
4992 of archives, it'll all be unpacked.
4993
4994 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
4995 extracted file into the summary buffer.  If you go to these
4996 ``articles'', you will be prompted for a command to run (usually Gnus
4997 will make a suggestion), and then the command will be run.
4998
4999 @vindex gnus-view-pseudo-asynchronously
5000 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
5001 until the viewing is done before proceeding.
5002
5003 @vindex gnus-view-pseudos
5004 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
5005 the pseudo-articles into the summary buffer, but view them
5006 immediately.  If this variable is @code{not-confirm}, the user won't even
5007 be asked for a confirmation before viewing is done.
5008
5009 @vindex gnus-view-pseudos-separately 
5010 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
5011 pseudo-article will be created for each file to be viewed.  If
5012 @code{nil}, all files that use the same viewing command will be given as
5013 a list of parameters to that command.
5014
5015 @vindex gnus-insert-pseudo-articles
5016 If @code{gnus-insert-pseudo-articles} is non-@code{nil}, insert
5017 pseudo-articles when decoding.  It is @code{t} by default.
5018
5019 So; there you are, reading your @emph{pseudo-articles} in your
5020 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
5021 Why isn't anything real anymore? How did we get here?
5022
5023
5024 @node Article Treatment
5025 @section Article Treatment
5026
5027 Reading through this huge manual, you may have quite forgotten that the
5028 object of newsreaders are to actually, like, read what people have
5029 written.  Reading articles.  Unfortunately, people are quite bad at
5030 writing, so there are tons of functions and variables to make reading
5031 these articles easier.
5032
5033 @menu
5034 * Article Highlighting::    You want to make the article look like fruit salad.
5035 * Article Hiding::          You also want to make certain info go away.
5036 * Article Washing::         Lots of way-neat functions to make life better.
5037 * Article Buttons::         Click on URLs, Message-IDs, addresses and the like.
5038 * Article Date::            Grumble, UT!
5039 * Article Signature::       What is a signature?
5040 @end menu
5041
5042
5043 @node Article Highlighting
5044 @subsection Article Highlighting
5045 @cindex highlight
5046
5047 Not only do you want your article buffer to look like fruit salad, but
5048 you want it to look like technicolor fruit salad.
5049
5050 @table @kbd
5051
5052 @item W H a
5053 @kindex W H a (Summary)
5054 @findex gnus-article-highlight
5055 Highlight the current article (@code{gnus-article-highlight}).
5056
5057 @item W H h
5058 @kindex W H h (Summary)
5059 @findex gnus-article-highlight-headers
5060 @vindex gnus-header-face-alist
5061 Highlight the headers (@code{gnus-article-highlight-headers}).  The
5062 highlighting will be done according to the @code{gnus-header-face-alist}
5063 variable, which is a list where each element has the form @var{(regexp
5064 name content)}.  @var{regexp} is a regular expression for matching the
5065 header, @var{name} is the face used for highlighting the header name and
5066 @var{content} is the face for highlighting the header value.  The first
5067 match made will be used.  Note that @var{regexp} shouldn't have @samp{^}
5068 prepended---Gnus will add one.
5069
5070 @item W H c
5071 @kindex W H c (Summary)
5072 @findex gnus-article-highlight-citation
5073 Highlight cited text (@code{gnus-article-highlight-citation}). 
5074
5075 Some variables to customize the citation highlights:
5076
5077 @table @code
5078 @vindex gnus-cite-parse-max-size
5079
5080 @item gnus-cite-parse-max-size
5081 If the article size if bigger than this variable (which is 25000 by
5082 default), no citation highlighting will be performed.  
5083
5084 @item gnus-cite-prefix-regexp
5085 @vindex gnus-cite-prefix-regexp
5086 Regexp matching the longest possible citation prefix on a line. 
5087
5088 @item gnus-cite-max-prefix
5089 @vindex gnus-cite-max-prefix
5090 Maximum possible length for a citation prefix (default 20).
5091
5092 @item gnus-cite-face-list
5093 @vindex gnus-cite-face-list
5094 List of faces used for highlighting citations.  When there are citations
5095 from multiple articles in the same message, Gnus will try to give each
5096 citation from each article its own face.  This should make it easier to
5097 see who wrote what.
5098
5099 @item gnus-supercite-regexp
5100 @vindex gnus-supercite-regexp
5101 Regexp matching normal Supercite attribution lines.  
5102
5103 @item gnus-supercite-secondary-regexp
5104 @vindex gnus-supercite-secondary-regexp
5105 Regexp matching mangled Supercite attribution lines.
5106
5107 @item gnus-cite-minimum-match-count
5108 @vindex gnus-cite-minimum-match-count
5109 Minimum number of identical prefixes we have to see before we believe
5110 that it's a citation.
5111
5112 @item gnus-cite-attribution-prefix
5113 @vindex gnus-cite-attribution-prefix
5114 Regexp matching the beginning of an attribution line.
5115
5116 @item gnus-cite-attribution-suffix
5117 @vindex gnus-cite-attribution-suffix
5118 Regexp matching the end of an attribution line.
5119
5120 @item gnus-cite-attribution-face
5121 @vindex gnus-cite-attribution-face
5122 Face used for attribution lines.  It is merged with the face for the
5123 cited text belonging to the attribution.
5124
5125 @end table
5126
5127
5128 @item W H s
5129 @kindex W H s (Summary)
5130 @vindex gnus-signature-separator
5131 @vindex gnus-signature-face
5132 @findex gnus-article-highlight-signature
5133 Highlight the signature (@code{gnus-article-highlight-signature}).
5134 Everything after @code{gnus-signature-separator} (@pxref{Article
5135 Signature}) in an article will be considered a signature and will be
5136 highlighted with @code{gnus-signature-face}, which is @code{italic} by
5137 default.
5138
5139 @end table
5140
5141
5142 @node Article Hiding
5143 @subsection Article Hiding
5144 @cindex article hiding
5145
5146 Or rather, hiding certain things in each article.  There usually is much
5147 too much cruft in most articles.  
5148
5149 @table @kbd
5150
5151 @item W W a
5152 @kindex W W a (Summary)
5153 @findex gnus-article-hide
5154 Do maximum hiding on the summary buffer (@kbd{gnus-article-hide}). 
5155
5156 @item W W h
5157 @kindex W W h (Summary)
5158 @findex gnus-article-hide-headers
5159 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
5160 Headers}. 
5161
5162 @item W W b
5163 @kindex W W b (Summary)
5164 @findex gnus-article-hide-boring-headers
5165 Hide headers that aren't particularly interesting
5166 (@code{gnus-article-hide-boring-headers}).  @xref{Hiding Headers}.
5167
5168 @item W W s
5169 @kindex W W s (Summary)
5170 @findex gnus-article-hide-signature
5171 Hide signature (@code{gnus-article-hide-signature}).  @xref{Article
5172 Signature}. 
5173
5174 @item W W p
5175 @kindex W W p (Summary)
5176 @findex gnus-article-hide-pgp
5177 Hide @sc{pgp} signatures (@code{gnus-article-hide-pgp}). 
5178
5179 @item W W P
5180 @kindex W W P (Summary)
5181 @findex gnus-article-hide-pem
5182 Hide @sc{pem} (privacy enhavnced hessages) gruft
5183 (@code{gnus-article-hide-pem}).
5184
5185 @item W W c
5186 @kindex W W c (Summary)
5187 @findex gnus-article-hide-citation
5188 Hide citation (@code{gnus-article-hide-citation}).  Some variables for
5189 customizing the hiding:
5190
5191 @table @code
5192
5193 @item gnus-cite-hide-percentage
5194 @vindex gnus-cite-hide-percentage
5195 If the cited text is of a bigger percentage than this variable (default
5196 50), hide the cited text.
5197
5198 @item gnus-cite-hide-absolute
5199 @vindex gnus-cite-hide-absolute
5200 The cited text must be have at least this length (default 10) before it
5201 is hidden.
5202
5203 @item gnus-cited-text-button-line-format
5204 @vindex gnus-cited-text-button-line-format
5205 Gnus adds buttons show where the cited text has been hidden, and to
5206 allow toggle hiding the text.  The format of the variable is specified
5207 by this format-like variable.  These specs are legal:
5208
5209 @table @samp
5210 @item b
5211 Start point of the hidden text.
5212 @item e
5213 End point of the hidden text.
5214 @item l
5215 Length of the hidden text.
5216 @end table
5217
5218 @item gnus-cited-lines-visible
5219 @vindex gnus-cited-lines-visible
5220 The number of lines at the beginning of the cited text to leave shown. 
5221
5222 @end table
5223
5224 @item W W C
5225 @kindex W W C (Summary)
5226 @findex gnus-article-hide-citation-in-followups
5227 Hide cited text in articles that aren't roots
5228 (@code{gnus-article-hide-citation-in-followups}).  This isn't very
5229 useful as an interactive command, but might be a handy function to stick
5230 in @code{gnus-article-display-hook} (@pxref{Customizing Articles}). 
5231
5232 @end table
5233
5234 All these ``hiding'' commands are toggles, but if you give a negative
5235 prefix to these commands, they will show what they have previously
5236 hidden.  If you give a positive prefix, they will always hide.
5237
5238 Also @pxref{Article Highlighting} for further variables for
5239 citation customization.
5240
5241
5242 @node Article Washing
5243 @subsection Article Washing
5244 @cindex washing
5245 @cindex article washing
5246
5247 We call this ``article washing'' for a really good reason.  Namely, the
5248 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
5249
5250 @dfn{Washing} is defined by us as ``changing something from something to
5251 something else'', but normally results in something looking better.
5252 Cleaner, perhaps.
5253
5254 @table @kbd
5255
5256 @item W l
5257 @kindex W l (Summary)
5258 @findex gnus-summary-stop-page-breaking
5259 Remove page breaks from the current article
5260 (@code{gnus-summary-stop-page-breaking}).
5261
5262 @item W r
5263 @kindex W r (Summary)
5264 @findex gnus-summary-caesar-message
5265 Do a Caesar rotate (rot13) on the article buffer
5266 (@code{gnus-summary-caesar-message}). 
5267
5268 @item W t
5269 @kindex W t (Summary)
5270 @findex gnus-summary-toggle-header
5271 Toggle whether to display all headers in the article buffer
5272 (@code{gnus-summary-toggle-header}). 
5273
5274 @item W v
5275 @kindex W v (Summary)
5276 @findex gnus-summary-verbose-header
5277 Toggle whether to display all headers in the article buffer permanently
5278 (@code{gnus-summary-verbose-header}).
5279
5280 @item W m
5281 @kindex W m (Summary)
5282 @findex gnus-summary-toggle-mime
5283 Toggle whether to run the article through @sc{mime} before displaying
5284 (@code{gnus-summary-toggle-mime}).
5285
5286 @item W o
5287 @kindex W o (Summary)
5288 @findex gnus-article-treat-overstrike
5289 Treat overstrike (@code{gnus-article-treat-overstrike}).
5290
5291 @item W w
5292 @kindex W w (Summary)
5293 @findex gnus-article-fill-cited-article
5294 Do word wrap (@code{gnus-article-fill-cited-article}).  If you use this
5295 function in @code{gnus-article-display-hook}, it should be run fairly
5296 late and certainly after any highlighting.
5297
5298 @item W c
5299 @kindex W c (Summary)
5300 @findex gnus-article-remove-cr
5301 Remove CR (@code{gnus-article-remove-cr}).
5302
5303 @item W L
5304 @kindex W L (Summary)
5305 @findex gnus-article-remove-trailing-blank-lines
5306 Remove all blank lines at the end of the article
5307 (@code{gnus-article-remove-trailing-blank-lines}).
5308
5309 @item W q
5310 @kindex W q (Summary)
5311 @findex gnus-article-de-quoted-unreadable
5312 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
5313
5314 @item W f
5315 @kindex W f (Summary)
5316 @cindex x-face
5317 @findex gnus-article-display-x-face
5318 @findex gnus-article-x-face-command
5319 @vindex gnus-article-x-face-command
5320 @vindex gnus-article-x-face-too-ugly
5321 Look for and display any X-Face headers
5322 (@code{gnus-article-display-x-face}).  The command executed by this
5323 function is given by the @code{gnus-article-x-face-command} variable.
5324 If this variable is a string, this string will be executed in a
5325 sub-shell.  If it is a function, this function will be called with the
5326 face as the argument.  If the @code{gnus-article-x-face-too-ugly} (which
5327 is a regexp) matches the @code{From} header, the face will not be shown.
5328 The default action under Emacs is to fork off an @code{xv} to view the
5329 face; under XEmacs the default action is to display the face before the
5330 @code{From} header.  (It's nicer if XEmacs has been compiled with X-Face
5331 support---that will make display somewhat faster.  If there's no native
5332 X-Face support, Gnus will try to convert the @code{X-Face} header using
5333 external programs from the @code{pbmplus} package and friends.)  If you
5334 want to have this function in the display hook, it should probably come
5335 last.
5336
5337 @item W b
5338 @kindex W b (Summary)
5339 @findex gnus-article-add-buttons
5340 Add clickable buttons to the article (@code{gnus-article-add-buttons}). 
5341
5342 @item W B
5343 @kindex W B (Summary)
5344 @findex gnus-article-add-buttons-to-head
5345 Add clickable buttons to the article headers
5346 (@code{gnus-article-add-buttons-to-head}).  
5347
5348 @end table
5349
5350
5351 @node Article Buttons
5352 @subsection Article Buttons
5353 @cindex buttons
5354
5355 People often include references to other stuff in articles, and it would
5356 be nice if Gnus could just fetch whatever it is that people talk about
5357 with the minimum of fuzz.
5358
5359 Gnus adds @dfn{buttons} to certain standard references by default:
5360 Well-formed URLs, mail addresses and Message-IDs.  This is controlled by
5361 two variables, one that handles article bodies and one that handles
5362 article heads:
5363
5364 @table @code
5365
5366 @item gnus-button-alist
5367 @vindex gnus-button-alist
5368 This is an alist where each entry has this form:
5369
5370 @lisp
5371 (REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
5372 @end lisp
5373
5374 @table @var
5375
5376 @item regexp
5377 All text that match this regular expression will be considered an
5378 external reference.  Here's a typical regexp that match embedded URLs:
5379 @samp{<URL:\\([^\n\r>]*\\)>}. 
5380
5381 @item button-par
5382 Gnus has to know which parts of the match is to be highlighted.  This is
5383 a number that says what sub-expression of the regexp that is to be
5384 highlighted.  If you want it all highlighted, you use @code{0} here.
5385
5386 @item use-p
5387 This form will be @code{eval}ed, and if the result is non-@code{nil},
5388 this is considered a match.  This is useful if you want extra sifting to
5389 avoid false matches.
5390
5391 @item function
5392 This function will be called when you click on this button.
5393
5394 @item data-par
5395 As with @var{button-par}, this is a sub-expression number, but this one
5396 says which part of the match is to be sent as data to @var{function}. 
5397
5398 @end table
5399
5400 So the full entry for buttonizing URLs is then
5401
5402 @lisp
5403 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
5404 @end lisp
5405
5406 @item gnus-header-button-alist
5407 @vindex gnus-header-button-alist
5408 This is just like the other alist, except that it is applied to the
5409 article head only, and that each entry has an additional element that is
5410 used to say what headers to apply the buttonize coding to:
5411
5412 @lisp
5413 (HEADER REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
5414 @end lisp
5415
5416 @var{header} is a regular expression.
5417
5418 @item gnus-button-url-regexp
5419 @vindex gnus-button-url-regexp
5420 A regular expression that matches embedded URLs.  It is used in the
5421 default values of the variables above.
5422
5423 @item gnus-article-button-face
5424 @vindex gnus-article-button-face
5425 Face used on bottons.
5426
5427 @item gnus-article-mouse-face
5428 @vindex gnus-article-mouse-face
5429 Face is used when the mouse cursor is over a button.
5430
5431 @end table
5432
5433
5434 @node Article Date
5435 @subsection Article Date
5436
5437 The date is most likely generated in some obscure timezone you've never
5438 heard of, so it's quite nice to be able to find out what the time was
5439 when the article was sent.
5440
5441 @table @kbd
5442
5443 @item W T u
5444 @kindex W T u (Summary)
5445 @findex gnus-article-date-ut
5446 Display the date in UT (aka. GMT, aka ZULU)
5447 (@code{gnus-article-date-ut}). 
5448
5449 @item W T l
5450 @kindex W T l (Summary)
5451 @findex gnus-article-date-local
5452 Display the date in the local timezone (@code{gnus-article-date-local}).
5453
5454 @item W T e
5455 @kindex W T e (Summary)
5456 @findex gnus-article-date-lapsed
5457 Say how much time has (e)lapsed between the article was posted and now
5458 (@code{gnus-article-date-lapsed}).
5459
5460 @item W T o
5461 @kindex W T o (Summary)
5462 @findex gnus-article-date-original
5463 Display the original date (@code{gnus-article-date-original}).  This can
5464 be useful if you normally use some other conversion function and is
5465 worried that it might be doing something totally wrong.  Say, claiming
5466 that the article was posted in 1854.  Although something like that is
5467 @emph{totally} impossible.  Don't you trust me? *titter*
5468
5469 @end table
5470
5471
5472 @node Article Signature
5473 @subsection Article Signature
5474 @cindex signatures
5475 @cindex article signature
5476
5477 @vindex gnus-signature-separator
5478 Each article is divided into two parts---the head and the body.  The
5479 body can be divided into a signature part and a text part.  The variable
5480 that says what is to be considered a signature is
5481 @code{gnus-signature-separator}.  This is normally the standard
5482 @samp{"^-- $"} as mandated by son-of-RFC 1036.  However, many people use
5483 non-standard signature separators, so this variable can also be a list
5484 of regular expressions to be tested, one by one.  (Searches are done
5485 from the end of the body towards the beginning.)  One likely value is:
5486
5487 @lisp
5488 (setq gnus-signature-separator
5489       '("^-- $"         ; The standard
5490         "^-- *$"        ; A common mangling
5491         "^-------*$"    ; Many people just use a looong 
5492                         ; line of dashes.  Shame!
5493         "^ *--------*$" ; Double-shame!
5494         "^________*$"   ; Underscores are also popular
5495         "^========*$")) ; Pervert!
5496 @end lisp
5497
5498 The more permissive you are, the more likely it is that you'll get false
5499 positives.
5500
5501 @vindex gnus-signature-limit
5502 @code{gnus-signature-limit} provides a limit to what is considered a
5503 signature. 
5504
5505 @enumerate
5506 @item 
5507 If it is an integer, no signature may be longer (in characters) than
5508 that integer.
5509 @item 
5510 If it is a floating point number, no signature may be longer (in lines)
5511 than that number.
5512 @item 
5513 If it is a function, the function will be called without any parameters,
5514 and if it returns @code{nil}, there is no signature in the buffer.
5515 @item
5516 If it is a string, it will be used as a regexp.  If it matches, the text
5517 in question is not a signature.
5518 @end enumerate
5519
5520 This variable can also be a list where the elements may be of the types
5521 listed above.  
5522
5523
5524 @node Summary Sorting
5525 @section Summary Sorting
5526 @cindex summary sorting
5527
5528 You can have the summary buffer sorted in various ways, even though I
5529 can't really see why you'd want that.
5530
5531 @table @kbd
5532
5533 @item C-c C-s C-n
5534 @kindex C-c C-s C-n (Summary)
5535 @findex gnus-summary-sort-by-number
5536 Sort by article number (@code{gnus-summary-sort-by-number}).
5537
5538 @item C-c C-s C-a
5539 @kindex C-c C-s C-a (Summary)
5540 @findex gnus-summary-sort-by-author
5541 Sort by author (@code{gnus-summary-sort-by-author}).
5542
5543 @item C-c C-s C-s
5544 @kindex C-c C-s C-s (Summary)
5545 @findex gnus-summary-sort-by-subject
5546 Sort by subject (@code{gnus-summary-sort-by-subject}).
5547
5548 @item C-c C-s C-d
5549 @kindex C-c C-s C-d (Summary)
5550 @findex gnus-summary-sort-by-date
5551 Sort by date (@code{gnus-summary-sort-by-date}).
5552
5553 @item C-c C-s C-i
5554 @kindex C-c C-s C-i (Summary)
5555 @findex gnus-summary-sort-by-score
5556 Sort by score (@code{gnus-summary-sort-by-score}).
5557 @end table
5558
5559 These functions will work both when you use threading and when you don't
5560 use threading.  In the latter case, all summary lines will be sorted,
5561 line by line.  In the former case, sorting will be done on a
5562 root-by-root basis, which might not be what you were looking for.  To
5563 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
5564 Commands}).
5565
5566
5567 @node Finding the Parent
5568 @section Finding the Parent
5569 @cindex parent articles
5570 @cindex referring articles
5571
5572 @findex gnus-summary-refer-parent-article
5573 @kindex ^ (Summary)
5574 If you'd like to read the parent of the current article, and it is not
5575 displayed in the summary buffer, you might still be able to.  That is,
5576 if the current group is fetched by @sc{nntp}, the parent hasn't expired
5577 and the @code{References} in the current article are not mangled, you
5578 can just press @kbd{^} or @kbd{A r}
5579 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
5580 you'll get the parent.  If the parent is already displayed in the
5581 summary buffer, point will just move to this article.
5582
5583 @findex gnus-summary-refer-references
5584 @kindex A R (Summary)
5585 You can have Gnus fetch all articles mentioned in the @code{References}
5586 header of the article by pushing @kbd{A R}
5587 (@code{gnus-summary-refer-references}). 
5588
5589 @findex gnus-summary-refer-article
5590 @kindex M-^ (Summary)
5591 You can also ask the @sc{nntp} server for an arbitrary article, no
5592 matter what group it belongs to.  @kbd{M-^}
5593 (@code{gnus-summary-refer-article}) will ask you for a
5594 @code{Message-ID}, which is one of those long thingies that look
5595 something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.  You have to get
5596 it all exactly right.  No fuzzy searches, I'm afraid.
5597
5598 @vindex gnus-refer-article-method
5599 If the group you are reading is located on a backend that does not
5600 support fetching by @code{Message-ID} very well (like @code{nnspool}),
5601 you can set @code{gnus-refer-article-method} to an @sc{nntp} method.  It
5602 would, perhaps, be best if the @sc{nntp} server you consult is the same
5603 as the one that keeps the spool you are reading from updated, but that's
5604 not really necessary.
5605
5606 Most of the mail backends support fetching by @code{Message-ID}, but do
5607 not do a particularly excellent job of it.  That is, @code{nnmbox} and
5608 @code{nnbabyl} are able to locate articles from any groups, while
5609 @code{nnml} and @code{nnfolder} are only able to locate articles that
5610 have been posted to the current group.  (Anything else would be too time
5611 consuming.)  @code{nnmh} does not support this at all.
5612
5613
5614 @node Alternative Approaches
5615 @section Alternative Approaches
5616
5617 Different people like to read news using different methods.  This being
5618 Gnus, we offer a small selection of minor modes for the summary buffers.
5619
5620 @menu
5621 * Pick and Read::               First mark articles and then read them.
5622 * Binary Groups::               Auto-decode all articles.
5623 @end menu
5624
5625
5626 @node Pick and Read
5627 @subsection Pick and Read
5628 @cindex pick and read
5629
5630 Some newsreaders (like @code{nn} and, uhm, @code{nn}) use a two-phased
5631 reading interface.  The user first marks the articles she wants to read
5632 from a summary buffer.  Then she starts reading the articles with just
5633 an article buffer displayed.
5634
5635 @findex gnus-pick-mode
5636 @kindex M-x gnus-pick-mode
5637 Gnus provides a summary buffer minor mode that allows
5638 this---@code{gnus-pick-mode}.  This basically means that a few process
5639 mark commands become one-keystroke commands to allow easy marking, and
5640 it makes one additional command for switching to the summary buffer
5641 available. 
5642
5643 Here are the available keystrokes when using pick mode:
5644
5645 @table @kbd
5646 @item .
5647 @kindex . (Pick)
5648 @findex gnus-summary-mark-as-processable
5649 Pick the article on the current line
5650 (@code{gnus-summary-mark-as-processable}).  If given a numerical prefix,
5651 go to the article on that line and pick that article.  (The line number
5652 is normally displayed on the beginning of the summary pick lines.)
5653
5654 @item SPACE
5655 @kindex SPACE (Pick)
5656 @findex gnus-pick-next-page
5657 Scroll the summary buffer up one page (@code{gnus-pick-next-page}).  If
5658 at the end of the buffer, start reading the picked articles.
5659
5660 @item u
5661 @kindex u (Pick)
5662 @findex gnus-summary-unmark-as-processable
5663 Unpick the article (@code{gnus-summary-unmark-as-processable}). 
5664
5665 @item U
5666 @kindex U (Pick)
5667 @findex gnus-summary-unmark-all-processable
5668 Unpick all articles (@code{gnus-summary-unmark-all-processable}). 
5669
5670 @item t
5671 @kindex t (Pick)
5672 @findex gnus-uu-mark-thread
5673 Pick the thread (@code{gnus-uu-mark-thread}). 
5674
5675 @item T
5676 @kindex T (Pick)
5677 @findex gnus-uu-unmark-thread
5678 Unpick the thread (@code{gnus-uu-unmark-thread}). 
5679
5680 @item r
5681 @kindex r (Pick)
5682 @findex gnus-uu-mark-region
5683 Pick the region (@code{gnus-uu-mark-region}). 
5684
5685 @item R
5686 @kindex R (Pick)
5687 @findex gnus-uu-unmark-region
5688 Unpick the region (@code{gnus-uu-unmark-region}). 
5689
5690 @item e
5691 @kindex e (Pick)
5692 @findex gnus-uu-mark-by-regexp
5693 Pick articles that match a regexp (@code{gnus-uu-mark-by-regexp}). 
5694
5695 @item E
5696 @kindex E (Pick)
5697 @findex gnus-uu-unmark-by-regexp
5698 Unpick articles that match a regexp (@code{gnus-uu-unmark-by-regexp}). 
5699
5700 @item b
5701 @kindex b (Pick)
5702 @findex gnus-uu-mark-buffer
5703 Pick the buffer (@code{gnus-uu-mark-buffer}). 
5704
5705 @item B
5706 @kindex B (Pick)
5707 @findex gnus-uu-unmark-buffer
5708 Unpick the buffer (@code{gnus-uu-unmark-buffer}). 
5709
5710 @item RET
5711 @kindex RET (Pick)
5712 @findex gnus-pick-start-reading
5713 @vindex gnus-pick-display-summary
5714 Start reading the picked articles (@code{gnus-pick-start-reading}).  If
5715 given a prefix, mark all unpicked articles as read first.  If
5716 @code{gnus-pick-display-summary} is non-@code{nil}, the summary buffer
5717 will still be visible when you are reading.
5718
5719 @end table
5720
5721 If this sounds like a good idea to you, you could say:
5722
5723 @lisp
5724 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
5725 @end lisp
5726
5727 @vindex gnus-pick-mode-hook
5728 @code{gnus-pick-mode-hook} is run in pick minor mode buffers.
5729
5730 @vindex gnus-mark-unpicked-articles-as-read
5731 If @code{gnus-mark-unpicked-articles-as-read} is non-@code{nil}, mark
5732 all unpicked articles as read.  The default is @code{nil}.
5733
5734 @vindex gnus-summary-pick-line-format
5735 The summary line format in pick mode is slightly different than the
5736 standard format.  At the beginning of each line the line number is
5737 displayed.  The pick mode line format is controlled by the
5738 @code{gnus-summary-pick-line-format} variable (@pxref{Formatting
5739 Variables}).  It accepts the same format specs that
5740 @code{gnus-summary-line-format} does (@pxref{Summary Buffer Lines}). 
5741
5742
5743 @node Binary Groups
5744 @subsection Binary Groups
5745 @cindex binary groups
5746
5747 @findex gnus-binary-mode
5748 @kindex M-x gnus-binary-mode
5749 If you spend much time in binary groups, you may grow tired of hitting
5750 @kbd{X u}, @kbd{n}, @kbd{RET} all the time.  @kbd{M-x gnus-binary-mode}
5751 is a minor mode for summary buffers that makes all ordinary Gnus article
5752 selection functions uudecode series of articles and display the result
5753 instead of just displaying the articles the normal way.  
5754
5755 @kindex g (Binary)
5756 @findex gnus-binary-show-article
5757 In fact, the only way to see the actual articles if you have turned this
5758 mode on is the @kbd{g} command (@code{gnus-binary-show-article}). 
5759
5760 @vindex gnus-binary-mode-hook
5761 @code{gnus-binary-mode-hook} is called in binary minor mode buffers.
5762
5763
5764 @node Tree Display
5765 @section Tree Display
5766 @cindex trees
5767
5768 @vindex gnus-use-trees
5769 If you don't like the normal Gnus summary display, you might try setting
5770 @code{gnus-use-trees} to @code{t}.  This will create (by default) an
5771 additional @dfn{tree buffer}.  You can execute all summary mode commands
5772 in the tree buffer.  
5773
5774 There are a few variables to customize the tree display, of course:
5775
5776 @table @code
5777 @item gnus-tree-mode-hook
5778 @vindex gnus-tree-mode-hook
5779 A hook called in all tree mode buffers.
5780
5781 @item gnus-tree-mode-line-format
5782 @vindex gnus-tree-mode-line-format
5783 A format string for the mode bar in the tree mode buffers.  The default
5784 is @samp{Gnus: %%b [%A] %Z}.  For a list of legal specs, @pxref{Summary
5785 Buffer Mode Line}. 
5786
5787 @item gnus-selected-tree-face
5788 @vindex gnus-selected-tree-face
5789 Face used for highlighting the selected article in the tree buffer.  The
5790 default is @code{modeline}.
5791
5792 @item gnus-tree-line-format
5793 @vindex gnus-tree-line-format
5794 A format string for the tree nodes.  The name is a bit of a misnomer,
5795 though---it doesn't define a line, but just the node.  The default value
5796 is @samp{%(%[%3,3n%]%)}, which displays the first three characters of
5797 the name of the poster.  It is vital that all nodes are of the same
5798 length, so you @emph{must} use @samp{%4,4n}-like specifiers.
5799
5800 Legal specs are:
5801
5802 @table @samp
5803 @item n
5804 The name of the poster.
5805 @item f
5806 The @code{From} header.
5807 @item N
5808 The number of the article.
5809 @item [
5810 The opening bracket.
5811 @item ] 
5812 The closing bracket.
5813 @item s
5814 The subject.
5815 @end table
5816
5817 @xref{Formatting Variables}.
5818
5819 Variables related to the display are:
5820
5821 @table @code
5822 @item gnus-tree-brackets
5823 @vindex gnus-tree-brackets
5824 This is used for differentiating between ``real'' articles and
5825 ``sparse'' articles.  The format is @var{((real-open . real-close)
5826 (sparse-open . sparse-close) (dummy-open . dummy-close))}, and the
5827 default is @code{((?[ . ?]) (?( . ?)) (?@{ . ?@}))}.
5828
5829 @item gnus-tree-parent-child-edges
5830 @vindex gnus-tree-parent-child-edges
5831 This is a list that contains the characters used for connecting parent
5832 nodes to their children.  The default is @code{(?- ?\\ ?|)}. 
5833
5834 @end table
5835
5836 @item gnus-tree-minimize-window
5837 @vindex gnus-tree-minimize-window
5838 If this variable is non-@code{nil}, Gnus will try to keep the tree
5839 buffer as small as possible to allow more room for the other Gnus
5840 windows.  If this variable is a number, the tree buffer will never be
5841 higher than that number.  The default is @code{t}.
5842
5843 @item gnus-generate-tree-function
5844 @vindex gnus-generate-tree-function
5845 @findex gnus-generate-horizontal-tree
5846 @findex gnus-generate-vertical-tree
5847 The function that actually generates the thread tree.  Two predefined
5848 functions are available: @code{gnus-generate-horizontal-tree} and
5849 @code{gnus-generate-vertical-tree} (which is the default).
5850
5851 @end table
5852
5853 Here's and example from a horizontal tree buffer:
5854
5855 @example
5856 @{***@}-(***)-[odd]-[Gun]
5857      |     \[Jan]
5858      |     \[odd]-[Eri]
5859      |     \(***)-[Eri]
5860      |           \[odd]-[Paa]
5861      \[Bjo]
5862      \[Gun]
5863      \[Gun]-[Jor]
5864 @end example
5865
5866 Here's the same thread displayed in a vertical tree buffer:
5867
5868 @example
5869 @{***@}
5870   |--------------------------\-----\-----\
5871 (***)                         [Bjo] [Gun] [Gun]
5872   |--\-----\-----\                          |
5873 [odd] [Jan] [odd] (***)                   [Jor]
5874   |           |     |--\
5875 [Gun]       [Eri] [Eri] [odd]
5876                           |
5877                         [Paa]
5878 @end example
5879
5880
5881 @node Mail Group Commands
5882 @section Mail Group Commands
5883 @cindex mail group commands
5884
5885 Some commands only make sense in mail groups.  If these commands are
5886 illegal in the current group, they will raise a hell and let you know.
5887
5888 All these commands (except the expiry and edit commands) use the
5889 process/prefix convention (@pxref{Process/Prefix}).
5890
5891 @table @kbd
5892
5893 @item B e
5894 @kindex B e (Summary)
5895 @findex gnus-summary-expire-articles
5896 Expire all expirable articles in the group
5897 (@code{gnus-summary-expire-articles}).
5898
5899 @item B M-C-e
5900 @kindex B M-C-e (Summary)
5901 @findex gnus-summary-expire-articles-now
5902 Expunge all the expirable articles in the group
5903 (@code{gnus-summary-expire-articles-now}).  This means that @strong{all}
5904 articles that are eligible for expiry in the current group will
5905 disappear forever into that big @file{/dev/null} in the sky.
5906
5907 @item B DEL
5908 @kindex B DEL (Summary)
5909 @findex gnus-summary-delete-article
5910 Delete the mail article.  This is ``delete'' as in ``delete it from your
5911 disk forever and ever, never to return again.'' Use with caution.
5912 (@code{gnus-summary-delete-article}).
5913
5914 @item B m
5915 @kindex B m (Summary)
5916 @cindex move mail
5917 @findex gnus-summary-move-article
5918 Move the article from one mail group to another
5919 (@code{gnus-summary-move-article}). 
5920
5921 @item B c
5922 @kindex B c (Summary)
5923 @cindex copy mail
5924 @findex gnus-summary-copy-article
5925 Copy the article from one group (mail group or not) to a mail group
5926 (@code{gnus-summary-copy-article}).
5927
5928 @item B C
5929 @kindex B C (Summary)
5930 @cindex crosspost mail
5931 @findex gnus-summary-crosspost-article
5932 Crosspost the current article to some other group
5933 (@code{gnus-summary-crosspost-article}).  This will create a new copy of
5934 the article in the other group, and the Xref headers of the article will
5935 be properly updated.
5936
5937 @item B i
5938 @kindex B i (Summary)
5939 @findex gnus-summary-import-article
5940 Import an arbitrary file into the current mail newsgroup
5941 (@code{gnus-summary-import-article}).  You will be prompted for a file
5942 name, a @code{From} header and a @code{Subject} header.
5943
5944 @item B r
5945 @kindex B r (Summary)
5946 @findex gnus-summary-respool-article
5947 Respool the mail article (@code{gnus-summary-move-article}).
5948
5949 @item B w
5950 @itemx e
5951 @kindex B w (Summary)
5952 @kindex e (Summary)
5953 @findex gnus-summary-edit-article
5954 @kindex C-c C-c (Article)
5955 Edit the current article (@code{gnus-summary-edit-article}).  To finish
5956 editing and make the changes permanent, type @kbd{C-c C-c}
5957 (@kbd{gnus-summary-edit-article-done}).
5958
5959 @item B q
5960 @kindex B q (Summary)
5961 @findex gnus-summary-respool-query
5962 If you want to re-spool an article, you might be curious as to what group
5963 the article will end up in before you do the re-spooling.  This command
5964 will tell you (@code{gnus-summary-respool-query}). 
5965 @end table
5966
5967 @vindex gnus-move-split-methods
5968 @cindex moving articles
5969 If you move (or copy) articles regularly, you might wish to have Gnus
5970 suggest where to put the articles.  @code{gnus-move-split-methods} is a
5971 variable that uses the same syntax as @code{gnus-split-methods}
5972 (@pxref{Saving Articles}).  You may customize that variable to create
5973 suggestions you find reasonable.
5974
5975
5976 @node Various Summary Stuff
5977 @section Various Summary Stuff
5978
5979 @menu
5980 * Summary Group Information::         Information oriented commands.
5981 * Searching for Articles::            Multiple article commands.
5982 * Really Various Summary Commands::   Those pesky non-conformant commands.
5983 @end menu
5984
5985 @table @code
5986 @vindex gnus-summary-mode-hook
5987 @item gnus-summary-mode-hook
5988 This hook is called when creating a summary mode buffer.
5989
5990 @vindex gnus-summary-generate-hook
5991 @item gnus-summary-generate-hook
5992 This is called as the last thing before doing the threading and the
5993 generation of the summary buffer.  It's quite convenient for customizing
5994 the threading variables based on what data the newsgroup has.  This hook
5995 is called from the summary buffer after most summary buffer variables
5996 has been set.
5997
5998 @vindex gnus-summary-prepare-hook
5999 @item gnus-summary-prepare-hook
6000 Is is called after the summary buffer has been generated.  You might use
6001 it to, for instance, highlight lines or modify the look of the buffer in
6002 some other ungodly manner.  I don't care.
6003
6004 @end table
6005
6006
6007 @node Summary Group Information
6008 @subsection Summary Group Information
6009
6010 @table @kbd
6011
6012 @item H f
6013 @kindex H f (Summary)
6014 @findex gnus-summary-fetch-faq
6015 @vindex gnus-group-faq-directory
6016 Try to fetch the FAQ (list of frequently asked questions) for the
6017 current group (@code{gnus-summary-fetch-faq}).  Gnus will try to get the
6018 FAQ from @code{gnus-group-faq-directory}, which is usually a directory
6019 on a remote machine.  This variable can also be a list of directories.
6020 In that case, giving a prefix to this command will allow you to choose
6021 between the various sites.  @code{ange-ftp} probably will be used for
6022 fetching the file.
6023
6024 @item H d
6025 @kindex H d (Summary)
6026 @findex gnus-summary-describe-group
6027 Give a brief description of the current group
6028 (@code{gnus-summary-describe-group}).  If given a prefix, force
6029 rereading the description from the server.
6030
6031 @item H h
6032 @kindex H h (Summary)
6033 @findex gnus-summary-describe-briefly
6034 Give a very brief description of the most important summary keystrokes
6035 (@code{gnus-summary-describe-briefly}). 
6036
6037 @item H i
6038 @kindex H i (Summary)
6039 @findex gnus-info-find-node
6040 Go to the Gnus info node (@code{gnus-info-find-node}).
6041 @end table
6042
6043
6044 @node Searching for Articles
6045 @subsection Searching for Articles
6046
6047 @table @kbd
6048
6049 @item M-s
6050 @kindex M-s (Summary)
6051 @findex gnus-summary-search-article-forward
6052 Search through all subsequent articles for a regexp
6053 (@code{gnus-summary-search-article-forward}). 
6054
6055 @item M-r
6056 @kindex M-r (Summary)
6057 @findex gnus-summary-search-article-backward
6058 Search through all previous articles for a regexp
6059 (@code{gnus-summary-search-article-backward}). 
6060
6061 @item &
6062 @kindex & (Summary)
6063 @findex gnus-summary-execute-command
6064 This command will prompt you for a header field, a regular expression to
6065 match on this field, and a command to be executed if the match is made
6066 (@code{gnus-summary-execute-command}).
6067
6068 @item M-&
6069 @kindex M-& (Summary)
6070 @findex gnus-summary-universal-argument
6071 Perform any operation on all articles that have been marked with
6072 the process mark (@code{gnus-summary-universal-argument}).
6073 @end table
6074
6075
6076 @node Really Various Summary Commands
6077 @subsection Really Various Summary Commands
6078
6079 @table @kbd
6080
6081 @item A D
6082 @kindex A D (Summary)
6083 @findex gnus-summary-enter-digest-group
6084 If the current article is a collection of other articles (for instance,
6085 a digest), you might use this command to enter a group based on the that
6086 article (@code{gnus-summary-enter-digest-group}).  Gnus will try to
6087 guess what article type is currently displayed unless you give a prefix
6088 to this command, which forces a ``digest'' interpretation.  Basically,
6089 whenever you see a message that is a collection of other messages on
6090 some format, you @kbd{A D} and read these messages in a more convenient
6091 fashion.
6092
6093 @item C-t
6094 @kindex C-t (Summary)
6095 @findex gnus-summary-toggle-truncation
6096 Toggle truncation of summary lines (@code{gnus-summary-toggle-truncation}).
6097
6098 @item =
6099 @kindex = (Summary)
6100 @findex gnus-summary-expand-window
6101 Expand the summary buffer window (@code{gnus-summary-expand-window}).
6102 If given a prefix, force an @code{article} window configuration. 
6103 @end table
6104
6105
6106 @node Exiting the Summary Buffer
6107 @section Exiting the Summary Buffer
6108 @cindex summary exit
6109 @cindex exiting groups
6110
6111 Exiting from the summary buffer will normally update all info on the
6112 group and return you to the group buffer. 
6113
6114 @table @kbd
6115
6116 @item Z Z
6117 @itemx q
6118 @kindex Z Z (Summary)
6119 @kindex q (Summary)
6120 @findex gnus-summary-exit
6121 @vindex gnus-summary-exit-hook
6122 @vindex gnus-summary-prepare-exit-hook
6123 Exit the current group and update all information on the group
6124 (@code{gnus-summary-exit}). @code{gnus-summary-prepare-exit-hook} is
6125 called before doing much of the exiting, and calls
6126 @code{gnus-summary-expire-articles} by default.
6127 @code{gnus-summary-exit-hook} is called after finishing the exiting
6128 process. 
6129
6130 @item Z E
6131 @itemx Q
6132 @kindex Z E (Summary)
6133 @kindex Q (Summary)
6134 @findex gnus-summary-exit-no-update
6135 Exit the current group without updating any information on the group
6136 (@code{gnus-summary-exit-no-update}).
6137
6138 @item Z c
6139 @itemx c
6140 @kindex Z c (Summary)
6141 @kindex c (Summary)
6142 @findex gnus-summary-catchup-and-exit
6143 Mark all unticked articles in the group as read and then exit
6144 (@code{gnus-summary-catchup-and-exit}).
6145
6146 @item Z C
6147 @kindex Z C (Summary)
6148 @findex gnus-summary-catchup-all-and-exit
6149 Mark all articles, even the ticked ones, as read and then exit
6150 (@code{gnus-summary-catchup-all-and-exit}).
6151
6152 @item Z n
6153 @kindex Z n (Summary)
6154 @findex gnus-summary-catchup-and-goto-next-group
6155 Mark all articles as read and go to the next group
6156 (@code{gnus-summary-catchup-and-goto-next-group}). 
6157
6158 @item Z R
6159 @kindex Z R (Summary)
6160 @findex gnus-summary-reselect-current-group
6161 Exit this group, and then enter it again
6162 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
6163 all articles, both read and unread.
6164
6165 @item Z G
6166 @itemx M-g
6167 @kindex Z G (Summary)
6168 @kindex M-g (Summary)
6169 @findex gnus-summary-rescan-group
6170 Exit the group, check for new articles in the group, and select the
6171 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
6172 articles, both read and unread.
6173
6174 @item Z N
6175 @kindex Z N (Summary)
6176 @findex gnus-summary-next-group
6177 Exit the group and go to the next group
6178 (@code{gnus-summary-next-group}). 
6179
6180 @item Z P
6181 @kindex Z P (Summary)
6182 @findex gnus-summary-prev-group
6183 Exit the group and go to the previous group
6184 (@code{gnus-summary-prev-group}). 
6185 @end table
6186
6187 @vindex gnus-exit-group-hook
6188 @code{gnus-exit-group-hook} is called when you exit the current
6189 group.  
6190
6191 @findex gnus-summary-wake-up-the-dead
6192 @findex gnus-dead-summary-mode
6193 @vindex gnus-kill-summary-on-exit
6194 If you're in the habit of exiting groups, and then changing your mind
6195 about it, you might set @code{gnus-kill-summary-on-exit} to @code{nil}.
6196 If you do that, Gnus won't kill the summary buffer when you exit it.
6197 (Quelle surprise!)  Instead it will change the name of the buffer to
6198 something like @samp{*Dead Summary ... *} and install a minor mode
6199 called @code{gnus-dead-summary-mode}.  Now, if you switch back to this
6200 buffer, you'll find that all keys are mapped to a function called
6201 @code{gnus-summary-wake-up-the-dead}.  So tapping any keys in a dead
6202 summary buffer will result in a live, normal summary buffer.  
6203
6204 There will never be more than one dead summary buffer at any one time. 
6205
6206 @vindex gnus-use-cross-reference
6207 The data on the current group will be updated (which articles you have
6208 read, which articles you have replied to, etc.) when you exit the
6209 summary buffer.  If the @code{gnus-use-cross-reference} variable is
6210 @code{t} (which is the default), articles that are cross-referenced to
6211 this group and are marked as read, will also be marked as read in the
6212 other subscribed groups they were cross-posted to.  If this variable is
6213 neither @code{nil} nor @code{t}, the article will be marked as read in
6214 both subscribed and unsubscribed groups (@pxref{Crosspost Handling}).
6215
6216
6217 @node Crosspost Handling
6218 @section Crosspost Handling
6219
6220 @cindex velveeta
6221 @cindex spamming
6222 Marking cross-posted articles as read ensures that you'll never have to
6223 read the same article more than once.  Unless, of course, somebody has
6224 posted it to several groups separately.  Posting the same article to
6225 several groups (not cross-posting) is called @dfn{spamming}, and you are
6226 by law required to send nasty-grams to anyone who perpetrates such a
6227 heinous crime.  You may want to try NoCeM handling to filter out spam
6228 (@pxref{NoCeM}). 
6229
6230 Remember: Cross-posting is kinda ok, but posting the same article
6231 separately to several groups is not.  Massive cross-posting (aka.
6232 @dfn{velveeta}) is to be avoided at all costs.
6233
6234 @cindex cross-posting
6235 @cindex Xref
6236 @cindex @sc{nov}
6237 One thing that may cause Gnus to not do the cross-posting thing
6238 correctly is if you use an @sc{nntp} server that supports @sc{xover}
6239 (which is very nice, because it speeds things up considerably) which
6240 does not include the @code{Xref} header in its @sc{nov} lines.  This is
6241 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
6242 even with @sc{xover} by registering the @code{Xref} lines of all
6243 articles you actually read, but if you kill the articles, or just mark
6244 them as read without reading them, Gnus will not get a chance to snoop
6245 the @code{Xref} lines out of these articles, and will be unable to use
6246 the cross reference mechanism.
6247
6248 @cindex LIST overview.fmt
6249 @cindex overview.fmt
6250 To check whether your @sc{nntp} server includes the @code{Xref} header
6251 in its overview files, try @samp{telnet your.nntp.server nntp},
6252 @samp{MODE READER} on @code{inn} servers, and then say @samp{LIST
6253 overview.fmt}.  This may not work, but if it does, and the last line you
6254 get does not read @samp{Xref:full}, then you should shout and whine at
6255 your news admin until she includes the @code{Xref} header in the
6256 overview files.
6257
6258 @vindex gnus-nov-is-evil
6259 If you want Gnus to get the @code{Xref}s right all the time, you have to
6260 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
6261 considerably.
6262
6263 C'est la vie.
6264
6265 For an alternative approach, @xref{Duplicate Suppression}.
6266
6267
6268 @node Duplicate Suppression
6269 @section Duplicate Suppression
6270
6271 By default, Gnus tries to make sure that you don't have to read the same
6272 article more than once by utilizing the crossposing mechanism
6273 (@pxref{Crosspost Handling}).  However, that simple and efficient
6274 approach may not work satisfactorily for some users for various
6275 reasons.  
6276
6277 @enumerate
6278 @item 
6279 The @sc{nntp} server may fail to generate the @code{Xref} header.  This
6280 is evil and not very common.
6281
6282 @item 
6283 The @sc{nntp} server may fail to include the @code{Xref} header in the
6284 @file{.overview} data bases.  This is evil and all too common, alas.
6285
6286 @item
6287 You may be reading the same group (or several related groups) from
6288 different @sc{nntp} servers.
6289
6290 @item
6291 You may be getting mail that duplicates articles posted to groups.
6292 @end enumerate
6293
6294 I'm sure there are other situations that @code{Xref} handling fails as
6295 well, but these four are the most common situations.
6296
6297 If, and only if, @code{Xref} handling fails for you, then you may
6298 consider switching on @dfn{duplicate suppression}.  If you do so, Gnus
6299 will remember the @code{Message-ID}s of all articles you have read or
6300 otherwise marked as read, and then, as if by magic, mark them as read
6301 all subsequent times you see them---in @emph{all} groups.  Using this
6302 mechanism is quite likely to be somewhat inefficient, but not overly
6303 so.  It's certainly preferrable to reading the same articles more than
6304 once.
6305
6306 @table @code
6307 @item gnus-suppress-duplicates
6308 @vindex gnus-suppress-duplicates
6309 If non-@code{nil}, suppress duplicates.
6310
6311 @item gnus-save-duplicate-list
6312 @vindex gnus-save-duplicate-list
6313 If non-@code{nil}, save the list of duplicates to a file.  This will
6314 make startup and shutdown take longer, so the default is @code{nil}.
6315 However, this means that only duplicate articles that is read in a
6316 single Gnus session are suppressed.  
6317
6318 @item gnus-duplicate-list-length
6319 @vindex gnus-duplicate-list-length
6320 This variables says how many @code{Message-ID}s to keep in the duplicate
6321 suppression list.  The default is 10000.  
6322
6323 @item gnus-duplicate-file
6324 @vindex gnus-duplicate-file
6325 The name of the file to store the duplicate suppression list.  The
6326 default is @file{~/News/suppression}.
6327 @end table
6328
6329 If you have a tendency to stop and start Gnus often, setting
6330 @code{gnus-save-duplicate-list} to @code{t} is probably a good idea.  If
6331 you leave Gnus running for weeks on end, you may have it @code{nil}.  On
6332 the other hand, saving the list makes startup and shutdown much slower,
6333 so that means that if you stop and start Gnus often, you should set
6334 @code{gnus-save-duplicate-list} to @code{nil}.  Uhm.  I'll leave this up
6335 to you to figure out, I think.
6336
6337
6338 @node The Article Buffer
6339 @chapter The Article Buffer
6340 @cindex article buffer
6341
6342 The articles are displayed in the article buffer, of which there is only
6343 one.  All the summary buffers share the same article buffer unless you
6344 tell Gnus otherwise.
6345
6346 @menu
6347 * Hiding Headers::        Deciding what headers should be displayed.
6348 * Using MIME::            Pushing articles through @sc{mime} before reading them.
6349 * Customizing Articles::  Tailoring the look of the articles.
6350 * Article Keymap::        Keystrokes available in the article buffer
6351 * Misc Article::          Other stuff.
6352 @end menu
6353
6354
6355 @node Hiding Headers
6356 @section Hiding Headers
6357 @cindex hiding headers
6358 @cindex deleting headers
6359
6360 The top section of each article is the @dfn{head}.  (The rest is the
6361 @dfn{body}, but you may have guessed that already.)
6362
6363 @vindex gnus-show-all-headers
6364 There is a lot of useful information in the head: the name of the person
6365 who wrote the article, the date it was written and the subject of the
6366 article.  That's well and nice, but there's also lots of information
6367 most people do not want to see---what systems the article has passed
6368 through before reaching you, the @code{Message-ID}, the
6369 @code{References}, etc. ad nauseum---and you'll probably want to get rid
6370 of some of those lines.  If you want to keep all those lines in the
6371 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
6372
6373 Gnus provides you with two variables for sifting headers:
6374
6375 @table @code
6376
6377 @item gnus-visible-headers
6378 @vindex gnus-visible-headers
6379 If this variable is non-@code{nil}, it should be a regular expression
6380 that says what headers you wish to keep in the article buffer.  All
6381 headers that do not match this variable will be hidden.
6382
6383 For instance, if you only want to see the name of the person who wrote
6384 the article and the subject, you'd say:
6385
6386 @lisp
6387 (setq gnus-visible-headers "^From:\\|^Subject:")
6388 @end lisp
6389
6390 This variable can also be a list of regexps to match headers that are to
6391 remain visible.
6392
6393 @item gnus-ignored-headers
6394 @vindex gnus-ignored-headers
6395 This variable is the reverse of @code{gnus-visible-headers}.  If this
6396 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
6397 should be a regular expression that matches all lines that you want to
6398 hide.  All lines that do not match this variable will remain visible.
6399
6400 For instance, if you just want to get rid of the @code{References} line
6401 and the @code{Xref} line, you might say:
6402
6403 @lisp
6404 (setq gnus-ignored-headers "^References:\\|^Xref:")
6405 @end lisp
6406
6407 This variable can also be a list of regexps to match headers that are to
6408 be removed.
6409
6410 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
6411 variable will have no effect.
6412
6413 @end table
6414
6415 @vindex gnus-sorted-header-list
6416 Gnus can also sort the headers for you.  (It does this by default.)  You
6417 can control the sorting by setting the @code{gnus-sorted-header-list}
6418 variable.  It is a list of regular expressions that says in what order
6419 the headers are to be displayed.
6420
6421 For instance, if you want the name of the author of the article first,
6422 and then the subject, you might say something like:
6423
6424 @lisp
6425 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
6426 @end lisp
6427
6428 Any headers that are to remain visible, but are not listed in this
6429 variable, will be displayed in random order after all the headers that
6430 are listed in this variable.
6431
6432 @findex gnus-article-hide-boring-headers
6433 @vindex gnus-article-display-hook
6434 @vindex gnus-boring-article-headers
6435 You can hide further boring headers by entering
6436 @code{gnus-article-hide-boring-headers} into
6437 @code{gnus-article-display-hook}.  What this function does depends on
6438 the @code{gnus-boring-article-headers} variable.  It's a list, but this
6439 list doesn't actually contain header names.  Instead is lists various
6440 @dfn{boring conditions} that Gnus can check and remove from sight.
6441
6442 These conditions are:
6443 @table @code
6444 @item empty
6445 Remove all empty headers.
6446 @item newsgroups
6447 Remove the @code{Newsgroups} header if it only contains the current group
6448 name. 
6449 @item followup-to
6450 Remove the @code{Followup-To} header if it is identical to the
6451 @code{Newsgroups} header.
6452 @item reply-to
6453 Remove the @code{Reply-To} header if it lists the same address as the
6454 @code{From} header.
6455 @item date
6456 Remove the @code{Date} header if the article is less than three days
6457 old. 
6458 @end table
6459
6460 To include the four first elements, you could say something like;
6461
6462 @lisp
6463 (setq gnus-boring-article-headers 
6464       '(empty newsgroups followup-to reply-to))
6465 @end lisp
6466
6467 This is also the default value for this variable.
6468
6469
6470 @node Using MIME
6471 @section Using @sc{mime}
6472 @cindex @sc{mime}
6473
6474 Mime is a standard for waving your hands through the air, aimlessly,
6475 while people stand around yawning.
6476
6477 @sc{mime}, however, is a standard for encoding your articles, aimlessly,
6478 while all newsreaders die of fear.
6479
6480 @sc{mime} may specify what character set the article uses, the encoding
6481 of the characters, and it also makes it possible to embed pictures and
6482 other naughty stuff in innocent-looking articles.
6483
6484 @vindex gnus-show-mime
6485 @vindex gnus-show-mime-method
6486 @vindex gnus-strict-mime
6487 @findex metamail-buffer
6488 Gnus handles @sc{mime} by shoving the articles through
6489 @code{gnus-show-mime-method}, which is @code{metamail-buffer} by
6490 default.  Set @code{gnus-show-mime} to @code{t} if you want to use
6491 @sc{mime} all the time.  However, if @code{gnus-strict-mime} is
6492 non-@code{nil}, the @sc{mime} method will only be used if there are
6493 @sc{mime} headers in the article.
6494
6495 It might be best to just use the toggling functions from the summary
6496 buffer to avoid getting nasty surprises. (For instance, you enter the
6497 group @samp{alt.sing-a-long} and, before you know it, @sc{mime} has
6498 decoded the sound file in the article and some horrible sing-a-long song
6499 comes streaming out out your speakers, and you can't find the volume
6500 button, because there isn't one, and people are starting to look at you,
6501 and you try to stop the program, but you can't, and you can't find the
6502 program to control the volume, and everybody else in the room suddenly
6503 decides to look at you disdainfully, and you'll feel rather stupid.)
6504
6505 Any similarity to real events and people is purely coincidental.  Ahem.
6506
6507
6508 @node Customizing Articles
6509 @section Customizing Articles
6510 @cindex article customization
6511
6512 @vindex gnus-article-display-hook
6513 The @code{gnus-article-display-hook} is called after the article has
6514 been inserted into the article buffer.  It is meant to handle all
6515 treatment of the article before it is displayed. 
6516
6517 @findex gnus-article-maybe-highlight
6518 By default it contains @code{gnus-article-hide-headers},
6519 @code{gnus-article-treat-overstrike}, and
6520 @code{gnus-article-maybe-highlight}, but there are thousands, nay
6521 millions, of functions you can put in this hook.  For an overview of
6522 functions @pxref{Article Highlighting}, @pxref{Article Hiding},
6523 @pxref{Article Washing}, @pxref{Article Buttons} and @pxref{Article
6524 Date}.
6525
6526 You can, of course, write your own functions.  The functions are called
6527 from the article buffer, and you can do anything you like, pretty much.
6528 There is no information that you have to keep in the buffer---you can
6529 change everything.  However, you shouldn't delete any headers.  Instead
6530 make them invisible if you want to make them go away.
6531
6532
6533 @node Article Keymap
6534 @section Article Keymap
6535
6536 Most of the keystrokes in the summary buffer can also be used in the
6537 article buffer.  They should behave as if you typed them in the summary
6538 buffer, which means that you don't actually have to have a summary
6539 buffer displayed while reading.  You can do it all from the article
6540 buffer.
6541
6542 A few additional keystrokes are available:
6543
6544 @table @kbd
6545
6546 @item SPACE
6547 @kindex SPACE (Article)
6548 @findex gnus-article-next-page
6549 Scroll forwards one page (@code{gnus-article-next-page}).
6550
6551 @item DEL
6552 @kindex DEL (Article)
6553 @findex gnus-article-prev-page
6554 Scroll backwards one page (@code{gnus-article-prev-page}).
6555
6556 @item C-c ^
6557 @kindex C-c ^ (Article)
6558 @findex gnus-article-refer-article
6559 If point is in the neighborhood of a @code{Message-ID} and you press
6560 @kbd{r}, Gnus will try to get that article from the server
6561 (@code{gnus-article-refer-article}).
6562
6563 @item C-c C-m
6564 @kindex C-c C-m (Article)
6565 @findex gnus-article-mail
6566 Send a reply to the address near point (@code{gnus-article-mail}).  If
6567 given a prefix, include the mail.
6568
6569 @item s
6570 @kindex s (Article)
6571 @findex gnus-article-show-summary
6572 Reconfigure the buffers so that the summary buffer becomes visible
6573 (@code{gnus-article-show-summary}).
6574
6575 @item ?
6576 @kindex ? (Article)
6577 @findex gnus-article-describe-briefly
6578 Give a very brief description of the available keystrokes
6579 (@code{gnus-article-describe-briefly}). 
6580
6581 @item TAB
6582 @kindex TAB (Article)
6583 @findex gnus-article-next-button
6584 Go to the next button, if any (@code{gnus-article-next-button}.  This
6585 only makes sense if you have buttonizing turned on.
6586
6587 @item M-TAB
6588 @kindex M-TAB (Article)
6589 @findex gnus-article-prev-button
6590 Go to the previous button, if any (@code{gnus-article-prev-button}.  
6591
6592 @end table
6593
6594
6595 @node Misc Article
6596 @section Misc Article
6597
6598 @table @code
6599
6600 @item gnus-single-article-buffer
6601 @vindex gnus-single-article-buffer
6602 If non-@code{nil}, use the same article buffer for all the groups.
6603 (This is the default.)  If @code{nil}, each group will have its own
6604 article buffer.
6605
6606 @vindex gnus-article-prepare-hook
6607 @item gnus-article-prepare-hook
6608 This hook is called right after the article has been inserted into the
6609 article buffer.  It is mainly intended for functions that do something
6610 depending on the contents; it should probably not be used for changing
6611 the contents of the article buffer.
6612
6613 @vindex gnus-article-display-hook
6614 @item gnus-article-display-hook
6615 This hook is called as the last thing when displaying an article, and is
6616 intended for modifying the contents of the buffer, doing highlights,
6617 hiding headers, and the like.
6618
6619 @item gnus-article-mode-hook
6620 @vindex gnus-article-mode-hook
6621 Hook called in article mode buffers.
6622
6623 @vindex gnus-article-mode-line-format
6624 @item gnus-article-mode-line-format
6625 This variable is a format string along the same lines as
6626 @code{gnus-summary-mode-line-format}.  It accepts the same
6627 format specifications as that variable, with one extension:
6628
6629 @table @samp
6630 @item w
6631 The @dfn{wash status} of the article.  This is a short string with one
6632 character for each possible article wash operation that may have been
6633 performed. 
6634 @end table
6635
6636 @vindex gnus-break-pages
6637
6638 @item gnus-break-pages
6639 Controls whether @dfn{page breaking} is to take place.  If this variable
6640 is non-@code{nil}, the articles will be divided into pages whenever a
6641 page delimiter appears in the article.  If this variable is @code{nil},
6642 paging will not be done.
6643
6644 @item gnus-page-delimiter
6645 @vindex gnus-page-delimiter
6646 This is the delimiter mentioned above.  By default, it is @samp{^L}
6647 (form linefeed).
6648 @end table
6649
6650
6651 @node Composing Messages
6652 @chapter Composing Messages
6653 @cindex reply
6654 @cindex followup
6655 @cindex post
6656
6657 @kindex C-c C-c (Post)
6658 All commands for posting and mailing will put you in a message buffer
6659 where you can edit the article all you like, before you send the article
6660 by pressing @kbd{C-c C-c}.  @xref{Top, , Top, message, The Message
6661 Manual}.  If you are in a foreign news group, and you wish to post the
6662 article using the foreign server, you can give a prefix to @kbd{C-c C-c}
6663 to make Gnus try to post using the foreign server.
6664
6665 @menu 
6666 * Mail::                 Mailing and replying.
6667 * Post::                 Posting and following up.
6668 * Posting Server::       What server should you post via?
6669 * Mail and Post::        Mailing and posting at the same time.
6670 * Archived Messages::    Where Gnus stores the messages you've sent.
6671 @c * Posting Styles::       An easier way to configure some key elements.
6672 @c * Drafts::               Postponing messages and rejected messages.
6673 @c * Rejected Articles::    What happens if the server doesn't like your article?
6674 @end menu
6675
6676 Also see @pxref{Canceling and Superseding} for information on how to
6677 remove articles you shouldn't have posted.
6678
6679
6680 @node Mail
6681 @section Mail
6682
6683 Variables for customizing outgoing mail:
6684
6685 @table @code
6686 @item gnus-uu-digest-headers
6687 @vindex gnus-uu-digest-headers
6688 List of regexps to match headers included in digested messages.  The
6689 headers will be included in the sequence they are matched.
6690
6691 @end table
6692
6693
6694 @node Post
6695 @section Post
6696
6697 Variables for composing news articles:
6698
6699 @table @code
6700 @item gnus-sent-message-ids-file
6701 @vindex gnus-sent-message-ids-file
6702 Gnus will keep a @code{Message-ID} history file of all the mails it has
6703 sent.  If it discovers that it has already sent a mail, it will ask the
6704 user whether to re-send the mail.  (This is primarily useful when
6705 dealing with @sc{soup} packets and the like where one is apt to sent the
6706 same packet multiple times.)  This variable says what the name of this
6707 history file is.  It is @file{~/News/Sent-Message-IDs} by default.  Set
6708 this variable to @code{nil} if you don't want Gnus to keep a history
6709 file.
6710
6711 @item gnus-sent-message-ids-length
6712 @vindex gnus-sent-message-ids-length
6713 This variable says how many @code{Message-ID}s to keep in the history
6714 file.  It is 1000 by default.
6715
6716 @end table
6717
6718
6719 @node Posting Server
6720 @section Posting Server
6721
6722 When you press those magical @kbd{C-c C-c} keys to ship off your latest
6723 (extremely intelligent, of course) article, where does it go?
6724
6725 Thank you for asking.  I hate you.
6726
6727 @vindex gnus-post-method
6728
6729 It can be quite complicated.  Normally, Gnus will use the same native
6730 server.  However.  If your native server doesn't allow posting, just
6731 reading, you probably want to use some other server to post your
6732 (extremely intelligent and fabulously interesting) articles.  You can
6733 then set the @code{gnus-post-method} to some other method:
6734
6735 @lisp
6736 (setq gnus-post-method '(nnspool ""))
6737 @end lisp
6738
6739 Now, if you've done this, and then this server rejects your article, or
6740 this server is down, what do you do then?  To override this variable you
6741 can use a non-zero prefix to the @kbd{C-c C-c} command to force using
6742 the ``current'' server for posting.
6743
6744 If you give a zero prefix (i. e., @kbd{C-u 0 C-c C-c}) to that command,
6745 Gnus will prompt you for what method to use for posting.  
6746
6747 You can also set @code{gnus-post-method} to a list of select methods.
6748 If that's the case, Gnus will always prompt you for what method to use
6749 for posting. 
6750
6751
6752 @node Mail and Post
6753 @section Mail and Post
6754
6755 Here's a list of variables that are relevant to both mailing and
6756 posting:
6757
6758 @table @code
6759 @item gnus-mailing-list-groups
6760 @findex gnus-mailing-list-groups
6761 @cindex mailing lists
6762
6763 If your news server offers groups that are really mailing lists that are
6764 gatewayed to the @sc{nntp} server, you can read those groups without
6765 problems, but you can't post/followup to them without some difficulty.
6766 One solution is to add a @code{to-address} to the group parameters
6767 (@pxref{Group Parameters}).  An easier thing to do is set the
6768 @code{gnus-mailing-list-groups} to a regexp that match the groups that
6769 really are mailing lists.  Then, at least, followups to the mailing
6770 lists will work most of the time.  Posting to these groups (@kbd{a}) is
6771 still a pain, though.
6772
6773 @end table
6774
6775 You may want to do spell-checking on messages that you send out.  Or, if
6776 you don't want to spell-check by hand, you could add automatic
6777 spell-checking via the @code{ispell} package:
6778
6779 @cindex ispell
6780 @findex ispell-message
6781 @lisp
6782 (add-hook 'message-send-hook 'ispell-message) 
6783 @end lisp
6784
6785
6786 @node Archived Messages
6787 @section Archived Messages
6788 @cindex archived messages
6789 @cindex sent messages
6790
6791 Gnus provides a few different methods for storing the mail you send.
6792 The default method is to use the @dfn{archive virtual server} to store
6793 the mail.  If you want to disable this completely, you should set
6794 @code{gnus-message-archive-group} to @code{nil}.
6795
6796 @vindex gnus-message-archive-method
6797 @code{gnus-message-archive-method} says what virtual server Gnus is to
6798 use to store sent messages.  It is @code{(nnfolder "archive"
6799 (nnfolder-directory "~/Mail/archive/"))} by default, but you can use any
6800 mail select method (@code{nnml}, @code{nnmbox}, etc.).  However,
6801 @code{nnfolder} is a quite likeable select method for doing this sort of
6802 thing.  If you don't like the default directory chosen, you could say
6803 something like:
6804
6805 @lisp
6806 (setq gnus-message-archive-method
6807       '(nnfolder "archive" 
6808                  (nnfolder-inhibit-expiry t)
6809                  (nnfolder-active-file "~/News/sent-mail/active")
6810                  (nnfolder-directory "~/News/sent-mail/")))
6811 @end lisp
6812
6813 @vindex gnus-message-archive-group
6814 @cindex Gcc
6815 Gnus will insert @code{Gcc} headers in all outgoing messages that point
6816 to one or more group(s) on that server.  Which group to use is
6817 determined by the @code{gnus-message-archive-group} variable.  
6818
6819 This variable can be:
6820
6821 @itemize @bullet
6822 @item a string
6823 Messages will be saved in that group.
6824 @item a list of strings
6825 Messages will be saved in all those groups.
6826 @item an alist of regexps, functions and forms
6827 When a key ``matches'', the result is used.
6828 @item @code{nil}
6829 No message archiving will take place.  This is the default.
6830 @end itemize
6831
6832 Let's illustrate:
6833
6834 Just saving to a single group called @samp{MisK}:
6835 @lisp
6836 (setq gnus-message-archive-group "MisK")
6837 @end lisp
6838
6839 Saving to two groups, @samp{MisK} and @samp{safe}:
6840 @lisp
6841 (setq gnus-message-archive-group '("MisK" "safe"))
6842 @end lisp
6843
6844 Save to different groups based on what group you are in:
6845 @lisp
6846 (setq gnus-message-archive-group 
6847       '(("^alt" "sent-to-alt")
6848         ("mail" "sent-to-mail")
6849         (".*" "sent-to-misc")))
6850 @end lisp
6851
6852 More complex stuff:
6853 @lisp
6854 (setq gnus-message-archive-group 
6855       '((if (message-news-p)
6856             "misc-news" 
6857           "misc-mail")))
6858 @end lisp       
6859
6860 How about storing all news messages in one file, but storing all mail
6861 messages in one file per month:
6862
6863 @lisp
6864 (setq gnus-message-archive-group
6865       '((if (message-news-p)
6866             "misc-news" 
6867           (concat "mail." (format-time-string 
6868                            "%Y-%m" (current-time))))))
6869 @end lisp
6870
6871 Now, when you send a message off, it will be stored in the appropriate
6872 group.  (If you want to disable storing for just one particular message,
6873 you can just remove the @code{Gcc} header that has been inserted.)  The
6874 archive group will appear in the group buffer the next time you start
6875 Gnus, or the next time you press @kbd{F} in the group buffer.  You can
6876 enter it and read the articles in it just like you'd read any other
6877 group.  If the group gets really big and annoying, you can simply rename
6878 if (using @kbd{G r} in the group buffer) to something
6879 nice---@samp{misc-mail-september-1995}, or whatever.  New messages will
6880 continue to be stored in the old (now empty) group.
6881
6882 That's the default method of archiving sent mail.  Gnus also offers two
6883 other variables for the people who don't like the default method.  In
6884 that case you should set @code{gnus-message-archive-group} to
6885 @code{nil}; this will disable archiving.
6886
6887 XEmacs 19.13 doesn't have @code{format-time-string}, so you'll have to
6888 use a different value for @code{gnus-message-archive-group} there.
6889
6890
6891 @table @code
6892 @item gnus-outgoing-message-group 
6893 @vindex gnus-outgoing-message-group 
6894 All outgoing messages will be put in this group.  If you want to store
6895 all your outgoing mail and articles in the group @samp{nnml:archive},
6896 you set this variable to that value.  This variable can also be a list of
6897 group names.
6898
6899 If you want to have greater control over what group to put each
6900 message in, you can set this variable to a function that checks the
6901 current newsgroup name and then returns a suitable group name (or list
6902 of names).
6903 @end table
6904
6905
6906 @c @node Posting Styles
6907 @c @section Posting Styles
6908 @c @cindex posting styles
6909 @c @cindex styles
6910 @c 
6911 @c All them variables, they make my head swim.  
6912 @c 
6913 @c So what if you want a different @code{Organization} and signature based
6914 @c on what groups you post to?  And you post both from your home machine
6915 @c and your work machine, and you want different @code{From} lines, and so
6916 @c on? 
6917 @c 
6918 @c @vindex gnus-posting-styles
6919 @c One way to do stuff like that is to write clever hooks that change the
6920 @c variables you need to have changed.  That's a bit boring, so somebody
6921 @c came up with the bright idea of letting the user specify these things in
6922 @c a handy alist.  Here's an example of a @code{gnus-posting-styles}
6923 @c variable: 
6924 @c 
6925 @c @lisp
6926 @c ((".*" 
6927 @c   (signature . "Peace and happiness")
6928 @c   (organization . "What me?"))
6929 @c  ("^comp" 
6930 @c   (signature . "Death to everybody"))
6931 @c  ("comp.emacs.i-love-it" 
6932 @c   (organization . "Emacs is it")))
6933 @c @end lisp
6934 @c 
6935 @c As you might surmise from this example, this alist consists of several
6936 @c @dfn{styles}.  Each style will be applicable if the first element
6937 @c ``matches'', in some form or other.  The entire alist will be iterated
6938 @c over, from the beginning towards the end, and each match will be
6939 @c applied, which means that attributes in later styles that match override
6940 @c the same attributes in earlier matching styles.  So
6941 @c @samp{comp.programming.literate} will have the @samp{Death to everybody}
6942 @c signature and the @samp{What me?} @code{Organization} header.
6943 @c 
6944 @c The first element in each style is called the @code{match}.  If it's a
6945 @c string, then Gnus will try to regexp match it against the group name.
6946 @c If it's a function symbol, that function will be called with no
6947 @c arguments.  If it's a variable symbol, then the variable will be
6948 @c referenced.  If it's a list, then that list will be @code{eval}ed.  In
6949 @c any case, if this returns a non-@code{nil} value, then the style is said
6950 @c to @dfn{match}.
6951 @c 
6952 @c Each style may contain a arbitrary amount of @dfn{attributes}.  Each
6953 @c attribute consists of a @var{(name . value)} pair.  The attribute name
6954 @c can be one of @code{signature}, @code{organization} or @code{from}.  The
6955 @c attribute name can also be a string.  In that case, this will be used as
6956 @c a header name, and the value will be inserted in the headers of the
6957 @c article.
6958 @c 
6959 @c The attribute value can be a string (used verbatim), a function (the
6960 @c return value will be used), a variable (its value will be used) or a
6961 @c list (it will be @code{eval}ed and the return value will be used).
6962 @c 
6963 @c So here's a new example:
6964 @c 
6965 @c @lisp
6966 @c (setq gnus-posting-styles
6967 @c       '((".*" 
6968 @c           (signature . "~/.signature") 
6969 @c           (from . "user@@foo (user)")
6970 @c           ("X-Home-Page" . (getenv "WWW_HOME"))
6971 @c           (organization . "People's Front Against MWM"))
6972 @c         ("^rec.humor" 
6973 @c           (signature . my-funny-signature-randomizer))
6974 @c         ((equal (system-name) "gnarly")
6975 @c           (signature . my-quote-randomizer))
6976 @c         (posting-from-work-p
6977 @c           (signature . "~/.work-signature")
6978 @c           (from . "user@@bar.foo (user)")
6979 @c           (organization . "Important Work, Inc"))
6980 @c         ("^nn.+:" 
6981 @c           (signature . "~/.mail-signature"))))
6982 @c @end lisp
6983
6984 @c @node Drafts
6985 @c @section Drafts
6986 @c @cindex drafts
6987 @c 
6988 @c If you are writing a message (mail or news) and suddenly remember that
6989 @c you have a steak in the oven (or some pesto in the food processor, you
6990 @c craazy vegetarians), you'll probably wish there was a method to save the
6991 @c message you are writing so that you can continue editing it some other
6992 @c day, and send it when you feel its finished.
6993 @c 
6994 @c Well, don't worry about it.  Whenever you start composing a message of
6995 @c some sort using the Gnus mail and post commands, the buffer you get will
6996 @c automatically associate to an article in a special @dfn{draft} group.
6997 @c If you save the buffer the normal way (@kbd{C-x C-s}, for instance), the
6998 @c article will be saved there.  (Auto-save files also go to the draft
6999 @c group.) 
7000 @c 
7001 @c @cindex nndraft
7002 @c @vindex gnus-draft-group-directory
7003 @c The draft group is a special group (which is implemented as an
7004 @c @code{nndraft} group, if you absolutely have to know) called
7005 @c @samp{nndraft:drafts}.  The variable @code{gnus-draft-group-directory}
7006 @c controls both the name of the group and the location---the leaf element
7007 @c in the path will be used as the name of the group.  What makes this
7008 @c group special is that you can't tick any articles in it or mark any
7009 @c articles as read---all articles in the group are permanently unread.
7010 @c 
7011 @c If the group doesn't exist, it will be created and you'll be subscribed
7012 @c to it.
7013 @c 
7014 @c @findex gnus-dissociate-buffer-from-draft
7015 @c @kindex C-c M-d (Mail)
7016 @c @kindex C-c M-d (Post)
7017 @c @findex gnus-associate-buffer-with-draft
7018 @c @kindex C-c C-d (Mail)
7019 @c @kindex C-c C-d (Post)
7020 @c If you're writing some super-secret message that you later want to
7021 @c encode with PGP before sending, you may wish to turn the auto-saving
7022 @c (and association with the draft group) off.  You never know who might be
7023 @c interested in reading all your extremely valuable and terribly horrible
7024 @c and interesting secrets.  The @kbd{C-c M-d}
7025 @c (@code{gnus-dissociate-buffer-from-draft}) command does that for you.
7026 @c If you change your mind and want to turn the auto-saving back on again,
7027 @c @kbd{C-c C-d} (@code{gnus-associate-buffer-with-draft} does that.
7028 @c 
7029 @c @vindex gnus-use-draft
7030 @c To leave association with the draft group off by default, set
7031 @c @code{gnus-use-draft} to @code{nil}.  It is @code{t} by default. 
7032 @c 
7033 @c @findex gnus-summary-send-draft
7034 @c @kindex S D c (Summary)
7035 @c When you want to continue editing the article, you simply enter the
7036 @c draft group and push @kbd{S D c} (@code{gnus-summary-send-draft}) to do
7037 @c that.  You will be placed in a buffer where you left off.
7038 @c 
7039 @c Rejected articles will also be put in this draft group (@pxref{Rejected
7040 @c Articles}).
7041 @c 
7042 @c @findex gnus-summary-send-all-drafts
7043 @c If you have lots of rejected messages you want to post (or mail) without
7044 @c doing further editing, you can use the @kbd{S D a} command
7045 @c (@code{gnus-summary-send-all-drafts}).  This command understands the
7046 @c process/prefix convention (@pxref{Process/Prefix}).  
7047 @c 
7048 @c 
7049 @c @node Rejected Articles
7050 @c @section Rejected Articles
7051 @c @cindex rejected articles
7052 @c 
7053 @c Sometimes a news server will reject an article.  Perhaps the server
7054 @c doesn't like your face.  Perhaps it just feels miserable.  Perhaps
7055 @c @emph{there be demons}.  Perhaps you have included too much cited text.
7056 @c Perhaps the disk is full.  Perhaps the server is down.
7057 @c 
7058 @c These situations are, of course, totally beyond the control of Gnus.
7059 @c (Gnus, of course, loves the way you look, always feels great, has angels
7060 @c fluttering around inside of it, doesn't care about how much cited text
7061 @c you include, never runs full and never goes down.)  So Gnus saves these
7062 @c articles until some later time when the server feels better.
7063 @c 
7064 @c The rejected articles will automatically be put in a special draft group
7065 @c (@pxref{Drafts}).  When the server comes back up again, you'd then
7066 @c typically enter that group and send all the articles off.
7067 @c 
7068
7069 @node Select Methods
7070 @chapter Select Methods
7071 @cindex foreign groups
7072 @cindex select methods
7073
7074 A @dfn{foreign group} is a group that is not read by the usual (or
7075 default) means.  It could be, for instance, a group from a different
7076 @sc{nntp} server, it could be a virtual group, or it could be your own
7077 personal mail group.
7078
7079 A foreign group (or any group, really) is specified by a @dfn{name} and
7080 a @dfn{select method}.  To take the latter first, a select method is a
7081 list where the first element says what backend to use (eg. @code{nntp},
7082 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
7083 name}.  There may be additional elements in the select method, where the
7084 value may have special meaning for the backend in question.
7085
7086 One could say that a select method defines a @dfn{virtual server}---so
7087 we do just that (@pxref{The Server Buffer}).
7088
7089 The @dfn{name} of the group is the name the backend will recognize the
7090 group as.
7091
7092 For instance, the group @samp{soc.motss} on the @sc{nntp} server
7093 @samp{some.where.edu} will have the name @samp{soc.motss} and select
7094 method @code{(nntp "some.where.edu")}.  Gnus will call this group, in
7095 all circumstances, @samp{nntp+some.where.edu:soc.motss}, even though the
7096 @code{nntp} backend just knows this group as @samp{soc.motss}.
7097
7098 The different methods all have their peculiarities, of course.
7099
7100 @menu
7101 * The Server Buffer::     Making and editing virtual servers.
7102 * Getting News::          Reading USENET news with Gnus.
7103 * Getting Mail::          Reading your personal mail with Gnus.
7104 * Other Sources::         Reading directories, files, SOUP packets.
7105 * Combined Groups::       Combining groups into one group.
7106 @end menu
7107
7108
7109 @node The Server Buffer
7110 @section The Server Buffer
7111
7112 Traditionally, a @dfn{server} is a machine or a piece of software that
7113 one connects to, and then requests information from.  Gnus does not
7114 connect directly to any real servers, but does all transactions through
7115 one backend or other.  But that's just putting one layer more between
7116 the actual media and Gnus, so we might just as well say that each
7117 backend represents a virtual server.
7118
7119 For instance, the @code{nntp} backend may be used to connect to several
7120 different actual @sc{nntp} servers, or, perhaps, to many different ports
7121 on the same actual @sc{nntp} server.  You tell Gnus which backend to
7122 use, and what parameters to set by specifying a @dfn{select method}.
7123
7124 These select methods specifications can sometimes become quite
7125 complicated---say, for instance, that you want to read from the
7126 @sc{nntp} server @samp{news.funet.fi} on port number @code{13}, which
7127 hangs if queried for @sc{nov} headers and has a buggy select.  Ahem.
7128 Anyways, if you had to specify that for each group that used this
7129 server, that would be too much work, so Gnus offers a way of naming
7130 select methods, which is what you do in the server buffer.
7131
7132 To enter the server buffer, user the @kbd{^}
7133 (@code{gnus-group-enter-server-mode}) command in the group buffer.
7134
7135 @menu
7136 * Server Buffer Format::      You can customize the look of this buffer.
7137 * Server Commands::           Commands to manipulate servers.
7138 * Example Methods::           Examples server specifications.
7139 * Creating a Virtual Server:: An example session.
7140 * Servers and Methods::       You can use server names as select methods.
7141 * Unavailable Servers::       Some servers you try to contact may be down.
7142 @end menu
7143
7144 @vindex gnus-server-mode-hook
7145 @code{gnus-server-mode-hook} is run when creating the server buffer.
7146
7147
7148 @node Server Buffer Format
7149 @subsection Server Buffer Format
7150 @cindex server buffer format
7151
7152 @vindex gnus-server-line-format
7153 You can change the look of the server buffer lines by changing the
7154 @code{gnus-server-line-format} variable.  This is a @code{format}-like
7155 variable, with some simple extensions:
7156
7157 @table @samp
7158
7159 @item h 
7160 How the news is fetched---the backend name.
7161
7162 @item n
7163 The name of this server.
7164
7165 @item w
7166 Where the news is to be fetched from---the address.
7167
7168 @item s
7169 The opened/closed/denied status of the server.
7170 @end table
7171
7172 @vindex gnus-server-mode-line-format
7173 The mode line can also be customized by using the
7174 @code{gnus-server-mode-line-format} variable.  The following specs are
7175 understood: 
7176
7177 @table @samp
7178 @item S
7179 Server name.
7180
7181 @item M
7182 Server method.
7183 @end table
7184
7185 Also @pxref{Formatting Variables}.
7186
7187
7188 @node Server Commands
7189 @subsection Server Commands
7190 @cindex server commands
7191
7192 @table @kbd
7193
7194 @item a
7195 @kindex a (Server)
7196 @findex gnus-server-add-server
7197 Add a new server (@code{gnus-server-add-server}).
7198
7199 @item e
7200 @kindex e (Server)
7201 @findex gnus-server-edit-server
7202 Edit a server (@code{gnus-server-edit-server}).
7203
7204 @item SPACE
7205 @kindex SPACE (Server)
7206 @findex gnus-server-read-server
7207 Browse the current server (@code{gnus-server-read-server}).
7208
7209 @item q
7210 @kindex q (Server)
7211 @findex gnus-server-exit
7212 Return to the group buffer (@code{gnus-server-exit}).
7213
7214 @item k
7215 @kindex k (Server)
7216 @findex gnus-server-kill-server
7217 Kill the current server (@code{gnus-server-kill-server}).
7218
7219 @item y
7220 @kindex y (Server)
7221 @findex gnus-server-yank-server
7222 Yank the previously killed server (@code{gnus-server-yank-server}).
7223
7224 @item c
7225 @kindex c (Server)
7226 @findex gnus-server-copy-server
7227 Copy the current server (@code{gnus-server-copy-server}).
7228
7229 @item l
7230 @kindex l (Server)
7231 @findex gnus-server-list-servers
7232 List all servers (@code{gnus-server-list-servers}).
7233
7234 @end table
7235
7236
7237 @node Example Methods
7238 @subsection Example Methods
7239
7240 Most select methods are pretty simple and self-explanatory: 
7241
7242 @lisp
7243 (nntp "news.funet.fi")
7244 @end lisp
7245
7246 Reading directly from the spool is even simpler:
7247
7248 @lisp
7249 (nnspool "")
7250 @end lisp
7251
7252 As you can see, the first element in a select method is the name of the
7253 backend, and the second is the @dfn{address}, or @dfn{name}, if you
7254 will. 
7255
7256 After these two elements, there may be a arbitrary number of
7257 @var{(variable form)} pairs.
7258
7259 To go back to the first example---imagine that you want to read from
7260 port @code{15} from that machine.  This is what the select method should
7261 look like then:
7262
7263 @lisp
7264 (nntp "news.funet.fi" (nntp-port-number 15))
7265 @end lisp
7266
7267 You should read the documentation to each backend to find out what
7268 variables are relevant, but here's an @code{nnmh} example. 
7269
7270 @code{nnmh} is a mail backend that reads a spool-like structure.  Say
7271 you have two structures that you wish to access: One is your private
7272 mail spool, and the other is a public one.  Here's the possible spec for
7273 you private mail:
7274
7275 @lisp
7276 (nnmh "private" (nnmh-directory "~/private/mail/"))
7277 @end lisp
7278
7279 (This server is then called @samp{private}, but you may have guessed
7280 that.)
7281
7282 Here's the method for a public spool:
7283
7284 @lisp
7285 (nnmh "public" 
7286       (nnmh-directory "/usr/information/spool/") 
7287       (nnmh-get-new-mail nil))
7288 @end lisp
7289
7290
7291 @node Creating a Virtual Server
7292 @subsection Creating a Virtual Server
7293
7294 If you're saving lots of articles in the cache by using persistent
7295 articles, you may want to create a virtual server to read the cache.
7296
7297 First you need to add a new server.  The @kbd{a} command does that.  It
7298 would probably be best to use @code{nnspool} to read the cache.  You
7299 could also use @code{nnml} or @code{nnmh}, though.
7300
7301 Type @kbd{a nnspool RET cache RET}.
7302
7303 You should now have a brand new @code{nnspool} virtual server called
7304 @samp{cache}.  You now need to edit it to have the right definitions.
7305 Type @kbd{e} to edit the server.  You'll be entered into a buffer that
7306 will contain the following:
7307
7308 @lisp
7309 (nnspool "cache")
7310 @end lisp
7311
7312 Change that to:
7313
7314 @lisp
7315 (nnspool "cache"
7316          (nnspool-spool-directory "~/News/cache/")
7317          (nnspool-nov-directory "~/News/cache/")
7318          (nnspool-active-file "~/News/cache/active"))
7319 @end lisp
7320
7321 Type @kbd{C-c C-c} to return to the server buffer.  If you now press
7322 @kbd{RET} over this virtual server, you should be entered into a browse
7323 buffer, and you should be able to enter any of the groups displayed.
7324
7325
7326 @node Servers and Methods
7327 @subsection Servers and Methods
7328
7329 Wherever you would normally use a select method
7330 (eg. @code{gnus-secondary-select-method}, in the group select method,
7331 when browsing a foreign server) you can use a virtual server name
7332 instead.  This could potentially save lots of typing.  And it's nice all
7333 over.
7334
7335
7336 @node Unavailable Servers
7337 @subsection Unavailable Servers
7338
7339 If a server seems to be unreachable, Gnus will mark that server as
7340 @code{denied}.  That means that any subsequent attempt to make contact
7341 with that server will just be ignored.  ``It can't be opened,'' Gnus
7342 will tell you, without making the least effort to see whether that is
7343 actually the case or not.
7344
7345 That might seem quite naughty, but it does make sense most of the time.
7346 Let's say you have 10 groups subscribed to the server
7347 @samp{nepholococcygia.com}.  This server is located somewhere quite far
7348 away from you, the machine is quite, so it takes 1 minute just to find
7349 out that it refuses connection from you today.  If Gnus were to attempt
7350 to do that 10 times, you'd be quite annoyed, so Gnus won't attempt to do
7351 that.  Once it has gotten a single ``connection refused'', it will
7352 regard that server as ``down''.
7353
7354 So, what happens if the machine was only feeling unwell temporarily?
7355 How do you test to see whether the machine has come up again?
7356
7357 You jump to the server buffer (@pxref{The Server Buffer}) and poke it
7358 with the following commands:
7359
7360 @table @kbd
7361
7362 @item O
7363 @kindex O (Server)
7364 @findex gnus-server-open-server
7365 Try to establish connection to the server on the current line
7366 (@code{gnus-server-open-server}).
7367
7368 @item C
7369 @kindex C (Server)
7370 @findex gnus-server-close-server
7371 Close the connection (if any) to the server
7372 (@code{gnus-server-close-server}).
7373
7374 @item D
7375 @kindex D (Server)
7376 @findex gnus-server-deny-server
7377 Mark the current server as unreachable
7378 (@code{gnus-server-deny-server}). 
7379
7380 @item R
7381 @kindex R (Server)
7382 @findex gnus-server-remove-denials
7383 Remove all marks to whether Gnus was denied connection from all servers
7384 (@code{gnus-server-remove-denials}). 
7385
7386 @end table
7387
7388
7389 @node Getting News
7390 @section Getting News
7391 @cindex reading news
7392 @cindex news backends
7393
7394 A newsreader is normally used for reading news.  Gnus currently provides
7395 only two methods of getting news---it can read from an @sc{nntp} server,
7396 or it can read from a local spool.
7397
7398 @menu
7399 * NNTP::               Reading news from an @sc{nntp} server.
7400 * News Spool::         Reading news from the local spool.
7401 @end menu
7402
7403
7404 @node NNTP
7405 @subsection @sc{nntp}
7406 @cindex nntp
7407
7408 Subscribing to a foreign group from an @sc{nntp} server is rather easy.
7409 You just specify @code{nntp} as method and the address of the @sc{nntp}
7410 server as the, uhm, address.
7411
7412 If the @sc{nntp} server is located at a non-standard port, setting the
7413 third element of the select method to this port number should allow you
7414 to connect to the right port.  You'll have to edit the group info for
7415 that (@pxref{Foreign Groups}).
7416
7417 The name of the foreign group can be the same as a native group.  In
7418 fact, you can subscribe to the same group from as many different servers
7419 you feel like.  There will be no name collisions.
7420
7421 The following variables can be used to create a virtual @code{nntp}
7422 server: 
7423
7424 @table @code
7425
7426 @item nntp-server-opened-hook
7427 @vindex nntp-server-opened-hook
7428 @cindex @sc{mode reader}
7429 @cindex authinfo
7430 @cindex authentification
7431 @cindex nntp authentification
7432 @findex nntp-send-authinfo
7433 @findex nntp-send-mode-reader
7434 @code{nntp-server-opened-hook} is run after a connection has been made.
7435 It can be used to send commands to the @sc{nntp} server after it has
7436 been contacted.  By default is sends the command @code{MODE READER} to
7437 the server with the @code{nntp-send-mode-reader} function.  Another
7438 popular function is @code{nntp-send-authinfo}, which will prompt you for
7439 an @sc{nntp} password and stuff.
7440
7441 @item nntp-server-action-alist 
7442 @vindex nntp-server-action-alist 
7443 This is an list of regexps to match on server types and actions to be
7444 taken when matches are made.  For instance, if you want Gnus to beep
7445 every time you connect to innd, you could say something like:
7446
7447 @lisp
7448 (setq nntp-server-action-alist
7449       '(("innd" (ding))))
7450 @end lisp
7451
7452 You probably don't want to do that, though.
7453
7454 The default value is
7455
7456 @lisp
7457   '(("nntpd 1\\.5\\.11t" 
7458      (remove-hook 'nntp-server-opened-hook nntp-send-mode-reader)))
7459 @end lisp
7460
7461 This ensures that Gnus doesn't send the @code{MODE READER} command to
7462 nntpd 1.5.11t, since that command chokes that server, I've been told. 
7463
7464 @item nntp-maximum-request
7465 @vindex nntp-maximum-request
7466 If the @sc{nntp} server doesn't support @sc{nov} headers, this backend
7467 will collect headers by sending a series of @code{head} commands.  To
7468 speed things up, the backend sends lots of these commands without
7469 waiting for reply, and then reads all the replies.  This is controlled
7470 by the @code{nntp-maximum-request} variable, and is 400 by default.  If
7471 your network is buggy, you should set this to 1.
7472
7473 @item nntp-connection-timeout
7474 @vindex nntp-connection-timeout
7475 If you have lots of foreign @code{nntp} groups that you connect to
7476 regularly, you're sure to have problems with @sc{nntp} servers not
7477 responding properly, or being too loaded to reply within reasonable
7478 time.  This is can lead to awkward problems, which can be helped
7479 somewhat by setting @code{nntp-connection-timeout}.  This is an integer
7480 that says how many seconds the @code{nntp} backend should wait for a
7481 connection before giving up.  If it is @code{nil}, which is the default,
7482 no timeouts are done.
7483
7484 @item nntp-command-timeout
7485 @vindex nntp-command-timeout
7486 @cindex PPP connections
7487 @cindex dynamic IP addresses
7488 If you're running Gnus on a machine that has a dynamically assigned
7489 address, Gnus may become confused.  If the address of your machine
7490 changes after connecting to the @sc{nntp} server, Gnus will simply sit
7491 waiting forever for replies from the server.  To help with this
7492 unfortunate problem, you can set this command to a number.  Gnus will
7493 then, if it sits waiting longer than that number of seconds for a reply
7494 from the server, shut down the connection, start a new one, and resend
7495 the command.  This should hopefully be transparent to the user.  A
7496 likely number is 30 seconds. 
7497
7498 @item nntp-retry-on-break
7499 @vindex nntp-retry-on-break
7500 If this variable is non-@code{nil}, you can also @kbd{C-g} if Gnus
7501 hangs.  This will have much the same effect as the command timeout
7502 described above.
7503
7504 @item nntp-server-hook
7505 @vindex nntp-server-hook
7506 This hook is run as the last step when connecting to an @sc{nntp}
7507 server.
7508
7509 @findex nntp-open-rlogin
7510 @findex nntp-open-network-stream
7511 @item nntp-open-server-function
7512 @vindex nntp-open-server-function
7513 This function is used to connect to the remote system.  Two pre-made
7514 functions are @code{nntp-open-network-stream}, which is the default, and
7515 simply connects to some port or other on the remote system.  The other
7516 is @code{nntp-open-rlogin}, which does an rlogin on the remote system,
7517 and then does a telnet to the @sc{nntp} server available there.
7518
7519 @item nntp-rlogin-parameters
7520 @vindex nntp-rlogin-parameters
7521 If you use @code{nntp-open-rlogin} as the
7522 @code{nntp-open-server-function}, this list will be used as the
7523 parameter list given to @code{rsh}.
7524
7525 @item nntp-end-of-line
7526 @vindex nntp-end-of-line
7527 String to use as end-of-line markers when talking to the @sc{nntp}
7528 server.  This is @samp{\r\n} by default, but should be @samp{\n} when
7529 using @code{rlogin} to talk to the server.
7530
7531 @item nntp-rlogin-user-name
7532 @vindex nntp-rlogin-user-name
7533 User name on the remote system when using the @code{rlogin} connect
7534 function. 
7535
7536 @item nntp-address
7537 @vindex nntp-address
7538 The address of the remote system running the @sc{nntp} server.
7539
7540 @item nntp-port-number
7541 @vindex nntp-port-number
7542 Port number to connect to when using the @code{nntp-open-network-stream}
7543 connect function.
7544
7545 @item nntp-buggy-select
7546 @vindex nntp-buggy-select
7547 Set this to non-@code{nil} if your select routine is buggy.
7548
7549 @item nntp-nov-is-evil 
7550 @vindex nntp-nov-is-evil 
7551 If the @sc{nntp} server does not support @sc{nov}, you could set this
7552 variable to @code{t}, but @code{nntp} usually checks whether @sc{nov}
7553 can be used automatically.
7554
7555 @item nntp-xover-commands
7556 @vindex nntp-xover-commands
7557 @cindex nov
7558 @cindex XOVER
7559 List of strings that are used as commands to fetch @sc{nov} lines from a
7560 server.  The default value of this variable is @code{("XOVER"
7561 "XOVERVIEW")}. 
7562
7563 @item nntp-nov-gap
7564 @vindex nntp-nov-gap
7565 @code{nntp} normally sends just one big request for @sc{nov} lines to
7566 the server.  The server responds with one huge list of lines.  However,
7567 if you have read articles 2-5000 in the group, and only want to read
7568 article 1 and 5001, that means that @code{nntp} will fetch 4999 @sc{nov}
7569 lines that you do not want, and will not use.  This variable says how
7570 big a gap between two consecutive articles is allowed to be before the
7571 @code{XOVER} request is split into several request.  Note that if your
7572 network is fast, setting this variable to a really small number means
7573 that fetching will probably be slower.  If this variable is @code{nil},
7574 @code{nntp} will never split requests.
7575
7576 @item nntp-prepare-server-hook
7577 @vindex nntp-prepare-server-hook
7578 A hook run before attempting to connect to an @sc{nntp} server.
7579
7580 @item nntp-async-number
7581 @vindex nntp-async-number
7582 How many articles should be pre-fetched when in asynchronous mode.  If
7583 this variable is @code{t}, @code{nntp} will pre-fetch all the articles
7584 that it can without bound.  If it is @code{nil}, no pre-fetching will be
7585 made.
7586
7587 @item nntp-warn-about-losing-connection
7588 @vindex nntp-warn-about-losing-connection
7589 If this variable is non-@code{nil}, some noise will be made when a
7590 server closes connection.
7591
7592 @end table
7593
7594
7595 @node News Spool
7596 @subsection News Spool
7597 @cindex nnspool
7598 @cindex news spool
7599
7600 Subscribing to a foreign group from the local spool is extremely easy,
7601 and might be useful, for instance, to speed up reading groups like
7602 @samp{alt.binaries.pictures.furniture}.
7603
7604 Anyways, you just specify @code{nnspool} as the method and @samp{} (or
7605 anything else) as the address.
7606
7607 If you have access to a local spool, you should probably use that as the
7608 native select method (@pxref{Finding the News}).  It is normally faster
7609 than using an @code{nntp} select method, but might not be.  It depends.
7610 You just have to try to find out what's best at your site.
7611
7612 @table @code
7613
7614 @item nnspool-inews-program
7615 @vindex nnspool-inews-program
7616 Program used to post an article.
7617
7618 @item nnspool-inews-switches
7619 @vindex nnspool-inews-switches
7620 Parameters given to the inews program when posting an article. 
7621
7622 @item nnspool-spool-directory
7623 @vindex nnspool-spool-directory
7624 Where @code{nnspool} looks for the articles.  This is normally
7625 @file{/usr/spool/news/}.
7626
7627 @item nnspool-nov-directory 
7628 @vindex nnspool-nov-directory 
7629 Where @code{nnspool} will look for @sc{nov} files.  This is normally
7630 @file{/usr/spool/news/over.view/}.
7631
7632 @item nnspool-lib-dir
7633 @vindex nnspool-lib-dir
7634 Where the news lib dir is (@file{/usr/lib/news/} by default).
7635
7636 @item nnspool-active-file
7637 @vindex nnspool-active-file
7638 The path of the active file.
7639
7640 @item nnspool-newsgroups-file
7641 @vindex nnspool-newsgroups-file
7642 The path of the group descriptions file.
7643
7644 @item nnspool-history-file
7645 @vindex nnspool-history-file
7646 The path of the news history file.
7647
7648 @item nnspool-active-times-file
7649 @vindex nnspool-active-times-file
7650 The path of the active date file.
7651
7652 @item nnspool-nov-is-evil
7653 @vindex nnspool-nov-is-evil
7654 If non-@code{nil}, @code{nnspool} won't try to use any @sc{nov} files
7655 that it finds.
7656
7657 @item nnspool-sift-nov-with-sed
7658 @vindex nnspool-sift-nov-with-sed
7659 @cindex sed
7660 If non-@code{nil}, which is the default, use @code{sed} to get the
7661 relevant portion from the overview file.  If nil, @code{nnspool} will
7662 load the entire file into a buffer and process it there.
7663
7664 @end table
7665
7666
7667 @node Getting Mail
7668 @section Getting Mail
7669 @cindex reading mail
7670 @cindex mail
7671
7672 Reading mail with a newsreader---isn't that just plain WeIrD? But of
7673 course.
7674
7675 @menu
7676 * Getting Started Reading Mail:: A simple cookbook example.
7677 * Splitting Mail::               How to create mail groups.
7678 * Mail Backend Variables::       Variables for customizing mail handling.
7679 * Fancy Mail Splitting::         Gnus can do hairy splitting of incoming mail.
7680 * Mail and Procmail::            Reading mail groups that procmail create.
7681 * Incorporating Old Mail::       What about the old mail you have?
7682 * Expiring Mail::                Getting rid of unwanted mail.
7683 * Duplicates::                   Dealing with duplicated mail.
7684 * Not Reading Mail::             Using mail backends for reading other files.
7685 * Choosing a Mail Backend::      Gnus can read a variety of mail formats.
7686 @end menu
7687
7688
7689 @node Getting Started Reading Mail
7690 @subsection Getting Started Reading Mail
7691
7692 It's quite easy to use Gnus to read your new mail.  You just plonk the
7693 mail backend of your choice into @code{gnus-secondary-select-methods},
7694 and things will happen automatically.
7695
7696 For instance, if you want to use @code{nnml} (which is a one file per
7697 mail backend), you could put the following in your @file{.gnus} file:
7698
7699 @lisp
7700 (setq gnus-secondary-select-methods
7701       '((nnml "private")))
7702 @end lisp
7703
7704 Now, the next time you start Gnus, this backend will be queried for new
7705 articles, and it will move all the messages in your spool file to its
7706 directory, which is @code{~/Mail/} by default.  The new group that will
7707 be created (@samp{mail.misc}) will be subscribed, and you can read it
7708 like any other group.
7709
7710 You will probably want to split the mail into several groups, though:
7711
7712 @lisp
7713 (setq nnmail-split-methods
7714   '(("junk" "^From:.*Lars Ingebrigtsen")
7715     ("crazy" "^Subject:.*die\\|^Organization:.*flabby")
7716     ("other" "")))
7717 @end lisp
7718
7719 This will result in three new mail groups being created:
7720 @samp{nnml:junk}, @samp{nnml:crazy}, and @samp{nnml:other}.  All the
7721 mail that doesn't fit into the first two groups will be placed in the
7722 latter group.
7723
7724 This should be sufficient for reading mail with Gnus.  You might want to
7725 give the other sections in this part of the manual a perusal, though,
7726 especially @pxref{Choosing a Mail Backend} and @pxref{Expiring Mail}. 
7727
7728
7729 @node Splitting Mail
7730 @subsection Splitting Mail
7731 @cindex splitting mail
7732 @cindex mail splitting
7733
7734 @vindex nnmail-split-methods
7735 The @code{nnmail-split-methods} variable says how the incoming mail is
7736 to be split into groups.
7737
7738 @lisp
7739 (setq nnmail-split-methods
7740   '(("mail.junk" "^From:.*Lars Ingebrigtsen")
7741     ("mail.crazy" "^Subject:.*die\\|^Organization:.*flabby")
7742     ("mail.other" "")))
7743 @end lisp
7744
7745 This variable is a list of lists, where the first element of each of
7746 these lists is the name of the mail group (they do not have to be called
7747 something beginning with @samp{mail}, by the way), and the second
7748 element is a regular expression used on the header of each mail to
7749 determine if it belongs in this mail group.
7750
7751 The second element can also be a function.  In that case, it will be
7752 called narrowed to the headers with the first element of the rule as the
7753 argument.  It should return a non-@code{nil} value if it thinks that the
7754 mail belongs in that group.
7755
7756 The last of these groups should always be a general one, and the regular
7757 expression should @emph{always} be @samp{} so that it matches any
7758 mails that haven't been matched by any of the other regexps.
7759
7760 If you like to tinker with this yourself, you can set this variable to a
7761 function of your choice.  This function will be called without any
7762 arguments in a buffer narrowed to the headers of an incoming mail
7763 message.  The function should return a list of groups names that it
7764 thinks should carry this mail message.
7765
7766 Note that the mail backends are free to maul the poor, innocent
7767 incoming headers all they want to.  They all add @code{Lines} headers;
7768 some add @code{X-Gnus-Group} headers; most rename the Unix mbox
7769 @code{From<SPACE>} line to something else.
7770
7771 @vindex nnmail-crosspost
7772 The mail backends all support cross-posting.  If several regexps match,
7773 the mail will be ``cross-posted'' to all those groups.
7774 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
7775 that no articles are crossposted to the general (@samp{}) group.
7776
7777 @vindex nnmail-crosspost-link-function
7778 @cindex crosspost
7779 @cindex links
7780 @code{nnmh} and @code{nnml} makes crossposts by creating hard links to
7781 the crossposted articles.  However, not all files systems support hard
7782 links.  If that's the case for you, set
7783 @code{nnmail-crosspost-link-function} to @code{copy-file}.  (This
7784 variable is @code{add-name-to-file} by default.)  
7785
7786 Gnus gives you all the opportunity you could possibly want for shooting
7787 yourself in the foot.  Let's say you create a group that will contain
7788 all the mail you get from your boss.  And then you accidentally
7789 unsubscribe from the group.  Gnus will still put all the mail from your
7790 boss in the unsubscribed group, and so, when your boss mails you ``Have
7791 that report ready by Monday or you're fired!'', you'll never see it and,
7792 come Tuesday, you'll still believe that you're gainfully employed while
7793 you really should be out collecting empty bottles to save up for next
7794 month's rent money.
7795
7796
7797 @node Mail Backend Variables
7798 @subsection Mail Backend Variables
7799
7800 These variables are (for the most part) pertinent to all the various
7801 mail backends.
7802
7803 @table @code
7804 @vindex nnmail-read-incoming-hook
7805 @item nnmail-read-incoming-hook
7806 The mail backends all call this hook after reading new mail.  You can
7807 use this hook to notify any mail watch programs, if you want to.
7808
7809 @vindex nnmail-spool-file
7810 @item nnmail-spool-file
7811 @cindex POP mail
7812 @cindex MAILHOST
7813 @cindex movemail
7814 @vindex nnmail-pop-password
7815 @vindex nnmail-pop-password-required
7816 The backends will look for new mail in this file.  If this variable is
7817 @code{nil}, the mail backends will never attempt to fetch mail by
7818 themselves.  If you are using a POP mail server and your name is
7819 @samp{larsi}, you should set this variable to @samp{po:larsi}.  If
7820 your name is not @samp{larsi}, you should probably modify that
7821 slightly, but you may have guessed that already, you smart & handsome
7822 devil!  You can also set this variable to @code{pop}, and Gnus will try
7823 to figure out the POP mail string by itself.  In any case, Gnus will
7824 call @code{movemail} which will contact the POP server named in the
7825 @code{MAILHOST} environment variable.  If the POP server needs a
7826 password, you can either set @code{nnmail-pop-password-required} to
7827 @code{t} and be prompted for the password, or set
7828 @code{nnmail-pop-password} to the password itself.
7829
7830 When you use a mail backend, Gnus will slurp all your mail from your
7831 inbox and plonk it down in your home directory.  Gnus doesn't move any
7832 mail if you're not using a mail backend---you have to do a lot of magic
7833 invocations first.  At the time when you have finished drawing the
7834 pentagram, lightened the candles, and sacrificed the goat, you really
7835 shouldn't be too surprised when Gnus moves your mail.
7836
7837 @vindex nnmail-use-procmail
7838 @vindex nnmail-procmail-suffix
7839 @item nnmail-use-procmail
7840 If non-@code{nil}, the mail backends will look in
7841 @code{nnmail-procmail-directory} for incoming mail.  All the files in
7842 that directory that have names ending in @code{nnmail-procmail-suffix}
7843 will be considered incoming mailboxes, and will be searched for new
7844 mail.
7845
7846 @vindex nnmail-crash-box
7847 @item nnmail-crash-box
7848 When the mail backends read a spool file, it is first moved to this
7849 file, which is @file{~/.gnus-crash-box} by default.  If this file
7850 already exists, it will always be read (and incorporated) before any
7851 other spool files.
7852
7853 @vindex nnmail-prepare-incoming-hook
7854 @item nnmail-prepare-incoming-hook
7855 This is run in a buffer that holds all the new incoming mail, and can be
7856 used for, well, anything, really.
7857
7858 @vindex nnmail-pre-get-new-mail-hook
7859 @vindex nnmail-post-get-new-mail-hook
7860 @item nnmail-pre-get-new-mail-hook
7861 @itemx nnmail-post-get-new-mail-hook
7862 These are two useful hooks executed when treating new incoming
7863 mail---@code{nnmail-pre-get-new-mail-hook} (is called just before
7864 starting to handle the new mail) and
7865 @code{nnmail-post-get-new-mail-hook} (is called when the mail handling
7866 is done).  Here's and example of using these two hooks to change the
7867 default file modes the new mail files get:
7868
7869 @lisp
7870 (add-hook 'gnus-pre-get-new-mail-hook 
7871           (lambda () (set-default-file-modes 511)))
7872
7873 (add-hook 'gnus-post-get-new-mail-hook 
7874           (lambda () (set-default-file-modes 551)))
7875 @end lisp
7876
7877 @item nnmail-tmp-directory
7878 @vindex nnmail-tmp-directory
7879 This variable says where to move the incoming mail to while processing
7880 it.  This is usually done in the same directory that the mail backend
7881 inhabits (i.e., @file{~/Mail/}), but if this variable is non-@code{nil},
7882 it will be used instead.
7883
7884 @item nnmail-movemail-program
7885 @vindex nnmail-movemail-program
7886 This program is executed to move mail from the user's inbox to her home
7887 directory.  The default is @samp{movemail}.
7888
7889 @item nnmail-delete-incoming
7890 @vindex nnmail-delete-incoming
7891 @cindex incoming mail files
7892 @cindex deleting incoming files
7893 If non-@code{nil}, the mail backends will delete the temporary incoming
7894 file after splitting mail into the proper groups.  This is @code{t} by
7895 default for reasons of security.
7896
7897 @item nnmail-use-long-file-names
7898 @vindex nnmail-use-long-file-names
7899 If non-@code{nil}, the mail backends will use long file and directory
7900 names.  Groups like @samp{mail.misc} will end up in directories like
7901 @file{mail.misc/}.  If it is @code{nil}, the same group will end up in
7902 @file{mail/misc/}.
7903
7904 @item nnmail-delete-file-function
7905 @vindex nnmail-delete-file-function
7906 @findex delete-file
7907 Function called to delete files.  It is @code{delete-file} by default. 
7908
7909 @end table
7910
7911
7912 @node Fancy Mail Splitting
7913 @subsection Fancy Mail Splitting
7914 @cindex mail splitting
7915 @cindex fancy mail splitting
7916
7917 @vindex nnmail-split-fancy
7918 @findex nnmail-split-fancy
7919 If the rather simple, standard method for specifying how to split mail
7920 doesn't allow you to do what you want, you can set
7921 @code{nnmail-split-methods} to @code{nnmail-split-fancy}.  Then you can
7922 play with the @code{nnmail-split-fancy} variable. 
7923
7924 Let's look at an example value of this variable first:
7925
7926 @lisp
7927 ;; Messages from the mailer daemon are not crossposted to any of
7928 ;; the ordinary groups.  Warnings are put in a separate group
7929 ;; from real errors.
7930 (| ("from" mail (| ("subject" "warn.*" "mail.warning")
7931                    "mail.misc"))
7932    ;; Non-error messages are crossposted to all relevant
7933    ;; groups, but we don't crosspost between the group for the
7934    ;; (ding) list and the group for other (ding) related mail.
7935    (& (| (any "ding@@ifi\\.uio\\.no" "ding.list")
7936          ("subject" "ding" "ding.misc"))
7937       ;; Other mailing lists...
7938       (any "procmail@@informatik\\.rwth-aachen\\.de" "procmail.list")
7939       (any "SmartList@@informatik\\.rwth-aachen\\.de" "SmartList.list")
7940       ;; People...
7941       (any "larsi@@ifi\\.uio\\.no" "people.Lars Magne Ingebrigtsen"))
7942    ;; Unmatched mail goes to the catch all group.
7943    "misc.misc"))")
7944 @end lisp
7945
7946 This variable has the format of a @dfn{split}.  A split is a (possibly)
7947 recursive structure where each split may contain other splits.  Here are
7948 the four possible split syntaxes:
7949
7950 @table @dfn
7951
7952 @item GROUP 
7953 If the split is a string, that will be taken as a group name. 
7954
7955 @item (FIELD VALUE SPLIT)
7956 If the split is a list, and the first element is a string, then that
7957 means that if header FIELD (a regexp) contains VALUE (also a regexp),
7958 then store the message as specified by SPLIT.
7959
7960 @item (| SPLIT...)
7961 If the split is a list, and the first element is @code{|} (vertical
7962 bar), then process each SPLIT until one of them matches.  A SPLIT is
7963 said to match if it will cause the mail message to be stored in one or
7964 more groups.
7965
7966 @item (& SPLIT...)
7967 If the split is a list, and the first element is @code{&}, then process
7968 all SPLITs in the list.
7969 @end table
7970
7971 In these splits, FIELD must match a complete field name.  VALUE must
7972 match a complete word according to the fundamental mode syntax table.
7973 You can use @code{.*} in the regexps to match partial field names or
7974 words.
7975
7976 @vindex nnmail-split-abbrev-alist
7977 FIELD and VALUE can also be lisp symbols, in that case they are expanded
7978 as specified by the variable @code{nnmail-split-abbrev-alist}.  This is
7979 an alist of cons cells, where the car of the cells contains the key, and
7980 the cdr contains a string.
7981
7982 @vindex nnmail-split-fancy-syntax-table
7983 @code{nnmail-split-fancy-syntax-table} is the syntax table in effect
7984 when all this splitting is performed.
7985
7986
7987 @node Mail and Procmail
7988 @subsection Mail and Procmail
7989 @cindex procmail
7990
7991 @cindex slocal
7992 @cindex elm
7993 Many people use @code{procmail} (or some other mail filter program or
7994 external delivery agent---@code{slocal}, @code{elm}, etc) to split
7995 incoming mail into groups.  If you do that, you should set
7996 @code{nnmail-spool-file} to @code{procmail} to ensure that the mail
7997 backends never ever try to fetch mail by themselves.
7998
7999 This also means that you probably don't want to set
8000 @code{nnmail-split-methods} either, which has some, perhaps, unexpected
8001 side effects.
8002
8003 When a mail backend is queried for what groups it carries, it replies
8004 with the contents of that variable, along with any groups it has figured
8005 out that it carries by other means.  None of the backends (except
8006 @code{nnmh}) actually go out to the disk and check what groups actually
8007 exist.  (It's not trivial to distinguish between what the user thinks is
8008 a basis for a newsgroup and what is just a plain old file or directory.)
8009
8010 This means that you have to tell Gnus (and the backends) what groups
8011 exist by hand.
8012
8013 Let's take the @code{nnmh} backend as an example. 
8014
8015 The folders are located in @code{nnmh-directory}, say, @file{~/Mail/}.
8016 There are three folders, @file{foo}, @file{bar} and @file{mail.baz}.
8017
8018 Go to the group buffer and type @kbd{G m}.  When prompted, answer
8019 @samp{foo} for the name and @samp{nnmh} for the method.  Repeat
8020 twice for the two other groups, @samp{bar} and @samp{mail.baz}.  Be sure
8021 to include all your mail groups.
8022
8023 That's it.  You are now set to read your mail.  An active file for this
8024 method will be created automatically.
8025
8026 @vindex nnmail-procmail-suffix
8027 @vindex nnmail-procmail-directory
8028 If you use @code{nnfolder} or any other backend that store more than a
8029 single article in each file, you should never have procmail add mails to
8030 the file that Gnus sees.  Instead, procmail should put all incoming mail
8031 in @code{nnmail-procmail-directory}.  To arrive at the file name to put
8032 the incoming mail in, append @code{nnmail-procmail-suffix} to the group
8033 name.  The mail backends will read the mail from these files.
8034
8035 @vindex nnmail-resplit-incoming
8036 When Gnus reads a file called @file{mail.misc.spool}, this mail will be
8037 put in the @code{mail.misc}, as one would expect.  However, if you want
8038 Gnus to split the mail the normal way, you could set
8039 @code{nnmail-resplit-incoming} to @code{t}.
8040
8041 @vindex nnmail-keep-last-article
8042 If you use @code{procmail} to split things directory into an @code{nnmh}
8043 directory (which you shouldn't do), you should set
8044 @code{nnmail-keep-last-article} to non-@code{nil} to prevent Gnus from
8045 ever expiring the final article in a mail newsgroup.  This is quite,
8046 quite important.
8047
8048
8049 @node Incorporating Old Mail
8050 @subsection Incorporating Old Mail
8051
8052 Most people have lots of old mail stored in various file formats.  If
8053 you have set up Gnus to read mail using one of the spiffy Gnus mail
8054 backends, you'll probably wish to have that old mail incorporated into
8055 your mail groups.
8056
8057 Doing so can be quite easy.
8058
8059 To take an example: You're reading mail using @code{nnml}
8060 (@pxref{Mail Spool}), and have set @code{nnmail-split-methods} to a
8061 satisfactory value (@pxref{Splitting Mail}).  You have an old Unix mbox
8062 file filled with important, but old, mail.  You want to move it into
8063 your @code{nnml} groups.
8064
8065 Here's how:
8066
8067 @enumerate
8068 @item
8069 Go to the group buffer.
8070
8071 @item 
8072 Type `G f' and give the path of the mbox file when prompted to create an
8073 @code{nndoc} group from the mbox file (@pxref{Foreign Groups}).
8074
8075 @item 
8076 Type `SPACE' to enter the newly created group.
8077
8078 @item
8079 Type `M P b' to process-mark all articles in this group (@pxref{Setting
8080 Process Marks}).
8081
8082 @item 
8083 Type `B r' to respool all the process-marked articles, and answer
8084 @samp{nnml} when prompted (@pxref{Mail Group Commands}).
8085 @end enumerate
8086
8087 All the mail messages in the mbox file will now also be spread out over
8088 all your @code{nnml} groups.  Try entering them and check whether things
8089 have gone without a glitch.  If things look ok, you may consider
8090 deleting the mbox file, but I wouldn't do that unless I was absolutely
8091 sure that all the mail has ended up where it should be.
8092
8093 Respooling is also a handy thing to do if you're switching from one mail
8094 backend to another.  Just respool all the mail in the old mail groups
8095 using the new mail backend.
8096
8097
8098 @node Expiring Mail
8099 @subsection Expiring Mail
8100 @cindex article expiry
8101
8102 Traditional mail readers have a tendency to remove mail articles when
8103 you mark them as read, in some way.  Gnus takes a fundamentally
8104 different approach to mail reading.
8105
8106 Gnus basically considers mail just to be news that has been received in
8107 a rather peculiar manner.  It does not think that it has the power to
8108 actually change the mail, or delete any mail messages.  If you enter a
8109 mail group, and mark articles as ``read'', or kill them in some other
8110 fashion, the mail articles will still exist on the system.  I repeat:
8111 Gnus will not delete your old, read mail.  Unless you ask it to, of
8112 course.
8113
8114 To make Gnus get rid of your unwanted mail, you have to mark the
8115 articles as @dfn{expirable}.  This does not mean that the articles will
8116 disappear right away, however.  In general, a mail article will be
8117 deleted from your system if, 1) it is marked as expirable, AND 2) it is
8118 more than one week old.  If you do not mark an article as expirable, it
8119 will remain on your system until hell freezes over.  This bears
8120 repeating one more time, with some spurious capitalizations: IF you do
8121 NOT mark articles as EXPIRABLE, Gnus will NEVER delete those ARTICLES.
8122
8123 @vindex gnus-auto-expirable-newsgroups
8124 You do not have to mark articles as expirable by hand.  Groups that
8125 match the regular expression @code{gnus-auto-expirable-newsgroups} will
8126 have all articles that you read marked as expirable automatically.  All
8127 articles that are marked as expirable have an @samp{E} in the first
8128 column in the summary buffer.
8129
8130 Let's say you subscribe to a couple of mailing lists, and you want the
8131 articles you have read to disappear after a while:
8132
8133 @lisp
8134 (setq gnus-auto-expirable-newsgroups 
8135       "mail.nonsense-list\\|mail.nice-list")
8136 @end lisp
8137
8138 Another way to have auto-expiry happen is to have the element
8139 @code{auto-expire} in the group parameters of the group. 
8140
8141 @vindex nnmail-expiry-wait
8142 The @code{nnmail-expiry-wait} variable supplies the default time an
8143 expirable article has to live.  The default is seven days.  
8144
8145 Gnus also supplies a function that lets you fine-tune how long articles
8146 are to live, based on what group they are in.  Let's say you want to
8147 have one month expiry period in the @samp{mail.private} group, a one day
8148 expiry period in the @samp{mail.junk} group, and a six day expiry period
8149 everywhere else:
8150
8151 @vindex nnmail-expiry-wait-function
8152 @lisp
8153 (setq nnmail-expiry-wait-function
8154       (lambda (group)
8155        (cond ((string= group "mail.private")
8156                31)
8157              ((string= group "mail.junk")
8158                1)
8159              ((string= group "important")
8160                'never)
8161              (t
8162                6))))
8163 @end lisp
8164
8165 The group names that this function is fed are ``unadorned'' group
8166 names---no @samp{nnml:} prefixes and the like.
8167
8168 The @code{nnmail-expiry-wait} variable and
8169 @code{nnmail-expiry-wait-function} function can be either a number (not
8170 necessarily an integer) or the symbols @code{immediate} or
8171 @code{never}.  
8172
8173 You can also use the @code{expiry-wait} group parameter to selectively
8174 change the expiry period (@pxref{Group Parameters}).
8175
8176 @vindex nnmail-keep-last-article
8177 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never
8178 expire the final article in a mail newsgroup.  This is to make life
8179 easier for procmail users.
8180
8181 @vindex gnus-total-expirable-newsgroups
8182 By the way, that line up there about Gnus never expiring non-expirable
8183 articles is a lie.  If you put @code{total-expire} in the group
8184 parameters, articles will not be marked as expirable, but all read
8185 articles will be put through the expiry process.  Use with extreme
8186 caution.  Even more dangerous is the
8187 @code{gnus-total-expirable-newsgroups} variable.  All groups that match
8188 this regexp will have all read articles put through the expiry process,
8189 which means that @emph{all} old mail articles in the groups in question
8190 will be deleted after a while.  Use with extreme caution, and don't come
8191 crying to me when you discover that the regexp you used matched the
8192 wrong group and all your important mail has disappeared.  Be a
8193 @emph{man}!  Or a @emph{woman}!  Whatever you feel more comfortable
8194 with!  So there!
8195
8196
8197 @node Duplicates
8198 @subsection Duplicates
8199
8200 @vindex nnmail-treat-duplicates
8201 @vindex nnmail-message-id-cache-length
8202 @vindex nnmail-message-id-cache-file
8203 @cindex duplicate mails
8204 If you are a member of a couple of mailing list, you will sometime
8205 receive two copies of the same mail.  This can be quite annoying, so
8206 @code{nnmail} checks for and treats any duplicates it might find.  To do
8207 this, it keeps a cache of old @code{Message-ID}s -
8208 @code{nnmail-message-id-cache-file}, which is @file{~/.nnmail-cache} by
8209 default.  The approximate maximum number of @code{Message-ID}s stored
8210 there is controlled by the @code{nnmail-message-id-cache-length}
8211 variable, which is 1000 by default. (So 1000 @code{Message-ID}s will be
8212 stored.) If all this sounds scary to you, you can set
8213 @code{nnmail-treat-duplicates} to @code{warn} (which is what it is by
8214 default), and @code{nnmail} won't delete duplicate mails.  Instead it
8215 will generate a brand new @code{Message-ID} for the mail and insert a
8216 warning into the head of the mail saying that it thinks that this is a
8217 duplicate of a different message.  
8218
8219 This variable can also be a function.  If that's the case, the function
8220 will be called from a buffer narrowed to the message in question with
8221 the @code{Message-ID} as a parameter.  The function must return either
8222 @code{nil}, @code{warn}, or @code{delete}.
8223
8224 You can turn this feature off completely by setting the variable to
8225 @code{nil}.
8226
8227 If you want all the duplicate mails to be put into a special
8228 @dfn{duplicates} group, you could do that using the normal mail split
8229 methods:
8230
8231 @lisp
8232 (setq nnmail-split-fancy
8233       '(| ;; Messages duplicates go to a separate group.
8234           ("gnus-warning" "duplication of message" "duplicate")
8235           ;; Message from daemons, postmaster, and the like to another.
8236           (any mail "mail.misc")
8237           ;; Other rules.
8238           [ ... ] ))
8239 @end lisp
8240
8241 Or something like:
8242 @lisp
8243 (setq nnmail-split-methods 
8244       '(("duplicates" "^Gnus-Warning:")
8245         ;; Other rules.
8246         [...]))
8247 @end lisp
8248
8249 Here's a neat feature: If you know that the recipient reads her mail
8250 with Gnus, and that she has @code{nnmail-treat-duplicates} set to
8251 @code{delete}, you can send her as many insults as you like, just by
8252 using a @code{Message-ID} of a mail that you know that she's already
8253 received.  Think of all the fun!  She'll never see any of it!  Whee!
8254
8255
8256 @node Not Reading Mail
8257 @subsection Not Reading Mail
8258
8259 If you start using any of the mail backends, they have the annoying
8260 habit of assuming that you want to read mail with them.  This might not
8261 be unreasonable, but it might not be what you want.
8262
8263 If you set @code{nnmail-spool-file} to @code{nil}, none of the backends
8264 will ever attempt to read incoming mail, which should help.
8265
8266 @vindex nnbabyl-get-new-mail
8267 @vindex nnmbox-get-new-mail
8268 @vindex nnml-get-new-mail
8269 @vindex nnmh-get-new-mail
8270 @vindex nnfolder-get-new-mail
8271 This might be too much, if, for instance, you are reading mail quite
8272 happily with @code{nnml} and just want to peek at some old @sc{rmail}
8273 file you have stashed away with @code{nnbabyl}.  All backends have
8274 variables called backend-@code{get-new-mail}.  If you want to disable
8275 the @code{nnbabyl} mail reading, you edit the virtual server for the
8276 group to have a setting where @code{nnbabyl-get-new-mail} to @code{nil}.
8277
8278 All the mail backends will call @code{nn}*@code{-prepare-save-mail-hook}
8279 narrowed to the article to be saved before saving it when reading
8280 incoming mail.
8281
8282
8283 @node Choosing a Mail Backend
8284 @subsection Choosing a Mail Backend
8285
8286 Gnus will read the mail spool when you activate a mail group.  The mail
8287 file is first copied to your home directory.  What happens after that
8288 depends on what format you want to store your mail in.
8289
8290 @menu
8291 * Unix Mail Box::               Using the (quite) standard Un*x mbox.
8292 * Rmail Babyl::                 Emacs programs use the rmail babyl format.
8293 * Mail Spool::                  Store your mail in a private spool?
8294 * MH Spool::                    An mhspool-like backend.
8295 * Mail Folders::                Having one file for each group.
8296 @end menu
8297
8298
8299 @node Unix Mail Box
8300 @subsubsection Unix Mail Box
8301 @cindex nnmbox
8302 @cindex unix mail box
8303
8304 @vindex nnmbox-active-file
8305 @vindex nnmbox-mbox-file
8306 The @dfn{nnmbox} backend will use the standard Un*x mbox file to store
8307 mail.  @code{nnmbox} will add extra headers to each mail article to say
8308 which group it belongs in.
8309
8310 Virtual server settings:
8311
8312 @table @code
8313 @item nnmbox-mbox-file
8314 @vindex nnmbox-mbox-file
8315 The name of the mail box in the user's home directory. 
8316
8317 @item nnmbox-active-file
8318 @vindex nnmbox-active-file
8319 The name of the active file for the mail box.
8320
8321 @item nnmbox-get-new-mail
8322 @vindex nnmbox-get-new-mail
8323 If non-@code{nil}, @code{nnmbox} will read incoming mail and split it
8324 into groups.
8325 @end table
8326
8327
8328 @node Rmail Babyl
8329 @subsubsection Rmail Babyl
8330 @cindex nnbabyl
8331 @cindex rmail mbox
8332
8333 @vindex nnbabyl-active-file
8334 @vindex nnbabyl-mbox-file
8335 The @dfn{nnbabyl} backend will use a babyl mail box (aka. @dfn{rmail
8336 mbox}) to store mail. @code{nnbabyl} will add extra headers to each mail
8337 article to say which group it belongs in.
8338
8339 Virtual server settings:
8340
8341 @table @code
8342 @item nnbabyl-mbox-file
8343 @vindex nnbabyl-mbox-file
8344 The name of the rmail mbox file.
8345
8346 @item nnbabyl-active-file
8347 @vindex nnbabyl-active-file
8348 The name of the active file for the rmail box.
8349
8350 @item nnbabyl-get-new-mail
8351 @vindex nnbabyl-get-new-mail
8352 If non-@code{nil}, @code{nnbabyl} will read incoming mail. 
8353 @end table
8354
8355
8356 @node Mail Spool
8357 @subsubsection Mail Spool
8358 @cindex nnml
8359 @cindex mail @sc{nov} spool
8360
8361 The @dfn{nnml} spool mail format isn't compatible with any other known
8362 format.  It should be used with some caution.
8363
8364 @vindex nnml-directory
8365 If you use this backend, Gnus will split all incoming mail into files;
8366 one file for each mail, and put the articles into the correct
8367 directories under the directory specified by the @code{nnml-directory}
8368 variable.  The default value is @file{~/Mail/}.
8369
8370 You do not have to create any directories beforehand; Gnus will take
8371 care of all that.
8372
8373 If you have a strict limit as to how many files you are allowed to store
8374 in your account, you should not use this backend.  As each mail gets its
8375 own file, you might very well occupy thousands of inodes within a few
8376 weeks.  If this is no problem for you, and it isn't a problem for you
8377 having your friendly systems administrator walking around, madly,
8378 shouting ``Who is eating all my inodes?! Who? Who!?!'', then you should
8379 know that this is probably the fastest format to use.  You do not have
8380 to trudge through a big mbox file just to read your new mail.
8381
8382 @code{nnml} is probably the slowest backend when it comes to article
8383 splitting.  It has to create lots of files, and it also generates
8384 @sc{nov} databases for the incoming mails.  This makes is the fastest
8385 backend when it comes to reading mail.
8386
8387 Virtual server settings:
8388
8389 @table @code
8390 @item nnml-directory
8391 @vindex nnml-directory
8392 All @code{nnml} directories will be placed under this directory. 
8393
8394 @item nnml-active-file
8395 @vindex nnml-active-file
8396 The active file for the @code{nnml} server.
8397
8398 @item nnml-newsgroups-file
8399 @vindex nnml-newsgroups-file
8400 The @code{nnml} group descriptions file.  @xref{Newsgroups File
8401 Format}. 
8402
8403 @item nnml-get-new-mail
8404 @vindex nnml-get-new-mail
8405 If non-@code{nil}, @code{nnml} will read incoming mail.
8406
8407 @item nnml-nov-is-evil
8408 @vindex nnml-nov-is-evil
8409 If non-@code{nil}, this backend will ignore any @sc{nov} files.  
8410
8411 @item nnml-nov-file-name
8412 @vindex nnml-nov-file-name
8413 The name of the @sc{nov} files.  The default is @file{.overview}. 
8414
8415 @item nnml-prepare-save-mail-hook
8416 @vindex nnml-prepare-save-mail-hook
8417 Hook run narrowed to an article before saving.
8418
8419 @end table
8420
8421 @findex nnml-generate-nov-databases
8422 If your @code{nnml} groups and @sc{nov} files get totally out of whack,
8423 you can do a complete update by typing @kbd{M-x
8424 nnml-generate-nov-databases}.  This command will trawl through the
8425 entire @code{nnml} hierarchy, looking at each and every article, so it
8426 might take a while to complete.
8427
8428
8429 @node MH Spool
8430 @subsubsection MH Spool
8431 @cindex nnmh
8432 @cindex mh-e mail spool
8433
8434 @code{nnmh} is just like @code{nnml}, except that is doesn't generate
8435 @sc{nov} databases and it doesn't keep an active file.  This makes
8436 @code{nnmh} a @emph{much} slower backend than @code{nnml}, but it also
8437 makes it easier to write procmail scripts for.
8438
8439 Virtual server settings:
8440
8441 @table @code
8442 @item nnmh-directory
8443 @vindex nnmh-directory
8444 All @code{nnmh} directories will be located under this directory.
8445
8446 @item nnmh-get-new-mail
8447 @vindex nnmh-get-new-mail
8448 If non-@code{nil}, @code{nnmh} will read incoming mail.
8449
8450 @item nnmh-be-safe
8451 @vindex nnmh-be-safe
8452 If non-@code{nil}, @code{nnmh} will go to ridiculous lengths to make
8453 sure that the articles in the folder are actually what Gnus thinks they
8454 are.  It will check date stamps and stat everything in sight, so
8455 setting this to @code{t} will mean a serious slow-down.  If you never
8456 use anything but Gnus to read the @code{nnmh} articles, you do not have
8457 to set this variable to @code{t}.
8458 @end table
8459
8460
8461 @node Mail Folders
8462 @subsubsection Mail Folders
8463 @cindex nnfolder
8464 @cindex mbox folders
8465 @cindex mail folders
8466
8467 @code{nnfolder} is a backend for storing each mail group in a separate
8468 file.  Each file is in the standard Un*x mbox format.  @code{nnfolder}
8469 will add extra headers to keep track of article numbers and arrival
8470 dates.
8471
8472 Virtual server settings:
8473
8474 @table @code
8475 @item nnfolder-directory
8476 @vindex nnfolder-directory
8477 All the @code{nnfolder} mail boxes will be stored under this directory. 
8478
8479 @item nnfolder-active-file
8480 @vindex nnfolder-active-file
8481 The name of the active file.
8482
8483 @item nnfolder-newsgroups-file
8484 @vindex nnfolder-newsgroups-file
8485 The name of the group descriptions file.  @xref{Newsgroups File Format}.
8486
8487 @item nnfolder-get-new-mail
8488 @vindex nnfolder-get-new-mail
8489 If non-@code{nil}, @code{nnfolder} will read incoming mail.
8490 @end table
8491
8492 @findex nnfolder-generate-active-file
8493 @kindex M-x nnfolder-generate-active-file
8494 If you have lots of @code{nnfolder}-like files you'd like to read with
8495 @code{nnfolder}, you can use the @kbd{M-x nnfolder-generate-active-file}
8496 command to make @code{nnfolder} aware of all likely files in
8497 @code{nnfolder-directory}.
8498
8499
8500 @node Other Sources
8501 @section Other Sources
8502
8503 Gnus can do more than just read news or mail.  The methods described
8504 below allow Gnus to view directories and files as if they were
8505 newsgroups.
8506
8507 @menu
8508 * Directory Groups::   You can read a directory as if it was a newsgroup.
8509 * Anything Groups::    Dired?  Who needs dired?
8510 * Document Groups::    Single files can be the basis of a group.
8511 * SOUP::               Reading @sc{SOUP} packets ``offline''.
8512 @end menu
8513
8514
8515 @node Directory Groups
8516 @subsection Directory Groups
8517 @cindex nndir
8518 @cindex directory groups
8519
8520 If you have a directory that has lots of articles in separate files in
8521 it, you might treat it as a newsgroup.  The files have to have numerical
8522 names, of course.
8523
8524 This might be an opportune moment to mention @code{ange-ftp}, that most
8525 wonderful of all wonderful Emacs packages.  When I wrote @code{nndir}, I
8526 didn't think much about it---a backend to read directories.  Big deal.
8527
8528 @code{ange-ftp} changes that picture dramatically.  For instance, if you
8529 enter @file{"/ftp.hpc.uh.edu:/pub/emacs/ding-list/"} as the the
8530 directory name, ange-ftp will actually allow you to read this directory
8531 over at @samp{sina} as a newsgroup.  Distributed news ahoy!
8532
8533 @code{nndir} will use @sc{nov} files if they are present.
8534
8535 @code{nndir} is a ``read-only'' backend---you can't delete or expire
8536 articles with this method.  You can use @code{nnmh} or @code{nnml} for
8537 whatever you use @code{nndir} for, so you could switch to any of those
8538 methods if you feel the need to have a non-read-only @code{nndir}.
8539
8540
8541 @node Anything Groups
8542 @subsection Anything Groups
8543 @cindex nneething
8544
8545 From the @code{nndir} backend (which reads a single spool-like
8546 directory), it's just a hop and a skip to @code{nneething}, which
8547 pretends that any arbitrary directory is a newsgroup.  Strange, but
8548 true.
8549
8550 When @code{nneething} is presented with a directory, it will scan this
8551 directory and assign article numbers to each file.  When you enter such
8552 a group, @code{nneething} must create ``headers'' that Gnus can use.
8553 After all, Gnus is a newsreader, in case you're
8554 forgetting. @code{nneething} does this in a two-step process.  First, it
8555 snoops each file in question.  If the file looks like an article (i.e.,
8556 the first few lines look like headers), it will use this as the head.
8557 If this is just some arbitrary file without a head (eg. a C source
8558 file), @code{nneething} will cobble up a header out of thin air.  It
8559 will use file ownership, name and date and do whatever it can with these
8560 elements.
8561
8562 All this should happen automatically for you, and you will be presented
8563 with something that looks very much like a newsgroup.  Totally like a
8564 newsgroup, to be precise.  If you select an article, it will be displayed
8565 in the article buffer, just as usual.
8566
8567 If you select a line that represents a directory, Gnus will pop you into
8568 a new summary buffer for this @code{nneething} group.  And so on.  You can
8569 traverse the entire disk this way, if you feel like, but remember that
8570 Gnus is not dired, really, and does not intend to be, either.
8571
8572 There are two overall modes to this action---ephemeral or solid.  When
8573 doing the ephemeral thing (i.e., @kbd{G D} from the group buffer), Gnus
8574 will not store information on what files you have read, and what files
8575 are new, and so on.  If you create a solid @code{nneething} group the
8576 normal way with @kbd{G m}, Gnus will store a mapping table between
8577 article numbers and file names, and you can treat this group like any
8578 other groups.  When you activate a solid @code{nneething} group, you will
8579 be told how many unread articles it contains, etc., etc.
8580
8581 Some variables:
8582
8583 @table @code
8584 @item nneething-map-file-directory
8585 @vindex nneething-map-file-directory
8586 All the mapping files for solid @code{nneething} groups will be stored
8587 in this directory, which defaults to @file{~/.nneething/}.
8588
8589 @item nneething-exclude-files
8590 @vindex nneething-exclude-files
8591 All files that match this regexp will be ignored.  Nice to use to exclude
8592 auto-save files and the like, which is what it does by default.
8593
8594 @item nneething-map-file
8595 @vindex nneething-map-file
8596 Name of the map files.
8597 @end table
8598
8599
8600 @node Document Groups
8601 @subsection Document Groups
8602 @cindex nndoc
8603 @cindex documentation group
8604 @cindex help group
8605
8606 @code{nndoc} is a cute little thing that will let you read a single file
8607 as a newsgroup.  Several files types are supported:
8608
8609 @table @code
8610 @cindex babyl
8611 @cindex rmail mbox
8612
8613 @item babyl
8614 The babyl (rmail) mail box.
8615 @cindex mbox
8616 @cindex Unix mbox
8617
8618 @item mbox
8619 The standard Unix mbox file.
8620
8621 @cindex MMDF mail box
8622 @item mmdf
8623 The MMDF mail box format.
8624
8625 @item news
8626 Several news articles appended into a file.
8627
8628 @item rnews
8629 @cindex rnews batch files
8630 The rnews batch transport format.
8631 @cindex forwarded messages
8632
8633 @item forward
8634 Forwarded articles.
8635
8636 @item mime-digest
8637 @cindex digest
8638 @cindex MIME digest
8639 @cindex 1153 digest
8640 @cindex RFC 1153 digest
8641 @cindex RFC 341 digest
8642 MIME (RFC 1341) digest format.
8643
8644 @item standard-digest
8645 The standard (RFC 1153) digest format.
8646
8647 @item slack-digest
8648 Non-standard digest format---matches most things, but does it badly. 
8649 @end table
8650
8651 You can also use the special ``file type'' @code{guess}, which means
8652 that @code{nndoc} will try to guess what file type it is looking at.
8653 @code{digest} means that @code{nndoc} should guess what digest type the
8654 file is.
8655
8656 @code{nndoc} will not try to change the file or insert any extra headers into
8657 it---it will simply, like, let you use the file as the basis for a
8658 group.  And that's it.
8659
8660 If you have some old archived articles that you want to insert into your
8661 new & spiffy Gnus mail backend, @code{nndoc} can probably help you with
8662 that.  Say you have an old @file{RMAIL} file with mail that you now want
8663 to split into your new @code{nnml} groups.  You look at that file using
8664 @code{nndoc}, set the process mark on all the articles in the buffer
8665 (@kbd{M P b}, for instance), and then re-spool (@kbd{B r}) using
8666 @code{nnml}.  If all goes well, all the mail in the @file{RMAIL} file is
8667 now also stored in lots of @code{nnml} directories, and you can delete
8668 that pesky @file{RMAIL} file.  If you have the guts!  
8669
8670 Virtual server variables:
8671
8672 @table @code
8673 @item nndoc-article-type
8674 @vindex nndoc-article-type
8675 This should be one of @code{mbox}, @code{babyl}, @code{digest},
8676 @code{mmdf}, @code{forward}, @code{news}, @code{rnews},
8677 @code{mime-digest}, @code{clari-briefs}, or @code{guess}.
8678
8679 @item nndoc-post-type
8680 @vindex nndoc-post-type
8681 This variable says whether Gnus is to consider the group a news group or
8682 a mail group.  There are two legal values:  @code{mail} (the default)
8683 and @code{news}.
8684 @end table
8685
8686 @menu
8687 * Document Server Internals::   How to add your own document types.
8688 @end menu
8689
8690
8691 @node Document Server Internals
8692 @subsubsection Document Server Internals
8693
8694 Adding new document types to be recognized by @code{nndoc} isn't
8695 difficult.  You just have to whip up a definition of what the document
8696 looks like, write a predicate function to recognize that document type,
8697 and then hook into @code{nndoc}.
8698
8699 First, here's an example document type definition:
8700
8701 @example
8702 (mmdf 
8703  (article-begin .  "^\^A\^A\^A\^A\n")
8704  (body-end .  "^\^A\^A\^A\^A\n"))
8705 @end example
8706
8707 The definition is simply a unique @dfn{name} followed by a series of
8708 regexp pseudo-variable settings.  Below are the possible
8709 variables---don't be daunted by the number of variables; most document
8710 types can be defined with very few settings:
8711
8712 @table @code
8713 @item first-article
8714 If present, @code{nndoc} will skip past all text until it finds
8715 something that match this regexp.  All text before this will be
8716 totally ignored. 
8717
8718 @item article-begin
8719 This setting has to be present in all document type definitions.  It
8720 says what the beginning of each article looks like.
8721
8722 @item head-begin-function
8723 If present, this should be a function that moves point to the head of
8724 the article.
8725
8726 @item nndoc-head-begin
8727 If present, this should be a regexp that matches the head of the
8728 article. 
8729
8730 @item nndoc-head-end
8731 This should match the end of the head of the article.  It defaults to
8732 @samp{"^$"}---the empty line.
8733
8734 @item body-begin-function
8735 If present, this function should move point to the beginning of the body
8736 of the article.
8737
8738 @item body-begin
8739 This should match the beginning of the body of the article.  It defaults
8740 to @samp{^\n}.
8741
8742 @item body-end-function
8743 If present, this function should move point to the end of the body of
8744 the article.
8745
8746 @item body-end
8747 If present, this should match the end of the body of the article.
8748
8749 @item nndoc-file-end
8750 If present, this should match the end of the file.  All text after this
8751 regexp will be totally ignored. 
8752
8753 @end table
8754
8755 So, using these variables @code{nndoc} is able to dissect a document
8756 file into a series of articles, each with a head and a body.  However, a
8757 few more variables are needed since not all document types are all that
8758 news-like---variables needed to transform the head or the body into
8759 something that's palatable for Gnus:
8760
8761 @table @code
8762 @item prepare-body-function
8763 If present, this function will be called when requesting an article.  It
8764 will be called with point at the start of the body, and is useful if the
8765 document has encoded some parts of its contents. 
8766
8767 @item article-transform-function
8768 If present, this function is called when requesting an article.  It's
8769 meant to be used how more wide-ranging transformation of both head and
8770 body of the article.
8771
8772 @item generate-head-function
8773 If present, this function is called to generate a head that Gnus can
8774 understand.  It is called with the article number as a parameter, and is
8775 expected to generate a nice head for the article in question.  It is
8776 called when requesting the headers of all articles.
8777
8778 @end table
8779
8780 Let's look at the most complicated example I can come up with---standard
8781 digests:
8782
8783 @example
8784 (standard-digest
8785  (first-article . ,(concat "^" (make-string 70 ?-) "\n\n+"))
8786  (article-begin . ,(concat "\n\n" (make-string 30 ?-) "\n\n+"))
8787  (prepare-body-function . nndoc-unquote-dashes)
8788  (body-end-function . nndoc-digest-body-end)
8789  (head-end . "^ ?$")
8790  (body-begin . "^ ?\n")
8791  (file-end . "^End of .*digest.*[0-9].*\n\\*\\*\\|^End of.*Digest *$")
8792  (subtype digest guess))
8793 @end example
8794
8795 We see that all text before a 70-width line of dashes is ignored; all
8796 text after a line that starts with that @samp{^End of} is also ignored;
8797 each article begins with a 30-width line of dashes; the line separating
8798 the head from the body may contain a single spcae; and that the body is
8799 run through @code{nndoc-unquote-dashes} before being delivered.
8800
8801 To hook your own document definition into @code{nndoc}, use the
8802 @code{nndoc-add-type} function.  It takes two parameters---the first is
8803 the definition itself and the second (optional) parameter says where in
8804 the document type definition alist to put this definition.  The alist is
8805 traversed sequentially, and @code{nndoc-TYPE-type-p} is called for each
8806 type.  So @code{nndoc-mmdf-type-p} is called to see whether a document
8807 is of @code{mmdf} type, and so on.  These type predicates should return
8808 @code{nil} if the document is not of the correct type; @code{t} if it is
8809 of the correct type; and a number if the document might be of the
8810 correct type.  A high number means high probability; a low number means
8811 low probability with @samp{0} being the lowest legal number.
8812
8813
8814 @node SOUP
8815 @subsection SOUP
8816 @cindex SOUP
8817 @cindex offline
8818
8819 In the PC world people often talk about ``offline'' newsreaders.  These
8820 are thingies that are combined reader/news transport monstrosities.
8821 With built-in modem programs.  Yecchh!
8822
8823 Of course, us Unix Weenie types of human beans use things like
8824 @code{uucp} and, like, @code{nntpd} and set up proper news and mail
8825 transport things like Ghod intended.  And then we just use normal
8826 newsreaders.  
8827
8828 However, it can sometimes be convenient to do something a that's a bit
8829 easier on the brain if you have a very slow modem, and you're not really
8830 that interested in doing things properly.  
8831
8832 A file format called @sc{soup} has been developed for transporting news
8833 and mail from servers to home machines and back again.  It can be a bit
8834 fiddly.
8835
8836 @enumerate
8837
8838 @item
8839 You log in on the server and create a @sc{soup} packet.  You can either
8840 use a dedicated @sc{soup} thingie, or you can use Gnus to create the
8841 packet with the @kbd{O s} command.
8842
8843 @item 
8844 You transfer the packet home.  Rail, boat, car or modem will do fine.
8845
8846 @item
8847 You put the packet in your home directory.
8848
8849 @item
8850 You fire up Gnus using the @code{nnsoup} backend as the native server.
8851
8852 @item
8853 You read articles and mail and answer and followup to the things you
8854 want.
8855
8856 @item 
8857 You do the @kbd{G s r} command to pack these replies into a @sc{soup}
8858 packet.
8859
8860 @item 
8861 You transfer this packet to the server.  
8862
8863 @item
8864 You use Gnus to mail this packet out with the @kbd{G s s} command.
8865
8866 @item
8867 You then repeat until you die.
8868
8869 @end enumerate
8870
8871 So you basically have a bipartite system---you use @code{nnsoup} for
8872 reading and Gnus for packing/sending these @sc{soup} packets.
8873
8874 @menu
8875 * SOUP Commands::     Commands for creating and sending @sc{soup} packets
8876 * SOUP Groups::       A backend for reading @sc{soup} packets.
8877 * SOUP Replies::      How to enable @code{nnsoup} to take over mail and news.
8878 @end menu
8879
8880
8881 @node SOUP Commands
8882 @subsubsection SOUP Commands
8883
8884 @table @kbd
8885 @item G s b
8886 @kindex G s b (Group)
8887 @findex gnus-group-brew-soup
8888 Pack all unread articles in the current group
8889 (@code{gnus-group-brew-soup}).  This command understands the
8890 process/prefix convention.
8891
8892 @item G s w
8893 @kindex G s w (Group)
8894 @findex gnus-soup-save-areas
8895 Save all data files (@code{gnus-soup-save-areas}).
8896
8897 @item G s s
8898 @kindex G s s (Group)
8899 @findex gnus-soup-send-replies
8900 Send all replies from the replies packet
8901 (@code{gnus-soup-send-replies}). 
8902
8903 @item G s p
8904 @kindex G s p (Group)
8905 @findex gnus-soup-pack-packet
8906 Pack all files into a @sc{soup} packet (@code{gnus-soup-pack-packet}). 
8907
8908 @item G s r
8909 @kindex G s r (Group)
8910 @findex nnsoup-pack-replies
8911 Pack all replies into a replies packet (@code{nnsoup-pack-replies}). 
8912
8913 @item O s
8914 @kindex O s (Summary)
8915 @findex gnus-soup-add-article
8916 This summary-mode command adds the current article to a @sc{soup} packet
8917 (@code{gnus-soup-add-article}).  It understands the process/prefix
8918 convention. 
8919
8920 @end table
8921
8922
8923 There are a few variables to customize where Gnus will put all these
8924 thingies:  
8925
8926 @table @code
8927
8928 @item gnus-soup-directory
8929 @vindex gnus-soup-directory
8930 Directory where Gnus will save intermediate files while composing
8931 @sc{soup} packets.  The default is @file{~/SoupBrew/}. 
8932
8933 @item gnus-soup-replies-directory
8934 @vindex gnus-soup-replies-directory
8935 This is what Gnus will use as a temporary directory while sending our
8936 reply packets.  The default is @file{~/SoupBrew/SoupReplies/}. 
8937
8938 @item gnus-soup-prefix-file
8939 @vindex gnus-soup-prefix-file
8940 Name of the file where Gnus stores the last used prefix.  The default is
8941 @samp{gnus-prefix}. 
8942
8943 @item gnus-soup-packer
8944 @vindex gnus-soup-packer
8945 A format string command for packing a @sc{soup} packet.  The default is
8946 @samp{tar cf - %s | gzip > $HOME/Soupout%d.tgz}. 
8947
8948 @item gnus-soup-unpacker
8949 @vindex gnus-soup-unpacker
8950 Format string command for unpacking a @sc{soup} packet.  The default is
8951 @samp{gunzip -c %s | tar xvf -}.
8952
8953 @item gnus-soup-packet-directory
8954 @vindex gnus-soup-packet-directory
8955 Where Gnus will look for reply packets.  The default is @file{~/}. 
8956
8957 @item gnus-soup-packet-regexp
8958 @vindex gnus-soup-packet-regexp
8959 Regular expression matching @sc{soup} reply packets in
8960 @code{gnus-soup-packet-directory}. 
8961
8962 @end table
8963  
8964
8965 @node SOUP Groups
8966 @subsubsection @sc{soup} Groups
8967 @cindex nnsoup
8968
8969 @code{nnsoup} is the backend for reading @sc{soup} packets.  It will
8970 read incoming packets, unpack them, and put them in a directory where
8971 you can read them at leisure.
8972
8973 These are the variables you can use to customize its behavior:
8974
8975 @table @code
8976
8977 @item nnsoup-tmp-directory
8978 @vindex nnsoup-tmp-directory
8979 When @code{nnsoup} unpacks a @sc{soup} packet, it does it in this
8980 directory.  (@file{/tmp/} by default.)  
8981
8982 @item nnsoup-directory
8983 @vindex nnsoup-directory
8984 @code{nnsoup} then moves each message and index file to this directory.
8985 The default is @file{~/SOUP/}.
8986
8987 @item nnsoup-replies-directory 
8988 @vindex nnsoup-replies-directory 
8989 All replies will stored in this directory before being packed into a
8990 reply packet.  The default is @file{~/SOUP/replies/"}.
8991
8992 @item nnsoup-replies-format-type
8993 @vindex nnsoup-replies-format-type
8994 The @sc{soup} format of the replies packets.  The default is @samp{?n}
8995 (rnews), and I don't think you should touch that variable.  I probably
8996 shouldn't even have documented it.  Drats!  Too late!
8997
8998 @item nnsoup-replies-index-type
8999 @vindex nnsoup-replies-index-type
9000 The index type of the replies packet.  The is @samp{?n}, which means
9001 ``none''.  Don't fiddle with this one either!
9002
9003 @item nnsoup-active-file
9004 @vindex nnsoup-active-file
9005 Where @code{nnsoup} stores lots of information.  This is not an ``active
9006 file'' in the @code{nntp} sense; it's an Emacs Lisp file.  If you lose
9007 this file or mess it up in any way, you're dead.  The default is
9008 @file{~/SOUP/active}.
9009
9010 @item nnsoup-packer
9011 @vindex nnsoup-packer
9012 Format string command for packing a reply @sc{soup} packet.  The default
9013 is @samp{tar cf - %s | gzip > $HOME/Soupin%d.tgz}. 
9014
9015 @item nnsoup-unpacker
9016 @vindex nnsoup-unpacker
9017 Format string command for unpacking incoming @sc{soup} packets.  The
9018 default is @samp{gunzip -c %s | tar xvf -}. 
9019
9020 @item nnsoup-packet-directory
9021 @vindex nnsoup-packet-directory
9022 Where @code{nnsoup} will look for incoming packets.  The default is
9023 @file{~/}.  
9024
9025 @item nnsoup-packet-regexp
9026 @vindex nnsoup-packet-regexp
9027 Regular expression matching incoming @sc{soup} packets.  The default is
9028 @samp{Soupout}. 
9029
9030 @end table
9031
9032
9033 @node SOUP Replies
9034 @subsubsection SOUP Replies
9035
9036 Just using @code{nnsoup} won't mean that your postings and mailings end
9037 up in @sc{soup} reply packets automagically.  You have to work a bit
9038 more for that to happen.
9039
9040 @findex nnsoup-set-variables
9041 The @code{nnsoup-set-variables} command will set the appropriate
9042 variables to ensure that all your followups and replies end up in the
9043 @sc{soup} system.
9044
9045 In specific, this is what it does:
9046
9047 @lisp
9048 (setq gnus-inews-article-function 'nnsoup-request-post)
9049 (setq send-mail-function 'nnsoup-request-mail)
9050 @end lisp
9051
9052 And that's it, really.  If you only want news to go into the @sc{soup}
9053 system you just use the first line.  If you only want mail to be
9054 @sc{soup}ed you use the second.
9055
9056
9057 @node Combined Groups
9058 @section Combined Groups
9059
9060 Gnus allows combining a mixture of all the other group types into bigger
9061 groups.
9062
9063 @menu
9064 * Virtual Groups::     Combining articles from many groups.
9065 * Kibozed Groups::     Looking through parts of the newsfeed for articles.
9066 @end menu
9067
9068
9069 @node Virtual Groups
9070 @subsection Virtual Groups
9071 @cindex nnvirtual
9072 @cindex virtual groups
9073
9074 An @dfn{nnvirtual group} is really nothing more than a collection of
9075 other groups.
9076
9077 For instance, if you are tired of reading many small group, you can
9078 put them all in one big group, and then grow tired of reading one
9079 big, unwieldy group.  The joys of computing!
9080
9081 You specify @code{nnvirtual} as the method.  The address should be a
9082 regexp to match component groups.
9083
9084 All marks in the virtual group will stick to the articles in the
9085 component groups.  So if you tick an article in a virtual group, the
9086 article will also be ticked in the component group from whence it came.
9087 (And vice versa---marks from the component groups will also be shown in
9088 the virtual group.)
9089
9090 Here's an example @code{nnvirtual} method that collects all Andrea Dworkin
9091 newsgroups into one, big, happy newsgroup:
9092
9093 @lisp
9094 (nnvirtual "^alt\\.fan\\.andrea-dworkin$\\|^rec\\.dworkin.*")
9095 @end lisp
9096
9097 The component groups can be native or foreign; everything should work
9098 smoothly, but if your computer explodes, it was probably my fault.
9099
9100 Collecting the same group from several servers might actually be a good
9101 idea if users have set the Distribution header to limit distribution.
9102 If you would like to read @samp{soc.motss} both from a server in Japan
9103 and a server in Norway, you could use the following as the group regexp:
9104
9105 @example
9106 "^nntp+some.server.jp:soc.motss$\\|^nntp+some.server.no:soc.motss$"
9107 @end example
9108
9109 This should work kinda smoothly---all articles from both groups should
9110 end up in this one, and there should be no duplicates.  Threading (and
9111 the rest) will still work as usual, but there might be problems with the
9112 sequence of articles.  Sorting on date might be an option here
9113 (@pxref{Selecting a Group}.
9114
9115 One limitation, however---all groups that are included in a virtual
9116 group has to be alive (i.e., subscribed or unsubscribed).  Killed or
9117 zombie groups can't be component groups for @code{nnvirtual} groups.
9118
9119 @vindex nnvirtual-always-rescan
9120 If the @code{nnvirtual-always-rescan} is non-@code{nil},
9121 @code{nnvirtual} will always scan groups for unread articles when
9122 entering a virtual group.  If this variable is @code{nil} (which is the
9123 default) and you read articles in a component group after the virtual
9124 group has been activated, the read articles from the component group
9125 will show up when you enter the virtual group.  You'll also see this
9126 effect if you have two virtual groups that contain the same component
9127 group.  If that's the case, you should set this variable to @code{t}.
9128 Or you can just tap @code{M-g} on the virtual group every time before
9129 you enter it---it'll have much the same effect.
9130
9131
9132 @node Kibozed Groups
9133 @subsection Kibozed Groups
9134 @cindex nnkiboze
9135 @cindex kibozing
9136
9137 @dfn{Kibozing} is defined by @sc{oed} as ``grepping through (parts of)
9138 the news feed''.  @code{nnkiboze} is a backend that will do this for
9139 you.  Oh joy!  Now you can grind any @sc{nntp} server down to a halt
9140 with useless requests!  Oh happiness!
9141
9142 @kindex G k (Group)
9143 To create a kibozed group, use the @kbd{G k} command in the group
9144 buffer. 
9145
9146 The address field of the @code{nnkiboze} method is, as with
9147 @code{nnvirtual}, a regexp to match groups to be ``included'' in the
9148 @code{nnkiboze} group.  There most similarities between @code{nnkiboze}
9149 and @code{nnvirtual} ends.
9150
9151 In addition to this regexp detailing component groups, an @code{nnkiboze} group
9152 must have a score file to say what articles that are to be included in
9153 the group (@pxref{Scoring}).
9154
9155 @kindex M-x nnkiboze-generate-groups
9156 @findex nnkiboze-generate-groups
9157 You must run @kbd{M-x nnkiboze-generate-groups} after creating the
9158 @code{nnkiboze} groups you want to have.  This command will take time.  Lots of
9159 time.  Oodles and oodles of time.  Gnus has to fetch the headers from
9160 all the articles in all the components groups and run them through the
9161 scoring process to determine if there are any articles in the groups
9162 that are to be part of the @code{nnkiboze} groups.
9163
9164 Please limit the number of component groups by using restrictive
9165 regexps.  Otherwise your sysadmin may become annoyed with you, and the
9166 @sc{nntp} site may throw you off and never let you back in again.
9167 Stranger things have happened.
9168
9169 @code{nnkiboze} component groups do not have to be alive---they can be dead,
9170 and they can be foreign.  No restrictions.
9171
9172 @vindex nnkiboze-directory
9173 The generation of an @code{nnkiboze} group means writing two files in
9174 @code{nnkiboze-directory}, which is @file{~/News/} by default.  One
9175 contains the @sc{nov} header lines for all the articles in the group,
9176 and the other is an additional @file{.newsrc} file to store information
9177 on what groups that have been searched through to find component
9178 articles.
9179
9180 Articles that are marked as read in the @code{nnkiboze} group will have their
9181 @sc{nov} lines removed from the @sc{nov} file.
9182
9183
9184 @node Scoring
9185 @chapter Scoring
9186 @cindex scoring
9187
9188 Other people use @dfn{kill files}, but we here at Gnus Towers like
9189 scoring better than killing, so we'd rather switch than fight.  They do
9190 something completely different as well, so sit up straight and pay
9191 attention!
9192
9193 @vindex gnus-summary-mark-below
9194 All articles have a default score (@code{gnus-summary-default-score}),
9195 which is 0 by default.  This score may be raised or lowered either
9196 interactively or by score files.  Articles that have a score lower than
9197 @code{gnus-summary-mark-below} are marked as read.
9198
9199 Gnus will read any @dfn{score files} that apply to the current group
9200 before generating the summary buffer.
9201
9202 There are several commands in the summary buffer that insert score
9203 entries based on the current article.  You can, for instance, ask Gnus to
9204 lower or increase the score of all articles with a certain subject.
9205
9206 There are two sorts of scoring entries: Permanent and temporary.
9207 Temporary score entries are self-expiring entries.  Any entries that are
9208 temporary and have not been used for, say, a week, will be removed
9209 silently to help keep the sizes of the score files down.
9210
9211 @menu 
9212 * Summary Score Commands::   Adding score entries for the current group.
9213 * Group Score Commands::     General score commands.
9214 * Score Variables::          Customize your scoring.  (My, what terminology).
9215 * Score File Format::        What a score file may contain.
9216 * Score File Editing::       You can edit score files by hand as well.
9217 * Adaptive Scoring::         Big Sister Gnus @emph{knows} what you read.
9218 * Home Score File::          How to say where new score entries are to go.
9219 * Followups To Yourself::    Having Gnus notice when people answer you.
9220 * Scoring Tips::             How to score effectively.
9221 * Reverse Scoring::          That problem child of old is not problem.
9222 * Global Score Files::       Earth-spanning, ear-splitting score files.
9223 * Kill Files::               They are still here, but they can be ignored.
9224 * GroupLens::                Getting predictions on what you like to read.
9225 * Advanced Scoring::         Using logical expressions to build score rules.
9226 @end menu
9227
9228
9229 @node Summary Score Commands
9230 @section Summary Score Commands
9231 @cindex score commands
9232
9233 The score commands that alter score entries do not actually modify real
9234 score files.  That would be too inefficient.  Gnus maintains a cache of
9235 previously loaded score files, one of which is considered the
9236 @dfn{current score file alist}.  The score commands simply insert
9237 entries into this list, and upon group exit, this list is saved.
9238
9239 The current score file is by default the group's local score file, even
9240 if no such score file actually exists.  To insert score commands into
9241 some other score file (eg. @file{all.SCORE}), you must first make this
9242 score file the current one.
9243
9244 General score commands that don't actually change the score file:
9245
9246 @table @kbd
9247
9248 @item V s
9249 @kindex V s (Summary)
9250 @findex gnus-summary-set-score
9251 Set the score of the current article (@code{gnus-summary-set-score}).  
9252
9253 @item V S
9254 @kindex V S (Summary)
9255 @findex gnus-summary-current-score
9256 Display the score of the current article
9257 (@code{gnus-summary-current-score}).   
9258
9259 @item V t
9260 @kindex V t (Summary)
9261 @findex gnus-score-find-trace
9262 Display all score rules that have been used on the current article
9263 (@code{gnus-score-find-trace}).   
9264
9265 @item V R
9266 @cindex V R (Summary)
9267 @findex gnus-summary-rescore
9268 Run the current summary through the scoring process
9269 (@code{gnus-summary-rescore}).  This might be useful if you're playing
9270 around with your score files behind Gnus' back and want to see the
9271 effect you're having.
9272
9273 @item V a
9274 @kindex V a (Summary)
9275 @findex gnus-summary-score-entry
9276 Add a new score entry, and allow specifying all elements 
9277 (@code{gnus-summary-score-entry}).
9278
9279 @item V c
9280 @kindex V c (Summary)
9281 @findex gnus-score-change-score-file
9282 Make a different score file the current
9283 (@code{gnus-score-change-score-file}). 
9284
9285 @item V e
9286 @kindex V e (Summary)
9287 @findex gnus-score-edit-current-scores
9288 Edit the current score file (@code{gnus-score-edit-current-scores}).
9289 You will be popped into a @code{gnus-score-mode} buffer (@pxref{Score
9290 File Editing}).
9291
9292 @item V f
9293 @kindex V f (Summary)
9294 @findex gnus-score-edit-file
9295 Edit a score file and make this score file the current one
9296 (@code{gnus-score-edit-file}).
9297
9298 @item V F
9299 @kindex V F (Summary)
9300 @findex gnus-score-flush-cache
9301 Flush the score cahe (@code{gnus-score-flush-cache}).  This is useful
9302 after editing score files.
9303
9304 @item V C
9305 @kindex V C (Summary)
9306 @findex gnus-score-customize
9307 Customize a score file in a visually pleasing manner
9308 (@code{gnus-score-customize}). 
9309
9310 @item I C-i
9311 @kindex I C-i (Summary)
9312 @findex gnus-summary-raise-score
9313 Increase the score of the current article
9314 (@code{gnus-summary-raise-score}).
9315
9316 @item L C-l
9317 @kindex L C-l (Summary)
9318 @findex gnus-summary-lower-score
9319 Lower the score of the current article
9320 (@code{gnus-summary-lower-score}). 
9321 @end table
9322
9323 The rest of these commands modify the local score file.
9324
9325 @table @kbd
9326
9327 @item V m
9328 @kindex V m (Summary)
9329 @findex gnus-score-set-mark-below
9330 Prompt for a score, and mark all articles with a score below this as
9331 read (@code{gnus-score-set-mark-below}).
9332
9333 @item V x
9334 @kindex V x (Summary)
9335 @findex gnus-score-set-expunge-below
9336 Prompt for a score, and add a score rule to the current score file to
9337 expunge all articles below this score
9338 (@code{gnus-score-set-expunge-below}).
9339 @end table
9340
9341 The keystrokes for actually making score entries follow a very regular
9342 pattern, so there's no need to list all the commands.  (Hundreds of
9343 them.)  
9344
9345 @enumerate
9346 @item
9347 The first key is either @kbd{I} (upper case i) for increasing the score
9348 or @kbd{L} for lowering the score. 
9349 @item
9350 The second key says what header you want to score on.  The following
9351 keys are available:
9352 @table @kbd
9353
9354 @item a
9355 Score on the author name.
9356
9357 @item s
9358 Score on the subject line.
9359
9360 @item x
9361 Score on the Xref line---i.e., the cross-posting line.
9362
9363 @item t
9364 Score on thread---the References line.
9365
9366 @item d
9367 Score on the date.
9368
9369 @item l
9370 Score on the number of lines.
9371
9372 @item i
9373 Score on the Message-ID.
9374
9375 @item f
9376 Score on followups.
9377
9378 @item b
9379 Score on the body.
9380
9381 @item h
9382 Score on the head.
9383 @end table
9384
9385 @item
9386 The third key is the match type.  Which match types are legal depends on
9387 what headers you are scoring on.
9388
9389 @table @code
9390
9391 @item strings 
9392
9393 @table @kbd
9394
9395 @item e
9396 Exact matching.
9397
9398 @item s
9399 Substring matching.
9400
9401 @item f
9402 Fuzzy matching.
9403
9404 @item r
9405 Regexp matching
9406 @end table
9407
9408 @item date
9409 @table @kbd
9410
9411 @item b
9412 Before date.
9413
9414 @item a
9415 At date.
9416
9417 @item n
9418 This date.
9419 @end table
9420
9421 @item number
9422 @table @kbd
9423
9424 @item <
9425 Less than number.
9426
9427 @item =
9428 Equal to number.
9429
9430 @item >
9431 Greater than number.
9432 @end table
9433 @end table
9434
9435 @item 
9436 The fourth and final key says whether this is a temporary (i.e., expiring)
9437 score entry, or a permanent (i.e., non-expiring) score entry, or whether
9438 it is to be done immediately, without adding to the score file.
9439 @table @kbd
9440
9441 @item t
9442 Temporary score entry.
9443
9444 @item p
9445 Permanent score entry.
9446
9447 @item i
9448 Immediately scoring.
9449 @end table
9450
9451 @end enumerate
9452
9453 So, let's say you want to increase the score on the current author with
9454 exact matching permanently: @kbd{I a e p}.  If you want to lower the
9455 score based on the subject line, using substring matching, and make a
9456 temporary score entry: @kbd{L s s t}.  Pretty easy.
9457
9458 To make things a bit more complicated, there are shortcuts.  If you use
9459 a capital letter on either the second or third keys, Gnus will use
9460 defaults for the remaining one or two keystrokes.  The defaults are
9461 ``substring'' and ``temporary''.  So @kbd{I A} is the same as @kbd{I a s
9462 t}, and @kbd{I a R} is the same as @kbd{I a r t}.
9463
9464 @vindex gnus-score-mimic-keymap
9465 The @code{gnus-score-mimic-keymap} says whether these commands will
9466 pretend they are keymaps or not.
9467
9468
9469 @node Group Score Commands
9470 @section Group Score Commands
9471 @cindex group score commands
9472
9473 There aren't many of these as yet, I'm afraid.
9474
9475 @table @kbd
9476
9477 @item W f
9478 @kindex W f (Group)
9479 @findex gnus-score-flush-cache
9480 Gnus maintains a cache of score alists to avoid having to reload them
9481 all the time.  This command will flush the cache
9482 (@code{gnus-score-flush-cache}). 
9483
9484 @end table
9485
9486
9487 @node Score Variables
9488 @section Score Variables
9489 @cindex score variables
9490
9491 @table @code
9492
9493 @item gnus-use-scoring
9494 @vindex gnus-use-scoring
9495 If @code{nil}, Gnus will not check for score files, and will not, in
9496 general, do any score-related work.  This is @code{t} by default.
9497
9498 @item gnus-kill-killed
9499 @vindex gnus-kill-killed
9500 If this variable is @code{nil}, Gnus will never apply score files to
9501 articles that have already been through the kill process.  While this
9502 may save you lots of time, it also means that if you apply a kill file
9503 to a group, and then change the kill file and want to run it over you
9504 group again to kill more articles, it won't work.  You have to set this
9505 variable to @code{t} to do that.  (It is @code{t} by default.)
9506
9507 @item gnus-kill-files-directory
9508 @vindex gnus-kill-files-directory
9509 All kill and score files will be stored in this directory, which is
9510 initialized from the @code{SAVEDIR} environment variable by default.
9511 This is @file{~/News/} by default.
9512
9513 @item gnus-score-file-suffix
9514 @vindex gnus-score-file-suffix
9515 Suffix to add to the group name to arrive at the score file name
9516 (@samp{SCORE} by default.)
9517
9518 @item gnus-score-uncacheable-files
9519 @vindex gnus-score-uncacheable-files
9520 @cindex score cache
9521 All score files are normally cached to avoid excessive re-loading of
9522 score files.  However, if this might make you Emacs grow big and
9523 bloated, so this regexp can be used to weed out score files that are
9524 unlikely to be needed again.  It would be a bad idea to deny caching of
9525 @file{all.SCORE}, while it might be a good idea to not cache
9526 @file{comp.infosystems.www.authoring.misc.ADAPT}.  In fact, this
9527 variable is @samp{ADAPT$} by default, so no adaptive score files will
9528 be cached.
9529
9530 @item gnus-save-score
9531 @vindex gnus-save-score
9532 If you have really complicated score files, and do lots of batch
9533 scoring, then you might set this variable to @code{t}.  This will make
9534 Gnus save the scores into the @file{.newsrc.eld} file.
9535
9536 @item gnus-score-interactive-default-score
9537 @vindex gnus-score-interactive-default-score
9538 Score used by all the interactive raise/lower commands to raise/lower
9539 score with.  Default is 1000, which may seem excessive, but this is to
9540 ensure that the adaptive scoring scheme gets enough room to play with.
9541 We don't want the small changes from the adaptive scoring to overwrite
9542 manually entered data.
9543
9544 @item gnus-summary-default-score
9545 @vindex gnus-summary-default-score
9546 Default score of an article, which is 0 by default.
9547
9548 @item gnus-score-over-mark
9549 @vindex gnus-score-over-mark
9550 Mark (in the third column) used for articles with a score over the
9551 default.  Default is @samp{+}.
9552
9553 @item gnus-score-below-mark
9554 @vindex gnus-score-below-mark
9555 Mark (in the third column) used for articles with a score below the
9556 default.  Default is @samp{-}.
9557
9558 @item gnus-score-find-score-files-function
9559 @vindex gnus-score-find-score-files-function
9560 Function used to find score files for the current group.  This function
9561 is called with the name of the group as the argument. 
9562
9563 Predefined functions available are:
9564 @table @code
9565
9566 @item gnus-score-find-single
9567 @findex gnus-score-find-single
9568 Only apply the group's own score file.
9569
9570 @item gnus-score-find-bnews
9571 @findex gnus-score-find-bnews
9572 Apply all score files that match, using bnews syntax.  This is the
9573 default.  For instance, if the current group is @samp{gnu.emacs.gnus},
9574 @file{all.emacs.all.SCORE}, @file{not.alt.all.SCORE} and
9575 @file{gnu.all.SCORE} would all apply.  In short, the instances of
9576 @samp{all} in the score file names are translated into @samp{.*}, and
9577 then a regexp match is done.
9578
9579 This means that if you have some score entries that you want to apply to
9580 all groups, then you put those entries in the @file{all.SCORE} file. 
9581
9582 @item gnus-score-find-hierarchical
9583 @findex gnus-score-find-hierarchical
9584 Apply all score files from all the parent groups.  This means that you
9585 can't have score files like @file{all.SCORE} or @file{all.emacs.SCORE},
9586 but you can have @file{SCORE},  @file{comp.SCORE} and
9587 @file{comp.emacs.SCORE}. 
9588
9589 @end table
9590 This variable can also be a list of functions.  In that case, all these
9591 functions will be called, and all the returned lists of score files will
9592 be applied.  These functions can also return lists of score alists
9593 directly.  In that case, the functions that return these non-file score
9594 alists should probably be placed before the ``real'' score file
9595 functions, to ensure that the last score file returned is the local
9596 score file.  Phu.
9597
9598 @item gnus-score-expiry-days
9599 @vindex gnus-score-expiry-days
9600 This variable says how many days should pass before an unused score file
9601 entry is expired.  If this variable is @code{nil}, no score file entries
9602 are expired.  It's 7 by default.
9603
9604 @item gnus-update-score-entry-dates
9605 @vindex gnus-update-score-entry-dates
9606 If this variable is non-@code{nil}, matching score entries will have
9607 their dates updated.  (This is how Gnus controls expiry---all
9608 non-matching entries will become too old while matching entries will
9609 stay fresh and young.)  However, if you set this variable to @code{nil},
9610 even matching entries will grow old and will have to face that oh-so
9611 grim reaper.  
9612
9613 @item gnus-score-after-write-file-function
9614 @vindex gnus-score-after-write-file-function
9615 Function called with the name of the score file just written.
9616
9617 @end table
9618
9619
9620 @node Score File Format
9621 @section Score File Format
9622 @cindex score file format
9623
9624 A score file is an @code{emacs-lisp} file that normally contains just a
9625 single form.  Casual users are not expected to edit these files;
9626 everything can be changed from the summary buffer.
9627
9628 Anyway, if you'd like to dig into it yourself, here's an example:
9629
9630 @lisp
9631 (("from"
9632   ("Lars Ingebrigtsen" -10000)
9633   ("Per Abrahamsen")
9634   ("larsi\\|lmi" -50000 nil R))
9635  ("subject"
9636   ("Ding is Badd" nil 728373))
9637  ("xref"
9638   ("alt.politics" -1000 728372 s))
9639  ("lines"
9640   (2 -100 nil <))
9641  (mark 0)
9642  (expunge -1000)
9643  (mark-and-expunge -10)
9644  (read-only nil)
9645  (orphan -10)
9646  (adapt t)
9647  (files "/hom/larsi/News/gnu.SCORE")
9648  (exclude-files "all.SCORE")
9649  (local (gnus-newsgroup-auto-expire t)
9650         (gnus-summary-make-false-root 'empty))
9651  (eval (ding)))
9652 @end lisp
9653
9654 This example demonstrates absolutely everything about a score file. 
9655
9656 Even though this looks much like lisp code, nothing here is actually
9657 @code{eval}ed.  The lisp reader is used to read this form, though, so it
9658 has to be legal syntactically, if not semantically.
9659
9660 Six keys are supported by this alist:
9661
9662 @table @code
9663
9664 @item STRING
9665 If the key is a string, it is the name of the header to perform the
9666 match on.  Scoring can only be performed on these eight headers:
9667 @code{From}, @code{Subject}, @code{References}, @code{Message-ID},
9668 @code{Xref}, @code{Lines}, @code{Chars} and @code{Date}.  In addition to
9669 these headers, there are three strings to tell Gnus to fetch the entire
9670 article and do the match on larger parts of the article: @code{Body}
9671 will perform the match on the body of the article, @code{Head} will
9672 perform the match on the head of the article, and @code{All} will
9673 perform the match on the entire article.  Note that using any of these
9674 last three keys will slow down group entry @emph{considerably}.  The
9675 final ``header'' you can score on is @code{Followup}.  These score
9676 entries will result in new score entries being added for all follow-ups
9677 to articles that matches these score entries.
9678
9679 Following this key is a arbitrary number of score entries, where each
9680 score entry has one to four elements.
9681 @enumerate
9682
9683 @item 
9684 The first element is the @dfn{match element}.  On most headers this will
9685 be a string, but on the Lines and Chars headers, this must be an
9686 integer. 
9687
9688 @item 
9689 If the second element is present, it should be a number---the @dfn{score
9690 element}.  This number should be an integer in the neginf to posinf
9691 interval.  This number is added to the score of the article if the match
9692 is successful.  If this element is not present, the
9693 @code{gnus-score-interactive-default-score} number will be used
9694 instead.  This is 1000 by default.
9695
9696 @item 
9697 If the third element is present, it should be a number---the @dfn{date
9698 element}.  This date says when the last time this score entry matched,
9699 which provides a mechanism for expiring the score entries.  It this
9700 element is not present, the score entry is permanent.  The date is
9701 represented by the number of days since December 31, 1 ce.
9702
9703 @item 
9704 If the fourth element is present, it should be a symbol---the @dfn{type
9705 element}.  This element specifies what function should be used to see
9706 whether this score entry matches the article.  What match types that can
9707 be used depends on what header you wish to perform the match on.
9708 @table @dfn
9709
9710 @item From, Subject, References, Xref, Message-ID
9711 For most header types, there are the @code{r} and @code{R} (regexp) as
9712 well as @code{s} and @code{S} (substring) types and @code{e} and
9713 @code{E} (exact match) types.  If this element is not present, Gnus will
9714 assume that substring matching should be used.  @code{R} and @code{S}
9715 differ from the other two in that the matches will be done in a
9716 case-sensitive manner.  All these one-letter types are really just
9717 abbreviations for the @code{regexp}, @code{string} and @code{exact}
9718 types, which you can use instead, if you feel like.
9719
9720 @item Lines, Chars
9721 These two headers use different match types: @code{<}, @code{>},
9722 @code{=}, @code{>=} and @code{<=}.
9723
9724 @item Date
9725 For the Date header we have three match types: @code{before}, @code{at}
9726 and @code{after}.  I can't really imagine this ever being useful, but,
9727 like, it would feel kinda silly not to provide this function.  Just in
9728 case.  You never know.  Better safe than sorry.  Once burnt, twice shy.
9729 Don't judge a book by its cover.  Never not have sex on a first date.
9730 (I have been told that at least one person, and I quote, ``found this
9731 function indispensable'', however.)
9732
9733 @item Head, Body, All
9734 These three match keys use the same match types as the @code{From} (etc)
9735 header uses.
9736
9737 @item Followup
9738 This match key will add a score entry on all articles that followup to
9739 some author.  Uses the same match types as the @code{From} header uses.
9740
9741 @item Thread
9742 This match key will add a score entry on all articles that are part of
9743 a thread.  Uses the same match types as the @code{References} header
9744 uses.
9745 @end table
9746 @end enumerate
9747
9748 @item mark
9749 The value of this entry should be a number.  Any articles with a score
9750 lower than this number will be marked as read.
9751
9752 @item expunge
9753 The value of this entry should be a number.  Any articles with a score
9754 lower than this number will be removed from the summary buffer.
9755
9756 @item mark-and-expunge
9757 The value of this entry should be a number.  Any articles with a score
9758 lower than this number will be marked as read and removed from the
9759 summary buffer.
9760
9761 @item thread-mark-and-expunge
9762 The value of this entry should be a number.  All articles that belong to
9763 a thread that has a total score below this number will be marked as read
9764 and removed from the summary buffer.  @code{gnus-thread-score-function}
9765 says how to compute the total score for a thread.
9766
9767 @item files
9768 The value of this entry should be any number of file names.  These files
9769 are assumed to be score files as well, and will be loaded the same way
9770 this one was.
9771
9772 @item exclude-files
9773 The clue of this entry should be any number of files.  This files will
9774 not be loaded, even though they would normally be so, for some reason or
9775 other. 
9776
9777 @item eval
9778 The value of this entry will be @code{eval}el.  This element will be
9779 ignored when handling global score files. 
9780
9781 @item read-only
9782 Read-only score files will not be updated or saved.  Global score files
9783 should feature this atom (@pxref{Global Score Files}).
9784
9785 @item orphan
9786 The value of this entry should be a number.  Articles that do not have
9787 parents will get this number added to their scores.  Imagine you follow
9788 some high-volume newsgroup, like @samp{comp.lang.c}.  Most likely you
9789 will only follow a few of the threads, also want to see any new threads.
9790
9791 You can do this with the following two score file entries:
9792
9793 @example
9794         (orphan -500)
9795         (mark-and-expunge -100)
9796 @end example
9797
9798 When you enter the group the first time, you will only see the new
9799 threads.  You then raise the score of the threads that you find
9800 interesting (with @kbd{I T} or @kbd{I S}), and ignore (@kbd{C y}) the
9801 rest.  Next time you enter the group, you will see new articles in the
9802 interesting threads, plus any new threads.
9803
9804 I.e.---the orphan score atom is for high-volume groups where there
9805 exist a few interesting threads which can't be found automatically by
9806 ordinary scoring rules.
9807
9808 @item adapt
9809 This entry controls the adaptive scoring.  If it is @code{t}, the
9810 default adaptive scoring rules will be used.  If it is @code{ignore}, no
9811 adaptive scoring will be performed on this group.  If it is a list, this
9812 list will be used as the adaptive scoring rules.  If it isn't present,
9813 or is something other than @code{t} or @code{ignore}, the default
9814 adaptive scoring rules will be used.  If you want to use adaptive
9815 scoring on most groups, you'd set @code{gnus-use-adaptive-scoring} to
9816 @code{t}, and insert an @code{(adapt ignore)} in the groups where you do
9817 not want adaptive scoring.  If you only want adaptive scoring in a few
9818 groups, you'd set @code{gnus-use-adaptive-scoring} to @code{nil}, and
9819 insert @code{(adapt t)} in the score files of the groups where you want
9820 it. 
9821
9822 @item adapt-file
9823 All adaptive score entries will go to the file named by this entry.  It
9824 will also be applied when entering the group.  This atom might be handy
9825 if you want to adapt on several groups at once, using the same adaptive
9826 file for a number of groups.
9827
9828 @item local
9829 @cindex local variables
9830 The value of this entry should be a list of @code{(VAR VALUE)} pairs.
9831 Each @var{var} will be made buffer-local to the current summary buffer,
9832 and set to the value specified.  This is a convenient, if somewhat
9833 strange, way of setting variables in some groups if you don't like hooks
9834 much.
9835 @end table
9836
9837
9838 @node Score File Editing
9839 @section Score File Editing
9840
9841 You normally enter all scoring commands from the summary buffer, but you
9842 might feel the urge to edit them by hand as well, so we've supplied you
9843 with a mode for that.  
9844
9845 It's simply a slightly customized @code{emacs-lisp} mode, with these
9846 additional commands:
9847
9848 @table @kbd
9849
9850 @item C-c C-c
9851 @kindex C-c C-c (Score)
9852 @findex gnus-score-edit-done
9853 Save the changes you have made and return to the summary buffer
9854 (@code{gnus-score-edit-done}). 
9855
9856 @item C-c C-d
9857 @kindex C-c C-d (Score)
9858 @findex gnus-score-edit-insert-date
9859 Insert the current date in numerical format
9860 (@code{gnus-score-edit-insert-date}).  This is really the day number, if
9861 you were wondering.
9862
9863 @item C-c C-p
9864 @kindex C-c C-p (Score)
9865 @findex gnus-score-pretty-print
9866 The adaptive score files are saved in an unformatted fashion.  If you
9867 intend to read one of these files, you want to @dfn{pretty print} it
9868 first.  This command (@code{gnus-score-pretty-print}) does that for
9869 you. 
9870
9871 @end table
9872
9873 Type @kbd{M-x gnus-score-mode} to use this mode.
9874
9875 @vindex gnus-score-mode-hook
9876 @code{gnus-score-menu-hook} is run in score mode buffers.
9877
9878 In the summary buffer you can use commands like @kbd{V f} and @kbd{V
9879 e} to begin editing score files.
9880
9881
9882 @node Adaptive Scoring
9883 @section Adaptive Scoring
9884 @cindex adaptive scoring
9885
9886 If all this scoring is getting you down, Gnus has a way of making it all
9887 happen automatically---as if by magic.  Or rather, as if by artificial
9888 stupidity, to be precise.
9889
9890 @vindex gnus-use-adaptive-scoring
9891 When you read an article, or mark an article as read, or kill an
9892 article, you leave marks behind.  On exit from the group, Gnus can sniff
9893 these marks and add score elements depending on what marks it finds.
9894 You turn on this ability by setting @code{gnus-use-adaptive-scoring} to
9895 @code{t}. 
9896
9897 @vindex gnus-default-adaptive-score-alist
9898 To give you complete control over the scoring process, you can customize
9899 the @code{gnus-default-adaptive-score-alist} variable.  For instance, it
9900 might look something like this:
9901
9902 @lisp
9903 (defvar gnus-default-adaptive-score-alist
9904   '((gnus-unread-mark)
9905     (gnus-ticked-mark (from 4))
9906     (gnus-dormant-mark (from 5))
9907     (gnus-del-mark (from -4) (subject -1))
9908     (gnus-read-mark (from 4) (subject 2))
9909     (gnus-expirable-mark (from -1) (subject -1))
9910     (gnus-killed-mark (from -1) (subject -3))
9911     (gnus-kill-file-mark)
9912     (gnus-ancient-mark)
9913     (gnus-low-score-mark)
9914     (gnus-catchup-mark (from -1) (subject -1))))
9915 @end lisp
9916
9917 As you see, each element in this alist has a mark as a key (either a
9918 variable name or a ``real'' mark---a character).  Following this key is
9919 a arbitrary number of header/score pairs.  If there are no header/score
9920 pairs following the key, no adaptive scoring will be done on articles
9921 that have that key as the article mark.  For instance, articles with
9922 @code{gnus-unread-mark} in the example above will not get adaptive score
9923 entries.
9924
9925 Each article can have only one mark, so just a single of these rules
9926 will be applied to each article.
9927
9928 To take @code{gnus-del-mark} as an example---this alist says that all
9929 articles that have that mark (i.e., are marked with @samp{D}) will have a
9930 score entry added to lower based on the @code{From} header by -4, and
9931 lowered by @code{Subject} by -1.  Change this to fit your prejudices. 
9932
9933 If you have marked 10 articles with the same subject with
9934 @code{gnus-del-mark}, the rule for that mark will be applied ten times.
9935 That means that that subject will get a score of ten times -1, which
9936 should be, unless I'm much mistaken, -10.
9937
9938 The headers you can score on are @code{from}, @code{subject},
9939 @code{message-id}, @code{references}, @code{xref}, @code{lines},
9940 @code{chars} and @code{date}.  In addition, you can score on
9941 @code{followup}, which will create an adaptive score entry that matches
9942 on the @code{References} header using the @code{Message-ID} of the
9943 current article, thereby matching the following thread.  
9944
9945 You can also score on @code{thread}, which will try to score all
9946 articles that appear in a thread.  @code{thread} matches uses a
9947 @code{Message-ID} to match on the @code{References} header of the
9948 article.  If the match is made, the @code{Message-ID} of the article is
9949 added to the @code{thread} rule.  (Think about it.  I'd recommend two
9950 aspirins afterwards.)
9951
9952 If you use this scheme, you should set the score file atom @code{mark}
9953 to something small---like -300, perhaps, to avoid having small random
9954 changes result in articles getting marked as read.
9955
9956 After using adaptive scoring for a week or so, Gnus should start to
9957 become properly trained and enhance the authors you like best, and kill
9958 the authors you like least, without you having to say so explicitly. 
9959
9960 You can control what groups the adaptive scoring is to be performed on
9961 by using the score files (@pxref{Score File Format}).  This will also
9962 let you use different rules in different groups.
9963
9964 @vindex gnus-adaptive-file-suffix
9965 The adaptive score entries will be put into a file where the name is the
9966 group name with @code{gnus-adaptive-file-suffix} appended.  The default
9967 is @samp{ADAPT}.
9968
9969 @vindex gnus-score-exact-adapt-limit
9970 When doing adaptive scoring, substring or fuzzy matching would probably
9971 give you the best results in most cases.  However, if the header one
9972 matches is short, the possibility for false positives is great, so if
9973 the length of the match is less than
9974 @code{gnus-score-exact-adapt-limit}, exact matching will be used.  If
9975 this variable is @code{nil}, exact matching will always be used to avoid
9976 this problem.
9977
9978
9979 @node Home Score File
9980 @section Home Score File
9981
9982 The score file where new score file entries will go is calle the
9983 @dfn{home score file}.  This is normally (and by default) the score file
9984 for the group itself.  For instance, the home score file for
9985 @samp{gnu.emacs.gnus} is @file{gnu.emacs.gnus.SCORE}.
9986
9987 However, this may not be what you want.  It is often convenient to share
9988 a common home score file among many groups---all @samp{emacs} groups
9989 could perhaps use the same home score file.
9990
9991 @vindex gnus-home-score-file
9992 The variable that controls this is @code{gnus-home-score-file}.  It can
9993 be:
9994
9995 @enumerate
9996 @item
9997 A string.  Then this file will be used as the home score file for all
9998 groups. 
9999
10000 @item
10001 A function. The result of this function will be used as the home score
10002 file.  The function will be called with the name of the group as the
10003 parameter. 
10004
10005 @item
10006 A list.  The elements in this list can be:
10007
10008 @enumerate
10009 @item 
10010 @var{(regexp . file-name)}.  If the @var{regexp} matches the group name,
10011 the @var{file-name} will will be used as the home score file.
10012
10013 @item 
10014 A function. If the function returns non-nil, the result will be used as
10015 the home score file.
10016
10017 @item 
10018 A string.  Use the string as the home score file.
10019 @end enumerate
10020
10021 The list will be traversed from the beginning towards the end looking
10022 for matches.
10023
10024 @end enumerate
10025
10026 So, if you want to use just a single score file, you could say:
10027
10028 @lisp
10029 (setq gnus-home-score-file
10030       "my-total-score-file.SCORE")
10031 @end lisp
10032
10033 If you want to use @file{gnu.SCORE} for all @samp{gnu} groups and
10034 @file{rec.SCORE} for all @samp{rec} groups (and so on), you can say:
10035
10036 @lisp
10037 (setq gnus-home-score-file
10038       'gnus-hierarchial-home-score-file)
10039 @end lisp
10040
10041 This is a ready-made function provided for your convenience.
10042
10043 If you want to have one score file for the @samp{emacs} groups and
10044 another for the @samp{comp} groups, while letting all other groups use
10045 their own home score files:
10046
10047 @lisp
10048 (setq gnus-home-score-file
10049       ;; All groups that match the regexp "\\.emacs"
10050       '("\\.emacs" . "emacs.SCORE")
10051       ;; All the comp groups in one score file
10052        ("^comp" . "comp.SCORE"))
10053 @end lisp
10054    
10055 @vindex gnus-home-adapt-file
10056 @code{gnus-home-adapt-file} works exactly the same way as
10057 @code{gnus-home-score-file}, but says what the home adaptive score file
10058 is instead.  All new adaptive file entries will go into the file
10059 specified by this variable, and the same syntax is allowed.
10060
10061 In addition to using @code{gnus-home-score-file} and
10062 @code{gnus-home-adapt-file}, you can also use group parameters
10063 (@pxref{Group Parameters}) and topic parameters (@pxref{Topic
10064 Parameters}) to achieve much the same.  Group and topic parameters take
10065 presedence over this variable.
10066
10067
10068 @node Followups To Yourself
10069 @section Followups To Yourself
10070
10071 Gnus offers two commands for picking out the @code{Message-ID} header in
10072 the current buffer.  Gnus will then add a score rule that scores using
10073 this @code{Message-ID} on the @code{References} header of other
10074 articles.  This will, in effect, increase the score of all articles that
10075 respond to the article in the current buffer.  Quite useful if you want
10076 to easily note when people answer what you've said.
10077
10078 @table @code
10079
10080 @item gnus-score-followup-article
10081 @findex gnus-score-followup-article
10082 This will add a score to articles that directly follow up your own
10083 article. 
10084
10085 @item gnus-score-followup-thread
10086 @findex gnus-score-followup-thread
10087 This will add a score to all articles that appear in a thread ``below''
10088 your own article.
10089 @end table
10090
10091 @vindex gnus-inews-article-hook
10092 These two functions are both primarily meant to be used in hooks like
10093 @code{message-send-hook}.  
10094
10095 @node Scoring Tips
10096 @section Scoring Tips
10097 @cindex scoring tips
10098
10099 @table @dfn
10100
10101 @item Crossposts
10102 @cindex crossposts
10103 @cindex scoring crossposts
10104 If you want to lower the score of crossposts, the line to match on is
10105 the @code{Xref} header.
10106 @lisp
10107 ("xref" (" talk.politics.misc:" -1000))
10108 @end lisp
10109
10110 @item Multiple crossposts
10111 If you want to lower the score of articles that have been crossposted to
10112 more than, say, 3 groups:
10113 @lisp
10114 ("xref" ("[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+" -1000 nil r))
10115 @end lisp
10116
10117 @item Matching on the body
10118 This is generally not a very good idea---it takes a very long time.
10119 Gnus actually has to fetch each individual article from the server.  But
10120 you might want to anyway, I guess.  Even though there are three match
10121 keys (@code{Head}, @code{Body} and @code{All}), you should choose one
10122 and stick with it in each score file.  If you use any two, each article
10123 will be fetched @emph{twice}.  If you want to match a bit on the
10124 @code{Head} and a bit on the @code{Body}, just use @code{All} for all
10125 the matches.  
10126
10127 @item Marking as read
10128 You will probably want to mark articles that has a score below a certain
10129 number as read.  This is most easily achieved by putting the following
10130 in your @file{all.SCORE} file:
10131 @lisp
10132 ((mark -100))
10133 @end lisp
10134 You may also consider doing something similar with @code{expunge}.  
10135
10136 @item Negated character classes
10137 If you say stuff like @code{[^abcd]*}, you may get unexpected results.
10138 That will match newlines, which might lead to, well, The Unknown.  Say
10139 @code{[^abcd\n]*} instead.
10140 @end table
10141
10142
10143 @node Reverse Scoring
10144 @section Reverse Scoring
10145 @cindex reverse scoring
10146
10147 If you want to keep just articles that have @samp{Sex with Emacs} in the
10148 subject header, and expunge all other articles, you could put something
10149 like this in your score file:
10150
10151 @lisp
10152 (("subject"
10153   ("Sex with Emacs" 2))
10154  (mark 1)
10155  (expunge 1))
10156 @end lisp
10157
10158 So, you raise all articles that match @samp{Sex with Emacs} and mark the
10159 rest as read, and expunge them to boot.
10160
10161
10162 @node Global Score Files
10163 @section Global Score Files
10164 @cindex global score files
10165
10166 Sure, other newsreaders have ``global kill files''.  These are usually
10167 nothing more than a single kill file that applies to all groups, stored
10168 in the user's home directory.  Bah!  Puny, weak newsreaders!
10169
10170 What I'm talking about here are Global Score Files.  Score files from
10171 all over the world, from users everywhere, uniting all nations in one
10172 big, happy score file union!  Ange-score!  New and untested!
10173
10174 @vindex gnus-global-score-files
10175 All you have to do to use other people's score files is to set the
10176 @code{gnus-global-score-files} variable.  One entry for each score file,
10177 or each score file directory.  Gnus will decide by itself what score
10178 files are applicable to which group.
10179
10180 Say you want to use all score files in the
10181 @file{/ftp@@ftp.some-where:/pub/score} directory and the single score
10182 file @file{/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE}:
10183
10184 @lisp
10185 (setq gnus-global-score-files
10186       '("/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE"
10187         "/ftp@@ftp.some-where:/pub/score/"))
10188 @end lisp
10189
10190 @findex gnus-score-search-global-directories
10191 Simple, eh?  Directory names must end with a @samp{/}.  These
10192 directories are typically scanned only once during each Gnus session.
10193 If you feel the need to manually re-scan the remote directories, you can
10194 use the @code{gnus-score-search-global-directories} command.
10195
10196 Note that, at present, using this option will slow down group entry
10197 somewhat.  (That is---a lot.)
10198
10199 If you want to start maintaining score files for other people to use,
10200 just put your score file up for anonymous ftp and announce it to the
10201 world.  Become a retro-moderator!  Participate in the retro-moderator
10202 wars sure to ensue, where retro-moderators battle it out for the
10203 sympathy of the people, luring them to use their score files on false
10204 premises!  Yay!  The net is saved!
10205
10206 Here are some tips for the would-be retro-moderator, off the top of my
10207 head: 
10208
10209 @itemize @bullet
10210
10211 @item 
10212 Articles that are heavily crossposted are probably junk. 
10213 @item
10214 To lower a single inappropriate article, lower by @code{Message-ID}.
10215 @item
10216 Particularly brilliant authors can be raised on a permanent basis. 
10217 @item
10218 Authors that repeatedly post off-charter for the group can safely be
10219 lowered out of existence.
10220 @item
10221 Set the @code{mark} and @code{expunge} atoms to obliterate the nastiest
10222 articles completely.
10223
10224 @item 
10225 Use expiring score entries to keep the size of the file down.  You
10226 should probably have a long expiry period, though, as some sites keep
10227 old articles for a long time.
10228 @end itemize
10229
10230 ... I wonder whether other newsreaders will support global score files
10231 in the future.  @emph{Snicker}.  Yup, any day now, newsreaders like Blue
10232 Wave, xrn and 1stReader are bound to implement scoring.  Should we start
10233 holding our breath yet?
10234
10235
10236 @node Kill Files
10237 @section Kill Files
10238 @cindex kill files
10239
10240 Gnus still supports those pesky old kill files.  In fact, the kill file
10241 entries can now be expiring, which is something I wrote before Daniel
10242 Quinlan thought of doing score files, so I've left the code in there.
10243
10244 In short, kill processing is a lot slower (and I do mean @emph{a lot})
10245 than score processing, so it might be a good idea to rewrite your kill
10246 files into score files.
10247
10248 Anyway, a kill file is a normal @code{emacs-lisp} file.  You can put any
10249 forms into this file, which means that you can use kill files as some
10250 sort of primitive hook function to be run on group entry, even though
10251 that isn't a very good idea.
10252
10253 XCNormal kill files look like this:
10254
10255 @lisp
10256 (gnus-kill "From" "Lars Ingebrigtsen")
10257 (gnus-kill "Subject" "ding")
10258 (gnus-expunge "X")
10259 @end lisp
10260
10261 This will mark every article written by me as read, and remove them from
10262 the summary buffer.  Very useful, you'll agree.
10263
10264 Other programs use a totally different kill file syntax.  If Gnus
10265 encounters what looks like a @code{rn} kill file, it will take a stab at
10266 interpreting it. 
10267
10268 Two summary functions for editing a GNUS kill file:
10269
10270 @table @kbd
10271
10272 @item M-k
10273 @kindex M-k (Summary)
10274 @findex gnus-summary-edit-local-kill
10275 Edit this group's kill file (@code{gnus-summary-edit-local-kill}).
10276
10277 @item M-K
10278 @kindex M-K (Summary)
10279 @findex gnus-summary-edit-global-kill
10280 Edit the general kill file (@code{gnus-summary-edit-global-kill}).
10281 @end table
10282
10283 Two group mode functions for editing the kill files:
10284
10285 @table @kbd
10286
10287 @item M-k
10288 @kindex M-k (Group)
10289 @findex gnus-group-edit-local-kill
10290 Edit this group's kill file (@code{gnus-group-edit-local-kill}).
10291
10292 @item M-K
10293 @kindex M-K (Group)
10294 @findex gnus-group-edit-global-kill
10295 Edit the general kill file (@code{gnus-group-edit-global-kill}).
10296 @end table
10297
10298 Kill file variables:
10299
10300 @table @code
10301 @item gnus-kill-file-name
10302 @vindex gnus-kill-file-name
10303 A kill file for the group @samp{soc.motss} is normally called
10304 @file{soc.motss.KILL}.  The suffix appended to the group name to get
10305 this file name is detailed by the @code{gnus-kill-file-name} variable.
10306 The ``global'' kill file (not in the score file sense of ``global'', of
10307 course) is called just @file{KILL}.
10308
10309 @vindex gnus-kill-save-kill-file
10310 @item gnus-kill-save-kill-file
10311 If this variable is non-@code{nil}, Gnus will save the
10312 kill file after processing, which is necessary if you use expiring
10313 kills. 
10314
10315 @item gnus-apply-kill-hook
10316 @vindex gnus-apply-kill-hook
10317 @findex gnus-apply-kill-file-unless-scored
10318 @findex gnus-apply-kill-file
10319 A hook called to apply kill files to a group.  It is
10320 @code{(gnus-apply-kill-file)} by default.  If you want to ignore the
10321 kill file if you have a score file for the same group, you can set this
10322 hook to @code{(gnus-apply-kill-file-unless-scored)}.  If you don't want
10323 kill files to be processed, you should set this variable to @code{nil}.
10324
10325 @item gnus-kill-file-mode-hook
10326 @vindex gnus-kill-file-mode-hook
10327 A hook called in kill-file mode buffers.
10328
10329 @end table
10330
10331
10332 @node GroupLens
10333 @section GroupLens
10334 @cindex GroupLens
10335
10336 GroupLens is a collaborative filtering system that helps you work
10337 together with other people to find the quality news articles out of the
10338 huge volume of news articles generated every day.
10339
10340 To accomplish this the GroupLens system combines your opinions about
10341 articles you have already read with the opinions of others who have done
10342 likewise and gives you a personalized prediction for each unread news
10343 article.  Think of GroupLens as a matchmaker.  GroupLens watches how you
10344 rate articles, and finds other people that rate articles the same way.
10345 Once it has found for you some people you agree with it tells you, in
10346 the form of a prediction, what they thought of the article.  You can use
10347 this prediction to help you decide whether or not you want to read the
10348 article.
10349
10350 @menu
10351 * Using GroupLens::          How to make Gnus use GroupLens.
10352 * Rating Articles::          Letting GroupLens know how you rate articles.
10353 * Displaying Predictions::   Displaying predictions given by GroupLens.
10354 * GroupLens Variables::      Customizing GroupLens.
10355 @end menu
10356
10357
10358 @node Using GroupLens
10359 @subsection Using GroupLens
10360
10361 To use GroupLens you must register a pseudonym with your local Better
10362 Bit Bureau (BBB).  At the moment the only better bit in town is at
10363 @samp{http://www.cs.umn.edu/Research/GroupLens/bbb.html}.
10364
10365 Once you have registered you'll need to set a couple of variables.
10366
10367 @table @code
10368
10369 @item gnus-use-grouplens
10370 @vindex gnus-use-grouplens
10371 Setting this variable to a non-@code{nil} value will make Gnus hook into
10372 all the relevant GroupLens functions.
10373
10374 @item grouplens-pseudonym
10375 @vindex grouplens-pseudonym
10376 This variable should be set to the pseudonum you got when registering
10377 with the Better Bit Bureau.
10378
10379 @item grouplens-newsgroups
10380 @vindex grouplens-newsgroups
10381 A list of groups that you want to get GroupLens predictions for. 
10382
10383 @end table
10384
10385 Thats the minimum of what you need to get up and running with GroupLens.
10386 Once you've registered, GroupLens will start giving you scores for
10387 articles based on the average of what other people think.  But, to get
10388 the real benefit of GroupLens you need to start rating articles
10389 yourself.  Then the scores GroupLens gives you will be personalized for
10390 you, based on how the people you usually agree with have already rated.
10391
10392
10393 @node Rating Articles
10394 @subsection Rating Articles
10395
10396 In GroupLens, an article is rated on a scale from 1 to 5, inclusive.
10397 Where 1 means something like this article is a waste of bandwidth and 5
10398 means that the article was really good.  The basic question to ask
10399 yourself is, "on a scale from 1 to 5 would I like to see more articles
10400 like this one?"
10401
10402 There are four ways to enter a rating for an article in GroupLens.
10403
10404 @table @kbd
10405
10406 @item r
10407 @kindex r (GroupLens)
10408 @findex bbb-summary-rate-article
10409 This function will prompt you for a rating on a scale of one to five.
10410
10411 @item k
10412 @kindex k (GroupLens)
10413 @findex grouplens-score-thread
10414 This function will prompt you for a rating, and rate all the articles in
10415 the thread.  This is really useful for some of those long running giant
10416 threads in rec.humor.
10417
10418 @end table
10419
10420 The next two commands, @kbd{n} and @kbd{,} take a numerical prefix to be
10421 the score of the article you're reading.
10422
10423 @table @kbd
10424
10425 @item 1-5 n
10426 @kindex n (GroupLens)
10427 @findex grouplens-next-unread-article
10428 Rate the article and go to the next unread article.
10429
10430 @item 1-5 ,
10431 @kindex , (GroupLens)
10432 @findex grouplens-best-unread-article
10433 Rate the article and go to the next unread article with the highest score.
10434
10435 @end table
10436
10437 If you want to give the current article a score of 4 and then go to the
10438 next article, just type @kbd{4 n}.
10439
10440
10441 @node Displaying Predictions
10442 @subsection Displaying Predictions
10443
10444 GroupLens makes a prediction for you about how much you will like a
10445 news article.  The predictions from GroupLens are on a scale from 1 to
10446 5, where 1 is the worst and 5 is the best.  You can use the predictions
10447 from GroupLens in one of three ways controlled by the variable
10448 @code{gnus-grouplens-override-scoring}.
10449
10450 @vindex gnus-grouplens-override-scoring
10451 There are three ways to display predictions in grouplens.  You may
10452 choose to have the GroupLens scores contribute to, or override the
10453 regular gnus scoring mechanism. override is the default; however, some
10454 people prefer to see the Gnus scores plus the grouplens scores.  To get
10455 the separate scoring behavior you need to set
10456 @code{gnus-grouplens-override-scoring} to @code{'separate}.  To have the
10457 GroupLens predictions combined with the grouplens scores set it to
10458 @code{'override} and to combine the scores set
10459 @code{gnus-grouplens-override-scoring} to @code{'combine}.  When you use
10460 the combine option you will also want to set the values for
10461 @code{grouplens-prediction-offset} and
10462 @code{grouplens-score-scale-factor}.
10463
10464 @vindex grouplens-prediction-display
10465 In either case, GroupLens gives you a few choices for how you would like
10466 to see your predictions displayed.  The display of predictions is
10467 controlled by the @code{grouplens-prediction-display} variable.
10468
10469 The following are legal values for that variable.
10470
10471 @table @code
10472 @item prediction-spot
10473 The higher the prediction, the further to the right an @samp{*} is
10474 displayed. 
10475
10476 @item confidence-interval
10477 A numeric confidence interval.
10478
10479 @item prediction-bar
10480 The higher the prediction, the longer the bar.
10481
10482 @item confidence-bar
10483 Numerical confidence.
10484
10485 @item confidence-spot
10486 The spot gets bigger with more confidence.
10487
10488 @item prediction-num
10489 Plain-old numeric value.
10490
10491 @item confidence-plus-minus
10492 Prediction +/i confidence.
10493
10494 @end table
10495
10496
10497 @node GroupLens Variables
10498 @subsection GroupLens Variables
10499
10500 @table @code
10501
10502 @item gnus-summary-grouplens-line-format
10503 The summary line format used in summary buffers that are GroupLens
10504 enhanced.  It accepts the same specs as the normal summary line format
10505 (@pxref{Summary Buffer Lines}).  The default is
10506 @samp{%U%R%z%l%I%(%[%4L: %-20,20n%]%) %s\n}.
10507
10508 @item grouplens-bbb-host
10509 Host running the bbbd server.  The default is
10510 @samp{grouplens.cs.umn.edu}. 
10511
10512 @item grouplens-bbb-port
10513 Port of the host running the bbbd server.  The default is 9000.
10514
10515 @item grouplens-score-offset
10516 Offset the prediction by this value.  In other words, subtract the
10517 prediction value by this number to arrive at the effective score.  The
10518 default is 0.
10519
10520 @item grouplens-score-scale-factor 
10521 This variable allows the user to magnify the effect of GroupLens scores.
10522 The scale factor is applied after the offset.  The default is 1.
10523
10524 @end table
10525
10526
10527 @node Advanced Scoring
10528 @section Advanced Scoring
10529
10530 Scoring on Subjects and From headers is nice enough, but what if you're
10531 really interested in what a person has to say only when she's talking
10532 about a particular subject?  Or what about if you really don't want to
10533 read what person A has to say when she's following up to person B, but
10534 want to read what she says when she's following up to person C?
10535
10536 By using advanced scoring rules you may create arbitrarily complex
10537 scoring patterns.
10538
10539 @menu
10540 * Advanced Scoring Syntax::     A definition.
10541 * Advanced Scoring Examples::   What they look like.
10542 * Advanced Scoring Tips::       Getting the most out of it.
10543 @end menu
10544
10545
10546 @node Advanced Scoring Syntax
10547 @subsection Advanced Scoring Syntax
10548
10549 Ordinary scoring rules have a string as the first element in the rule.
10550 Advanced scoring rules have a list as the first element.  The second
10551 element is the score to be applied if the first element evaluated to a
10552 non-@code{nil} value.
10553
10554 These lists may consist of three logical operators, one redirection
10555 operator, and various match operators.
10556
10557 Logical operators:
10558
10559 @table @code
10560 @item &
10561 @itemx and
10562 This logical operator will evaluate each of its arguments until it finds
10563 one that evaluates to @code{false}, and then it'll stop.  If all arguments
10564 evaluate to @code{true} values, then this operator will return
10565 @code{true}. 
10566
10567 @item |
10568 @itemx or
10569 This logical operator will evaluate each of its arguments until it finds
10570 one that evaluates to @code{true}.  If no arguments are @code{true},
10571 then this operator will return @code{false}.
10572
10573 @item !
10574 @itemx not
10575 @itemx Â¬
10576 This logical operator only takes a single argument.  It returns the
10577 inverse of the value of its argument.
10578
10579 @end table
10580
10581 There is an @dfn{indirection operator} that will make its arguments
10582 apply to the ancenstors of the current article being scored.  For
10583 instance, @code{1-} will make score rules apply to the parent of the
10584 current article.  @code{2-} will make score fules apply to the
10585 grandparent of the current article.  Alternatively, you can write
10586 @code{^^}, where the number of @code{^}s (carets) say how far back into
10587 the ancestry you want to go.
10588
10589 Finally, we have the match operators.  These are the ones that do the
10590 real work.  Match operators are header name strings followed by a match
10591 and a match type.  A typical match operator looks like @samp{("from"
10592 "Lars Ingebrigtsen" s)}.  The header names are the same as when using
10593 simple scoring, and the match types are also the same.
10594
10595
10596 @node Advanced Scoring Examples
10597 @subsection Advanced Scoring Examples
10598
10599 Let's say you want to increase the score of articles written by Lars
10600 when he's talking about Gnus:
10601
10602 @example
10603 ((& 
10604   ("from" "Lars Ingebrigtsen")
10605   ("subject" "Gnus"))
10606  1000)
10607 @end example
10608
10609 Quite simple, huh?
10610
10611 When he writes long articles, he sometimes has something nice to say: 
10612
10613 @example
10614 ((& 
10615   ("from" "Lars Ingebrigtsen")
10616   (|
10617    ("subject" "Gnus")
10618    ("lines" 100 >)))
10619  1000)
10620 @end example
10621
10622 However, when he responds to things written by Reig Eigil Logge, you
10623 really don't want to read what he's written:
10624
10625 @example
10626 ((&
10627   ("from" "Lars Ingebrigtsen")
10628   (1- ("from" "Reig Eigir Logge")))
10629  -100000)
10630 @end example
10631
10632 Everybody that follows up Redmondo when he writes about disappearing
10633 socks should have their scores raised, but only when they talk about
10634 white socks.  However, when Lars talks about socks, it's usually not
10635 very interesting:
10636
10637 @example
10638 ((&
10639   (1-
10640    (&
10641     ("from" "redmondo@@.*no" r)
10642     ("body" "disappearing.*socks" t)))
10643   (! ("from" "Lars Ingebrigtsen"))
10644   ("body" "white.*socks"))
10645  1000)
10646 @end example
10647
10648 The possibilities are endless.
10649
10650
10651 @node Advanced Scoring Tips
10652 @subsection Advanced Scoring Tips
10653
10654 The @code{&} and @code{|} logical operators do short-circuit logic.
10655 That is, they stop processing their arguments when it's clear what the
10656 result of the operation will be.  For instance, if one of the arguments
10657 of an @code{&} evaluates to @code{false}, there's no point in evaluating
10658 the rest of the arguments.  This means that you should put slow matches
10659 (@samp{body}, @code{header}) last and quick matches (@samp{from},
10660 @samp{subject}) first.
10661
10662 The indirection arguments (@code{1-} and so on) will make their
10663 arguments work on previous generations of the thread.  If you say
10664 something like:
10665
10666 @example
10667 ...
10668 (1-
10669  (1-
10670   ("from" "lars")))
10671 ...
10672 @end example
10673
10674 Then that means "score on the from header of the grandparent of the
10675 current article".  An indirection is quite fast, but it's better to say:
10676
10677 @example
10678 (1-
10679  (& 
10680   ("from" "Lars")
10681   ("subject" "Gnus")))
10682 @end example
10683
10684 than it is to say:
10685
10686 @example
10687 (&
10688  (1- ("from" "Lars"))
10689  (1- ("subject" "Gnus")))
10690 @end example
10691
10692
10693
10694 @node Various
10695 @chapter Various
10696
10697 @menu
10698 * Process/Prefix::             A convention used by many treatment commands.
10699 * Interactive::                Making Gnus ask you many questions.
10700 * Formatting Variables::       You can specify what buffers should look like.
10701 * Windows Configuration::      Configuring the Gnus buffer windows.
10702 * Compilation::                How to speed Gnus up.
10703 * Mode Lines::                 Displaying information in the mode lines.
10704 * Highlighting and Menus::     Making buffers look all nice and cozy.
10705 * Buttons::                    Get tendonitis in ten easy steps!
10706 * Daemons::                    Gnus can do things behind your back.
10707 * NoCeM::                      How to avoid spam and other fatty foods.
10708 * Picons::                     How to display pictures of what your reading.
10709 * Various Various::            Things that are really various.
10710 @end menu
10711
10712
10713 @node Process/Prefix
10714 @section Process/Prefix
10715 @cindex process/prefix convention
10716
10717 Many functions, among them functions for moving, decoding and saving
10718 articles, use what is known as the @dfn{Process/Prefix convention}.
10719
10720 This is a method for figuring out what articles that the user wants the
10721 command to be performed on.
10722
10723 It goes like this:
10724
10725 If the numeric prefix is N, perform the operation on the next N
10726 articles, starting with the current one.  If the numeric prefix is
10727 negative, perform the operation on the previous N articles, starting
10728 with the current one.
10729
10730 @vindex transient-mark-mode
10731 If @code{transient-mark-mode} in non-@code{nil} and the region is
10732 active, all articles in the region will be worked upon.
10733
10734 If there is no numeric prefix, but some articles are marked with the
10735 process mark, perform the operation on the articles that are marked with
10736 the process mark.
10737
10738 If there is neither a numeric prefix nor any articles marked with the
10739 process mark, just perform the operation on the current article.
10740
10741 Quite simple, really, but it needs to be made clear so that surprises
10742 are avoided.
10743
10744 @vindex gnus-summary-goto-unread
10745 One thing that seems to shock & horrify lots of people is that, for
10746 instance, @kbd{3 d} does exactly the same as @kbd{d} @kbd{d} @kbd{d}.
10747 Since each @kbd{d} (which marks the current article as read) by default
10748 goes to the next unread article after marking, this means that @kbd{3 d}
10749 will mark the next three unread articles as read, no matter what the
10750 summary buffer looks like.  Set @code{gnus-summary-goto-unread} to
10751 @code{nil} for a more straightforward action.
10752
10753
10754 @node Interactive
10755 @section Interactive
10756 @cindex interaction
10757
10758 @table @code
10759
10760 @item gnus-novice-user
10761 @vindex gnus-novice-user
10762 If this variable is non-@code{nil}, you are either a newcomer to the
10763 World of Usenet, or you are very cautious, which is a nice thing to be,
10764 really.  You will be given questions of the type ``Are you sure you want
10765 to do this?'' before doing anything dangerous.  This is @code{t} by
10766 default.
10767
10768 @item gnus-expert-user
10769 @vindex gnus-expert-user
10770 If this variable is non-@code{nil}, you will never ever be asked any
10771 questions by Gnus.  It will simply assume you know what you're doing, no
10772 matter how strange.
10773
10774 @item gnus-interactive-catchup
10775 @vindex gnus-interactive-catchup
10776 Require confirmation before catching up a group if non-@code{nil}.  It
10777 is @code{t} by default.
10778
10779 @item gnus-interactive-exit
10780 @vindex gnus-interactive-exit
10781 Require confirmation before exiting Gnus.  This variable is @code{t} by
10782 default. 
10783 @end table
10784
10785
10786 @node Formatting Variables
10787 @section Formatting Variables
10788 @cindex formatting variables
10789
10790 Throughout this manual you've probably noticed lots of variables that
10791 are called things like @code{gnus-group-line-format} and
10792 @code{gnus-summary-mode-line-format}.  These control how Gnus is to
10793 output lines in the various buffers.  There's quite a lot of them.
10794 Fortunately, they all use the same syntax, so there's not that much to
10795 be annoyed by.
10796
10797 Here's an example format spec (from the group buffer): @samp{%M%S%5y:
10798 %(%g%)\n}.  We see that it is indeed extremely ugly, and that there are
10799 lots of percentages everywhere.  
10800
10801 Each @samp{%} element will be replaced by some string or other when the
10802 buffer in question is generated.  @samp{%5y} means ``insert the @samp{y}
10803 spec, and pad with spaces to get a 5-character field''.  Just like a
10804 normal format spec, almost.
10805
10806 You can also say @samp{%6,4y}, which means that the field will never be
10807 more than 4 characters wide and never less than 6 characters wide.
10808
10809 There are also specs for highlighting, and these are shared by all the
10810 format variables.  Text inside the @samp{%(} and @samp{%)} specifiers
10811 will get the special @code{mouse-face} property set, which means that it
10812 will be highlighted (with @code{gnus-mouse-face}) when you put the mouse
10813 pointer over it.
10814
10815 Text inside the @samp{%[} and @samp{%]} specifiers will have their
10816 normal faces set using @code{gnus-face-0}, which is @code{bold} by
10817 default.  If you say @samp{%1[} instead, you'll get @code{gnus-face-1}
10818 instead, and so on.  Create as many faces as you wish.  The same goes
10819 for the @code{mouse-face} specs---you can say @samp{%3(hello%)} to have
10820 @samp{hello} mouse-highlighted with @code{gnus-mouse-face-3}.
10821
10822 Here's an alternative recipe for the group buffer:
10823
10824 @lisp
10825 ;; Create three face types.
10826 (setq gnus-face-1 'bold)
10827 (setq gnus-face-3 'italic)
10828
10829 ;; We want the article count to be in 
10830 ;; a bold and green face.  So we create 
10831 ;; a new face called `my-green-bold'.
10832 (copy-face 'bold 'my-green-bold)
10833 ;; Set the color.
10834 (set-face-foreground 'my-green-bold "ForestGreen")
10835 (setq gnus-face-2 'my-green-bold)
10836
10837 ;; Set the new & fancy format.
10838 (setq gnus-group-line-format 
10839       "%M%S%3@{%5y%@}%2[:%] %(%1@{%g%@}%)\n")
10840 @end lisp
10841
10842 I'm sure you'll be able to use this scheme to create totally unreadable
10843 and extremely vulgar displays.  Have fun!
10844
10845 Currently Gnus uses the following formatting variables:
10846 @code{gnus-group-line-format}, @code{gnus-summary-line-format},
10847 @code{gnus-server-line-format}, @code{gnus-topic-line-format},
10848 @code{gnus-group-mode-line-format},
10849 @code{gnus-summary-mode-line-format},
10850 @code{gnus-article-mode-line-format},
10851 @code{gnus-server-mode-line-format}, and
10852 @code{gnus-summary-pick-line-format}.
10853
10854 Note that the @samp{%(} specs (and friends) do not make any sense on the
10855 mode-line variables.
10856
10857 All these format variables can also be arbitrary elisp forms.  In that
10858 case, they will be @code{eval}ed to insert the required lines.
10859
10860 @kindex M-x gnus-update-format
10861 @findex gnus-update-format
10862 Gnus includes a command to help you while creating your own format
10863 specs.  @kbd{M-x gnus-update-format} will @code{eval} the current form,
10864 update the spec in question and pop you to a buffer where you can
10865 examine the resulting lisp code to be run to generate the line.  
10866
10867
10868 @node Windows Configuration
10869 @section Windows Configuration
10870 @cindex windows configuration
10871
10872 No, there's nothing here about X, so be quiet.
10873
10874 @vindex gnus-use-full-window
10875 If @code{gnus-use-full-window} non-@code{nil}, Gnus will delete all
10876 other windows and occupy the entire Emacs screen by itself.  It is
10877 @code{t} by default.
10878
10879 @vindex gnus-buffer-configuration
10880 @code{gnus-buffer-configuration} describes how much space each Gnus
10881 buffer should be given.  Here's an excerpt of this variable:
10882
10883 @lisp
10884 ((group (vertical 1.0 (group 1.0 point)
10885                       (if gnus-carpal (group-carpal 4))))
10886  (article (vertical 1.0 (summary 0.25 point) 
10887                         (article 1.0))))
10888 @end lisp
10889
10890 This is an alist.  The @dfn{key} is a symbol that names some action or
10891 other.  For instance, when displaying the group buffer, the window
10892 configuration function will use @code{group} as the key.  A full list of
10893 possible names is listed below.
10894
10895 The @dfn{value} (i. e., the @dfn{split}) says how much space each buffer
10896 should occupy.  To take the @code{article} split as an example -
10897
10898 @lisp
10899 (article (vertical 1.0 (summary 0.25 point)
10900                        (article 1.0)))
10901 @end lisp
10902
10903 This @dfn{split} says that the summary buffer should occupy 25% of upper
10904 half of the screen, and that it is placed over the article buffer.  As
10905 you may have noticed, 100% + 25% is actually 125% (yup, I saw y'all
10906 reaching for that calculator there).  However, the special number
10907 @code{1.0} is used to signal that this buffer should soak up all the
10908 rest of the space available after the rest of the buffers have taken
10909 whatever they need.  There should be only one buffer with the @code{1.0}
10910 size spec per split.
10911
10912 Point will be put in the buffer that has the optional third element
10913 @code{point}. 
10914
10915 Here's a more complicated example:
10916
10917 @lisp
10918 (article (vertical 1.0 (group 4)
10919                        (summary 0.25 point)
10920                        (if gnus-carpal (summary-carpal 4))
10921                        (article 1.0)))
10922 @end lisp
10923
10924 If the size spec is an integer instead of a floating point number, 
10925 then that number will be used to say how many lines a buffer should
10926 occupy, not a percentage.
10927
10928 If the @dfn{split} looks like something that can be @code{eval}ed (to be
10929 precise---if the @code{car} of the split is a function or a subr), this
10930 split will be @code{eval}ed.  If the result is non-@code{nil}, it will
10931 be used as a split.  This means that there will be three buffers if
10932 @code{gnus-carpal} is @code{nil}, and four buffers if @code{gnus-carpal}
10933 is non-@code{nil}.
10934
10935 Not complicated enough for you?  Well, try this on for size:
10936
10937 @lisp
10938 (article (horizontal 1.0 
10939              (vertical 0.5
10940                  (group 1.0)
10941                  (gnus-carpal 4))
10942              (vertical 1.0
10943                  (summary 0.25 point)
10944                  (summary-carpal 4)
10945                  (article 1.0))))
10946 @end lisp
10947
10948 Whoops.  Two buffers with the mystery 100% tag.  And what's that
10949 @code{horizontal} thingie?  
10950
10951 If the first element in one of the split is @code{horizontal}, Gnus will
10952 split the window horizontally, giving you two windows side-by-side.
10953 Inside each of these strips you may carry on all you like in the normal
10954 fashion.  The number following @code{horizontal} says what percentage of
10955 the screen is to be given to this strip.
10956
10957 For each split, there @emph{must} be one element that has the 100% tag.
10958 The splitting is never accurate, and this buffer will eat any leftover
10959 lines from the splits.
10960
10961 To be slightly more formal, here's a definition of what a legal split
10962 may look like:
10963
10964 @example
10965 split       = frame | horizontal | vertical | buffer | form
10966 frame       = "(frame " size *split ")"
10967 horizontal  = "(horizontal " size *split ")"
10968 vertical    = "(vertical " size *split ")"
10969 buffer      = "(" buffer-name " " size *[ "point" ] ")"
10970 size        = number | frame-params
10971 buffer-name = group | article | summary ...
10972 @end example
10973
10974 The limitations are that the @code{frame} split can only appear as the
10975 top-level split.  @var{form} should be an Emacs Lisp form that should
10976 return a valid split.  We see that each split is fully recursive, and
10977 may contain any number of @code{vertical} and @code{horizontal} splits. 
10978
10979 @vindex gnus-window-min-width
10980 @vindex gnus-window-min-height
10981 @cindex window height
10982 @cindex window width
10983 Finding the right sizes can be a bit complicated.  No window may be less
10984 than @code{gnus-window-min-height} (default 1) characters high, and all
10985 windows must be at least @code{gnus-window-min-width} (default 1)
10986 characters wide.  Gnus will try to enforce this before applying the
10987 splits.  If you want to use the normal Emacs window width/height limit,
10988 you can just set these two variables to @code{nil}.
10989
10990 If you're not familiar with Emacs terminology, @code{horizontal} and
10991 @code{vertical} splits may work the opposite way of what you'd expect.
10992 Windows inside a @code{horizontal} split are shown side-by-side, and
10993 windows within a @code{vertical} split are shown above each other.
10994
10995 @findex gnus-configure-frame
10996 If you want to experiment with window placement, a good tip is to call
10997 @code{gnus-configure-frame} directly with a split.  This is the function
10998 that does all the real work when splitting buffers.  Below is a pretty
10999 nonsensical configuration with 5 windows; two for the group buffer and
11000 three for the article buffer.  (I said it was nonsensical.)  If you
11001 @code{eval} the statement below, you can get an idea of how that would
11002 look straight away, without going through the normal Gnus channels.
11003 Play with it until you're satisfied, and then use
11004 @code{gnus-add-configuration} to add your new creation to the buffer
11005 configuration list. 
11006
11007 @lisp
11008 (gnus-configure-frame
11009  '(horizontal 1.0
11010     (vertical 10
11011       (group 1.0)
11012       (article 0.3 point))
11013     (vertical 1.0
11014       (article 1.0)
11015       (horizontal 4
11016         (group 1.0)
11017         (article 10)))))
11018 @end lisp
11019
11020 You might want to have several frames as well.  No prob---just use the
11021 @code{frame} split:
11022
11023 @lisp
11024 (gnus-configure-frame
11025  '(frame 1.0
11026          (vertical 1.0
11027                    (summary 0.25 point)
11028                    (article 1.0))
11029          (vertical ((height . 5) (width . 15)
11030                     (user-position . t)
11031                     (left . -1) (top . 1))
11032                    (picon 1.0))))
11033
11034 @end lisp
11035
11036 This split will result in the familiar summary/article window
11037 configuration in the first (or ``main'') frame, while a small additional
11038 frame will be created where picons will be shown.  As you can see,
11039 instead of the normal @code{1.0} top-level spec, each additional split
11040 should have a frame parameter alist as the size spec.
11041 @xref{Frame Parameters, , Frame Parameters, elisp, The GNU Emacs Lisp
11042 Reference Manual}.
11043
11044 Here's a list of all possible keys for
11045 @code{gnus-buffer-configuration}:
11046
11047 @code{group}, @code{summary}, @code{article}, @code{server},
11048 @code{browse}, @code{message}, @code{pick}, @code{info},
11049 @code{summary-faq}, @code{edit-group}, @code{edit-server},
11050 @code{edit-score}, @code{post}, @code{reply}, @code{forward},
11051 @code{reply-yank}, @code{mail-bounce}, @code{draft},
11052 @code{pipe}, @code{bug}, @code{compose-bounce}.  
11053
11054 Note that the @code{message} key is used for both
11055 @code{gnus-group-mail} and @code{gnus-summary-mail-other-window}.  If
11056 it is desireable to distinguish between the two, something like this
11057 might be used:
11058
11059 @lisp
11060 (message (horizontal 1.0
11061                      (vertical 1.0 (message 1.0 point))
11062                      (vertical 0.24
11063                                (if (buffer-live-p gnus-summary-buffer)
11064                                    '(summary 0.5))
11065                                (group 1.0)))))
11066 @end lisp
11067
11068 @findex gnus-add-configuration
11069 Since the @code{gnus-buffer-configuration} variable is so long and
11070 complicated, there's a function you can use to ease changing the config
11071 of a single setting: @code{gnus-add-configuration}.  If, for instance,
11072 you want to change the @code{article} setting, you could say:
11073
11074 @lisp
11075 (gnus-add-configuration
11076  '(article (vertical 1.0
11077                (group 4)
11078                (summary .25 point)
11079                (article 1.0))))
11080 @end lisp
11081
11082 You'd typically stick these @code{gnus-add-configuration} calls in your
11083 @file{.gnus} file or in some startup hook---they should be run after
11084 Gnus has been loaded.
11085
11086
11087 @node Compilation 
11088 @section Compilation 
11089 @cindex compilation
11090 @cindex byte-compilation
11091
11092 @findex gnus-compile
11093
11094 Remember all those line format specification variables?
11095 @code{gnus-summary-line-format}, @code{gnus-group-line-format}, and so
11096 on.  Now, Gnus will of course heed whatever these variables are, but,
11097 unfortunately, changing them will mean a quite significant slow-down.
11098 (The default values of these variables have byte-compiled functions
11099 associated with them, while the user-generated versions do not, of
11100 course.) 
11101
11102 To help with this, you can run @kbd{M-x gnus-compile} after you've
11103 fiddled around with the variables and feel that you're (kind of)
11104 satisfied.  This will result in the new specs being byte-compiled, and
11105 you'll get top speed again.
11106
11107
11108 @node Mode Lines
11109 @section Mode Lines
11110 @cindex mode lines
11111
11112 @vindex gnus-updated-mode-lines
11113 @code{gnus-updated-mode-lines} says what buffers should keep their mode
11114 lines updated.  It is a list of symbols.  Supported symbols include
11115 @code{group}, @code{article}, @code{summary}, @code{server},
11116 @code{browse}, and @code{tree}.  If the corresponding symbol is present,
11117 Gnus will keep that mode line updated with information that may be
11118 pertinent.  If this variable is @code{nil}, screen refresh may be
11119 quicker.
11120
11121 @cindex display-time
11122
11123 @vindex gnus-mode-non-string-length
11124 By default, Gnus displays information on the current article in the mode
11125 lines of the summary and article buffers.  The information Gnus wishes
11126 to display (eg. the subject of the article) is often longer than the
11127 mode lines, and therefore have to be cut off at some point.  The
11128 @code{gnus-mode-non-string-length} variable says how long the other
11129 elements on the line is (i.e., the non-info part).  If you put
11130 additional elements on the mode line (eg. a clock), you should modify
11131 this variable:
11132
11133 @c Hook written by Francesco Potorti` <pot@cnuce.cnr.it>
11134 @lisp
11135 (add-hook 'display-time-hook
11136           (lambda () (setq gnus-mode-non-string-length
11137                            (+ 21
11138                               (if line-number-mode 5 0)
11139                               (if column-number-mode 4 0)
11140                               (length display-time-string)))))
11141 @end lisp
11142
11143 If this variable is @code{nil} (which is the default), the mode line
11144 strings won't be chopped off, and they won't be padded either.
11145
11146
11147 @node Highlighting and Menus
11148 @section Highlighting and Menus
11149 @cindex visual
11150 @cindex highlighting
11151 @cindex menus
11152
11153 @vindex gnus-visual
11154 The @code{gnus-visual} variable controls most of the prettifying Gnus
11155 aspects.  If @code{nil}, Gnus won't attempt to create menus or use fancy
11156 colors or fonts.  This will also inhibit loading the @file{gnus-vis.el}
11157 file.
11158
11159 This variable can be a list of visual properties that are enabled.  The
11160 following elements are legal, and are all included by default:
11161
11162 @table @code
11163 @item group-highlight
11164 Do highlights in the group buffer.
11165 @item summary-highlight
11166 Do highlights in the summary buffer.
11167 @item article-highlight
11168 Do highlights in the article buffer.
11169 @item highlight
11170 Turn on highlighting in all buffers.
11171 @item group-menu
11172 Create menus in the group buffer.
11173 @item summary-menu
11174 Create menus in the summary buffers.
11175 @item article-menu
11176 Create menus in the article buffer.
11177 @item browse-menu
11178 Create menus in the browse buffer.
11179 @item server-menu
11180 Create menus in the server buffer.
11181 @item score-menu
11182 Create menus in the score buffers.
11183 @item menu
11184 Create menus in all buffers.
11185 @end table
11186
11187 So if you only want highlighting in the article buffer and menus in all
11188 buffers, you could say something like:
11189
11190 @lisp
11191 (setq gnus-visual '(article-highlight menu))
11192 @end lisp
11193
11194 If you want only highlighting and no menus whatsoever, you'd say:
11195
11196 @lisp
11197 (setq gnus-visual '(highlight))
11198 @end lisp
11199
11200 If @code{gnus-visual} is @code{t}, highlighting and menus will be used
11201 in all Gnus buffers.
11202
11203 Other general variables that influence the look of all buffers include:
11204
11205 @table @code
11206 @item gnus-mouse-face
11207 @vindex gnus-mouse-face
11208 This is the face (i.e., font) used for mouse highlighting in Gnus.  No
11209 mouse highlights will be done if @code{gnus-visual} is @code{nil}.
11210
11211 @item gnus-display-type
11212 @vindex gnus-display-type
11213 This variable is symbol indicating the display type Emacs is running
11214 under.  The symbol should be one of @code{color}, @code{grayscale} or
11215 @code{mono}.  If Gnus guesses this display attribute wrongly, either set
11216 this variable in your @file{~/.emacs} or set the resource
11217 @code{Emacs.displayType} in your @file{~/.Xdefaults}.
11218
11219 @item gnus-background-mode 
11220 @vindex gnus-background-mode 
11221 This is a symbol indicating the Emacs background brightness.  The symbol
11222 should be one of @code{light} or @code{dark}.  If Gnus guesses this
11223 frame attribute wrongly, either set this variable in your @file{~/.emacs} or
11224 set the resource @code{Emacs.backgroundMode} in your @file{~/.Xdefaults}. 
11225 `gnus-display-type'.
11226 @end table
11227
11228 There are hooks associated with the creation of all the different menus:
11229
11230 @table @code
11231
11232 @item gnus-article-menu-hook
11233 @vindex gnus-article-menu-hook
11234 Hook called after creating the article mode menu.
11235
11236 @item gnus-group-menu-hook
11237 @vindex gnus-group-menu-hook
11238 Hook called after creating the group mode menu.
11239
11240 @item gnus-summary-menu-hook
11241 @vindex gnus-summary-menu-hook
11242 Hook called after creating the summary mode menu.
11243
11244 @item gnus-server-menu-hook
11245 @vindex gnus-server-menu-hook
11246 Hook called after creating the server mode menu.
11247
11248 @item gnus-browse-menu-hook
11249 @vindex gnus-browse-menu-hook
11250 Hook called after creating the browse mode menu.
11251
11252 @item gnus-score-menu-hook
11253 @vindex gnus-score-menu-hook
11254 Hook called after creating the score mode menu.
11255
11256 @end table
11257
11258
11259 @node Buttons
11260 @section Buttons
11261 @cindex buttons
11262 @cindex mouse
11263 @cindex click
11264
11265 Those new-fangled @dfn{mouse} contraptions is very popular with the
11266 young, hep kids who don't want to learn the proper way to do things
11267 these days.  Why, I remember way back in the summer of '89, when I was
11268 using Emacs on a Tops 20 system.  Three hundred users on one single
11269 machine, and every user was running Simula compilers.  Bah!
11270
11271 Right.
11272
11273 @vindex gnus-carpal
11274 Well, you can make Gnus display bufferfuls of buttons you can click to
11275 do anything by setting @code{gnus-carpal} to @code{t}.  Pretty simple,
11276 really.  Tell the chiropractor I sent you.
11277
11278
11279 @table @code
11280
11281 @item gnus-carpal-mode-hook
11282 @vindex gnus-carpal-mode-hook
11283 Hook run in all carpal mode buffers.
11284
11285 @item gnus-carpal-button-face
11286 @vindex gnus-carpal-button-face
11287 Face used on buttons.
11288
11289 @item gnus-carpal-header-face
11290 @vindex gnus-carpal-header-face
11291 Face used on carpal buffer headers.
11292
11293 @item gnus-carpal-group-buffer-buttons
11294 @vindex gnus-carpal-group-buffer-buttons
11295 Buttons in the group buffer.
11296
11297 @item gnus-carpal-summary-buffer-buttons
11298 @vindex gnus-carpal-summary-buffer-buttons
11299 Buttons in the summary buffer.
11300
11301 @item gnus-carpal-server-buffer-buttons
11302 @vindex gnus-carpal-server-buffer-buttons
11303 Buttons in the server buffer.
11304
11305 @item gnus-carpal-browse-buffer-buttons
11306 @vindex gnus-carpal-browse-buffer-buttons
11307 Buttons in the browse buffer.
11308 @end table
11309
11310 All the @code{buttons} variables are lists.  The elements in these list
11311 is either a cons cell where the car contains a text to be displayed and
11312 the cdr contains a function symbol, or a simple string.
11313
11314
11315 @node Daemons
11316 @section Daemons
11317 @cindex demons
11318 @cindex daemons
11319
11320 Gnus, being larger than any program ever written (allegedly), does lots
11321 of strange stuff that you may wish to have done while you're not
11322 present.  For instance, you may want it to check for new mail once in a
11323 while.  Or you may want it to close down all connections to all servers
11324 when you leave Emacs idle.  And stuff like that.
11325
11326 Gnus will let you do stuff like that by defining various
11327 @dfn{handlers}.  Each handler consists of three elements:  A
11328 @var{function}, a @var{time}, and an @var{idle} parameter.
11329
11330 Here's an example of a handler that closes connections when Emacs has
11331 been idle for thirty minutes:
11332
11333 @lisp
11334 (gnus-demon-close-connections nil 30)
11335 @end lisp
11336
11337 Here's a handler that scans for PGP headers every hour when Emacs is
11338 idle: 
11339
11340 @lisp
11341 (gnus-demon-scan-pgp 60 t)
11342 @end lisp
11343
11344 This @var{time} parameter and than @var{idle} parameter works together
11345 in a strange, but wonderful fashion.  Basically, if @var{idle} is
11346 @code{nil}, then the function will be called every @var{time} minutes.
11347
11348 If @var{idle} is @code{t}, then the function will be called after
11349 @var{time} minutes only if Emacs is idle.  So if Emacs is never idle,
11350 the function will never be called.  But once Emacs goes idle, the
11351 function will be called every @var{time} minutes.
11352
11353 If @var{idle} is a number and @var{time} is a number, the function will
11354 be called every @var{time} minutes only when Emacs has been idle for
11355 @var{idle} minutes.
11356
11357 If @var{idle} is a number and @var{time} is @code{nil}, the function
11358 will be called once every time Emacs has been idle for @var{idle}
11359 minutes.  
11360
11361 And if @var{time} is a string, it should look like @samp{07:31}, and
11362 the function will then be called once every day somewhere near that
11363 time.  Modified by the @var{idle} parameter, of course.
11364
11365 @vindex gnus-demon-timestep
11366 (When I say ``minute'' here, I really mean @code{gnus-demon-timestep}
11367 seconds.  This is @code{60} by default.  If you change that variable,
11368 all the timings in the handlers will be affected.)
11369
11370 @vindex gnus-use-demon
11371 To set the whole thing in motion, though, you have to set
11372 @code{gnus-use-demon} to @code{t}.
11373
11374 So, if you want to add a handler, you could put something like this in
11375 your @file{.gnus} file:
11376
11377 @findex gnus-demon-add-handler
11378 @lisp
11379 (gnus-demon-add-handler 'gnus-demon-close-connections nil 30)
11380 @end lisp
11381
11382 @findex gnus-demon-add-nocem
11383 @findex gnus-demon-add-scanmail
11384 @findex gnus-demon-add-disconnection
11385 Some ready-made functions to do this has been created:
11386 @code{gnus-demon-add-nocem}, @code{gnus-demon-add-disconnection}, and
11387 @code{gnus-demon-add-scanmail}.  Just put those functions in your
11388 @file{.gnus} if you want those abilities.
11389
11390 @findex gnus-demon-init
11391 @findex gnus-demon-cancel
11392 @vindex gnus-demon-handlers
11393 If you add handlers to @code{gnus-demon-handlers} directly, you should
11394 run @code{gnus-demon-init} to make the changes take hold.  To cancel all
11395 daemons, you can use the @code{gnus-demon-cancel} function.
11396
11397 Note that adding daemons can be pretty naughty if you overdo it.  Adding
11398 functions that scan all news and mail from all servers every two seconds
11399 is a sure-fire way of getting booted off any respectable system.  So
11400 behave. 
11401
11402
11403 @node NoCeM
11404 @section NoCeM
11405 @cindex nocem
11406 @cindex spam
11407
11408 @dfn{Spamming} is posting the same article lots and lots of times.
11409 Spamming is bad.  Spamming is evil.  
11410
11411 Spamming is usually canceled within a day or so by various anti-spamming
11412 agencies.  These agencies usually also send out @dfn{NoCeM} messages.
11413 NoCeM is pronounced ``no see-'em'', and means what the name
11414 implies---these are messages that make the offending articles, like, go
11415 away.  
11416
11417 What use are these NoCeM messages if the articles are canceled anyway?
11418 Some sites do not honor cancel messages and some sites just honor cancels
11419 from a select few people.  Then you may wish to make use of the NoCeM
11420 messages, which are distributed in the @samp{alt.nocem.misc} newsgroup.
11421
11422 Gnus can read and parse the messages in this group automatically, and
11423 this will make spam disappear.  
11424
11425 There are some variables to customize, of course:
11426
11427 @table @code
11428 @item gnus-use-nocem
11429 @vindex gnus-use-nocem
11430 Set this variable to @code{t} to set the ball rolling.  It is @code{nil}
11431 by default. 
11432
11433 @item gnus-nocem-groups
11434 @vindex gnus-nocem-groups
11435 Gnus will look for NoCeM messages in the groups in this list.  The
11436 default is @code{("alt.nocem.misc" "news.admin.net-abuse.announce")}. 
11437
11438 @item gnus-nocem-issuers
11439 @vindex gnus-nocem-issuers
11440 There are many people issuing NoCeM messages.  This list says what
11441 people you want to listen to.  The default is @code{("Automoose-1"
11442 "clewis@@ferret.ocunix.on.ca;" "jem@@xpat.com;" "red@@redpoll.mrfs.oh.us
11443 (Richard E. Depew)")}; fine, upstanding citizens all of them.
11444
11445 Known despammers that you can put in this list include:
11446
11447 @table @samp
11448 @item clewis@@ferret.ocunix.on.ca;
11449 @cindex Chris Lewis
11450 Chris Lewis---Major Canadian despammer who has probably canceled more
11451 usenet abuse than anybody else.
11452
11453 @item Automoose-1
11454 @cindex CancelMoose[tm]
11455 The CancelMoose[tm] on autopilot.  The CancelMoose[tm] is reputed to be
11456 Norwegian, and was the person(s) who invented NoCeM.  
11457
11458 @item jem@@xpat.com;
11459 @cindex Jem
11460 Jem---Korean despammer who is getting very busy these days.
11461
11462 @item red@@redpoll.mrfs.oh.us (Richard E. Depew)
11463 Richard E. Depew---lone American despammer.  He mostly cancels binary
11464 postings to non-binary groups and removes spews (regurgitated articles).
11465 @end table
11466
11467 You do not have to heed NoCeM messages from all these people---just the
11468 ones you want to listen to.
11469
11470 @item gnus-nocem-directory
11471 @vindex gnus-nocem-directory
11472 This is where Gnus will store its NoCeM cache files.  The default is
11473 @file{~/News/NoCeM/}. 
11474
11475 @item gnus-nocem-expiry-wait
11476 @vindex gnus-nocem-expiry-wait
11477 The number of days before removing old NoCeM entries from the cache.
11478 The default is 15.  If you make it shorter Gnus will be faster, but you
11479 might then see old spam.
11480
11481 @end table
11482
11483
11484 @node Picons
11485 @section Picons
11486
11487 So...  You want to slow down your news reader even more!  This is a
11488 good way to do so.  Its also a great way to impress people staring
11489 over your shoulder as you read news.
11490
11491 @menu
11492 * Picon Basics::           What are picons and How do I get them.
11493 * Picon Requirements::     Don't go further if you aren't using XEmacs.
11494 * Easy Picons::            Displaying Picons---the easy way.
11495 * Hard Picons::            The way you should do it.  You'll learn something.
11496 * Picon Configuration::    Other variables you can trash/tweak/munge/play with.
11497 @end menu
11498
11499
11500 @node Picon Basics
11501 @subsection Picon Basics
11502
11503 What are Picons?  To quote directly from the Picons Web site
11504 (@samp{http://www.cs.indiana.edu/picons/ftp/index.html}):
11505
11506 @quotation 
11507 @dfn{Picons} is short for ``personal icons''.  They're small,
11508 constrained images used to represent users and domains on the net,
11509 organized into databases so that the appropriate image for a given
11510 e-mail address can be found.  Besides users and domains, there are picon
11511 databases for Usenet newsgroups and weather forecasts.  The picons are
11512 in either monochrome @code{XBM} format or color @code{XPM} and
11513 @code{GIF} formats.
11514 @end quotation
11515
11516 Please see the above mentioned web site for instructions on obtaining
11517 and installing the picons databases, or the following ftp site:
11518 @samp{http://www.cs.indiana.edu/picons/ftp/index.html}.
11519
11520 @vindex gnus-picons-database
11521 Gnus expects picons to be installed into a location pointed to by
11522 @code{gnus-picons-database}.
11523
11524
11525 @node Picon Requirements
11526 @subsection Picon Requirements
11527
11528 To use have Gnus display Picons for you, you must be running XEmacs
11529 19.13 or greater since all other versions of Emacs aren't yet able to
11530 display images.
11531
11532 Additionally, you must have @code{xpm} support compiled into XEmacs.
11533
11534 @vindex gnus-picons-convert-x-face
11535 If you want to display faces from @code{X-Face} headers, you must have
11536 the @code{netpbm} utilities installed, or munge the
11537 @code{gnus-picons-convert-x-face} variable to use something else.
11538
11539
11540 @node Easy Picons
11541 @subsection Easy Picons
11542
11543 To enable displaying picons, simply put the following line in your
11544 @file{~/.gnus} file and start Gnus.
11545
11546 @lisp
11547 (setq gnus-use-picons t)
11548 (add-hook 'gnus-article-display-hook 'gnus-article-display-picons t)
11549 (add-hook 'gnus-summary-prepare-hook 'gnus-group-display-picons t)
11550 (add-hook 'gnus-article-display-hook 'gnus-picons-article-display-x-face)
11551 @end lisp
11552
11553
11554 @node Hard Picons
11555 @subsection Hard Picons 
11556
11557 Gnus can display picons for you as you enter and leave groups and
11558 articles.  It knows how to interact with three sections of the picons
11559 database.  Namely, it can display the picons newsgroup pictures,
11560 author's face picture(s), and the authors domain.  To enable this
11561 feature, you need to first decide where to display them.
11562
11563 @table @code 
11564
11565 @item gnus-picons-display-where 
11566 @vindex gnus-picons-display-where 
11567 Where the picon images should be displayed.  It is @code{picons} by
11568 default (which by default maps to the buffer @samp{*Picons*}).  Other
11569 valid places could be @code{article}, @code{summary}, or
11570 @samp{"*scratch*"} for all I care.  Just make sure that you've made the
11571 buffer visible using the standard Gnus window configuration
11572 routines---@xref{Windows Configuration}.
11573
11574 @end table
11575
11576 Note: If you set @code{gnus-use-picons} to @code{t}, it will set up your
11577 window configuration for you to include the @code{picons} buffer.
11578
11579 Now that you've made that decision, you need to add the following
11580 functions to the appropriate hooks so these pictures will get
11581 displayed at the right time.
11582
11583 @vindex gnus-article-display-hook
11584 @vindex gnus-picons-display-where
11585 @table @code
11586 @item gnus-article-display-picons
11587 @findex gnus-article-display-picons
11588 Looks up and display the picons for the author and the author's domain
11589 in the @code{gnus-picons-display-where} buffer.  Should be added to
11590 the @code{gnus-article-display-hook}.
11591
11592 @item gnus-group-display-picons
11593 @findex gnus-article-display-picons
11594 Displays picons representing the current group.  This function should
11595 be added to the @code{gnus-summary-prepare-hook} or to the
11596 @code{gnus-article-display-hook} if @code{gnus-picons-display-where}
11597 is set to @code{article}.
11598
11599 @item gnus-picons-article-display-x-face
11600 @findex gnus-article-display-picons
11601 Decodes and displays the X-Face header if present.  This function
11602 should be added to @code{gnus-article-display-hook}.
11603
11604 @end table
11605
11606 Note:  You must append them to the hook, so make sure to specify 't'
11607 to the append flag of @code{add-hook}:
11608
11609 @lisp
11610 (add-hook 'gnus-article-display-hook 'gnus-article-display-picons t)
11611 @end lisp
11612
11613
11614 @node Picon Configuration
11615 @subsection Picon Configuration
11616
11617 The following variables offer further control over how things are
11618 done, where things are located, and other useless stuff you really
11619 don't need to worry about.
11620
11621 @table @code
11622 @item gnus-picons-database
11623 @vindex gnus-picons-database
11624 The location of the picons database.  Should point to a directory
11625 containing the @file{news}, @file{domains}, @file{users} (and so on)
11626 subdirectories.  Defaults to @file{/usr/local/faces}.
11627
11628 @item gnus-picons-news-directory
11629 @vindex gnus-picons-news-directory
11630 Sub-directory of the faces database containing the icons for
11631 newsgroups.
11632
11633 @item gnus-picons-user-directories
11634 @vindex gnus-picons-user-directories
11635 List of subdirectories to search in @code{gnus-picons-database} for user
11636 faces.  Defaults to @code{("local" "users" "usenix" "misc/MISC")}.
11637
11638 @item gnus-picons-domain-directories
11639 @vindex gnus-picons-domain-directories
11640 List of subdirectories to search in @code{gnus-picons-database} for
11641 domain name faces.  Defaults to @code{("domains")}.  Some people may
11642 want to add @samp{unknown} to this list.
11643
11644 @item gnus-picons-convert-x-face
11645 @vindex gnus-picons-convert-x-face
11646 The command to use to convert the @code{X-Face} header to an X bitmap
11647 (@code{xbm}).  Defaults to @code{(format "@{ echo '/* Width=48,
11648 Height=48 */'; uncompface; @} | icontopbm | pbmtoxbm > %s"
11649 gnus-picons-x-face-file-name)}
11650
11651 @item gnus-picons-x-face-file-name
11652 @vindex gnus-picons-x-face-file-name
11653 Names a temporary file to store the @code{X-Face} bitmap in.  Defaults
11654 to @code{(format "/tmp/picon-xface.%s.xbm" (user-login-name))}.
11655
11656 @item gnus-picons-buffer
11657 @vindex gnus-picons-buffer
11658 The name of the buffer that @code{picons} points to.  Defaults to
11659 @samp{*Icon Buffer*}.
11660
11661 @end table
11662
11663
11664 @node Various Various
11665 @section Various Various
11666 @cindex mode lines
11667 @cindex highlights
11668
11669 @table @code
11670
11671 @item gnus-verbose
11672 @vindex gnus-verbose
11673 This variable is an integer between zero and ten.  The higher the value,
11674 the more messages will be displayed.  If this variable is zero, Gnus
11675 will never flash any messages, if it is seven (which is the default),
11676 most important messages will be shown, and if it is ten, Gnus won't ever
11677 shut up, but will flash so many messages it will make your head swim.
11678
11679 @item gnus-verbose-backends
11680 @vindex gnus-verbose-backends
11681 This variable works the same way as @code{gnus-verbose}, but it applies
11682 to the Gnus backends instead of Gnus proper.
11683
11684 @item nnheader-max-head-length
11685 @vindex nnheader-max-head-length
11686 When the backends read straight heads of articles, they all try to read
11687 as little as possible.  This variable (default @code{4096}) specifies
11688 the absolute max length the backends will try to read before giving up
11689 on finding a separator line between the head and the body.  If this
11690 variable is @code{nil}, there is no upper read bound.  If it is
11691 @code{t}, the backends won't try to read the articles piece by piece,
11692 but read the entire articles.  This makes sense with some versions of
11693 @code{ange-ftp}. 
11694
11695 @item nnheader-file-name-translation-alist 
11696 @vindex nnheader-file-name-translation-alist 
11697 @cindex file names
11698 @cindex illegal characters in file names
11699 @cindex characters in file names
11700 This is an alist that says how to translate characters in file names.
11701 For instance, if @samp{:} is illegal as a file character in file names
11702 on your system (you OS/2 user you), you could say something like:
11703
11704 @lisp
11705 (setq nnheader-file-name-translation-alist 
11706       '((?: . ?_)))
11707 @end lisp
11708
11709 In fact, this is the default value for this variable on OS/2 and MS
11710 Windows (phooey) systems.
11711
11712 @item gnus-hidden-properties
11713 @vindex gnus-hidden-properties
11714 This is a list of properties to use to hide ``invisible'' text.  It is
11715 @code{(invisible t intangible t)} by default on most systems, which
11716 makes invisible text invisible and intangible.
11717
11718 @item gnus-parse-headers-hook
11719 @vindex gnus-parse-headers-hook
11720 A hook called before parsing headers.  It can be used, for instance, to
11721 gather statistics on the headers fetched, or perhaps you'd like to prune
11722 some headers.  I don't see why you'd want that, though.
11723
11724 @item gnus-shell-command-separator
11725 @vindex gnus-shell-command-separator
11726 String used to separate to shell commands.  The default is @samp{;}. 
11727
11728
11729 @end table
11730
11731
11732 @node The End
11733 @chapter The End
11734
11735 Well, that's the manual---you can get on with your life now.  Keep in
11736 touch.  Say hello to your cats from me.  
11737
11738 My @strong{ghod}---I just can't stand goodbyes.  Sniffle.
11739
11740 Ol' Charles Reznikoff said it pretty well, so I leave the floor to him:
11741
11742 @quotation
11743 @strong{Te Deum}
11744 @sp 1
11745 Not because of victories @*
11746 I sing,@*
11747 having none,@*
11748 but for the common sunshine,@*
11749 the breeze,@*
11750 the largess of the spring.
11751 @sp 1
11752 Not for victory@*
11753 but for the day's work done@*
11754 as well as I was able;@*
11755 not for a seat upon the dais@*
11756 but at the common table.@*
11757 @end quotation
11758
11759
11760 @node Appendices
11761 @chapter Appendices
11762
11763 @menu
11764 * History::                        How Gnus got where it is today.
11765 * Terminology::                    We use really difficult, like, words here.
11766 * Customization::                  Tailoring Gnus to your needs.
11767 * Troubleshooting::                What you might try if things do not work.
11768 * A Programmers Guide to Gnus::    Rilly, rilly technical stuff.
11769 * Emacs for Heathens::             A short introduction to Emacsian terms.
11770 * Frequently Asked Questions::     A question-and-answer session.
11771 @end menu
11772
11773
11774 @node History
11775 @section History
11776
11777 @cindex history
11778 @sc{gnus} was written by Masanobu @sc{Umeda}.  When autumn crept up in
11779 '94, Lars Magne Ingebrigtsen grew bored and decided to rewrite Gnus.
11780
11781 If you want to investigate the person responsible for this outrage, you
11782 can point your (feh!) web browser to
11783 @file{http://www.ifi.uio.no/~larsi/}.  This is also the primary
11784 distribution point for the new and spiffy versions of Gnus, and is known
11785 as The Site That Destroys Newsrcs And Drives People Mad.
11786
11787 During the first extended alpha period of development, the new Gnus was
11788 called ``(ding) Gnus''.  @dfn{(ding)}, is, of course, short for
11789 @dfn{ding is not Gnus}, which is a total and utter lie, but who cares?
11790 (Besides, the ``Gnus'' in this abbreviation should probably be
11791 pronounced ``news'' as @sc{Umeda} intended, which makes it a more
11792 appropriate name, don't you think?)
11793
11794 In any case, after spending all that energy on coming up with a new and
11795 spunky name, we decided that the name was @emph{too} spunky, so we
11796 renamed it back again to ``Gnus''.  But in mixed case.  ``Gnus'' vs.
11797 ``@sc{gnus}''.  New vs. old.
11798
11799 The first ``proper'' release of Gnus 5 was done in November 1995 when it
11800 was included in the Emacs 19.30 distribution.
11801
11802 In May 1996 the next Gnus generation (aka.  ``September Gnus'') was
11803 released under the name ``Gnus 5.2''.  
11804
11805 On July 28th 1996 work on Red Gnus was begun.
11806
11807 @menu
11808 * Why?::                What's the point of Gnus?
11809 * Compatibility::       Just how compatible is Gnus with @sc{gnus}?
11810 * Conformity::          Gnus tries to conform to all standards.
11811 * Emacsen::             Gnus can be run on a few modern Emacsen.
11812 * Contributors::        Oodles of people.  
11813 * New Features::        Pointers to some of the new stuff in Gnus.
11814 * Newest Features::     Features so new that they haven't been written yet.
11815 @end menu
11816
11817
11818 @node Why?
11819 @subsection Why?
11820
11821 What's the point of Gnus?  
11822
11823 I want to provide a ``rad'', ``happening'', ``way cool'' and ``hep''
11824 newsreader, that lets you do anything you can think of.  That was my
11825 original motivation, but while working on Gnus, it has become clear to
11826 me that this generation of newsreaders really belong in the stone age.
11827 Newsreaders haven't developed much since the infancy of the net.  If the
11828 volume continues to rise with the current rate of increase, all current
11829 newsreaders will be pretty much useless.  How do you deal with
11830 newsgroups that have thousands of new articles each day?  How do you
11831 keep track of millions of people who post?
11832
11833 Gnus offers no real solutions to these questions, but I would very much
11834 like to see Gnus being used as a testing ground for new methods of
11835 reading and fetching news.  Expanding on @sc{Umeda}-san's wise decision
11836 to separate the newsreader from the backends, Gnus now offers a simple
11837 interface for anybody who wants to write new backends for fetching mail
11838 and news from different sources.  I have added hooks for customizations
11839 everywhere I could imagine useful.  By doing so, I'm inviting every one
11840 of you to explore and invent.
11841
11842 May Gnus never be complete. @kbd{C-u 100 M-x hail-emacs}. 
11843
11844
11845 @node Compatibility
11846 @subsection Compatibility
11847
11848 @cindex compatibility
11849 Gnus was designed to be fully compatible with @sc{gnus}.  Almost all key
11850 bindings have been kept.  More key bindings have been added, of course,
11851 but only in one or two obscure cases have old bindings been changed.
11852
11853 Our motto is:
11854 @quotation
11855 @cartouche
11856 @center In a cloud bones of steel.
11857 @end cartouche
11858 @end quotation
11859
11860 All commands have kept their names.  Some internal functions have changed
11861 their names.
11862
11863 The @code{gnus-uu} package has changed drastically. @pxref{Decoding
11864 Articles}. 
11865
11866 One major compatibility question is the presence of several summary
11867 buffers.  All variables that are relevant while reading a group are
11868 buffer-local to the summary buffer they belong in.  Although many
11869 important variables have their values copied into their global
11870 counterparts whenever a command is executed in the summary buffer, this
11871 change might lead to incorrect values being used unless you are careful.
11872
11873 All code that relies on knowledge of @sc{gnus} internals will probably
11874 fail.  To take two examples: Sorting @code{gnus-newsrc-alist} (or
11875 changing it in any way, as a matter of fact) is strictly verboten.  Gnus
11876 maintains a hash table that points to the entries in this alist (which
11877 speeds up many functions), and changing the alist directly will lead to
11878 peculiar results.
11879
11880 @cindex hilit19
11881 @cindex highlighting
11882 Old hilit19 code does not work at all.  In fact, you should probably
11883 remove all hilit code from all Gnus hooks
11884 (@code{gnus-group-prepare-hook} and @code{gnus-summary-prepare-hook}).
11885 Gnus provides various integrated functions for highlighting.  These are
11886 faster and more accurate.  To make life easier for everybody, Gnus will
11887 by default remove all hilit calls from all hilit hooks.  Uncleanliness!
11888 Away!
11889
11890 Packages like @code{expire-kill} will no longer work.  As a matter of
11891 fact, you should probably remove all old @sc{gnus} packages (and other
11892 code) when you start using Gnus.  More likely than not, Gnus already
11893 does what you have written code to make @sc{gnus} do.  (Snicker.)
11894
11895 Even though old methods of doing things are still supported, only the
11896 new methods are documented in this manual.  If you detect a new method of
11897 doing something while reading this manual, that does not mean you have
11898 to stop doing it the old way.
11899
11900 Gnus understands all @sc{gnus} startup files.
11901
11902 @kindex M-x gnus-bug
11903 @findex gnus-bug
11904 @cindex reporting bugs
11905 @cindex bugs
11906 Overall, a casual user who hasn't written much code that depends on
11907 @sc{gnus} internals should suffer no problems.  If problems occur,
11908 please let me know by issuing that magic command @kbd{M-x gnus-bug}.
11909
11910
11911 @node Conformity
11912 @subsection Conformity
11913
11914 No rebels without a clue here, ma'am.  We conform to all standards known
11915 to (wo)man.  Except for those standards and/or conventions we disagree
11916 with, of course.
11917
11918 @table @strong
11919
11920 @item RFC 822
11921 @cindex RFC 822
11922 There are no known breaches of this standard.
11923
11924 @item RFC 1036
11925 @cindex RFC 1036
11926 There are no known breaches of this standard, either.
11927
11928 @item Good Net-Keeping Seal of Approval
11929 @cindex Good Net-Keeping Seal of Approval
11930 Gnus has been through the Seal process and failed.  I think it'll pass
11931 the next inspection.
11932
11933 @item Son-of-RFC 1036
11934 @cindex Son-of-RFC 1036
11935 We do have some breaches to this one.
11936
11937 @table @emph
11938
11939 @item MIME
11940 Gnus does no MIME handling, and this standard-to-be seems to think that
11941 MIME is the bees' knees, so we have major breakage here.
11942
11943 @item X-Newsreader
11944 This is considered to be a ``vanity header'', while I consider it to be
11945 consumer information.  After seeing so many badly formatted articles
11946 coming from @code{tin} and @code{Netscape} I know not to use either of
11947 those for posting articles.  I would not have known that if it wasn't
11948 for the @code{X-Newsreader} header.
11949
11950 @item References
11951 Gnus does line breaking on this header.  I infer from RFC1036 that being
11952 conservative in what you output is not creating 5000-character lines, so
11953 it seems like a good idea to me.  However, this standard-to-be says that
11954 whitespace in the @code{References} header is to be preserved, so...  It
11955 doesn't matter one way or the other to Gnus, so if somebody tells me
11956 what The Way is, I'll change it.  Or not.
11957 @end table
11958
11959 @end table
11960
11961 If you ever notice Gnus acting non-compliantly with regards to the texts
11962 mentioned above, don't hesitate to drop a note to Gnus Towers and let us
11963 know.
11964
11965
11966 @node Emacsen
11967 @subsection Emacsen
11968 @cindex Emacsen
11969 @cindex XEmacs
11970 @cindex Mule
11971 @cindex Emacs
11972
11973 Gnus should work on :
11974
11975 @itemize @bullet 
11976
11977 @item
11978 Emacs 19.30 and up.
11979
11980 @item
11981 XEmacs 19.13 and up.
11982
11983 @item 
11984 Mule versions based on Emacs 19.30 and up.
11985
11986 @end itemize
11987
11988 Gnus will absolutely not work on any Emacsen older than that.  Not
11989 reliably, at least. 
11990
11991 There are some vague differences between Gnus on the various platforms: 
11992
11993 @itemize @bullet
11994
11995 @item
11996 The mouse-face on Gnus lines under Emacs and Mule is delimited to
11997 certain parts of the lines while they cover the entire line under
11998 XEmacs. 
11999
12000 @item 
12001 The same with current-article marking---XEmacs puts an underline under
12002 the entire summary line while Emacs and Mule are nicer and kinder.
12003
12004 @item
12005 XEmacs features more graphics---a logo and a toolbar.
12006
12007 @item
12008 Citation highlighting us better under Emacs and Mule than under XEmacs.
12009
12010 @item
12011 Emacs 19.26-19.28 have tangible hidden headers, which can be a bit
12012 confusing. 
12013
12014 @end itemize
12015
12016
12017 @node Contributors
12018 @subsection Contributors
12019 @cindex contributors
12020
12021 The new Gnus version couldn't have been done without the help of all the
12022 people on the (ding) mailing list.  Every day for over a year I have
12023 gotten billions of nice bug reports from them, filling me with joy,
12024 every single one of them.  Smooches.  The people on the list have been
12025 tried beyond endurance, what with my ``oh, that's a neat idea <type
12026 type>, yup, I'll release it right away <ship off> no wait, that doesn't
12027 work at all <type type>, yup, I'll ship that one off right away <ship
12028 off> no, wait, that absolutely does not work'' policy for releases.
12029 Micro$oft---bah.  Amateurs.  I'm @emph{much} worse.  (Or is that
12030 ``worser''? ``much worser''?  ``worsest''?)
12031
12032 I would like to take this opportunity to thank the Academy for...  oops,
12033 wrong show.
12034
12035 @itemize @bullet
12036
12037 @item Masanobu @sc{Umeda}
12038 The writer of the original @sc{gnus}.
12039
12040 @item Per Abrahamsen
12041 Custom, scoring, highlighting and @sc{soup} code (as well as numerous
12042 other things).
12043
12044 @item Luis Fernandes
12045 Design and graphics.
12046
12047 @item Wes Hardaker
12048 @file{gnus-picon.el} and the manual section on @dfn{picons}
12049 (@pxref{Picons}). 
12050
12051 @item Brad Miller
12052 @file{gnus-gl.el} and the GroupLens manual section (@pxref{GroupLens}). 
12053
12054 @item Sudish Joseph
12055 Innumerable bug fixes.
12056
12057 @item Ilja Weis
12058 @file{gnus-topic.el}.
12059
12060 @item Steven L. Baur
12061 Lots and lots of bugs detections and fixes.
12062
12063 @item Vladimir Alexiev
12064 The refcard and reference booklets.
12065
12066 @item Felix Lee & JWZ
12067 I stole some pieces from the XGnus distribution by Felix Lee and JWZ.
12068
12069 @item Scott Byer
12070 @file{nnfolder.el} enhancements & rewrite.
12071
12072 @item Peter Mutsaers
12073 Orphan article scoring code.
12074
12075 @item Ken Raeburn
12076 POP mail support.
12077
12078 @item Hallvard B Furuseth
12079 Various bits and pieces, especially dealing with .newsrc files.
12080
12081 @item Brian Edmonds
12082 @file{gnus-bbdb.el}.
12083
12084 @item Ricardo Nassif and Mark Borges
12085 Proof-reading.
12086
12087 @item Kevin Davidson
12088 Came up with the name @dfn{ding}, so blame him.
12089
12090 @end itemize
12091
12092 Peter Arius, Stainless Steel Rat, Ulrik Dickow, Jack Vinson, Daniel
12093 Quinlan, Frank D. Cringle, Geoffrey T. Dairiki, Fabrice Popineau and
12094 Andrew Eskilsson have all contributed code and suggestions.
12095
12096
12097 @node New Features
12098 @subsection New Features
12099 @cindex new features
12100
12101 @itemize @bullet
12102
12103 @item
12104 The look of all buffers can be changed by setting format-like variables
12105 (@pxref{Group Buffer Format} and @pxref{Summary Buffer Format}). 
12106  
12107 @item 
12108 Local spool and several @sc{nntp} servers can be used at once
12109 (@pxref{Select Methods}).  
12110
12111 @item 
12112 You can combine groups into virtual groups (@pxref{Virtual Groups}).
12113
12114 @item 
12115 You can read a number of different mail formats (@pxref{Getting Mail}).
12116 All the mail backends implement a convenient mail expiry scheme
12117 (@pxref{Expiring Mail}). 
12118
12119 @item
12120 Gnus can use various strategies for gathering threads that have lost
12121 their roots (thereby gathering loose sub-threads into one thread) or it
12122 can go back and retrieve enough headers to build a complete thread
12123 (@pxref{Customizing Threading}).
12124
12125 @item 
12126 Killed groups can be displayed in the group buffer, and you can read
12127 them as well (@pxref{Listing Groups}).
12128
12129 @item 
12130 Gnus can do partial group updates---you do not have to retrieve the
12131 entire active file just to check for new articles in a few groups
12132 (@pxref{The Active File}).
12133
12134 @item 
12135 Gnus implements a sliding scale of subscribedness to groups
12136 (@pxref{Group Levels}).
12137
12138 @item 
12139 You can score articles according to any number of criteria
12140 (@pxref{Scoring}).  You can even get Gnus to find out how to score
12141 articles for you (@pxref{Adaptive Scoring}).
12142
12143 @item 
12144 Gnus maintains a dribble buffer that is auto-saved the normal Emacs
12145 manner, so it should be difficult to lose much data on what you have
12146 read if your machine should go down (@pxref{Auto Save}). 
12147
12148 @item 
12149 Gnus now has its own startup file (@file{.gnus}) to avoid cluttering up
12150 the @file{.emacs} file.
12151
12152 @item 
12153 You can set the process mark on both groups and articles and perform
12154 operations on all the marked items (@pxref{Process/Prefix}).
12155
12156 @item 
12157 You can grep through a subset of groups and create a group from the
12158 results (@pxref{Kibozed Groups}). 
12159
12160 @item 
12161 You can list subsets of groups according to, well, anything
12162 (@pxref{Listing Groups}). 
12163
12164 @item 
12165 You can browse foreign servers and subscribe to groups from those
12166 servers (@pxref{Browse Foreign Server}). 
12167
12168 @item 
12169 Gnus can fetch articles asynchronously on a second connection to the
12170 server (@pxref{Asynchronous Fetching}).
12171
12172 @item 
12173 You can cache articles locally (@pxref{Article Caching}). 
12174
12175 @item 
12176 The uudecode functions have been expanded and generalized
12177 (@pxref{Decoding Articles}). 
12178
12179 @item
12180 You can still post uuencoded articles, which was a little-known feature
12181 of @sc{gnus}' past (@pxref{Uuencoding and Posting}). 
12182
12183 @item
12184 Fetching parents (and other articles) now actually works without
12185 glitches (@pxref{Finding the Parent}). 
12186
12187 @item
12188 Gnus can fetch FAQs and group descriptions (@pxref{Group Information}).
12189
12190 @item
12191 Digests (and other files) can be used as the basis for groups
12192 (@pxref{Document Groups}).
12193
12194 @item 
12195 Articles can be highlighted and customized (@pxref{Customizing
12196 Articles}). 
12197
12198 @item 
12199 URLs and other external references can be buttonized (@pxref{Article
12200 Buttons}). 
12201
12202 @item
12203 You can do lots of strange stuff with the Gnus window & frame
12204 configuration (@pxref{Windows Configuration}).
12205
12206 @item
12207 You can click on buttons instead of using the keyboard
12208 (@pxref{Buttons}). 
12209
12210 @item 
12211 Gnus can use NoCeM files to weed out spam (@pxref{NoCeM}). 
12212
12213 @end itemize
12214
12215 This is, of course, just a @emph{short} overview of the @emph{most}
12216 important new features.  No, really.  There are tons more.  Yes, we have
12217 feeping creaturism in full effect, but nothing too gratuitous, I would
12218 hope. 
12219
12220
12221 @node Newest Features
12222 @subsection Newest Features
12223 @cindex todo
12224
12225 Also known as the @dfn{todo list}.  Sure to be implemented before the
12226 next millennium. 
12227
12228 Be afraid.  Be very afraid.
12229
12230 @itemize @bullet
12231 @item
12232 Native @sc{mime} support is something that should be done.  
12233 @item
12234 A better and simpler method for specifying mail composing methods. 
12235 @item
12236 Allow posting through mail-to-news gateways.
12237 @item
12238 Really do unbinhexing.
12239 @end itemize
12240
12241 And much, much, much more.  There is more to come than has already been
12242 implemented.  (But that's always true, isn't it?)
12243
12244 @code{<URL:http://www.ifi.uio.no/~larsi/sgnus/todo>} is where the actual
12245 up-to-the-second todo list is located, so if you're really curious, you
12246 could point your Web browser over that-a-way.
12247
12248
12249 @node Terminology
12250 @section Terminology
12251
12252 @cindex terminology
12253 @table @dfn
12254
12255 @item news
12256 @cindex news
12257 This is what you are supposed to use this thing for---reading news.
12258 News is generally fetched from a nearby @sc{nntp} server, and is
12259 generally publicly available to everybody.  If you post news, the entire
12260 world is likely to read just what you have written, and they'll all
12261 snigger mischievously.  Behind your back.
12262
12263 @item mail
12264 @cindex mail
12265 Everything that's delivered to you personally is mail.  Some news/mail
12266 readers (like Gnus) blur the distinction between mail and news, but
12267 there is a difference.  Mail is private.  News is public.  Mailing is
12268 not posting, and replying is not following up.
12269
12270 @item reply
12271 @cindex reply
12272 Send a mail to the person who has written what you are reading.
12273
12274 @item follow up
12275 @cindex follow up
12276 Post an article to the current newsgroup responding to the article you
12277 are reading.
12278
12279 @item backend
12280 @cindex backend
12281 Gnus gets fed articles from a number of backends, both news and mail
12282 backends.  Gnus does not handle the underlying media, so to speak---this
12283 is all done by the backends.
12284
12285 @item native
12286 @cindex native
12287 Gnus will always use one method (and backend) as the @dfn{native}, or
12288 default, way of getting news.
12289
12290 @item foreign
12291 @cindex foreign
12292 You can also have any number of foreign groups active at the same time.
12293 These are groups that use different backends for getting news.
12294
12295 @item secondary
12296 @cindex secondary
12297 Secondary backends are somewhere half-way between being native and being
12298 foreign, but they mostly act like they are native.
12299
12300 @item article
12301 @cindex article
12302 A nessage that has been posted as news.
12303
12304 @item mail message
12305 @cindex mail message
12306 A message that has been mailed.
12307
12308 @item message 
12309 @cindex message
12310 A mail message or news article
12311
12312 @item head
12313 @cindex head
12314 The top part of a message, where administrative information (etc.) is
12315 put.
12316
12317 @item body
12318 @cindex body
12319 The rest of an article.  Everything that is not in the head is in the
12320 body. 
12321
12322 @item header
12323 @cindex header
12324 A line from the head of an article. 
12325
12326 @item headers
12327 @cindex headers
12328 A collection of such lines, or a collection of heads.  Or even a
12329 collection of @sc{nov} lines.
12330
12331 @item @sc{nov}
12332 @cindex nov
12333 When Gnus enters a group, it asks the backend for the headers of all
12334 unread articles in the group.  Most servers support the News OverView
12335 format, which is more compact and much faster to read and parse than the
12336 normal @sc{head} format.
12337
12338 @item level
12339 @cindex levels
12340 Each group is subscribed at some @dfn{level} or other (1-9).  The ones
12341 that have a lower level are ``more'' subscribed than the groups with a
12342 higher level.  In fact, groups on levels 1-5 are considered
12343 @dfn{subscribed}; 6-7 are @dfn{unsubscribed}; 8 are @dfn{zombies}; and 9
12344 are @dfn{killed}.  Commands for listing groups and scanning for new
12345 articles will all use the numeric prefix as @dfn{working level}.
12346
12347 @item killed groups
12348 @cindex killed groups
12349 No information on killed groups is stored or updated, which makes killed
12350 groups much easier to handle than subscribed groups.
12351
12352 @item zombie groups
12353 @cindex zombie groups
12354 Just like killed groups, only slightly less dead.
12355
12356 @item active file
12357 @cindex active file
12358 The news server has to keep track of what articles it carries, and what
12359 groups exist.  All this information in stored in the active file, which
12360 is rather large, as you might surmise.
12361
12362 @item bogus groups
12363 @cindex bogus groups
12364 A group that exists in the @file{.newsrc} file, but isn't known to the
12365 server (i. e.,  it isn't in the active file), is a @emph{bogus group}.
12366 This means that the group probably doesn't exist (any more).
12367
12368 @item server 
12369 @cindex server
12370 A machine than one can connect to and get news (or mail) from.
12371
12372 @item select method
12373 @cindex select method
12374 A structure that specifies the backend, the server and the virtual
12375 server parameters.
12376
12377 @item virtual server
12378 @cindex virtual server
12379 A named select method.  Since a select methods defines all there is to
12380 know about connecting to a (physical) server, taking the who things as a
12381 whole is a virtual server.
12382
12383 @end table
12384
12385
12386 @node Customization
12387 @section Customization
12388 @cindex general customization
12389
12390 All variables are properly documented elsewhere in this manual.  This
12391 section is designed to give general pointers on how to customize Gnus
12392 for some quite common situations.
12393
12394 @menu
12395 * Slow/Expensive Connection:: You run a local Emacs and get the news elsewhere.
12396 * Slow Terminal Connection::  You run a remote Emacs.
12397 * Little Disk Space::         You feel that having large setup files is icky.
12398 * Slow Machine::              You feel like buying a faster machine.
12399 @end menu
12400
12401
12402 @node Slow/Expensive Connection
12403 @subsection Slow/Expensive @sc{nntp} Connection
12404
12405 If you run Emacs on a machine locally, and get your news from a machine
12406 over some very thin strings, you want to cut down on the amount of data
12407 Gnus has to get from the @sc{nntp} server.
12408
12409 @table @code
12410
12411 @item gnus-read-active-file
12412 Set this to @code{nil}, which will inhibit Gnus from requesting the
12413 entire active file from the server.  This file is often v.  large.  You
12414 also have to set @code{gnus-check-new-news} and
12415 @code{gnus-check-bogus-newsgroups} to @code{nil} to make sure that Gnus
12416 doesn't suddenly decide to fetch the active file anyway.
12417
12418 @item gnus-nov-is-evil
12419 This one has to be @code{nil}.  If not, grabbing article headers from
12420 the @sc{nntp} server will not be very fast.  Not all @sc{nntp} servers
12421 support @sc{xover}; Gnus will detect this by itself.
12422 @end table
12423
12424
12425 @node Slow Terminal Connection
12426 @subsection Slow Terminal Connection
12427
12428 Let's say you use your home computer for dialing up the system that
12429 runs Emacs and Gnus.  If your modem is slow, you want to reduce the
12430 amount of data that is sent over the wires as much as possible.
12431
12432 @table @code
12433
12434 @item gnus-auto-center-summary
12435 Set this to @code{nil} to inhibit Gnus from re-centering the summary
12436 buffer all the time.  If it is @code{vertical}, do only vertical
12437 re-centering.  If it is neither @code{nil} nor @code{vertical}, do both
12438 horizontal and vertical recentering.
12439
12440 @item gnus-visible-headers
12441 Cut down on the headers that are included in the articles to the
12442 minimum.  You can, in fact, make do without them altogether---most of the
12443 useful data is in the summary buffer, anyway.  Set this variable to
12444 @samp{^NEVVVVER} or @samp{From:}, or whatever you feel you need.
12445
12446 @item gnus-article-display-hook
12447 Set this hook to all the available hiding commands:
12448 @lisp
12449 (setq gnus-article-display-hook 
12450       '(gnus-article-hide-headers gnus-article-hide-signature
12451         gnus-article-hide-citation))
12452 @end lisp
12453
12454 @item gnus-use-full-window
12455 By setting this to @code{nil}, you can make all the windows smaller.
12456 While this doesn't really cut down much generally, it means that you
12457 have to see smaller portions of articles before deciding that you didn't
12458 want to read them anyway.
12459
12460 @item gnus-thread-hide-subtree
12461 If this is non-@code{nil}, all threads in the summary buffer will be
12462 hidden initially.
12463
12464 @item gnus-updated-mode-lines
12465 If this is @code{nil}, Gnus will not put information in the buffer mode
12466 lines, which might save some time.
12467 @end table
12468
12469
12470 @node Little Disk Space
12471 @subsection Little Disk Space
12472 @cindex disk space
12473
12474 The startup files can get rather large, so you may want to cut their
12475 sizes a bit if you are running out of space.
12476
12477 @table @code
12478
12479 @item gnus-save-newsrc-file
12480 If this is @code{nil}, Gnus will never save @file{.newsrc}---it will
12481 only save @file{.newsrc.eld}.  This means that you will not be able to
12482 use any other newsreaders than Gnus.  This variable is @code{t} by
12483 default. 
12484
12485 @item gnus-save-killed-list
12486 If this is @code{nil}, Gnus will not save the list of dead groups.  You
12487 should also set @code{gnus-check-new-newsgroups} to @code{ask-server}
12488 and @code{gnus-check-bogus-newsgroups} to @code{nil} if you set this
12489 variable to @code{nil}.  This variable is @code{t} by default.
12490
12491 @end table
12492
12493
12494 @node Slow Machine
12495 @subsection Slow Machine
12496 @cindex slow machine
12497
12498 If you have a slow machine, or are just really impatient, there are a
12499 few things you can do to make Gnus run faster.
12500
12501 Set@code{gnus-check-new-newsgroups} and
12502 @code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
12503
12504 Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
12505 @code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
12506 summary buffer faster.
12507
12508 Set @code{gnus-article-display-hook} to @code{nil} to make article
12509 processing a bit faster.
12510
12511
12512 @node Troubleshooting
12513 @section Troubleshooting
12514 @cindex troubleshooting
12515
12516 Gnus works @emph{so} well straight out of the box---I can't imagine any
12517 problems, really.
12518
12519 Ahem.
12520
12521 @enumerate
12522
12523 @item
12524 Make sure your computer is switched on.
12525
12526 @item
12527 Make sure that you really load the current Gnus version.  If you have
12528 been running @sc{gnus}, you need to exit Emacs and start it up again before
12529 Gnus will work.
12530
12531 @item
12532 Try doing an @kbd{M-x gnus-version}.  If you get something that looks
12533 like @samp{Gnus v5.46; nntp 4.0} you have the right files loaded.  If,
12534 on the other hand, you get something like @samp{NNTP 3.x} or @samp{nntp
12535 flee}, you have some old @file{.el} files lying around.  Delete these.
12536
12537 @item
12538 Read the help group (@kbd{G h} in the group buffer) for a FAQ and a
12539 how-to. 
12540 @end enumerate
12541
12542 If all else fails, report the problem as a bug.
12543
12544 @cindex bugs
12545 @cindex reporting bugs
12546
12547 @kindex M-x gnus-bug
12548 @findex gnus-bug
12549 If you find a bug in Gnus, you can report it with the @kbd{M-x gnus-bug}
12550 command. @kbd{M-x set-variable RET debug-on-error RET t RET}, and send
12551 me the backtrace.  I will fix bugs, but I can only fix them if you send
12552 me a precise description as to how to reproduce the bug.
12553
12554 You really can never be too detailed in a bug report.  Always use the
12555 @kbd{M-x gnus-bug} command when you make bug reports, even if it creates
12556 a 10Kb mail each time you use it, and even if you have sent me your
12557 environment 500 times before.  I don't care.  I want the full info each
12558 time.  
12559
12560 It is also important to remember that I have no memory whatsoever.  If
12561 you send a bug report, and I send you a reply, and then you send back
12562 just ``No, it's not! Moron!'', I will have no idea what you are
12563 insulting me about.  Always over-explain everything.  It's much easier
12564 for all of us---if I don't have all the information I need, I will just
12565 mail you and ask for more info, and everything takes more time.
12566
12567 If the problem you're seeing is very visual, and you can't quite explain
12568 it, copy the Emacs window to a file (with @code{xwd}, for instance), put
12569 it somewhere it can be reached, and include the URL of the picture in
12570 the bug report.a
12571
12572 If you just need help, you are better off asking on
12573 @samp{gnu.emacs.gnus}.  I'm not very helpful.
12574
12575 @cindex gnu.emacs.gnus
12576 @cindex ding mailing list
12577 You can also ask on the ding mailing list---@samp{ding@@ifi.uio.no}.
12578 Write to @samp{ding-request@@ifi.uio.no} to subscribe.
12579
12580
12581 @node A Programmers Guide to Gnus
12582 @section A Programmer's Guide to Gnus
12583
12584 It is my hope that other people will figure out smart stuff that Gnus
12585 can do, and that other people will write those smart things as well.  To
12586 facilitate that I thought it would be a good idea to describe the inner
12587 workings of Gnus.  And some of the not-so-inner workings, while I'm at
12588 it.
12589
12590 You can never expect the internals of a program not to change, but I
12591 will be defining (in some details) the interface between Gnus and its
12592 backends (this is written in stone), the format of the score files
12593 (ditto), data structures (some are less likely to change than others)
12594 and general method of operations.
12595
12596 @menu 
12597 * Backend Interface::        How Gnus communicates with the servers.
12598 * Score File Syntax::        A BNF definition of the score file standard.
12599 * Headers::                  How Gnus stores headers internally.
12600 * Ranges::                   A handy format for storing mucho numbers.
12601 * Group Info::               The group info format.
12602 * Emacs/XEmacs Code::        Gnus can be run under all modern Emacsen.
12603 * Various File Formats::     Formats of files that Gnus use.
12604 @end menu
12605
12606
12607 @node Backend Interface
12608 @subsection Backend Interface
12609
12610 Gnus doesn't know anything about @sc{nntp}, spools, mail or virtual
12611 groups.  It only knows how to talk to @dfn{virtual servers}.  A virtual
12612 server is a @dfn{backend} and some @dfn{backend variables}.  As examples
12613 of the first, we have @code{nntp}, @code{nnspool} and @code{nnmbox}.  As
12614 examples of the latter we have @code{nntp-port-number} and
12615 @code{nnmbox-directory}.
12616
12617 When Gnus asks for information from a backend---say @code{nntp}---on
12618 something, it will normally include a virtual server name in the
12619 function parameters.  (If not, the backend should use the ``current''
12620 virtual server.)  For instance, @code{nntp-request-list} takes a virtual
12621 server as its only (optional) parameter.  If this virtual server hasn't
12622 been opened, the function should fail.
12623
12624 Note that a virtual server name has no relation to some physical server
12625 name.  Take this example:
12626
12627 @lisp
12628 (nntp "odd-one" 
12629       (nntp-address "ifi.uio.no") 
12630       (nntp-port-number 4324))
12631 @end lisp
12632
12633 Here the virtual server name is @samp{odd-one} while the name of
12634 the physical server is @samp{ifi.uio.no}. 
12635
12636 The backends should be able to switch between several virtual servers.
12637 The standard backends implement this by keeping an alist of virtual
12638 server environments that it pulls down/pushes up when needed.  
12639
12640 There are two groups of interface functions: @dfn{required functions},
12641 which must be present, and @dfn{optional functions}, which Gnus will
12642 always check whether are present before attempting to call.
12643
12644 All these functions are expected to return data in the buffer
12645 @code{nntp-server-buffer} (@samp{ *nntpd*}), which is somewhat
12646 unfortunately named, but we'll have to live with it.  When I talk about
12647 ``resulting data'', I always refer to the data in that buffer.  When I
12648 talk about ``return value'', I talk about the function value returned by
12649 the function call.
12650
12651 Some backends could be said to be @dfn{server-forming} backends, and
12652 some might be said to not be.  The latter are backends that generally
12653 only operate on one group at a time, and have no concept of ``server''
12654 -- they have a group, and they deliver info on that group and nothing
12655 more.
12656
12657 In the examples and definitions I will refer to the imaginary backend
12658 @code{nnchoke}. 
12659
12660 @cindex @code{nnchoke}
12661
12662 @menu
12663 * Required Backend Functions::        Functions that must be implemented.
12664 * Optional Backend Functions::        Functions that need not be implemented.
12665 * Writing New Backends::              Extending old backends.
12666 @end menu
12667
12668
12669 @node Required Backend Functions
12670 @subsubsection Required Backend Functions
12671
12672 @table @code
12673
12674 @item (nnchoke-retrieve-headers ARTICLES &optional GROUP SERVER FETCH-OLD)
12675
12676 @var{articles} is either a range of article numbers or a list of
12677 @code{Message-ID}s.  Current backends do not fully support either---only
12678 sequences (lists) of article numbers, and most backends do not support
12679 retrieval of @code{Message-ID}s.  But they should try for both. 
12680
12681 The result data should either be HEADs or NOV lines, and the result
12682 value should either be @code{headers} or @code{nov} to reflect this.
12683 This might later be expanded to @code{various}, which will be a mixture
12684 of HEADs and NOV lines, but this is currently not supported by Gnus.  
12685
12686 If @var{fetch-old} is non-@code{nil} it says to try to fetch "extra
12687 headers, in some meaning of the word.  This is generally done by
12688 fetching (at most) @var{fetch-old} extra headers less than the smallest
12689 article number in @code{articles}, and fill in the gaps as well.  The
12690 presence of this parameter can be ignored if the backend finds it
12691 cumbersome to follow the request.  If this is non-@code{nil} and not a
12692 number, do maximum fetches.
12693
12694 Here's an example HEAD:
12695
12696 @example
12697 221 1056 Article retrieved.
12698 Path: ifi.uio.no!sturles
12699 From: sturles@@ifi.uio.no (Sturle Sunde)
12700 Newsgroups: ifi.discussion
12701 Subject: Re: Something very droll
12702 Date: 27 Oct 1994 14:02:57 +0100
12703 Organization: Dept. of Informatics, University of Oslo, Norway
12704 Lines: 26
12705 Message-ID: <38o8e1$a0o@@holmenkollen.ifi.uio.no>
12706 References: <38jdmq$4qu@@visbur.ifi.uio.no>
12707 NNTP-Posting-Host: holmenkollen.ifi.uio.no
12708 .
12709 @end example
12710
12711 So a @code{headers} return value would imply that there's a number of
12712 these in the data buffer.
12713
12714 Here's a BNF definition of such a buffer:
12715
12716 @example
12717 headers        = *head
12718 head           = error / valid-head
12719 error-message  = [ "4" / "5" ] 2number " " <error message> eol
12720 valid-head     = valid-message *header "." eol
12721 valid-message  = "221 " <number> " Article retrieved." eol
12722 header         = <text> eol
12723 @end example
12724
12725 If the return value is @code{nov}, the data buffer should contain
12726 @dfn{network overview database} lines.  These are basically fields
12727 separated by tabs. 
12728
12729 @example
12730 nov-buffer = *nov-line
12731 nov-line   = 8*9 [ field <TAB> ] eol
12732 field      = <text except TAB>
12733 @end example
12734
12735 For a closer explanation what should be in those fields,
12736 @pxref{Headers}. 
12737
12738
12739 @item (nnchoke-open-server SERVER &optional DEFINITIONS)
12740
12741 @var{server} is here the virtual server name.  @var{definitions} is a
12742 list of @code{(VARIABLE VALUE)} pairs that defines this virtual server. 
12743
12744 If the server can't be opened, no error should be signaled.  The backend
12745 may then choose to refuse further attempts at connecting to this
12746 server.  In fact, it should do so. 
12747
12748 If the server is opened already, this function should return a
12749 non-@code{nil} value.  There should be no data returned.
12750
12751
12752 @item (nnchoke-close-server &optional SERVER)
12753
12754 Close connection to @var{server} and free all resources connected
12755 to it.  Return @code{nil} if the server couldn't be closed for some
12756 reason.
12757
12758 There should be no data returned.
12759
12760
12761 @item (nnchoke-request-close)
12762
12763 Close connection to all servers and free all resources that the backend
12764 have reserved.  All buffers that have been created by that backend
12765 should be killed.  (Not the @code{nntp-server-buffer}, though.)  This
12766 function is generally only called when Gnus is shutting down.
12767
12768 There should be no data returned. 
12769
12770
12771 @item (nnchoke-server-opened &optional SERVER)
12772
12773 If @var{server} is the current virtual server, and the connection to the
12774 physical server is alive, then this function should return a
12775 non-@code{nil} vlue.  This function should under no circumstances
12776 attempt to reconnect to a server that is has lost connection to.
12777
12778 There should be no data returned.
12779
12780
12781 @item (nnchoke-status-message &optional SERVER)
12782
12783 This function should return the last error message from @var{server}. 
12784
12785 There should be no data returned.
12786
12787
12788 @item (nnchoke-request-article ARTICLE &optional GROUP SERVER TO-BUFFER)
12789
12790 The result data from this function should be the article specified by
12791 @var{article}.  This might either be a @code{Message-ID} or a number.
12792 It is optional whether to implement retrieval by @code{Message-ID}, but
12793 it would be nice if that were possible.
12794
12795 If @var{to-buffer} is non-@code{nil}, the result data should be returned
12796 in this buffer instead of the normal data buffer.  This is to make it
12797 possible to avoid copying large amounts of data from one buffer to
12798 another, and Gnus mainly request articles to be inserted directly into
12799 its article buffer.
12800
12801 If it is at all possible, this function should return a cons cell where
12802 the car is the group name the article was fetched from, and the cdr is
12803 the article number.  This will enable Gnus to find out what the real
12804 group and article numbers are when fetching articles by
12805 @code{Message-ID}.  If this isn't possible, @code{t} should be returned
12806 on successful article retrievement.
12807
12808
12809 @item (nnchoke-open-group GROUP &optional SERVER)
12810
12811 Make @var{group} the current group.  
12812
12813 There should be no data returned by this function.
12814
12815
12816 @item (nnchoke-request-group GROUP &optional SERVER)
12817
12818 Get data on @var{group}.  This function also has the side effect of
12819 making @var{group} the current group. 
12820
12821 Here's an example of some result data and a definition of the same:
12822
12823 @example
12824 211 56 1000 1059 ifi.discussion
12825 @end example
12826
12827 The first number is the status, which should be @code{211}.  Next is the
12828 total number of articles in the group, the lowest article number, the
12829 highest article number, and finally the group name.  Note that the total
12830 number of articles may be less than one might think while just
12831 considering the highest and lowest article numbers, but some articles
12832 may have been canceled.  Gnus just discards the total-number, so
12833 whether one should take the bother to generate it properly (if that is a
12834 problem) is left as an exercise to the reader.
12835
12836 @example
12837 group-status = [ error / info ] eol
12838 error        = [ "4" / "5" ] 2<number> " " <Error message>
12839 info         = "211 " 3* [ <number> " " ] <string>
12840 @end example
12841
12842
12843 @item (nnchoke-close-group GROUP &optional SERVER)
12844
12845 Close @var{group} and free any resources connected to it.  This will be
12846 a no-op on most backends. 
12847
12848 There should be no data returned.
12849
12850
12851 @item (nnchoke-request-list &optional SERVER)
12852
12853 Return a list of all groups available on @var{server}.  And that means
12854 @emph{all}. 
12855
12856 Here's an example from a server that only carries two groups:
12857
12858 @example
12859 ifi.test 0000002200 0000002000 y
12860 ifi.discussion 3324 3300 n
12861 @end example
12862
12863 On each line we have a group name, then the highest article number in
12864 that group, the lowest article number, and finally a flag.
12865
12866 @example
12867 active-file = *active-line
12868 active-line = name " " <number> " " <number> " " flags eol
12869 name        = <string>
12870 flags       = "n" / "y" / "m" / "x" / "j" / "=" name
12871 @end example
12872
12873 The flag says whether the group is read-only (@samp{n}), is moderated
12874 (@samp{m}), is dead (@samp{x}), is aliased to some other group
12875 (@samp{=other-group} or none of the above (@samp{y}). 
12876
12877
12878 @item (nnchoke-request-post &optional SERVER)
12879
12880 This function should post the current buffer.  It might return whether
12881 the posting was successful or not, but that's not required.  If, for
12882 instance, the posting is done asynchronously, it has generally not been
12883 completed by the time this function concludes.  In that case, this
12884 function should set up some kind of sentinel to beep the user loud and
12885 clear if the posting could not be completed.
12886
12887 There should be no result data from this function. 
12888
12889 @end table
12890
12891
12892 @node Optional Backend Functions
12893 @subsubsection Optional Backend Functions
12894
12895 @table @code
12896
12897 @item (nnchoke-retrieve-groups GROUPS &optional SERVER)
12898
12899 @var{groups} is a list of groups, and this function should request data
12900 on all those groups.  How it does it is of no concern to Gnus, but it
12901 should attempt to do this in a speedy fashion.
12902
12903 The return value of this function can be either @code{active} or
12904 @code{group}, which says what the format of the result data is.  The
12905 former is in the same format as the data from
12906 @code{nnchoke-request-list}, while the latter is a buffer full of lines
12907 in the same format as @code{nnchoke-request-group} gives.
12908
12909 @example
12910 group-buffer = *active-line / *group-status
12911 @end example
12912
12913
12914 @item (nnchoke-request-update-info GROUP INFO &optional SERVER)
12915
12916 A Gnus group info (@pxref{Group Info}) is handed to the backend for
12917 alterations.  This comes in handy if the backend really carries all the
12918 information (as is the case with virtual an imap groups).  This function
12919 may alter the info in any manner it sees fit, and should return the
12920 (altered) group info.  This function may alter the group info
12921 destructively, so no copying is needed before boogeying. 
12922
12923 There should be no result data from this function.
12924
12925
12926 @item (nnchoke-request-type GROUP &optional ARTICLE)
12927
12928 When the user issues commands for ``sending news'' (@kbd{F} in the
12929 summary buffer, for instance), Gnus has to know whether the article the
12930 user is following up is news or mail.  This function should return
12931 @code{news} if @var{article} in @var{group} is news, @code{mail} if it
12932 is mail and @code{unknown} if the type can't be decided.  (The
12933 @var{article} parameter is necessary in @code{nnvirtual} groups which
12934 might very well combine mail groups and news groups.)
12935
12936 There should be no result data from this function.
12937
12938
12939 @item (nnchoke-request-update-mark GROUP ARTICLE MARK)
12940
12941 If the user tries to set a mark that the backend doesn't like, this
12942 function may change the mark.  Gnus will use whatever this function
12943 returns as the mark for @var{article} instead of the original
12944 @var{mark}.  If the backend doesn't care, it must return the original
12945 @var{mark}, and not @code{nil} or any other type of garbage.  
12946
12947 The only use for this that I can see is what @code{nnvirtual} does with
12948 it---if a component group is auto-expirable, marking an article as read
12949 in the virtual group should result in the article being marked as
12950 expirable. 
12951
12952 There should be no result data from this function.
12953
12954
12955 @item (nnchoke-request-scan &optional GROUP SERVER)
12956
12957 This function may be called at any time (by Gnus or anything else) to
12958 request that the backend check for incoming articles, in one way or
12959 another.  A mail backend will typically read the spool file or query the
12960 POP server when this function is invoked.  The @var{group} doesn't have
12961 to be heeded---if the backend decides that it is too much work just
12962 scanning for a single group, it may do a total scan of all groups.  It
12963 would be nice, however, to keep things local if that's practical.
12964
12965 There should be no result data from this function.
12966
12967
12968 @item (nnchoke-request-asynchronous GROUP &optional SERVER ARTICLES)
12969
12970 This is a request to fetch articles asynchronously later.
12971 @var{articles} is an alist of @var{(article-number line-number)}.  One
12972 would generally expect that if one later fetches article number 4, for
12973 instance, some sort of asynchronous fetching of the articles after 4
12974 (which might be 5, 6, 7 or 11, 3, 909 depending on the order in that
12975 alist) would be fetched asynchronously, but that is left up to the
12976 backend.  Gnus doesn't care.
12977
12978 There should be no result data from this function.
12979  
12980
12981 @item (nnchoke-request-group-description GROUP &optional SERVER)
12982
12983 The result data from this function should be a description of
12984 @var{group}. 
12985
12986 @example
12987 description-line = name <TAB> description eol
12988 name             = <string>
12989 description      = <text>
12990 @end example
12991
12992 @item (nnchoke-request-list-newsgroups &optional SERVER)
12993
12994 The result data from this function should be the description of all
12995 groups available on the server.
12996
12997 @example
12998 description-buffer = *description-line
12999 @end example
13000
13001
13002 @item (nnchoke-request-newgroups DATE &optional SERVER)
13003
13004 The result data from this function should be all groups that were
13005 created after @samp{date}, which is in normal human-readable date
13006 format.  The data should be in the active buffer format.
13007
13008
13009 @item (nnchoke-request-create-group GROUP &optional SERVER)
13010
13011 This function should create an empty group with name @var{group}.  
13012
13013 There should be no return data.
13014
13015
13016 @item (nnchoke-request-expire-articles ARTICLES &optional GROUP SERVER FORCE)
13017
13018 This function should run the expiry process on all articles in the
13019 @var{articles} range (which is currently a simple list of article
13020 numbers.)  It is left up to the backend to decide how old articles
13021 should be before they are removed by this function.  If @var{force} is
13022 non-@code{nil}, all @var{articles} should be deleted, no matter how new
13023 they are. 
13024
13025 This function should return a list of articles that it did not/was not
13026 able to delete.
13027
13028 There should be no result data returned.
13029
13030
13031 @item (nnchoke-request-move-article ARTICLE GROUP SERVER ACCEPT-FORM
13032 &optional LAST)
13033
13034 This function should move @var{article} (which is a number) from
13035 @var{group} by calling @var{accept-form}.  
13036
13037 This function should ready the article in question for moving by
13038 removing any header lines it has added to the article, and generally
13039 should ``tidy up'' the article.  Then it should @code{eval}
13040 @var{accept-form} in the buffer where the ``tidy'' article is.  This
13041 will do the actual copying.  If this @code{eval} returns a
13042 non-@code{nil} value, the article should be removed.
13043
13044 If @var{last} is @code{nil}, that means that there is a high likelihood
13045 that there will be more requests issued shortly, so that allows some
13046 optimizations. 
13047
13048 The function should return a cons where the car is the group name and
13049 the cdr is the article number that the article was entered as.
13050
13051 There should be no data returned. 
13052
13053
13054 @item (nnchoke-request-accept-article GROUP &optional SERVER LAST)
13055
13056 This function takes the current buffer and inserts it into @var{group}.
13057 If @var{last} in @code{nil}, that means that there will be more calls to
13058 this function in short order.
13059
13060 The function should return a cons where the car is the group name and
13061 the cdr is the article number that the article was entered as.
13062
13063 There should be no data returned.
13064
13065
13066 @item (nnchoke-request-replace-article ARTICLE GROUP BUFFER)
13067
13068 This function should remove @var{article} (which is a number) from
13069 @var{group} and insert @var{buffer} there instead.
13070
13071 There should be no data returned.
13072
13073
13074 @item (nnchoke-request-delete-group GROUP FORCE &optional SERVER)
13075
13076 This function should delete @var{group}.  If @var{force}, it should
13077 really delete all the articles in the group, and then delete the group
13078 itself.  (If there is such a thing as ``the group itself''.)
13079
13080 There should be no data returned.
13081
13082
13083 @item (nnchoke-request-rename-group GROUP NEW-NAME &optional SERVER)
13084
13085 This function should rename @var{group} into @var{new-name}.  All
13086 articles that are in @var{group} should move to @var{new-name}.
13087
13088 There should be no data returned.
13089
13090 @end table
13091
13092
13093 @node Writing New Backends
13094 @subsubsection Writing New Backends
13095
13096 The various backends share many similarities.  @code{nnml} is just like
13097 @code{nnspool}, but it allows you to edit the articles on the server.
13098 @code{nnmh} is just like @code{nnml}, but it doesn't use an active file,
13099 and it doesn't maintain overview databases.  @code{nndir} is just like
13100 @code{nnml}, but it has no concept of ``groups'', and it doesn't allow
13101 editing articles.
13102
13103 It would make sense if it were possible to ``inherit'' functions from
13104 backends when writing new backends.  And, indeed, you can do that if you
13105 want to.  (You don't have to if you don't want to, of course.)  
13106
13107 All the backends declare their public variables and functions by using a
13108 package called @code{nnoo}.  
13109
13110 To inherit functions from other backends (and allow other backends to
13111 inherit functions from the current backend), you should use the
13112 following macros:
13113 following. 
13114
13115 @table @code
13116
13117 @item nnoo-declare
13118 This macro declares the first parameter to be a child of the subsequent
13119 parameters.  For instance:
13120
13121 @lisp
13122 (nnoo-declare nndir
13123   nnml nnmh)
13124 @end lisp
13125
13126 @code{nndir} has here declared that it intends to inherit functions from
13127 both @code{nnml} and @code{nnmh}.
13128
13129 @item defvoo
13130 This macro is equivalent to @code{defvar}, but registers the variable as
13131 a public server variable.  Most state-oriented variables should be
13132 declared with @code{defvoo} instead of @code{defvar}.  
13133
13134 In addition to the normal @code{defvar} parameters, it takes a list of
13135 variables in the parent backends to map the variable to when executing
13136 a function in those backends.
13137
13138 @lisp
13139 (defvoo nndir-directory nil
13140   "Where nndir will look for groups."
13141   nnml-current-directory nnmh-current-directory)
13142 @end lisp
13143
13144 This means that @code{nnml-current-directory} will be set to
13145 @code{nndir-directory} when an @code{nnml} function is called on behalf
13146 of @code{nndir}.  (The same with @code{nnmh}.)  
13147
13148 @item nnoo-define-basics
13149 This macro defines some common functions that almost all backends should
13150 have.
13151
13152 @example
13153 (nnoo-define-basics nndir)
13154 @end example
13155
13156 @item deffoo
13157 This macro is just like @code{defun} and takes the same parameters.  In
13158 addition to doing the normal @code{defun} things, it registers the
13159 function as being public so that other backends can inherit it.
13160
13161 @item nnoo-map-functions
13162 This macro allows mapping of functions from the current backend to
13163 functions from the parent backends.
13164
13165 @example
13166 (nnoo-map-functions nndir
13167   (nnml-retrieve-headers 0 nndir-current-group 0 0)
13168   (nnmh-request-article 0 nndir-current-group 0 0))
13169 @end example
13170
13171 This means that when @code{nndir-retrieve-headers} is called, the first,
13172 third, and fourth parameters will be passed on to
13173 @code{nnml-retrieve-headers}, while the second parameter is set to the
13174 value of @code{nndir-current-group}.
13175
13176 @item nnoo-import
13177 This macro allows importing functions from backends.  It should be the
13178 last thing in the source file, since it will only define functions that
13179 haven't already been defined.
13180
13181 @example
13182 (nnoo-import nndir
13183   (nnmh
13184    nnmh-request-list
13185    nnmh-request-newgroups)
13186   (nnml))
13187 @end example
13188
13189 This means that calls to @code{nndir-request-list} should just be passed
13190 on to @code{nnmh-request-list}, while all public functions from
13191 @code{nnml} that haven't been defined in @code{nndir} yet should be
13192 defined now.
13193
13194 @end table
13195
13196 Below is a slightly shortened version of the @code{nndir} backend.
13197
13198 @lisp
13199 ;;; nndir.el --- single directory newsgroup access for Gnus
13200 ;; Copyright (C) 1995,96 Free Software Foundation, Inc.
13201
13202 ;;; Code:
13203
13204 (require 'nnheader)
13205 (require 'nnmh)
13206 (require 'nnml)
13207 (require 'nnoo)
13208 (eval-when-compile (require 'cl))
13209
13210 (nnoo-declare nndir
13211   nnml nnmh)
13212
13213 (defvoo nndir-directory nil
13214   "Where nndir will look for groups."
13215   nnml-current-directory nnmh-current-directory)
13216
13217 (defvoo nndir-nov-is-evil nil
13218   "*Non-nil means that nndir will never retrieve NOV headers."
13219   nnml-nov-is-evil)
13220
13221 (defvoo nndir-current-group "" nil nnml-current-group nnmh-current-group)
13222 (defvoo nndir-top-directory nil nil nnml-directory nnmh-directory)
13223 (defvoo nndir-get-new-mail nil nil nnml-get-new-mail nnmh-get-new-mail)
13224
13225 (defvoo nndir-status-string "" nil nnmh-status-string)
13226 (defconst nndir-version "nndir 1.0")
13227
13228 ;;; Interface functions.
13229
13230 (nnoo-define-basics nndir)
13231
13232 (deffoo nndir-open-server (server &optional defs)
13233   (setq nndir-directory
13234         (or (cadr (assq 'nndir-directory defs))
13235             server))
13236   (unless (assq 'nndir-directory defs)
13237     (push `(nndir-directory ,server) defs))
13238   (push `(nndir-current-group
13239           ,(file-name-nondirectory (directory-file-name nndir-directory)))
13240         defs)
13241   (push `(nndir-top-directory
13242           ,(file-name-directory (directory-file-name nndir-directory)))
13243         defs)
13244   (nnoo-change-server 'nndir server defs))
13245
13246 (nnoo-map-functions nndir
13247   (nnml-retrieve-headers 0 nndir-current-group 0 0)
13248   (nnmh-request-article 0 nndir-current-group 0 0)
13249   (nnmh-request-group nndir-current-group 0 0)
13250   (nnmh-close-group nndir-current-group 0))
13251
13252 (nnoo-import nndir
13253   (nnmh
13254    nnmh-status-message
13255    nnmh-request-list
13256    nnmh-request-newgroups))
13257
13258 (provide 'nndir)
13259 @end lisp
13260
13261
13262
13263 @node Score File Syntax
13264 @subsection Score File Syntax
13265
13266 Score files are meant to be easily parsable, but yet extremely
13267 mallable.   It was decided that something that had the same read syntax
13268 as an Emacs Lisp list would fit that spec.
13269
13270 Here's a typical score file:
13271
13272 @lisp
13273 (("summary"
13274   ("win95" -10000 nil s)
13275   ("Gnus"))
13276  ("from"
13277   ("Lars" -1000))
13278  (mark -100))
13279 @end lisp
13280
13281 BNF definition of a score file:
13282
13283 @example
13284 score-file       = "" / "(" *element ")"
13285 element          = rule / atom
13286 rule             = string-rule / number-rule / date-rule
13287 string-rule      = "(" quote string-header quote space *string-match ")"
13288 number-rule      = "(" quote number-header quote space *number-match ")"
13289 date-rule        = "(" quote date-header quote space *date-match ")"
13290 quote            = <ascii 34>
13291 string-header    = "subject" / "from" / "references" / "message-id" / 
13292                    "xref" / "body" / "head" / "all" / "followup"
13293 number-header    = "lines" / "chars"
13294 date-header      = "date"
13295 string-match     = "(" quote <string> quote [ "" / [ space score [ "" / 
13296                    space date [ "" / [ space string-match-t ] ] ] ] ] ")"
13297 score            = "nil" / <integer>
13298 date             = "nil" / <natural number>
13299 string-match-t   = "nil" / "s" / "substring" / "S" / "Substring" / 
13300                    "r" / "regex" / "R" / "Regex" /
13301                    "e" / "exact" / "E" / "Exact" /
13302                    "f" / "fuzzy" / "F" / "Fuzzy"
13303 number-match     = "(" <integer> [ "" / [ space score [ "" / 
13304                    space date [ "" / [ space number-match-t ] ] ] ] ] ")"
13305 number-match-t   = "nil" / "=" / "<" / ">" / ">=" / "<="
13306 date-match       = "(" quote <string> quote [ "" / [ space score [ "" / 
13307                    space date [ "" / [ space date-match-t ] ] ] ] ")"
13308 date-match-t     = "nil" / "at" / "before" / "after"
13309 atom             = "(" [ required-atom / optional-atom ] ")"
13310 required-atom    = mark / expunge / mark-and-expunge / files /
13311                    exclude-files / read-only / touched
13312 optional-atom    = adapt / local / eval 
13313 mark             = "mark" space nil-or-number
13314 nil-or-number    = "nil" / <integer>
13315 expunge          = "expunge" space nil-or-number
13316 mark-and-expunge = "mark-and-expunge" space nil-or-number
13317 files            = "files" *[ space <string> ]
13318 exclude-files    = "exclude-files" *[ space <string> ]
13319 read-only        = "read-only" [ space "nil" / space "t" ]
13320 adapt            = "adapt" [ space "nil" / space "t" / space adapt-rule ]
13321 adapt-rule       = "(" *[ <string> *[ "(" <string> <integer> ")" ] ")"
13322 local            = "local" *[ space "(" <string> space <form> ")" ]
13323 eval             = "eval" space <form>
13324 space            = *[ " " / <TAB> / <NEWLINE> ]
13325 @end example
13326
13327 Any unrecognized elements in a score file should be ignored, but not
13328 discarded.  
13329
13330 As you can see, white space is needed, but the type and amount of white
13331 space is irrelevant.  This means that formatting of the score file is
13332 left up to the programmer---if it's simpler to just spew it all out on
13333 one looong line, then that's ok.
13334
13335 The meaning of the various atoms are explained elsewhere in this
13336 manual. 
13337
13338
13339 @node Headers
13340 @subsection Headers
13341
13342 Gnus uses internally a format for storing article headers that
13343 corresponds to the @sc{nov} format in a mysterious fashion.  One could
13344 almost suspect that the author looked at the @sc{nov} specification and
13345 just shamelessly @emph{stole} the entire thing, and one would be right.
13346
13347 @dfn{Header} is a severely overloaded term.  ``Header'' is used in
13348 RFC1036 to talk about lines in the head of an article (eg.,
13349 @code{From}).  It is used by many people as a synonym for
13350 ``head''---``the header and the body''.  (That should be avoided, in my
13351 opinion.)  And Gnus uses a format internally that it calls ``header'',
13352 which is what I'm talking about here.  This is a 9-element vector,
13353 basically, with each header (ouch) having one slot.
13354
13355 These slots are, in order: @code{number}, @code{subject}, @code{from},
13356 @code{date}, @code{id}, @code{references}, @code{chars}, @code{lines},
13357 @code{xref}.  There are macros for accessing and setting these
13358 slots---they all have predictable names beginning with
13359 @code{mail-header-} and @code{mail-header-set-}, respectively.
13360
13361 The @code{xref} slot is really a @code{misc} slot.  Any extra info will
13362 be put in there.
13363
13364
13365 @node Ranges
13366 @subsection Ranges
13367
13368 @sc{gnus} introduced a concept that I found so useful that I've started
13369 using it a lot and have elaborated on it greatly. 
13370
13371 The question is simple: If you have a large amount of objects that are
13372 identified by numbers (say, articles, to take a @emph{wild} example)
13373 that you want to callify as being ``included'', a normal sequence isn't
13374 very useful.  (A 200,000 length sequence is a bit long-winded.)
13375
13376 The solution is as simple as the question: You just collapse the
13377 sequence. 
13378
13379 @example
13380 (1 2 3 4 5 6 10 11 12)
13381 @end example
13382
13383 is transformed into
13384
13385 @example
13386 ((1 . 6) (10 . 12))
13387 @end example
13388
13389 To avoid having those nasty @samp{(13 . 13)} elements to denote a
13390 lonesome object, a @samp{13} is a valid element:
13391
13392 @example
13393 ((1 . 6) 7 (10 . 12))
13394 @end example
13395
13396 This means that comparing two ranges to find out whether they are equal
13397 is slightly tricky:
13398
13399 @example
13400 ((1 . 5) 7 8 (10 . 12))
13401 @end example
13402
13403 and
13404
13405 @example
13406 ((1 . 5) (7 . 8) (10 . 12))
13407 @end example
13408
13409 are equal.  In fact, any non-descending list is a range:
13410
13411 @example
13412 (1 2 3 4 5)
13413 @end example
13414
13415 is a perfectly valid range, although a pretty long-winded one.  This is
13416 also legal:
13417
13418 @example
13419 (1 . 5)
13420 @end example
13421
13422 and is equal to the previous range.
13423
13424 Here's a BNF definition of ranges.  Of course, one must remember the
13425 semantic requirement that the numbers are non-descending.  (Any number
13426 of repetition of the same number is allowed, but apt to disappear in
13427 range handling.)
13428
13429 @example
13430 range           = simple-range / normal-range
13431 simple-range    = "(" number " . " number ")"
13432 normal-range    = "(" start-contents ")"
13433 contents        = "" / simple-range *[ " " contents ] / 
13434                   number *[ " " contents ]
13435 @end example
13436
13437 Gnus currently uses ranges to keep track of read articles and article
13438 marks.  I plan on implementing a number of range operators in C if The
13439 Powers That Be are willing to let me.  (I haven't asked yet, because I
13440 need to do some more thinking on what operators I need to make life
13441 totally range-based without ever having to convert back to normal
13442 sequences.) 
13443
13444
13445 @node Group Info
13446 @subsection Group Info
13447
13448 Gnus stores all permanent info on groups in a @dfn{group info} list.
13449 This list is from three to six elements (or more) long and exhaustively
13450 describes the group.
13451
13452 Here are two example group infos; one is a very simple group while the
13453 second is a more complex one:
13454
13455 @example
13456 ("no.group" 5 (1 . 54324))
13457
13458 ("nnml:my.mail" 3 ((1 . 5) 9 (20 . 55))
13459                 ((tick (15 . 19)) (replied 3 6 (19 . 3)))
13460                 (nnml "")
13461                 (auto-expire (to-address "ding@@ifi.uio.no")))
13462 @end example
13463
13464 The first element is the group name as Gnus knows the group; the second
13465 is the group level; the third is the read articles in range format; the
13466 fourth is a list of article marks lists; the fifth is the select method;
13467 and the sixth contains the group parameters.
13468
13469 Here's a BNF definition of the group info format:
13470
13471 @example
13472 info          = "(" group space level space read 
13473                 [ "" / [ space marks-list [ "" / [ space method [ "" /
13474                 space parameters ] ] ] ] ] ")" 
13475 group         = quote <string> quote
13476 level         = <integer in the range of 1 to inf>
13477 read          = range
13478 marks-lists   = nil / "(" *marks ")"
13479 marks         = "(" <string> range ")"
13480 method        = "(" <string> *elisp-forms ")"
13481 parameters    = "(" *elisp-forms ")"
13482 @end example
13483
13484 Actually that @samp{marks} rule is a fib.  A @samp{marks} is a
13485 @samp{<string>} consed on to a @samp{range}, but that's a bitch to say
13486 in pseudo-BNF.
13487
13488
13489 @node Emacs/XEmacs Code
13490 @subsection Emacs/XEmacs Code
13491 @cindex XEmacs
13492 @cindex Emacsen
13493
13494 While Gnus runs under Emacs, XEmacs and Mule, I decided that one of the
13495 platforms must be the primary one.  I chose Emacs.  Not because I don't
13496 like XEmacs or Mule, but because it comes first alphabetically.
13497
13498 This means that Gnus will byte-compile under Emacs with nary a warning,
13499 while XEmacs will pump out gigabytes of warnings while byte-compiling.
13500 As I use byte-compilation warnings to help me root out trivial errors in
13501 Gnus, that's very useful.  
13502
13503 I've also consistently used Emacs function interfaces, but have used
13504 Gnusey aliases for the functions.  To take an example:  Emacs defines a
13505 @code{run-at-time} function while XEmacs defines a @code{start-itimer}
13506 function.  I then define a function called @code{gnus-run-at-time} that
13507 takes the same parameters as the Emacs @code{run-at-time}.  When running
13508 Gnus under Emacs, the former function is just an alias for the latter.
13509 However, when running under XEmacs, the former is an alias for the
13510 following function:
13511
13512 @lisp
13513 (defun gnus-xmas-run-at-time (time repeat function &rest args)
13514   (start-itimer
13515    "gnus-run-at-time"
13516    `(lambda ()
13517       (,function ,@@args))
13518    time repeat))
13519 @end lisp
13520
13521 This sort of thing has been done for bunches of functions.  Gnus does
13522 not redefine any native Emacs functions while running under XEmacs---it
13523 does this @code{defalias} thing with Gnus equivalents instead.  Cleaner
13524 all over.
13525
13526 Of course, I could have chosen XEmacs as my native platform and done
13527 mapping functions the other way around.  But I didn't.  The performance
13528 hit these indirections impose on Gnus under XEmacs should be slight.
13529
13530
13531 @node Various File Formats
13532 @subsection Various File Formats
13533
13534 @menu
13535 * Active File Format::      Information on articles and groups available.
13536 * Newsgroups File Format::  Group descriptions.
13537 @end menu
13538
13539
13540 @node Active File Format
13541 @subsubsection Active File Format
13542
13543 The active file lists all groups that are available on the server in
13544 question.  It also lists the highest and lowest current article numbers
13545 in each group.  
13546
13547 Here's an excerpt from a typical active file:
13548
13549 @example
13550 soc.motss 296030 293865 y
13551 alt.binaries.pictures.fractals 3922 3913 n
13552 comp.sources.unix 1605 1593 m
13553 comp.binaries.ibm.pc 5097 5089 y
13554 no.general 1000 900 y
13555 @end example
13556
13557 Here's a pseudo-BNF definition of this file:
13558
13559 @example
13560 active      = *group-line
13561 group-line  = group space high-number space low-number space flag <NEWLINE>
13562 group       = <non-white-space string>
13563 space       = " "
13564 high-number = <non-negative integer>
13565 low-number  = <positive integer>
13566 flag        = "y" / "n" / "m" / "j" / "x" / "=" group
13567 @end example
13568
13569
13570 @node Newsgroups File Format
13571 @subsubsection Newsgroups File Format
13572
13573 The newsgroups file lists groups along with their descriptions.  Not all
13574 groups on the server have to be listed,  and not all groups in the file
13575 have to exist on the server.  The file is meant purely as information to
13576 the user.
13577
13578 The format is quite simple; a group name, a tab, and the description.
13579 Here's the definition:
13580
13581 @example
13582 newsgroups    = *line
13583 line          = group tab description <NEWLINE>
13584 group         = <non-white-space string>
13585 tab           = <TAB>
13586 description   = <string>
13587 @end example
13588
13589
13590 @node Emacs for Heathens
13591 @section Emacs for Heathens
13592
13593 Believe it or not, but some people who use Gnus haven't really used
13594 Emacs much before they embarked on their journey on the Gnus Love Boat.
13595 If you are one of those unfortunates whom ``@kbd{M-C-a}'', ``kill the
13596 region'', and ``set @code{gnus-flargblossen} to an alist where the key
13597 is a regexp that is used for matching on the group name'' are magical
13598 phrases with little or no meaning, then this appendix is for you.  If
13599 you are already familiar with Emacs, just ignore this and go fondle your
13600 cat instead.
13601
13602 @menu
13603 * Keystrokes::      Entering text and executing commands.
13604 * Emacs Lisp::      The built-in Emacs programming language.
13605 @end menu
13606
13607
13608 @node Keystrokes
13609 @subsection Keystrokes
13610
13611 @itemize @bullet
13612 @item
13613 Q: What is an experienced Emacs user?
13614
13615 @item 
13616 A: A person who wishes that the terminal had pedals.
13617 @end itemize
13618
13619 Yes, when you use Emacs, you are apt to use the control key, the shift
13620 key and the meta key a lot.  This is very annoying to some people
13621 (notably @code{vi}le users), and the rest of us just love the hell out
13622 of it.  Just give up and submit.  Emacs really does stand for
13623 ``Escape-Meta-Alt-Control-Shift'', and not ``Editing Macros'', as you
13624 may have heard from other disreputable sources (like the Emacs author).
13625
13626 The shift key is normally located near your pinky fingers, and are
13627 normally used to get capital letters and stuff.  You probably use it all
13628 the time.  The control key is normally marked ``CTRL'' or something like
13629 that.  The meta key is, funnily enough, never marked as such on any
13630 keyboards.  The one I'm currently at has a key that's marked ``Alt'',
13631 which is the meta key on this keyboard.  It's usually located somewhere
13632 to the left hand side of the keyboard, usually on the bottom row.
13633
13634 Now, us Emacs people doesn't say ``press the meta-control-m key'',
13635 because that's just too inconvenient.  We say ``press the @kbd{M-C-m}
13636 key''.  @kbd{M-} is the prefix that means ``meta'' and ``C-'' is the
13637 prefix that means ``control''.  So ``press @kbd{C-k}'' means ``press
13638 down the control key, and hold it down while you press @kbd{k}''.
13639 ``Press @kbd{M-C-k}'' means ``press down and hold down the meta key and
13640 the control key and then press @kbd{k}''.  Simple, ay?
13641
13642 This is somewhat complicated by the fact that not all keyboards have a
13643 meta key.  In that case you can use the ``escape'' key.  Then @kbd{M-k}
13644 means ``press escape, release escape, press @kbd{k}''.  That's much more
13645 work than if you have a meta key, so if that's the case, I respectfully
13646 suggest you get a real keyboard with a meta key.  You can't live without
13647 it.
13648
13649
13650
13651 @node Emacs Lisp
13652 @subsection Emacs Lisp
13653
13654 Emacs is the King of Editors because it's really a Lisp interpreter.
13655 Each and every key you tap runs some Emacs Lisp code snippet, and since
13656 Emacs Lisp is an interpreted language, that means that you can configure
13657 any key to run any arbitrary code.  You just, like, do it.
13658
13659 Gnus is written in Emacs Lisp, and is run as a bunch of interpreted
13660 functions.  (These are byte-compiled for speed, but it's still
13661 interpreted.)  If you decide that you don't like the way Gnus does
13662 certain things, it's trivial to have it do something a different way.
13663 (Well, at least if you know how to write Lisp code.)  However, that's
13664 beyond the scope of this manual, so we are simply going to talk about
13665 some common constructs that you normally use in your @file{.emacs} file
13666 to customize Gnus.
13667
13668 If you want to set the variable @code{gnus-florgbnize} to four (4), you
13669 write the following:
13670
13671 @lisp
13672 (setq gnus-florgbnize 4)
13673 @end lisp
13674
13675 This function (really ``special form'') @code{setq} is the one that can
13676 set a variable to some value.  This is really all you need to know.  Now
13677 you can go and fill your @code{.emacs} file with lots of these to change
13678 how Gnus works.
13679
13680 If you have put that thing in your @code{.emacs} file, it will be read
13681 and @code{eval}ed (which is lisp-ese for ``run'') the next time you
13682 start Emacs.  If you want to change the variable right away, simply say
13683 @kbd{C-x C-e} after the closing parenthesis.  That will @code{eval} the
13684 previous ``form'', which here is a simple @code{setq} statement.
13685
13686 Go ahead---just try it, if you're located at your Emacs.  After you
13687 @kbd{C-x C-e}, you will see @samp{4} appear in the echo area, which
13688 is the return value of the form you @code{eval}ed.
13689
13690 Some pitfalls:
13691
13692 If the manual says ``set @code{gnus-read-active-file} to @code{some}'',
13693 that means:
13694
13695 @lisp
13696 (setq gnus-read-active-file 'some)
13697 @end lisp
13698
13699 On the other hand, if the manual says ``set @code{gnus-nntp-server} to
13700 @samp{nntp.ifi.uio.no}'', that means:
13701
13702 @lisp
13703 (setq gnus-nntp-server "nntp.ifi.uio.no")
13704 @end lisp
13705
13706 So be careful not to mix up strings (the latter) with symbols (the
13707 former).  The manual is unambiguous, but it can be confusing.
13708
13709
13710 @include gnus-faq.texi
13711
13712 @node Index
13713 @chapter Index
13714 @printindex cp
13715
13716 @node Key Index
13717 @chapter Key Index
13718 @printindex ky
13719
13720 @summarycontents
13721 @contents
13722 @bye
13723
13724 @iftex
13725 @iflatex
13726 \end{document}
13727 @end iflatex
13728 @end iftex
13729
13730 @c End:
13731