*** empty log message ***
[gnus] / texi / gnus.texi
1 \input texinfo                  @c -*-texinfo-*-
2
3 @setfilename gnus.info
4 @settitle September Gnus Manual
5 @synindex fn cp
6 @synindex vr cp
7 @synindex pg cp
8 @iftex
9 @finalout
10 @end iftex
11 @setchapternewpage odd
12
13 @iftex
14 @iflatex
15 \documentclass[twoside,a4paper,openright]{book}
16 \usepackage[latin1]{inputenc}
17 % \usepackage{fontenc}
18 % \usepackage{babel}
19 \usepackage{pagestyle}
20 \usepackage{epsfig}
21 % \usepackage{ifitricks}
22 \fontfamily{bembo}\selectfont
23
24 \makeindex
25 \begin{document}
26
27 \newcommand{\gnuschaptername}{}
28 \newcommand{\gnussectionname}{}
29
30 \newcommand{\gnusbackslash}{/}
31
32 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
33 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
34
35 \newcommand{\gnuskindex}[1]{\index{#1}}
36 \newcommand{\gnusindex}[1]{\index{#1}}
37
38 \newcommand{\gnustt}[1]{{\textbf{\textsf{#1}}}}
39 \newcommand{\gnuscode}[1]{\gnustt{#1}}
40 \newcommand{\gnussamp}[1]{``\gnustt{#1}''}
41 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
42 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
43 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
44 \newcommand{\gnusdfn}[1]{\textit{#1}}
45 \newcommand{\gnusi}[1]{\textit{#1}}
46 \newcommand{\gnusstrong}[1]{\textbf{#1}}
47 \newcommand{\gnusemph}[1]{\textit{#1}}
48 \newcommand{\gnusvar}[1]{\textsl{\textsf{#1}}}
49 \newcommand{\gnussc}[1]{\textsc{#1}}
50 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
51 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
52
53 \newcommand{\gnusbullet}{{${\bullet}$}}
54 \newcommand{\gnusdollar}{\$}
55 \newcommand{\gnusampersand}{\&}
56 \newcommand{\gnuspercent}{\%}
57 \newcommand{\gnushash}{\#}
58 \newcommand{\gnushat}{\symbol{"5E}}
59 \newcommand{\gnusunderline}{\symbol{"5F}}
60 \newcommand{\gnustilde}{\symbol{"7E}}
61 \newcommand{\gnusless}{{$<$}}
62 \newcommand{\gnusgreater}{{$>$}}
63
64 \newcommand{\gnushead}{\raisebox{-1cm}{\epsfig{figure=gnus-head.eps,height=1cm}}}
65 \newcommand{\gnusinteresting}{
66 \marginpar[\hspace{2.5cm}\gnushead]{\gnushead}
67 }
68
69 \newcommand{\gnuschapter}[1]{
70 \renewcommand{\gnussectionname}{}
71 \chapter{#1}
72 \renewcommand{\gnuschaptername}{#1}
73 \thispagestyle{empty}
74 % \epsfig{figure=gnus-herd-\arabic{chapter}.eps,height=15cm}
75 \clearpage
76 }
77
78 \newcommand{\gnusitemx}[1]{\vspace{-\itemsep}\item#1}
79
80 \newcommand{\gnussection}[1]{
81 \renewcommand{\gnussectionname}{#1}
82 \section{#1}
83 }
84
85 \newenvironment{codelist}%
86 {\begin{list}{}{
87 }
88 }{\end{list}}
89
90 \newenvironment{kbdlist}%
91 {\begin{list}{}{
92 \labelwidth=0cm
93 }
94 }{\end{list}}
95
96 \newenvironment{dfnlist}%
97 {\begin{list}{}{
98 }
99 }{\end{list}}
100
101 \newenvironment{stronglist}%
102 {\begin{list}{}{
103 }
104 }{\end{list}}
105
106 \newenvironment{samplist}%
107 {\begin{list}{}{
108 }
109 }{\end{list}}
110
111 \newenvironment{varlist}%
112 {\begin{list}{}{
113 }
114 }{\end{list}}
115
116 \newenvironment{emphlist}%
117 {\begin{list}{}{
118 }
119 }{\end{list}}
120
121 \newpagestyle{gnus}%
122 {
123 {
124 \ifodd\count0
125 {
126 \hspace*{-2ex}
127 \underline{
128 \makebox[\headtextwidth]{
129 \hspace*{-2.3ex}
130 \textbf{\arabic{chapter}.\arabic{section}}
131 \textbf{\gnussectionname\hfill\arabic{page}}
132 }}
133 }
134 \else
135 {
136 \hspace*{-2.25cm}
137 \underline{
138 \hspace*{-2.3ex}
139 \makebox[\headtextwidth]{
140 \textbf{\arabic{page}\hfill\gnuschaptername}
141 }}
142 }
143 \fi
144 }
145 }
146 {
147 \ifodd\count0
148 \mbox{} \hfill 
149 \raisebox{-0.5cm}{\epsfig{figure=gnus-big-logo.eps,height=1cm}}
150 \else
151 \raisebox{-0.5cm}{\epsfig{figure=gnus-big-logo.eps,height=1cm}}
152 \hfill \mbox{}
153 \fi
154 }
155 \pagestyle{gnus}
156
157 @end iflatex
158 @end iftex
159
160 @iftex
161 @iflatex
162 \begin{titlepage}
163 {
164
165 %\addtolength{\oddsidemargin}{-5cm}
166 %\addtolength{\evensidemargin}{-5cm}
167 \parindent=0cm
168 \addtolength{\textheight}{2cm}
169
170 \gnustitle{\gnustitlename}\\
171 \rule{15cm}{1mm}\\
172 \vfill
173 \hspace*{-1cm}\epsfig{figure=gnus-big-logo.eps,height=15cm}
174 \vfill
175 \rule{15cm}{1mm}\\
176 \gnusauthor{by Lars Magne Ingebrigtsen}
177 \newpage
178 }
179
180 \mbox{}
181 \vfill
182
183 \thispagestyle{empty}
184
185 Copyright \copyright{} 1995 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 Free Software Foundation, Inc.
209
210 Permission is granted to make and distribute verbatim copies of
211 this manual provided the copyright notice and this permission notice
212 are preserved on all copies.
213
214 @ignore
215 Permission is granted to process this file through Tex and print the
216 results, provided the printed document carries copying permission
217 notice identical to this one except for the removal of this paragraph
218 (this paragraph not being relevant to the printed manual).
219
220 @end ignore
221 Permission is granted to copy and distribute modified versions of this
222 manual under the conditions for verbatim copying, provided also that the
223 entire resulting derived work is distributed under the terms of a
224 permission notice identical to this one.
225
226 Permission is granted to copy and distribute translations of this manual
227 into another language, under the above conditions for modified versions.
228 @end ifinfo
229
230 @tex
231
232 @titlepage
233 @title September Gnus Manual
234
235 @author by Lars Magne Ingebrigtsen
236 @page
237
238 @vskip 0pt plus 1filll
239 Copyright @copyright{} 1995 Free Software Foundation, Inc. 
240
241 Permission is granted to make and distribute verbatim copies of
242 this manual provided the copyright notice and this permission notice
243 are preserved on all copies.
244
245 Permission is granted to copy and distribute modified versions of this
246 manual under the conditions for verbatim copying, provided that the
247 entire resulting derived work is distributed under the terms of a
248 permission notice identical to this one.
249
250 Permission is granted to copy and distribute translations of this manual
251 into another language, under the above conditions for modified versions.
252
253 @end titlepage
254 @page
255
256 @end tex
257
258
259 @node Top
260 @top The Gnus Newsreader
261
262 @ifinfo
263
264 You can read news (and mail) from within Emacs by using Gnus.  The news
265 can be gotten by any nefarious means you can think of---@sc{nntp}, local
266 spool or your mbox file.  All at the same time, if you want to push your
267 luck.
268
269 @end ifinfo
270
271 @iftex
272
273 @iflatex
274 \thispagestyle{empty}
275 @end iflatex
276
277 Gnus is the advanced, self-documenting, customizable, extensible
278 unreal-time newsreader for GNU Emacs.  
279
280 Oops.  That sounds oddly familiar, so let's start over again to avoid
281 being accused of plagiarism:
282
283 Gnus is a message-reading laboratory.  It will let you look at just
284 about anything as if it were a newsgroup.  You can read mail with it,
285 you can browse directories with it, you can @code{ftp} with it---you can
286 even read news with it!
287
288 Gnus tries to empower people who read news the same way Emacs empowers
289 people who edit text.  Gnus sets no limits to what the user should be
290 allowed to do.  Users are encouraged to extend Gnus to make it behave
291 like they want it to behave.  A program should not control people;
292 people should be empowered to do what they want by using (or abusing)
293 the program.
294
295 @end iftex
296
297
298 @menu
299 * Starting Up::           Finding news can be a pain.
300 * The Group Buffer::      Selecting, subscribing and killing groups.
301 * The Summary Buffer::    Reading, saving and posting articles.
302 * The Article Buffer::    Displaying and handling articles.
303 * Composing Messages::    Information on sending mail and news.
304 * Select Methods::        Gnus reads all messages from various select methods.
305 * Scoring::               Assigning values to articles.
306 * Various::               General purpose settings.
307 * The End::               Farewell and goodbye.
308 * Appendices::            Terminology, Emacs intro, FAQ, History, Internals.
309 * Index::                 Variable, function and concept index.
310 * Key Index::             Key Index.
311 @end menu
312
313
314 @node Starting Up
315 @chapter Starting Gnus
316 @cindex starting up
317
318 @kindex M-x gnus
319 @findex gnus
320 If your system administrator has set things up properly, starting Gnus
321 and reading news is extremely easy---you just type @kbd{M-x gnus} in
322 your Emacs. 
323
324 @findex gnus-other-frame
325 @kindex M-x gnus-other-frame
326 If you want to start Gnus in a different frame, you can use the command
327 @kbd{M-x gnus-other-frame} instead.
328
329 If things do not go smoothly at startup, you have to twiddle some
330 variables. 
331
332 @menu
333 * Finding the News::    Choosing a method for getting news.
334 * The First Time::      What does Gnus do the first time you start it?
335 * The Server is Down::  How can I read my mail then?
336 * Slave Gnusii::        You can have more than one Gnus active at a time.
337 * Fetching a Group::    Starting Gnus just to read a group.
338 * New Groups::          What is Gnus supposed to do with new groups?
339 * Startup Files::       Those pesky startup files---@file{.newsrc}.
340 * Auto Save::           Recovering from a crash.
341 * The Active File::     Reading the active file over a slow line Takes Time.
342 * Startup Variables::   Other variables you might change.
343 @end menu
344
345
346 @node Finding the News
347 @section Finding the News
348
349 @vindex gnus-select-method
350 @c @head
351 The @code{gnus-select-method} variable says where Gnus should look for
352 news.  This variable should be a list where the first element says
353 @dfn{how} and the second element says @dfn{where}.  This method is your
354 native method.  All groups that are not fetched with this method are
355 foreign groups.
356
357 For instance, if the @samp{news.somewhere.edu} @sc{nntp} server is where
358 you want to get your daily dosage of news from, you'd say:
359
360 @lisp
361 (setq gnus-select-method '(nntp "news.somewhere.edu"))
362 @end lisp
363
364 If you want to read directly from the local spool, say:
365
366 @lisp
367 (setq gnus-select-method '(nnspool ""))
368 @end lisp
369
370 If you can use a local spool, you probably should, as it will almost
371 certainly be much faster.
372
373 @vindex gnus-nntpserver-file
374 @cindex NNTPSERVER
375 @cindex @sc{nntp} server
376 If this variable is not set, Gnus will take a look at the
377 @code{NNTPSERVER} environment variable.  If that variable isn't set,
378 Gnus will see whether @code{gnus-nntpserver-file}
379 (@file{/etc/nntpserver} by default) has any opinions on the matter.  If
380 that fails as well, Gnus will will try to use the machine that is
381 running Emacs as an @sc{nntp} server.  That's a long-shot, though.
382
383 @vindex gnus-nntp-server
384 If @code{gnus-nntp-server} is set, this variable will override
385 @code{gnus-select-method}.  You should therefore set
386 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
387
388 @vindex gnus-secondary-servers
389 You can also make Gnus prompt you interactively for the name of an
390 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
391 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
392 in the @code{gnus-secondary-servers} list (if any).  You can also just
393 type in the name of any server you feel like visiting.
394
395 @findex gnus-group-browse-foreign-server
396 @kindex B (Group)
397 However, if you use one @sc{nntp} server regularly and are just
398 interested in a couple of groups from a different server, you would be
399 better served by using the @kbd{B} command in the group buffer.  It will
400 let you have a look at what groups are available, and you can subscribe
401 to any of the groups you want to.  This also makes @file{.newsrc}
402 maintenance much tidier.  @xref{Foreign Groups}.
403
404 @vindex gnus-secondary-select-methods
405 @c @head
406 A slightly different approach to foreign groups is to set the
407 @code{gnus-secondary-select-methods} variable.  The select methods
408 listed in this variable are in many ways just as native as the
409 @code{gnus-select-method} server.  They will also be queried for active
410 files during startup (if that's required), and new newsgroups that
411 appear on these servers will be subscribed (or not) just as native
412 groups are.
413
414 For instance, if you use the @code{nnmbox} backend to read your mail, you
415 would typically set this variable to
416
417 @lisp
418 (setq gnus-secondary-select-methods '((nnmbox "")))
419 @end lisp
420
421
422 @node The First Time
423 @section The First Time
424 @cindex first time usage
425
426 If no startup files exist, Gnus will try to determine what groups should
427 be subscribed by default.
428
429 @vindex gnus-default-subscribed-newsgroups
430 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
431 will subscribe you to just those groups in that list, leaving the rest
432 killed.  Your system administrator should have set this variable to
433 something useful.
434
435 Since she hasn't, Gnus will just subscribe you to a few randomly picked
436 groups (i.e., @samp{*.newusers}).  (@dfn{Random} is here defined as
437 @dfn{whatever Lars thinks you should read}.)
438
439 You'll also be subscribed to the Gnus documentation group, which should
440 help you with most common problems.  
441
442 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
443 use the normal functions for handling new groups, and not do anything
444 special.
445
446
447 @node The Server is Down
448 @section The Server is Down
449 @cindex server errors
450
451 If the default server is down, Gnus will understandably have some
452 problems starting.  However, if you have some mail groups in addition to
453 the news groups, you may want to start Gnus anyway.
454
455 Gnus, being the trusting sort of program, will ask whether to proceed
456 without a native select method if that server can't be contacted.  This
457 will happen whether the server doesn't actually exist (i.e., you have
458 given the wrong address) or the server has just momentarily taken ill
459 for some reason or other.  If you decide to continue and have no foreign
460 groups, you'll find it difficult to actually do anything in the group
461 buffer.  But, hey, that's your problem.  Blllrph!
462
463 @findex gnus-no-server
464 @c @head
465 If you know that the server is definitely down, or you just want to read
466 your mail without bothering with the server at all, you can use the
467 @code{gnus-no-server} command to start Gnus.  That might come in handy
468 if you're in a hurry as well.
469
470
471 @node Slave Gnusii
472 @section Slave Gnusiï
473 @cindex slave
474
475 You might want to run more than one Emacs with more than one Gnus at the
476 same time.  If you are using different @file{.newsrc} files (eg., if you
477 are using the two different Gnusiï to read from two different servers),
478 that is no problem whatsoever.  You just do it.
479
480 The problem appears when you want to run two Gnusiï that use the same
481 @code{.newsrc} file.
482
483 To work around that problem some, we here at the Think-Tank at the Gnus
484 Towers have come up with a new concept: @dfn{Masters} and
485 @dfn{servants}.  (We have applied for a patent on this concept, and have
486 taken out a copyright on those words.  If you wish to use those words in
487 conjunction with each other, you have to send $1 per usage instance to
488 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
489 Applications}) will be much more expensive, of course.)
490
491 Anyways, you start one Gnus up the normal way with @kbd{M-x gnus} (or
492 however you do it).  Each subsequent slave Gnusiï should be started with
493 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
494 files, but instead save @dfn{slave files} that contains information only
495 on what groups have been read in the slave session.  When a master Gnus
496 starts, it will read (and delete) these slave files, incorporating all
497 information from them.  (The slave files will be read in the sequence
498 they were created, so the latest changes will have precedence.)
499
500 Information from the slave files has, of course, precedence over the
501 information in the normal (i. e., master) @code{.newsrc} file.
502
503
504 @node Fetching a Group
505 @section Fetching a Group
506
507 @findex gnus-fetch-group
508 It it sometime convenient to be able to just say ``I want to read this
509 group and I don't care whether Gnus has been started or not''.  This is
510 perhaps more useful for people who write code than for users, but the
511 command @code{gnus-fetch-group} provides this functionality in any case.
512 It takes the group name as a parameter.
513
514
515 @node New Groups
516 @section New Groups
517 @cindex new groups
518
519 @vindex gnus-subscribe-newsgroup-method
520 What Gnus does when it encounters a new group is determined by the
521 @code{gnus-subscribe-newsgroup-method} variable.
522
523 This variable should contain a function.  Some handy pre-fab values
524 are:
525
526 @table @code
527
528 @item gnus-subscribe-zombies
529 @vindex gnus-subscribe-zombies
530 Make all new groups zombies.  You can browse the zombies later (with
531 @kbd{A z}) and either kill them all off properly, or subscribe to them.
532 This is the default.
533
534 @item gnus-subscribe-randomly
535 @vindex gnus-subscribe-randomly
536 Subscribe all new groups randomly.
537
538 @item gnus-subscribe-alphabetically
539 @vindex gnus-subscribe-alphabetically
540 Subscribe all new groups alphabetically.
541
542 @item gnus-subscribe-hierarchically
543 @vindex gnus-subscribe-hierarchically
544 Subscribe all new groups hierarchically.
545
546 @item gnus-subscribe-interactively
547 @vindex gnus-subscribe-interactively
548 Subscribe new groups interactively.  This means that Gnus will ask
549 you about @strong{all} new groups.
550
551 @item gnus-subscribe-killed
552 @vindex gnus-subscribe-killed
553 Kill all new groups.
554
555 @end table
556
557 @vindex gnus-subscribe-hierarchical-interactive
558 A closely related variable is
559 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
560 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
561 hierarchical fashion whether to subscribe to new groups or not.  Gnus
562 will ask you for each sub-hierarchy whether you want to descend the
563 hierarchy or not.  
564
565 One common mistake is to set the variable a few paragraphs above to
566 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
567 will not work.  This is ga-ga.  So don't do it.
568
569 A nice and portable way to control which new newsgroups should be
570 subscribed (or ignored) is to put an @dfn{options} line at the start of
571 the @file{.newsrc} file.  Here's an example:
572
573 @example
574 options -n !alt.all !rec.all sci.all
575 @end example
576
577 @vindex gnus-subscribe-options-newsgroup-method
578 This line obviously belongs to a serious-minded intellectual scientific
579 person (or she may just be plain old boring), because it says that all
580 groups that have names beginning with @samp{alt} and @samp{rec} should
581 be ignored, and all groups with names beginning with @samp{sci} should
582 be subscribed.  Gnus will not use the normal subscription method for
583 subscribing these groups.
584 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
585 variable defaults to @code{gnus-subscribe-alphabetically}.
586
587 @vindex gnus-options-not-subscribe
588 @vindex gnus-options-subscribe
589 If you don't want to mess with your @file{.newsrc} file, you can just
590 set the two variables @code{gnus-options-subscribe} and
591 @code{gnus-options-not-subscribe}.  These two variables do exactly the
592 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
593 and if the the new group matches the former, it will be unconditionally
594 subscribed, and if it matches the latter, it will be ignored.
595
596 @vindex gnus-auto-subscribed-groups
597 Yet another variable that meddles here is
598 @code{gnus-auto-subscribed-groups}.  It works exactly like
599 @code{gnus-options-subscribe}, and is therefore really superfluous, but I
600 thought it would be nice to have two of these.  This variable is more
601 meant for setting some ground rules, while the other variable is used
602 more for user fiddling.  By default this variable makes all new groups
603 that come from mail backends (@code{nnml}, @code{nnbabyl},
604 @code{nnfolder}, @code{nnmbox}, and @code{nnmh}) subscribed.  If you
605 don't like that, just set this variable to @code{nil}.
606
607 @vindex gnus-check-new-newsgroups
608 If you are satisfied that you really never want to see any new groups,
609 you could set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
610 also save you some time at startup.  Even if this variable is
611 @code{nil}, you can always subscribe to the new groups just by pressing
612 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
613 is @code{t} by default.
614
615 Gnus normally determines whether a group is new or not by comparing the
616 list of groups from the active file(s) with the lists of subscribed and
617 dead groups.  This isn't a particularly fast method.  If
618 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
619 server for new groups since the last time.  This is both faster &
620 cheaper.  This also means that you can get rid of the list of killed
621 groups altogether, so you may set @code{gnus-save-killed-list} to
622 @code{nil}, which will save time both at startup, at exit, and all over.
623 Saves disk space, too.  Why isn't this the default, then?
624 Unfortunately, not all servers support this command. 
625
626 I bet I know what you're thinking now: How do I find out whether my
627 server supports @code{ask-server}?  No?  Good, because I don't have a
628 fail-safe answer.  I would suggest just setting this variable to
629 @code{ask-server} and see whether any new groups appear within the next
630 few days.  If any do, then it works.  If any don't, then it doesn't
631 work.  I could write a function to make Gnus guess whether the server
632 supports @code{ask-server}, but it would just be a guess.  So I won't.
633 You could @code{telnet} to the server and say @code{HELP} and see
634 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
635 it does, then it might work.  (But there are servers that lists
636 @samp{NEWGROUPS} without supporting the function properly.)
637
638 This variable can also be a list of select methods.  If so, Gnus will
639 issue an @code{ask-server} command to each of the select methods, and
640 subscribe them (or not) using the normal methods.  This might be handy
641 if you are monitoring a few servers for new groups.  A side effect is
642 that startup will take much longer, so you can meditate while waiting.
643 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
644
645
646 @node Startup Files
647 @section Startup Files
648 @cindex startup files
649 @cindex .newsrc
650
651 Now, you all know about the @file{.newsrc} file.  All subscription
652 information is traditionally stored in this file.
653
654 Things got a bit more complicated with @sc{gnus}.  In addition to
655 keeping the @file{.newsrc} file updated, it also used a file called
656 @file{.newsrc.el} for storing all the information that didn't fit into
657 the @file{.newsrc} file.  (Actually, it also duplicated everything in
658 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
659 files was the most recently saved, which enabled people to swap between
660 @sc{gnus} and other newsreaders.
661
662 That was kinda silly, so Gnus went one better: In addition to the
663 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
664 @file{.newsrc.eld}.  It will read whichever of these files that are most
665 recent, but it will never write a @file{.newsrc.el} file.
666
667 @vindex gnus-save-newsrc-file
668 You can turn off writing the @file{.newsrc} file by setting
669 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
670 the file and save some space, as well as making exit from Gnus faster.
671 However, this will make it impossible to use other newsreaders than
672 Gnus.  But hey, who would want to, right?
673
674 @vindex gnus-save-killed-list
675 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
676 will not save the list of killed groups to the startup file.  This will
677 save both time (when starting and quitting) and space (on disk).  It
678 will also means that Gnus has no record of what groups are new or old,
679 so the automatic new groups subscription methods become meaningless.
680 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
681 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
682 Groups}).
683
684 @vindex gnus-startup-file
685 The @code{gnus-startup-file} variable says where the startup files are.
686 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
687 file being whatever that one is with a @samp{.eld} appended.
688
689 @vindex gnus-save-newsrc-hook
690 @vindex gnus-save-quick-newsrc-hook
691 @vindex gnus-save-standard-newsrc-hook
692 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
693 files, while @code{gnus-save-quick-newsrc-hook} is called just before
694 saving the @file{.newsrc.eld} file, and
695 @code{gnus-save-standard-newsrc-hook} is called just before saving the
696 @file{.newsrc} file.  The latter two are commonly used to turn version
697 control on or off.  Version control is off by default when saving the
698 startup files.
699
700
701 @node Auto Save
702 @section Auto Save
703 @cindex dribble file
704 @cindex auto-save
705
706 Whenever you do something that changes the Gnus data (reading articles,
707 catching up, killing/subscribing groups), the change is added to a
708 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
709 Emacs way.  If your Emacs should crash before you have saved the
710 @file{.newsrc} files, all changes you have made can be recovered from
711 this file.
712
713 If Gnus detects this file at startup, it will ask the user whether to
714 read it.  The auto save file is deleted whenever the real startup file is
715 saved.
716
717 @vindex gnus-use-dribble-file
718 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
719 maintain a dribble buffer.  The default is @code{t}.
720
721 @vindex gnus-dribble-directory
722 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
723 this variable is @code{nil}, which it is by default, Gnus will dribble
724 into the directory where the @file{.newsrc} file is located.  (This is
725 normally the user's home directory.)  The dribble file will get the same
726 file permissions as the @code{.newsrc} file.
727
728
729 @node The Active File
730 @section The Active File
731 @cindex active file
732 @cindex ignored groups
733
734 When Gnus starts, or indeed whenever it tries to determine whether new
735 articles have arrived, it reads the active file.  This is a very large
736 file that lists all the active groups and articles on the server.
737
738 @vindex gnus-ignored-newsgroups
739 Before examining the active file, Gnus deletes all lines that match the
740 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
741 any groups with bogus names, but you can use this variable to make Gnus
742 ignore hierarchies you aren't ever interested in.  However, this is not
743 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
744 Groups} for an overview of other variables that can be used instead.
745
746 @c This variable is
747 @c @code{nil} by default, and will slow down active file handling somewhat
748 @c if you set it to anything else.
749
750 @vindex gnus-read-active-file
751 @c @head
752 The active file can be rather Huge, so if you have a slow network, you
753 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
754 reading the active file.  This variable is @code{t} by default.
755
756 Gnus will try to make do by getting information just on the groups that
757 you actually subscribe to.
758
759 Note that if you subscribe to lots and lots of groups, setting this
760 variable to @code{nil} will probably make Gnus slower, not faster.  At
761 present, having this variable @code{nil} will slow Gnus down
762 considerably, unless you read news over a 2400 baud modem.  
763
764 This variable can also have the value @code{some}.  Gnus will then
765 attempt to read active info only on the subscribed groups.  On some
766 servers this is quite fast (on sparkling, brand new INN servers that
767 support the @code{LIST ACTIVE group} command), on others this isn't fast
768 at all.  In any case, @code{some} should be faster than @code{nil}, and
769 is certainly faster than @code{t} over slow lines.
770
771 If this variable is @code{nil}, Gnus will ask for group info in total
772 lock-step, which isn't very fast.  If it is @code{some} and you use an
773 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
774 read all the replies in one swoop.  This will normally result in better
775 performance, but if the server does not support the aforementioned
776 @code{LIST ACTIVE group} command, this isn't very nice to the server.
777
778 In any case, if you use @code{some} or @code{nil}, you should definitely
779 kill all groups that you aren't interested in to speed things up.
780
781
782 @node Startup Variables
783 @section Startup Variables
784
785 @table @code
786
787 @item gnus-load-hook
788 @vindex gnus-load-hook
789 A hook that is run while Gnus is being loaded.  Note that this hook will
790 normally be run just once in each Emacs session, no matter how many
791 times you start Gnus.
792
793 @item gnus-startup-hook
794 @vindex gnus-startup-hook
795 A hook that is run after starting up Gnus successfully.
796
797 @item gnus-check-bogus-newsgroups
798 @vindex gnus-check-bogus-newsgroups
799 If non-@code{nil}, Gnus will check for and delete all bogus groups at
800 startup.  A @dfn{bogus group} is a group that you have in your
801 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
802 bogus groups can take quite a while, so to save time and resources it's
803 best to leave this option off, and do the checking for bogus groups once
804 in a while from the group buffer instead (@pxref{Group Maintenance}).
805
806 @item gnus-inhibit-startup-message
807 @vindex gnus-inhibit-startup-message
808 If non-@code{nil}, the startup message won't be displayed.  That way,
809 your boss might not notice that you are reading news instead of doing
810 your job as easily.
811
812 @item gnus-no-groups-message
813 @vindex gnus-no-groups-message
814 Message displayed by Gnus when no groups are available.
815 @end table
816
817
818 @node The Group Buffer
819 @chapter The Group Buffer
820 @cindex group buffer
821
822 The @dfn{group buffer} lists all (or parts) of the available groups.  It
823 is the first buffer shown when Gnus starts, and will never be killed as
824 long as Gnus is active.
825
826 @menu
827 * Group Buffer Format::    Information listed and how you can change it.
828 * Group Maneuvering::      Commands for moving in the group buffer.
829 * Selecting a Group::      Actually reading news.
830 * Subscription Commands::  Unsubscribing, killing, subscribing.
831 * Group Levels::           Levels? What are those, then?
832 * Group Score::            A mechanism for finding out what groups you like.
833 * Marking Groups::         You can mark groups for later processing.
834 * Foreign Groups::         Creating and editing groups.
835 * Group Parameters::       Each group may have different parameters set.
836 * Listing Groups::         Gnus can list various subsets of the groups.
837 * Sorting Groups::         Re-arrange the group order.
838 * Group Maintenance::      Maintaining a tidy @file{.newsrc} file.
839 * Browse Foreign Server::  You can browse a server.  See what if has to offer.
840 * Exiting Gnus::           Stop reading news and get some work done.
841 * Group Topics::           A folding group mode divided into topics.
842 * Misc Group Stuff::       Other stuff that you can to do.
843 @end menu
844
845
846 @node Group Buffer Format
847 @section Group Buffer Format
848 @cindex group buffer format
849
850 @menu 
851 * Group Line Specification::       Deciding how the group buffer is to look.
852 * Group Modeline Specification::   The group buffer modeline.
853 * Group Highlighting::             Having nice colors in the group buffer.
854 @end menu
855
856
857 @node Group Line Specification
858 @subsection Group Line Specification
859
860 The default format of the group buffer is nice and dull, but you can
861 make it as exciting and ugly as you feel like.
862
863 Here's a couple of example group lines:
864
865 @example
866      25: news.announce.newusers
867  *    0: alt.fan.andrea-dworkin
868 @end example
869
870 Quite simple, huh?
871
872 You can see that there are 25 unread articles in
873 @samp{news.announce.newusers}.  There are no unread articles, but some
874 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
875 asterisk at the beginning of the line?)
876
877 @vindex gnus-group-line-format
878 You can change that format to whatever you want by fiddling with the
879 @code{gnus-group-line-format} variable.  This variable works along the
880 lines of a @code{format} specification, which is pretty much the same as
881 a @code{printf} specifications, for those of you who use (feh!) C.
882 @xref{Formatting Variables}. 
883
884 The default value that produced those lines above is 
885 @samp{%M%S%5y: %(%g%)\n}.
886
887 There should always be a colon on the line; the cursor always moves to
888 the colon after performing an operation.  Nothing else is required---not
889 even the group name.  All displayed text is just window dressing, and is
890 never examined by Gnus.  Gnus stores all real information it needs using
891 text properties.
892
893 (Note that if you make a really strange, wonderful, spreadsheet-like
894 layout, everybody will believe you are hard at work with the accounting
895 instead of wasting time reading news.)
896
897 Here's a list of all available format characters:
898
899 @table @samp
900
901 @item M    
902 Only marked articles.
903
904 @item S
905 Whether the group is subscribed.
906
907 @item L    
908 Level of subscribedness.
909
910 @item N
911 Number of unread articles.
912
913 @item I
914 Number of dormant articles.
915
916 @item T
917 Number of ticked articles.
918
919 @item R
920 Number of read articles.
921
922 @item t
923 Total number of articles.
924
925 @item y
926 Number of unread, unticked, non-dormant articles.
927
928 @item i
929 Number of ticked and dormant articles.
930
931 @item g
932 Full group name.
933
934 @item G
935 Group name.
936
937 @item D
938 Newsgroup description.
939
940 @item o
941 @samp{m} if moderated.
942
943 @item O
944 @samp{(m)} if moderated.
945
946 @item s
947 Select method.
948
949 @item n
950 Select from where.
951
952 @item z
953 A string that looks like @samp{<%s:%n>} if a foreign select method is
954 used.
955
956 @item P
957 Indentation based on the level of the topic (@pxref{Group Topics}). 
958
959 @item c
960 @vindex gnus-group-uncollapsed-levels
961 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
962 variable says how many levels to leave at the end of the group name.
963 The default is @code{1}.
964
965 @item u
966 User defined specifier.  The next character in the format string should
967 be a letter.  @sc{gnus} will call the function
968 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
969 following @samp{%u}.  The function will be passed the current headers as
970 argument.  The function should return a string, which will be inserted
971 into the buffer just like information from any other specifier.
972 @end table
973
974 @cindex *
975 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
976 if no info is available---for instance, if it is a non-activated foreign
977 group, or a bogus (or semi-bogus) native group.
978
979
980 @node Group Modeline Specification
981 @subsection Group Modeline Specification
982
983 @vindex gnus-group-mode-line-format
984 The mode line can be changed by setting
985 (@code{gnus-group-mode-line-format}).  It doesn't understand that many
986 format specifiers:
987
988 @table @samp
989 @item S
990 The native news server.
991 @item M
992 The native select method.
993 @end table
994
995
996 @node Group Highlighting
997 @subsection Group Highlighting
998
999 @vindex gnus-group-highlight
1000 Highlighting in the group buffer is controlled by the
1001 @code{gnus-group-highlight} variable.  This is an alist with elements
1002 that look like @var{(form . face)}.  If @var{form} evaluates to
1003 something non-@code{nil}, the @var{face} will be used on the line.
1004
1005 Here's an example value for this variable that might look nice if the
1006 background is dark:
1007
1008 @lisp
1009 (setq gnus-group-highlight
1010     `(((> unread 200) . 
1011        ,(custom-face-lookup "Red" nil nil t nil nil))
1012       ((and (< level 3) (zerop unread)) . 
1013        ,(custom-face-lookup "SeaGreen" nil nil t nil nil))
1014       ((< level 3) . 
1015        ,(custom-face-lookup "SpringGreen" nil nil t nil nil))
1016       ((zerop unread) . 
1017        ,(custom-face-lookup "SteelBlue" nil nil t nil nil))
1018       (t . 
1019        ,(custom-face-lookup "SkyBlue" nil nil t nil nil))
1020       ))
1021 @end lisp
1022
1023 Variables that are dynamically bound when the forms are evaluated
1024 include:
1025
1026 @table @code
1027 @item group
1028 The group name.
1029 @item unread
1030 The number of unread articles in the group.
1031 @item method
1032 The select method.
1033 @item mailp
1034 Whether the group is a mail group.
1035 @item level
1036 The level of the group.
1037 @item score
1038 The score of the group.
1039 @item ticked 
1040 The number of ticked articles in the group.
1041 @end table
1042
1043 When the forms are @code{eval}ed, point is at the beginning of the line
1044 of the group in question, so you can use many of the normal Gnus
1045 functions for snarfing info on the group.
1046
1047 @vindex gnus-group-update-hook
1048 @findex gnus-group-highlight-line
1049 @code{gnus-group-update-hook} is called when a group line is changed.
1050 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
1051 calls @code{gnus-group-highlight-line} by default.
1052
1053
1054 @node Group Maneuvering
1055 @section Group Maneuvering
1056 @cindex group movement
1057
1058 All movement commands understand the numeric prefix and will behave as
1059 expected, hopefully. 
1060
1061 @table @kbd
1062
1063 @item n
1064 @kindex n (Group)
1065 @findex gnus-group-next-unread-group
1066 Go to the next group that has unread articles
1067 (@code{gnus-group-next-unread-group}).
1068
1069 @item p
1070
1071 @itemx DEL
1072 @kindex DEL (Group)
1073 @kindex p (Group)
1074 @findex gnus-group-prev-unread-group
1075 Go to the previous group group that has unread articles
1076 (@code{gnus-group-prev-unread-group}).
1077
1078 @item N
1079 @kindex N (Group)
1080 @findex gnus-group-next-group
1081 Go to the next group (@code{gnus-group-next-group}).
1082
1083 @item P
1084 @kindex P (Group)
1085 @findex gnus-group-prev-group
1086 Go to the previous group (@code{gnus-group-prev-group}).
1087
1088 @item M-p
1089 @kindex M-p (Group)
1090 @findex gnus-group-next-unread-group-same-level
1091 Go to the next unread group on the same level (or lower)
1092 (@code{gnus-group-next-unread-group-same-level}). 
1093
1094 @item M-n
1095 @kindex M-n (Group)
1096 @findex gnus-group-prev-unread-group-same-level
1097 Go to the previous unread group on the same level (or lower)
1098 (@code{gnus-group-prev-unread-group-same-level}). 
1099 @end table
1100
1101 Three commands for jumping to groups:
1102
1103 @table @kbd
1104
1105 @item j
1106 @kindex j (Group)
1107 @findex gnus-group-jump-to-group
1108 Jump to a group (and make it visible if it isn't already)
1109 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
1110 like living groups.
1111
1112 @item ,
1113 @kindex , (Group)
1114 @findex gnus-group-best-unread-group
1115 Jump to the unread group with the lowest level
1116 (@code{gnus-group-best-unread-group}). 
1117
1118 @item .
1119 @kindex . (Group)
1120 @findex gnus-group-first-unread-group
1121 Jump to the first group with unread articles
1122 (@code{gnus-group-first-unread-group}).  
1123 @end table
1124
1125 @vindex gnus-group-goto-unread
1126 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
1127 commands will move to the next group, not the next unread group.  Even
1128 the commands that say they move to the next unread group.  The default
1129 is @code{t}.
1130
1131
1132 @node Selecting a Group
1133 @section Selecting a Group
1134 @cindex group selection
1135
1136 @table @kbd
1137
1138 @item SPACE
1139 @kindex SPACE (Group)
1140 @findex gnus-group-read-group
1141 Select the current group, switch to the summary buffer and display the
1142 first unread article (@code{gnus-group-read-group}).  If there are no
1143 unread articles in the group, or if you give a non-numerical prefix to
1144 this command, Gnus will offer to fetch all the old articles in this
1145 group from the server.  If you give a numerical prefix @var{N}, Gnus
1146 will fetch @var{N} number of articles.  If @var{N} is positive, fetch
1147 the @var{N} newest articles, if @var{N} is negative, fetch the
1148 @var{abs(N)} oldest articles.
1149
1150 @item RET
1151 @kindex RET (Group)
1152 @findex gnus-group-select-group
1153 Select the current group and switch to the summary buffer
1154 (@code{gnus-group-select-group}).  Takes the same arguments as
1155 @code{gnus-group-read-group}---the only difference is that this command
1156 does not display the first unread article automatically upon group
1157 entry. 
1158
1159 @item M-RET
1160 @kindex M-RET (Group)
1161 @findex gnus-group-quick-select-group
1162 This does the same as the command above, but tries to do it with the
1163 minimum amount off fuzz (@code{gnus-group-quick-select-group}).  No
1164 scoring/killing will be performed, there will be no highlights and no
1165 expunging.  This might be useful if you're in a real hurry and have to
1166 enter some humongous group.
1167
1168 @item M-SPACE
1169 @kindex M-RET (Group)
1170 @findex gnus-group-visible-select-group
1171 This is yet one more command that does the same as the one above, but
1172 this one does it without expunging and hiding dormants
1173 (@code{gnus-group-visible-select-group}).  
1174
1175 @item c
1176 @kindex c (Group)
1177 @findex gnus-group-catchup-current
1178 @vindex gnus-group-catchup-group-hook
1179 Mark all unticked articles in this group as read
1180 (@code{gnus-group-catchup-current}).
1181 @code{gnus-group-catchup-group-hook} is when catching up a group from
1182 the group buffer.
1183
1184 @item C
1185 @kindex C (Group)
1186 @findex gnus-group-catchup-current-all
1187 Mark all articles in this group, even the ticked ones, as read
1188 (@code{gnus-group-catchup-current-all}).   
1189 @end table
1190
1191 @vindex gnus-large-newsgroup
1192 The @code{gnus-large-newsgroup} variable says what Gnus should consider
1193 to be a big group.  This is 200 by default.  If the group has more
1194 unread articles than this, Gnus will query the user before entering the
1195 group.  The user can then specify how many articles should be fetched
1196 from the server.  If the user specifies a negative number (@code{-n}),
1197 the @code{n} oldest articles will be fetched.  If it is positive, the
1198 @code{n} articles that have arrived most recently will be fetched.
1199
1200 @vindex gnus-select-group-hook
1201 @vindex gnus-auto-select-first
1202 @code{gnus-auto-select-first} control whether any articles are selected
1203 automatically when entering a group.  
1204
1205 @table @code
1206
1207 @item nil
1208 Don't select any articles when entering the group.  Just display the
1209 full summary buffer.
1210
1211 @item t
1212 Select the first unread article when entering the group.  
1213
1214 @item best
1215 Select the most high-scored article in the group when entering the
1216 group. 
1217 @end table
1218         
1219 If you want to prevent automatic selection in some group (say, in a
1220 binary group with Huge articles) you can set this variable to @code{nil}
1221 in @code{gnus-select-group-hook}, which is called when a group is
1222 selected.
1223
1224 @findex gnus-thread-sort-by-total-score
1225 @findex gnus-thread-sort-by-date
1226 @findex gnus-thread-sort-by-score
1227 @findex gnus-thread-sort-by-subject
1228 @findex gnus-thread-sort-by-author
1229 @findex gnus-thread-sort-by-number
1230 @vindex gnus-thread-sort-functions
1231 If you are using a threaded summary display, you can sort the threads by
1232 setting @code{gnus-thread-sort-functions}, which is a list of functions.
1233 By default, sorting is done on article numbers.  Ready-made sorting
1234 predicate functions include @code{gnus-thread-sort-by-number},
1235 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-subject},
1236 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-score}, and
1237 @code{gnus-thread-sort-by-total-score}.
1238
1239 Each function takes two threads and return non-@code{nil} if the first
1240 thread should be sorted before the other.  Note that sorting really is
1241 normally done by looking only at the roots of each thread.  If you use
1242 more than one function, the primary sort key should be the last function
1243 in the list.  You should probably always include
1244 @code{gnus-thread-sort-by-number} in the list of sorting
1245 functions---preferably first.  This will ensure that threads that are
1246 equal with respect to the other sort criteria will be displayed in
1247 ascending article order.
1248
1249 If you would like to sort by score, then by subject, and finally by
1250 number, you could do something like:
1251
1252 @lisp
1253 (setq gnus-thread-sort-functions 
1254       '(gnus-thread-sort-by-number
1255         gnus-thread-sort-by-subject
1256         gnus-thread-sort-by-score))
1257 @end lisp
1258
1259 The threads that have highest score will be displayed first in the
1260 summary buffer.  When threads have the same score, they will be sorted
1261 alphabetically.  The threads that have the same score and the same
1262 subject will be sorted by number, which is (normally) the sequence in
1263 which the articles arrived.
1264
1265 If you want to sort by score and then reverse arrival order, you could
1266 say something like:
1267
1268 @lisp
1269 (setq gnus-thread-sort-functions
1270       '((lambda (t1 t2) 
1271           (not (gnus-thread-sort-by-number t1 t2)))
1272         gnus-thread-sort-by-score))
1273 @end lisp
1274
1275 @vindex gnus-thread-score-function
1276 The function in the @code{gnus-thread-score-function} variable (default
1277 @code{+}) is used for calculating the total score of a thread.  Useful
1278 functions might be @code{max}, @code{min}, or squared means, or whatever
1279 tickles your fancy.
1280
1281 @findex gnus-article-sort-functions
1282 @findex gnus-article-sort-by-date
1283 @findex gnus-article-sort-by-score
1284 @findex gnus-article-sort-by-subject
1285 @findex gnus-article-sort-by-author
1286 @findex gnus-article-sort-by-number
1287 If you are using an unthreaded display for some strange reason or other,
1288 you have to fiddle with the @code{gnus-article-sort-functions} variable.
1289 It is very similar to the @code{gnus-thread-sort-functions}, except that
1290 is uses slightly different functions for article comparison.  Available
1291 sorting predicate functions are @code{gnus-article-sort-by-number},
1292 @code{gnus-article-sort-by-author}, @code{gnus-article-sort-by-subject},
1293 @code{gnus-article-sort-by-date}, and @code{gnus-article-sort-by-score}.
1294
1295 If you want to sort an unthreaded summary display by subject, you could
1296 say something like:
1297
1298 @lisp
1299 (setq gnus-article-sort-functions 
1300       '(gnus-article-sort-by-number
1301         gnus-article-sort-by-subject))
1302 @end lisp
1303
1304
1305 @node Subscription Commands
1306 @section Subscription Commands
1307 @cindex subscribing
1308
1309 @table @kbd
1310
1311 @item S t
1312 @itemx u
1313 @kindex S t (Group)
1314 @kindex u (Group)
1315 @findex gnus-group-unsubscribe-current-group
1316 Toggle subscription to the current group
1317 (@code{gnus-group-unsubscribe-current-group}).  
1318
1319 @item S s
1320 @itemx U
1321 @kindex S s (Group)
1322 @kindex U (Group)
1323 @findex gnus-group-unsubscribe-group
1324 Prompt for a group to subscribe, and then subscribe it.  If it was
1325 subscribed already, unsubscribe it instead
1326 (@code{gnus-group-unsubscribe-group}).
1327
1328 @item S k
1329 @itemx C-k
1330 @kindex S k (Group)
1331 @kindex C-k (Group)
1332 @findex gnus-group-kill-group
1333 Kill the current group (@code{gnus-group-kill-group}).
1334
1335 @item S y
1336 @itemx C-y
1337 @kindex S y (Group)
1338 @kindex C-y (Group)
1339 @findex gnus-group-yank-group
1340 Yank the last killed group (@code{gnus-group-yank-group}).
1341
1342 @item C-x C-t
1343 @kindex C-x C-t (Group)
1344 @findex gnus-group-transpose-groups
1345 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
1346 really a subscription command, but you can use it instead of a
1347 kill-and-yank sequence sometimes.
1348
1349 @item S w
1350 @itemx C-w
1351 @kindex S w (Group)
1352 @kindex C-w (Group)
1353 @findex gnus-group-kill-region
1354 Kill all groups in the region (@code{gnus-group-kill-region}). 
1355
1356 @item S z
1357 @kindex S z (Group)
1358 @findex gnus-group-kill-all-zombies
1359 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
1360
1361 @item S C-k
1362 @kindex S C-k (Group)
1363 @findex gnus-group-kill-level
1364 Kill all groups on a certain level (@code{gnus-group-kill-level}).
1365 These groups can't be yanked back after killing, so this command should
1366 be used with some caution.  The only thing where this command comes in
1367 really handy is when you have a @file{.newsrc} with lots of unsubscribed
1368 groups that you want to get rid off.  @kbd{S C-k} on level @code{7} will
1369 kill off all unsubscribed groups that do not have message numbers in the
1370 @file{.newsrc} file.  
1371
1372 @end table
1373
1374 Also @pxref{Group Levels}.
1375
1376
1377 @node Group Levels
1378 @section Group Levels
1379 @cindex group level
1380
1381 All groups have a level of @dfn{subscribedness}.  For instance, if a
1382 group is on level 2, it is more subscribed than a group on level 5.  You
1383 can ask Gnus to just list groups on a given level or lower
1384 (@pxref{Listing Groups}), or to just check for new articles in groups on
1385 a given level or lower (@pxref{Scanning New Messages}).
1386
1387 @table @kbd
1388
1389 @item S l
1390 @kindex S l (Group)
1391 @findex gnus-group-set-current-level
1392 Set the level of the current group.  If a numeric prefix is given, the
1393 next @var{n} groups will have their levels set.  The user will be
1394 prompted for a level.
1395 @end table
1396
1397 @vindex gnus-level-killed
1398 @vindex gnus-level-zombie
1399 @vindex gnus-level-unsubscribed
1400 @vindex gnus-level-subscribed
1401 Gnus considers groups on between levels 1 and
1402 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
1403 @code{gnus-level-subscribed} (exclusive) and
1404 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
1405 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
1406 (default 8) and @code{gnus-level-killed} to be killed (default 9),
1407 completely dead.  Gnus treats subscribed and unsubscribed groups exactly
1408 the same, but zombie and killed groups have no information on what
1409 articles you have read, etc, stored.  This distinction between dead and
1410 living groups isn't done because it is nice or clever, it is done purely
1411 for reasons of efficiency.
1412
1413 It is recommended that you keep all your mail groups (if any) on quite
1414 low levels (eg. 1 or 2).
1415
1416 If you want to play with the level variables, you should show some care.
1417 Set them once, and don't touch them ever again.  Better yet, don't touch
1418 them at all unless you know exactly what you're doing.
1419
1420 @vindex gnus-level-default-unsubscribed
1421 @vindex gnus-level-default-subscribed
1422 Two closely related variables are @code{gnus-level-default-subscribed}
1423 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
1424 which are the levels that new groups will be put on if they are
1425 (un)subscribed.  These two variables should, of course, be inside the
1426 relevant legal ranges.
1427
1428 @vindex gnus-keep-same-level
1429 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
1430 will only move to groups that are of the same level (or lower).  In
1431 particular, going from the last article in one group to the next group
1432 will go to the next group of the same level (or lower).  This might be
1433 handy if you want to read the most important groups before you read the
1434 rest.
1435
1436 @vindex gnus-group-default-list-level
1437 All groups with a level less than or equal to
1438 @code{gnus-group-default-list-level} will be listed in the group buffer
1439 by default.
1440
1441 @vindex gnus-group-list-inactive-groups
1442 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
1443 groups will be listed along with the unread groups.  This variable is
1444 @code{t} by default.  If it is @code{nil}, inactive groups won't be
1445 listed. 
1446
1447 @vindex gnus-group-use-permanent-levels
1448 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
1449 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
1450 use this level as the ``work'' level.
1451
1452 @vindex gnus-activate-level
1453 Gnus will normally just activate groups that are on level
1454 @code{gnus-activate-level} or less.  If you don't want to activate
1455 unsubscribed groups, for instance, you might set this variable to
1456 @code{5}. 
1457
1458
1459 @node Group Score
1460 @section Group Score
1461 @cindex group score
1462
1463 You would normally keep important groups on high levels, but that scheme
1464 is somewhat restrictive.  Don't you wish you could have Gnus sort the
1465 group buffer according to how often you read groups, perhaps?  Within
1466 reason?  
1467
1468 This is what @dfn{group score} is for.  You can assign a score to each
1469 group.  You can then sort the group buffer based on this score.
1470 Alternatively, you can sort on score and then level.  (Taken together,
1471 the level and the score is called the @dfn{rank} of the group.  A group
1472 that is on level 4 and has a score of 1 has a higher rank than a group
1473 on level 5 that has a score of 300.  (The level is the most significant
1474 part and the score is the least significant part.)
1475
1476 @findex gnus-summary-bubble-group
1477 If you want groups you read often to get higher scores than groups you
1478 read seldom you can add the @code{gnus-summary-bubble-group} function to
1479 the @code{gnus-summary-exit-hook} hook.  This will result (after
1480 sorting) in a bubbling sort of action.  If you want to see that in
1481 action after each summary exit, you can add
1482 @code{gnus-group-sort-groups-by-rank} or
1483 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
1484 slow things down somewhat.
1485
1486
1487 @node Marking Groups
1488 @section Marking Groups
1489 @cindex marking groups
1490
1491 If you want to perform some command on several groups, and they appear
1492 subsequently in the group buffer, you would normally just give a
1493 numerical prefix to the command.  Most group commands will then do your
1494 bidding on those groups.
1495
1496 However, if the groups are not in sequential order, you can still
1497 perform a command on several groups.  You simply mark the groups first
1498 with the process mark and then execute the command.
1499
1500 @table @kbd
1501
1502 @item #
1503 @kindex # (Group)
1504 @itemx M m
1505 @kindex M m (Group)
1506 @findex gnus-group-mark-group
1507 Set the mark on the current group (@code{gnus-group-mark-group}). 
1508
1509 @item M-#
1510 @kindex M-# (Group)
1511 @itemx < u
1512 @kindex M u (Group)
1513 @findex gnus-group-unmark-group
1514 Remove the mark from the current group
1515 (@code{gnus-group-unmark-group}). 
1516
1517 @item M U
1518 @kindex M U (Group)
1519 @findex gnus-group-unmark-all-groups
1520 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}). 
1521
1522 @item M w
1523 @kindex M w (Group)
1524 @findex gnus-group-mark-region
1525 Mark all groups between point and mark (@code{gnus-group-mark-region}). 
1526
1527 @item M b
1528 @kindex M b (Group)
1529 @findex gnus-group-mark-buffer
1530 Mark all groups in the buffer (@code{gnus-group-mark-buffer}). 
1531
1532 @item M r
1533 @kindex M r (Group)
1534 @findex gnus-group-mark-regexp
1535 Mark all groups that match some regular expression
1536 (@code{gnus-group-mark-regexp}).  
1537 @end table
1538
1539 Also @pxref{Process/Prefix}.
1540
1541 @findex gnus-group-universal-argument
1542 If you want to execute some command on all groups that have been marked
1543 with the process mark, you can use the @kbd{M-&}
1544 (@code{gnus-group-universal-argument}) command.  It will prompt you for
1545 the command to be executed.
1546
1547
1548 @node Foreign Groups
1549 @section Foreign Groups
1550
1551 Here are some group mode commands for making and editing general foreign
1552 groups, as well as commands to ease the creation of a few
1553 special-purpose groups:
1554
1555 @table @kbd
1556
1557 @item G m
1558 @kindex G m (Group)
1559 @findex gnus-group-make-group
1560 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
1561 for a name, a method and possibly an @dfn{address}.  For an easier way
1562 to subscribe to @sc{nntp} groups, @pxref{Browse Foreign Server}.
1563
1564 @item G r
1565 @kindex G r (Group)
1566 @findex gnus-group-rename-group
1567 Rename the current group to something else
1568 (@code{gnus-group-rename-group}).  This is legal only on some groups --
1569 mail groups mostly.  This command might very well be quite slow on some
1570 backends. 
1571
1572 @item G e
1573 @kindex G e (Group)
1574 @findex gnus-group-edit-group-method
1575 Enter a buffer where you can edit the select method of the current
1576 group (@code{gnus-group-edit-group-method}).
1577
1578 @item G p
1579 @kindex G p (Group)
1580 @findex gnus-group-edit-group-parameters
1581 Enter a buffer where you can edit the group parameters
1582 (@code{gnus-group-edit-group-parameters}). 
1583
1584 @item G E
1585 @kindex G E (Group)
1586 @findex gnus-group-edit-group
1587 Enter a buffer where you can edit the group info
1588 (@code{gnus-group-edit-group}).
1589
1590 @item G d
1591 @kindex G d (Group)
1592 @findex gnus-group-make-directory-group
1593 Make a directory group.  You will be prompted for a directory name
1594 (@code{gnus-group-make-directory-group}).  
1595
1596 @item G h 
1597 @kindex G h (Group)
1598 @findex gnus-group-make-help-group
1599 Make the Gnus help group (@code{gnus-group-make-help-group}).
1600
1601 @item G a
1602 @kindex G a (Group)
1603 @findex gnus-group-make-archive-group
1604 @vindex gnus-group-archive-directory
1605 @vindex gnus-group-recent-archive-directory
1606 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
1607 default a group pointing to the most recent articles will be created
1608 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
1609 group will be created from from @code{gnus-group-archive-directory}.
1610
1611 @item G k
1612 @kindex G k (Group)
1613 @findex gnus-group-make-kiboze-group
1614 Make a kiboze group.  You will be prompted for a name, for a regexp to
1615 match groups to be ``included'' in the kiboze group, and a series of
1616 strings to match on headers (@code{gnus-group-make-kiboze-group}).
1617
1618 @item G D
1619 @kindex G D (Group)
1620 @findex gnus-group-enter-directory
1621 Read a random directory as if with were a newsgroup with the
1622 @code{nneething} backend (@code{gnus-group-enter-directory}).
1623
1624 @item G f
1625 @kindex G f (Group)
1626 @findex gnus-group-make-doc-group
1627 @cindex ClariNet Briefs
1628 Make a group based on some file or other
1629 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
1630 command, you will be prompted for a file name and a file type.
1631 Currently supported types are @code{babyl}, @code{mbox}, @code{digest},
1632 @code{mmdf}, @code{news}, @code{rnews}, @code{clari-briefs}, and
1633 @code{forward}.  If you run this command without a prefix, Gnus will
1634 guess at the file type.
1635
1636 @item G DEL
1637 @kindex G DEL (Group)
1638 @findex gnus-group-delete-group
1639 This function will delete the current group
1640 (@code{gnus-group-delete-group}).  If given a prefix, this function will
1641 actually delete all the articles in the group, and forcibly remove the
1642 group itself from the face of the Earth.  Use a prefix only if you are
1643 absolutely sure of what you are doing.
1644
1645 @item G V
1646 @kindex G V (Group)
1647 @findex gnus-group-make-empty-virtual
1648 Make a new, fresh, empty @code{nnvirtual} group
1649 (@code{gnus-group-make-empty-virtual}).
1650
1651 @item G v
1652 @kindex G v (Group)
1653 @findex gnus-group-add-to-virtual
1654 Add the current group to an @code{nnvirtual} group
1655 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
1656 @end table
1657
1658 @xref{Select Methods} for more information on the various select
1659 methods. 
1660
1661 @vindex gnus-activate-foreign-newsgroups
1662 If the @code{gnus-activate-foreign-newsgroups} is a positive number,
1663 Gnus will check all foreign groups with this level or lower at startup.
1664 This might take quite a while, especially if you subscribe to lots of
1665 groups from different @sc{nntp} servers.
1666
1667
1668 @node Group Parameters
1669 @section Group Parameters
1670 @cindex group parameters
1671
1672 Gnus stores all information on a group in a list that is usually known
1673 as the @dfn{group info}.  This list has from three to six elements.
1674 Here's an example info.
1675
1676 @lisp
1677 ("nnml:mail.ding" 3 ((1 . 232) 244 (256 . 270)) ((tick 246 249))
1678                   (nnml "private") ((to-address . "ding@@ifi.uio.no")))
1679 @end lisp
1680
1681 The first element is the @dfn{group name}, as Gnus knows the group,
1682 anyway.  The second element is the @dfn{subscription level}, which
1683 normally is a small integer.  The third element is a list of ranges of
1684 read articles.  The fourth element is a list of lists of article marks
1685 of various kinds.  The fifth element is the select method (or virtual
1686 server, if you like).  The sixth element is a list of @dfn{group
1687 parameters}, which is what this section is about.
1688
1689 Any of the last three elements may be missing if they are not required.
1690 In fact, the vast majority of groups will normally only have the first
1691 three elements, which saves quite a lot of cons cells.
1692
1693 The group parameters store information local to a particular group:
1694
1695 @table @code
1696 @item to-address
1697 @cindex to-address
1698 If the group parameter list contains an element that looks like
1699 @code{(to-address .  "some@@where.com")}, that address will be used by
1700 the backend when doing followups and posts.  This is primarily useful in
1701 mail groups that represent closed mailing lists---mailing lists where
1702 it's expected that everybody that writes to the mailing list is
1703 subscribed to it.  Since using this parameter ensures that the mail only
1704 goes to the mailing list itself, it means that members won't receive two
1705 copies of your followups.
1706
1707 Using @code{to-address} will actually work whether the group is foreign
1708 or not.  Let's say there's a group on the server that is called
1709 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
1710 the articles from a mail-to-news gateway.  Posting directly to this
1711 group is therefore impossible---you have to send mail to the mailing
1712 list address instead. 
1713
1714 @item to-list
1715 @cindex to-list
1716 If the group parameter list has an element that looks like
1717 @code{(to-list . "some@@where.com")}, that address will be used when
1718 doing a @kbd{a} in any group.  It is totally ignored when doing a
1719 followup---except that if it is present in a news group, you'll get mail
1720 group semantics when doing @kbd{f}.
1721
1722 @item broken-reply-to
1723 @cindex broken-reply-to
1724 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
1725 headers in this group are to be ignored.  This can be useful if you're
1726 reading a mailing list group where the listserv has inserted
1727 @code{Reply-To} headers that point back to the listserv itself.  This is
1728 broken behavior.  So there!
1729
1730 @item to-group
1731 @cindex to-group
1732 If the group parameter list contains an element like @code{(to-group
1733 . "some.group.name")}, all posts will be sent to that group.
1734
1735 @item auto-expire
1736 @cindex auto-expire
1737 If this symbol is present in the group parameter list, all articles that
1738 are read will be marked as expirable.  For an alternative approach,
1739 @pxref{Expiring Mail}.
1740
1741 @item total-expire
1742 @cindex total-expire
1743 If this symbol is present, all read articles will be put through the
1744 expiry process, even if they are not marked as expirable.  Use with
1745 caution. 
1746
1747 @item expiry-wait
1748 @cindex expiry-wait
1749 @vindex nnmail-expiry-wait-function
1750 If the group parameter has an element that looks like @code{(expiry-wait
1751 . 10)}, this value will override any @code{nnmail-expiry-wait} and
1752 @code{nnmail-expiry-wait-function} when expiring expirable messages.
1753 The value can either be a number of days (not necessarily an integer) or
1754 the symbols @code{never} or @code{immediate}.
1755
1756 @item score-file
1757 Elements that look like @code{(score-file . "file")} will make
1758 @samp{file} into the current score file for the group in question.  This
1759 means that all score commands you issue will end up in that file. 
1760
1761 @item admin-address
1762 When unsubscribing to a mailing list you should never send the
1763 unsubscription notice to the mailing list itself.  Instead, you'd send
1764 messages to the administrative address.  This parameter allows you to
1765 put the admin address somewhere convenient.
1766
1767 @item comment
1768 This parameter allows you to enter a random comment on the group.
1769
1770 @item @var{(variable form)}
1771 You can use the group parameters to set variables local to the group you
1772 are entering.  Say you want to turn threading off in
1773 @samp{news.answers}.  You'd then put @code{(gnus-show-threads nil)} in
1774 the group parameters of that group.  @code{gnus-show-threads} will be
1775 made into a local variable in the summary buffer you enter, and the form
1776 @code{nil} will be @code{eval}ed there.  
1777
1778 This can also be used as a group-specific hook function, if you'd like.
1779 If you want to hear a beep when you enter the group
1780 @samp{alt.binaries.pictures.furniture}, you could put something like
1781 @code{(dummy-variable (ding))} in the parameters of that group.
1782 @code{dummy-variable} will be set to the result of the @code{(ding)}
1783 form, but who cares?
1784
1785 @end table
1786
1787 If you want to change the group info you can use the @kbd{G E} command
1788 to enter a buffer where you can edit it.
1789
1790 You usually don't want to edit the entire group info, so you'd be better
1791 off using the @kbd{G p} command to just edit the group parameters.
1792
1793
1794 @node Listing Groups
1795 @section Listing Groups
1796 @cindex group listing
1797
1798 These commands all list various slices of the groups that are available.
1799
1800 @table @kbd
1801
1802 @item l
1803 @itemx A s
1804 @kindex A s (Group)
1805 @kindex l (Group)
1806 @findex gnus-group-list-groups
1807 List all groups that have unread articles
1808 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
1809 command will list only groups of level ARG and lower.  By default, it
1810 only lists groups of level five or lower (i.e., just subscribed groups).
1811
1812 @item L
1813 @itemx A u
1814 @kindex A u (Group)
1815 @kindex L (Group)
1816 @findex gnus-group-list-all-groups
1817 List all groups, whether they have unread articles or not
1818 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
1819 this command will list only groups of level ARG and lower.  By default,
1820 it lists groups of level seven or lower (i.e., just subscribed and
1821 unsubscribed groups).
1822
1823 @item A l
1824 @kindex A l (Group)
1825 @findex gnus-group-list-level
1826 List all unread groups on a specific level
1827 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
1828 with no unread articles.
1829
1830 @item A k
1831 @kindex A k (Group)
1832 @findex gnus-group-list-killed
1833 List all killed groups (@code{gnus-group-list-killed}).  If given a
1834 prefix argument, really list all groups that are available, but aren't
1835 currently (un)subscribed.  This could entail reading the active file
1836 from the server.
1837
1838 @item A z
1839 @kindex A z (Group)
1840 @findex gnus-group-list-zombies
1841 List all zombie groups (@code{gnus-group-list-zombies}).
1842
1843 @item A m
1844 @kindex A m (Group)
1845 @findex gnus-group-list-matching
1846 List all subscribed groups with unread articles that match a regexp
1847 (@code{gnus-group-list-matching}). 
1848
1849 @item A M
1850 @kindex A M (Group)
1851 @findex gnus-group-list-all-matching
1852 List groups that match a regexp (@code{gnus-group-list-all-matching}).
1853
1854 @item A A
1855 @kindex A A (Group)
1856 @findex gnus-group-list-active
1857 List absolutely all groups that are in the active file(s) of the
1858 server(s) you are connected to (@code{gnus-group-list-active}).  This
1859 might very well take quite a while.  It might actually be a better idea
1860 to do a @kbd{A m} to list all matching, and just give @samp{.} as the
1861 thing to match on.
1862
1863 @item A a
1864 @kindex A a (Group)
1865 @findex gnus-group-apropos
1866 List all groups that have names that match a regexp
1867 (@code{gnus-group-apropos}).
1868
1869 @item A d
1870 @kindex A d (Group)
1871 @findex gnus-group-description-apropos
1872 List all groups that have names or descriptions that match a regexp
1873 (@code{gnus-group-description-apropos}).
1874
1875 @end table
1876
1877 @vindex gnus-permanently-visible-groups
1878 @cindex visible group parameter
1879 Groups that match the @code{gnus-permanently-visible-groups} regexp will
1880 always be shown, whether they have unread articles or not.  You can also
1881 add the @code{visible} element to the group parameters in question to
1882 get the same effect.
1883
1884 @vindex gnus-list-groups-with-ticked-articles
1885 Groups that have just ticked articles in it are normally listed in the
1886 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
1887 @code{nil}, these groups will be treated just like totally empty
1888 groups.  It is @code{t} by default.
1889
1890
1891 @node Sorting Groups
1892 @section Sorting Groups
1893 @cindex sorting groups
1894
1895 @kindex C-c C-s (Group)
1896 @findex gnus-group-sort-groups
1897 @vindex gnus-group-sort-function
1898 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
1899 group buffer according to the function(s) given by the
1900 @code{gnus-group-sort-function} variable.  Available sorting functions
1901 include: 
1902
1903 @table @code
1904
1905 @item gnus-group-sort-by-alphabet
1906 @findex gnus-group-sort-by-alphabet
1907 Sort the group names alphabetically.  This is the default.
1908
1909 @item gnus-group-sort-by-level
1910 @findex gnus-group-sort-by-level
1911 Sort by group level.
1912
1913 @item gnus-group-sort-by-score
1914 @findex gnus-group-sort-by-score
1915 Sort by group score.
1916
1917 @item gnus-group-sort-by-rank
1918 @findex gnus-group-sort-by-rank
1919 Sort by group score and then the group level.  The level and the score
1920 are, when taken together, the group's @dfn{rank}. 
1921
1922 @item gnus-group-sort-by-unread
1923 @findex gnus-group-sort-by-unread
1924 Sort by number of unread articles.
1925
1926 @item gnus-group-sort-by-method
1927 @findex gnus-group-sort-by-method
1928 Sort by alphabetically on the select method.
1929
1930
1931 @end table
1932
1933 @code{gnus-group-sort-function} can also be a list of sorting
1934 functions.  In that case, the most significant sort key function must be
1935 the last one.
1936
1937
1938 There are also a number of commands for sorting directly according to
1939 some sorting criteria:
1940
1941 @table @kbd
1942 @item G S a
1943 @kindex G S a (Group)
1944 @findex gnus-group-sort-groups-by-alphabet
1945 Sort the group buffer alphabetically by group name
1946 (@code{gnus-group-sort-groups-by-alphabet}). 
1947
1948 @item G S u
1949 @kindex G S u (Group)
1950 @findex gnus-group-sort-groups-by-unread
1951 Sort the group buffer by the number of unread articles
1952 (@code{gnus-group-sort-groups-by-unread}).
1953
1954 @item G S l
1955 @kindex G S l (Group)
1956 @findex gnus-group-sort-groups-by-level
1957 Sort the group buffer by group level
1958 (@code{gnus-group-sort-groups-by-level}). 
1959
1960 @item G S v
1961 @kindex G S v (Group)
1962 @findex gnus-group-sort-groups-by-score
1963 Sort the group buffer by group score
1964 (@code{gnus-group-sort-groups-by-score}). 
1965
1966 @item G S r
1967 @kindex G S r (Group)
1968 @findex gnus-group-sort-groups-by-rank
1969 Sort the group buffer by group level
1970 (@code{gnus-group-sort-groups-by-rank}). 
1971
1972 @item G S m
1973 @kindex G S m (Group)
1974 @findex gnus-group-sort-groups-by-method
1975 Sort the group buffer alphabetically by backend name
1976 (@code{gnus-group-sort-groups-by-method}). 
1977
1978 @end table
1979
1980 When given a prefix, all these commands will sort in reverse order. 
1981
1982
1983 @node Group Maintenance
1984 @section Group Maintenance
1985 @cindex bogus groups
1986
1987 @table @kbd
1988 @item b
1989 @kindex b (Group)
1990 @findex gnus-group-check-bogus-groups
1991 Find bogus groups and delete them
1992 (@code{gnus-group-check-bogus-groups}).
1993
1994 @item F
1995 @kindex F (Group)
1996 @findex gnus-find-new-newsgroups
1997 Find new groups and process them (@code{gnus-find-new-newsgroups}).  If
1998 given a prefix, use the @code{ask-server} method to query the server for
1999 new groups.
2000
2001 @item C-c C-x
2002 @kindex C-c C-x (Group)
2003 @findex gnus-group-expire-articles
2004 Run all expirable articles in the current group through the expiry
2005 process (if any) (@code{gnus-group-expire-articles}).
2006
2007 @item C-c M-C-x
2008 @kindex C-c M-C-x (Group)
2009 @findex gnus-group-expire-all-groups
2010 Run all articles in all groups through the expiry process
2011 (@code{gnus-group-expire-all-groups}).
2012
2013 @end table
2014
2015
2016 @node Browse Foreign Server
2017 @section Browse Foreign Server
2018 @cindex foreign servers
2019 @cindex browsing servers
2020
2021 @table @kbd
2022 @item B
2023 @kindex B (Group)
2024 @findex gnus-group-browse-foreign-server
2025 You will be queried for a select method and a server name.  Gnus will
2026 then attempt to contact this server and let you browse the groups there
2027 (@code{gnus-group-browse-foreign-server}).
2028 @end table
2029
2030 @findex gnus-browse-server-mode
2031 A new buffer with a list of available groups will appear.  This buffer
2032 will be use the @code{gnus-browse-server-mode}.  This buffer looks a bit
2033 (well, a lot) like a normal group buffer, but with one major difference
2034 - you can't enter any of the groups.  If you want to read any of the
2035 news available on that server, you have to subscribe to the groups you
2036 think may be interesting, and then you have to exit this buffer.  The
2037 new groups will be added to the group buffer, and then you can read them
2038 as you would any other group.
2039
2040 Future versions of Gnus may possibly permit reading groups straight from
2041 the browse buffer.
2042
2043 Here's a list of keystrokes available in the browse mode:
2044
2045 @table @kbd
2046 @item n
2047 @kindex n (Browse)
2048 @findex gnus-group-next-group
2049 Go to the next group (@code{gnus-group-next-group}).
2050
2051 @item p
2052 @kindex p (Browse)
2053 @findex gnus-group-prev-group
2054 Go to the previous group (@code{gnus-group-prev-group}).
2055
2056 @item SPACE
2057 @kindex SPACE (Browse)
2058 @findex gnus-browse-read-group
2059 Enter the current group and display the first article
2060 (@code{gnus-browse-read-group}). 
2061
2062 @item RET
2063 @kindex RET (Browse)
2064 @findex gnus-browse-select-group
2065 Enter the current group (@code{gnus-browse-select-group}). 
2066
2067 @item u
2068 @kindex u (Browse)
2069 @findex gnus-browse-unsubscribe-current-group
2070 Unsubscribe to the current group, or, as will be the case here,
2071 subscribe to it (@code{gnus-browse-unsubscribe-current-group}). 
2072
2073 @item l
2074 @itemx q
2075 @kindex q (Browse)
2076 @kindex l (Browse)
2077 @findex gnus-browse-exit
2078 Exit browse mode (@code{gnus-browse-exit}).
2079
2080 @item ?
2081 @kindex ? (Browse)
2082 @findex gnus-browse-describe-briefly
2083 Describe browse mode briefly (well, there's not much to describe, is
2084 there) (@code{gnus-browse-describe-briefly}).
2085 @end table
2086
2087
2088 @node Exiting Gnus
2089 @section Exiting Gnus
2090 @cindex exiting Gnus
2091
2092 Yes, Gnus is ex(c)iting.
2093
2094 @table @kbd
2095 @item z
2096 @kindex z (Group)
2097 @findex gnus-group-suspend
2098 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
2099 but it kills all buffers except the Group buffer.  I'm not sure why this
2100 is a gain, but then who am I to judge?
2101
2102 @item q
2103 @kindex q (Group)
2104 @findex gnus-group-exit
2105 Quit Gnus (@code{gnus-group-exit}).
2106
2107 @item Q
2108 @kindex Q (Group)
2109 @findex gnus-group-quit
2110 Quit Gnus without saving any startup files (@code{gnus-group-quit}).
2111 @end table
2112
2113 @vindex gnus-exit-gnus-hook
2114 @vindex gnus-suspend-gnus-hook
2115 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
2116 @code{gnus-exit-gnus-hook} is called when you quit Gnus, while
2117 @code{gnus-after-exiting-gnus-hook} is called as the final item when
2118 exiting Gnus.
2119
2120 @findex gnus-unload
2121 @cindex unloading
2122 If you wish to completely unload Gnus and all its adherents, you can use
2123 the @code{gnus-unload} command.  This command is also very handy when
2124 trying to customize meta-variables.
2125
2126 Note:
2127
2128 @quotation
2129 Miss Lisa Cannifax, while sitting in English class, feels her feet go
2130 numbly heavy and herself fall into a hazy trance as the boy sitting
2131 behind her drew repeated lines with his pencil across the back of her
2132 plastic chair.
2133 @end quotation
2134
2135
2136 @node Group Topics
2137 @section Group Topics
2138 @cindex topics
2139
2140 If you read lots and lots of groups, it might be convenient to group
2141 them hierarchically according to topics.  You put your Emacs groups over
2142 here, your sex groups over there, and the rest (what, two groups or so?)
2143 you put in some misc section that you never bother with anyway.  You can
2144 even group the Emacs sex groups as a sub-topic to either the Emacs
2145 groups or the sex groups---or both!  Go wild!
2146
2147 @findex gnus-topic-mode
2148 @kindex t (Group)
2149 To get this @emph{fab} functionality you simply turn on (ooh!) the
2150 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
2151 is a toggling command.)
2152
2153 Go ahead, just try it.  I'll still be here when you get back.  La de
2154 dum...  Nice tune, that...  la la la...  What, you're back? Yes, and now
2155 press @kbd{l}.  There.  All your groups are now listed under
2156 @samp{misc}.  Doesn't that make you feel all warm and fuzzy?  Hot and
2157 bothered?
2158
2159 If you want this permanently enabled, you should add that minor mode to
2160 the hook for the group mode:
2161
2162 @lisp
2163 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
2164 @end lisp
2165
2166 @menu 
2167 * Topic Variables::    How to customize the topics the Lisp Way.
2168 * Topic Commands::     Interactive E-Z commands.
2169 * Topic Topology::     A map of the world.
2170 @end menu
2171
2172
2173 @node Topic Variables
2174 @subsection Topic Variables
2175 @cindex topic variables
2176
2177 @vindex gnus-topic-unique
2178 If @code{gnus-topic-unique} is non-@code{nil}, each group will be member
2179 of (tops) one topic each.  If this is @code{nil}, each group might end
2180 up being a member of several topics.
2181
2182 Now, if you select a topic, if will fold/unfold that topic, which is
2183 really neat, I think.
2184
2185 @vindex gnus-topic-line-format
2186 The topic lines themselves are created according to the
2187 @code{gnus-topic-line-format} variable.  @xref{Formatting Variables}.
2188 Elements allowed are:
2189
2190 @table @samp
2191 @item i
2192 Indentation.
2193 @item n
2194 Topic name.
2195 @item v
2196 Visibility.
2197 @item l
2198 Level.
2199 @item g
2200 Number of groups in the topic.
2201 @item a
2202 Number of unread articles in the topic.
2203 @item A 
2204 Number of unread articles in the topic and all its subtopics. 
2205 @end table
2206
2207 @vindex gnus-topic-indent-level
2208 Each sub-topic (and the groups in the sub-topics) will be indented with
2209 @code{gnus-topic-indent-level} times the topic level number of spaces.
2210 The default is @code{2}.
2211
2212 @vindex gnus-topic-mode-hook
2213 @code{gnus-topic-mode-hook} is called in topic minor mode buffers. 
2214
2215
2216 @node Topic Commands
2217 @subsection Topic Commands
2218 @cindex topic commands
2219
2220 When the topic minor mode is turned on, a new @kbd{T} submap will be
2221 available.  In addition, a few of the standard keys change their
2222 definitions slightly.
2223
2224 @table @kbd
2225
2226 @item T n
2227 @kindex T n (Group)
2228 @findex gnus-topic-create-topic
2229 Create a new topic (@code{gnus-topic-create-topic}).  You will be
2230 prompted for a topic name and the name of the parent topic.
2231
2232 @item T m
2233 @kindex T m (Group)
2234 @findex gnus-topic-move-group
2235 Move the current group to some other topic
2236 (@code{gnus-topic-move-group}).  This command understands the
2237 process/prefix convention (@pxref{Process/Prefix}).
2238
2239 @item T c
2240 @kindex T c (Group)
2241 @findex gnus-topic-copy-group
2242 Copy the current group to some other topic
2243 (@code{gnus-topic-copy-group}).  This command understands the
2244 process/prefix convention (@pxref{Process/Prefix}).
2245
2246 @item T D
2247 @kindex T D (Group)
2248 @findex gnus-topic-remove-group
2249 Remove a group from the current topic (@code{gnus-topic-remove-group}).
2250 This command understands the process/prefix convention
2251 (@pxref{Process/Prefix}).
2252
2253 @item T M
2254 @kindex T M (Group)
2255 @findex gnus-topic-move-matching
2256 Move all groups that match some regular expression to a topic
2257 (@code{gnus-topic-move-matching}). 
2258
2259 @item T C
2260 @kindex T C (Group)
2261 @findex gnus-topic-copy-matching
2262 Copy all groups that match some regular expression to a topic
2263 (@code{gnus-topic-copy-matching}). 
2264
2265 @item T #
2266 @kindex T # (Group)
2267 @findex gnus-topic-mark-topic
2268 Mark all groups in the current topic with the process mark
2269 (@code{gnus-topic-mark-topic}). 
2270
2271 @item T M-#
2272 @kindex T M-# (Group)
2273 @findex gnus-topic-unmark-topic
2274 Remove the process mark from all groups in the current topic
2275 (@code{gnus-topic-unmark-topic}). 
2276
2277 @item RET
2278 @kindex RET (Group)
2279 @findex gnus-topic-select-group
2280 @itemx SPACE
2281 Either select a group or fold a topic (@code{gnus-topic-select-group}).
2282 When you perform this command on a group, you'll enter the group, as
2283 usual.  When done on a topic line, the topic will be folded (if it was
2284 visible) or unfolded (if it was folded already).  So it's basically a
2285 toggling command on topics.  In addition, if you give a numerical
2286 prefix, group on that level (and lower) will be displayed.
2287
2288 @item TAB
2289 @kindex TAB (Group)
2290 @findex gnus-topic-indent
2291 ``Indent'' the current topic so that it becomes a sub-topic of the
2292 previous topic (@code{gnus-topic-indent}).  If given a prefix,
2293 ``un-indent'' the topic instead.
2294
2295 @item C-k
2296 @kindex C-k (Group)
2297 @findex gnus-topic-kill-group
2298 Kill a group or topic (@code{gnus-topic-kill-group}).  
2299
2300 @item C-y
2301 @kindex C-y (Group)
2302 @findex gnus-topic-yank-group
2303 Yank the previously killed group or topic (@code{gnus-topic-yank-group}).
2304 Note that all topics will be yanked before all groups.
2305
2306 @item T r
2307 @kindex T r (Group)
2308 @findex gnus-topic-rename
2309 Rename a topic (@code{gnus-topic-rename}). 
2310
2311 @item T DEL
2312 @kindex T DEL (Group)
2313 @findex gnus-topic-delete
2314 Delete an empty topic (@code{gnus-topic-delete}). 
2315
2316 @item A T
2317 @kindex A T (Group)
2318 @findex gnus-topic-list-active
2319 List all groups that Gnus knows about in a topics-ified way
2320 (@code{gnus-topic-list-active}).
2321
2322 @end table
2323
2324
2325 @node Topic Topology
2326 @subsection Topic Topology
2327 @cindex topic topology
2328 @cindex topology
2329
2330 So, let's have a look at an example group buffer:
2331
2332 @example
2333 Gnus
2334   Emacs -- I wuw it!
2335        3: comp.emacs
2336        2: alt.religion.emacs
2337     Naughty Emacs
2338      452: alt.sex.emacs
2339        0: comp.talk.emacs.recovery
2340   Misc
2341        8: comp.binaries.fractals
2342       13: comp.sources.unix
2343 @end example
2344
2345 So, here we have one top-level topic, two topics under that, and one
2346 sub-topic under one of the sub-topics.  (There is always just one (1)
2347 top-level topic).  This topology can be expressed as follows:
2348
2349 @lisp
2350 (("Gnus" visible)
2351  (("Emacs -- I wuw it!" visible) 
2352   (("Naughty Emacs" visible)))
2353  (("Misc" visible)))
2354 @end lisp
2355
2356 @vindex gnus-topic-topology
2357 This is in fact how the variable @code{gnus-topic-topology} would look
2358 for the display above.  That variable is saved in the @file{.newsrc.eld}
2359 file, and shouldn't be messed with manually---unless you really want
2360 to.  Since this variable is read from the @file{.newsrc.eld} file,
2361 setting it in any other startup files will have no effect.  
2362
2363 This topology shows what topics are sub-topics of what topics (right),
2364 and which topics are visible.  Two settings are currently
2365 allowed---@code{visible} and @code{invisible}.
2366
2367
2368 @node Misc Group Stuff
2369 @section Misc Group Stuff
2370
2371 @menu
2372 * Scanning New Messages:: Asking Gnus to see whether new messages have arrived.
2373 * Group Information::     Information and help on groups and Gnus.
2374 * File Commands::         Reading and writing the Gnus files.
2375 @end menu
2376
2377 @table @kbd
2378
2379 @item ^
2380 @kindex ^ (Group)
2381 @findex gnus-group-enter-server-mode
2382 Enter the server buffer (@code{gnus-group-enter-server-mode}). @xref{The
2383 Server Buffer}.
2384
2385 @item a
2386 @kindex a (Group)
2387 @findex gnus-group-post-news
2388 Post an article to a group (@code{gnus-group-post-news}).  The current
2389 group name will be used as the default.
2390
2391 @item m
2392 @kindex m (Group)
2393 @findex gnus-group-mail
2394 Mail a message somewhere (@code{gnus-group-mail}).
2395
2396 @end table
2397
2398 Variables for the group buffer:
2399
2400 @table @code
2401
2402 @item gnus-group-mode-hook
2403 @vindex gnus-group-mode-hook
2404 @code{gnus-group-mode-hook} is called after the group buffer has been
2405 created. 
2406
2407 @item gnus-group-prepare-hook
2408 @vindex gnus-group-prepare-hook
2409 @code{gnus-group-prepare-hook} is called after the group buffer is
2410 generated.  It may be used to modify the buffer in some strange,
2411 unnatural way.
2412
2413 @end table
2414
2415
2416 @node Scanning New Messages
2417 @subsection Scanning New Messages
2418 @cindex new messages
2419 @cindex scanning new news
2420
2421 @table @kbd
2422
2423 @item g
2424 @kindex g (Group)
2425 @findex gnus-group-get-new-news
2426 Check the server(s) for new articles.  If the numerical prefix is used,
2427 this command will check only groups of level @var{arg} and lower
2428 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
2429 command will force a total rereading of the active file(s) from the
2430 backend(s).
2431
2432 @item M-g
2433 @kindex M-g (Group)
2434 @findex gnus-group-get-new-news-this-group
2435 @vindex gnus-goto-next-group-when-activating
2436 Check whether new articles have arrived in the current group
2437 (@code{gnus-group-get-new-news-this-group}).  The
2438 @code{gnus-goto-next-group-when-activating} variable controls whether
2439 this command is to move point to the next group or not.  It is @code{t}
2440 by default.
2441
2442 @findex gnus-activate-all-groups
2443 @cindex activating groups
2444 @item C-c M-g
2445 @kindex C-c M-g (Group)
2446 Activate absolutely all groups (@code{gnus-activate-all-groups}). 
2447
2448 @item R
2449 @kindex R (Group)
2450 @cindex restarting
2451 @findex gnus-group-restart
2452 Restart Gnus (@code{gnus-group-restart}).
2453
2454 @end table
2455
2456 @vindex gnus-get-new-news-hook
2457 @code{gnus-get-new-news-hook} is run just before checking for new news. 
2458
2459 @vindex gnus-after-getting-new-news-hook
2460 @code{gnus-after-getting-new-news-hook} is run after checking for new
2461 news.
2462
2463
2464 @node Group Information
2465 @subsection Group Information
2466 @cindex group information
2467 @cindex information on groups
2468
2469 @table @kbd
2470
2471 @item M-f
2472 @kindex M-f (Group)
2473 @findex gnus-group-fetch-faq
2474 @cindex FAQ
2475 @cindex ange-ftp
2476 Try to fetch the FAQ for the current group
2477 (@code{gnus-group-fetch-faq}).  Gnus will try to get the FAQ from
2478 @code{gnus-group-faq-directory}, which is usually a directory on a
2479 remote machine.  @code{ange-ftp} will be used for fetching the file.
2480
2481 @item D
2482 @kindex D (Group)
2483 @cindex describing groups
2484 @cindex group description
2485 @findex gnus-group-describe-group
2486 Describe the current group (@code{gnus-group-describe-group}).  If given
2487 a prefix, force Gnus to re-read the description from the server.
2488
2489 @item M-d
2490 @kindex M-d (Group)
2491 @findex gnus-group-describe-all-groups
2492 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
2493 prefix, force Gnus to re-read the description file from the server.
2494
2495 @item V
2496 @kindex V (Group)
2497 @cindex version
2498 @findex gnus-version
2499 Display current Gnus version numbers (@code{gnus-version}).
2500
2501 @item ?
2502 @kindex ? (Group)
2503 @findex gnus-group-describe-briefly
2504 Give a very short help message (@code{gnus-group-describe-briefly}).
2505
2506 @item C-c C-i
2507 @kindex C-c C-i (Group)
2508 @cindex info
2509 @cindex manual
2510 @findex gnus-info-find-node
2511 Go to the Gnus info node (@code{gnus-info-find-node}).
2512 @end table
2513
2514
2515 @node File Commands
2516 @subsection File Commands
2517 @cindex file commands
2518
2519 @table @kbd
2520
2521 @item r
2522 @kindex r (Group)
2523 @findex gnus-group-read-init-file
2524 @vindex gnus-init-file
2525 @cindex reading init file
2526 Read the init file (@code{gnus-init-file}, which defaults to
2527 @file{~/.gnus}) (@code{gnus-group-read-init-file}).
2528
2529 @item s
2530 @kindex s (Group)
2531 @findex gnus-group-save-newsrc
2532 @cindex saving .newsrc
2533 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
2534 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
2535 file(s) whether Gnus thinks it is necessary or not.
2536
2537 @item Z
2538 @kindex Z (Group)
2539 @findex gnus-group-clear-dribble
2540 Clear the dribble buffer (@code{gnus-group-clear-dribble}).
2541
2542 @end table
2543
2544
2545 @node The Summary Buffer
2546 @chapter The Summary Buffer
2547 @cindex summary buffer
2548
2549 A line for each article is displayed in the summary buffer.  You can
2550 move around, read articles, post articles and reply to articles.
2551
2552 @menu
2553 * Summary Buffer Format::       Deciding how the summary buffer is to look.
2554 * Summary Maneuvering::         Moving around the summary buffer.
2555 * Choosing Articles::           Reading articles.
2556 * Paging the Article::          Scrolling the current article.
2557 * Reply Followup and Post::     Posting articles.
2558 * Canceling and Superseding::   ``Whoops, I shouldn't have called him that.''
2559 * Marking Articles::            Marking articles as read, expirable, etc.
2560 * Limiting::                    You can limit the summary buffer.
2561 * Threading::                   How threads are made.
2562 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
2563 * Article Caching::             You may store articles in a cache.
2564 * Persistent Articles::         Making articles expiry-resistant.
2565 * Article Backlog::             Having already read articles hang around.
2566 * Saving Articles::             Ways of customizing article saving.
2567 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
2568 * Article Treatment::           The article buffer can be mangled at will.
2569 * Summary Sorting::             You can sort the summary buffer four ways.
2570 * Finding the Parent::          No child support? Get the parent.
2571 * Alternative Approaches::      Reading using non-default summaries.
2572 * Tree Display::                A more visual display of threads.
2573 * Mail Group Commands::         Some commands can only be used in mail groups.
2574 * Various Summary Stuff::       What didn't fit anywhere else.
2575 * Exiting the Summary Buffer::  Returning to the Group buffer.
2576 @end menu
2577
2578
2579 @node Summary Buffer Format
2580 @section Summary Buffer Format
2581 @cindex summary buffer format
2582
2583 @menu
2584 * Summary Buffer Lines::     You can specify how summary lines should look.
2585 * Summary Buffer Mode Line:: You can say how the mode line should look.
2586 * Summary Highlighting::     Making the summary buffer all pretty and nice.
2587 @end menu
2588
2589 @findex mail-extract-address-components
2590 @findex gnus-extract-address-components
2591 @vindex gnus-extract-address-components
2592 Gnus will use the value of the @code{gnus-extract-address-components}
2593 variable as a function for getting the name and address parts of a
2594 @code{From} header.  Two pre-defined function exist:
2595 @code{gnus-extract-address-components}, which is the default, quite
2596 fast, and too simplistic solution; and
2597 @code{mail-extract-address-components}, which works very nicely, but is
2598 slower.
2599
2600 @vindex gnus-summary-same-subject
2601 @code{gnus-summary-same-subject} is a string indicating that the current
2602 article has the same subject as the previous.  This string will be used
2603 with those specs that require it.  The default is @samp{}.
2604
2605
2606 @node Summary Buffer Lines
2607 @subsection Summary Buffer Lines
2608
2609 @vindex gnus-summary-line-format
2610 You can change the format of the lines in the summary buffer by changing
2611 the @code{gnus-summary-line-format} variable.  It works along the same
2612 lines a a normal @code{format} string, with some extensions.
2613
2614 The default string is @samp{%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n}.
2615
2616 The following format specification characters are understood:
2617
2618 @table @samp
2619 @item N 
2620 Article number.
2621 @item S
2622 Subject string.
2623 @item s
2624 Subject if the article is the root, @code{gnus-summary-same-subject}
2625 otherwise. 
2626 @item F
2627 Full @code{From} line.
2628 @item n
2629 The name (from the @code{From} header).
2630 @item a
2631 The name (from the @code{From} header).  This differs from the @code{n}
2632 spec in that it uses @code{gnus-extract-address-components}, which is
2633 slower, but may be more thorough.
2634 @item A
2635 The address (from the @code{From} header).  This works the same way as
2636 the @code{a} spec.
2637 @item L
2638 Number of lines in the article.
2639 @item c
2640 Number of characters in the article.
2641 @item I
2642 Indentation based on thread level (@pxref{Customizing Threading}).
2643 @item T
2644 Nothing if the article is a root and lots of spaces if it isn't (it
2645 pushes everything after it off the screen).
2646 @item \[
2647 Opening bracket, which is normally @samp{\[}, but can also be @samp{<}
2648 for adopted articles.
2649 @item \]
2650 Closing bracket, which is normally @samp{\]}, but can also be @samp{>}
2651 for adopted articles.
2652 @item >
2653 One space for each thread level.
2654 @item <
2655 Twenty minus thread level spaces.
2656 @item U
2657 Unread.
2658 @item R
2659 Replied.
2660 @item i
2661 Score as a number.
2662 @item z
2663 @vindex gnus-summary-zcore-fuzz
2664 Zcore, @samp{+} if above the default level and @samp{-} if below the
2665 default level.  If the difference between
2666 @code{gnus-summary-default-level} and the score is less than
2667 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
2668 @item V
2669 Total thread score.
2670 @item x
2671 @code{Xref}.
2672 @item D
2673 @code{Date}.
2674 @item M
2675 @code{Message-ID}.
2676 @item r
2677 @code{References}.
2678 @item t
2679 Number of articles in the current sub-thread.  Using this spec will slow
2680 down summary buffer generation somewhat.
2681 @item e
2682 A single character will be displayed if the article has any children. 
2683 @item u
2684 User defined specifier.  The next character in the format string should
2685 be a letter.  @sc{gnus} will call the function
2686 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
2687 following @samp{%u}.  The function will be passed the current header as
2688 argument.  The function should return a string, which will be inserted
2689 into the summary just like information from any other summary specifier.
2690 @end table
2691
2692 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
2693 have to be handled with care.  For reasons of efficiency, Gnus will
2694 compute what column these characters will end up in, and ``hard-code''
2695 that.  This means that it is illegal to have these specs after a
2696 variable-length spec.  Well, you might not be arrested, but your summary
2697 buffer will look strange, which is bad enough.
2698
2699 The smart choice is to have these specs as far to the left as possible.
2700 (Isn't that the case with everything, though?  But I digress.)
2701
2702 This restriction may disappear in later versions of Gnus.
2703
2704
2705 @node Summary Buffer Mode Line
2706 @subsection Summary Buffer Mode Line
2707
2708 @vindex gnus-summary-mode-line-format
2709 You can also change the format of the summary mode bar.  Set
2710 @code{gnus-summary-mode-line-format} to whatever you like.  Here are the
2711 elements you can play with:
2712
2713 @table @samp
2714 @item G
2715 Group name.
2716 @item p
2717 Unprefixed group name.
2718 @item A
2719 Current article number.
2720 @item V
2721 Gnus version.
2722 @item U
2723 Number of unread articles in this group.
2724 @item e
2725 Number of unselected articles in this group.
2726 @item Z
2727 A string with the number of unread and unselected articles represented
2728 either as @samp{<%U(+%u) more>} if there are both unread and unselected
2729 articles, and just as @samp{<%U more>} if there are just unread articles
2730 and no unselected ones.
2731 @item g
2732 Shortish group name.  For instance, @samp{rec.arts.anime} will be
2733 shortened to @samp{r.a.anime}. 
2734 @item S
2735 Subject of the current article.
2736 @item u
2737 Used-defined spec.
2738 @item s
2739 Name of the current score file.
2740 @item d
2741 Number of dormant articles.
2742 @item t
2743 Number of ticked articles.
2744 @item r
2745 Number of articles that have been marked as read in this session. 
2746 @item E
2747 Number of articles expunged by the score files.
2748 @end table
2749
2750
2751 @node Summary Highlighting
2752 @subsection Summary Highlighting
2753
2754 @table @code
2755
2756 @item gnus-visual-mark-article-hook
2757 @vindex gnus-visual-mark-article-hook
2758 This hook is run after selecting an article.  It is meant to be used for
2759 highlighting the article in some way.  It is not run if
2760 @code{gnus-visual} is @code{nil}.
2761
2762 @item gnus-summary-update-hook
2763 @vindex gnus-summary-update-hook
2764 This hook is called when a summary line is changed.  It is not run if
2765 @code{gnus-visual} is @code{nil}.
2766
2767 @item gnus-summary-selected-face
2768 @vindex gnus-summary-selected-face
2769 This is the face (or @dfn{font} as some people call it) that is used to
2770 highlight the current article in the summary buffer.
2771
2772 @item gnus-summary-highlight
2773 @vindex gnus-summary-highlight
2774 Summary lines are highlighted according to this variable, which is a
2775 list where the elements are on the format @code{(FORM . FACE)}.  If you
2776 would, for instance, like ticked articles to be italic and high-scored
2777 articles to be bold, you could set this variable to something like
2778 @lisp
2779 (((eq mark gnus-ticked-mark) . italic)
2780  ((> score default) . bold))
2781 @end lisp
2782 As you may have guessed, if @var{FORM} returns a non-@code{nil} value,
2783 @var{FACE} will be applied to the line.
2784 @end table
2785
2786
2787 @node Summary Maneuvering
2788 @section Summary Maneuvering
2789 @cindex summary movement
2790
2791 All the straight movement commands understand the numeric prefix and
2792 behave pretty much as you'd expect. 
2793
2794 None of these commands select articles.
2795
2796 @table @kbd
2797 @item G M-n
2798 @itemx M-n
2799 @kindex M-n (Summary)
2800 @kindex G M-n (Summary)
2801 @findex gnus-summary-next-unread-subject
2802 Go to the next summary line of an unread article
2803 (@code{gnus-summary-next-unread-subject}). 
2804
2805 @item G M-p
2806 @itemx M-p
2807 @kindex M-p (Summary)
2808 @kindex G M-p (Summary)
2809 @findex gnus-summary-prev-unread-subject
2810 Go to the previous summary line of an unread article
2811 (@code{gnus-summary-prev-unread-subject}). 
2812
2813 @item G j
2814 @itemx j
2815 @kindex j (Summary)
2816 @kindex G j (Summary)
2817 @findex gnus-summary-goto-article
2818 Ask for an article number and then go that article
2819 (@code{gnus-summary-goto-article}). 
2820
2821 @item G g
2822 @kindex G g (Summary)
2823 @findex gnus-summary-goto-subject
2824 Ask for an article number and then go the summary line of that article
2825 (@code{gnus-summary-goto-subject}).
2826 @end table
2827
2828 If Gnus asks you to press a key to confirm going to the next group, you
2829 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
2830 buffer, searching for the next group to read without actually returning
2831 to the group buffer.
2832
2833 Variables related to summary movement:
2834
2835 @table @code
2836
2837 @vindex gnus-auto-select-next
2838 @item gnus-auto-select-next
2839 If you are at the end of the group and issue one of the movement
2840 commands, Gnus will offer to go to the next group.  If this variable is
2841 @code{t} and the next group is empty, Gnus will exit summary mode and
2842 return to the group buffer.  If this variable is neither @code{t} nor
2843 @code{nil}, Gnus will select the next group, no matter whether it has
2844 any unread articles or not.  As a special case, if this variable is
2845 @code{quietly}, Gnus will select the next group without asking for
2846 confirmation.  If this variable is @code{almost-quietly}, the same will
2847 happen only if you are located on the last article in the group.
2848 Finally, if this variable is @code{slightly-quietly}, the @kbd{Z n}
2849 command will go to the next group without confirmation.  Also
2850 @pxref{Group Levels}.
2851
2852 @item gnus-auto-select-same
2853 @vindex gnus-auto-select-same
2854 If non-@code{nil}, all the movement commands will try to go to the next
2855 article with the same subject as the current.  This variable is not
2856 particularly useful if you use a threaded display.
2857
2858 @item gnus-summary-check-current
2859 @vindex gnus-summary-check-current
2860 If non-@code{nil}, all the ``unread'' movement commands will not proceed
2861 to the next (or previous) article if the current article is unread.
2862 Instead, they will choose the current article.
2863
2864 @item gnus-auto-center-summary
2865 @vindex gnus-auto-center-summary
2866 If non-@code{nil}, Gnus will keep the point in the summary buffer
2867 centered at all times.  This makes things quite tidy, but if you have a
2868 slow network connection, or simply do not like this un-Emacsism, you can
2869 set this variable to @code{nil} to get the normal Emacs scrolling
2870 action.  This will also inhibit horizontal re-centering of the summary
2871 buffer, which might make it more inconvenient to read extremely long
2872 threads.
2873
2874 @end table
2875
2876
2877 @node Choosing Articles
2878 @section Choosing Articles
2879 @cindex selecting articles
2880
2881 None of the following movement commands understand the numeric prefix,
2882 and they all select and display an article.
2883
2884 @table @kbd
2885 @item SPACE
2886 @kindex SPACE (Summary)
2887 @findex gnus-summary-next-page
2888 Select the current article, or, if that one's read already, the next
2889 unread article (@code{gnus-summary-next-page}).
2890
2891 @item G n
2892 @itemx n
2893 @kindex n (Summary)
2894 @kindex G n (Summary)
2895 @findex gnus-summary-next-unread-article
2896 Go to next unread article (@code{gnus-summary-next-unread-article}).
2897
2898 @item G p
2899 @itemx p
2900 @kindex p (Summary)
2901 @findex gnus-summary-prev-unread-article
2902 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
2903
2904 @item G N
2905 @itemx N
2906 @kindex N (Summary)
2907 @kindex G N (Summary)
2908 @findex gnus-summary-next-article
2909 Go to the next article (@code{gnus-summary-next-article}).
2910
2911 @item G P
2912 @itemx P
2913 @kindex P (Summary)
2914 @kindex G P (Summary)
2915 @findex gnus-summary-prev-article
2916 Go to the previous article (@code{gnus-summary-prev-article}).
2917
2918 @item G C-n
2919 @kindex G C-n (Summary)
2920 @findex gnus-summary-next-same-subject
2921 Go to the next article with the same subject
2922 (@code{gnus-summary-next-same-subject}). 
2923
2924 @item G C-p
2925 @kindex G C-p (Summary)
2926 @findex gnus-summary-prev-same-subject
2927 Go to the previous article with the same subject
2928 (@code{gnus-summary-prev-same-subject}). 
2929
2930 @item G f
2931 @itemx .
2932 @kindex G f  (Summary)
2933 @kindex .  (Summary)
2934 @findex gnus-summary-first-unread-article
2935 Go to the first unread article
2936 (@code{gnus-summary-first-unread-article}).
2937
2938 @item G b
2939 @itemx ,
2940 @kindex G b (Summary)
2941 @kindex , (Summary)
2942 @findex gnus-summary-best-unread-article
2943 Go to the article with the highest score
2944 (@code{gnus-summary-best-unread-article}). 
2945
2946 @item G l
2947 @itemx l
2948 @kindex l (Summary)
2949 @kindex G l (Summary)
2950 @findex gnus-summary-goto-last-article
2951 Go to the previous article read (@code{gnus-summary-goto-last-article}).
2952
2953 @item G p
2954 @kindex G p (Summary)
2955 @findex gnus-summary-pop-article
2956 Pop an article off the summary history and go to this article
2957 (@code{gnus-summary-pop-article}).  This command differs from the
2958 command above in that you can pop as many previous articles off the
2959 history as you like.
2960 @end table
2961
2962 Some variables that are relevant for moving and selecting articles:
2963
2964 @table @code
2965 @item gnus-auto-extend-newsgroup
2966 @vindex gnus-auto-extend-newsgroup
2967 All the movement commands will try to go to the previous (or next)
2968 article, even if that article isn't displayed in the Summary buffer if
2969 this variable is non-@code{nil}.  Gnus will then fetch the article from
2970 the server and display it in the article buffer.
2971
2972 @item gnus-select-article-hook
2973 @vindex gnus-select-article-hook
2974 This hook is called whenever an article is selected.  By default it
2975 exposes any threads hidden under the selected article.
2976
2977 @item gnus-mark-article-hook
2978 @vindex gnus-mark-article-hook
2979 @findex gnus-summary-mark-unread-as-read
2980 @findex gnus-summary-mark-read-and-unread-as-read
2981 @findex gnus-unread-mark
2982 This hook is called whenever an article is selected.  It is intended to
2983 be used for marking articles as read.  The default value is
2984 @code{gnus-summary-mark-unread-and-read-as-read}, and will change the
2985 mark of almost any article you read to @code{gnus-unread-mark}.  The
2986 only articles not affected by this function are ticked, dormant, and
2987 expirable articles.  If you'd instead like to just have unread articles
2988 marked as read, you can use @code{gnus-summary-mark-unread-as-read}
2989 instead.  It will leave marks like @code{gnus-low-score-mark},
2990 @code{gnus-del-mark} (and so on) alone.
2991
2992 @end table
2993
2994
2995 @node Paging the Article
2996 @section Scrolling the Article
2997 @cindex article scrolling
2998
2999 @table @kbd
3000
3001 @item SPACE
3002 @kindex SPACE (Summary)
3003 @findex gnus-summary-next-page
3004 Pressing @kbd{SPACE} will scroll the current article forward one page,
3005 or, if you have come to the end of the current article, will choose the
3006 next article (@code{gnus-summary-next-page}).
3007
3008 @item DEL
3009 @kindex DEL (Summary)
3010 @findex gnus-summary-prev-page
3011 Scroll the current article back one page (@code{gnus-summary-prev-page}). 
3012
3013 @item RET
3014 @kindex RET (Summary)
3015 @findex gnus-summary-scroll-up
3016 Scroll the current article one line forward
3017 (@code{gnus-summary-scroll-up}).
3018
3019 @item A <
3020 @itemx <
3021 @kindex < (Summary)
3022 @kindex A < (Summary)
3023 @findex gnus-summary-beginning-of-article
3024 Scroll to the beginning of the article
3025 (@code{gnus-summary-beginning-of-article}).
3026
3027 @item A >
3028 @itemx >
3029 @kindex > (Summary)
3030 @kindex A > (Summary)
3031 @findex gnus-summary-end-of-article
3032 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
3033
3034 @item A s 
3035 @kindex A s (Summary)
3036 @findex gnus-summary-isearch-article
3037 Perform an isearch in the article buffer
3038 (@code{gnus-summary-isearch-article}). 
3039
3040 @end table
3041
3042
3043 @node Reply Followup and Post
3044 @section Reply, Followup and Post
3045
3046 @menu
3047 * Summary Mail Commands::            Sending mail.
3048 * Summary Post Commands::            Sending news.
3049 * Summary Mail and Post Commands::   Sending both news and mail.
3050 @end menu
3051
3052
3053 @node Summary Mail Commands
3054 @subsection Summary Mail Commands
3055 @cindex mail
3056 @cindex composing mail
3057
3058 Commands for composing a mail message:
3059
3060 @table @kbd
3061
3062 @item S r
3063 @itemx r
3064 @kindex S r (Summary)
3065 @kindex r (Summary)
3066 @findex gnus-summary-reply
3067 Mail a reply to the author of the current article
3068 (@code{gnus-summary-reply}). 
3069
3070 @item S R
3071 @itemx R
3072 @kindex R (Summary)
3073 @kindex S R (Summary)
3074 @findex gnus-summary-reply-with-original
3075 Mail a reply to the author of the current article and include the
3076 original message (@code{gnus-summary-reply-with-original}).  This
3077 command uses the process/prefix convention.
3078
3079 @item S o m
3080 @kindex S o m (Summary)
3081 @findex gnus-summary-mail-forward
3082 Forward the current article to some other person
3083 (@code{gnus-summary-mail-forward}). 
3084
3085 @item S o p
3086 @kindex S o p (Summary)
3087 @findex gnus-summary-post-forward
3088 Forward the current article to a newsgroup
3089 (@code{gnus-summary-post-forward}).
3090
3091 @item S m
3092 @itemx m
3093 @kindex m (Summary)
3094 @kindex S m (Summary)
3095 @findex gnus-summary-mail-other-window
3096 Send a mail to some other person
3097 (@code{gnus-summary-mail-other-window}).
3098
3099 @item S D b
3100 @kindex S D b (Summary)
3101 @findex gnus-summary-resend-bounced-mail
3102 @vindex gnus-bounced-headers-junk
3103 @cindex bouncing mail
3104 If you have sent a mail, but the mail was bounced back to you for some
3105 reason (wrong address, transient failure), you can use this command to
3106 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
3107 will be popped into a mail buffer where you can edit the headers before
3108 sending the mail off again.  The headers that match the regexp
3109 @code{gnus-bounced-headers-junk} (default @samp{^Received:}) are
3110 automatically deleted first.  If you give a prefix to this command, and
3111 the bounced mail is a reply to some other mail, Gnus will try to fetch
3112 that mail and display it for easy perusal of its headers.  This might
3113 very well fail, though.
3114
3115 @item S D r
3116 @kindex S D r (Summary)
3117 @findex gnus-summary-resend-message
3118 @vindex gnus-ignored-resent-headers
3119 Not to be confused with the previous command,
3120 @code{gnus-summary-resend-message} will prompt you for an address to
3121 send the current message off to, and then send it to that place.  The
3122 headers of the message won't be altered---but lots of headers that say
3123 @code{Resent-To}, @code{Resent-From} and so on will be added.  This
3124 means that you actually send a mail to someone that has a @code{To}
3125 header that (probably) points to yourself.  This will confuse people.
3126 So, natcherly you'll only do that if you're really eVIl.  All old
3127 headers that match the regular expression
3128 @code{gnus-ignored-resent-headers} will be deleted before resending the
3129 message.  The default is @samp{"^Return-receipt"}.
3130
3131 This command is mainly used if you have several accounts and want to
3132 ship a mail to a different account of yours.  (If you're both
3133 @code{root} and @code{postmaster} and get a mail for @code{postmaster}
3134 to the @code{root} account, you may want to resend it to
3135 @code{postmaster}.  Ordnung muss sein!
3136
3137 @item S O m
3138 @kindex S O m (Summary)
3139 @findex gnus-uu-digest-mail-forward
3140 Digest the current series and forward the result using mail
3141 (@code{gnus-uu-digest-mail-forward}).  This command uses the
3142 process/prefix convention (@pxref{Process/Prefix}). 
3143
3144 @item S O p
3145 @kindex S O p (Summary)
3146 @findex gnus-uu-digest-post-forward
3147 Digest the current series and forward the result to a newsgroup
3148 (@code{gnus-uu-digest-mail-forward}).  
3149 @end table
3150
3151
3152 @node Summary Post Commands
3153 @subsection Summary Post Commands
3154 @cindex post
3155 @cindex composing news
3156
3157 Commands for posting an article:
3158
3159 @table @kbd
3160 @item S p
3161 @itemx a
3162 @kindex a (Summary)
3163 @kindex S p (Summary)
3164 @findex gnus-summary-post-news
3165 Post an article to the current group
3166 (@code{gnus-summary-post-news}).
3167
3168 @item S f
3169 @itemx f
3170 @kindex f (Summary)
3171 @kindex S f (Summary)
3172 @findex gnus-summary-followup
3173 Post a followup to the current article (@code{gnus-summary-followup}).
3174
3175 @item S F
3176 @itemx F
3177 @kindex S F (Summary)
3178 @kindex F (Summary)
3179 @findex gnus-summary-followup-with-original
3180 Post a followup to the current article and include the original message
3181 (@code{gnus-summary-followup-with-original}).   This command uses the
3182 process/prefix convention.
3183
3184 @item S u
3185 @kindex S u (Summary)
3186 @findex gnus-uu-post-news
3187 Uuencode a file, split it into parts, and post it as a series
3188 (@code{gnus-uu-post-news}). (@pxref{Uuencoding and Posting}). 
3189 @end table
3190
3191
3192 @node Summary Mail and Post Commands
3193 @subsection Summary Mail and Post Commands
3194 @cindex mail and post
3195 @cindex post and mail
3196
3197 Commands for sending mail and post at the same time:
3198
3199 @table @kbd
3200 @item S b
3201 @kindex S b (Summary)
3202 @findex gnus-summary-followup-and-reply
3203 Post a followup and send a reply to the current article
3204 (@code{gnus-summary-followup-and-reply}).
3205
3206 @item S B
3207 @kindex S B (Summary)
3208 @findex gnus-summary-followup-and-reply-with-original
3209 Post a followup and send a reply to the current article and include the
3210 original message (@code{gnus-summary-followup-and-reply-with-original}).
3211 This command uses the process/prefix convention.
3212 @end table
3213
3214
3215 @node Canceling and Superseding
3216 @section Canceling Articles
3217 @cindex canceling articles
3218 @cindex superseding articles
3219
3220 Have you ever written something, and then decided that you really,
3221 really, really wish you hadn't posted that?
3222
3223 Well, you can't cancel mail, but you can cancel posts.
3224
3225 @findex gnus-summary-cancel-article
3226 @kindex C (Summary)
3227 Find the article you wish to cancel (you can only cancel your own
3228 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
3229 c} (@code{gnus-summary-cancel-article}).  Your article will be
3230 canceled---machines all over the world will be deleting your article. 
3231
3232 Be aware, however, that not all sites honor cancels, so your article may
3233 live on here and there, while most sites will delete the article in
3234 question.
3235
3236 If you discover that you have made some mistakes and want to do some
3237 corrections, you can post a @dfn{superseding} article that will replace
3238 your original article.
3239
3240 @findex gnus-summary-supersede-article
3241 @kindex S (Summary)
3242 Go to the original article and press @kbd{S s}
3243 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
3244 where you can edit the article all you want before sending it off the
3245 usual way.
3246
3247 @vindex gnus-delete-supersedes-headers
3248 You probably want to delete some of the old headers before sending the
3249 superseding article---@code{Path} and @code{Date} are probably
3250 incorrect.  Set @code{gnus-delete-supersedes-headers} to a regexp to
3251 match the lines you want removed.  The default is
3252 @samp{^Path:\\|^Date}. 
3253
3254 The same goes for superseding as for canceling, only more so: Some
3255 sites do not honor superseding.  On those sites, it will appear that you
3256 have posted almost the same article twice.
3257
3258 If you have just posted the article, and change your mind right away,
3259 there is a trick you can use to cancel/supersede the article without
3260 waiting for the article to appear on your site first.  You simply return
3261 to the post buffer (which is called @code{*post-buf*}).  There you will
3262 find the article you just posted, with all the headers intact.  Change
3263 the @code{Message-ID} header to a @code{Cancel} or @code{Supersedes}
3264 header by substituting one of those words for @code{Message-ID}.  Then
3265 just press @kbd{C-c C-c} to send the article as you would do normally.
3266 The previous article will be canceled/superseded.
3267
3268 Just remember, kids: There is no 'c' in 'supersede'.
3269
3270
3271 @node Marking Articles
3272 @section Marking Articles
3273 @cindex article marking
3274 @cindex article ticking
3275 @cindex marks
3276
3277 There are several marks you can set on an article. 
3278
3279 You have marks that decide the @dfn{readedness} (whoo, neato-keano
3280 neologism ohoy!) of the article.  Alphabetic marks generally mean
3281 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
3282
3283 In addition, you also have marks that do not affect readedness.
3284
3285 @menu
3286 * Unread Articles::      Marks for unread articles.
3287 * Read Articles::        Marks for read articles.
3288 * Other Marks::          Marks that do not affect readedness.
3289 @end menu
3290
3291 @ifinfo
3292 There's a plethora of commands for manipulating these marks:
3293 @end ifinfo
3294
3295 @menu
3296 * Setting Marks::           How to set and remove marks.
3297 * Setting Process Marks::   How to mark articles for later processing.
3298 @end menu
3299
3300
3301 @node Unread Articles
3302 @subsection Unread Articles
3303
3304 The following marks mark articles as unread, in one form or other.
3305
3306 @vindex gnus-dormant-mark
3307 @vindex gnus-ticked-mark
3308 @table @samp
3309 @item !
3310 @dfn{Ticked articles} are articles that will remain visible always.  If
3311 you see an article that you find interesting, or you want to put off
3312 reading it, or replying to it, until sometime later, you'd typically
3313 tick it.  However, articles can be expired, so if you want to keep an
3314 article forever, you'll have to save it.  Ticked articles have a
3315 @samp{!} (@code{gnus-ticked-mark}) in the first column.
3316
3317 @item ?
3318 @vindex gnus-dormant-mark
3319 A @dfn{dormant} article is marked with a @samp{?}
3320 (@code{gnus-dormant-mark}), and will only appear in the summary buffer
3321 if there are followups to it.
3322
3323 @item SPACE
3324 @vindex gnus-unread-mark
3325 An @dfn{unread} article is marked with a @samp{SPACE}
3326 (@code{gnus-unread-mark}).  These are articles that haven't been read at
3327 all yet.
3328 @end table
3329
3330
3331 @node Read Articles
3332 @subsection Read Articles
3333 @cindex expirable mark
3334
3335 All the following marks mark articles as read.
3336
3337 @table @samp
3338
3339 @item r
3340 @vindex gnus-del-mark
3341 Articles that are marked as read.  They have a @samp{r}
3342 (@code{gnus-del-mark}) in the first column.  These are articles that the
3343 user has marked as read more or less manually.
3344
3345 @item R
3346 @vindex gnus-read-mark
3347 Articles that are actually read are marked with @samp{R}
3348 (@code{gnus-read-mark}). 
3349
3350 @item O
3351 @vindex gnus-ancient-mark
3352 Articles that were marked as read in previous sessions are now
3353 @dfn{old} and marked with @samp{O} (@code{gnus-ancient-mark}). 
3354
3355 @item K
3356 @vindex gnus-killed-mark
3357 Marked as killed (@code{gnus-killed-mark}).
3358
3359 @item X
3360 @vindex gnus-kill-file-mark
3361 Marked as killed by kill files (@code{gnus-kill-file-mark}).
3362
3363 @item Y
3364 @vindex gnus-low-score-mark
3365 Marked as read by having a too low score (@code{gnus-low-score-mark}).
3366
3367 @item C
3368 @vindex gnus-catchup-mark
3369 Marked as read by a catchup (@code{gnus-catchup-mark}).
3370
3371 @item G
3372 @vindex gnus-canceled-mark
3373 Canceled article (@code{gnus-canceled-mark})
3374
3375 @item F
3376 @vindex gnus-souped-mark
3377 @sc{SOUP}ed article (@code{gnus-souped-mark}).
3378
3379 @item Q
3380 @vindex gnus-sparse-mark
3381 Sparsely reffed article (@code{gnus-sparse-mark}).
3382 @end table
3383
3384 All these marks just mean that the article is marked as read, really.
3385 They are interpreted differently by the adaptive scoring scheme,
3386 however.
3387
3388 One more special mark, though:
3389
3390 @table @samp
3391 @item E
3392 @vindex gnus-expirable-mark
3393 You can also mark articles as @dfn{expirable} (or have them marked as
3394 such automatically).  That doesn't make much sense in normal groups,
3395 because a user does not control the expiring of news articles, but in
3396 mail groups, for instance, articles that are marked as @dfn{expirable}
3397 can be deleted by Gnus at any time.  Expirable articles are marked with
3398 @samp{E} (@code{gnus-expirable-mark}).
3399 @end table
3400
3401
3402 @node Other Marks
3403 @subsection Other Marks
3404 @cindex process mark
3405 @cindex bookmarks
3406
3407 There are some marks that have nothing to do with whether the article is
3408 read or not.
3409
3410 @itemize @bullet
3411
3412 @item 
3413 You can set a bookmark in the current article.  Say you are reading a
3414 long thesis on cats' urinary tracts, and have to go home for dinner
3415 before you've finished reading the thesis.  You can then set a bookmark
3416 in the article, and Gnus will jump to this bookmark the next time it
3417 encounters the article.
3418
3419 @item
3420 @vindex gnus-replied-mark
3421 All articles that you have replied to or made a followup to (i.e., have
3422 answered) will be marked with an @samp{A} in the second column
3423 (@code{gnus-replied-mark}).
3424
3425 @item 
3426 @vindex gnus-cached-mark
3427 Articles that are stored in the article cache will be marked with an
3428 @samp{*} in the second column (@code{gnus-cached-mark}).
3429
3430 @item 
3431 @vindex gnus-saved-mark
3432 Articles that are ``saved'' (in some manner or other; not necessarily
3433 religiously) are marked with an @samp{S} in the second column
3434 (@code{gnus-saved-mark}.
3435
3436 @item 
3437 @vindex gnus-not-empty-thread-mark
3438 @vindex gnus-empty-thread-mark
3439 It the @samp{%e} spec is used, the presence of threads or not will be
3440 marked with @code{gnus-not-empty-thread-mark} and
3441 @code{gnus-empty-thread-mark} in the third column, respectively.
3442
3443 @item 
3444 @vindex gnus-process-mark
3445 Finally we have the @dfn{process mark} (@code{gnus-process-mark}.  A
3446 variety of commands react to the presence of the process mark.  For
3447 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
3448 all articles that have been marked with the process mark.  Articles
3449 marked with the process mark have a @samp{#} in the second column.
3450
3451 @end itemize
3452
3453 You might have noticed that most of these ``non-readedness'' marks
3454 appear in the second column by default.  So if you have a cached, saved,
3455 replied article that you have process-marked, what will that look like?
3456
3457 Nothing much.  The precedence rules go as follows: process -> cache ->
3458 replied -> saved.  So if the article is in the cache and is replied,
3459 you'll only see the cache mark and not the replied mark.
3460
3461
3462 @node Setting Marks
3463 @subsection Setting Marks
3464 @cindex setting marks
3465
3466 All the marking commands understand the numeric prefix.
3467
3468 @table @kbd
3469 @item M t
3470 @itemx !
3471 @kindex ! (Summary)
3472 @kindex M t (Summary)
3473 @findex gnus-summary-tick-article-forward
3474 Tick the current article (@code{gnus-summary-tick-article-forward}).
3475
3476 @item M ?
3477 @itemx ?
3478 @kindex ? (Summary)
3479 @kindex M ? (Summary)
3480 @findex gnus-summary-mark-as-dormant
3481 Mark the current article as dormant
3482 (@code{gnus-summary-mark-as-dormant}).
3483
3484 @item M d
3485 @itemx d
3486 @kindex M d (Summary)
3487 @kindex d (Summary)
3488 @findex gnus-summary-mark-as-read-forward
3489 Mark the current article as read
3490 (@code{gnus-summary-mark-as-read-forward}).
3491
3492 @item M k
3493 @itemx k
3494 @kindex k (Summary)
3495 @kindex M k (Summary)
3496 @findex gnus-summary-kill-same-subject-and-select
3497 Mark all articles that have the same subject as the current one as read,
3498 and then select the next unread article
3499 (@code{gnus-summary-kill-same-subject-and-select}).
3500
3501 @item M K
3502 @itemx C-k
3503 @kindex M K (Summary)
3504 @kindex C-k (Summary)
3505 @findex gnus-summary-kill-same-subject
3506 Mark all articles that have the same subject as the current one as read
3507 (@code{gnus-summary-kill-same-subject}).  
3508
3509 @item M C
3510 @kindex M C (Summary)
3511 @findex gnus-summary-catchup
3512 Mark all unread articles in the group as read
3513 (@code{gnus-summary-catchup}).
3514
3515 @item M C-c
3516 @kindex M C-c (Summary)
3517 @findex gnus-summary-catchup-all
3518 Mark all articles in the group as read---even the ticked and dormant
3519 articles (@code{gnus-summary-catchup-all}).
3520
3521 @item M H
3522 @kindex M H (Summary)
3523 @findex gnus-summary-catchup-to-here
3524 Catchup the current group to point
3525 (@code{gnus-summary-catchup-to-here}). 
3526
3527 @item C-w
3528 @kindex C-w (Summary)
3529 @findex gnus-summary-mark-region-as-read
3530 Mark all articles between point and mark as read
3531 (@code{gnus-summary-mark-region-as-read}). 
3532
3533 @item M V k
3534 @kindex M V k (Summary)
3535 @findex gnus-summary-kill-below
3536 Kill all articles with scores below the default score (or below the
3537 numeric prefix) (@code{gnus-summary-kill-below}).
3538
3539 @item M c
3540 @itemx M-u
3541 @kindex M c (Summary)
3542 @kindex M-u (Summary)
3543 @findex gnus-summary-clear-mark-forward
3544 Clear all readedness-marks from the current article
3545 (@code{gnus-summary-clear-mark-forward}).
3546
3547 @item M e
3548 @itemx E
3549 @kindex M e (Summary)
3550 @kindex E (Summary)
3551 @findex gnus-summary-mark-as-expirable
3552 Mark the current article as expirable
3553 (@code{gnus-summary-mark-as-expirable}).
3554
3555 @item M b
3556 @kindex M b (Summary)
3557 @findex gnus-summary-set-bookmark
3558 Set a bookmark in the current article
3559 (@code{gnus-summary-set-bookmark}).
3560
3561 @item M B
3562 @kindex M B (Summary)
3563 @findex gnus-summary-remove-bookmark
3564 Remove the bookmark from the current article
3565 (@code{gnus-summary-remove-bookmark}).
3566
3567 @item M V c
3568 @kindex M V c (Summary)
3569 @findex gnus-summary-clear-above
3570 Clear all marks from articles with scores over the default score (or
3571 over the numeric prefix) (@code{gnus-summary-clear-above}).
3572
3573 @item M V u
3574 @kindex M V u (Summary)
3575 @findex gnus-summary-tick-above
3576 Tick all articles with scores over the default score (or over the
3577 numeric prefix) (@code{gnus-summary-tick-above}).
3578
3579 @item M V m
3580 @kindex M V m (Summary)
3581 @findex gnus-summary-mark-above
3582 Prompt for a mark, and mark all articles with scores over the default
3583 score (or over the numeric prefix) with this mark
3584 (@code{gnus-summary-clear-above}).
3585 @end table
3586
3587 @vindex gnus-summary-goto-unread
3588 The @code{gnus-summary-goto-unread} variable controls what action should
3589 be taken after setting a mark.  If non-@code{nil}, point will move to
3590 the next/previous unread article.  If @code{nil}, point will just move
3591 one line up or down.  As a special case, if this variable is
3592 @code{never}, all the marking commands as well as other commands (like
3593 @kbd{SPACE}) will move to the next article, whether it is unread or not.
3594 The default is @code{t}.
3595
3596
3597 @node Setting Process Marks
3598 @subsection Setting Process Marks
3599 @cindex setting process marks
3600
3601 @table @kbd
3602
3603 @item M P p
3604 @itemx #
3605 @kindex # (Summary)
3606 @kindex M P p (Summary)
3607 @findex gnus-summary-mark-as-processable
3608 Mark the current article with the process mark
3609 (@code{gnus-summary-mark-as-processable}). 
3610 @findex gnus-summary-unmark-as-processable
3611
3612 @item M P u 
3613 @itemx M-#
3614 @kindex M P u (Summary)
3615 @kindex M-# (Summary)
3616 Remove the process mark, if any, from the current article
3617 (@code{gnus-summary-unmark-as-processable}).
3618
3619 @item M P U
3620 @kindex M P U (Summary)
3621 @findex gnus-summary-unmark-all-processable
3622 Remove the process mark from all articles
3623 (@code{gnus-summary-unmark-all-processable}). 
3624
3625 @item M P R
3626 @kindex M P R (Summary)
3627 @findex gnus-uu-mark-by-regexp
3628 Mark articles by a regular expression (@code{gnus-uu-mark-by-regexp}). 
3629
3630 @item M P r
3631 @kindex M P r (Summary)
3632 @findex gnus-uu-mark-region
3633 Mark articles in region (@code{gnus-uu-mark-region}).
3634
3635 @item M P t
3636 @kindex M P t (Summary)
3637 @findex gnus-uu-mark-thread
3638 Mark all articles in the current (sub)thread
3639 (@code{gnus-uu-mark-thread}).
3640
3641 @item M P T
3642 @kindex M P T (Summary)
3643 @findex gnus-uu-unmark-thread
3644 Unmark all articles in the current (sub)thread
3645 (@code{gnus-uu-unmark-thread}).
3646
3647 @item M P v
3648 @kindex M P v (Summary)
3649 @findex gnus-uu-mark-over
3650 Mark all articles that have a score above the prefix argument
3651 (@code{gnus-uu-mark-over}).
3652
3653 @item M P s
3654 @kindex M P s (Summary)
3655 @findex gnus-uu-mark-series
3656 Mark all articles in the current series (@code{gnus-uu-mark-series}).
3657
3658 @item M P S
3659 @kindex M P S (Summary)
3660 @findex gnus-uu-mark-sparse
3661 Mark all series that have already had some articles marked
3662 (@code{gnus-uu-mark-sparse}).
3663
3664 @item M P a
3665 @kindex M P a (Summary)
3666 @findex gnus-uu-mark-all
3667 Mark all articles in series order (@code{gnus-uu-mark-series}).
3668
3669 @item M P b
3670 @kindex M P b (Summary)
3671 @findex gnus-uu-mark-buffer
3672 Mark all articles in the buffer in the order they appear
3673 (@code{gnus-uu-mark-buffer}). 
3674 @end table
3675
3676
3677 @node Limiting
3678 @section Limiting
3679 @cindex limiting
3680
3681 It can be convenient to limit the summary buffer to just show some
3682 subset of the articles currently in the group.  The effect most limit
3683 commands have is to remove a few (or many) articles from the summary
3684 buffer. 
3685
3686 @table @kbd
3687
3688 @item / /
3689 @itemx / s
3690 @kindex / / (Summary)
3691 @findex gnus-summary-limit-to-subject
3692 Limit the summary buffer to articles that match some subject
3693 (@code{gnus-summary-limit-to-subject}). 
3694
3695 @item / a
3696 @kindex / a (Summary)
3697 @findex gnus-summary-limit-to-author
3698 Limit the summary buffer to articles that match some author
3699 (@code{gnus-summary-limit-to-author}).
3700
3701 @item / u
3702 @itemx x
3703 @kindex / u (Summary)
3704 @kindex x (Summary)
3705 @findex gnus-summary-limit-to-unread
3706 Limit the summary buffer to articles that are not marked as read
3707 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
3708 buffer to articles that are strictly unread.  This means that ticked and
3709 dormant articles will also be excluded.
3710
3711 @item / m
3712 @kindex / m (Summary)
3713 @findex gnus-summary-limit-to-marks
3714 Ask for a mark and then limit to all articles that have not been marked
3715 with that mark (@code{gnus-summary-limit-to-marks}).
3716
3717 @item / n
3718 @kindex / n (Summary)
3719 @findex gnus-summary-limit-to-articles
3720 Limit the summary buffer to the current article
3721 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
3722 convention (@pxref{Process/Prefix}).
3723
3724 @item / w
3725 @kindex / w (Summary)
3726 @findex gnus-summary-pop-limit
3727 Pop the previous limit off the stack and restore it
3728 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
3729 the stack.
3730
3731 @item / v
3732 @kindex / v (Summary)
3733 @findex gnus-summary-limit-to-score
3734 Limit the summary buffer to articles that have a score at or above some
3735 score (@code{gnus-summary-limit-to-score}).
3736
3737 @item / E
3738 @itemx M S
3739 @kindex M S (Summary)
3740 @kindex / E (Summary)
3741 @findex gnus-summary-limit-include-expunged
3742 Display all expunged articles
3743 (@code{gnus-summary-limit-include-expunged}). 
3744
3745 @item / D
3746 @kindex / D (Summary)
3747 @findex gnus-summary-limit-include-dormant
3748 Display all dormant articles (@code{gnus-summary-limit-include-dormant}).
3749
3750 @item / d
3751 @kindex / d (Summary)
3752 @findex gnus-summary-limit-exclude-dormant
3753 Hide all dormant articles (@code{gnus-summary-limit-exclude-dormant}).
3754
3755 @item / c
3756 @kindex / c (Summary)
3757 @findex gnus-summary-limit-exclude-childless-dormant
3758 Hide all dormant articles that have no children
3759 (@code{gnus-summary-limit-exclude-childless-dormant}). 
3760
3761 @item / C
3762 @kindex / C (Summary)
3763 @findex gnus-summary-limit-mark-excluded-as-read
3764 Mark all excluded unread articles as read
3765 (@code{gnus-summary-limit-mark-excluded-as-read}).   If given a prefix,
3766 also mark excluded ticked and dormant articles as read.
3767
3768 @end table
3769
3770
3771 @node Threading
3772 @section Threading
3773 @cindex threading
3774 @cindex article threading
3775
3776 Gnus threads articles by default.  @dfn{To thread} is to put replies to
3777 articles directly after the articles they reply to---in a hierarchical
3778 fashion.
3779
3780 @menu
3781 * Customizing Threading::     Variables you can change to affect the threading.
3782 * Thread Commands::           Thread based commands in the summary buffer.
3783 @end menu
3784
3785
3786 @node Customizing Threading
3787 @subsection Customizing Threading
3788 @cindex customizing threading
3789 @cindex <
3790 @cindex >
3791
3792 @table @code
3793
3794 @item gnus-show-threads
3795 @vindex gnus-show-threads
3796 If this variable is @code{nil}, no threading will be done, and all of
3797 the rest of the variables here will have no effect.  Turning threading
3798 off will speed group selection up a bit, but it is sure to make reading
3799 slower and more awkward.
3800
3801 @item gnus-fetch-old-headers
3802 @vindex gnus-fetch-old-headers
3803 If non-@code{nil}, Gnus will attempt to build old threads by fetching
3804 more old headers---headers to articles that are marked as read.  If you
3805 would like to display as few summary lines as possible, but still
3806 connect as many loose threads as possible, you should set this variable
3807 to @code{some} or a number.  If you set it to a number, no more than
3808 that number of extra old headers will be fetched.  In either case,
3809 fetching old headers only works if the backend you are using carries
3810 overview files---this would normally be @code{nntp}, @code{nnspool} and
3811 @code{nnml}.  Also remember that if the root of the thread has been
3812 expired by the server, there's not much Gnus can do about that.
3813
3814 @item gnus-build-sparse-threads
3815 @vindex gnus-build-sparse-threads
3816 Fetching old headers can be slow.  A low-rent similar effect can be
3817 gotten by setting this variable to @code{some}.  Gnus will then look at
3818 the complete @code{References} headers of all articles and try to string
3819 articles that belong in the same thread together.  This will leave
3820 @dfn{gaps} in the threading display where Gnus guesses that an article
3821 is missing from the thread.  (These gaps appear like normal summary
3822 lines.  If you select a gap, Gnus will try to fetch the article in
3823 question.)  If this variable is @code{t}, Gnus will display all these
3824 ``gaps'' without regard for whether they are useful for completing the
3825 thread or not.  Finally, if this variable is @code{more}, Gnus won't cut
3826 off sparse leaf nodes that don't lead anywhere.  This variable is
3827 @code{nil} by default.
3828
3829 @item gnus-summary-gather-subject-limit
3830 @vindex gnus-summary-gather-subject-limit
3831 Loose threads are gathered by comparing subjects of articles.  If this
3832 variable is @code{nil}, Gnus requires an exact match between the
3833 subjects of the loose threads before gathering them into one big
3834 super-thread.  This might be too strict a requirement, what with the
3835 presence of stupid newsreaders that chop off long subjects lines.  If
3836 you think so, set this variable to, say, 20 to require that only the
3837 first 20 characters of the subjects have to match.  If you set this
3838 variable to a really low number, you'll find that Gnus will gather
3839 everything in sight into one thread, which isn't very helpful.
3840
3841 @cindex fuzzy article gathering
3842 If you set this variable to the special value @code{fuzzy}, Gnus will
3843 use a fuzzy string comparison algorithm on the subjects.
3844
3845 @item gnus-simplify-subject-fuzzy-regexp
3846 @vindex gnus-simplify-subject-fuzzy-regexp
3847 This can either be a regular expression or list of regular expressions
3848 that match strings that will be removed from subjects if fuzzy subject
3849 simplification is used.
3850
3851 @item gnus-simplify-ignored-prefixes
3852 @vindex gnus-simplify-ignored-prefixes
3853 If you set @code{gnus-summary-gather-subject-limit} to something as low
3854 as 10, you might consider setting this variable to something sensible:
3855
3856 @c Written by Michael Ernst <mernst@cs.rice.edu>
3857 @lisp
3858 (setq gnus-simplify-ignored-prefixes
3859       (concat 
3860        "\\`\\[?\\("
3861        (mapconcat 'identity
3862                   '("looking"
3863                      "wanted" "followup" "summary\\( of\\)?"
3864                      "help" "query" "problem" "question" 
3865                      "answer" "reference" "announce"
3866                      "How can I" "How to" "Comparison of"
3867                      ;; ...
3868                      )
3869                   "\\|")
3870                   "\\)\\s *\\("
3871                   (mapconcat 'identity
3872                              '("for" "for reference" "with" "about")
3873                              "\\|")
3874                   "\\)?\\]?:?[ \t]*"))
3875 @end lisp
3876
3877 All words that match this regexp will be removed before comparing two
3878 subjects. 
3879
3880 @item gnus-summary-gather-exclude-subject
3881 @vindex gnus-summary-gather-exclude-subject
3882 Since loose thread gathering is done on subjects only, that might lead
3883 to many false hits, especially with certain common subjects like
3884 @samp{} and @samp{(none)}.  To make the situation slightly better,
3885 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
3886 what subjects should be excluded from the gathering process.  The
3887 default is @samp{^ *$\\|^(none)$}.  
3888
3889 @item gnus-summary-thread-gathering-function
3890 @vindex gnus-summary-thread-gathering-function
3891 Gnus gathers threads by looking at @code{Subject} headers.  This means
3892 that totally unrelated articles may end up in the same ``thread'', which
3893 is confusing.  An alternate approach is to look at all the
3894 @code{Message-ID}s in all the @code{References} headers to find matches.
3895 This will ensure that no gathered threads ever includes unrelated
3896 articles, but it's also means that people who have posted with broken
3897 newsreaders won't be gathered properly.  The choice is yours---plague or
3898 cholera:
3899
3900 @table @code
3901 @item gnus-gather-threads-by-subject
3902 @findex gnus-gather-threads-by-subject
3903 This function is the default gathering function and looks at
3904 @code{Subject}s exclusively.
3905
3906 @item gnus-gather-threads-by-references
3907 @findex gnus-gather-threads-by-references
3908 This function looks at @code{References} headers exclusively.
3909 @end table
3910
3911 If you want to test gathering by @code{References}, you could say
3912 something like:
3913
3914 @lisp
3915 (setq gnus-summary-thread-gathering-function
3916       'gnus-gather-threads-by-references)
3917 @end lisp
3918
3919 @item gnus-summary-make-false-root
3920 @vindex gnus-summary-make-false-root
3921 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
3922 and create a dummy root at the top.  (Wait a minute.  Root at the top?
3923 Yup.)  Loose subtrees occur when the real root has expired, or you've
3924 read or killed the root in a previous session.
3925
3926 When there is no real root of a thread, Gnus will have to fudge
3927 something.  This variable says what fudging method Gnus should use.
3928 There are four possible values:
3929
3930 @cindex adopting articles
3931
3932 @table @code
3933
3934 @item adopt
3935 Gnus will make the first of the orphaned articles the parent.  This
3936 parent will adopt all the other articles.  The adopted articles will be
3937 marked as such by pointy brackets (@samp{<>}) instead of the standard
3938 square brackets (@samp{[]}).  This is the default method.
3939
3940 @item dummy
3941 @vindex gnus-summary-dummy-line-format
3942 Gnus will create a dummy summary line that will pretend to be the
3943 parent.  This dummy line does not correspond to any real article, so
3944 selecting it will just select the first real article after the dummy
3945 article.  @code{gnus-summary-dummy-line-format} is used to specify the
3946 format of the dummy roots.  It accepts only one format spec:  @samp{S},
3947 which is the subject of the article.  @xref{Formatting Variables}.
3948
3949 @item empty
3950 Gnus won't actually make any article the parent, but simply leave the
3951 subject field of all orphans except the first empty.  (Actually, it will
3952 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
3953 Buffer Format}).)
3954
3955 @item none
3956 Don't make any article parent at all.  Just gather the threads and
3957 display them after one another.
3958
3959 @item nil
3960 Don't gather loose threads.
3961 @end table
3962
3963 @item gnus-thread-hide-subtree
3964 @vindex gnus-thread-hide-subtree
3965 If non-@code{nil}, all threads will be hidden when the summary buffer is
3966 generated.
3967
3968 @item gnus-thread-hide-killed
3969 @vindex gnus-thread-hide-killed
3970 if you kill a thread and this variable is non-@code{nil}, the subtree
3971 will be hidden.
3972
3973 @item gnus-thread-ignore-subject
3974 @vindex gnus-thread-ignore-subject
3975 Sometimes somebody changes the subject in the middle of a thread.  If
3976 this variable is non-@code{nil}, the subject change is ignored.  If it
3977 is @code{nil}, which is the default, a change in the subject will result
3978 in a new thread.
3979
3980 @item gnus-thread-indent-level
3981 @vindex gnus-thread-indent-level
3982 This is a number that says how much each sub-thread should be indented.
3983 The default is @code{4}.
3984 @end table
3985
3986
3987 @node Thread Commands
3988 @subsection Thread Commands
3989 @cindex thread commands
3990
3991 @table @kbd
3992
3993 @item T k
3994 @itemx M-C-k
3995 @kindex T k (Summary)
3996 @kindex M-C-k (Summary)
3997 @findex gnus-summary-kill-thread
3998 Mark all articles in the current sub-thread as read
3999 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
4000 remove all marks instead.  If the prefix argument is negative, tick
4001 articles instead.
4002
4003 @item T l
4004 @itemx M-C-l
4005 @kindex T l (Summary)
4006 @kindex M-C-l (Summary)
4007 @findex gnus-summary-lower-thread
4008 Lower the score of the current thread
4009 (@code{gnus-summary-lower-thread}). 
4010
4011 @item T i
4012 @kindex T i (Summary)
4013 @findex gnus-summary-raise-thread
4014 Increase the score of the current thread
4015 (@code{gnus-summary-raise-thread}).
4016
4017 @item T #
4018 @kindex T # (Summary)
4019 @findex gnus-uu-mark-thread
4020 Set the process mark on the current thread
4021 (@code{gnus-uu-mark-thread}).
4022
4023 @item T M-#
4024 @kindex T M-# (Summary)
4025 @findex gnus-uu-unmark-thread
4026 Remove the process mark from the current thread
4027 (@code{gnus-uu-unmark-thread}).
4028
4029 @item T T
4030 @kindex T T (Summary)
4031 @findex gnus-summary-toggle-threads
4032 Toggle threading (@code{gnus-summary-toggle-threads}).
4033
4034 @item T s
4035 @kindex T s (Summary)
4036 @findex gnus-summary-show-thread
4037 Expose the thread hidden under the current article, if any
4038 (@code{gnus-summary-show-thread}).
4039
4040 @item T h
4041 @kindex T h (Summary)
4042 @findex gnus-summary-hide-thread
4043 Hide the current (sub)thread (@code{gnus-summary-hide-thread}).
4044
4045 @item T S
4046 @kindex T S (Summary)
4047 @findex gnus-summary-show-all-threads
4048 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
4049
4050 @item T H
4051 @kindex T H (Summary)
4052 @findex gnus-summary-hide-all-threads
4053 Hide all threads (@code{gnus-summary-hide-all-threads}).
4054
4055 @item T t
4056 @kindex T t (Summary)
4057 @findex gnus-summary-rethread-current
4058 Re-thread the thread the current article is part of
4059 (@code{gnus-summary-rethread-current}).  This works even when the
4060 summary buffer is otherwise unthreaded.
4061
4062 @item T ^
4063 @kindex T ^ (Summary)
4064 @findex gnus-summary-reparent-thread
4065 Make the current article the child of the marked (or previous) article
4066 (@code{gnus-summary-reparent-thread}.
4067
4068 @end table
4069
4070 The following commands are thread movement commands.  They all
4071 understand the numeric prefix.
4072
4073 @table @kbd
4074
4075 @item T n
4076 @kindex T n (Summary)
4077 @findex gnus-summary-next-thread
4078 Go to the next thread (@code{gnus-summary-next-thread}).
4079
4080 @item T p
4081 @kindex T p (Summary)
4082 @findex gnus-summary-prev-thread
4083 Go to the previous thread (@code{gnus-summary-prev-thread}).
4084
4085 @item T d
4086 @kindex T d (Summary)
4087 @findex gnus-summary-down-thread
4088 Descend the thread (@code{gnus-summary-down-thread}).
4089
4090 @item T u
4091 @kindex T u (Summary)
4092 @findex gnus-summary-up-thread
4093 Ascend the thread (@code{gnus-summary-up-thread}).
4094
4095 @item T o
4096 @kindex T o (Summary)
4097 @findex gnus-summary-top-thread
4098 Go to the top of the thread (@code{gnus-summary-top-thread}).
4099 @end table
4100
4101 @vindex gnus-thread-operation-ignore-subject 
4102 If you ignore subject while threading, you'll naturally end up with
4103 threads that have several different subjects in them.  If you then issue
4104 a command like `T k' (@code{gnus-summary-kill-thread}) you might not
4105 wish to kill the entire thread, but just those parts of the thread that
4106 have the same subject as the current article.  If you like this idea,
4107 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If is
4108 is non-@code{nil} (which it is by default), subjects will be ignored
4109 when doing thread commands.  If this variable is @code{nil}, articles in
4110 the same thread with different subjects will not be included in the
4111 operation in question.  If this variable is @code{fuzzy}, only articles
4112 that have subjects that are fuzzily equal will be included.
4113
4114
4115 @node Asynchronous Fetching
4116 @section Asynchronous Article Fetching
4117 @cindex asynchronous article fetching
4118
4119 If you read your news from an @sc{nntp} server that's far away, the
4120 network latencies may make reading articles a chore.  You have to wait
4121 for a while after pressing @kbd{n} to go to the next article before the
4122 article appears.  Why can't Gnus just go ahead and fetch the article
4123 while you are reading the previous one? Why not, indeed.
4124
4125 First, some caveats.  There are some pitfalls to using asynchronous
4126 article fetching, especially the way Gnus does it.  
4127
4128 Let's say you are reading article 1, which is short, and article 2 is
4129 quite long, and you are not interested in reading that.  Gnus does not
4130 know this, so it goes ahead and fetches article 2.  You decide to read
4131 article 3, but since Gnus is in the process of fetching article 2, the
4132 connection is blocked.
4133
4134 To avoid these situations, Gnus will open two (count 'em two)
4135 connections to the server.  Some people may think this isn't a very nice
4136 thing to do, but I don't see any real alternatives.  Setting up that
4137 extra connection takes some time, so Gnus startup will be slower.
4138
4139 Gnus will fetch more articles than you will read.  This will mean that
4140 the link between your machine and the @sc{nntp} server will become more
4141 loaded than if you didn't use article pre-fetch.  The server itself will
4142 also become more loaded---both with the extra article requests, and the
4143 extra connection.
4144
4145 Ok, so now you know that you shouldn't really use this thing...  unless
4146 you really want to.
4147
4148 @vindex gnus-asynchronous
4149 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
4150 happen automatically.
4151
4152 @vindex nntp-async-number
4153 You can control how many articles that are to be pre-fetched by setting
4154 @code{nntp-async-number}.  This is five by default, which means that when
4155 you read an article in the group, @code{nntp} will pre-fetch the next
4156 five articles.  If this variable is @code{t}, @code{nntp} will pre-fetch
4157 all the articles that it can without bound.  If it is @code{nil}, no
4158 pre-fetching will be made.
4159
4160 @vindex gnus-asynchronous-article-function
4161 You may wish to create some sort of scheme for choosing which articles
4162 that @code{nntp} should consider as candidates for pre-fetching.  For
4163 instance, you may wish to pre-fetch all articles with high scores, and
4164 not pre-fetch low-scored articles.  You can do that by setting the
4165 @code{gnus-asynchronous-article-function}, which will be called with an
4166 alist where the keys are the article numbers.  Your function should
4167 return an alist where the articles you are not interested in have been
4168 removed.  You could also do sorting on article score and the like. 
4169
4170
4171 @node Article Caching
4172 @section Article Caching
4173 @cindex article caching
4174 @cindex caching
4175
4176 If you have an @emph{extremely} slow @sc{nntp} connection, you may
4177 consider turning article caching on.  Each article will then be stored
4178 locally under your home directory.  As you may surmise, this could
4179 potentially use @emph{huge} amounts of disk space, as well as eat up all
4180 your inodes so fast it will make your head swim.  In vodka.
4181
4182 Used carefully, though, it could be just an easier way to save articles.
4183
4184 @vindex gnus-use-long-file-name
4185 @vindex gnus-cache-directory
4186 @vindex gnus-use-cache
4187 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
4188 all articles that are ticked or marked as dormant will then be copied
4189 over to your local cache (@code{gnus-cache-directory}).  Whether this
4190 cache is flat or hierarchal is controlled by the
4191 @code{gnus-use-long-file-name} variable, as usual.
4192
4193 When re-select a ticked or dormant article, it will be fetched from the
4194 cache instead of from the server.  As articles in your cache will never
4195 expire, this might serve as a method of saving articles while still
4196 keeping them where they belong.  Just mark all articles you want to save
4197 as dormant, and don't worry.
4198
4199 When an article is marked as read, is it removed from the cache.
4200
4201 @vindex gnus-cache-remove-articles
4202 @vindex gnus-cache-enter-articles
4203 The entering/removal of articles from the cache is controlled by the
4204 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
4205 variables.  Both are lists of symbols.  The first is @code{(ticked
4206 dormant)} by default, meaning that ticked and dormant articles will be
4207 put in the cache.  The latter is @code{(read)} by default, meaning that
4208 articles that are marked as read are removed from the cache.  Possibly
4209 symbols in these two lists are @code{ticked}, @code{dormant},
4210 @code{unread} and @code{read}.
4211
4212 @findex gnus-jog-cache
4213 So where does the massive article-fetching and storing come into the
4214 picture?  The @code{gnus-jog-cache} command will go through all
4215 subscribed newsgroups, request all unread articles, and store them in
4216 the cache.  You should only ever, ever ever ever, use this command if 1)
4217 your connection to the @sc{nntp} server is really, really, really slow
4218 and 2) you have a really, really, really huge disk.  Seriously.
4219
4220 @vindex gnus-uncacheable-groups
4221 It is likely that you do not want caching on some groups.  For instance,
4222 if your @code{nnml} mail is located under your home directory, it makes no
4223 sense to cache it somewhere else under your home directory.  Unless you
4224 feel that it's neat to use twice as much space.  To limit the caching,
4225 you could set the @code{gnus-uncacheable-groups} regexp to
4226 @samp{^nnml}, for instance.  This variable is @code{nil} by
4227 default.
4228
4229 @findex gnus-cache-generate-nov-databases
4230 @findex gnus-cache-generate-active
4231 @vindex gnus-cache-active-file
4232 The cache stores information on what articles it contains in its active
4233 file (@code{gnus-cache-active-file}).  If this file (or any other parts
4234 of the cache) becomes all messed up for some reason or other, Gnus
4235 offers two functions that will try to set things right.  @kbd{M-x
4236 gnus-cache-generate-nov-databases} will (re)build all the @sc{nov}
4237 files, and @kbd{gnus-cache-generate-active} will (re)generate the active
4238 file.
4239
4240
4241 @node Persistent Articles
4242 @section Persistent Articles
4243 @cindex persistent articles
4244
4245 Closely related to article caching, we have @dfn{persistent articles}.
4246 In fact, it's just a different way of looking at caching, and much more
4247 useful in my opinion.
4248
4249 Say you're reading a newsgroup, and you happen on to some valuable gem
4250 that you want to keep and treasure forever.  You'd normally just save it
4251 (using one of the many saving commands) in some file.  The problem with
4252 that is that it's just, well, yucky.  Ideally you'd prefer just having
4253 the article remain in the group where you found it forever; untouched by
4254 the expiry going on at the news server.
4255
4256 This is what a @dfn{persistent article} is---an article that just won't
4257 be deleted.  It's implemented using the normal cache functions, but
4258 you use two explicit commands for managing persistent articles:
4259
4260 @table @kbd
4261
4262 @item *
4263 @kindex * (Summary)
4264 @findex gnus-cache-enter-article
4265 Make the current article persistent (@code{gnus-cache-enter-article}). 
4266
4267 @item M-*
4268 @kindex M-* (Summary)
4269 @findex gnus-cache-remove-article
4270 Remove the current article from the persistent articles
4271 (@code{gnus-cache-remove-article}).  This will normally delete the
4272 article. 
4273 @end table
4274
4275 Both these commands understand the process/prefix convention. 
4276
4277 To avoid having all ticked articles (and stuff) entered into the cache,
4278 you should set @code{gnus-use-cache} to @code{passive} if you're just
4279 interested in persistent articles:
4280
4281 @lisp
4282 (setq gnus-use-cache 'passive)
4283 @end lisp
4284
4285
4286 @node Article Backlog
4287 @section Article Backlog
4288 @cindex backlog
4289 @cindex article backlog
4290
4291 If you have a slow connection, but the idea of using caching seems
4292 unappealing to you (and it is, really), you can help the situation some
4293 by switching on the @dfn{backlog}.  This is where Gnus will buffer
4294 already read articles so that it doesn't have to re-fetch articles
4295 you've already read.  This only helps if you are in the habit of
4296 re-selecting articles you've recently read, of course.  If you never do
4297 that, turning the backlog on will slow Gnus down a little bit, and
4298 increase memory usage some.
4299
4300 @vindex gnus-keep-backlog
4301 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
4302 at most @var{n} old articles in a buffer for later re-fetching.  If this
4303 variable is non-@code{nil} and is not a number, Gnus will store
4304 @emph{all} read articles, which means that your Emacs will grow without
4305 bound before exploding and taking your machine down with you.  I put
4306 that in there just to keep y'all on your toes.  
4307
4308 This variable is @code{nil} by default.
4309
4310
4311 @node Saving Articles
4312 @section Saving Articles
4313 @cindex saving articles
4314
4315 Gnus can save articles in a number of ways.  Below is the documentation
4316 for saving articles in a fairly straight-forward fashion (i.e., little
4317 processing of the article is done before it is saved).  For a different
4318 approach (uudecoding, unsharing) you should use @code{gnus-uu}
4319 (@pxref{Decoding Articles}).
4320
4321 @vindex gnus-save-all-headers
4322 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
4323 unwanted headers before saving the article.
4324
4325 @vindex gnus-saved-headers
4326 If the preceding variable is @code{nil}, all headers that match the
4327 @code{gnus-saved-headers} regexp will be kept, while the rest will be
4328 deleted before saving.
4329
4330 @table @kbd
4331
4332 @item O o
4333 @itemx o
4334 @kindex O o (Summary)
4335 @kindex o (Summary)
4336 @findex gnus-summary-save-article
4337 Save the current article using the default article saver
4338 (@code{gnus-summary-save-article}). 
4339
4340 @item O m
4341 @kindex O m (Summary)
4342 @findex gnus-summary-save-article-mail
4343 Save the current article in mail format
4344 (@code{gnus-summary-save-article-mail}). 
4345
4346 @item O r
4347 @kindex O r (Summary)
4348 @findex gnus-summary-save-article-rmail
4349 Save the current article in rmail format
4350 (@code{gnus-summary-save-article-rmail}). 
4351
4352 @item O f
4353 @kindex O f (Summary)
4354 @findex gnus-summary-save-article-file
4355 Save the current article in plain file format
4356 (@code{gnus-summary-save-article-file}). 
4357
4358 @item O b
4359 @kindex O b (Summary)
4360 @findex gnus-summary-save-article-body-file
4361 Save the current article body in plain file format
4362 (@code{gnus-summary-save-article-body-file}). 
4363
4364 @item O h
4365 @kindex O h (Summary)
4366 @findex gnus-summary-save-article-folder
4367 Save the current article in mh folder format
4368 (@code{gnus-summary-save-article-folder}). 
4369
4370 @item O v
4371 @kindex O v (Summary)
4372 @findex gnus-summary-save-article-vm
4373 Save the current article in a VM folder
4374 (@code{gnus-summary-save-article-vm}).
4375
4376 @item O p
4377 @kindex O p (Summary)
4378 @findex gnus-summary-pipe-output
4379 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
4380 the current article to a process (@code{gnus-summary-pipe-output}).
4381 @end table
4382
4383 @vindex gnus-prompt-before-saving
4384 All these commands use the process/prefix convention
4385 (@pxref{Process/Prefix}).  If you save bunches of articles using these
4386 functions, you might get tired of being prompted for files to save each
4387 and every article in.  The prompting action is controlled by
4388 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
4389 default, giving you that excessive prompting action you know and
4390 loathe.  If you set this variable to @code{t} instead, you'll be prompted
4391 just once for each series of articles you save.  If you like to really
4392 have Gnus do all your thinking for you, you can even set this variable
4393 to @code{nil}, which means that you will never be prompted for files to
4394 save articles in.  Gnus will simply save all the articles in the default
4395 files. 
4396
4397
4398 @vindex gnus-default-article-saver
4399 You can customize the @code{gnus-default-article-saver} variable to make
4400 Gnus do what you want it to.  You can use any of the four ready-made
4401 functions below, or you can create your own.
4402
4403 @table @code
4404
4405 @item gnus-summary-save-in-rmail
4406 @findex gnus-summary-save-in-rmail
4407 @vindex gnus-rmail-save-name
4408 @findex gnus-plain-save-name
4409 This is the default format, @dfn{babyl}.  Uses the function in the
4410 @code{gnus-rmail-save-name} variable to get a file name to save the
4411 article in.  The default is @code{gnus-plain-save-name}.
4412
4413 @item gnus-summary-save-in-mail
4414 @findex gnus-summary-save-in-mail
4415 @vindex gnus-mail-save-name
4416 Save in a Unix mail (mbox) file.  Uses the function in the
4417 @code{gnus-mail-save-name} variable to get a file name to save the
4418 article in.  The default is @code{gnus-plain-save-name}.
4419
4420 @item gnus-summary-save-in-file
4421 @findex gnus-summary-save-in-file
4422 @vindex gnus-file-save-name
4423 @findex gnus-numeric-save-name
4424 Append the article straight to an ordinary file.  Uses the function in
4425 the @code{gnus-file-save-name} variable to get a file name to save the
4426 article in.  The default is @code{gnus-numeric-save-name}.
4427
4428 @item gnus-summary-save-body-in-file
4429 @findex gnus-summary-save-body-in-file
4430 Append the article body to an ordinary file.  Uses the function in the
4431 @code{gnus-file-save-name} variable to get a file name to save the
4432 article in.  The default is @code{gnus-numeric-save-name}.
4433
4434 @item gnus-summary-save-in-folder
4435 @findex gnus-summary-save-in-folder
4436 @findex gnus-folder-save-name
4437 @findex gnus-Folder-save-name
4438 @vindex gnus-folder-save-name
4439 @cindex rcvstore
4440 @cindex MH folders
4441 Save the article to an MH folder using @code{rcvstore} from the MH
4442 library.  Uses the function in the @code{gnus-folder-save-name} variable
4443 to get a file name to save the article in.  The default is
4444 @code{gnus-folder-save-name}, but you can also use
4445 @code{gnus-Folder-save-name}.  The former creates capitalized names, and
4446 the latter does not.
4447
4448 @item gnus-summary-save-in-vm
4449 @findex gnus-summary-save-in-vm
4450 Save the article in a VM folder.  You have to have the VM mail
4451 reader to use this setting.
4452 @end table
4453
4454 @vindex gnus-article-save-directory
4455 All of these functions, except for the last one, will save the article
4456 in the @code{gnus-article-save-directory}, which is initialized from the
4457 @code{SAVEDIR} environment variable.  This is @file{~/News/} by
4458 default. 
4459
4460 As you can see above, the functions use different functions to find a
4461 suitable name of a file to save the article in.  Below is a list of
4462 available functions that generate names:
4463
4464 @table @code
4465
4466 @item gnus-Numeric-save-name
4467 @findex gnus-Numeric-save-name
4468 Generates file names that look like @file{~/News/Alt.andrea-dworkin/45}.
4469
4470 @item gnus-numeric-save-name
4471 @findex gnus-numeric-save-name
4472 Generates file names that look like @file{~/News/alt.andrea-dworkin/45}.
4473
4474 @item gnus-Plain-save-name
4475 @findex gnus-Plain-save-name
4476 Generates file names that look like @file{~/News/Alt.andrea-dworkin}.
4477
4478 @item gnus-plain-save-name
4479 @findex gnus-plain-save-name
4480 Generates file names that look like @file{~/News/alt.andrea-dworkin}.
4481 @end table
4482
4483 @vindex gnus-split-methods
4484 You can have Gnus suggest where to save articles by plonking a regexp into
4485 the @code{gnus-split-methods} alist.  For instance, if you would like to
4486 save articles related to Gnus in the file @file{gnus-stuff}, and articles
4487 related to VM in @code{vm-stuff}, you could set this variable to something
4488 like:
4489
4490 @lisp
4491 (("^Subject:.*gnus\\|^Newsgroups:.*gnus" "gnus-stuff")
4492  ("^Subject:.*vm\\|^Xref:.*vm" "vm-stuff")
4493  (my-choosing-function "../other-dir/my-stuff")
4494  ((equal gnus-newsgroup-name "mail.misc") "mail-stuff"))
4495 @end lisp
4496
4497 We see that this is a list where each element is a list that has two
4498 elements---the @dfn{match} and the @dfn{file}.  The match can either be
4499 a string (in which case it is used as a regexp to match on the article
4500 head); it can be a symbol (which will be called as a function); or it
4501 can be a list (which will be @code{eval}ed).  If any of these actions
4502 have a non-@code{nil} result, the @dfn{file} will be used as a default
4503 prompt.  In addition, the result of the operation itself will be used if
4504 the function or form called returns a string or a list of strings. 
4505
4506 You basically end up with a list of file names that might be used when
4507 saving the current article.  (All ``matches'' will be used.)  You will
4508 then be prompted for what you really want to use as a name, with file
4509 name completion over the results from applying this variable.
4510
4511 This variable is @code{((gnus-article-archive-name))} by default, which
4512 means that Gnus will look at the articles it saves for an
4513 @code{Archive-name} line and use that as a suggestion for the file
4514 name. 
4515
4516 @vindex gnus-use-long-file-name
4517 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
4518 @code{nil}, all the preceding functions will replace all periods
4519 (@samp{.}) in the group names with slashes (@samp{/})---which means that
4520 the functions will generate hierarchies of directories instead of having
4521 all the files in the toplevel directory
4522 (@file{~/News/alt/andrea-dworkin} instead of
4523 @file{~/News/alt.andrea-dworkin}.)  This variable is @code{t} by default
4524 on most systems.  However, for historical reasons, this is @code{nil} on
4525 Xenix and usg-unix-v machines by default.
4526
4527 This function also affects kill and score file names.  If this variable
4528 is a list, and the list contains the element @code{not-score}, long file
4529 names will not be used for score files, if it contains the element
4530 @code{not-save}, long file names will not be used for saving, and if it
4531 contains the element @code{not-kill}, long file names will not be used
4532 for kill files.
4533
4534 If you'd like to save articles in a hierarchy that looks something like
4535 a spool, you could
4536
4537 @lisp
4538 (setq gnus-use-long-file-name '(not-save)) ; to get a hierarchy
4539 (setq gnus-default-article-save 'gnus-summary-save-in-file) ; no encoding
4540 @end lisp
4541
4542 Then just save with @kbd{o}.  You'd then read this hierarchy with
4543 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
4544 the toplevel directory as the argument (@file{~/News/}).  Then just walk
4545 around to the groups/directories with @code{nneething}.
4546
4547
4548 @node Decoding Articles
4549 @section Decoding Articles
4550 @cindex decoding articles
4551
4552 Sometime users post articles (or series of articles) that have been
4553 encoded in some way or other.  Gnus can decode them for you.
4554
4555 @menu 
4556 * Uuencoded Articles::    Uudecode articles.
4557 * Shared Articles::       Unshar articles.
4558 * PostScript Files::      Split PostScript.
4559 * Decoding Variables::    Variables for a happy decoding.
4560 * Viewing Files::         You want to look at the result of the decoding?
4561 @end menu
4562
4563 All these functions use the process/prefix convention
4564 (@pxref{Process/Prefix}) for finding out what articles to work on, with
4565 the extension that a ``single article'' means ``a single series''.  Gnus
4566 can find out by itself what articles belong to a series, decode all the
4567 articles and unpack/view/save the resulting file(s).
4568
4569 Gnus guesses what articles are in the series according to the following
4570 simplish rule: The subjects must be (nearly) identical, except for the
4571 last two numbers of the line.  (Spaces are largely ignored, however.)
4572
4573 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
4574 will find all the articles that match the regexp @samp{^cat.gif
4575 ([0-9]+/[0-9]+).*$}.  
4576
4577 Subjects that are nonstandard, like @samp{cat.gif (2/3) Part 6 of a
4578 series}, will not be properly recognized by any of the automatic viewing
4579 commands, and you have to mark the articles manually with @kbd{#}.
4580
4581
4582 @node Uuencoded Articles
4583 @subsection Uuencoded Articles
4584 @cindex uudecode
4585 @cindex uuencoded articles
4586
4587 @table @kbd
4588
4589 @item X u
4590 @kindex X u (Summary)
4591 @findex gnus-uu-decode-uu
4592 Uudecodes the current series (@code{gnus-uu-decode-uu}).
4593
4594 @item X U
4595 @kindex X U (Summary)
4596 @findex gnus-uu-decode-uu-and-save
4597 Uudecodes and saves the current series
4598 (@code{gnus-uu-decode-uu-and-save}).
4599
4600 @item X v u
4601 @kindex X v u (Summary)
4602 @findex gnus-uu-decode-uu-view
4603 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
4604
4605 @item X v U
4606 @kindex X v U (Summary)
4607 @findex gnus-uu-decode-uu-and-save-view
4608 Uudecodes, views and saves the current series
4609 (@code{gnus-uu-decode-uu-and-save-view}). 
4610 @end table
4611
4612 Remember that these all react to the presence of articles marked with
4613 the process mark.  If, for instance, you'd like to decode and save an
4614 entire newsgroup, you'd typically do @kbd{M P a}
4615 (@code{gnus-uu-mark-all}) and then @kbd{X U}
4616 (@code{gnus-uu-decode-uu-and-save}).
4617
4618 All this is very much different from how @code{gnus-uu} worked with
4619 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
4620 the sun.  This version of @code{gnus-uu} generally assumes that you mark
4621 articles in some way (@pxref{Setting Process Marks}) and then press
4622 @kbd{X u}.
4623
4624 @vindex gnus-uu-notify-files
4625 Note: When trying to decode articles that have names matching
4626 @code{gnus-uu-notify-files}, which is hard-coded to
4627 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
4628 automatically post an article on @samp{comp.unix.wizards} saying that
4629 you have just viewed the file in question.  This feature can't be turned
4630 off.
4631
4632
4633 @node Shared Articles
4634 @subsection Shared Articles
4635 @cindex unshar
4636 @cindex shared articles
4637
4638 @table @kbd
4639
4640 @item X s
4641 @kindex X s (Summary)
4642 @findex gnus-uu-decode-unshar
4643 Unshars the current series (@code{gnus-uu-decode-unshar}).
4644
4645 @item X S
4646 @kindex X S (Summary)
4647 @findex gnus-uu-decode-unshar-and-save
4648 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
4649
4650 @item X v s
4651 @kindex X v s (Summary)
4652 @findex gnus-uu-decode-unshar-view
4653 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
4654
4655 @item X v S
4656 @kindex X v S (Summary)
4657 @findex gnus-uu-decode-unshar-and-save-view
4658 Unshars, views and saves the current series
4659 (@code{gnus-uu-decode-unshar-and-save-view}). 
4660 @end table
4661
4662
4663 @node PostScript Files
4664 @subsection PostScript Files
4665 @cindex PostScript
4666
4667 @table @kbd
4668
4669 @item X p
4670 @kindex X p (Summary)
4671 @findex gnus-uu-decode-postscript
4672 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
4673
4674 @item X P
4675 @kindex X P (Summary)
4676 @findex gnus-uu-decode-postscript-and-save
4677 Unpack and save the current PostScript series
4678 (@code{gnus-uu-decode-postscript-and-save}).
4679
4680 @item X v p
4681 @kindex X v p (Summary)
4682 @findex gnus-uu-decode-postscript-view
4683 View the current PostScript series
4684 (@code{gnus-uu-decode-postscript-view}).
4685
4686 @item X v P
4687 @kindex X v P (Summary)
4688 @findex gnus-uu-decode-postscript-and-save-view
4689 View and save the current PostScript series
4690 (@code{gnus-uu-decode-postscript-and-save-view}). 
4691 @end table
4692
4693
4694 @node Decoding Variables
4695 @subsection Decoding Variables
4696
4697 Adjective, not verb.
4698
4699 @menu 
4700 * Rule Variables::          Variables that say how a file is to be viewed.
4701 * Other Decode Variables::  Other decode variables.
4702 * Uuencoding and Posting::  Variables for customizing uuencoding.
4703 @end menu
4704
4705
4706 @node Rule Variables
4707 @subsubsection Rule Variables
4708 @cindex rule variables
4709
4710 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
4711 variables are on the form
4712   
4713 @lisp
4714       (list '(regexp1 command2)
4715             '(regexp2 command2)
4716             ...)
4717 @end lisp
4718
4719 @table @code
4720
4721 @item gnus-uu-user-view-rules
4722 @vindex gnus-uu-user-view-rules
4723 @cindex sox
4724 This variable is consulted first when viewing files.  If you wish to use,
4725 for instance, @code{sox} to convert an @samp{.au} sound file, you could
4726 say something like:
4727 @lisp
4728        (setq gnus-uu-user-view-rules
4729          (list '(\"\\\\.au$\" \"sox %s -t .aiff > /dev/audio\")))
4730 @end lisp
4731
4732 @item gnus-uu-user-view-rules-end
4733 @vindex gnus-uu-user-view-rules-end
4734 This variable is consulted if Gnus couldn't make any matches from the
4735 user and default view rules.
4736
4737 @item gnus-uu-user-archive-rules
4738 @vindex gnus-uu-user-archive-rules
4739 This variable can be used to say what commands should be used to unpack
4740 archives.
4741 @end table
4742
4743
4744 @node Other Decode Variables
4745 @subsubsection Other Decode Variables
4746
4747 @table @code
4748 @vindex gnus-uu-grabbed-file-functions
4749
4750 @item gnus-uu-grabbed-file-functions
4751 All functions in this list will be called right each file has been
4752 successfully decoded---so that you can move or view files right away,
4753 and don't have to wait for all files to be decoded before you can do
4754 anything.  Ready-made functions you can put in this list are:
4755
4756 @table @code
4757
4758 @item gnus-uu-grab-view
4759 @findex gnus-uu-grab-view
4760 View the file.
4761
4762 @item gnus-uu-grab-move
4763 @findex gnus-uu-grab-move
4764 Move the file (if you're using a saving function.)
4765 @end table
4766
4767 @item gnus-uu-ignore-files-by-name
4768 @vindex gnus-uu-ignore-files-by-name
4769 Files with name matching this regular expression won't be viewed.
4770
4771 @item gnus-uu-ignore-files-by-type
4772 @vindex gnus-uu-ignore-files-by-type
4773 Files with a @sc{mime} type matching this variable won't be viewed.
4774 Note that Gnus tries to guess what type the file is based on the name.
4775 @code{gnus-uu} is not a @sc{mime} package (yet), so this is slightly
4776 kludgey.
4777
4778 @item gnus-uu-tmp-dir
4779 @vindex gnus-uu-tmp-dir
4780 Where @code{gnus-uu} does its work.
4781
4782 @item gnus-uu-do-not-unpack-archives
4783 @vindex gnus-uu-do-not-unpack-archives
4784 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
4785 looking for files to display.
4786
4787 @item gnus-uu-view-and-save
4788 @vindex gnus-uu-view-and-save
4789 Non-@code{nil} means that the user will always be asked to save a file
4790 after viewing it.
4791
4792 @item gnus-uu-ignore-default-view-rules
4793 @vindex gnus-uu-ignore-default-view-rules
4794 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
4795 rules.
4796
4797 @item gnus-uu-ignore-default-archive-rules
4798 @vindex gnus-uu-ignore-default-archive-rules
4799 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
4800 unpacking commands.
4801
4802 @item gnus-uu-kill-carriage-return
4803 @vindex gnus-uu-kill-carriage-return
4804 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
4805 from articles.
4806
4807 @item gnus-uu-unmark-articles-not-decoded
4808 @vindex gnus-uu-unmark-articles-not-decoded
4809 Non-@code{nil} means that @code{gnus-uu} will mark articles that were
4810 unsuccessfully decoded as unread.
4811
4812 @item gnus-uu-correct-stripped-uucode
4813 @vindex gnus-uu-correct-stripped-uucode
4814 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
4815 uuencoded files that have had trailing spaces deleted.
4816
4817 @item gnus-uu-view-with-metamail
4818 @vindex gnus-uu-view-with-metamail
4819 @cindex metamail
4820 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
4821 commands defined by the rule variables and just fudge a @sc{mime}
4822 content type based on the file name.  The result will be fed to
4823 @code{metamail} for viewing.
4824
4825 @item gnus-uu-save-in-digest
4826 @vindex gnus-uu-save-in-digest
4827 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
4828 decoding, will save in digests.  If this variable is @code{nil},
4829 @code{gnus-uu} will just save everything in a file without any
4830 embellishments.  The digesting almost conforms to RFC1153---no easy way
4831 to specify any meaningful volume and issue numbers were found, so I
4832 simply dropped them.
4833
4834 @end table
4835
4836
4837 @node Uuencoding and Posting
4838 @subsubsection Uuencoding and Posting
4839
4840 @table @code
4841
4842 @item gnus-uu-post-include-before-composing
4843 @vindex gnus-uu-post-include-before-composing
4844 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
4845 before you compose the article.  If this variable is @code{t}, you can
4846 either include an encoded file with @kbd{C-c C-i} or have one included
4847 for you when you post the article.
4848
4849 @item gnus-uu-post-length
4850 @vindex gnus-uu-post-length
4851 Maximum length of an article.  The encoded file will be split into how
4852 many articles it takes to post the entire file.
4853
4854 @item gnus-uu-post-threaded
4855 @vindex gnus-uu-post-threaded
4856 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
4857 thread.  This may not be smart, as no other decoder I have seen are able
4858 to follow threads when collecting uuencoded articles.  (Well, I have
4859 seen one package that does that---@code{gnus-uu}, but somehow, I don't
4860 think that counts...) Default is @code{nil}.
4861
4862 @item gnus-uu-post-separate-description
4863 @vindex gnus-uu-post-separate-description
4864 Non-@code{nil} means that the description will be posted in a separate
4865 article.  The first article will typically be numbered (0/x).  If this
4866 variable is @code{nil}, the description the user enters will be included
4867 at the beginning of the first article, which will be numbered (1/x).
4868 Default is @code{t}.
4869
4870 @end table
4871
4872
4873 @node Viewing Files
4874 @subsection Viewing Files
4875 @cindex viewing files
4876 @cindex pseudo-articles
4877
4878 After decoding, if the file is some sort of archive, Gnus will attempt
4879 to unpack the archive and see if any of the files in the archive can be
4880 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
4881 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
4882 uncompress and de-tar the main file, and then view the two pictures.
4883 This unpacking process is recursive, so if the archive contains archives
4884 of archives, it'll all be unpacked.
4885
4886 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
4887 extracted file into the summary buffer.  If you go to these
4888 ``articles'', you will be prompted for a command to run (usually Gnus
4889 will make a suggestion), and then the command will be run.
4890
4891 @vindex gnus-view-pseudo-asynchronously
4892 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
4893 until the viewing is done before proceeding.
4894
4895 @vindex gnus-view-pseudos
4896 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
4897 the pseudo-articles into the summary buffer, but view them
4898 immediately.  If this variable is @code{not-confirm}, the user won't even
4899 be asked for a confirmation before viewing is done.
4900
4901 @vindex gnus-view-pseudos-separately 
4902 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
4903 pseudo-article will be created for each file to be viewed.  If
4904 @code{nil}, all files that use the same viewing command will be given as
4905 a list of parameters to that command.
4906
4907 @vindex gnus-insert-pseudo-articles
4908 If @code{gnus-insert-pseudo-articles} is non-@code{nil}, insert
4909 pseudo-articles when decoding.  It is @code{t} by default.
4910
4911 So; there you are, reading your @emph{pseudo-articles} in your
4912 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
4913 Why isn't anything real anymore? How did we get here?
4914
4915
4916 @node Article Treatment
4917 @section Article Treatment
4918
4919 Reading through this huge manual, you may have quite forgotten that the
4920 object of newsreaders are to actually, like, read what people have
4921 written.  Reading articles.  Unfortunately, people are quite bad at
4922 writing, so there are tons of functions and variables to make reading
4923 these articles easier.
4924
4925 @menu
4926 * Article Highlighting::    You want to make the article look like fruit salad.
4927 * Article Hiding::          You also want to make certain info go away.
4928 * Article Washing::         Lots of way-neat functions to make life better.
4929 * Article Buttons::         Click on URLs, Message-IDs, addresses and the like.
4930 * Article Date::            Grumble, UT!
4931 @end menu
4932
4933
4934 @node Article Highlighting
4935 @subsection Article Highlighting
4936 @cindex highlight
4937
4938 Not only do you want your article buffer to look like fruit salad, but
4939 you want it to look like technicolor fruit salad.
4940
4941 @table @kbd
4942
4943 @item W H a
4944 @kindex W H a (Summary)
4945 @findex gnus-article-highlight
4946 Highlight the current article (@code{gnus-article-highlight}).
4947
4948 @item W H h
4949 @kindex W H h (Summary)
4950 @findex gnus-article-highlight-headers
4951 @vindex gnus-header-face-alist
4952 Highlight the headers (@code{gnus-article-highlight-headers}).  The
4953 highlighting will be done according to the @code{gnus-header-face-alist}
4954 variable, which is a list where each element has the form @var{(regexp
4955 name content)}.  @var{regexp} is a regular expression for matching the
4956 header, @var{name} is the face used for highlighting the header name and
4957 @var{content} is the face for highlighting the header value.  The first
4958 match made will be used.  Note that @var{regexp} shouldn't have @samp{^}
4959 prepended---Gnus will add one.
4960
4961 @item W H c
4962 @kindex W H c (Summary)
4963 @findex gnus-article-highlight-citation
4964 Highlight cited text (@code{gnus-article-highlight-citation}). 
4965
4966 Some variables to customize the citation highlights:
4967
4968 @table @code
4969 @vindex gnus-cite-parse-max-size
4970
4971 @item gnus-cite-parse-max-size
4972 If the article size if bigger than this variable (which is 25000 by
4973 default), no citation highlighting will be performed.  
4974
4975 @item gnus-cite-prefix-regexp
4976 @vindex gnus-cite-prefix-regexp
4977 Regexp matching the longest possible citation prefix on a line. 
4978
4979 @item gnus-cite-max-prefix
4980 @vindex gnus-cite-max-prefix
4981 Maximum possible length for a citation prefix (default 20).
4982
4983 @item gnus-cite-face-list
4984 @vindex gnus-cite-face-list
4985 List of faces used for highlighting citations.  When there are citations
4986 from multiple articles in the same message, Gnus will try to give each
4987 citation from each article its own face.  This should make it easier to
4988 see who wrote what.
4989
4990 @item gnus-supercite-regexp
4991 @vindex gnus-supercite-regexp
4992 Regexp matching normal SuperCite attribution lines.  
4993
4994 @item gnus-supercite-secondary-regexp
4995 @vindex gnus-supercite-secondary-regexp
4996 Regexp matching mangled SuperCite attribution lines.
4997
4998 @item gnus-cite-minimum-match-count
4999 @vindex gnus-cite-minimum-match-count
5000 Minimum number of identical prefixes we have to see before we believe
5001 that it's a citation.
5002
5003 @item gnus-cite-attribution-prefix
5004 @vindex gnus-cite-attribution-prefix
5005 Regexp matching the beginning of an attribution line.
5006
5007 @item gnus-cite-attribution-suffix
5008 @vindex gnus-cite-attribution-suffix
5009 Regexp matching the end of an attribution line.
5010
5011 @item gnus-cite-attribution-face
5012 @vindex gnus-cite-attribution-face
5013 Face used for attribution lines.  It is merged with the face for the
5014 cited text belonging to the attribution.
5015
5016 @end table
5017
5018
5019 @item W H s
5020 @kindex W H s (Summary)
5021 @vindex gnus-signature-separator
5022 @vindex gnus-signature-face
5023 @findex gnus-article-highlight-signature
5024 Highlight the signature (@code{gnus-article-highlight-signature}).
5025 Everything after @code{gnus-signature-separator} in an article will be
5026 considered a signature and will be highlighted with
5027 @code{gnus-signature-face}, which is @code{italic} by default. 
5028
5029 @end table
5030
5031
5032 @node Article Hiding
5033 @subsection Article Hiding
5034 @cindex article hiding
5035
5036 Or rather, hiding certain things in each article.  There usually is much
5037 too much cruft in most articles.  
5038
5039 @table @kbd
5040
5041 @item W W a
5042 @kindex W W a (Summary)
5043 @findex gnus-article-hide
5044 Do maximum hiding on the summary buffer (@kbd{gnus-article-hide}). 
5045
5046 @item W W h
5047 @kindex W W h (Summary)
5048 @findex gnus-article-hide-headers
5049 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
5050 Headers}. 
5051
5052 @item W W b
5053 @kindex W W b (Summary)
5054 @findex gnus-article-hide-boring-headers
5055 Hide headers that aren't particularly interesting
5056 (@code{gnus-article-hide-boring-headers}).  @xref{Hiding Headers}.
5057
5058 @item W W s
5059 @kindex W W s (Summary)
5060 @findex gnus-article-hide-signature
5061 Hide signature (@code{gnus-article-hide-signature}).
5062
5063 @item W W p
5064 @kindex W W p (Summary)
5065 @findex gnus-article-hide-pgp
5066 Hide @sc{pgp} signatures (@code{gnus-article-hide-pgp}). 
5067
5068 @item W W c
5069 @kindex W W c (Summary)
5070 @findex gnus-article-hide-citation
5071 Hide citation (@code{gnus-article-hide-citation}).  Some variables for
5072 customizing the hiding:
5073
5074 @table @code
5075
5076 @item gnus-cite-hide-percentage
5077 @vindex gnus-cite-hide-percentage
5078 If the cited text is of a bigger percentage than this variable (default
5079 50), hide the cited text.
5080
5081 @item gnus-cite-hide-absolute
5082 @vindex gnus-cite-hide-absolute
5083 The cited text must be have at least this length (default 10) before it
5084 is hidden.
5085
5086 @item gnus-cited-text-button-line-format
5087 @vindex gnus-cited-text-button-line-format
5088 Gnus adds buttons show where the cited text has been hidden, and to
5089 allow toggle hiding the text.  The format of the variable is specified
5090 by this format-like variable.  These specs are legal:
5091
5092 @table @samp
5093 @item b
5094 Start point of the hidden text.
5095 @item e
5096 End point of the hidden text.
5097 @item l
5098 Length of the hidden text.
5099 @end table
5100
5101 @item gnus-cited-lines-visible
5102 @vindex gnus-cited-lines-visible
5103 The number of lines at the beginning of the cited text to leave shown. 
5104
5105 @end table
5106
5107 @item W W C
5108 @kindex W W C (Summary)
5109 @findex gnus-article-hide-citation-in-followups
5110 Hide cited text in articles that aren't roots
5111 (@code{gnus-article-hide-citation-in-followups}).  This isn't very
5112 useful as an interactive command, but might be a handy function to stick
5113 in @code{gnus-article-display-hook} (@pxref{Customizing Articles}). 
5114
5115 @end table
5116
5117 All these ``hiding'' commands are toggles, but if you give a negative
5118 prefix to these commands, they will show what they have previously
5119 hidden.  If you give a positive prefix, they will always hide.
5120
5121 Also @pxref{Article Highlighting} for further variables for
5122 citation customization.
5123
5124 @vindex gnus-signature-limit
5125 @code{gnus-signature-limit} provides a limit to what is considered a
5126 signature.  If it is a number, no signature may not be longer (in
5127 characters) than that number.  If it is a function, the function will be
5128 called without any parameters, and if it returns @code{nil}, there is no
5129 signature in the buffer.  If it is a string, it will be used as a
5130 regexp.  If it matches, the text in question is not a signature.
5131
5132
5133 @node Article Washing
5134 @subsection Article Washing
5135 @cindex washing
5136 @cindex article washing
5137
5138 We call this ``article washing'' for a really good reason.  Namely, the
5139 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
5140
5141 @dfn{Washing} is defined by us as ``changing something from something to
5142 something else'', but normally results in something looking better.
5143 Cleaner, perhaps.
5144
5145 @table @kbd
5146
5147 @item W l
5148 @kindex W l (Summary)
5149 @findex gnus-summary-stop-page-breaking
5150 Remove page breaks from the current article
5151 (@code{gnus-summary-stop-page-breaking}).
5152
5153 @item W r
5154 @kindex W r (Summary)
5155 @findex gnus-summary-caesar-message
5156 Do a Caesar rotate (rot13) on the article buffer
5157 (@code{gnus-summary-caesar-message}). 
5158
5159 @item A g
5160 @kindex A g (Summary)
5161 @findex gnus-summary-show-article
5162 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
5163 given a prefix, fetch the current article, but don't run any of the
5164 article treatment functions.  This will give you a ``raw'' article, just
5165 the way it came from the server.
5166
5167 @item W t
5168 @kindex W t (Summary)
5169 @findex gnus-summary-toggle-header
5170 Toggle whether to display all headers in the article buffer
5171 (@code{gnus-summary-toggle-header}). 
5172
5173 @item W v
5174 @kindex W v (Summary)
5175 @findex gnus-summary-verbose-header
5176 Toggle whether to display all headers in the article buffer permanently
5177 (@code{gnus-summary-verbose-header}).
5178
5179 @item W m
5180 @kindex W m (Summary)
5181 @findex gnus-summary-toggle-mime
5182 Toggle whether to run the article through @sc{mime} before displaying
5183 (@code{gnus-summary-toggle-mime}).
5184
5185 @item W o
5186 @kindex W o (Summary)
5187 @findex gnus-article-treat-overstrike
5188 Treat overstrike (@code{gnus-article-treat-overstrike}).
5189
5190 @item W w
5191 @kindex W w (Summary)
5192 @findex gnus-article-fill-cited-article
5193 Do word wrap (@code{gnus-article-fill-cited-article}).
5194
5195 @item W c
5196 @kindex W c (Summary)
5197 @findex gnus-article-remove-cr
5198 Remove CR (@code{gnus-article-remove-cr}).
5199
5200 @item W L
5201 @kindex W L (Summary)
5202 @findex gnus-article-remove-trailing-blank-lines
5203 Remove all blank lines at the end of the article
5204 (@code{gnus-article-remove-trailing-blank-lines}).
5205
5206 @item W q
5207 @kindex W q (Summary)
5208 @findex gnus-article-de-quoted-unreadable
5209 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
5210
5211 @item W f
5212 @kindex W f (Summary)
5213 @cindex x-face
5214 @findex gnus-article-display-x-face
5215 @findex gnus-article-x-face-command
5216 @vindex gnus-article-x-face-command
5217 @vindex gnus-article-x-face-too-ugly
5218 Look for and display any X-Face headers
5219 (@code{gnus-article-display-x-face}).  The command executed by this
5220 function is given by the @code{gnus-article-x-face-command} variable.  If
5221 this variable is a string, this string will be executed in a sub-shell.
5222 If it is a function, this function will be called with the face as the
5223 argument.  If the @code{gnus-article-x-face-too-ugly} (which is a regexp)
5224 matches the @code{From} header, the face will not be shown.
5225
5226 @item W b
5227 @kindex W b (Summary)
5228 @findex gnus-article-add-buttons
5229 Add clickable buttons to the article (@code{gnus-article-add-buttons}). 
5230
5231 @item W B
5232 @kindex W B (Summary)
5233 @findex gnus-article-add-buttons-to-head
5234 Add clickable buttons to the article headers
5235 (@code{gnus-article-add-buttons-to-head}).  
5236
5237 @end table
5238
5239
5240 @node Article Buttons
5241 @subsection Article Buttons
5242 @cindex buttons
5243
5244 People often include references to other stuff in articles, and it would
5245 be nice if Gnus could just fetch whatever it is that people talk about
5246 with the minimum of fuzz.
5247
5248 Gnus adds @dfn{buttons} to certain standard references by default:
5249 Well-formed URLs, mail addresses and Message-IDs.  This is controlled by
5250 two variables, one that handles article bodies and one that handles
5251 article heads:
5252
5253 @table @code
5254
5255 @item gnus-button-alist
5256 @vindex gnus-button-alist
5257 This is an alist where each entry has this form:
5258
5259 @lisp
5260 (REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
5261 @end lisp
5262
5263 @table @var
5264
5265 @item regexp
5266 All text that match this regular expression will be considered an
5267 external reference.  Here's a typical regexp that match embedded URLs:
5268 @samp{<URL:\\([^\n\r>]*\\)>}. 
5269
5270 @item button-par
5271 Gnus has to know which parts of the match is to be highlighted.  This is
5272 a number that says what sub-expression of the regexp that is to be
5273 highlighted.  If you want it all highlighted, you use @code{0} here.
5274
5275 @item use-p
5276 This form will be @code{eval}ed, and if the result is non-@code{nil},
5277 this is considered a match.  This is useful if you want extra sifting to
5278 avoid false matches.
5279
5280 @item function
5281 This function will be called when you click on this button.
5282
5283 @item data-par
5284 As with @var{button-par}, this is a sub-expression number, but this one
5285 says which part of the match is to be sent as data to @var{function}. 
5286
5287 @end table
5288
5289 So the full entry for buttonizing URLs is then
5290
5291 @lisp
5292 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
5293 @end lisp
5294
5295 @item gnus-header-button-alist
5296 @vindex gnus-header-button-alist
5297 This is just like the other alist, except that it is applied to the
5298 article head only, and that each entry has an additional element that is
5299 used to say what headers to apply the buttonize coding to:
5300
5301 @lisp
5302 (HEADER REGEXP BUTTON-PAR USE-P FUNCTION DATA-PAR)
5303 @end lisp
5304
5305 @var{header} is a regular expression.
5306
5307 @item gnus-button-url-regexp
5308 @vindex gnus-button-url-regexp
5309 A regular expression that matches embedded URLs.  It is used in the
5310 default values of the variables above.
5311
5312 @item gnus-article-button-face
5313 @vindex gnus-article-button-face
5314 Face used on bottons.
5315
5316 @item gnus-article-mouse-face
5317 @vindex gnus-article-mouse-face
5318 Face is used when the mouse cursor is over a button.
5319
5320 @end table
5321
5322
5323 @node Article Date
5324 @subsection Article Date
5325
5326 The date is most likely generated in some obscure timezone you've never
5327 heard of, so it's quite nice to be able to find out what the time was
5328 when the article was sent.
5329
5330 @table @kbd
5331
5332 @item W T u
5333 @kindex W T u (Summary)
5334 @findex gnus-article-date-ut
5335 Display the date in UT (aka. GMT, aka ZULU)
5336 (@code{gnus-article-date-ut}). 
5337
5338 @item W T l
5339 @kindex W T l (Summary)
5340 @findex gnus-article-date-local
5341 Display the date in the local timezone (@code{gnus-article-date-local}).
5342
5343 @item W T e
5344 @kindex W T e (Summary)
5345 @findex gnus-article-date-lapsed
5346 Say how much time has (e)lapsed between the article was posted and now
5347 (@code{gnus-article-date-lapsed}).
5348
5349 @item W T o
5350 @kindex W T o (Summary)
5351 @findex gnus-article-date-original
5352 Display the original date (@code{gnus-article-date-original}).  This can
5353 be useful if you normally use some other conversion function and is
5354 worried that it might be doing something totally wrong.  Say, claiming
5355 that the article was posted in 1854.  Although something like that is
5356 @emph{totally} impossible.  Don't you trust me? *titter*
5357
5358 @end table
5359
5360
5361 @node Summary Sorting
5362 @section Summary Sorting
5363 @cindex summary sorting
5364
5365 You can have the summary buffer sorted in various ways, even though I
5366 can't really see why you'd want that.
5367
5368 @table @kbd
5369
5370 @item C-c C-s C-n
5371 @kindex C-c C-s C-n (Summary)
5372 @findex gnus-summary-sort-by-number
5373 Sort by article number (@code{gnus-summary-sort-by-number}).
5374
5375 @item C-c C-s C-a
5376 @kindex C-c C-s C-a (Summary)
5377 @findex gnus-summary-sort-by-author
5378 Sort by author (@code{gnus-summary-sort-by-author}).
5379
5380 @item C-c C-s C-s
5381 @kindex C-c C-s C-s (Summary)
5382 @findex gnus-summary-sort-by-subject
5383 Sort by subject (@code{gnus-summary-sort-by-subject}).
5384
5385 @item C-c C-s C-d
5386 @kindex C-c C-s C-d (Summary)
5387 @findex gnus-summary-sort-by-date
5388 Sort by date (@code{gnus-summary-sort-by-date}).
5389
5390 @item C-c C-s C-i
5391 @kindex C-c C-s C-i (Summary)
5392 @findex gnus-summary-sort-by-score
5393 Sort by score (@code{gnus-summary-sort-by-score}).
5394 @end table
5395
5396 These functions will work both when you use threading and when you don't
5397 use threading.  In the latter case, all summary lines will be sorted,
5398 line by line.  In the former case, sorting will be done on a
5399 root-by-root basis, which might not be what you were looking for.  To
5400 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
5401 Commands}).
5402
5403
5404 @node Finding the Parent
5405 @section Finding the Parent
5406 @cindex parent articles
5407 @cindex referring articles
5408
5409 @findex gnus-summary-refer-parent-article
5410 @kindex ^ (Summary)
5411 If you'd like to read the parent of the current article, and it is not
5412 displayed in the article buffer, you might still be able to.  That is,
5413 if the current group is fetched by @sc{nntp}, the parent hasn't expired
5414 and the @code{References} in the current article are not mangled, you
5415 can just press @kbd{^} or @kbd{A r}
5416 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
5417 you'll get the parent.  If the parent is already displayed in the
5418 summary buffer, point will just move to this article.
5419
5420 @findex gnus-summary-refer-references
5421 @kindex A R (Summary)
5422 You can have Gnus fetch all articles mentioned in the @code{References}
5423 header of the article by pushing @kbd{A R}
5424 (@code{gnus-summary-refer-references}). 
5425
5426 @findex gnus-summary-refer-article
5427 @kindex M-^ (Summary)
5428 You can also ask the @sc{nntp} server for an arbitrary article, no
5429 matter what group it belongs to.  @kbd{M-^}
5430 (@code{gnus-summary-refer-article}) will ask you for a
5431 @code{Message-ID}, which is one of those long thingies that look
5432 something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.  You have to get
5433 it all exactly right.  No fuzzy searches, I'm afraid.
5434
5435 @vindex gnus-refer-article-method
5436 If the group you are reading is located on a backend that does not
5437 support fetching by @code{Message-ID} very well (like @code{nnspool}),
5438 you can set @code{gnus-refer-article-method} to an @sc{nntp} method.  It
5439 would, perhaps, be best if the @sc{nntp} server you consult is the same
5440 as the one that keeps the spool you are reading from updated, but that's
5441 not really necessary.
5442
5443 Most of the mail backends support fetching by @code{Message-ID}, but do
5444 not do a particularly excellent job of it.  That is, @code{nnmbox} and
5445 @code{nnbabyl} are able to locate articles from any groups, while
5446 @code{nnml} and @code{nnfolder} are only able to locate articles that
5447 have been posted to the current group.  (Anything else would be too time
5448 consuming.)  @code{nnmh} does not support this at all.
5449
5450
5451 @node Alternative Approaches
5452 @section Alternative Approaches
5453
5454 Different people like to read news using different methods.  This being
5455 Gnus, we offer a small selection of minor modes for the summary buffers.
5456
5457 @menu
5458 * Pick and Read::               First mark articles and then read them.
5459 * Binary Groups::               Auto-decode all articles.
5460 @end menu
5461
5462
5463 @node Pick and Read
5464 @subsection Pick and Read
5465 @cindex pick and read
5466
5467 Some newsreaders (like @code{nn} and, uhm, @code{nn}) use a two-phased
5468 reading interface.  The user first marks the articles she wants to read
5469 from a summary buffer.  Then she starts reading the articles with just
5470 an article buffer displayed.
5471
5472 @findex gnus-pick-mode
5473 @kindex M-x gnus-pick-mode
5474 Gnus provides a summary buffer minor mode that allows
5475 this---@code{gnus-pick-mode}.  This basically means that a few process
5476 mark commands become one-keystroke commands to allow easy marking, and
5477 it makes one additional command for switching to the summary buffer
5478 available. 
5479
5480 Here are the available keystrokes when using pick mode:
5481
5482 @table @kbd
5483 @item SPACE
5484 @kindex SPACE (Pick)
5485 @findex gnus-summary-mark-as-processable
5486 Pick the article (@code{gnus-summary-mark-as-processable}). 
5487
5488 @item u
5489 @kindex u (Pick)
5490 @findex gnus-summary-unmark-as-processable
5491 Unpick the article (@code{gnus-summary-unmark-as-processable}). 
5492
5493 @item U
5494 @kindex U (Pick)
5495 @findex gnus-summary-unmark-all-processable
5496 Unpick all articles (@code{gnus-summary-unmark-all-processable}). 
5497
5498 @item t
5499 @kindex t (Pick)
5500 @findex gnus-uu-mark-thread
5501 Pick the thread (@code{gnus-uu-mark-thread}). 
5502
5503 @item T
5504 @kindex T (Pick)
5505 @findex gnus-uu-unmark-thread
5506 Unpick the thread (@code{gnus-uu-unmark-thread}). 
5507
5508 @item r
5509 @kindex r (Pick)
5510 @findex gnus-uu-mark-region
5511 Pick the region (@code{gnus-uu-mark-region}). 
5512
5513 @item R
5514 @kindex R (Pick)
5515 @findex gnus-uu-unmark-region
5516 Unpick the region (@code{gnus-uu-unmark-region}). 
5517
5518 @item e
5519 @kindex e (Pick)
5520 @findex gnus-uu-unmark-regexp
5521 Pick articles that match a regexp (@code{gnus-uu-unmark-regexp}). 
5522
5523 @item E
5524 @kindex E (Pick)
5525 @findex gnus-uu-unmark-regexp
5526 Unpick articles that match a regexp (@code{gnus-uu-unmark-regexp}). 
5527
5528 @item b
5529 @kindex b (Pick)
5530 @findex gnus-uu-mark-buffer
5531 Pick the buffer (@code{gnus-uu-mark-buffer}). 
5532
5533 @item B
5534 @kindex B (Pick)
5535 @findex gnus-uu-unmark-buffer
5536 Unpick the buffer (@code{gnus-uu-unmark-buffer}). 
5537
5538 @item RET
5539 @kindex RET (Pick)
5540 @findex gnus-pick-start-reading
5541 @vindex gnus-pick-display-summary
5542 Start reading the picked articles (@code{gnus-pick-start-reading}).  If
5543 given a prefix, mark all unpicked articles as read first.  If
5544 @code{gnus-pick-display-summary} is non-@code{nil}, the summary buffer
5545 will still be visible when you are reading.
5546
5547 @end table
5548
5549 If this sounds like a good idea to you, you could say:
5550
5551 @lisp
5552 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
5553 @end lisp
5554
5555 @vindex gnus-pick-mode-hook
5556 @code{gnus-pick-mode-hook} is run in pick minor mode buffers.
5557
5558
5559 @node Binary Groups
5560 @subsection Binary Groups
5561 @cindex binary groups
5562
5563 @findex gnus-binary-mode
5564 @kindex M-x gnus-binary-mode
5565 If you spend much time in binary groups, you may grow tired of hitting
5566 @kbd{X u}, @kbd{n}, @kbd{RET} all the time.  @kbd{M-x gnus-binary-mode}
5567 is a minor mode for summary buffers that makes all ordinary Gnus article
5568 selection functions uudecode series of articles and display the result
5569 instead of just displaying the articles the normal way.  
5570
5571 @kindex g (Binary)
5572 @findex gnus-binary-show-article
5573 In fact, the only way to see the actual articles if you have turned this
5574 mode on is the @kbd{g} command (@code{gnus-binary-show-article}). 
5575
5576 @vindex gnus-binary-mode-hook
5577 @code{gnus-binary-mode-hook} is called in binary minor mode buffers.
5578
5579
5580 @node Tree Display
5581 @section Tree Display
5582 @cindex trees
5583
5584 @vindex gnus-use-trees
5585 If you don't like the normal Gnus summary display, you might try setting
5586 @code{gnus-use-trees} to @code{t}.  This will create (by default) an
5587 additional @dfn{tree buffer}.  You can execute all summary mode commands
5588 in the tree buffer.  
5589
5590 There are a few variables to customize the tree display, of course:
5591
5592 @table @code
5593 @item gnus-tree-mode-hook
5594 @vindex gnus-tree-mode-hook
5595 A hook called in all tree mode buffers.
5596
5597 @item gnus-tree-mode-line-format
5598 @vindex gnus-tree-mode-line-format
5599 A format string for the mode bar in the tree mode buffers.  The default
5600 is @samp{Gnus: %%b [%A] %Z}.  For a list of legal specs, @pxref{Summary
5601 Buffer Mode Line}. 
5602
5603 @item gnus-selected-tree-face
5604 @vindex gnus-selected-tree-face
5605 Face used for highlighting the selected article in the tree buffer.  The
5606 default is @code{modeline}.
5607
5608 @item gnus-tree-line-format
5609 @vindex gnus-tree-line-format
5610 A format string for the tree nodes.  The name is a bit of a misnomer,
5611 though---it doesn't define a line, but just the node.  The default value
5612 is @samp{%(%[%3,3n%]%)}, which displays the first three characters of
5613 the name of the poster.  It is vital that all nodes are of the same
5614 length, so you @emph{must} use @samp{%4,4n}-like specifiers.
5615
5616 Legal specs are:
5617
5618 @table @samp
5619 @item n
5620 The name of the poster.
5621 @item f
5622 The @code{From} header.
5623 @item N
5624 The number of the article.
5625 @item [
5626 The opening bracket.
5627 @item ] 
5628 The closing bracket.
5629 @item s
5630 The subject.
5631 @end table
5632
5633 @xref{Formatting Variables}.
5634
5635 Variables related to the display are:
5636
5637 @table @code
5638 @item gnus-tree-brackets
5639 @vindex gnus-tree-brackets
5640 This is used for differentiating between ``real'' articles and
5641 ``sparse'' articles.  The format is @var{((real-open . real-close)
5642 (sparse-open . sparse-close) (dummy-open . dummy-close))}, and the
5643 default is @code{((?[ . ?]) (?( . ?)) (?@{ . ?@}))}.
5644
5645 @item gnus-tree-parent-child-edges
5646 @vindex gnus-tree-parent-child-edges
5647 This is a list that contains the characters used for connecting parent
5648 nodes to their children.  The default is @code{(?- ?\\ ?|)}. 
5649
5650 @end table
5651
5652 @item gnus-tree-minimize-window
5653 @vindex gnus-tree-minimize-window
5654 If this variable is non-@code{nil}, Gnus will try to keep the tree
5655 buffer as small as possible to allow more room for the other Gnus
5656 windows.  If this variable is a number, the tree buffer will never be
5657 higher than that number.  The default is @code{t}.
5658
5659 @item gnus-generate-tree-function
5660 @vindex gnus-generate-tree-function
5661 @findex gnus-generate-horizontal-tree
5662 @findex gnus-generate-vertical-tree
5663 The function that actually generates the thread tree.  Two predefined
5664 functions are available: @code{gnus-generate-horizontal-tree} and
5665 @code{gnus-generate-vertical-tree} (which is the default).
5666
5667 @end table
5668
5669 Here's and example from a horizontal tree buffer:
5670
5671 @example
5672 @{***@}-(***)-[odd]-[Gun]
5673      |     \[Jan]
5674      |     \[odd]-[Eri]
5675      |     \(***)-[Eri]
5676      |           \[odd]-[Paa]
5677      \[Bjo]
5678      \[Gun]
5679      \[Gun]-[Jor]
5680 @end example
5681
5682 Here's the same thread displayed in a vertical tree buffer:
5683
5684 @example
5685 @{***@}
5686   |--------------------------\-----\-----\
5687 (***)                         [Bjo] [Gun] [Gun]
5688   |--\-----\-----\                          |
5689 [odd] [Jan] [odd] (***)                   [Jor]
5690   |           |     |--\
5691 [Gun]       [Eri] [Eri] [odd]
5692                           |
5693                         [Paa]
5694 @end example
5695
5696
5697 @node Mail Group Commands
5698 @section Mail Group Commands
5699 @cindex mail group commands
5700
5701 Some commands only make sense in mail groups.  If these commands are
5702 illegal in the current group, they will raise a hell and let you know.
5703
5704 All these commands (except the expiry and edit commands) use the
5705 process/prefix convention (@pxref{Process/Prefix}).
5706
5707 @table @kbd
5708
5709 @item B e
5710 @kindex B e (Summary)
5711 @findex gnus-summary-expire-articles
5712 Expire all expirable articles in the group
5713 (@code{gnus-summary-expire-articles}).
5714
5715 @item B M-C-e
5716 @kindex B M-C-e (Summary)
5717 @findex gnus-summary-expire-articles-now
5718 Expunge all the expirable articles in the group
5719 (@code{gnus-summary-expire-articles-now}).  This means that @strong{all}
5720 articles that are eligible for expiry in the current group will
5721 disappear forever into that big @file{/dev/null} in the sky.
5722
5723 @item B DEL
5724 @kindex B DEL (Summary)
5725 @findex gnus-summary-delete-articles
5726 Delete the mail article.  This is ``delete'' as in ``delete it from your
5727 disk forever and ever, never to return again.'' Use with caution.
5728 (@code{gnus-summary-delete-article}).
5729
5730 @item B m
5731 @kindex B m (Summary)
5732 @cindex move mail
5733 @findex gnus-summary-move-article
5734 Move the article from one mail group to another
5735 (@code{gnus-summary-move-article}). 
5736
5737 @item B c
5738 @kindex B c (Summary)
5739 @cindex copy mail
5740 @findex gnus-summary-copy-article
5741 Copy the article from one group (mail group or not) to a mail group
5742 (@code{gnus-summary-copy-article}).
5743
5744 @item B C
5745 @kindex B C (Summary)
5746 @cindex crosspost mail
5747 @findex gnus-summary-crosspost-article
5748 Crosspost the current article to some other group
5749 (@code{gnus-summary-crosspost-article}).  This will create a new copy of
5750 the article in the other group, and the Xref headers of the article will
5751 be properly updated.
5752
5753 @item B i
5754 @kindex B i (Summary)
5755 @findex gnus-summary-import-article
5756 Import a random file into the current mail newsgroup
5757 (@code{gnus-summary-import-article}).  You will be prompted for a file
5758 name, a @code{From} header and a @code{Subject} header.
5759
5760 Something similar can be done by just starting to compose a mail
5761 message.  Instead of typing @kbd{C-c C-c} to mail it off, you can type
5762 @kbd{C-c M-C-p} instead.  This will put the message you have just created
5763 into the current mail group.
5764
5765 @item B r
5766 @kindex B r (Summary)
5767 @findex gnus-summary-respool-article
5768 Respool the mail article (@code{gnus-summary-move-article}).
5769
5770 @item B w
5771 @itemx e
5772 @kindex B w (Summary)
5773 @kindex e (Summary)
5774 @findex gnus-summary-edit-article
5775 @kindex C-c C-c (Article)
5776 Edit the current article (@code{gnus-summary-edit-article}).  To finish
5777 editing and make the changes permanent, type @kbd{C-c C-c}
5778 (@kbd{gnus-summary-edit-article-done}).
5779
5780 @item B q
5781 @kindex B q (Summary)
5782 @findex gnus-summary-respool-query
5783 If you want to re-spool an article, you might be curious as to what group
5784 the article will end up in before you do the re-spooling.  This command
5785 will tell you (@code{gnus-summary-respool-query}). 
5786 @end table
5787
5788 @vindex gnus-move-split-methods
5789 @cindex moving articles
5790 If you move (or copy) articles regularly, you might wish to have Gnus
5791 suggest where to put the articles.  @code{gnus-move-split-methods} is a
5792 variable that uses the same syntax as @code{gnus-split-methods}
5793 (@pxref{Saving Articles}).  You may customize that variable to create
5794 suggestions you find reasonable.
5795
5796
5797 @node Various Summary Stuff
5798 @section Various Summary Stuff
5799
5800 @menu
5801 * Summary Group Information::         Information oriented commands.
5802 * Searching for Articles::            Multiple article commands.
5803 * Really Various Summary Commands::   Those pesky non-conformant commands.
5804 @end menu
5805
5806 @table @code
5807 @vindex gnus-summary-mode-hook
5808 @item gnus-summary-mode-hook
5809 This hook is called when creating a summary mode buffer.
5810
5811 @vindex gnus-summary-generate-hook
5812 @item gnus-summary-generate-hook
5813 This is called as the last thing before doing the threading and the
5814 generation of the summary buffer.  It's quite convenient for customizing
5815 the threading variables based on what data the newsgroup has.  This hook
5816 is called from the summary buffer after most summary buffer variables
5817 has been set.
5818
5819 @vindex gnus-summary-prepare-hook
5820 @item gnus-summary-prepare-hook
5821 Is is called after the summary buffer has been generated.  You might use
5822 it to, for instance, highlight lines or modify the look of the buffer in
5823 some other ungodly manner.  I don't care.
5824
5825 @end table
5826
5827
5828 @node Summary Group Information
5829 @subsection Summary Group Information
5830
5831 @table @kbd
5832
5833 @item H f
5834 @kindex H f (Summary)
5835 @findex gnus-summary-fetch-faq
5836 @vindex gnus-group-faq-directory
5837 Try to fetch the FAQ (list of frequently asked questions) for the
5838 current group (@code{gnus-summary-fetch-faq}).  Gnus will try to get the
5839 FAQ from @code{gnus-group-faq-directory}, which is usually a directory
5840 on a remote machine.  This variable can also be a list of directories.
5841 In that case, giving a prefix to this command will allow you to choose
5842 between the various sites.  @code{ange-ftp} probably will be used for
5843 fetching the file.
5844
5845 @item H d
5846 @kindex H d (Summary)
5847 @findex gnus-summary-describe-group
5848 Give a brief description of the current group
5849 (@code{gnus-summary-describe-group}).  If given a prefix, force
5850 rereading the description from the server.
5851
5852 @item H h
5853 @kindex H h (Summary)
5854 @findex gnus-summary-describe-briefly
5855 Give a very brief description of the most important summary keystrokes
5856 (@code{gnus-summary-describe-briefly}). 
5857
5858 @item H i
5859 @kindex H i (Summary)
5860 @findex gnus-info-find-node
5861 Go to the Gnus info node (@code{gnus-info-find-node}).
5862 @end table
5863
5864
5865 @node Searching for Articles
5866 @subsection Searching for Articles
5867
5868 @table @kbd
5869
5870 @item M-s
5871 @kindex M-s (Summary)
5872 @findex gnus-summary-search-article-forward
5873 Search through all subsequent articles for a regexp
5874 (@code{gnus-summary-search-article-forward}). 
5875
5876 @item M-r
5877 @kindex M-r (Summary)
5878 @findex gnus-summary-search-article-backward
5879 Search through all previous articles for a regexp
5880 (@code{gnus-summary-search-article-backward}). 
5881
5882 @item &
5883 @kindex & (Summary)
5884 @findex gnus-summary-execute-command
5885 This command will prompt you for a header field, a regular expression to
5886 match on this field, and a command to be executed if the match is made
5887 (@code{gnus-summary-execute-command}).
5888
5889 @item M-&
5890 @kindex M-& (Summary)
5891 @findex gnus-summary-universal-argument
5892 Perform any operation on all articles that have been marked with
5893 the process mark (@code{gnus-summary-universal-argument}).
5894 @end table
5895
5896
5897 @node Really Various Summary Commands
5898 @subsection Really Various Summary Commands
5899
5900 @table @kbd
5901
5902 @item A D
5903 @kindex A D (Summary)
5904 @findex gnus-summary-enter-digest-group
5905 If the current article is a collection of other articles (for instance,
5906 a digest), you might use this command to enter a group based on the that
5907 article (@code{gnus-summary-enter-digest-group}).  Gnus will try to
5908 guess what article type is currently displayed unless you give a prefix
5909 to this command, which forces a ``digest'' interpretation.  Basically,
5910 whenever you see a message that is a collection of other messages on
5911 some format, you @kbd{A D} and read these messages in a more convenient
5912 fashion.
5913
5914 @item C-t
5915 @kindex C-t (Summary)
5916 @findex gnus-summary-toggle-truncation
5917 Toggle truncation of summary lines (@code{gnus-summary-toggle-truncation}).
5918
5919 @item =
5920 @kindex = (Summary)
5921 @findex gnus-summary-expand-window
5922 Expand the summary buffer window (@code{gnus-summary-expand-window}).
5923 If given a prefix, force an @code{article} window configuration. 
5924 @end table
5925
5926
5927 @node Exiting the Summary Buffer
5928 @section Exiting the Summary Buffer
5929 @cindex summary exit
5930 @cindex exiting groups
5931
5932 Exiting from the summary buffer will normally update all info on the
5933 group and return you to the group buffer. 
5934
5935 @table @kbd
5936
5937 @item Z Z
5938 @itemx q
5939 @kindex Z Z (Summary)
5940 @kindex q (Summary)
5941 @findex gnus-summary-exit
5942 @vindex gnus-summary-exit-hook
5943 @vindex gnus-summary-prepare-exit-hook
5944 Exit the current group and update all information on the group
5945 (@code{gnus-summary-exit}). @code{gnus-summary-prepare-exit-hook} is
5946 called before doing much of the exiting, and calls
5947 @code{gnus-summary-expire-articles} by default.
5948 @code{gnus-summary-exit-hook} is called after finishing the exiting
5949 process. 
5950
5951 @item Z E
5952 @itemx Q
5953 @kindex Z E (Summary)
5954 @kindex Q (Summary)
5955 @findex gnus-summary-exit-no-update
5956 Exit the current group without updating any information on the group
5957 (@code{gnus-summary-exit-no-update}).
5958
5959 @item Z c
5960 @itemx c
5961 @kindex Z c (Summary)
5962 @kindex c (Summary)
5963 @findex gnus-summary-catchup-and-exit
5964 Mark all unticked articles in the group as read and then exit
5965 (@code{gnus-summary-catchup-and-exit}).
5966
5967 @item Z C
5968 @kindex Z C (Summary)
5969 @findex gnus-summary-catchup-all-and-exit
5970 Mark all articles, even the ticked ones, as read and then exit
5971 (@code{gnus-summary-catchup-all-and-exit}).
5972
5973 @item Z n
5974 @kindex Z n (Summary)
5975 @findex gnus-summary-catchup-and-goto-next-group
5976 Mark all articles as read and go to the next group
5977 (@code{gnus-summary-catchup-and-goto-next-group}). 
5978
5979 @item Z R
5980 @kindex Z R (Summary)
5981 @findex gnus-summary-reselect-current-group
5982 Exit this group, and then enter it again
5983 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
5984 all articles, both read and unread.
5985
5986 @item Z G
5987 @itemx M-g
5988 @kindex Z G (Summary)
5989 @kindex M-g (Summary)
5990 @findex gnus-summary-rescan-group
5991 Exit the group, check for new articles in the group, and select the
5992 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
5993 articles, both read and unread.
5994
5995 @item Z N
5996 @kindex Z N (Summary)
5997 @findex gnus-summary-next-group
5998 Exit the group and go to the next group
5999 (@code{gnus-summary-next-group}). 
6000
6001 @item Z P
6002 @kindex Z P (Summary)
6003 @findex gnus-summary-prev-group
6004 Exit the group and go to the previous group
6005 (@code{gnus-summary-prev-group}). 
6006 @end table
6007
6008 @vindex gnus-exit-group-hook
6009 @code{gnus-exit-group-hook} is called when you exit the current
6010 group.  
6011
6012 @findex gnus-summary-wake-up-the-dead
6013 @findex gnus-dead-summary-mode
6014 @vindex gnus-kill-summary-on-exit
6015 If you're in the habit of exiting groups, and then changing your mind
6016 about it, you might set @code{gnus-kill-summary-on-exit} to @code{nil}.
6017 If you do that, Gnus won't kill the summary buffer when you exit it.
6018 (Quelle surprise!)  Instead it will change the name of the buffer to
6019 something like @samp{*Dead Summary ... *} and install a minor mode
6020 called @code{gnus-dead-summary-mode}.  Now, if you switch back to this
6021 buffer, you'll find that all keys are mapped to a function called
6022 @code{gnus-summary-wake-up-the-dead}.  So tapping any keys in a dead
6023 summary buffer will result in a live, normal summary buffer.  
6024
6025 There will never be more than one dead summary buffer at any one time. 
6026
6027 @vindex gnus-use-cross-reference
6028 The data on the current group will be updated (which articles you have
6029 read, which articles you have replied to, etc.) when you exit the
6030 summary buffer.  If the @code{gnus-use-cross-reference} variable is
6031 @code{t} (which is the default), articles that are cross-referenced to
6032 this group and are marked as read, will also be marked as read in the
6033 other subscribed groups they were cross-posted to.  If this variable is
6034 neither @code{nil} nor @code{t}, the article will be marked as read in
6035 both subscribed and unsubscribed groups.
6036
6037 @cindex velveeta
6038 @cindex spamming
6039 Marking cross-posted articles as read ensures that you'll never have to
6040 read the same article more than once.  Unless, of course, somebody has
6041 posted it to several groups separately.  Posting the same article to
6042 several groups (not cross-posting) is called @dfn{spamming}, and you are
6043 by law required to send nasty-grams to anyone who perpetrates such a
6044 heinous crime.
6045
6046 Remember: Cross-posting is kinda ok, but posting the same article
6047 separately to several groups is not.
6048
6049 @cindex cross-posting
6050 @cindex Xref
6051 @cindex @sc{nov}
6052 One thing that may cause Gnus to not do the cross-posting thing
6053 correctly is if you use an @sc{nntp} server that supports @sc{xover}
6054 (which is very nice, because it speeds things up considerably) which
6055 does not include the @code{Xref} header in its @sc{nov} lines.  This is
6056 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
6057 even with @sc{xover} by registering the @code{Xref} lines of all
6058 articles you actually read, but if you kill the articles, or just mark
6059 them as read without reading them, Gnus will not get a chance to snoop
6060 the @code{Xref} lines out of these articles, and will be unable to use
6061 the cross reference mechanism.
6062
6063 @cindex LIST overview.fmt
6064 @cindex overview.fmt
6065 To check whether your @sc{nntp} server includes the @code{Xref} header
6066 in its overview files, try @samp{telnet your.nntp.server nntp} and then
6067 say @samp{LIST overview.fmt}.  This may not work, but if it does, and
6068 the last line you get does not read @samp{Xref:full}, then you should
6069 shout and whine at your news admin until she includes the @code{Xref}
6070 header in the overview files.
6071
6072 @vindex gnus-nov-is-evil
6073 If you want Gnus to get the @code{Xref}s right all the time, you have to
6074 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
6075 considerably.
6076
6077 C'est la vie.
6078
6079
6080 @node The Article Buffer
6081 @chapter The Article Buffer
6082 @cindex article buffer
6083
6084 The articles are displayed in the article buffer, of which there is only
6085 one.  All the summary buffers share the same article buffer unless you
6086 tell Gnus otherwise.
6087
6088 @menu
6089 * Hiding Headers::        Deciding what headers should be displayed.
6090 * Using MIME::            Pushing articles through @sc{mime} before reading them.
6091 * Customizing Articles::  Tailoring the look of the articles.
6092 * Article Keymap::        Keystrokes available in the article buffer
6093 * Misc Article::          Other stuff.
6094 @end menu
6095
6096
6097 @node Hiding Headers
6098 @section Hiding Headers
6099 @cindex hiding headers
6100 @cindex deleting headers
6101
6102 The top section of each article is the @dfn{head}.  (The rest is the
6103 @dfn{body}, but you may have guessed that already.)
6104
6105 @vindex gnus-show-all-headers
6106 There is a lot of useful information in the head: the name of the person
6107 who wrote the article, the date it was written and the subject of the
6108 article.  That's well and nice, but there's also lots of information
6109 most people do not want to see---what systems the article has passed
6110 through before reaching you, the @code{Message-ID}, the
6111 @code{References}, etc. ad nauseum---and you'll probably want to get rid
6112 of some of those lines.  If you want to keep all those lines in the
6113 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
6114
6115 Gnus provides you with two variables for sifting headers:
6116
6117 @table @code
6118
6119 @item gnus-visible-headers
6120 @vindex gnus-visible-headers
6121 If this variable is non-@code{nil}, it should be a regular expression
6122 that says what headers you wish to keep in the article buffer.  All
6123 headers that do not match this variable will be hidden.
6124
6125 For instance, if you only want to see the name of the person who wrote
6126 the article and the subject, you'd say:
6127
6128 @lisp
6129 (setq gnus-visible-headers "^From:\\|^Subject:")
6130 @end lisp
6131
6132 This variable can also be a list of regexps to match headers that are to
6133 remain visible.
6134
6135 @item gnus-ignored-headers
6136 @vindex gnus-ignored-headers
6137 This variable is the reverse of @code{gnus-visible-headers}.  If this
6138 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
6139 should be a regular expression that matches all lines that you want to
6140 hide.  All lines that do not match this variable will remain visible.
6141
6142 For instance, if you just want to get rid of the @code{References} line
6143 and the @code{Xref} line, you might say:
6144
6145 @lisp
6146 (setq gnus-ignored-headers "^References:\\|^Xref:")
6147 @end lisp
6148
6149 This variable can also be a list of regexps to match headers that are to
6150 be removed.
6151
6152 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
6153 variable will have no effect.
6154
6155 @end table
6156
6157 @vindex gnus-sorted-header-list
6158 Gnus can also sort the headers for you.  (It does this by default.)  You
6159 can control the sorting by setting the @code{gnus-sorted-header-list}
6160 variable.  It is a list of regular expressions that says in what order
6161 the headers are to be displayed.
6162
6163 For instance, if you want the name of the author of the article first,
6164 and then the subject, you might say something like:
6165
6166 @lisp
6167 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
6168 @end lisp
6169
6170 Any headers that are to remain visible, but are not listed in this
6171 variable, will be displayed in random order after all the headers that
6172 are listed in this variable.
6173
6174 @findex gnus-article-hide-boring-headers
6175 @vindex gnus-article-display-hook
6176 @vindex gnus-boring-article-headers
6177 You can hide further boring headers by entering
6178 @code{gnus-article-hide-boring-headers} into
6179 @code{gnus-article-display-hook}.  What this function does depends on
6180 the @code{gnus-boring-article-headers} variable.  It's a list, but this
6181 list doesn't actually contain header names.  Instead is lists various
6182 @dfn{boring conditions} that Gnus can check and remove from sight.
6183
6184 These conditions are:
6185 @table @code
6186 @item empty
6187 Remove all empty headers.
6188 @item newsgroups
6189 Remove the @code{Newsgroups} header if it only contains the current group
6190 name. 
6191 @item followup-to
6192 Remove the @code{Followup-To} header if it is identical to the
6193 @code{Newsgroups} header.
6194 @item reply-to
6195 Remove the @code{Reply-To} header if it lists the same address as the
6196 @code{From} header.
6197 @item date
6198 Remove the @code{Date} header if the article is less than three days
6199 old. 
6200 @end table
6201
6202 To include the four first elements, you could say something like;
6203
6204 @lisp
6205 (setq gnus-boring-article-headers 
6206       '(empty newsgroups followup-to reply-to))
6207 @end lisp
6208
6209 This is also the default value for this variable.
6210
6211
6212 @node Using MIME
6213 @section Using @sc{mime}
6214 @cindex @sc{mime}
6215
6216 Mime is a standard for waving your hands through the air, aimlessly,
6217 while people stand around yawning.
6218
6219 @sc{mime}, however, is a standard for encoding your articles, aimlessly,
6220 while all newsreaders die of fear.
6221
6222 @sc{mime} may specify what character set the article uses, the encoding
6223 of the characters, and it also makes it possible to embed pictures and
6224 other naughty stuff in innocent-looking articles.
6225
6226 @vindex gnus-show-mime
6227 @vindex gnus-show-mime-method
6228 @vindex gnus-strict-mime
6229 @findex metamail-buffer
6230 Gnus handles @sc{mime} by shoving the articles through
6231 @code{gnus-show-mime-method}, which is @code{metamail-buffer} by
6232 default.  Set @code{gnus-show-mime} to @code{t} if you want to use
6233 @sc{mime} all the time.  However, if @code{gnus-strict-mime} is
6234 non-@code{nil}, the @sc{mime} method will only be used if there are
6235 @sc{mime} headers in the article.
6236
6237 It might be best to just use the toggling functions from the summary
6238 buffer to avoid getting nasty surprises. (For instance, you enter the
6239 group @samp{alt.sing-a-long} and, before you know it, @sc{mime} has
6240 decoded the sound file in the article and some horrible sing-a-long song
6241 comes streaming out out your speakers, and you can't find the volume
6242 button, because there isn't one, and people are starting to look at you,
6243 and you try to stop the program, but you can't, and you can't find the
6244 program to control the volume, and everybody else in the room suddenly
6245 decides to look at you disdainfully, and you'll feel rather stupid.)
6246
6247 Any similarity to real events and people is purely coincidental.  Ahem.
6248
6249
6250 @node Customizing Articles
6251 @section Customizing Articles
6252 @cindex article customization
6253
6254 @vindex gnus-article-display-hook
6255 The @code{gnus-article-display-hook} is called after the article has
6256 been inserted into the article buffer.  It is meant to handle all
6257 treatment of the article before it is displayed. 
6258
6259 @findex gnus-article-maybe-highlight
6260 By default it contains @code{gnus-article-hide-headers},
6261 @code{gnus-article-treat-overstrike}, and
6262 @code{gnus-article-maybe-highlight}, but there are thousands, nay
6263 millions, of functions you can put in this hook.  For an overview of
6264 functions @pxref{Article Highlighting}, @pxref{Article Hiding},
6265 @pxref{Article Washing}, @pxref{Article Buttons} and @pxref{Article
6266 Date}.
6267
6268 You can, of course, write your own functions.  The functions are called
6269 from the article buffer, and you can do anything you like, pretty much.
6270 There is no information that you have to keep in the buffer---you can
6271 change everything.  However, you shouldn't delete any headers.  Instead
6272 make them invisible if you want to make them go away.
6273
6274
6275 @node Article Keymap
6276 @section Article Keymap
6277
6278 Most of the keystrokes in the summary buffer can also be used in the
6279 article buffer.  They should behave as if you typed them in the summary
6280 buffer, which means that you don't actually have to have a summary
6281 buffer displayed while reading.  You can do it all from the article
6282 buffer.
6283
6284 A few additional keystrokes are available:
6285
6286 @table @kbd
6287
6288 @item SPACE
6289 @kindex SPACE (Article)
6290 @findex gnus-article-next-page
6291 Scroll forwards one page (@code{gnus-article-next-page}).
6292
6293 @item DEL
6294 @kindex DEL (Article)
6295 @findex gnus-article-prev-page
6296 Scroll backwards one page (@code{gnus-article-prev-page}).
6297
6298 @item C-c ^
6299 @kindex C-c ^ (Article)
6300 @findex gnus-article-refer-article
6301 If point is in the neighborhood of a @code{Message-ID} and you press
6302 @kbd{r}, Gnus will try to get that article from the server
6303 (@code{gnus-article-refer-article}).
6304
6305 @item C-c C-m
6306 @kindex C-c C-m (Article)
6307 @findex gnus-article-mail
6308 Send a reply to the address near point (@code{gnus-article-mail}).  If
6309 given a prefix, include the mail.
6310
6311 @item s
6312 @kindex s (Article)
6313 @findex gnus-article-show-summary
6314 Reconfigure the buffers so that the summary buffer becomes visible
6315 (@code{gnus-article-show-summary}).
6316
6317 @item ?
6318 @kindex ? (Article)
6319 @findex gnus-article-describe-briefly
6320 Give a very brief description of the available keystrokes
6321 (@code{gnus-article-describe-briefly}). 
6322
6323 @item TAB
6324 @kindex TAB (Article)
6325 @findex gnus-article-next-button
6326 Go to the next button, if any (@code{gnus-article-next-button}.  This
6327 only makes sense if you have buttonizing turned on.
6328
6329 @item M-TAB
6330 @kindex M-TAB (Article)
6331 @findex gnus-article-prev-button
6332 Go to the previous button, if any (@code{gnus-article-prev-button}.  
6333
6334 @end table
6335
6336
6337 @node Misc Article
6338 @section Misc Article
6339
6340 @table @code
6341
6342 @item gnus-single-article-buffer
6343 @vindex gnus-single-article-buffer
6344 If non-@code{nil}, use the same article buffer for all the groups.
6345 (This is the default.)  If @code{nil}, each group will have its own
6346 article buffer.
6347
6348 @vindex gnus-article-prepare-hook
6349 @item gnus-article-prepare-hook
6350 This hook is called right after the article has been inserted into the
6351 article buffer.  It is mainly intended for functions that do something
6352 depending on the contents; it should probably not be used for changing
6353 the contents of the article buffer.
6354
6355 @vindex gnus-article-display-hook
6356 @item gnus-article-display-hook
6357 This hook is called as the last thing when displaying an article, and is
6358 intended for modifying the contents of the buffer, doing highlights,
6359 hiding headers, and the like.
6360
6361 @item gnus-article-mode-hook
6362 @vindex gnus-article-mode-hook
6363 Hook called in article mode buffers.
6364
6365 @vindex gnus-article-mode-line-format
6366 @item gnus-article-mode-line-format
6367 This variable is a format string along the same lines as
6368 @code{gnus-summary-mode-line-format}.  It accepts exactly the same
6369 format specifications as that variable.
6370 @vindex gnus-break-pages
6371
6372 @item gnus-break-pages
6373 Controls whether @dfn{page breaking} is to take place.  If this variable
6374 is non-@code{nil}, the articles will be divided into pages whenever a
6375 page delimiter appears in the article.  If this variable is @code{nil},
6376 paging will not be done.
6377
6378 @item gnus-page-delimiter
6379 @vindex gnus-page-delimiter
6380 This is the delimiter mentioned above.  By default, it is @samp{^L}
6381 (form linefeed).
6382 @end table
6383
6384
6385 @node Composing Messages
6386 @chapter Composing Messages
6387 @cindex reply
6388 @cindex followup
6389 @cindex post
6390
6391 @kindex C-c C-c (Post)
6392 All commands for posting and mailing will put you in a post or mail
6393 buffer where you can edit the article all you like, before you send the
6394 article by pressing @kbd{C-c C-c}.  If you are in a foreign news group,
6395 and you wish to post the article using the foreign server, you can give
6396 a prefix to @kbd{C-c C-c} to make Gnus try to post using the foreign
6397 server.
6398
6399 @menu 
6400 * Mail::                 Mailing and replying.
6401 * Post::                 Posting and following up.
6402 * Posting Server::       What server should you post via?
6403 * Mail and Post::        Mailing and posting at the same time.
6404 * Archived Messages::    Where Gnus stores the messages you've sent.
6405 * Posting Styles::       An easier way to configure some key elements.
6406 * Drafts::               Postponing messages and rejected messages.
6407 * Rejected Articles::    What happens if the server doesn't like your article?
6408 @end menu
6409
6410 Also see @pxref{Canceling and Superseding} for information on how to
6411 remove articles you shouldn't have posted.
6412
6413
6414 @node Mail
6415 @section Mail
6416
6417 Variables for customizing outgoing mail:
6418
6419 @table @code
6420 @item gnus-reply-to-function
6421 @vindex gnus-reply-to-function
6422 Gnus uses the normal methods to determine where replies are to go, but
6423 you can change the behavior to suit your needs by fiddling with this
6424 variable.
6425
6426 If you want the replies to go to the @code{Sender} instead of the
6427 @code{From} in the group @samp{mail.stupid-list}, you could do something
6428 like this:
6429
6430 @lisp
6431 (setq gnus-reply-to-function
6432       (lambda (group)
6433        (cond ((string= group "mail.stupid-list")
6434                (mail-fetch-field "sender"))
6435              (t
6436               nil))))
6437 @end lisp
6438
6439 This function will be called narrowed to the head of the article that is
6440 being replied to.
6441
6442 As you can see, this function should return a string if it has an
6443 opinion as to what the To header should be.  If it does not, it should
6444 just return @code{nil}, and the normal methods for determining the To
6445 header will be used.
6446
6447 This function can also return a list.  In that case, each list element
6448 should be a cons, where the car should be the name of an header
6449 (eg. @code{Cc}) and the cdr should be the header value
6450 (eg. @samp{larsi@@ifi.uio.no}).  All these headers will be inserted into
6451 the head of the outgoing mail. 
6452
6453 @item gnus-mail-send-method
6454 @vindex gnus-mail-send-method
6455 @vindex send-mail-function
6456 @findex sendmail-send-it
6457 This variable says how a mail should be mailed.  It uses the function in
6458 the @code{send-mail-function} variable as the default, which usually is
6459 @code{sendmail-send-it}.
6460
6461 @item gnus-uu-digest-headers
6462 @vindex gnus-uu-digest-headers
6463 List of regexps to match headers included in digested messages.  The
6464 headers will be included in the sequence they are matched.
6465
6466 @item gnus-mail-hook
6467 @vindex gnus-mail-hook
6468 Hook called as the last thing after setting up a mail buffer.
6469
6470 @item gnus-required-mail-headers
6471 @vindex gnus-required-mail-headers
6472 @cindex sendmail
6473 Gnus will generate headers in all outgoing mail instead of letting
6474 @code{sendmail} do it for us.  This makes it possible to do more neat
6475 stuff, like putting mail without sending it, do hairy @code{Fcc}
6476 handling, and much more.  This variable controls what headers Gnus will
6477 generate, and is of the exact same form as @code{gnus-required-headers},
6478 which does the same for news articles (@pxref{Post}). 
6479
6480 @cindex X-Mailer
6481 The @code{Newsgroups} header is illegal in this list, while @code{To} is
6482 required, and @code{X-Mailer} can be added if you so should want.
6483
6484 @vindex gnus-forward-start-separator
6485 @item gnus-forward-start-separator
6486 Delimiter inserted before forwarded messages.
6487
6488 @vindex gnus-forward-end-separator
6489 @item gnus-forward-end-separator
6490 Delimiter inserted after forwarded messages.
6491
6492 @vindex gnus-signature-before-forwarded-message
6493 @item gnus-signature-before-forwarded-message
6494 If this variable is @code{t}, which it is by default, your personal
6495 signature will be inserted before the forwarded message.  If not, the
6496 forwarded message will be inserted first in the new mail.
6497
6498 @item gnus-forward-included-headers
6499 @vindex gnus-forward-included-headers
6500 Regexp matching header lines to be included in forwarded messages.  It
6501 uses the same regexp as @code{gnus-visible-headers} by default.
6502
6503 @end table
6504
6505 @kindex C-c M-C-c (Mail)
6506 @kindex C-c M-C-p (Mail)
6507 @findex gnus-put-message
6508 You normally send a mail message by pressing @kbd{C-c C-c}.  However,
6509 you may wish to just put the mail message you have just written in your
6510 own local mail group instead of sending it.  Sounds quite unlikely, but
6511 I found that useful, so you can now also press @kbd{C-c M-C-p} to
6512 @dfn{put} the article in the current mail group, or, if there is no such
6513 thing, you will be prompted for a mail group, and then the article will
6514 be put there.  This means that the article is @dfn{not} mailed.  
6515
6516 @findex gnus-kill-message-buffer
6517 @cindex kill mail buffer
6518 @kindex C-x k (Mail)
6519 @kindex C-x k (Post)
6520 If enter a mail (or post) buffer and then decide not to compose a
6521 message after all, you'd normally just kill the buffer with @kbd{C-x k}.
6522 However, since the mail and post buffers are associated with articles in
6523 the draft group, this will leave lots of rubbish articles in the draft
6524 group.  To avoid that problem, kill mail and post buffer with @kbd{C-c
6525 C-k} (@code{gnus-kill-message-buffer}) instead.  This will make sure
6526 that everything is properly cleaned up before the buffer is killed.
6527
6528 @vindex gnus-mail-method
6529 There are three ``methods'' for handling all mail.  The default is
6530 @code{sendmail}.  Some people like what @code{mh} does better, and some
6531 people prefer @code{vm}.  Set @code{gnus-mail-method} to the one you
6532 think is way koolest.
6533
6534 Three variables for customizing what to use when:
6535
6536 @table @code
6537
6538 @vindex gnus-mail-reply-method
6539 @item gnus-mail-reply-method
6540 This function is used to compose replies.  The three functions available
6541 are:
6542
6543 @findex gnus-mail-reply-using-vm
6544 @findex gnus-mail-reply-using-mhe
6545 @findex gnus-mail-reply-using-mail
6546 @itemize @bullet
6547 @item 
6548 @code{gnus-mail-reply-using-mail} (sendmail)
6549 @item 
6550 @code{gnus-mail-reply-using-mhe} (mh)
6551 @item
6552 @code{gnus-mail-reply-using-vm} (vm)
6553 @end itemize
6554
6555 @vindex gnus-mail-forward-method
6556 @item gnus-mail-forward-method
6557 This function is used to forward messages.  The three functions available
6558 are:
6559
6560 @findex gnus-mail-forward-using-vm
6561 @findex gnus-mail-forward-using-mhe
6562 @findex gnus-mail-forward-using-mail
6563 @itemize @bullet
6564 @item 
6565 @code{gnus-mail-forward-using-mail} (sendmail)
6566 @item 
6567 @code{gnus-mail-forward-using-mhe} (mh)
6568 @item
6569 @code{gnus-mail-forward-using-vm} (vm)
6570 @end itemize
6571
6572 @vindex gnus-mail-other-window-method
6573 @item gnus-mail-other-window-method
6574 This function is used to send mails.  The three functions available are:
6575
6576 @findex gnus-mail-other-window-using-vm
6577 @findex gnus-mail-other-window-using-mhe
6578 @findex gnus-mail-other-window-using-mail
6579 @itemize @bullet
6580 @item 
6581 @code{gnus-mail-other-window-using-mail} (sendmail)
6582 @item 
6583 @code{gnus-mail-other-window-using-mhe} (mh)
6584 @item
6585 @code{gnus-mail-other-window-using-vm} (vm)
6586 @end itemize
6587
6588 @end table
6589
6590
6591 @node Post
6592 @section Post
6593
6594 Variables for composing news articles:
6595
6596 @vindex gnus-required-headers
6597 @code{gnus-required-headers} a list of header symbols.  These headers
6598 will either be automatically generated, or, if that's impossible, they
6599 will be prompted for.  The following symbols are legal:
6600
6601 @table @code
6602
6603 @item From
6604 @cindex From
6605 @findex gnus-inews-user-name
6606 @vindex gnus-user-from-line
6607 @vindex gnus-user-login-name
6608 @vindex gnus-local-domain
6609 @vindex user-mail-address
6610 This required header will be filled out with the result of the
6611 @code{gnus-inews-user-name} function, which depends on the
6612 @code{gnus-user-from-line}, @code{gnus-user-login-name},
6613 @code{gnus-local-domain} and @code{user-mail-address} variables.
6614
6615 @item Subject
6616 @cindex Subject
6617 This required header will be prompted for if not present already. 
6618
6619 @item Newsgroups
6620 @cindex Newsgroups
6621 This required header says which newsgroups the article is to be posted
6622 to.  If it isn't present already, it will be prompted for.
6623
6624 @item Organization
6625 @cindex organization
6626 @vindex gnus-local-organization
6627 @vindex gnus-organization-file
6628 This optional header will be filled out depending on the
6629 @code{gnus-local-organization} variable.  @code{gnus-organization-file}
6630 will be used if that variable is nil.
6631
6632 @item Lines
6633 @cindex Lines
6634 This optional header will be computed by Gnus.
6635
6636 @item Message-ID
6637 @cindex Message-ID
6638 This required header will be generated by Gnus.  A unique ID will be
6639 created based on date, time, user name and system name.
6640
6641 @item X-Newsreader
6642 @cindex X-Newsreader
6643 This optional header will be filled out with the Gnus version numbers. 
6644
6645 @item Expires
6646 @vindex gnus-article-expires
6647 @cindex Expires
6648 This extremely optional header will be inserted according to the
6649 @code{gnus-article-expires} variable.  It is highly deprecated and
6650 shouldn't be used unless you know what you're doing.
6651
6652 @item Distribution
6653 @cindex Distribution
6654 @findex gnus-distribution-function
6655 This optional header is filled out according to the
6656 @code{gnus-distribution-function} variable.  It is a deprecated and much
6657 misunderstood header.
6658
6659 @item Path
6660 @cindex path
6661 @vindex gnus-use-generic-path
6662 This extremely optional header should probably not ever be used.
6663 However, some @emph{very} old servers require that this header is
6664 present.  @code{gnus-use-generic-path} further controls how this
6665 @code{Path} header is to look.  If is is @code{nil}, the the server name
6666 as the leaf node.  If is is a string, use the string.  If it is neither
6667 a string nor @code{nil}, use the user name only.  However, it is highly
6668 unlikely that you should need to fiddle with this variable at all.
6669 @end table
6670
6671 @findex yow
6672 @cindex Mime-Version
6673 In addition, you can enter conses into this list.  The car of this cons
6674 should be a symbol.  This symbol's name is the name of the header, and
6675 the cdr can either be a string to be entered verbatim as the value of
6676 this header, or it can be a function to be called.  This function should
6677 return a string to be inserted.  For instance, if you want to insert
6678 @code{Mime-Version: 1.0}, you should enter @code{(Mime-Version . "1.0")}
6679 into the list.  If you want to insert a funny quote, you could enter
6680 something like @code{(X-Yow . yow)} into the list.  The function
6681 @code{yow} will then be called without any arguments.
6682
6683 The list contains a cons where the car of the cons is @code{optional},
6684 the cdr of this cons will only be inserted if it is non-@code{nil}.
6685
6686 Other variables for customizing outgoing articles:
6687
6688 @table @code
6689 @item nntp-news-default-headers
6690 @vindex nntp-news-default-headers
6691 If non-@code{nil}, this variable will override
6692 @code{mail-default-headers} when posting.  This variable should then be
6693 a string.  This string will be inserted, as is, in the head of all
6694 outgoing articles.
6695
6696 @item gnus-use-followup-to
6697 @vindex gnus-use-followup-to
6698 If @code{nil}, always ignore the Followup-To header.  If it is @code{t},
6699 use its value, but ignore the special value @samp{poster}, which will
6700 send the followup as a reply mail to the person you are responding to.
6701 If it is the symbol @code{ask}, query the user before posting.
6702 If it is the symbol @code{use}, always use the value.
6703
6704 @item gnus-followup-to-function
6705 @vindex gnus-followup-to-function
6706 This variable is most useful in mail groups, where ``following up''
6707 really means sending a mail to a list address.  Gnus uses the normal
6708 methods to determine where follow-ups are to go, but you can change the
6709 behavior to suit your needs by fiddling with this variable.
6710
6711 If you want the followups to go to the @code{Sender} instead of the
6712 @code{From} in the group @samp{mail.stupid-list}, you could do something
6713 like this:
6714
6715 @lisp
6716 (setq gnus-followup-to-function
6717       (lambda (group)
6718        (cond ((string= group "mail.stupid-list")
6719                (mail-fetch-field "sender"))
6720              (t
6721               nil))))
6722 @end lisp
6723
6724 This function will be called narrowed to header of the article that is
6725 being followed up.
6726
6727 @item gnus-removable-headers
6728 @vindex gnus-removable-headers
6729 @cindex NNTP-Posting-Host
6730 Some headers that are generated are toxic to the @sc{nntp} server.
6731 These include the @code{NNTP-Posting-Host}, @code{Bcc} and @code{Xref},
6732 so these headers are deleted if they are present in this list of
6733 symbols.
6734
6735 @item gnus-deletable-headers
6736 @vindex gnus-deletable-headers
6737 Headers in this list that were previously generated by Gnus will be
6738 deleted before posting.  Let's say you post an article.  Then you decide
6739 to post it again to some other group, you naughty boy, so you jump back
6740 to the @code{*post-buf*} buffer, edit the @code{Newsgroups} line, and
6741 ship it off again.  By default, this variable makes sure that the old
6742 generated @code{Message-ID} is deleted, and a new one generated.  If
6743 this isn't done, the entire empire would probably crumble, anarchy would
6744 prevail, and cats would start walking on two legs and rule the world.
6745 Allegedly. 
6746
6747 @item gnus-signature-function
6748 @vindex gnus-signature-function
6749 If non-@code{nil}, this variable should be a function that returns a
6750 signature file name.  The function will be called with the name of the
6751 group being posted to.  If the function returns a string that doesn't
6752 correspond to a file, the string itself is inserted.  If the function
6753 returns @code{nil}, the @code{gnus-signature-file} variable will be used
6754 instead.
6755
6756 @item gnus-post-prepare-function
6757 @vindex gnus-post-prepare-function
6758 This function is called with the name of the current group after the
6759 post buffer has been initialized, and can be used for inserting a
6760 signature.  Nice if you use different signatures in different groups.
6761
6762 @item gnus-post-prepare-hook
6763 @vindex gnus-post-prepare-hook
6764 @findex gnus-inews-insert-signature
6765 This hook is called after a post buffer has been prepared.  If you want
6766 to insert a signature at this point, you could put
6767 @code{gnus-inews-insert-signature} into this hook.
6768
6769 @item news-reply-header-hook
6770 @vindex news-reply-header-hook
6771 A related variable when following up and replying is this variable,
6772 which inserts the @dfn{quote line}.  The default value is:
6773
6774 @lisp
6775 (defvar news-reply-header-hook
6776   (lambda ()
6777     (insert "In article " news-reply-yank-message-id
6778             " " news-reply-yank-from " writes:\n\n")))
6779 @end lisp
6780
6781 This will create lines like:
6782
6783 @example
6784 In article <zngay8jrql@@eyesore.no> Lars Mars <lars@@eyesore.no> writes:
6785 @end example
6786
6787 Having the @code{Message-ID} in this line is probably overkill, so I
6788 would suggest this hook instead:
6789
6790 @lisp
6791 (setq news-reply-header-hook
6792   (lambda () (insert news-reply-yank-from " writes:\n\n")))
6793 @end lisp
6794
6795 @item gnus-prepare-article-hook
6796 @vindex gnus-prepare-article-hook
6797 This hook is called before the headers have been prepared.  
6798
6799 @item gnus-inews-article-function
6800 @vindex gnus-inews-article-function
6801 This function is used to do the actual article processing and header
6802 checking/generation.  
6803
6804 @item gnus-inews-article-hook
6805 @vindex gnus-inews-article-hook
6806 This hook is called right before the article is posted.  By default it
6807 handles FCC processing (i.e., saving the article to a file.)  You can
6808 also have this hook add a score to all followups to the article you've
6809 written (@pxref{Followups To Yourself}). 
6810
6811 @item gnus-inews-article-header-hook
6812 @vindex gnus-inews-article-header-hook
6813 @cindex *post-news*
6814 This hook is called after inserting the required headers in an article
6815 to be posted.  The hook is called from the @code{*post-news*} buffer,
6816 narrowed to the head, and is intended for people who would like to
6817 insert additional headers, or just change headers in some way or other.
6818
6819 @item gnus-check-before-posting
6820 @vindex gnus-check-before-posting
6821 If non-@code{nil}, Gnus will attempt to check the legality of the
6822 headers, as well as some other stuff, before posting.  You can control
6823 the granularity of the check by adding or removing elements from this
6824 list.  Legal elements are:
6825
6826 @table @code
6827 @item subject-cmsg 
6828 Check the subject for commands.
6829 @item sender
6830 @cindex Sender
6831 Insert a new @code{Sender} header if the @code{From} header looks odd. 
6832 @item multiple-headers 
6833 Check for the existence of multiple equal headers.
6834 @item sendsys 
6835 @cindex sendsys
6836 Check for the existence of version and sendsys commands.
6837 @item message-id
6838 Check whether the @code{Message-ID} looks ok.
6839 @item from
6840 Check whether the @code{From} header seems nice.
6841 @item long-lines 
6842 @cindex long lines
6843 Check for too long lines.
6844 @item control-chars
6845 Check for illegal characters.
6846 @item size
6847 Check for excessive size.
6848 @item new-text
6849 Check whether there is any new text in the messages.
6850 @item signature
6851 Check the length of the signature.
6852 @item approved
6853 @cindex approved
6854 Check whether the article has an @code{Approved} header, which is
6855 something only moderators should include.
6856 @item empty
6857 Check whether the article is empty.
6858 @item empty-headers
6859 Check whether any of the headers are empty.
6860 @end table
6861
6862 All these conditions are checked by default.
6863
6864 @item gnus-sent-message-ids-file
6865 @vindex gnus-sent-message-ids-file
6866 Gnus will keep a @code{Message-ID} history file of all the mails it has
6867 sent.  If it discovers that it has already sent a mail, it will ask the
6868 user whether to re-send the mail.  (This is primarily useful when
6869 dealing with @sc{soup} packets and the like where one is apt to sent the
6870 same packet multiple times.)  This variable says what the name of this
6871 history file is.  It is @file{~/News/Sent-Message-IDs} by default.  Set
6872 this variable to @code{nil} if you don't want Gnus to keep a history
6873 file.
6874
6875 @item gnus-sent-message-ids-length
6876 @vindex gnus-sent-message-ids-length
6877 This variable says how many @code{Message-ID}s to keep in the history
6878 file.  It is 1000 by default.
6879
6880 @end table
6881
6882
6883 @node Posting Server
6884 @section Posting Server
6885
6886 When you press those magical @kbd{C-c C-c} keys to ship off your latest
6887 (extremely intelligent, of course) article, where does it go?
6888
6889 Thank you for asking.  I hate you.
6890
6891 @vindex gnus-post-method
6892
6893 It can be quite complicated.  Normally, Gnus will use the same native
6894 server.  However.  If your native server doesn't allow posting, just
6895 reading, you probably want to use some other server to post your
6896 (extremely intelligent and fabulously interesting) articles.  You can
6897 then set the @code{gnus-post-method} to some other method:
6898
6899 @lisp
6900 (setq gnus-post-method '(nnspool ""))
6901 @end lisp
6902
6903 Now, if you've done this, and then this server rejects your article, or
6904 this server is down, what do you do then?  To override this variable you
6905 can use a non-zero prefix to the @kbd{C-c C-c} command to force using
6906 the ``current'' server for posting.
6907
6908 If you give a zero prefix (i. e., @kbd{C-u 0 C-c C-c}) to that command,
6909 Gnus will prompt you for what method to use for posting.  
6910
6911 You can also set @code{gnus-post-method} to a list of select methods.
6912 If that's the case, Gnus will always prompt you for what method to use
6913 for posting. 
6914
6915
6916 @node Mail and Post
6917 @section Mail and Post
6918
6919 Here's a list of variables that are relevant to both mailing and
6920 posting:
6921
6922 @table @code
6923 @item gnus-signature-file
6924 @itemx mail-signature
6925 @vindex mail-signature
6926 @vindex gnus-signature-file
6927 @cindex double signature
6928 @cindex signature
6929 If @code{gnus-signature-file} is non-@code{nil}, it should be the name
6930 of a file containing a signature (@file{~/.signature} by default).  This
6931 signature will be appended to all outgoing post.  Most people find it
6932 more convenient to use @code{mail-signature}, which (sort of) does the
6933 same, but inserts the signature into the buffer before you start editing
6934 the post (or mail).  So---if you have both of these variables set, you
6935 will get two signatures.  Note that @code{mail-signature} does not work
6936 the same way as @code{gnus-signature-file}, which is a bit confusing.
6937 If @code{mail-signature} is @code{t}, it will insert
6938 @file{~/.signature}.  If it is a string, this string will be inserted. 
6939
6940 Note that RFC1036 says that a signature should be preceded by the three
6941 characters @samp{-- } on a line by themselves.  This is to make it
6942 easier for the recipient to automatically recognize and process the
6943 signature.  So don't remove those characters, even though you might feel
6944 that they ruin you beautiful design, like, totally.
6945
6946 Also note that no signature should be more than four lines long.
6947 Including ASCII graphics is an efficient way to get everybody to believe
6948 that you are silly and have nothing important to say.
6949
6950 @item mail-yank-prefix
6951 @vindex mail-yank-prefix
6952 @cindex yanking
6953 @cindex quoting
6954 When you are replying to or following up an article, you normally want
6955 to quote the person you are answering.  Inserting quoted text is done by
6956 @dfn{yanking}, and each quoted line you yank will have
6957 @code{mail-yank-prefix} prepended to it.  This is @code{nil} by default,
6958 which isn't very pretty---the prefix will just be some spaces.  Most
6959 everybody prefers that lines are prepended with @samp{> }, so
6960 @code{(setq mail-yank-prefix "> ")} in your @file{.emacs} file.
6961
6962 @item mail-yank-ignored-headers
6963 @vindex mail-yank-ignored-headers
6964 When you yank a message, you do not want to quote any headers, so
6965 @code{(setq mail-yank-ignored-headers "^")}.
6966
6967 @item user-mail-address
6968 @vindex user-mail-address
6969 @vindex gnus-user-login-name
6970 @vindex gnus-use-generic-from
6971 @vindex gnus-local-domain
6972 If all of @code{gnus-user-login-name}, @code{gnus-use-generic-from} and
6973 @code{gnus-local-domain} are @code{nil}, Gnus will use
6974 @code{user-mail-address} as the address part of the @code{From} header.
6975
6976 @item gnus-local-domain
6977 @vindex gnus-local-domain
6978 @cindex domain
6979 The local domain name excluding the host name.  If your host is called
6980 @samp{narfi.ifi.uio.no}, then this variable should be
6981 @samp{ifi.uio.no}. 
6982
6983 @item gnus-local-domain
6984 @vindex gnus-local-domain
6985 @cindex domain
6986 The local domain name excluding the host name.  If your host is called
6987 @samp{narfi.ifi.uio.no}, then this variable should be
6988 @samp{ifi.uio.no}. 
6989
6990 @item gnus-user-from-line
6991 @vindex gnus-user-from-line
6992 Your full, complete e-mail address with name.  This variable overrides
6993 the other Gnus variables if it is non-@code{nil}.
6994
6995 Here are two example values of this variable: @samp{larsi@@ifi.uio.no
6996 (Lars Magne Ingebrigtsen)} and @samp{Lars Magne Ingebrigtsen
6997 <larsi@@ifi.uio.no>}.  The latter version is recommended in news (and is
6998 probably illegal in mail), but the name has to be quoted if it contains
6999 non-alpha-numerical characters---@samp{\"Lars M. Ingebrigtsen\"
7000 <larsi@@ifi.uio.no>}.
7001
7002 @item mail-default-headers
7003 @vindex mail-default-headers
7004 This is a string that will be inserted into the header of all outgoing
7005 mail messages and news articles.  Convenient to use to insert standard
7006 headers.  If @code{nntp-news-default-headers} is non-@code{nil}, that
7007 variable will override this one when posting articles.
7008
7009 @item gnus-auto-mail-to-author
7010 @vindex gnus-auto-mail-to-author
7011 If @code{ask}, you will be prompted for whether you want to send a mail
7012 copy to the author of the article you are following up.  If
7013 non-@code{nil} and not @code{ask}, Gnus will send a mail with a copy of
7014 all follow-ups to the authors of the articles you follow up.  It's nice
7015 in one way---you make sure that the person you are responding to gets
7016 your response.  Other people loathe this method and will hate you dearly
7017 for it, because it means that they will first get a mail, and then have
7018 to read the same article later when they read the news.  It is
7019 @code{nil} by default.
7020
7021 @item gnus-mail-courtesy-message
7022 @vindex gnus-mail-courtesy-message
7023 This is a string that will be prepended to all mails that are the result
7024 of using the variable described above.  
7025
7026 @item gnus-mailing-list-groups
7027 @findex gnus-mailing-list-groups
7028 @cindex mailing lists
7029
7030 If your news server offers groups that are really mailing lists that are
7031 gatewayed to the @sc{nntp} server, you can read those groups without
7032 problems, but you can't post/followup to them without some difficulty.
7033 One solution is to add a @code{to-address} to the group parameters
7034 (@pxref{Group Parameters}).  An easier thing to do is set the
7035 @code{gnus-mailing-list-groups} to a regexp that match the groups that
7036 really are mailing lists.  Then, at least, followups to the mailing
7037 lists will work most of the time.  Posting to these groups (@kbd{a}) is
7038 still a pain, though.
7039
7040 @item mail-citation-hook
7041 @vindex mail-citation-hook
7042 This hook is run after yanking a message, both in mail and post
7043 buffers.  Point will be at the beginning of the yanked message and mark
7044 will be at the end.  If this hook is non-@code{nil} the yanked text
7045 won't be indented automatically---you have to do that explicitly. 
7046
7047 For instance, if you want to remove signatures automatically, you could
7048 say something like:
7049
7050 @lisp
7051 (add-hook 'mail-citation-hook 'gnus-inews-remove-signature)
7052 @end lisp
7053
7054 This function indents the cited message and then removes the
7055 signature.  If you decide you want to include the signature after all,
7056 you can just press the @code{undo} key.
7057
7058 @end table
7059
7060 You may want to do spell-checking on messages that you send out.  Or, if
7061 you don't want to spell-check by hand, you could add automatic
7062 spell-checking via the @code{ispell} package:
7063
7064 @vindex news-inews-hook
7065 @cindex ispell
7066 @findex ispell-message
7067 @lisp
7068 (add-hook 'news-inews-hook 'ispell-message)        ;For news posts
7069 (add-hook 'mail-send-hook 'ispell-message)        ;for mail posts via sendmail
7070 @end lisp
7071
7072 @findex gnus-inews-insert-mime-headers
7073 If you want to insert some @sc{mime} headers into the articles you post,
7074 without doing any actual encoding, you could add
7075 @code{gnus-inews-insert-mime-headers} to @code{gnus-inews-article-hook}.
7076
7077
7078 @node Archived Messages
7079 @section Archived Messages
7080 @cindex archived messages
7081 @cindex sent messages
7082
7083 Gnus provides a few different methods for storing the mail you send.
7084 The default method is to use the @dfn{archive virtual server} to store
7085 the mail.
7086
7087 @vindex gnus-message-archive-method
7088 @code{gnus-message-archive-method} says what virtual server Gnus is to
7089 use to store sent messages.  It is @code{(nnfolder "archive"
7090 (nnfolder-directory "~/Mail/archive/"))} by default, but you can use any
7091 mail select method (@code{nnml}, @code{nnmbox}, etc.).  However,
7092 @code{nnfolder} is a quite likeable select method for doing this sort of
7093 thing.  If you don't like the default directory chosen, you could say
7094 something like:
7095
7096 @lisp
7097 (setq gnus-message-archive-method
7098       '((nnfolder "archive" 
7099                   (nnfolder-inhibit-expiry t)
7100                   (nnfolder-active-file "~/Mail/sent-mail/active")
7101                   (nnfolder-directory "~/News/sent-mail/"))))
7102 @end lisp
7103
7104 @vindex gnus-message-archive-group
7105 @cindex Gcc
7106 Gnus will insert @code{Gcc} headers in all outgoing messages that point
7107 to one or more group(s) on that server.  Which group to use is
7108 determined by the @code{gnus-message-archive-group} variable.  
7109
7110 This variable can be:
7111
7112 @itemize @bullet
7113 @item a string
7114 Messages will be saved in that group.
7115 @item a list of strings
7116 Messages will be saved in all those groups.
7117 @item an alist of regexps, functions and forms
7118 When a key ``matches'', the result is used.
7119 @end itemize
7120
7121 Let's illustrate:
7122
7123 Just saving to a single group called @samp{MisK}:
7124 @lisp
7125 (setq gnus-message-archive-group "MisK")
7126 @end lisp
7127
7128 Saving to two groups, @samp{MisK} and @samp{safe}:
7129 @lisp
7130 (setq gnus-message-archive-group '("MisK" "safe"))
7131 @end lisp
7132
7133 Save to different groups based on what group you are in:
7134 @lisp
7135 (setq gnus-message-archive-group 
7136       '(("^alt" "sent-to-alt")
7137         ("mail" "sent-to-mail")
7138         (".*" "sent-to-misc")))
7139 @end lisp
7140
7141 More complex stuff:
7142 @lisp
7143 (setq gnus-message-archive-group 
7144       '((if (eq major-mode news-reply-mode) 
7145             "misc-news" 
7146           "misc-mail")))
7147 @end lisp       
7148
7149 This is the default.
7150
7151 How about storing all news messages in one file, but storing all mail
7152 messages in one file per month:
7153
7154 @lisp
7155 (setq gnus-message-archive-group
7156       '((if (eq major-mode news-reply-mode) 
7157             "misc-news" 
7158           (concat "mail." (format-time-string 
7159                            "%Y-%m" (current-time))))))
7160 @end lisp
7161
7162 Now, when you send a message off, it will be stored in the appropriate
7163 group.  (If you want to disable storing for just one particular message,
7164 you can just remove the @code{Gcc} header that has been inserted.)  The
7165 archive group will appear in the group buffer the next time you start
7166 Gnus, or the next time you press @kbd{F} in the group buffer.  You can
7167 enter it and read the articles in it just like you'd read any other
7168 group.  If the group gets really big and annoying, you can simply rename
7169 if (using @kbd{G r} in the group buffer) to something nice --
7170 @samp{misc-mail-september-1995}, or whatever.  New messages will
7171 continue to be stored in the old (now empty) group.
7172
7173 That's the default method of archiving sent mail.  Gnus also offers two
7174 other variables for the people who don't like the default method.  In
7175 that case you should set @code{gnus-message-archive-group} to
7176 @code{nil}; this will disable archiving.
7177
7178 @table @code
7179 @item gnus-author-copy
7180 @vindex gnus-author-copy
7181 @cindex AUTHORCOPY
7182 This is a file name, and all outgoing articles will be saved in that
7183 file.  Initialized from the @code{AUTHORCOPY} environment variable.
7184
7185 If this variable begins with the character @samp{|}, outgoing articles
7186 will be piped to the named program. It is possible to save an article in
7187 an MH folder as follows:
7188
7189 @lisp
7190 (setq gnus-author-copy 
7191       "|/usr/local/lib/mh/rcvstore +Article")
7192 @end lisp
7193
7194 If the first character is not a pipe, articles are saved using the
7195 function specified by the @code{gnus-author-copy-saver} variable.
7196
7197 @item gnus-author-copy-saver
7198 @vindex gnus-author-copy-saver
7199 @findex rmail-output
7200 A function called to save outgoing articles.  This function will be
7201 called with the same of the file to store the article in. The default
7202 function is @code{rmail-output} which saves in the Unix mailbox format.
7203
7204 @item gnus-mail-self-blind 
7205 @vindex gnus-mail-self-blind 
7206 Non-@code{nil} means insert a BCC header in all outgoing articles
7207 pointing to yourself.  This will result you receiving a copy of the
7208 article mailed to yourself.  The BCC header is inserted when the post
7209 buffer is initialized, so you can remove or alter the BCC header to
7210 override the default.
7211
7212 @item gnus-outgoing-message-group 
7213 @vindex gnus-outgoing-message-group 
7214 All outgoing messages will be put in this group.  If you want to store
7215 all your outgoing mail and articles in the group @samp{nnml:archive},
7216 you set this variable to that value.  This variable can also be a list of
7217 group names.
7218
7219 If you want to have greater control over what group to put each
7220 message in, you can set this variable to a function that checks the
7221 current newsgroup name and then returns a suitable group name (or list
7222 of names).
7223 @end table
7224
7225
7226 @node Posting Styles
7227 @section Posting Styles
7228 @cindex posting styles
7229 @cindex styles
7230
7231 All them variables, they make my head swim.  
7232
7233 So what if you want a different @code{Organization} and signature based
7234 on what groups you post to?  And you post both from your home machine
7235 and your work machine, and you want different @code{From} lines, and so
7236 on? 
7237
7238 @vindex gnus-posting-styles
7239 One way to do stuff like that is to write clever hooks that change the
7240 variables you need to have changed.  That's a bit boring, so somebody
7241 came up with the bright idea of letting the user specify these things in
7242 a handy alist.  Here's an example of a @code{gnus-posting-styles}
7243 variable: 
7244
7245 @lisp
7246 ((".*" 
7247   (signature . "Peace and happiness")
7248   (organization . "What me?"))
7249  ("^comp" 
7250   (signature . "Death to everybody"))
7251  ("comp.emacs.i-love-it" 
7252   (organization . "Emacs is it")))
7253 @end lisp
7254
7255 As you might surmise from this example, this alist consists of several
7256 @dfn{styles}.  Each style will be applicable if the first element
7257 ``matches'', in some form or other.  The entire alist will be iterated
7258 over, from the beginning towards the end, and each match will be
7259 applied, which means that attributes in later styles that match override
7260 the same attributes in earlier matching styles.  So
7261 @samp{comp.programming.literate} will have the @samp{Death to everybody}
7262 signature and the @samp{What me?} @code{Organization} header.
7263
7264 The first element in each style is called the @code{match}.  If it's a
7265 string, then Gnus will try to regexp match it against the group name.
7266 If it's a function symbol, that function will be called with no
7267 arguments.  If it's a variable symbol, then the variable will be
7268 referenced.  If it's a list, then that list will be @code{eval}ed.  In
7269 any case, if this returns a non-@code{nil} value, then the style is said
7270 to @dfn{match}.
7271
7272 Each style may contain a random amount of @dfn{attributes}.  Each
7273 attribute consists of a @var{(name  . value)} pair.  The attribute name
7274 can be one of @code{signature}, @code{organization} or @code{from}.  
7275 The attribute name can also be a string.  In that case, this will be
7276 used as a header name, and the value will be inserted in the headers of
7277 the article. 
7278
7279 The attribute value can be a string (used verbatim), a function (the
7280 return value will be used), a variable (its value will be used) or a
7281 list (it will be @code{eval}ed and the return value will be used).
7282
7283 So here's a new example:
7284
7285 @lisp
7286 (setq gnus-posting-styles
7287       '((".*" 
7288           (signature . "~/.signature") 
7289           (from . "user@@foo (user)")
7290           ("X-Home-Page" . (getenv "WWW_HOME"))
7291           (organization . "People's Front Against MWM"))
7292         ("^rec.humor" 
7293           (signature . my-funny-signature-randomizer))
7294         ((equal (system-name) "gnarly")
7295           (signature . my-quote-randomizer))
7296         (posting-from-work-p
7297           (signature . "~/.work-signature")
7298           (from . "user@@bar.foo (user)")
7299           (organization . "Important Work, Inc"))
7300         ("^nn.+:" 
7301           (signature . "~/.mail-signature"))))
7302 @end lisp
7303
7304
7305 @node Drafts
7306 @section Drafts
7307 @cindex drafts
7308
7309 If you are writing a message (mail or news) and suddenly remember that
7310 you have a steak in the oven (or some pesto in the food processor, you
7311 craazy vegetarians), you'll probably wish there was a method to save the
7312 message you are writing so that you can continue editing it some other
7313 day, and send it when you feel its finished.
7314
7315 Well, don't worry about it.  Whenever you start composing a message of
7316 some sort using the Gnus mail and post commands, the buffer you get will
7317 automatically associate to an article in a special @dfn{draft} group.
7318 If you save the buffer the normal way (@kbd{C-x C-s}, for instance), the
7319 article will be saved there.  (Auto-save files also go to the draft
7320 group.) 
7321
7322 @cindex nndraft
7323 @vindex gnus-draft-group-directory
7324 The draft group is a special group (which is implemented as an
7325 @code{nndraft} group, if you absolutely have to know) called
7326 @samp{nndraft:drafts}.  The variable @code{gnus-draft-group-directory}
7327 controls both the name of the group and the location---the leaf element
7328 in the path will be used as the name of the group.  What makes this
7329 group special is that you can't tick any articles in it or mark any
7330 articles as read---all articles in the group are permanently unread.
7331
7332 If the group doesn't exist, it will be created and you'll be subscribed
7333 to it.
7334
7335 @findex gnus-dissociate-buffer-from-draft
7336 @kindex C-c M-d (Mail)
7337 @kindex C-c M-d (Post)
7338 @findex gnus-associate-buffer-with-draft
7339 @kindex C-c C-d (Mail)
7340 @kindex C-c C-d (Post)
7341 If you're writing some super-secret message that you later want to
7342 encode with PGP before sending, you may wish to turn the auto-saving
7343 (and association with the draft group) off.  You never know who might be
7344 interested in reading all your extremely valuable and terribly horrible
7345 and interesting secrets.  The @kbd{C-c M-d}
7346 (@code{gnus-dissociate-buffer-from-draft}) command does that for you.
7347 If you change your mind and want to turn the auto-saving back on again,
7348 @kbd{C-c C-d} (@code{gnus-associate-buffer-with-draft} does that.
7349
7350 @vindex gnus-use-draft
7351 To leave association with the draft group off by default, set
7352 @code{gnus-use-draft} to @code{nil}.  It is @code{t} by default. 
7353
7354 @findex gnus-summary-send-draft
7355 @kindex S D c (Summary)
7356 When you want to continue editing the article, you simply enter the
7357 draft group and push @kbd{S D c} (@code{gnus-summary-send-draft}) to do
7358 that.  You will be placed in a buffer where you left off.
7359
7360 Rejected articles will also be put in this draft group (@pxref{Rejected
7361 Articles}).
7362
7363 @findex gnus-summary-send-all-drafts
7364 If you have lots of rejected messages you want to post (or mail) without
7365 doing further editing, you can use the @kbd{S D a} command
7366 (@code{gnus-summary-send-all-drafts}).  This command understands the
7367 process/prefix convention (@pxref{Process/Prefix}).  
7368
7369
7370 @node Rejected Articles
7371 @section Rejected Articles
7372 @cindex rejected articles
7373
7374 Sometimes a news server will reject an article.  Perhaps the server
7375 doesn't like your face.  Perhaps it just feels miserable.  Perhaps
7376 @emph{there be demons}.  Perhaps you have included too much cited text.
7377 Perhaps the disk is full.  Perhaps the server is down.
7378
7379 These situations are, of course, totally beyond the control of Gnus.
7380 (Gnus, of course, loves the way you look, always feels great, has angels
7381 fluttering around inside of it, doesn't care about how much cited text
7382 you include, never runs full and never goes down.)  So Gnus saves these
7383 articles until some later time when the server feels better.
7384
7385 The rejected articles will automatically be put in a special draft group
7386 (@pxref{Drafts}).  When the server comes back up again, you'd then
7387 typically enter that group and send all the articles off.
7388
7389
7390 @node Select Methods
7391 @chapter Select Methods
7392 @cindex foreign groups
7393 @cindex select methods
7394
7395 A @dfn{foreign group} is a group that is not read by the usual (or
7396 default) means.  It could be, for instance, a group from a different
7397 @sc{nntp} server, it could be a virtual group, or it could be your own
7398 personal mail group.
7399
7400 A foreign group (or any group, really) is specified by a @dfn{name} and
7401 a @dfn{select method}.  To take the latter first, a select method is a
7402 list where the first element says what backend to use (eg. @code{nntp},
7403 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
7404 name}.  There may be additional elements in the select method, where the
7405 value may have special meaning for the backend in question.
7406
7407 One could say that a select method defines a @dfn{virtual server}---so
7408 we do just that (@pxref{The Server Buffer}).
7409
7410 The @dfn{name} of the group is the name the backend will recognize the
7411 group as.
7412
7413 For instance, the group @samp{soc.motss} on the @sc{nntp} server
7414 @samp{some.where.edu} will have the name @samp{soc.motss} and select
7415 method @code{(nntp "some.where.edu")}.  Gnus will call this group, in
7416 all circumstances, @samp{nntp+some.where.edu:soc.motss}, even though the
7417 @code{nntp} backend just knows this group as @samp{soc.motss}.
7418
7419 The different methods all have their peculiarities, of course.
7420
7421 @menu
7422 * The Server Buffer::     Making and editing virtual servers.
7423 * Getting News::          Reading USENET news with Gnus.
7424 * Getting Mail::          Reading your personal mail with Gnus.
7425 * Other Sources::         Reading directories, files, SOUP packets.
7426 * Combined Groups::       Combining groups into one group.
7427 @end menu
7428
7429
7430 @node The Server Buffer
7431 @section The Server Buffer
7432
7433 Traditionally, a @dfn{server} is a machine or a piece of software that
7434 one connects to, and then requests information from.  Gnus does not
7435 connect directly to any real servers, but does all transactions through
7436 one backend or other.  But that's just putting one layer more between
7437 the actual media and Gnus, so we might just as well say that each
7438 backend represents a virtual server.
7439
7440 For instance, the @code{nntp} backend may be used to connect to several
7441 different actual @sc{nntp} servers, or, perhaps, to many different ports
7442 on the same actual @sc{nntp} server.  You tell Gnus which backend to
7443 use, and what parameters to set by specifying a @dfn{select method}.
7444
7445 These select methods specifications can sometimes become quite
7446 complicated---say, for instance, that you want to read from the
7447 @sc{nntp} server @samp{news.funet.fi} on port number @code{13}, which
7448 hangs if queried for @sc{nov} headers and has a buggy select.  Ahem.
7449 Anyways, if you had to specify that for each group that used this
7450 server, that would be too much work, so Gnus offers a way of naming
7451 select methods, which is what you do in the server buffer.
7452
7453 To enter the server buffer, user the @kbd{^}
7454 (@code{gnus-group-enter-server-mode}) command in the group buffer.
7455
7456 @menu
7457 * Server Buffer Format::      You can customize the look of this buffer.
7458 * Server Commands::           Commands to manipulate servers.
7459 * Example Methods::           Examples server specifications.
7460 * Creating a Virtual Server:: An example session.
7461 * Servers and Methods::       You can use server names as select methods.
7462 * Unavailable Servers::       Some servers you try to contact may be down.
7463 @end menu
7464
7465 @vindex gnus-server-mode-hook
7466 @code{gnus-server-mode-hook} is run when creating the server buffer.
7467
7468
7469 @node Server Buffer Format
7470 @subsection Server Buffer Format
7471 @cindex server buffer format
7472
7473 @vindex gnus-server-line-format
7474 You can change the look of the server buffer lines by changing the
7475 @code{gnus-server-line-format} variable.  This is a @code{format}-like
7476 variable, with some simple extensions:
7477
7478 @table @samp
7479
7480 @item h 
7481 How the news is fetched---the backend name.
7482
7483 @item n
7484 The name of this server.
7485
7486 @item w
7487 Where the news is to be fetched from---the address.
7488
7489 @item s
7490 The opened/closed/denied status of the server.
7491 @end table
7492
7493 @vindex gnus-server-mode-line-format
7494 The mode line can also be customized by using the
7495 @code{gnus-server-mode-line-format} variable.  The following specs are
7496 understood: 
7497
7498 @table @samp
7499 @item S
7500 Server name.
7501
7502 @item M
7503 Server method.
7504 @end table
7505
7506 Also @pxref{Formatting Variables}.
7507
7508
7509 @node Server Commands
7510 @subsection Server Commands
7511 @cindex server commands
7512
7513 @table @kbd
7514
7515 @item a
7516 @kindex a (Server)
7517 @findex gnus-server-add-server
7518 Add a new server (@code{gnus-server-add-server}).
7519
7520 @item e
7521 @kindex e (Server)
7522 @findex gnus-server-edit-server
7523 Edit a server (@code{gnus-server-edit-server}).
7524
7525 @item SPACE
7526 @kindex SPACE (Server)
7527 @findex gnus-server-read-server
7528 Browse the current server (@code{gnus-server-read-server}).
7529
7530 @item q
7531 @kindex q (Server)
7532 @findex gnus-server-exit
7533 Return to the group buffer (@code{gnus-server-exit}).
7534
7535 @item k
7536 @kindex k (Server)
7537 @findex gnus-server-kill-server
7538 Kill the current server (@code{gnus-server-kill-server}).
7539
7540 @item y
7541 @kindex y (Server)
7542 @findex gnus-server-yank-server
7543 Yank the previously killed server (@code{gnus-server-yank-server}).
7544
7545 @item c
7546 @kindex c (Server)
7547 @findex gnus-server-copy-server
7548 Copy the current server (@code{gnus-server-copy-server}).
7549
7550 @item l
7551 @kindex l (Server)
7552 @findex gnus-server-list-servers
7553 List all servers (@code{gnus-server-list-servers}).
7554
7555 @end table
7556
7557
7558 @node Example Methods
7559 @subsection Example Methods
7560
7561 Most select methods are pretty simple and self-explanatory: 
7562
7563 @lisp
7564 (nntp "news.funet.fi")
7565 @end lisp
7566
7567 Reading directly from the spool is even simpler:
7568
7569 @lisp
7570 (nnspool "")
7571 @end lisp
7572
7573 As you can see, the first element in a select method is the name of the
7574 backend, and the second is the @dfn{address}, or @dfn{name}, if you
7575 will. 
7576
7577 After these two elements, there may be a random number of @var{(variable
7578 form)} pairs.
7579
7580 To go back to the first example---imagine that you want to read from
7581 port @code{15} from that machine.  This is what the select method should
7582 look like then:
7583
7584 @lisp
7585 (nntp "news.funet.fi" (nntp-port-number 15))
7586 @end lisp
7587
7588 You should read the documentation to each backend to find out what
7589 variables are relevant, but here's an @code{nnmh} example. 
7590
7591 @code{nnmh} is a mail backend that reads a spool-like structure.  Say
7592 you have two structures that you wish to access: One is your private
7593 mail spool, and the other is a public one.  Here's the possible spec for
7594 you private mail:
7595
7596 @lisp
7597 (nnmh "private" (nnmh-directory "~/private/mail/"))
7598 @end lisp
7599
7600 (This server is then called @samp{private}, but you may have guessed
7601 that.)
7602
7603 Here's the method for a public spool:
7604
7605 @lisp
7606 (nnmh "public" 
7607       (nnmh-directory "/usr/information/spool/") 
7608       (nnmh-get-new-mail nil))
7609 @end lisp
7610
7611
7612 @node Creating a Virtual Server
7613 @subsection Creating a Virtual Server
7614
7615 If you're saving lots of articles in the cache by using persistent
7616 articles, you may want to create a virtual server to read the cache.
7617
7618 First you need to add a new server.  The @kbd{a} command does that.  It
7619 would probably be best to use @code{nnspool} to read the cache.  You
7620 could also use @code{nnml} or @code{nnmh}, though.
7621
7622 Type @kbd{a nnspool RET cache RET}.
7623
7624 You should now have a brand new @code{nnspool} virtual server called
7625 @samp{cache}.  You now need to edit it to have the right definitions.
7626 Type @kbd{e} to edit the server.  You'll be entered into a buffer that
7627 will contain the following:
7628
7629 @lisp
7630 (nnspool "cache")
7631 @end lisp
7632
7633 Change that to:
7634
7635 @lisp
7636 (nnspool "cache"
7637          (nnspool-spool-directory "~/News/cache/")
7638          (nnspool-nov-directory "~/News/cache/")
7639          (nnspool-active-file "~/News/cache/active"))
7640 @end lisp
7641
7642 Type @kbd{C-c C-c} to return to the server buffer.  If you now press
7643 @kbd{RET} over this virtual server, you should be entered into a browse
7644 buffer, and you should be able to enter any of the groups displayed.
7645
7646
7647 @node Servers and Methods
7648 @subsection Servers and Methods
7649
7650 Wherever you would normally use a select method
7651 (eg. @code{gnus-secondary-select-method}, in the group select method,
7652 when browsing a foreign server) you can use a virtual server name
7653 instead.  This could potentially save lots of typing.  And it's nice all
7654 over.
7655
7656
7657 @node Unavailable Servers
7658 @subsection Unavailable Servers
7659
7660 If a server seems to be unreachable, Gnus will mark that server as
7661 @code{denied}.  That means that any subsequent attempt to make contact
7662 with that server will just be ignored.  ``It can't be opened,'' Gnus
7663 will tell you, without making the least effort to see whether that is
7664 actually the case or not.
7665
7666 That might seem quite naughty, but it does make sense most of the time.
7667 Let's say you have 10 groups subscribed to the server
7668 @samp{nepholococcygia.com}.  This server is located somewhere quite far
7669 away from you, the machine is quite, so it takes 1 minute just to find
7670 out that it refuses connection from you today.  If Gnus were to attempt
7671 to do that 10 times, you'd be quite annoyed, so Gnus won't attempt to do
7672 that.  Once it has gotten a single ``connection refused'', it will
7673 regard that server as ``down''.
7674
7675 So, what happens if the machine was only feeling unwell temporarily?
7676 How do you test to see whether the machine has come up again?
7677
7678 You jump to the server buffer (@pxref{The Server Buffer}) and poke it
7679 with the following commands:
7680
7681 @table @kbd
7682
7683 @item O
7684 @kindex O (Server)
7685 @findex gnus-server-open-server
7686 Try to establish connection to the server on the current line
7687 (@code{gnus-server-open-server}).
7688
7689 @item C
7690 @kindex C (Server)
7691 @findex gnus-server-close-server
7692 Close the connection (if any) to the server
7693 (@code{gnus-server-close-server}).
7694
7695 @item D
7696 @kindex D (Server)
7697 @findex gnus-server-deny-server
7698 Mark the current server as unreachable
7699 (@code{gnus-server-deny-server}). 
7700
7701 @item R
7702 @kindex R (Server)
7703 @findex gnus-server-remove-denials
7704 Remove all marks to whether Gnus was denied connection from all servers
7705 (@code{gnus-server-remove-denials}). 
7706
7707 @end table
7708
7709
7710 @node Getting News
7711 @section Getting News
7712 @cindex reading news
7713 @cindex news backends
7714
7715 A newsreader is normally used for reading news.  Gnus currently provides
7716 only two methods of getting news -- it can read from an @sc{nntp}
7717 server, or it can read from a local spool.
7718
7719 @menu
7720 * NNTP::               Reading news from an @sc{nntp} server.
7721 * News Spool::         Reading news from the local spool.
7722 @end menu
7723
7724
7725 @node NNTP
7726 @subsection @sc{nntp}
7727 @cindex nntp
7728
7729 Subscribing to a foreign group from an @sc{nntp} server is rather easy.
7730 You just specify @code{nntp} as method and the address of the @sc{nntp}
7731 server as the, uhm, address.
7732
7733 If the @sc{nntp} server is located at a non-standard port, setting the
7734 third element of the select method to this port number should allow you
7735 to connect to the right port.  You'll have to edit the group info for
7736 that (@pxref{Foreign Groups}).
7737
7738 The name of the foreign group can be the same as a native group.  In
7739 fact, you can subscribe to the same group from as many different servers
7740 you feel like.  There will be no name collisions.
7741
7742 The following variables can be used to create a virtual @code{nntp}
7743 server: 
7744
7745 @table @code
7746
7747 @item nntp-server-opened-hook
7748 @vindex nntp-server-opened-hook
7749 @cindex @sc{mode reader}
7750 @cindex authinfo
7751 @cindex authentification
7752 @cindex nntp authentification
7753 @findex nntp-send-authinfo
7754 @findex nntp-send-mode-reader
7755 @code{nntp-server-opened-hook} is run after a connection has been made.
7756 It can be used to send commands to the @sc{nntp} server after it has
7757 been contacted.  By default is sends the command @code{MODE READER} to
7758 the server with the @code{nntp-send-mode-reader} function.  Another
7759 popular function is @code{nntp-send-authinfo}, which will prompt you for
7760 an @sc{nntp} password and stuff.
7761
7762 @item nntp-server-action-alist 
7763 @vindex nntp-server-action-alist 
7764 This is an list of regexps to match on server types and actions to be
7765 taken when matches are made.  For instance, if you want Gnus to beep
7766 every time you connect to innd, you could say something like:
7767
7768 @lisp
7769 (setq nntp-server-action-alist
7770       '(("innd" (ding))))
7771 @end lisp
7772
7773 You probably don't want to do that, though.
7774
7775 The default value is
7776
7777 @lisp
7778   '(("nntpd 1\\.5\\.11t" 
7779      (remove-hook 'nntp-server-opened-hook nntp-send-mode-reader)))
7780 @end lisp
7781
7782 This ensures that Gnus doesn't send the @code{MODE READER} command to
7783 nntpd 1.5.11t, since that command chokes that server, I've been told. 
7784
7785 @item nntp-maximum-request
7786 @vindex nntp-maximum-request
7787 If the @sc{nntp} server doesn't support @sc{nov} headers, this backend
7788 will collect headers by sending a series of @code{head} commands.  To
7789 speed things up, the backend sends lots of these commands without
7790 waiting for reply, and then reads all the replies.  This is controlled
7791 by the @code{nntp-maximum-request} variable, and is 400 by default.  If
7792 your network is buggy, you should set this to 1.
7793
7794 @item nntp-connection-timeout
7795 @vindex nntp-connection-timeout
7796 If you have lots of foreign @code{nntp} groups that you connect to
7797 regularly, you're sure to have problems with @sc{nntp} servers not
7798 responding properly, or being too loaded to reply within reasonable
7799 time.  This is can lead to awkward problems, which can be helped
7800 somewhat by setting @code{nntp-connection-timeout}.  This is an integer
7801 that says how many seconds the @code{nntp} backend should wait for a
7802 connection before giving up.  If it is @code{nil}, which is the default,
7803 no timeouts are done.
7804
7805 @item nntp-command-timeout
7806 @vindex nntp-command-timeout
7807 @cindex PPP connections
7808 @cindex dynamic IP addresses
7809 If you're running Gnus on a machine that has a dynamically assigned
7810 address, Gnus may become confused.  If the address of your machine
7811 changes after connecting to the @sc{nntp} server, Gnus will simply sit
7812 waiting forever for replies from the server.  To help with this
7813 unfortunate problem, you can set this command to a number.  Gnus will
7814 then, if it sits waiting longer than that number of seconds for a reply
7815 from the server, shut down the connection, start a new one, and resend
7816 the command.  This should hopefully be transparent to the user.  A
7817 likely number is 30 seconds. 
7818
7819 @item nntp-retry-on-break
7820 @vindex nntp-retry-on-break
7821 If this variable is non-@code{nil}, you can also @kbd{C-g} if Gnus
7822 hangs.  This will have much the same effect as the command timeout
7823 described above.
7824
7825 @item nntp-server-hook
7826 @vindex nntp-server-hook
7827 This hook is run as the last step when connecting to an @sc{nntp}
7828 server.
7829
7830 @findex nntp-open-rlogin
7831 @findex nntp-open-network-stream
7832 @item nntp-open-server-function
7833 @vindex nntp-open-server-function
7834 This function is used to connect to the remote system.  Two pre-made
7835 functions are @code{nntp-open-network-stream}, which is the default, and
7836 simply connects to some port or other on the remote system.  The other
7837 is @code{nntp-open-rlogin}, which does an rlogin on the remote system,
7838 and then does a telnet to the @sc{nntp} server available there.
7839
7840 @item nntp-rlogin-parameters
7841 @vindex nntp-rlogin-parameters
7842 If you use @code{nntp-open-rlogin} as the
7843 @code{nntp-open-server-function}, this list will be used as the
7844 parameter list given to @code{rsh}.
7845
7846 @item nntp-end-of-line
7847 @vindex nntp-end-of-line
7848 String to use as end-of-line markers when talking to the @sc{nntp}
7849 server.  This is @samp{\r\n} by default, but should be @samp{\n} when
7850 using @code{rlogin} to talk to the server.
7851
7852 @item nntp-rlogin-user-name
7853 @vindex nntp-rlogin-user-name
7854 User name on the remote system when using the @code{rlogin} connect
7855 function. 
7856
7857 @item nntp-address
7858 @vindex nntp-address
7859 The address of the remote system running the @sc{nntp} server.
7860
7861 @item nntp-port-number
7862 @vindex nntp-port-number
7863 Port number to connect to when using the @code{nntp-open-network-stream}
7864 connect function.
7865
7866 @item nntp-buggy-select
7867 @vindex nntp-buggy-select
7868 Set this to non-@code{nil} if your select routine is buggy.
7869
7870 @item nntp-nov-is-evil 
7871 @vindex nntp-nov-is-evil 
7872 If the @sc{nntp} server does not support @sc{nov}, you could set this
7873 variable to @code{t}, but @code{nntp} usually checks whether @sc{nov}
7874 can be used automatically.
7875
7876 @item nntp-xover-commands
7877 @vindex nntp-xover-commands
7878 @cindex nov
7879 @cindex XOVER
7880 List of strings that are used as commands to fetch @sc{nov} lines from a
7881 server.  The default value of this variable is @code{("XOVER"
7882 "XOVERVIEW")}. 
7883
7884 @item nntp-nov-gap
7885 @vindex nntp-nov-gap
7886 @code{nntp} normally sends just one big request for @sc{nov} lines to
7887 the server.  The server responds with one huge list of lines.  However,
7888 if you have read articles 2-5000 in the group, and only want to read
7889 article 1 and 5001, that means that @code{nntp} will fetch 4999 @sc{nov}
7890 lines that you do not want, and will not use.  This variable says how
7891 big a gap between two consecutive articles is allowed to be before the
7892 @code{XOVER} request is split into several request.  Note that if your
7893 network is fast, setting this variable to a really small number means
7894 that fetching will probably be slower.  If this variable is @code{nil},
7895 @code{nntp} will never split requests.
7896
7897 @item nntp-prepare-server-hook
7898 @vindex nntp-prepare-server-hook
7899 A hook run before attempting to connect to an @sc{nntp} server.
7900
7901 @item nntp-async-number
7902 @vindex nntp-async-number
7903 How many articles should be pre-fetched when in asynchronous mode.  If
7904 this variable is @code{t}, @code{nntp} will pre-fetch all the articles
7905 that it can without bound.  If it is @code{nil}, no pre-fetching will be
7906 made.
7907
7908 @item nntp-warn-about-losing-connection
7909 @vindex nntp-warn-about-losing-connection
7910 If this variable is non-@code{nil}, some noise will be made when a
7911 server closes connection.
7912
7913 @end table
7914
7915
7916 @node News Spool
7917 @subsection News Spool
7918 @cindex nnspool
7919 @cindex news spool
7920
7921 Subscribing to a foreign group from the local spool is extremely easy,
7922 and might be useful, for instance, to speed up reading groups like
7923 @samp{alt.binaries.pictures.furniture}.
7924
7925 Anyways, you just specify @code{nnspool} as the method and @samp{} (or
7926 anything else) as the address.
7927
7928 If you have access to a local spool, you should probably use that as the
7929 native select method (@pxref{Finding the News}).  It is normally faster
7930 than using an @code{nntp} select method, but might not be.  It depends.
7931 You just have to try to find out what's best at your site.
7932
7933 @table @code
7934
7935 @item nnspool-inews-program
7936 @vindex nnspool-inews-program
7937 Program used to post an article.
7938
7939 @item nnspool-inews-switches
7940 @vindex nnspool-inews-switches
7941 Parameters given to the inews program when posting an article. 
7942
7943 @item nnspool-spool-directory
7944 @vindex nnspool-spool-directory
7945 Where @code{nnspool} looks for the articles.  This is normally
7946 @file{/usr/spool/news/}.
7947
7948 @item nnspool-nov-directory 
7949 @vindex nnspool-nov-directory 
7950 Where @code{nnspool} will look for @sc{nov} files.  This is normally
7951 @file{/usr/spool/news/over.view/}.
7952
7953 @item nnspool-lib-dir
7954 @vindex nnspool-lib-dir
7955 Where the news lib dir is (@file{/usr/lib/news/} by default).
7956
7957 @item nnspool-active-file
7958 @vindex nnspool-active-file
7959 The path of the active file.
7960
7961 @item nnspool-newsgroups-file
7962 @vindex nnspool-newsgroups-file
7963 The path of the group descriptions file.
7964
7965 @item nnspool-history-file
7966 @vindex nnspool-history-file
7967 The path of the news history file.
7968
7969 @item nnspool-active-times-file
7970 @vindex nnspool-active-times-file
7971 The path of the active date file.
7972
7973 @item nnspool-nov-is-evil
7974 @vindex nnspool-nov-is-evil
7975 If non-@code{nil}, @code{nnspool} won't try to use any @sc{nov} files
7976 that it finds.
7977
7978 @item nnspool-sift-nov-with-sed
7979 @vindex nnspool-sift-nov-with-sed
7980 @cindex sed
7981 If non-@code{nil}, which is the default, use @code{sed} to get the
7982 relevant portion from the overview file.  If nil, @code{nnspool} will
7983 load the entire file into a buffer and process it there.
7984
7985 @end table
7986
7987
7988 @node Getting Mail
7989 @section Getting Mail
7990 @cindex reading mail
7991 @cindex mail
7992
7993 Reading mail with a newsreader---isn't that just plain WeIrD? But of
7994 course.
7995
7996 @menu
7997 * Getting Started Reading Mail:: A simple cookbook example.
7998 * Splitting Mail::               How to create mail groups.
7999 * Mail Variables::               Variables for customizing mail handling.
8000 * Fancy Mail Splitting::         Gnus can do hairy splitting of incoming mail.
8001 * Mail and Procmail::            Reading mail groups that procmail create.
8002 * Incorporating Old Mail::       What about the old mail you have?
8003 * Expiring Mail::                Getting rid of unwanted mail.
8004 * Duplicates::                   Dealing with duplicated mail.
8005 * Not Reading Mail::             Using mail backends for reading other files.
8006 * Choosing a Mail Backend::      Gnus can read a variety of mail formats.
8007 @end menu
8008
8009
8010 @node Getting Started Reading Mail
8011 @subsection Getting Started Reading Mail
8012
8013 It's quite easy to use Gnus to read your new mail.  You just plonk the
8014 mail backend of your choice into @code{gnus-secondary-select-methods},
8015 and things will happen automatically.
8016
8017 For instance, if you want to use @code{nnml} (which is a one file per
8018 mail backend), you could put the following in your @file{.gnus} file:
8019
8020 @lisp
8021 (setq gnus-secondary-select-methods
8022       '((nnml "private")))
8023 @end lisp
8024
8025 Now, the next time you start Gnus, this backend will be queried for new
8026 articles, and it will move all the messages in your spool file to its
8027 directory, which is @code{~/Mail/} by default.  The new group that will
8028 be created (@samp{mail.misc}) will be subscribed, and you can read it
8029 like any other group.
8030
8031 You will probably want to split the mail into several groups, though:
8032
8033 @lisp
8034 (setq nnmail-split-methods
8035   '(("junk" "^From:.*Lars Ingebrigtsen")
8036     ("crazy" "^Subject:.*die\\|^Organization:.*flabby")
8037     ("other" "")))
8038 @end lisp
8039
8040 This will result in three new mail groups being created:
8041 @samp{nnml:junk}, @samp{nnml:crazy}, and @samp{nnml:other}.  All the
8042 mail that doesn't fit into the first two groups will be placed in the
8043 latter group.
8044
8045 This should be sufficient for reading mail with Gnus.  You might want to
8046 give the other sections in this part of the manual a perusal, though,
8047 especially @pxref{Choosing a Mail Backend} and @pxref{Expiring Mail}. 
8048
8049
8050 @node Splitting Mail
8051 @subsection Splitting Mail
8052 @cindex splitting mail
8053 @cindex mail splitting
8054
8055 @vindex nnmail-split-methods
8056 The @code{nnmail-split-methods} variable says how the incoming mail is
8057 to be split into groups.
8058
8059 @lisp
8060 (setq nnmail-split-methods
8061   '(("mail.junk" "^From:.*Lars Ingebrigtsen")
8062     ("mail.crazy" "^Subject:.*die\\|^Organization:.*flabby")
8063     ("mail.other" "")))
8064 @end lisp
8065
8066 This variable is a list of lists, where the first element of each of
8067 these lists is the name of the mail group (they do not have to be called
8068 something beginning with @samp{mail}, by the way), and the second
8069 element is a regular expression used on the header of each mail to
8070 determine if it belongs in this mail group.
8071
8072 The second element can also be a function.  In that case, it will be
8073 called narrowed to the headers with the first element of the rule as the
8074 argument.  It should return a non-@code{nil} value if it thinks that the
8075 mail belongs in that group.
8076
8077 The last of these groups should always be a general one, and the regular
8078 expression should @emph{always} be @samp{} so that it matches any
8079 mails that haven't been matched by any of the other regexps.
8080
8081 If you like to tinker with this yourself, you can set this variable to a
8082 function of your choice.  This function will be called without any
8083 arguments in a buffer narrowed to the headers of an incoming mail
8084 message.  The function should return a list of groups names that it
8085 thinks should carry this mail message.
8086
8087 Note that the mail backends are free to maul the poor, innocent
8088 incoming headers all they want to.  They all add @code{Lines} headers;
8089 some add @code{X-Gnus-Group} headers; most rename the Unix mbox
8090 @code{From<SPACE>} line to something else.
8091
8092 @vindex nnmail-crosspost
8093 The mail backends all support cross-posting.  If several regexps match,
8094 the mail will be ``cross-posted'' to all those groups.
8095 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
8096 that no articles are crossposted to the general (@samp{}) group.
8097
8098 @vindex nnmail-crosspost-link-function
8099 @cindex crosspost
8100 @cindex links
8101 @code{nnmh} and @code{nnml} makes crossposts by creating hard links to
8102 the crossposted articles.  However, not all files systems support hard
8103 links.  If that's the case for you, set
8104 @code{nnmail-crosspost-link-function} to @code{copy-file}.  (This
8105 variable is @code{add-name-to-file} by default.)  
8106
8107 Gnus gives you all the opportunity you could possibly want for shooting
8108 yourself in the foot.  Let's say you create a group that will contain
8109 all the mail you get from your boss.  And then you accidentally
8110 unsubscribe from the group.  Gnus will still put all the mail from your
8111 boss in the unsubscribed group, and so, when your boss mails you ``Have
8112 that report ready by Monday or you're fired!'', you'll never see it and,
8113 come Tuesday, you'll still believe that you're gainfully employed while
8114 you really should be out collecting empty bottles to save up for next
8115 month's rent money.
8116
8117
8118 @node Mail Variables
8119 @subsection Mail Variables
8120
8121 These variables are (for the most part) pertinent to all the various
8122 mail backends.
8123
8124 @table @code
8125 @vindex nnmail-read-incoming-hook
8126 @item nnmail-read-incoming-hook
8127 The mail backends all call this hook after reading new mail.  You can
8128 use this hook to notify any mail watch programs, if you want to.
8129
8130 @vindex nnmail-spool-file
8131 @item nnmail-spool-file
8132 @cindex POP mail
8133 @cindex MAILHOST
8134 @cindex movemail
8135 The backends will look for new mail in this file.  If this variable is
8136 @code{nil}, the mail backends will never attempt to fetch mail by
8137 themselves.  If you are using a POP mail server and your name is
8138 @samp{larsi}, you should set this variable to @samp{po:larsi}.  If
8139 your name is not @samp{larsi}, you should probably modify that
8140 slightly, but you may have guessed that already, you smart & handsome
8141 devil!  You can also set this variable to @code{pop}, and Gnus will try
8142 to figure out the POP mail string by itself.  In any case, Gnus will
8143 call @code{movemail} which will contact the POP server named in the
8144 @code{MAILHOST} environment variable.
8145
8146 When you use a mail backend, Gnus will slurp all your mail from your
8147 inbox and plonk it down in your home directory.  Gnus doesn't move any
8148 mail if you're not using a mail backend---you have to do a lot of magic
8149 invocations first.  At the time when you have finished drawing the
8150 pentagram, lightened the candles, and sacrificed the goat, you really
8151 shouldn't be too surprised when Gnus moves your mail.
8152
8153 @vindex nnmail-use-procmail
8154 @vindex nnmail-procmail-suffix
8155 @item nnmail-use-procmail
8156 If non-@code{nil}, the mail backends will look in
8157 @code{nnmail-procmail-directory} for incoming mail.  All the files in
8158 that directory that have names ending in @code{nnmail-procmail-suffix}
8159 will be considered incoming mailboxes, and will be searched for new
8160 mail.
8161
8162 @vindex nnmail-crash-box
8163 @item nnmail-crash-box
8164 When the mail backends read a spool file, it is first moved to this
8165 file, which is @file{~/.gnus-crash-box} by default.  If this file
8166 already exists, it will always be read (and incorporated) before any
8167 other spool files.
8168
8169 @vindex nnmail-prepare-incoming-hook
8170 @item nnmail-prepare-incoming-hook
8171 This is run in a buffer that holds all the new incoming mail, and can be
8172 used for, well, anything, really.
8173
8174 @vindex nnmail-pre-get-new-mail-hook
8175 @vindex nnmail-post-get-new-mail-hook
8176 @item nnmail-pre-get-new-mail-hook
8177 @itemx nnmail-post-get-new-mail-hook
8178 These are two useful hooks executed when treating new incoming
8179 mail---@code{nnmail-pre-get-new-mail-hook} (is called just before
8180 starting to handle the new mail) and
8181 @code{nnmail-post-get-new-mail-hook} (is called when the mail handling
8182 is done).  Here's and example of using these two hooks to change the
8183 default file modes the new mail files get:
8184
8185 @lisp
8186 (add-hook 'gnus-pre-get-new-mail-hook 
8187           (lambda () (set-default-file-modes 511)))
8188
8189 (add-hook 'gnus-post-get-new-mail-hook 
8190           (lambda () (set-default-file-modes 551)))
8191 @end lisp
8192
8193 @item nnmail-tmp-directory
8194 @vindex nnmail-tmp-directory
8195 This variable says where to move the incoming mail to while processing
8196 it.  This is usually done in the same directory that the mail backend
8197 inhabits (i.e., @file{~/Mail/}), but if this variable is non-@code{nil},
8198 it will be used instead.
8199
8200 @item nnmail-movemail-program
8201 @vindex nnmail-movemail-program
8202 This program is executed to move mail from the user's inbox to her home
8203 directory.  The default is @samp{movemail}.
8204
8205 @item nnmail-delete-incoming
8206 @vindex nnmail-delete-incoming
8207 @cindex incoming mail files
8208 @cindex deleting incoming files
8209 If non-@code{nil}, the mail backends will delete the temporary incoming
8210 file after splitting mail into the proper groups.  This is @code{nil} by
8211 default for reasons of security.
8212
8213 @item nnmail-use-long-file-names
8214 @vindex nnmail-use-long-file-names
8215 If non-@code{nil}, the mail backends will use long file and directory
8216 names.  Groups like @samp{mail.misc} will end up in directories like
8217 @file{mail.misc/}.  If it is @code{nil}, the same group will end up in
8218 @file{mail/misc/}.
8219
8220 @item nnmail-delete-file-function
8221 @vindex nnmail-delete-file-function
8222 @findex delete-file
8223 Function called to delete files.  It is @code{delete-file} by default. 
8224
8225 @end table
8226
8227
8228 @node Fancy Mail Splitting
8229 @subsection Fancy Mail Splitting
8230 @cindex mail splitting
8231 @cindex fancy mail splitting
8232
8233 @vindex nnmail-split-fancy
8234 @findex nnmail-split-fancy
8235 If the rather simple, standard method for specifying how to split mail
8236 doesn't allow you to do what you want, you can set
8237 @code{nnmail-split-methods} to @code{nnmail-split-fancy}.  Then you can
8238 play with the @code{nnmail-split-fancy} variable. 
8239
8240 Let's look at an example value of this variable first:
8241
8242 @lisp
8243 ;; Messages from the mailer daemon are not crossposted to any of
8244 ;; the ordinary groups.  Warnings are put in a separate group
8245 ;; from real errors.
8246 (| ("from" mail (| ("subject" "warn.*" "mail.warning")
8247                    "mail.misc"))
8248    ;; Non-error messages are crossposted to all relevant
8249    ;; groups, but we don't crosspost between the group for the
8250    ;; (ding) list and the group for other (ding) related mail.
8251    (& (| (any "ding@@ifi\\.uio\\.no" "ding.list")
8252          ("subject" "ding" "ding.misc"))
8253       ;; Other mailing lists...
8254       (any "procmail@@informatik\\.rwth-aachen\\.de" "procmail.list")
8255       (any "SmartList@@informatik\\.rwth-aachen\\.de" "SmartList.list")
8256       ;; People...
8257       (any "larsi@@ifi\\.uio\\.no" "people.Lars Magne Ingebrigtsen"))
8258    ;; Unmatched mail goes to the catch all group.
8259    "misc.misc"))")
8260 @end lisp
8261
8262 This variable has the format of a @dfn{split}.  A split is a (possibly)
8263 recursive structure where each split may contain other splits.  Here are
8264 the four possible split syntaxes:
8265
8266 @table @dfn
8267
8268 @item GROUP 
8269 If the split is a string, that will be taken as a group name. 
8270
8271 @item (FIELD VALUE SPLIT)
8272 If the split is a list, and the first element is a string, then that
8273 means that if header FIELD (a regexp) contains VALUE (also a regexp),
8274 then store the message as specified by SPLIT.
8275
8276 @item (| SPLIT...)
8277 If the split is a list, and the first element is @code{|} (vertical
8278 bar), then process each SPLIT until one of them matches.  A SPLIT is
8279 said to match if it will cause the mail message to be stored in one or
8280 more groups.
8281
8282 @item (& SPLIT...)
8283 If the split is a list, and the first element is @code{&}, then process
8284 all SPLITs in the list.
8285 @end table
8286
8287 In these splits, FIELD must match a complete field name.  VALUE must
8288 match a complete word according to the fundamental mode syntax table.
8289 You can use @code{.*} in the regexps to match partial field names or
8290 words.
8291
8292 @vindex nnmail-split-abbrev-alist
8293 FIELD and VALUE can also be lisp symbols, in that case they are expanded
8294 as specified by the variable @code{nnmail-split-abbrev-alist}.  This is
8295 an alist of cons cells, where the car of the cells contains the key, and
8296 the cdr contains a string.
8297
8298 @vindex nnmail-split-fancy-syntax-table
8299 @code{nnmail-split-fancy-syntax-table} is the syntax table in effect
8300 when all this splitting is performed.
8301
8302
8303 @node Mail and Procmail
8304 @subsection Mail and Procmail
8305 @cindex procmail
8306
8307 @cindex slocal
8308 @cindex elm
8309 Many people use @code{procmail} (or some other mail filter program or
8310 external delivery agent---@code{slocal}, @code{elm}, etc) to split
8311 incoming mail into groups.  If you do that, you should set
8312 @code{nnmail-spool-file} to @code{procmail} to ensure that the mail
8313 backends never ever try to fetch mail by themselves.
8314
8315 This also means that you probably don't want to set
8316 @code{nnmail-split-methods} either, which has some, perhaps, unexpected
8317 side effects.
8318
8319 When a mail backend is queried for what groups it carries, it replies
8320 with the contents of that variable, along with any groups it has figured
8321 out that it carries by other means.  None of the backends (except
8322 @code{nnmh}) actually go out to the disk and check what groups actually
8323 exist.  (It's not trivial to distinguish between what the user thinks is
8324 a basis for a newsgroup and what is just a plain old file or directory.)
8325
8326 This means that you have to tell Gnus (and the backends) what groups
8327 exist by hand.
8328
8329 Let's take the @code{nnmh} backend as an example. 
8330
8331 The folders are located in @code{nnmh-directory}, say, @file{~/Mail/}.
8332 There are three folders, @file{foo}, @file{bar} and @file{mail.baz}.
8333
8334 Go to the group buffer and type @kbd{G m}.  When prompted, answer
8335 @samp{foo} for the name and @samp{nnmh} for the method.  Repeat
8336 twice for the two other groups, @samp{bar} and @samp{mail.baz}.  Be sure
8337 to include all your mail groups.
8338
8339 That's it.  You are now set to read your mail.  An active file for this
8340 method will be created automatically.
8341
8342 @vindex nnmail-procmail-suffix
8343 @vindex nnmail-procmail-directory
8344 If you use @code{nnfolder} or any other backend that store more than a
8345 single article in each file, you should never have procmail add mails to
8346 the file that Gnus sees.  Instead, procmail should put all incoming mail
8347 in @code{nnmail-procmail-directory}.  To arrive at the file name to put
8348 the incoming mail in, append @code{nnmail-procmail-suffix} to the group
8349 name.  The mail backends will read the mail from these files.
8350
8351 @vindex nnmail-resplit-incoming
8352 When Gnus reads a file called @file{mail.misc.spool}, this mail will be
8353 put in the @code{mail.misc}, as one would expect.  However, if you want
8354 Gnus to split the mail the normal way, you could set
8355 @code{nnmail-resplit-incoming} to @code{t}.
8356
8357 @vindex nnmail-keep-last-article
8358 If you use @code{procmail} to split things directory into an @code{nnmh}
8359 directory (which you shouldn't do), you should set
8360 @code{nnmail-keep-last-article} to non-@code{nil} to prevent Gnus from
8361 ever expiring the final article in a mail newsgroup.  This is quite,
8362 quite important.
8363
8364
8365 @node Incorporating Old Mail
8366 @subsection Incorporating Old Mail
8367
8368 Most people have lots of old mail stored in various file formats.  If
8369 you have set up Gnus to read mail using one of the spiffy Gnus mail
8370 backends, you'll probably wish to have that old mail incorporated into
8371 your mail groups.
8372
8373 Doing so can be quite easy.
8374
8375 To take an example: You're reading mail using @code{nnml}
8376 (@pxref{Mail Spool}), and have set @code{nnmail-split-methods} to a
8377 satisfactory value (@pxref{Splitting Mail}).  You have an old Unix mbox
8378 file filled with important, but old, mail.  You want to move it into
8379 your @code{nnml} groups.
8380
8381 Here's how:
8382
8383 @enumerate
8384 @item
8385 Go to the group buffer.
8386
8387 @item 
8388 Type `G f' and give the path of the mbox file when prompted to create an
8389 @code{nndoc} group from the mbox file (@pxref{Foreign Groups}).
8390
8391 @item 
8392 Type `SPACE' to enter the newly created group.
8393
8394 @item
8395 Type `M P b' to process-mark all articles in this group (@pxref{Setting
8396 Process Marks}).
8397
8398 @item 
8399 Type `B r' to respool all the process-marked articles, and answer
8400 @samp{nnml} when prompted (@pxref{Mail Group Commands}).
8401 @end enumerate
8402
8403 All the mail messages in the mbox file will now also be spread out over
8404 all your @code{nnml} groups.  Try entering them and check whether things
8405 have gone without a glitch.  If things look ok, you may consider
8406 deleting the mbox file, but I wouldn't do that unless I was absolutely
8407 sure that all the mail has ended up where it should be.
8408
8409 Respooling is also a handy thing to do if you're switching from one mail
8410 backend to another.  Just respool all the mail in the old mail groups
8411 using the new mail backend.
8412
8413
8414 @node Expiring Mail
8415 @subsection Expiring Mail
8416 @cindex article expiry
8417
8418 Traditional mail readers have a tendency to remove mail articles when
8419 you mark them as read, in some way.  Gnus takes a fundamentally
8420 different approach to mail reading.
8421
8422 Gnus basically considers mail just to be news that has been received in
8423 a rather peculiar manner.  It does not think that it has the power to
8424 actually change the mail, or delete any mail messages.  If you enter a
8425 mail group, and mark articles as ``read'', or kill them in some other
8426 fashion, the mail articles will still exist on the system.  I repeat:
8427 Gnus will not delete your old, read mail.  Unless you ask it to, of
8428 course.
8429
8430 To make Gnus get rid of your unwanted mail, you have to mark the
8431 articles as @dfn{expirable}.  This does not mean that the articles will
8432 disappear right away, however.  In general, a mail article will be
8433 deleted from your system if, 1) it is marked as expirable, AND 2) it is
8434 more than one week old.  If you do not mark an article as expirable, it
8435 will remain on your system until hell freezes over.  This bears
8436 repeating one more time, with some spurious capitalizations: IF you do
8437 NOT mark articles as EXPIRABLE, Gnus will NEVER delete those ARTICLES.
8438
8439 @vindex gnus-auto-expirable-newsgroups
8440 You do not have to mark articles as expirable by hand.  Groups that
8441 match the regular expression @code{gnus-auto-expirable-newsgroups} will
8442 have all articles that you read marked as expirable automatically.  All
8443 articles that are marked as expirable have an @samp{E} in the first
8444 column in the summary buffer.
8445
8446 Let's say you subscribe to a couple of mailing lists, and you want the
8447 articles you have read to disappear after a while:
8448
8449 @lisp
8450 (setq gnus-auto-expirable-newsgroups 
8451       "mail.nonsense-list\\|mail.nice-list")
8452 @end lisp
8453
8454 Another way to have auto-expiry happen is to have the element
8455 @code{auto-expire} in the group parameters of the group. 
8456
8457 @vindex nnmail-expiry-wait
8458 The @code{nnmail-expiry-wait} variable supplies the default time an
8459 expirable article has to live.  The default is seven days.  
8460
8461 Gnus also supplies a function that lets you fine-tune how long articles
8462 are to live, based on what group they are in.  Let's say you want to
8463 have one month expiry period in the @samp{mail.private} group, a one day
8464 expiry period in the @samp{mail.junk} group, and a six day expiry period
8465 everywhere else:
8466
8467 @vindex nnmail-expiry-wait-function
8468 @lisp
8469 (setq nnmail-expiry-wait-function
8470       (lambda (group)
8471        (cond ((string= group "mail.private")
8472                31)
8473              ((string= group "mail.junk")
8474                1)
8475              ((string= group "important")
8476                'never)
8477              (t
8478                6))))
8479 @end lisp
8480
8481 The group names that this function is fed are ``unadorned'' group
8482 names---no @samp{nnml:} prefixes and the like.
8483
8484 The @code{nnmail-expiry-wait} variable and
8485 @code{nnmail-expiry-wait-function} function can be either a number (not
8486 necessarily an integer) or the symbols @code{immediate} or
8487 @code{never}.  
8488
8489 You can also use the @code{expiry-wait} group parameter to selectively
8490 change the expiry period (@pxref{Group Parameters}).
8491
8492 @vindex nnmail-keep-last-article
8493 If @code{nnmail-keep-last-article} is non-@code{nil}, Gnus will never
8494 expire the final article in a mail newsgroup.  This is to make life
8495 easier for procmail users.
8496
8497 @vindex gnus-total-expirable-newsgroups
8498 By the way, that line up there about Gnus never expiring non-expirable
8499 articles is a lie.  If you put @code{total-expire} in the group
8500 parameters, articles will not be marked as expirable, but all read
8501 articles will be put through the expiry process.  Use with extreme
8502 caution.  Even more dangerous is the
8503 @code{gnus-total-expirable-newsgroups} variable.  All groups that match
8504 this regexp will have all read articles put through the expiry process,
8505 which means that @emph{all} old mail articles in the groups in question
8506 will be deleted after a while.  Use with extreme caution, and don't come
8507 crying to me when you discover that the regexp you used matched the
8508 wrong group and all your important mail has disappeared.  Be a
8509 @emph{man}!  Or a @emph{woman}!  Whatever you feel more comfortable
8510 with!  So there!
8511
8512
8513 @node Duplicates
8514 @subsection Duplicates
8515
8516 @vindex nnmail-delete-duplicates
8517 @vindex nnmail-message-id-cache-length
8518 @vindex nnmail-message-id-cache-file
8519 @vindex nnmail-treat-duplicates
8520 @cindex duplicate mails
8521 If you are a member of a couple of mailing list, you will sometime
8522 receive two copies of the same mail.  This can be quite annoying, so
8523 @code{nnmail} checks for and treats any duplicates it might find.  To do
8524 this, it keeps a cache of old @code{Message-ID}s -
8525 @code{nnmail-message-id-cache-file}, which is @file{~/.nnmail-cache} by
8526 default.  The approximate maximum number of @code{Message-ID}s stored
8527 there is controlled by the @code{nnmail-message-id-cache-length}
8528 variable, which is 1000 by default. (So 1000 @code{Message-ID}s will be
8529 stored.) If all this sounds scary to you, you can set
8530 @code{nnmail-delete-duplicates} to @code{warn} (which is what it is by
8531 default), and @code{nnmail} won't delete duplicate mails.  Instead it
8532 will generate a brand new @code{Message-ID} for the mail and insert a
8533 warning into the head of the mail saying that it thinks that this is a
8534 duplicate of a different message.  
8535
8536 This variable can also be a function.  If that's the case, the function
8537 will be called from a buffer narrowed to the message in question with
8538 the @code{Message-ID} as a parameter.  The function must return either
8539 @code{nil}, @code{warn}, or @code{delete}.
8540
8541 You can turn this feature off completely by setting the variable to
8542 @code{nil}.
8543
8544 If you want all the duplicate mails to be put into a special
8545 @dfn{duplicates} group, you could do that using the normal mail split
8546 methods:
8547
8548 @lisp
8549 (setq nnmail-split-fancy
8550       '(| ;; Messages duplicates go to a separate group.
8551           ("gnus-warning" "duplication of message" "duplicate")
8552           ;; Message from daemons, postmaster, and the like to another.
8553           (any mail "mail.misc")
8554           ;; Other rules.
8555           [ ... ] ))
8556 @end lisp
8557
8558 Or something like:
8559 @lisp
8560 (setq nnmail-split-methods 
8561       '(("duplicates" "^Gnus-Warning:")
8562         ;; Other rules.
8563         [...]))
8564 @end lisp
8565
8566 Here's a neat feature: If you know that the recipient reads her mail
8567 with Gnus, and that she has @code{nnmail-treat-duplicates} set to
8568 @code{delete}, you can send her as many insults as you like, just by
8569 using a @code{Message-ID} of a mail that you know that she's already
8570 received.  Think of all the fun!  She'll never see any of it!  Whee!
8571
8572
8573 @node Not Reading Mail
8574 @subsection Not Reading Mail
8575
8576 If you start using any of the mail backends, they have the annoying
8577 habit of assuming that you want to read mail with them.  This might not
8578 be unreasonable, but it might not be what you want.
8579
8580 If you set @code{nnmail-spool-file} to @code{nil}, none of the backends
8581 will ever attempt to read incoming mail, which should help.
8582
8583 @vindex nnbabyl-get-new-mail
8584 @vindex nnmbox-get-new-mail
8585 @vindex nnml-get-new-mail
8586 @vindex nnmh-get-new-mail
8587 @vindex nnfolder-get-new-mail
8588 This might be too much, if, for instance, you are reading mail quite
8589 happily with @code{nnml} and just want to peek at some old @sc{rmail}
8590 file you have stashed away with @code{nnbabyl}.  All backends have
8591 variables called backend-@code{get-new-mail}.  If you want to disable
8592 the @code{nnbabyl} mail reading, you edit the virtual server for the
8593 group to have a setting where @code{nnbabyl-get-new-mail} to @code{nil}.
8594
8595 All the mail backends will call @code{nn}*@code{-prepare-save-mail-hook}
8596 narrowed to the article to be saved before saving it when reading
8597 incoming mail.
8598
8599
8600 @node Choosing a Mail Backend
8601 @subsection Choosing a Mail Backend
8602
8603 Gnus will read the mail spool when you activate a mail group.  The mail
8604 file is first copied to your home directory.  What happens after that
8605 depends on what format you want to store your mail in.
8606
8607 @menu
8608 * Unix Mail Box::               Using the (quite) standard Un*x mbox.
8609 * Rmail Babyl::                 Emacs programs use the rmail babyl format.
8610 * Mail Spool::                  Store your mail in a private spool?
8611 * MH Spool::                    An mhspool-like backend.
8612 * Mail Folders::                Having one file for each group.
8613 @end menu
8614
8615
8616 @node Unix Mail Box
8617 @subsubsection Unix Mail Box
8618 @cindex nnmbox
8619 @cindex unix mail box
8620
8621 @vindex nnmbox-active-file
8622 @vindex nnmbox-mbox-file
8623 The @dfn{nnmbox} backend will use the standard Un*x mbox file to store
8624 mail.  @code{nnmbox} will add extra headers to each mail article to say
8625 which group it belongs in.
8626
8627 Virtual server settings:
8628
8629 @table @code
8630 @item nnmbox-mbox-file
8631 @vindex nnmbox-mbox-file
8632 The name of the mail box in the user's home directory. 
8633
8634 @item nnmbox-active-file
8635 @vindex nnmbox-active-file
8636 The name of the active file for the mail box.
8637
8638 @item nnmbox-get-new-mail
8639 @vindex nnmbox-get-new-mail
8640 If non-@code{nil}, @code{nnmbox} will read incoming mail and split it
8641 into groups.
8642 @end table
8643
8644
8645 @node Rmail Babyl
8646 @subsubsection Rmail Babyl
8647 @cindex nnbabyl
8648 @cindex rmail mbox
8649
8650 @vindex nnbabyl-active-file
8651 @vindex nnbabyl-mbox-file
8652 The @dfn{nnbabyl} backend will use a babyl mail box (aka. @dfn{rmail
8653 mbox}) to store mail. @code{nnbabyl} will add extra headers to each mail
8654 article to say which group it belongs in.
8655
8656 Virtual server settings:
8657
8658 @table @code
8659 @item nnbabyl-mbox-file
8660 @vindex nnbabyl-mbox-file
8661 The name of the rmail mbox file.
8662
8663 @item nnbabyl-active-file
8664 @vindex nnbabyl-active-file
8665 The name of the active file for the rmail box.
8666
8667 @item nnbabyl-get-new-mail
8668 @vindex nnbabyl-get-new-mail
8669 If non-@code{nil}, @code{nnbabyl} will read incoming mail. 
8670 @end table
8671
8672
8673 @node Mail Spool
8674 @subsubsection Mail Spool
8675 @cindex nnml
8676 @cindex mail @sc{nov} spool
8677
8678 The @dfn{nnml} spool mail format isn't compatible with any other known
8679 format.  It should be used with some caution.
8680
8681 @vindex nnml-directory
8682 If you use this backend, Gnus will split all incoming mail into files;
8683 one file for each mail, and put the articles into the correct
8684 directories under the directory specified by the @code{nnml-directory}
8685 variable.  The default value is @file{~/Mail/}.
8686
8687 You do not have to create any directories beforehand; Gnus will take
8688 care of all that.
8689
8690 If you have a strict limit as to how many files you are allowed to store
8691 in your account, you should not use this backend.  As each mail gets its
8692 own file, you might very well occupy thousands of inodes within a few
8693 weeks.  If this is no problem for you, and it isn't a problem for you
8694 having your friendly systems administrator walking around, madly,
8695 shouting ``Who is eating all my inodes?! Who? Who!?!'', then you should
8696 know that this is probably the fastest format to use.  You do not have
8697 to trudge through a big mbox file just to read your new mail.
8698
8699 @code{nnml} is probably the slowest backend when it comes to article
8700 splitting.  It has to create lots of files, and it also generates
8701 @sc{nov} databases for the incoming mails.  This makes is the fastest
8702 backend when it comes to reading mail.
8703
8704 Virtual server settings:
8705
8706 @table @code
8707 @item nnml-directory
8708 @vindex nnml-directory
8709 All @code{nnml} directories will be placed under this directory. 
8710
8711 @item nnml-active-file
8712 @vindex nnml-active-file
8713 The active file for the @code{nnml} server.
8714
8715 @item nnml-newsgroups-file
8716 @vindex nnml-newsgroups-file
8717 The @code{nnml} group descriptions file.  @xref{Newsgroups File
8718 Format}. 
8719
8720 @item nnml-get-new-mail
8721 @vindex nnml-get-new-mail
8722 If non-@code{nil}, @code{nnml} will read incoming mail.
8723
8724 @item nnml-nov-is-evil
8725 @vindex nnml-nov-is-evil
8726 If non-@code{nil}, this backend will ignore any @sc{nov} files.  
8727
8728 @item nnml-nov-file-name
8729 @vindex nnml-nov-file-name
8730 The name of the @sc{nov} files.  The default is @file{.overview}. 
8731
8732 @item nnml-prepare-save-mail-hook
8733 @vindex nnml-prepare-save-mail-hook
8734 Hook run narrowed to an article before saving.
8735
8736 @end table
8737
8738 @findex nnml-generate-nov-databases
8739 If your @code{nnml} groups and @sc{nov} files get totally out of whack,
8740 you can do a complete update by typing @kbd{M-x
8741 nnml-generate-nov-databases}.  This command will trawl through the
8742 entire @code{nnml} hierarchy, looking at each and every article, so it
8743 might take a while to complete.
8744
8745
8746 @node MH Spool
8747 @subsubsection MH Spool
8748 @cindex nnmh
8749 @cindex mh-e mail spool
8750
8751 @code{nnmh} is just like @code{nnml}, except that is doesn't generate
8752 @sc{nov} databases and it doesn't keep an active file.  This makes
8753 @code{nnmh} a @emph{much} slower backend than @code{nnml}, but it also
8754 makes it easier to write procmail scripts for.
8755
8756 Virtual server settings:
8757
8758 @table @code
8759 @item nnmh-directory
8760 @vindex nnmh-directory
8761 All @code{nnmh} directories will be located under this directory.
8762
8763 @item nnmh-get-new-mail
8764 @vindex nnmh-get-new-mail
8765 If non-@code{nil}, @code{nnmh} will read incoming mail.
8766
8767 @item nnmh-be-safe
8768 @vindex nnmh-be-safe
8769 If non-@code{nil}, @code{nnmh} will go to ridiculous lengths to make
8770 sure that the articles in the folder are actually what Gnus thinks they
8771 are.  It will check date stamps and stat everything in sight, so
8772 setting this to @code{t} will mean a serious slow-down.  If you never
8773 use anything but Gnus to read the @code{nnmh} articles, you do not have
8774 to set this variable to @code{t}.
8775 @end table
8776
8777
8778 @node Mail Folders
8779 @subsubsection Mail Folders
8780 @cindex nnfolder
8781 @cindex mbox folders
8782 @cindex mail folders
8783
8784 @code{nnfolder} is a backend for storing each mail group in a separate
8785 file.  Each file is in the standard Un*x mbox format.  @code{nnfolder}
8786 will add extra headers to keep track of article numbers and arrival
8787 dates.
8788
8789 Virtual server settings:
8790
8791 @table @code
8792 @item nnfolder-directory
8793 @vindex nnfolder-directory
8794 All the @code{nnfolder} mail boxes will be stored under this directory. 
8795
8796 @item nnfolder-active-file
8797 @vindex nnfolder-active-file
8798 The name of the active file.
8799
8800 @item nnfolder-newsgroups-file
8801 @vindex nnfolder-newsgroups-file
8802 The name of the group descriptions file.  @xref{Newsgroups File Format}.
8803
8804 @item nnfolder-get-new-mail
8805 @vindex nnfolder-get-new-mail
8806 If non-@code{nil}, @code{nnfolder} will read incoming mail.
8807 @end table
8808
8809 @findex nnfolder-generate-active-file
8810 @kindex M-x nnfolder-generate-active-file
8811 If you have lots of @code{nnfolder}-like files you'd like to read with
8812 @code{nnfolder}, you can use the @kbd{M-x nnfolder-generate-active-file}
8813 command to make @code{nnfolder} aware of all likely files in
8814 @code{nnfolder-directory}.
8815
8816
8817 @node Other Sources
8818 @section Other Sources
8819
8820 Gnus can do more than just read news or mail.  The methods described
8821 below allow Gnus to view directories and files as if they were
8822 newsgroups.
8823
8824 @menu
8825 * Directory Groups::   You can read a directory as if it was a newsgroup.
8826 * Anything Groups::    Dired?  Who needs dired?
8827 * Document Groups::    Single files can be the basis of a group.
8828 * SOUP::               Reading @sc{SOUP} packets ``offline''.
8829 @end menu
8830
8831
8832 @node Directory Groups
8833 @subsection Directory Groups
8834 @cindex nndir
8835 @cindex directory groups
8836
8837 If you have a directory that has lots of articles in separate files in
8838 it, you might treat it as a newsgroup.  The files have to have numerical
8839 names, of course.
8840
8841 This might be an opportune moment to mention @code{ange-ftp}, that most
8842 wonderful of all wonderful Emacs packages.  When I wrote @code{nndir}, I
8843 didn't think much about it---a backend to read directories.  Big deal.
8844
8845 @code{ange-ftp} changes that picture dramatically.  For instance, if you
8846 enter @file{"/ftp.hpc.uh.edu:/pub/emacs/ding-list/"} as the the
8847 directory name, ange-ftp will actually allow you to read this directory
8848 over at @samp{sina} as a newsgroup.  Distributed news ahoy!
8849
8850 @code{nndir} will use @sc{nov} files if they are present.
8851
8852 @code{nndir} is a ``read-only'' backend---you can't delete or expire
8853 articles with this method.  You can use @code{nnmh} or @code{nnml} for
8854 whatever you use @code{nndir} for, so you could switch to any of those
8855 methods if you feel the need to have a non-read-only @code{nndir}.
8856
8857
8858 @node Anything Groups
8859 @subsection Anything Groups
8860 @cindex nneething
8861
8862 From the @code{nndir} backend (which reads a single spool-like
8863 directory), it's just a hop and a skip to @code{nneething}, which
8864 pretends that any random directory is a newsgroup.  Strange, but true.
8865
8866 When @code{nneething} is presented with a directory, it will scan this
8867 directory and assign article numbers to each file.  When you enter such
8868 a group, @code{nneething} must create ``headers'' that Gnus can use.
8869 After all, Gnus is a newsreader, in case you're
8870 forgetting. @code{nneething} does this in a two-step process.  First, it
8871 snoops each file in question.  If the file looks like an article (i.e.,
8872 the first few lines look like headers), it will use this as the head.
8873 If this is just some random file without a head (eg. a C source file),
8874 @code{nneething} will cobble up a header out of thin air.  It will use
8875 file ownership, name and date and do whatever it can with these
8876 elements.
8877
8878 All this should happen automatically for you, and you will be presented
8879 with something that looks very much like a newsgroup.  Totally like a
8880 newsgroup, to be precise.  If you select an article, it will be displayed
8881 in the article buffer, just as usual.
8882
8883 If you select a line that represents a directory, Gnus will pop you into
8884 a new summary buffer for this @code{nneething} group.  And so on.  You can
8885 traverse the entire disk this way, if you feel like, but remember that
8886 Gnus is not dired, really, and does not intend to be, either.
8887
8888 There are two overall modes to this action---ephemeral or solid.  When
8889 doing the ephemeral thing (i.e., @kbd{G D} from the group buffer), Gnus
8890 will not store information on what files you have read, and what files
8891 are new, and so on.  If you create a solid @code{nneething} group the
8892 normal way with @kbd{G m}, Gnus will store a mapping table between
8893 article numbers and file names, and you can treat this group like any
8894 other groups.  When you activate a solid @code{nneething} group, you will
8895 be told how many unread articles it contains, etc., etc.
8896
8897 Some variables:
8898
8899 @table @code
8900 @item nneething-map-file-directory
8901 @vindex nneething-map-file-directory
8902 All the mapping files for solid @code{nneething} groups will be stored
8903 in this directory, which defaults to @file{~/.nneething/}.
8904
8905 @item nneething-exclude-files
8906 @vindex nneething-exclude-files
8907 All files that match this regexp will be ignored.  Nice to use to exclude
8908 auto-save files and the like, which is what it does by default.
8909
8910 @item nneething-map-file
8911 @vindex nneething-map-file
8912 Name of the map files.
8913 @end table
8914
8915
8916 @node Document Groups
8917 @subsection Document Groups
8918 @cindex nndoc
8919 @cindex documentation group
8920 @cindex help group
8921
8922 @code{nndoc} is a cute little thing that will let you read a single file
8923 as a newsgroup.  Several files types are supported:
8924
8925 @table @code
8926 @cindex babyl
8927 @cindex rmail mbox
8928
8929 @item babyl
8930 The babyl (rmail) mail box.
8931 @cindex mbox
8932 @cindex Unix mbox
8933
8934 @item mbox
8935 The standard Unix mbox file.
8936
8937 @cindex MMDF mail box
8938 @item mmdf
8939 The MMDF mail box format.
8940
8941 @item news
8942 Several news articles appended into a file.
8943
8944 @item rnews
8945 @cindex rnews batch files
8946 The rnews batch transport format.
8947 @cindex forwarded messages
8948
8949 @item forward
8950 Forwarded articles.
8951
8952 @item mime-digest
8953 @cindex digest
8954 @cindex MIME digest
8955 @cindex 1153 digest
8956 @cindex RFC 1153 digest
8957 @cindex RFC 341 digest
8958 MIME (RFC 1341) digest format.
8959
8960 @item standard-digest
8961 The standard (RFC 1153) digest format.
8962
8963 @item slack-digest
8964 Non-standard digest format---matches most things, but does it badly. 
8965 @end table
8966
8967 You can also use the special ``file type'' @code{guess}, which means
8968 that @code{nndoc} will try to guess what file type it is looking at.
8969 @code{digest} means that @code{nndoc} should guess what digest type the
8970 file is.
8971
8972 @code{nndoc} will not try to change the file or insert any extra headers into
8973 it---it will simply, like, let you use the file as the basis for a
8974 group.  And that's it.
8975
8976 If you have some old archived articles that you want to insert into your
8977 new & spiffy Gnus mail backend, @code{nndoc} can probably help you with
8978 that.  Say you have an old @file{RMAIL} file with mail that you now want
8979 to split into your new @code{nnml} groups.  You look at that file using
8980 @code{nndoc}, set the process mark on all the articles in the buffer
8981 (@kbd{M P b}, for instance), and then re-spool (@kbd{B r}) using
8982 @code{nnml}.  If all goes well, all the mail in the @file{RMAIL} file is
8983 now also stored in lots of @code{nnml} directories, and you can delete
8984 that pesky @file{RMAIL} file.  If you have the guts!  
8985
8986 Virtual server variables:
8987
8988 @table @code
8989 @item nndoc-article-type
8990 @vindex nndoc-article-type
8991 This should be one of @code{mbox}, @code{babyl}, @code{digest},
8992 @code{mmdf}, @code{forward}, @code{news}, @code{rnews},
8993 @code{mime-digest}, @code{clari-briefs}, or @code{guess}.
8994
8995 @item nndoc-post-type
8996 @vindex nndoc-post-type
8997 This variable says whether Gnus is to consider the group a news group or
8998 a mail group.  There are two legal values:  @code{mail} (the default)
8999 and @code{news}.
9000 @end table
9001
9002
9003 @node SOUP
9004 @subsection SOUP
9005 @cindex SOUP
9006 @cindex offline
9007
9008 In the PC world people often talk about ``offline'' newsreaders.  These
9009 are thingies that are combined reader/news transport monstrosities.
9010 With built-in modem programs.  Yecchh!
9011
9012 Of course, us Unix Weenie types of human beans use things like
9013 @code{uucp} and, like, @code{nntpd} and set up proper news and mail
9014 transport things like Ghod intended.  And then we just use normal
9015 newsreaders.  
9016
9017 However, it can sometimes be convenient to do something a that's a bit
9018 easier on the brain if you have a very slow modem, and you're not really
9019 that interested in doing things properly.  
9020
9021 A file format called @sc{soup} has been developed for transporting news
9022 and mail from servers to home machines and back again.  It can be a bit
9023 fiddly.
9024
9025 @enumerate
9026
9027 @item
9028 You log in on the server and create a @sc{soup} packet.  You can either
9029 use a dedicated @sc{soup} thingie, or you can use Gnus to create the
9030 packet with the @kbd{O s} command.
9031
9032 @item 
9033 You transfer the packet home.  Rail, boat, car or modem will do fine.
9034
9035 @item
9036 You put the packet in your home directory.
9037
9038 @item
9039 You fire up Gnus using the @code{nnsoup} backend as the native server.
9040
9041 @item
9042 You read articles and mail and answer and followup to the things you
9043 want.
9044
9045 @item 
9046 You do the @kbd{G s r} command to pack these replies into a @sc{soup}
9047 packet.
9048
9049 @item 
9050 You transfer this packet to the server.  
9051
9052 @item
9053 You use Gnus to mail this packet out with the @kbd{G s s} command.
9054
9055 @item
9056 You then repeat until you die.
9057
9058 @end enumerate
9059
9060 So you basically have a bipartite system---you use @code{nnsoup} for
9061 reading and Gnus for packing/sending these @sc{soup} packets.
9062
9063 @menu
9064 * SOUP Commands::     Commands for creating and sending @sc{soup} packets
9065 * SOUP Groups::       A backend for reading @sc{soup} packets.
9066 * SOUP Replies::      How to enable @code{nnsoup} to take over mail and news.
9067 @end menu
9068
9069
9070 @node SOUP Commands
9071 @subsubsection SOUP Commands
9072
9073 @table @kbd
9074 @item G s b
9075 @kindex G s b (Group)
9076 @findex gnus-group-brew-soup
9077 Pack all unread articles in the current group
9078 (@code{gnus-group-brew-soup}).  This command understands the
9079 process/prefix convention.
9080
9081 @item G s w
9082 @kindex G s w (Group)
9083 @findex gnus-soup-save-areas
9084 Save all data files (@code{gnus-soup-save-areas}).
9085
9086 @item G s s
9087 @kindex G s s (Group)
9088 @findex gnus-soup-send-replies
9089 Send all replies from the replies packet
9090 (@code{gnus-soup-send-replies}). 
9091
9092 @item G s p
9093 @kindex G s p (Group)
9094 @findex gnus-soup-pack-packet
9095 Pack all files into a @sc{soup} packet (@code{gnus-soup-pack-packet}). 
9096
9097 @item G s r
9098 @kindex G s r (Group)
9099 @findex nnsoup-pack-replies
9100 Pack all replies into a replies packet (@code{nnsoup-pack-replies}). 
9101
9102 @item O s
9103 @kindex O s (Summary)
9104 @findex gnus-soup-add-article
9105 This summary-mode command adds the current article to a @sc{soup} packet
9106 (@code{gnus-soup-add-article}).  It understands the process/prefix
9107 convention. 
9108
9109 @end table
9110
9111
9112 There are a few variables to customize where Gnus will put all these
9113 thingies:  
9114
9115 @table @code
9116
9117 @item gnus-soup-directory
9118 @vindex gnus-soup-directory
9119 Directory where Gnus will save intermediate files while composing
9120 @sc{soup} packets.  The default is @file{~/SoupBrew/}. 
9121
9122 @item gnus-soup-replies-directory
9123 @vindex gnus-soup-replies-directory
9124 This is what Gnus will use as a temporary directory while sending our
9125 reply packets.  The default is @file{~/SoupBrew/SoupReplies/}. 
9126
9127 @item gnus-soup-prefix-file
9128 @vindex gnus-soup-prefix-file
9129 Name of the file where Gnus stores the last used prefix.  The default is
9130 @samp{gnus-prefix}. 
9131
9132 @item gnus-soup-packer
9133 @vindex gnus-soup-packer
9134 A format string command for packing a @sc{soup} packet.  The default is
9135 @samp{tar cf - %s | gzip > $HOME/Soupout%d.tgz}. 
9136
9137 @item gnus-soup-unpacker
9138 @vindex gnus-soup-unpacker
9139 Format string command for unpacking a @sc{soup} packet.  The default is
9140 @samp{gunzip -c %s | tar xvf -}.
9141
9142 @item gnus-soup-packet-directory
9143 @vindex gnus-soup-packet-directory
9144 Where Gnus will look for reply packets.  The default is @file{~/}. 
9145
9146 @item gnus-soup-packet-regexp
9147 @vindex gnus-soup-packet-regexp
9148 Regular expression matching @sc{soup} reply packets in
9149 @code{gnus-soup-packet-directory}. 
9150
9151 @end table
9152  
9153
9154 @node SOUP Groups
9155 @subsubsection @sc{soup} Groups
9156 @cindex nnsoup
9157
9158 @code{nnsoup} is the backend for reading @sc{soup} packets.  It will
9159 read incoming packets, unpack them, and put them in a directory where
9160 you can read them at leisure.
9161
9162 These are the variables you can use to customize its behavior:
9163
9164 @table @code
9165
9166 @item nnsoup-tmp-directory
9167 @vindex nnsoup-tmp-directory
9168 When @code{nnsoup} unpacks a @sc{soup} packet, it does it in this
9169 directory.  (@file{/tmp/} by default.)  
9170
9171 @item nnsoup-directory
9172 @vindex nnsoup-directory
9173 @code{nnsoup} then moves each message and index file to this directory.
9174 The default is @file{~/SOUP/}.
9175
9176 @item nnsoup-replies-directory 
9177 @vindex nnsoup-replies-directory 
9178 All replies will stored in this directory before being packed into a
9179 reply packet.  The default is @file{~/SOUP/replies/"}.
9180
9181 @item nnsoup-replies-format-type
9182 @vindex nnsoup-replies-format-type
9183 The @sc{soup} format of the replies packets.  The default is @samp{?n}
9184 (rnews), and I don't think you should touch that variable.  I probably
9185 shouldn't even have documented it.  Drats!  Too late!
9186
9187 @item nnsoup-replies-index-type
9188 @vindex nnsoup-replies-index-type
9189 The index type of the replies packet.  The is @samp{?n}, which means
9190 ``none''.  Don't fiddle with this one either!
9191
9192 @item nnsoup-active-file
9193 @vindex nnsoup-active-file
9194 Where @code{nnsoup} stores lots of information.  This is not an ``active
9195 file'' in the @code{nntp} sense; it's an Emacs Lisp file.  If you lose
9196 this file or mess it up in any way, you're dead.  The default is
9197 @file{~/SOUP/active}.
9198
9199 @item nnsoup-packer
9200 @vindex nnsoup-packer
9201 Format string command for packing a reply @sc{soup} packet.  The default
9202 is @samp{tar cf - %s | gzip > $HOME/Soupin%d.tgz}. 
9203
9204 @item nnsoup-unpacker
9205 @vindex nnsoup-unpacker
9206 Format string command for unpacking incoming @sc{soup} packets.  The
9207 default is @samp{gunzip -c %s | tar xvf -}. 
9208
9209 @item nnsoup-packet-directory
9210 @vindex nnsoup-packet-directory
9211 Where @code{nnsoup} will look for incoming packets.  The default is
9212 @file{~/}.  
9213
9214 @item nnsoup-packet-regexp
9215 @vindex nnsoup-packet-regexp
9216 Regular expression matching incoming @sc{soup} packets.  The default is
9217 @samp{Soupout}. 
9218
9219 @end table
9220
9221
9222 @node SOUP Replies
9223 @subsubsection SOUP Replies
9224
9225 Just using @code{nnsoup} won't mean that your postings and mailings end
9226 up in @sc{soup} reply packets automagically.  You have to work a bit
9227 more for that to happen.
9228
9229 @findex nnsoup-set-variables
9230 The @code{nnsoup-set-variables} command will set the appropriate
9231 variables to ensure that all your followups and replies end up in the
9232 @sc{soup} system.
9233
9234 In specific, this is what it does:
9235
9236 @lisp
9237 (setq gnus-inews-article-function 'nnsoup-request-post)
9238 (setq send-mail-function 'nnsoup-request-mail)
9239 @end lisp
9240
9241 And that's it, really.  If you only want news to go into the @sc{soup}
9242 system you just use the first line.  If you only want mail to be
9243 @sc{soup}ed you use the second.
9244
9245
9246 @node Combined Groups
9247 @section Combined Groups
9248
9249 Gnus allows combining a mixture of all the other group types into bigger
9250 groups.
9251
9252 @menu
9253 * Virtual Groups::     Combining articles from many groups.
9254 * Kibozed Groups::     Looking through parts of the newsfeed for articles.
9255 @end menu
9256
9257
9258 @node Virtual Groups
9259 @subsection Virtual Groups
9260 @cindex nnvirtual
9261 @cindex virtual groups
9262
9263 An @dfn{nnvirtual group} is really nothing more than a collection of
9264 other groups.
9265
9266 For instance, if you are tired of reading many small group, you can
9267 put them all in one big group, and then grow tired of reading one
9268 big, unwieldy group.  The joys of computing!
9269
9270 You specify @code{nnvirtual} as the method.  The address should be a
9271 regexp to match component groups.
9272
9273 All marks in the virtual group will stick to the articles in the
9274 component groups.  So if you tick an article in a virtual group, the
9275 article will also be ticked in the component group from whence it came.
9276 (And vice versa---marks from the component groups will also be shown in
9277 the virtual group.)
9278
9279 Here's an example @code{nnvirtual} method that collects all Andrea Dworkin
9280 newsgroups into one, big, happy newsgroup:
9281
9282 @lisp
9283 (nnvirtual "^alt\\.fan\\.andrea-dworkin$\\|^rec\\.dworkin.*")
9284 @end lisp
9285
9286 The component groups can be native or foreign; everything should work
9287 smoothly, but if your computer explodes, it was probably my fault.
9288
9289 Collecting the same group from several servers might actually be a good
9290 idea if users have set the Distribution header to limit distribution.
9291 If you would like to read @samp{soc.motss} both from a server in Japan
9292 and a server in Norway, you could use the following as the group regexp:
9293
9294 @example
9295 "^nntp+some.server.jp:soc.motss$\\|^nntp+some.server.no:soc.motss$"
9296 @end example
9297
9298 This should work kinda smoothly---all articles from both groups should
9299 end up in this one, and there should be no duplicates.  Threading (and
9300 the rest) will still work as usual, but there might be problems with the
9301 sequence of articles.  Sorting on date might be an option here
9302 (@pxref{Selecting a Group}.
9303
9304 One limitation, however---all groups that are included in a virtual
9305 group has to be alive (i.e., subscribed or unsubscribed).  Killed or
9306 zombie groups can't be component groups for @code{nnvirtual} groups.
9307
9308 @vindex nnvirtual-always-rescan
9309 If the @code{nnvirtual-always-rescan} is non-@code{nil},
9310 @code{nnvirtual} will always scan groups for unread articles when
9311 entering a virtual group.  If this variable is @code{nil} (which is the
9312 default) and you read articles in a component group after the virtual
9313 group has been activated, the read articles from the component group
9314 will show up when you enter the virtual group.  You'll also see this
9315 effect if you have two virtual groups that contain the same component
9316 group.  If that's the case, you should set this variable to @code{t}.
9317 Or you can just tap @code{M-g} on the virtual group every time before
9318 you enter it---it'll have much the same effect.
9319
9320
9321 @node Kibozed Groups
9322 @subsection Kibozed Groups
9323 @cindex nnkiboze
9324 @cindex kibozing
9325
9326 @dfn{Kibozing} is defined by @sc{oed} as ``grepping through (parts of)
9327 the news feed''.  @code{nnkiboze} is a backend that will do this for
9328 you.  Oh joy!  Now you can grind any @sc{nntp} server down to a halt
9329 with useless requests!  Oh happiness!
9330
9331 The address field of the @code{nnkiboze} method is, as with
9332 @code{nnvirtual}, a regexp to match groups to be ``included'' in the
9333 @code{nnkiboze} group.  There most similarities between @code{nnkiboze}
9334 and @code{nnvirtual} ends.
9335
9336 In addition to this regexp detailing component groups, an @code{nnkiboze} group
9337 must have a score file to say what articles that are to be included in
9338 the group (@pxref{Scoring}).
9339
9340 @kindex M-x nnkiboze-generate-groups
9341 @findex nnkiboze-generate-groups
9342 You must run @kbd{M-x nnkiboze-generate-groups} after creating the
9343 @code{nnkiboze} groups you want to have.  This command will take time.  Lots of
9344 time.  Oodles and oodles of time.  Gnus has to fetch the headers from
9345 all the articles in all the components groups and run them through the
9346 scoring process to determine if there are any articles in the groups
9347 that are to be part of the @code{nnkiboze} groups.
9348
9349 Please limit the number of component groups by using restrictive
9350 regexps.  Otherwise your sysadmin may become annoyed with you, and the
9351 @sc{nntp} site may throw you off and never let you back in again.
9352 Stranger things have happened.
9353
9354 @code{nnkiboze} component groups do not have to be alive---they can be dead,
9355 and they can be foreign.  No restrictions.
9356
9357 @vindex nnkiboze-directory
9358 The generation of an @code{nnkiboze} group means writing two files in
9359 @code{nnkiboze-directory}, which is @file{~/News/} by default.  One
9360 contains the @sc{nov} header lines for all the articles in the group,
9361 and the other is an additional @file{.newsrc} file to store information
9362 on what groups that have been searched through to find component
9363 articles.
9364
9365 Articles that are marked as read in the @code{nnkiboze} group will have their
9366 @sc{nov} lines removed from the @sc{nov} file.
9367
9368
9369 @node Scoring
9370 @chapter Scoring
9371 @cindex scoring
9372
9373 Other people use @dfn{kill files}, but we here at Gnus Towers like
9374 scoring better than killing, so we'd rather switch than fight.  They do
9375 something completely different as well, so sit up straight and pay
9376 attention!
9377
9378 @vindex gnus-summary-mark-below
9379 All articles have a default score (@code{gnus-summary-default-score}),
9380 which is 0 by default.  This score may be raised or lowered either
9381 interactively or by score files.  Articles that have a score lower than
9382 @code{gnus-summary-mark-below} are marked as read.
9383
9384 Gnus will read any @dfn{score files} that apply to the current group
9385 before generating the summary buffer.
9386
9387 There are several commands in the summary buffer that insert score
9388 entries based on the current article.  You can, for instance, ask Gnus to
9389 lower or increase the score of all articles with a certain subject.
9390
9391 There are two sorts of scoring entries: Permanent and temporary.
9392 Temporary score entries are self-expiring entries.  Any entries that are
9393 temporary and have not been used for, say, a week, will be removed
9394 silently to help keep the sizes of the score files down.
9395
9396 @menu 
9397 * Summary Score Commands::   Adding score entries for the current group.
9398 * Group Score Commands::     General score commands.
9399 * Score Variables::          Customize your scoring.  (My, what terminology).
9400 * Score File Format::        What a score file may contain.
9401 * Score File Editing::       You can edit score files by hand as well.
9402 * Adaptive Scoring::         Big Sister Gnus *knows* what you read.
9403 * Followups To Yourself::    Having Gnus notice when people answer you.
9404 * Scoring Tips::             How to score effectively.
9405 * Reverse Scoring::          That problem child of old is not problem.
9406 * Global Score Files::       Earth-spanning, ear-splitting score files.
9407 * Kill Files::               They are still here, but they can be ignored.
9408 @end menu
9409
9410
9411 @node Summary Score Commands
9412 @section Summary Score Commands
9413 @cindex score commands
9414
9415 The score commands that alter score entries do not actually modify real
9416 score files.  That would be too inefficient.  Gnus maintains a cache of
9417 previously loaded score files, one of which is considered the
9418 @dfn{current score file alist}.  The score commands simply insert
9419 entries into this list, and upon group exit, this list is saved.
9420
9421 The current score file is by default the group's local score file, even
9422 if no such score file actually exists.  To insert score commands into
9423 some other score file (eg. @file{all.SCORE}), you must first make this
9424 score file the current one.
9425
9426 General score commands that don't actually change the score file:
9427
9428 @table @kbd
9429
9430 @item V s
9431 @kindex V s (Summary)
9432 @findex gnus-summary-set-score
9433 Set the score of the current article (@code{gnus-summary-set-score}).  
9434
9435 @item V S
9436 @kindex V S (Summary)
9437 @findex gnus-summary-current-score
9438 Display the score of the current article
9439 (@code{gnus-summary-current-score}).   
9440
9441 @item V t
9442 @kindex V t (Summary)
9443 @findex gnus-score-find-trace
9444 Display all score rules that have been used on the current article
9445 (@code{gnus-score-find-trace}).   
9446
9447 @item V R
9448 @cindex V R (Summary)
9449 @findex gnus-summary-rescore
9450 Run the current summary through the scoring process
9451 (@code{gnus-summary-rescore}).  This might be useful if you're playing
9452 around with your score files behind Gnus' back and want to see the
9453 effect you're having.
9454
9455 @item V a
9456 @kindex V a (Summary)
9457 @findex gnus-summary-score-entry
9458 Add a new score entry, and allow specifying all elements 
9459 (@code{gnus-summary-score-entry}).
9460
9461 @item V c
9462 @kindex V c (Summary)
9463 @findex gnus-score-change-score-file
9464 Make a different score file the current
9465 (@code{gnus-score-change-score-file}). 
9466
9467 @item V e
9468 @kindex V e (Summary)
9469 @findex gnus-score-edit-current-scores
9470 Edit the current score file (@code{gnus-score-edit-current-scores}).
9471 You will be popped into a @code{gnus-score-mode} buffer (@pxref{Score
9472 File Editing}).
9473
9474 @item V f
9475 @kindex V f (Summary)
9476 @findex gnus-score-edit-file
9477 Edit a score file and make this score file the current one
9478 (@code{gnus-score-edit-file}).
9479
9480 @item V C
9481 @kindex V C (Summary)
9482 @findex gnus-score-customize
9483 Customize a score file in a visually pleasing manner
9484 (@code{gnus-score-customize}). 
9485
9486 @item I C-i
9487 @kindex I C-i (Summary)
9488 @findex gnus-summary-raise-score
9489 Increase the score of the current article
9490 (@code{gnus-summary-raise-score}).
9491
9492 @item L C-l
9493 @kindex L C-l (Summary)
9494 @findex gnus-summary-lower-score
9495 Lower the score of the current article
9496 (@code{gnus-summary-lower-score}). 
9497 @end table
9498
9499 The rest of these commands modify the local score file.
9500
9501 @table @kbd
9502
9503 @item V m
9504 @kindex V m (Summary)
9505 @findex gnus-score-set-mark-below
9506 Prompt for a score, and mark all articles with a score below this as
9507 read (@code{gnus-score-set-mark-below}).
9508
9509 @item V E
9510 @kindex V E (Summary)
9511 @findex gnus-score-set-expunge-below
9512 Expunge all articles with a score below the default score (or the
9513 numeric prefix) (@code{gnus-score-set-expunge-below}).
9514 @end table
9515
9516 The keystrokes for actually making score entries follow a very regular
9517 pattern, so there's no need to list all the commands.  (Hundreds of
9518 them.)  
9519
9520 @enumerate
9521 @item
9522 The first key is either @kbd{I} (upper case i) for increasing the score
9523 or @kbd{L} for lowering the score. 
9524 @item
9525 The second key says what header you want to score on.  The following
9526 keys are available:
9527 @table @kbd
9528
9529 @item a
9530 Score on the author name.
9531
9532 @item s
9533 Score on the subject line.
9534
9535 @item x
9536 Score on the Xref line---i.e., the cross-posting line.
9537
9538 @item t
9539 Score on thread---the References line.
9540
9541 @item d
9542 Score on the date.
9543
9544 @item l
9545 Score on the number of lines.
9546
9547 @item i
9548 Score on the Message-ID.
9549
9550 @item f
9551 Score on followups.
9552
9553 @item b
9554 Score on the body.
9555
9556 @item h
9557 Score on the head.
9558 @end table
9559
9560 @item
9561 The third key is the match type.  Which match types are legal depends on
9562 what headers you are scoring on.
9563
9564 @table @code
9565
9566 @item strings 
9567
9568 @table @kbd
9569
9570 @item e
9571 Exact matching.
9572
9573 @item s
9574 Substring matching.
9575
9576 @item f
9577 Fuzzy matching.
9578
9579 @item r
9580 Regexp matching
9581 @end table
9582
9583 @item date
9584 @table @kbd
9585
9586 @item b
9587 Before date.
9588
9589 @item a
9590 At date.
9591
9592 @item n
9593 This date.
9594 @end table
9595
9596 @item number
9597 @table @kbd
9598
9599 @item <
9600 Less than number.
9601
9602 @item =
9603 Equal to number.
9604
9605 @item >
9606 Greater than number.
9607 @end table
9608 @end table
9609
9610 @item 
9611 The fourth and final key says whether this is a temporary (i.e., expiring)
9612 score entry, or a permanent (i.e., non-expiring) score entry, or whether
9613 it is to be done immediately, without adding to the score file.
9614 @table @kbd
9615
9616 @item t
9617 Temporary score entry.
9618
9619 @item p
9620 Permanent score entry.
9621
9622 @item i
9623 Immediately scoring.
9624 @end table
9625
9626 @end enumerate
9627
9628 So, let's say you want to increase the score on the current author with
9629 exact matching permanently: @kbd{I a e p}.  If you want to lower the
9630 score based on the subject line, using substring matching, and make a
9631 temporary score entry: @kbd{L s s t}.  Pretty easy.
9632
9633 To make things a bit more complicated, there are shortcuts.  If you use
9634 a capital letter on either the second or third keys, Gnus will use
9635 defaults for the remaining one or two keystrokes.  The defaults are
9636 ``substring'' and ``temporary''.  So @kbd{I A} is the same as @kbd{I a s
9637 t}, and @kbd{I a R} is the same as @kbd{I a r t}.
9638
9639 @vindex gnus-score-mimic-keymap
9640 The @code{gnus-score-mimic-keymap} says whether these commands will
9641 pretend they are keymaps or not.
9642
9643
9644 @node Group Score Commands
9645 @section Group Score Commands
9646 @cindex group score commands
9647
9648 There aren't many of these as yet, I'm afraid.
9649
9650 @table @kbd
9651
9652 @item W f
9653 @kindex W f (Group)
9654 @findex gnus-score-flush-cache
9655 Gnus maintains a cache of score alists to avoid having to reload them
9656 all the time.  This command will flush the cache
9657 (@code{gnus-score-flush-cache}). 
9658
9659 @end table
9660
9661
9662 @node Score Variables
9663 @section Score Variables
9664 @cindex score variables
9665
9666 @table @code
9667
9668 @item gnus-use-scoring
9669 @vindex gnus-use-scoring
9670 If @code{nil}, Gnus will not check for score files, and will not, in
9671 general, do any score-related work.  This is @code{t} by default.
9672
9673 @item gnus-kill-killed
9674 @vindex gnus-kill-killed
9675 If this variable is @code{nil}, Gnus will never apply score files to
9676 articles that have already been through the kill process.  While this
9677 may save you lots of time, it also means that if you apply a kill file
9678 to a group, and then change the kill file and want to run it over you
9679 group again to kill more articles, it won't work.  You have to set this
9680 variable to @code{t} to do that.  (It is @code{t} by default.)
9681
9682 @item gnus-kill-files-directory
9683 @vindex gnus-kill-files-directory
9684 All kill and score files will be stored in this directory, which is
9685 initialized from the @code{SAVEDIR} environment variable by default.
9686 This is @file{~/News/} by default.
9687
9688 @item gnus-score-file-suffix
9689 @vindex gnus-score-file-suffix
9690 Suffix to add to the group name to arrive at the score file name
9691 (@samp{SCORE} by default.)
9692
9693 @item gnus-score-uncacheable-files
9694 @vindex gnus-score-uncacheable-files
9695 @cindex score cache
9696 All score files are normally cached to avoid excessive re-loading of
9697 score files.  However, if this might make you Emacs grow big and
9698 bloated, so this regexp can be used to weed out score files that are
9699 unlikely to be needed again.  It would be a bad idea to deny caching of
9700 @file{all.SCORE}, while it might be a good idea to not cache
9701 @file{comp.infosystems.www.authoring.misc.ADAPT}.  In fact, this
9702 variable is @samp{ADAPT$} by default, so no adaptive score files will
9703 be cached.
9704
9705 @item gnus-save-score
9706 @vindex gnus-save-score
9707 If you have really complicated score files, and do lots of batch
9708 scoring, then you might set this variable to @code{t}.  This will make
9709 Gnus save the scores into the @file{.newsrc.eld} file.
9710
9711 @item gnus-score-interactive-default-score
9712 @vindex gnus-score-interactive-default-score
9713 Score used by all the interactive raise/lower commands to raise/lower
9714 score with.  Default is 1000, which may seem excessive, but this is to
9715 ensure that the adaptive scoring scheme gets enough room to play with.
9716 We don't want the small changes from the adaptive scoring to overwrite
9717 manually entered data.
9718
9719 @item gnus-summary-default-score
9720 @vindex gnus-summary-default-score
9721 Default score of an article, which is 0 by default.
9722
9723 @item gnus-score-over-mark
9724 @vindex gnus-score-over-mark
9725 Mark (in the third column) used for articles with a score over the
9726 default.  Default is @samp{+}.
9727
9728 @item gnus-score-below-mark
9729 @vindex gnus-score-below-mark
9730 Mark (in the third column) used for articles with a score below the
9731 default.  Default is @samp{-}.
9732
9733 @item gnus-score-find-score-files-function
9734 @vindex gnus-score-find-score-files-function
9735 Function used to find score files for the current group.  This function
9736 is called with the name of the group as the argument. 
9737
9738 Predefined functions available are:
9739 @table @code
9740
9741 @item gnus-score-find-single
9742 @findex gnus-score-find-single
9743 Only apply the group's own score file.
9744
9745 @item gnus-score-find-bnews
9746 @findex gnus-score-find-bnews
9747 Apply all score files that match, using bnews syntax.  This is the
9748 default.  For instance, if the current group is @samp{gnu.emacs.gnus},
9749 @file{all.emacs.all.SCORE}, @file{not.alt.all.SCORE} and
9750 @file{gnu.all.SCORE} would all apply.  In short, the instances of
9751 @samp{all} in the score file names are translated into @samp{.*}, and
9752 then a regexp match is done.
9753
9754 This means that if you have some score entries that you want to apply to
9755 all groups, then you put those entries in the @file{all.SCORE} file. 
9756
9757 @item gnus-score-find-hierarchical
9758 @findex gnus-score-find-hierarchical
9759 Apply all score files from all the parent groups.  This means that you
9760 can't have score files like @file{all.SCORE} or @file{all.emacs.SCORE},
9761 but you can have @file{SCORE},  @file{comp.SCORE} and
9762 @file{comp.emacs.SCORE}. 
9763
9764 @end table
9765 This variable can also be a list of functions.  In that case, all these
9766 functions will be called, and all the returned lists of score files will
9767 be applied.  These functions can also return lists of score alists
9768 directly.  In that case, the functions that return these non-file score
9769 alists should probably be placed before the ``real'' score file
9770 functions, to ensure that the last score file returned is the local
9771 score file.  Phu.
9772
9773 @item gnus-score-expiry-days
9774 @vindex gnus-score-expiry-days
9775 This variable says how many days should pass before an unused score file
9776 entry is expired.  If this variable is @code{nil}, no score file entries
9777 are expired.  It's 7 by default.
9778
9779 @item gnus-update-score-entry-dates
9780 @vindex gnus-update-score-entry-dates
9781 If this variable is non-@code{nil}, matching score entries will have
9782 their dates updated.  (This is how Gnus controls expiry---all
9783 non-matching entries will become too old while matching entries will
9784 stay fresh and young.)  However, if you set this variable to @code{nil},
9785 even matching entries will grow old and will have to face that oh-so
9786 grim reaper.  
9787
9788 @item gnus-score-after-write-file-function
9789 @vindex gnus-score-after-write-file-function
9790 Function called with the name of the score file just written.
9791
9792 @end table
9793
9794
9795 @node Score File Format
9796 @section Score File Format
9797 @cindex score file format
9798
9799 A score file is an @code{emacs-lisp} file that normally contains just a
9800 single form.  Casual users are not expected to edit these files;
9801 everything can be changed from the summary buffer.
9802
9803 Anyway, if you'd like to dig into it yourself, here's an example:
9804
9805 @lisp
9806 (("from"
9807   ("Lars Ingebrigtsen" -10000)
9808   ("Per Abrahamsen")
9809   ("larsi\\|lmi" -50000 nil R))
9810  ("subject"
9811   ("Ding is Badd" nil 728373))
9812  ("xref"
9813   ("alt.politics" -1000 728372 s))
9814  ("lines"
9815   (2 -100 nil <))
9816  (mark 0)
9817  (expunge -1000)
9818  (mark-and-expunge -10)
9819  (read-only nil)
9820  (orphan -10)
9821  (adapt t)
9822  (files "/hom/larsi/News/gnu.SCORE")
9823  (exclude-files "all.SCORE")
9824  (local (gnus-newsgroup-auto-expire t)
9825         (gnus-summary-make-false-root 'empty))
9826  (eval (ding)))
9827 @end lisp
9828
9829 This example demonstrates absolutely everything about a score file. 
9830
9831 Even though this looks much like lisp code, nothing here is actually
9832 @code{eval}ed.  The lisp reader is used to read this form, though, so it
9833 has to be legal syntactically, if not semantically.
9834
9835 Six keys are supported by this alist:
9836
9837 @table @code
9838
9839 @item STRING
9840 If the key is a string, it is the name of the header to perform the
9841 match on.  Scoring can only be performed on these eight headers:
9842 @code{From}, @code{Subject}, @code{References}, @code{Message-ID},
9843 @code{Xref}, @code{Lines}, @code{Chars} and @code{Date}.  In addition to
9844 these headers, there are three strings to tell Gnus to fetch the entire
9845 article and do the match on larger parts of the article: @code{Body}
9846 will perform the match on the body of the article, @code{Head} will
9847 perform the match on the head of the article, and @code{All} will
9848 perform the match on the entire article.  Note that using any of these
9849 last three keys will slow down group entry @emph{considerably}.  The
9850 final ``header'' you can score on is @code{Followup}.  These score
9851 entries will result in new score entries being added for all follow-ups
9852 to articles that matches these score entries.
9853
9854 Following this key is a random number of score entries, where each score
9855 entry has one to four elements.
9856 @enumerate
9857
9858 @item 
9859 The first element is the @dfn{match element}.  On most headers this will
9860 be a string, but on the Lines and Chars headers, this must be an
9861 integer. 
9862
9863 @item 
9864 If the second element is present, it should be a number---the @dfn{score
9865 element}.  This number should be an integer in the neginf to posinf
9866 interval.  This number is added to the score of the article if the match
9867 is successful.  If this element is not present, the
9868 @code{gnus-score-interactive-default-score} number will be used
9869 instead.  This is 1000 by default.
9870
9871 @item 
9872 If the third element is present, it should be a number---the @dfn{date
9873 element}.  This date says when the last time this score entry matched,
9874 which provides a mechanism for expiring the score entries.  It this
9875 element is not present, the score entry is permanent.  The date is
9876 represented by the number of days since December 31, 1 ce.
9877
9878 @item 
9879 If the fourth element is present, it should be a symbol---the @dfn{type
9880 element}.  This element specifies what function should be used to see
9881 whether this score entry matches the article.  What match types that can
9882 be used depends on what header you wish to perform the match on.
9883 @table @dfn
9884
9885 @item From, Subject, References, Xref, Message-ID
9886 For most header types, there are the @code{r} and @code{R} (regexp) as
9887 well as @code{s} and @code{S} (substring) types and @code{e} and
9888 @code{E} (exact match) types.  If this element is not present, Gnus will
9889 assume that substring matching should be used.  @code{R} and @code{S}
9890 differ from the other two in that the matches will be done in a
9891 case-sensitive manner.  All these one-letter types are really just
9892 abbreviations for the @code{regexp}, @code{string} and @code{exact}
9893 types, which you can use instead, if you feel like.
9894
9895 @item Lines, Chars
9896 These two headers use different match types: @code{<}, @code{>},
9897 @code{=}, @code{>=} and @code{<=}.
9898
9899 @item Date
9900 For the Date header we have three match types: @code{before}, @code{at}
9901 and @code{after}.  I can't really imagine this ever being useful, but,
9902 like, it would feel kinda silly not to provide this function.  Just in
9903 case.  You never know.  Better safe than sorry.  Once burnt, twice shy.
9904 Don't judge a book by its cover.  Never not have sex on a first date.
9905
9906 @item Head, Body, All
9907 These three match keys use the same match types as the @code{From} (etc)
9908 header uses.
9909
9910 @item Followup
9911 This match key will add a score entry on all articles that followup to
9912 some author.  Uses the same match types as the @code{From} header uses.
9913
9914 @item Thread
9915 This match key will add a score entry on all articles that are part of
9916 a thread.  Uses the same match types as the @code{References} header
9917 uses.
9918 @end table
9919 @end enumerate
9920
9921 @item mark
9922 The value of this entry should be a number.  Any articles with a score
9923 lower than this number will be marked as read.
9924
9925 @item expunge
9926 The value of this entry should be a number.  Any articles with a score
9927 lower than this number will be removed from the summary buffer.
9928
9929 @item mark-and-expunge
9930 The value of this entry should be a number.  Any articles with a score
9931 lower than this number will be marked as read and removed from the
9932 summary buffer.
9933
9934 @item thread-mark-and-expunge
9935 The value of this entry should be a number.  All articles that belong to
9936 a thread that has a total score below this number will be marked as read
9937 and removed from the summary buffer.  @code{gnus-thread-score-function}
9938 says how to compute the total score for a thread.
9939
9940 @item files
9941 The value of this entry should be any number of file names.  These files
9942 are assumed to be score files as well, and will be loaded the same way
9943 this one was.
9944
9945 @item exclude-files
9946 The clue of this entry should be any number of files.  This files will
9947 not be loaded, even though they would normally be so, for some reason or
9948 other. 
9949
9950 @item eval
9951 The value of this entry will be @code{eval}el.  This element will be
9952 ignored when handling global score files. 
9953
9954 @item read-only
9955 Read-only score files will not be updated or saved.  Global score files
9956 should feature this atom (@pxref{Global Score Files}).
9957
9958 @item orphan
9959 The value of this entry should be a number.  Articles that do not have
9960 parents will get this number added to their scores.  Imagine you follow
9961 some high-volume newsgroup, like @samp{comp.lang.c}.  Most likely you
9962 will only follow a few of the threads, also want to see any new threads.
9963
9964 You can do this with the following two score file entries:
9965
9966 @example
9967         (orphan -500)
9968         (mark-and-expunge -100)
9969 @end example
9970
9971 When you enter the group the first time, you will only see the new
9972 threads.  You then raise the score of the threads that you find
9973 interesting (with @kbd{I T} or @kbd{I S}), and ignore (@kbd{C y}) the
9974 rest.  Next time you enter the group, you will see new articles in the
9975 interesting threads, plus any new threads.
9976
9977 I.e. -- the orphan score atom is for high-volume groups where there
9978 exist a few interesting threads which can't be found automatically by
9979 ordinary scoring rules.
9980
9981 @item adapt
9982 This entry controls the adaptive scoring.  If it is @code{t}, the
9983 default adaptive scoring rules will be used.  If it is @code{ignore}, no
9984 adaptive scoring will be performed on this group.  If it is a list, this
9985 list will be used as the adaptive scoring rules.  If it isn't present,
9986 or is something other than @code{t} or @code{ignore}, the default
9987 adaptive scoring rules will be used.  If you want to use adaptive
9988 scoring on most groups, you'd set @code{gnus-use-adaptive-scoring} to
9989 @code{t}, and insert an @code{(adapt ignore)} in the groups where you do
9990 not want adaptive scoring.  If you only want adaptive scoring in a few
9991 groups, you'd set @code{gnus-use-adaptive-scoring} to @code{nil}, and
9992 insert @code{(adapt t)} in the score files of the groups where you want
9993 it. 
9994
9995 @item adapt-file
9996 All adaptive score entries will go to the file named by this entry.  It
9997 will also be applied when entering the group.  This atom might be handy
9998 if you want to adapt on several groups at once, using the same adaptive
9999 file for a number of groups.
10000
10001 @item local
10002 @cindex local variables
10003 The value of this entry should be a list of @code{(VAR VALUE)} pairs.
10004 Each @var{var} will be made buffer-local to the current summary buffer,
10005 and set to the value specified.  This is a convenient, if somewhat
10006 strange, way of setting variables in some groups if you don't like hooks
10007 much.
10008 @end table
10009
10010
10011 @node Score File Editing
10012 @section Score File Editing
10013
10014 You normally enter all scoring commands from the summary buffer, but you
10015 might feel the urge to edit them by hand as well, so we've supplied you
10016 with a mode for that.  
10017
10018 It's simply a slightly customized @code{emacs-lisp} mode, with these
10019 additional commands:
10020
10021 @table @kbd
10022
10023 @item C-c C-c
10024 @kindex C-c C-c (Score)
10025 @findex gnus-score-edit-done
10026 Save the changes you have made and return to the summary buffer
10027 (@code{gnus-score-edit-done}). 
10028
10029 @item C-c C-d
10030 @kindex C-c C-d (Score)
10031 @findex gnus-score-edit-insert-date
10032 Insert the current date in numerical format
10033 (@code{gnus-score-edit-insert-date}).  This is really the day number, if
10034 you were wondering.
10035
10036 @item C-c C-p
10037 @kindex C-c C-p (Score)
10038 @findex gnus-score-pretty-print
10039 The adaptive score files are saved in an unformatted fashion.  If you
10040 intend to read one of these files, you want to @dfn{pretty print} it
10041 first.  This command (@code{gnus-score-pretty-print}) does that for
10042 you. 
10043
10044 @end table
10045
10046 Type @kbd{M-x gnus-score-mode} to use this mode.
10047
10048 @vindex gnus-score-mode-hook
10049 @code{gnus-score-menu-hook} is run in score mode buffers.
10050
10051 In the summary buffer you can use commands like @kbd{V f} and @kbd{V
10052 e} to begin editing score files.
10053
10054
10055 @node Adaptive Scoring
10056 @section Adaptive Scoring
10057 @cindex adaptive scoring
10058
10059 If all this scoring is getting you down, Gnus has a way of making it all
10060 happen automatically---as if by magic.  Or rather, as if by artificial
10061 stupidity, to be precise.
10062
10063 @vindex gnus-use-adaptive-scoring
10064 When you read an article, or mark an article as read, or kill an
10065 article, you leave marks behind.  On exit from the group, Gnus can sniff
10066 these marks and add score elements depending on what marks it finds.
10067 You turn on this ability by setting @code{gnus-use-adaptive-scoring} to
10068 @code{t}. 
10069
10070 @vindex gnus-default-adaptive-score-alist
10071 To give you complete control over the scoring process, you can customize
10072 the @code{gnus-default-adaptive-score-alist} variable.  For instance, it
10073 might look something like this:
10074
10075 @lisp
10076 (defvar gnus-default-adaptive-score-alist
10077   '((gnus-unread-mark)
10078     (gnus-ticked-mark (from 4))
10079     (gnus-dormant-mark (from 5))
10080     (gnus-del-mark (from -4) (subject -1))
10081     (gnus-read-mark (from 4) (subject 2))
10082     (gnus-expirable-mark (from -1) (subject -1))
10083     (gnus-killed-mark (from -1) (subject -3))
10084     (gnus-kill-file-mark)
10085     (gnus-ancient-mark)
10086     (gnus-low-score-mark)
10087     (gnus-catchup-mark (from -1) (subject -1))))
10088 @end lisp
10089
10090 As you see, each element in this alist has a mark as a key (either a
10091 variable name or a ``real'' mark---a character).  Following this key is
10092 a random number of header/score pairs.  If there are no header/score
10093 pairs following the key, no adaptive scoring will be done on articles
10094 that have that key as the article mark.  For instance, articles with
10095 @code{gnus-unread-mark} in the example above will not get adaptive score
10096 entries.
10097
10098 Each article can have only one mark, so just a single of these rules
10099 will be applied to each article.
10100
10101 To take @code{gnus-del-mark} as an example---this alist says that all
10102 articles that have that mark (i.e., are marked with @samp{D}) will have a
10103 score entry added to lower based on the @code{From} header by -4, and
10104 lowered by @code{Subject} by -1.  Change this to fit your prejudices. 
10105
10106 If you have marked 10 articles with the same subject with
10107 @code{gnus-del-mark}, the rule for that mark will be applied ten times.
10108 That means that that subject will get a score of ten times -1, which
10109 should be, unless I'm much mistaken, -10.
10110
10111 The headers you can score on are @code{from}, @code{subject},
10112 @code{message-id}, @code{references}, @code{xref}, @code{lines},
10113 @code{chars} and @code{date}.  In addition, you can score on
10114 @code{followup}, which will create an adaptive score entry that matches
10115 on the @code{References} header using the @code{Message-ID} of the
10116 current article, thereby matching the following thread.  
10117
10118 You can also score on @code{thread}, which will try to score all
10119 articles that appear in a thread.  @code{thread} matches uses a
10120 @code{Message-ID} to match on the @code{References} header of the
10121 article.  If the match is made, the @code{Message-ID} of the article is
10122 added to the @code{thread} rule.  (Think about it.  I'd recommend two
10123 aspirins afterwards.)
10124
10125 If you use this scheme, you should set the score file atom @code{mark}
10126 to something small---like -300, perhaps, to avoid having small random
10127 changes result in articles getting marked as read.
10128
10129 After using adaptive scoring for a week or so, Gnus should start to
10130 become properly trained and enhance the authors you like best, and kill
10131 the authors you like least, without you having to say so explicitly. 
10132
10133 You can control what groups the adaptive scoring is to be performed on
10134 by using the score files (@pxref{Score File Format}).  This will also
10135 let you use different rules in different groups.
10136
10137 @vindex gnus-adaptive-file-suffix
10138 The adaptive score entries will be put into a file where the name is the
10139 group name with @code{gnus-adaptive-file-suffix} appended.  The default
10140 is @samp{ADAPT}.
10141
10142 @vindex gnus-score-exact-adapt-limit
10143 When doing adaptive scoring, substring or fuzzy matching would probably
10144 give you the best results in most cases.  However, if the header one
10145 matches is short, the possibility for false positives is great, so if
10146 the length of the match is less than
10147 @code{gnus-score-exact-adapt-limit}, exact matching will be used.  If
10148 this variable is @code{nil}, exact matching will always be used to avoid
10149 this problem.
10150
10151
10152 @node Followups To Yourself
10153 @section Followups To Yourself
10154
10155 Gnus offers two commands for picking out the @code{Message-ID} header in
10156 the current buffer.  Gnus will then add a score rule that scores using
10157 this @code{Message-ID} on the @code{References} header of other
10158 articles.  This will, in effect, increase the score of all articles that
10159 respond to the article in the current buffer.  Quite useful if you want
10160 to easily note when people answer what you've said.
10161
10162 @table @code
10163
10164 @item gnus-score-followup-article
10165 @findex gnus-score-followup-article
10166 This will add a score to articles that directly follow up your own
10167 article. 
10168
10169 @item gnus-score-followup-thread
10170 @findex gnus-score-followup-thread
10171 This will add a score to all articles that appear in a thread ``below''
10172 your own article.
10173 @end table
10174
10175 @vindex gnus-inews-article-hook
10176 These two functions are both primarily meant to be used in hooks like
10177 @code{gnus-inews-article-hook}.  
10178
10179
10180 @node Scoring Tips
10181 @section Scoring Tips
10182 @cindex scoring tips
10183
10184 @table @dfn
10185
10186 @item Crossposts
10187 @cindex crossposts
10188 @cindex scoring crossposts
10189 If you want to lower the score of crossposts, the line to match on is
10190 the @code{Xref} header.
10191 @lisp
10192 ("xref" (" talk.politics.misc:" -1000))
10193 @end lisp
10194
10195 @item Multiple crossposts
10196 If you want to lower the score of articles that have been crossposted to
10197 more than, say, 3 groups:
10198 @lisp
10199 ("xref" ("[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+ +[^:\n]+:[0-9]+" -1000 nil r))
10200 @end lisp
10201
10202 @item Matching on the body
10203 This is generally not a very good idea---it takes a very long time.
10204 Gnus actually has to fetch each individual article from the server.  But
10205 you might want to anyway, I guess.  Even though there are three match
10206 keys (@code{Head}, @code{Body} and @code{All}), you should choose one
10207 and stick with it in each score file.  If you use any two, each article
10208 will be fetched @emph{twice}.  If you want to match a bit on the
10209 @code{Head} and a bit on the @code{Body}, just use @code{All} for all
10210 the matches.  
10211
10212 @item Marking as read
10213 You will probably want to mark articles that has a score below a certain
10214 number as read.  This is most easily achieved by putting the following
10215 in your @file{all.SCORE} file:
10216 @lisp
10217 ((mark -100))
10218 @end lisp
10219 You may also consider doing something similar with @code{expunge}.  
10220
10221 @item Negated character classes
10222 If you say stuff like @code{[^abcd]*}, you may get unexpected results.
10223 That will match newlines, which might lead to, well, The Unknown.  Say
10224 @code{[^abcd\n]*} instead.
10225 @end table
10226
10227
10228 @node Reverse Scoring
10229 @section Reverse Scoring
10230 @cindex reverse scoring
10231
10232 If you want to keep just articles that have @samp{Sex with Emacs} in the
10233 subject header, and expunge all other articles, you could put something
10234 like this in your score file:
10235
10236 @lisp
10237 (("subject"
10238   ("Sex with Emacs" 2))
10239  (mark 1)
10240  (expunge 1))
10241 @end lisp
10242
10243 So, you raise all articles that match @samp{Sex with Emacs} and mark the
10244 rest as read, and expunge them to boot.
10245
10246
10247 @node Global Score Files
10248 @section Global Score Files
10249 @cindex global score files
10250
10251 Sure, other newsreaders have ``global kill files''.  These are usually
10252 nothing more than a single kill file that applies to all groups, stored
10253 in the user's home directory.  Bah!  Puny, weak newsreaders!
10254
10255 What I'm talking about here are Global Score Files.  Score files from
10256 all over the world, from users everywhere, uniting all nations in one
10257 big, happy score file union!  Ange-score!  New and untested!
10258
10259 @vindex gnus-global-score-files
10260 All you have to do to use other people's score files is to set the
10261 @code{gnus-global-score-files} variable.  One entry for each score file,
10262 or each score file directory.  Gnus will decide by itself what score
10263 files are applicable to which group.
10264
10265 Say you want to use all score files in the
10266 @file{/ftp@@ftp.some-where:/pub/score} directory and the single score
10267 file @file{/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE}:
10268
10269 @lisp
10270 (setq gnus-global-score-files
10271       '("/ftp@@ftp.ifi.uio.no:/pub/larsi/ding/score/soc.motss.SCORE"
10272         "/ftp@@ftp.some-where:/pub/score/"))
10273 @end lisp
10274
10275 @findex gnus-score-search-global-directories
10276 Simple, eh?  Directory names must end with a @samp{/}.  These
10277 directories are typically scanned only once during each Gnus session.
10278 If you feel the need to manually re-scan the remote directories, you can
10279 use the @code{gnus-score-search-global-directories} command.
10280
10281 Note that, at present, using this option will slow down group entry
10282 somewhat.  (That is---a lot.)
10283
10284 If you want to start maintaining score files for other people to use,
10285 just put your score file up for anonymous ftp and announce it to the
10286 world.  Become a retro-moderator!  Participate in the retro-moderator
10287 wars sure to ensue, where retro-moderators battle it out for the
10288 sympathy of the people, luring them to use their score files on false
10289 premises!  Yay!  The net is saved!
10290
10291 Here are some tips for the would-be retro-moderator, off the top of my
10292 head: 
10293
10294 @itemize @bullet
10295
10296 @item 
10297 Articles that are heavily crossposted are probably junk. 
10298 @item
10299 To lower a single inappropriate article, lower by @code{Message-ID}.
10300 @item
10301 Particularly brilliant authors can be raised on a permanent basis. 
10302 @item
10303 Authors that repeatedly post off-charter for the group can safely be
10304 lowered out of existence.
10305 @item
10306 Set the @code{mark} and @code{expunge} atoms to obliterate the nastiest
10307 articles completely.
10308
10309 @item 
10310 Use expiring score entries to keep the size of the file down.  You
10311 should probably have a long expiry period, though, as some sites keep
10312 old articles for a long time.
10313 @end itemize
10314
10315 ... I wonder whether other newsreaders will support global score files
10316 in the future.  @emph{Snicker}.  Yup, any day now, newsreaders like Blue
10317 Wave, xrn and 1stReader are bound to implement scoring.  Should we start
10318 holding our breath yet?
10319
10320
10321 @node Kill Files
10322 @section Kill Files
10323 @cindex kill files
10324
10325 Gnus still supports those pesky old kill files.  In fact, the kill file
10326 entries can now be expiring, which is something I wrote before Daniel
10327 Quinlan thought of doing score files, so I've left the code in there.
10328
10329 In short, kill processing is a lot slower (and I do mean @emph{a lot})
10330 than score processing, so it might be a good idea to rewrite your kill
10331 files into score files.
10332
10333 Anyway, a kill file is a normal @code{emacs-lisp} file.  You can put any
10334 forms into this file, which means that you can use kill files as some
10335 sort of primitive hook function to be run on group entry, even though
10336 that isn't a very good idea.
10337
10338 XCNormal kill files look like this:
10339
10340 @lisp
10341 (gnus-kill "From" "Lars Ingebrigtsen")
10342 (gnus-kill "Subject" "ding")
10343 (gnus-expunge "X")
10344 @end lisp
10345
10346 This will mark every article written by me as read, and remove them from
10347 the summary buffer.  Very useful, you'll agree.
10348
10349 Other programs use a totally different kill file syntax.  If Gnus
10350 encounters what looks like a @code{rn} kill file, it will take a stab at
10351 interpreting it. 
10352
10353 Two summary functions for editing a GNUS kill file:
10354
10355 @table @kbd
10356
10357 @item M-k
10358 @kindex M-k (Summary)
10359 @findex gnus-summary-edit-local-kill
10360 Edit this group's kill file (@code{gnus-summary-edit-local-kill}).
10361
10362 @item M-K
10363 @kindex M-K (Summary)
10364 @findex gnus-summary-edit-global-kill
10365 Edit the general kill file (@code{gnus-summary-edit-global-kill}).
10366 @end table
10367
10368 Two group mode functions for editing the kill files:
10369
10370 @table @kbd
10371
10372 @item M-k
10373 @kindex M-k (Group)
10374 @findex gnus-group-edit-local-kill
10375 Edit this group's kill file (@code{gnus-group-edit-local-kill}).
10376
10377 @item M-K
10378 @kindex M-K (Group)
10379 @findex gnus-group-edit-global-kill
10380 Edit the general kill file (@code{gnus-group-edit-global-kill}).
10381 @end table
10382
10383 Kill file variables:
10384
10385 @table @code
10386 @item gnus-kill-file-name
10387 @vindex gnus-kill-file-name
10388 A kill file for the group @samp{soc.motss} is normally called
10389 @file{soc.motss.KILL}.  The suffix appended to the group name to get
10390 this file name is detailed by the @code{gnus-kill-file-name} variable.
10391 The ``global'' kill file (not in the score file sense of ``global'', of
10392 course) is called just @file{KILL}.
10393
10394 @vindex gnus-kill-save-kill-file
10395 @item gnus-kill-save-kill-file
10396 If this variable is non-@code{nil}, Gnus will save the
10397 kill file after processing, which is necessary if you use expiring
10398 kills. 
10399
10400 @item gnus-apply-kill-hook
10401 @vindex gnus-apply-kill-hook
10402 A hook called to apply kill files to a group.  It is
10403 @code{(gnus-apply-kill-file)} by default.  If you don't want kill files
10404 to be processed, you should set this variable to @code{nil}. 
10405
10406 @item gnus-kill-file-mode-hook
10407 @vindex gnus-kill-file-mode-hook
10408 A hook called in kill-file mode buffers.
10409
10410 @end table
10411
10412
10413 @node Various
10414 @chapter Various
10415
10416 @menu
10417 * Process/Prefix::             A convention used by many treatment commands.
10418 * Interactive::                Making Gnus ask you many questions.
10419 * Formatting Variables::       You can specify what buffers should look like.
10420 * Windows Configuration::      Configuring the Gnus buffer windows.
10421 * Compilation::                How to speed Gnus up.
10422 * Mode Lines::                 Displaying information in the mode lines.
10423 * Highlighting and Menus::     Making buffers look all nice and cozy.
10424 * Buttons::                    Get tendonitis in ten easy steps!
10425 * Daemons::                    Gnus can do things behind your back.
10426 * NoCeM::                      How to avoid spam and other fatty foods.
10427 * Various Various::            Things that are really various.
10428 @end menu
10429
10430
10431 @node Process/Prefix
10432 @section Process/Prefix
10433 @cindex process/prefix convention
10434
10435 Many functions, among them functions for moving, decoding and saving
10436 articles, use what is known as the @dfn{Process/Prefix convention}.
10437
10438 This is a method for figuring out what articles that the user wants the
10439 command to be performed on.
10440
10441 It goes like this:
10442
10443 If the numeric prefix is N, perform the operation on the next N
10444 articles, starting with the current one.  If the numeric prefix is
10445 negative, perform the operation on the previous N articles, starting
10446 with the current one.
10447
10448 @vindex transient-mark-mode
10449 If @code{transient-mark-mode} in non-@code{nil} and the region is
10450 active, all articles in the region will be worked upon.
10451
10452 If there is no numeric prefix, but some articles are marked with the
10453 process mark, perform the operation on the articles that are marked with
10454 the process mark.
10455
10456 If there is neither a numeric prefix nor any articles marked with the
10457 process mark, just perform the operation on the current article.
10458
10459 Quite simple, really, but it needs to be made clear so that surprises
10460 are avoided.
10461
10462 @vindex gnus-summary-goto-unread
10463 One thing that seems to shock & horrify lots of people is that, for
10464 instance, @kbd{3 d} does exactly the same as @kbd{d} @kbd{d} @kbd{d}.
10465 Since each @kbd{d} (which marks the current article as read) by default
10466 goes to the next unread article after marking, this means that @kbd{3 d}
10467 will mark the next three unread articles as read, no matter what the
10468 summary buffer looks like.  Set @code{gnus-summary-goto-unread} to
10469 @code{nil} for a more straightforward action.
10470
10471
10472 @node Interactive
10473 @section Interactive
10474 @cindex interaction
10475
10476 @table @code
10477
10478 @item gnus-novice-user
10479 @vindex gnus-novice-user
10480 If this variable is non-@code{nil}, you are either a newcomer to the
10481 World of Usenet, or you are very cautious, which is a nice thing to be,
10482 really.  You will be given questions of the type ``Are you sure you want
10483 to do this?'' before doing anything dangerous.  This is @code{t} by
10484 default.
10485
10486 @item gnus-expert-user
10487 @vindex gnus-expert-user
10488 If this variable is non-@code{nil}, you will never ever be asked any
10489 questions by Gnus.  It will simply assume you know what you're doing, no
10490 matter how strange.
10491
10492 @item gnus-interactive-catchup
10493 @vindex gnus-interactive-catchup
10494 Require confirmation before catching up a group if non-@code{nil}.  It
10495 is @code{t} by default.
10496
10497 @item gnus-interactive-post
10498 @vindex gnus-interactive-post
10499 If non-@code{nil}, the user will be prompted for a group name when
10500 posting an article.  It is @code{t} by default.
10501
10502 @item gnus-interactive-exit
10503 @vindex gnus-interactive-exit
10504 Require confirmation before exiting Gnus.  This variable is @code{t} by
10505 default. 
10506 @end table
10507
10508
10509 @node Formatting Variables
10510 @section Formatting Variables
10511 @cindex formatting variables
10512
10513 Throughout this manual you've probably noticed lots of variables that
10514 are called things like @code{gnus-group-line-format} and
10515 @code{gnus-summary-mode-line-format}.  These control how Gnus is to
10516 output lines in the various buffers.  There's quite a lot of them.
10517 Fortunately, they all use the same syntax, so there's not that much to
10518 be annoyed by.
10519
10520 Here's an example format spec (from the group buffer): @samp{%M%S%5y:
10521 %(%g%)\n}.  We see that it is indeed extremely ugly, and that there are
10522 lots of percentages everywhere.  
10523
10524 Each @samp{%} element will be replaced by some string or other when the
10525 buffer in question is generated.  @samp{%5y} means ``insert the @samp{y}
10526 spec, and pad with spaces to get a 5-character field''.  Just like a
10527 normal format spec, almost.
10528
10529 You can also say @samp{%6,4y}, which means that the field will never be
10530 more than 6 characters wide and never less than 4 characters wide.
10531
10532 There are also specs for highlighting, and these are shared by all the
10533 format variables.  Text inside the @samp{%(} and @samp{%)} specifiers
10534 will get the special @code{mouse-face} property set, which means that it
10535 will be highlighted (with @code{gnus-mouse-face}) when you put the mouse
10536 pointer over it.
10537
10538 Text inside the @samp{%[} and @samp{%]} specifiers will have their
10539 normal faces set using @code{gnus-face-0}, which is @code{bold} by
10540 default.  If you say @samp{%1[} instead, you'll get @code{gnus-face-1}
10541 instead, and so on.  Create as many faces as you wish.  The same goes
10542 for the @code{mouse-face} specs---you can say @samp{%3(hello%)} to have
10543 @samp{hello} mouse-highlighted with @code{gnus-mouse-face-3}.
10544
10545 Here's an alternative recipe for the group buffer:
10546
10547 @lisp
10548 ;; Create three face types.
10549 (setq gnus-face-1 'bold)
10550 (setq gnus-face-3 'italic)
10551
10552 ;; We want the article count to be in 
10553 ;; a bold and green face.  So we create 
10554 ;; a new face called `my-green-bold'.
10555 (copy-face 'bold 'my-green-bold)
10556 ;; Set the color.
10557 (set-face-foreground 'my-green-bold "ForestGreen")
10558 (setq gnus-face-2 'my-green-bold)
10559
10560 ;; Set the new & fancy format.
10561 (setq gnus-group-line-format 
10562       "%M%S%3@{%5y%@}%2[:%] %(%1@{%g%@}%)\n")
10563 @end lisp
10564
10565 I'm sure you'll be able to use this scheme to create totally unreadable
10566 and extremely vulgar displays.  Have fun!
10567
10568 Currently Gnus uses the following formatting variables:
10569 @code{gnus-group-line-format}, @code{gnus-summary-line-format},
10570 @code{gnus-server-line-format}, @code{gnus-topic-line-format},
10571 @code{gnus-group-mode-line-format},
10572 @code{gnus-summary-mode-line-format},
10573 @code{gnus-article-mode-line-format},
10574 @code{gnus-server-mode-line-format}. 
10575
10576 Note that the @samp{%(} specs (and friends) do not make any sense on the
10577 mode-line variables.
10578
10579 All these format variables can also be random elisp forms.  In that
10580 case, they will be @code{eval}ed to insert the required lines.
10581
10582 @kindex M-x gnus-update-format
10583 @findex gnus-update-format
10584 Gnus includes a command to help you while creating your own format
10585 specs.  @kbd{M-x gnus-update-format} will @code{eval} the current form,
10586 update the spec in question and pop you to a buffer where you can
10587 examine the resulting lisp code to be run to generate the line.  
10588
10589
10590 @node Windows Configuration
10591 @section Windows Configuration
10592 @cindex windows configuration
10593
10594 No, there's nothing here about X, so be quiet.
10595
10596 @vindex gnus-use-full-window
10597 If @code{gnus-use-full-window} non-@code{nil}, Gnus will delete all
10598 other windows and occupy the entire Emacs screen by itself.  It is
10599 @code{t} by default.
10600
10601 @vindex gnus-buffer-configuration
10602 @code{gnus-buffer-configuration} describes how much space each Gnus
10603 buffer should be given.  Here's an excerpt of this variable:
10604
10605 @lisp
10606 ((group (vertical 1.0 (group 1.0 point)
10607                       (if gnus-carpal (group-carpal 4))))
10608  (article (vertical 1.0 (summary 0.25 point) 
10609                         (article 1.0))))
10610 @end lisp
10611
10612 This is an alist.  The @dfn{key} is a symbol that names some action or
10613 other.  For instance, when displaying the group buffer, the window
10614 configuration function will use @code{group} as the key.  A full list of
10615 possible names is listed below.
10616
10617 The @dfn{value} (i. e., the @dfn{split}) says how much space each buffer
10618 should occupy.  To take the @code{article} split as an example -
10619
10620 @lisp
10621 (article (vertical 1.0 (summary 0.25 point)
10622                        (article 1.0)))
10623 @end lisp
10624
10625 This @dfn{split} says that the summary buffer should occupy 25% of upper
10626 half of the screen, and that it is placed over the article buffer.  As
10627 you may have noticed, 100% + 25% is actually 125% (yup, I saw y'all
10628 reaching for that calculator there).  However, the special number
10629 @code{1.0} is used to signal that this buffer should soak up all the
10630 rest of the space available after the rest of the buffers have taken
10631 whatever they need.  There should be only one buffer with the @code{1.0}
10632 size spec per split.
10633
10634 Point will be put in the buffer that has the optional third element
10635 @code{point}. 
10636
10637 Here's a more complicated example:
10638
10639 @lisp
10640 (article (vertical 1.0 (group 4)
10641                        (summary 0.25 point)
10642                        (if gnus-carpal (summary-carpal 4))
10643                        (article 1.0)))
10644 @end lisp
10645
10646 If the size spec is an integer instead of a floating point number, 
10647 then that number will be used to say how many lines a buffer should
10648 occupy, not a percentage.
10649
10650 If the @dfn{split} looks like something that can be @code{eval}ed (to be
10651 precise---if the @code{car} of the split is a function or a subr), this
10652 split will be @code{eval}ed.  If the result is non-@code{nil}, it will
10653 be used as a split.  This means that there will be three buffers if
10654 @code{gnus-carpal} is @code{nil}, and four buffers if @code{gnus-carpal}
10655 is non-@code{nil}.
10656
10657 Not complicated enough for you?  Well, try this on for size:
10658
10659 @lisp
10660 (article (horizontal 1.0 
10661              (vertical 0.5
10662                  (group 1.0)
10663                  (gnus-carpal 4))
10664              (vertical 1.0
10665                  (summary 0.25 point)
10666                  (summary-carpal 4)
10667                  (article 1.0))))
10668 @end lisp
10669
10670 Whoops.  Two buffers with the mystery 100% tag.  And what's that
10671 @code{horizontal} thingie?  
10672
10673 If the first element in one of the split is @code{horizontal}, Gnus will
10674 split the window horizontally, giving you two windows side-by-side.
10675 Inside each of these strips you may carry on all you like in the normal
10676 fashion.  The number following @code{horizontal} says what percentage of
10677 the screen is to be given to this strip.
10678
10679 For each split, there @emph{must} be one element that has the 100% tag.
10680 The splitting is never accurate, and this buffer will eat any leftover
10681 lines from the splits.
10682
10683 To be slightly more formal, here's a definition of what a legal split
10684 may look like:
10685
10686 @example
10687 split       = frame | horizontal | vertical | buffer | form
10688 frame       = "(frame " size *split ")"
10689 horizontal  = "(horizontal " size *split ")"
10690 vertical    = "(vertical " size *split ")"
10691 buffer      = "(" buffer-name " " size *[ "point" ] ")"
10692 size        = number | frame-params
10693 buffer-name = group | article | summary ...
10694 @end example
10695
10696 The limitations are that the @code{frame} split can only appear as the
10697 top-level split.  @var{form} should be an Emacs Lisp form that should
10698 return a valid split.  We see that each split is fully recursive, and
10699 may contain any number of @code{vertical} and @code{horizontal} splits. 
10700
10701 @vindex gnus-window-min-width
10702 @vindex gnus-window-min-height
10703 @cindex window height
10704 @cindex window width
10705 Finding the right sizes can be a bit complicated.  No window may be less
10706 than @code{gnus-window-min-height} (default 2) characters high, and all
10707 windows must be at least @code{gnus-window-min-width} (default 1)
10708 characters wide.  Gnus will try to enforce this before applying the
10709 splits.  If you want to use the normal Emacs window width/height limit,
10710 you can just set these two variables to @code{nil}.
10711
10712 If you're not familiar with Emacs terminology, @code{horizontal} and
10713 @code{vertical} splits may work the opposite way of what you'd expect.
10714 Windows inside a @code{horizontal} split are shown side-by-side, and
10715 windows within a @code{vertical} split are shown above each other.
10716
10717 @findex gnus-configure-frame
10718 If you want to experiment with window placement, a good tip is to call
10719 @code{gnus-configure-frame} directly with a split.  This is the function
10720 that does all the real work when splitting buffers.  Below is a pretty
10721 nonsensical configuration with 5 windows; two for the group buffer and
10722 three for the article buffer.  (I said it was nonsensical.)  If you
10723 @code{eval} the statement below, you can get an idea of how that would
10724 look straight away, without going through the normal Gnus channels.
10725 Play with it until you're satisfied, and then use
10726 @code{gnus-add-configuration} to add your new creation to the buffer
10727 configuration list. 
10728
10729 @lisp
10730 (gnus-configure-frame
10731  '(horizontal 1.0
10732     (vertical 10
10733       (group 1.0)
10734       (article 0.3 point))
10735     (vertical 1.0
10736       (article 1.0)
10737       (horizontal 4
10738         (group 1.0)
10739         (article 10)))))
10740 @end lisp
10741
10742 You might want to have several frames as well.  No prob---just use the
10743 @code{frame} split:
10744
10745 @lisp
10746 (gnus-configure-frame
10747  '(frame 1.0
10748          (vertical 1.0
10749                    (summary 0.25 point)
10750                    (article 1.0))
10751          (vertical ((height . 5) (width . 15)
10752                     (user-position . t)
10753                     (left . -1) (top . 1))
10754                    (picon 1.0))))
10755
10756 @end lisp
10757
10758 This split will result in the familiar summary/article window
10759 configuration in the first (or ``main'') frame, while a small additional
10760 frame will be created where picons will be shown.  As you can see,
10761 instead of the normal @code{1.0} top-level spec, each additional split
10762 should have a frame parameter alist as the size spec.
10763 @xref{(elisp)Frame Parameters}.
10764
10765 Here's a list of all possible keys for
10766 @code{gnus-buffer-configuration}:
10767
10768 @code{group}, @code{summary}, @code{article}, @code{server},
10769 @code{browse}, @code{group-mail}, @code{summary-mail},
10770 @code{summary-reply}, @code{info}, @code{summary-faq},
10771 @code{edit-group}, @code{edit-server}, @code{reply}, @code{reply-yank},
10772 @code{followup}, @code{followup-yank}, @code{edit-score}.  
10773
10774 @findex gnus-add-configuration
10775 Since the @code{gnus-buffer-configuration} variable is so long and
10776 complicated, there's a function you can use to ease changing the config
10777 of a single setting: @code{gnus-add-configuration}.  If, for instance,
10778 you want to change the @code{article} setting, you could say:
10779
10780 @lisp
10781 (gnus-add-configuration
10782  '(article (vertical 1.0
10783                (group 4)
10784                (summary .25 point)
10785                (article 1.0))))
10786 @end lisp
10787
10788 You'd typically stick these @code{gnus-add-configuration} calls in your
10789 @file{.gnus} file or in some startup hook -- they should be run after
10790 Gnus has been loaded.
10791
10792
10793 @node Compilation 
10794 @section Compilation 
10795 @cindex compilation
10796 @cindex byte-compilation
10797
10798 @findex gnus-compile
10799
10800 Remember all those line format specification variables?
10801 @code{gnus-summary-line-format}, @code{gnus-group-line-format}, and so
10802 on.  Now, Gnus will of course heed whatever these variables are, but,
10803 unfortunately, changing them will mean a quite significant slow-down.
10804 (The default values of these variables have byte-compiled functions
10805 associated with them, while the user-generated versions do not, of
10806 course.) 
10807
10808 To help with this, you can run @kbd{M-x gnus-compile} after you've
10809 fiddled around with the variables and feel that you're (kind of)
10810 satisfied.  This will result in the new specs being byte-compiled, and
10811 you'll get top speed again.
10812
10813
10814 @node Mode Lines
10815 @section Mode Lines
10816 @cindex mode lines
10817
10818 @vindex gnus-updated-mode-lines
10819 @code{gnus-updated-mode-lines} says what buffers should keep their mode
10820 lines updated.  It is a list of symbols.  Supported symbols include
10821 @code{group}, @code{article}, @code{summary}, @code{server},
10822 @code{browse}, and @code{tree}.  If the corresponding symbol is present,
10823 Gnus will keep that mode line updated with information that may be
10824 pertinent.  If this variable is @code{nil}, screen refresh may be
10825 quicker.
10826
10827 @cindex display-time
10828
10829 @vindex gnus-mode-non-string-length
10830 By default, Gnus displays information on the current article in the mode
10831 lines of the summary and article buffers.  The information Gnus wishes
10832 to display (eg. the subject of the article) is often longer than the
10833 mode lines, and therefore have to be cut off at some point.  The
10834 @code{gnus-mode-non-string-length} variable says how long the other
10835 elements on the line is (i.e., the non-info part).  If you put
10836 additional elements on the mode line (eg. a clock), you should modify
10837 this variable:
10838
10839 @c Hook written by Francesco Potorti` <pot@cnuce.cnr.it>
10840 @lisp
10841 (add-hook 'display-time-hook
10842           (lambda () (setq gnus-mode-non-string-length
10843                            (+ 21
10844                               (if line-number-mode 5 0)
10845                               (if column-number-mode 4 0)
10846                               (length display-time-string)))))
10847 @end lisp
10848
10849 If this variable is @code{nil} (which is the default), the mode line
10850 strings won't be chopped off, and they won't be padded either.
10851
10852
10853 @node Highlighting and Menus
10854 @section Highlighting and Menus
10855 @cindex visual
10856 @cindex highlighting
10857 @cindex menus
10858
10859 @vindex gnus-visual
10860 The @code{gnus-visual} variable controls most of the prettifying Gnus
10861 aspects.  If @code{nil}, Gnus won't attempt to create menus or use fancy
10862 colors or fonts.  This will also inhibit loading the @file{gnus-vis.el}
10863 file.
10864
10865 This variable can be a list of visual properties that are enabled.  The
10866 following elements are legal, and are all included by default:
10867
10868 @table @code
10869 @item group-highlight
10870 Do highlights in the group buffer.
10871 @item summary-highlight
10872 Do highlights in the summary buffer.
10873 @item article-highlight
10874 Do highlights in the article buffer.
10875 @item highlight
10876 Turn on highlighting in all buffers.
10877 @item group-menu
10878 Create menus in the group buffer.
10879 @item summary-menu
10880 Create menus in the summary buffers.
10881 @item article-menu
10882 Create menus in the article buffer.
10883 @item browse-menu
10884 Create menus in the browse buffer.
10885 @item server-menu
10886 Create menus in the server buffer.
10887 @item score-menu
10888 Create menus in the score buffers.
10889 @item menu
10890 Create menus in all buffers.
10891 @end table
10892
10893 So if you only want highlighting in the article buffer and menus in all
10894 buffers, you could say something like:
10895
10896 @lisp
10897 (setq gnus-visual '(article-highlight menu))
10898 @end lisp
10899
10900 If you want only highlighting and no menus whatsoever, you'd say:
10901
10902 @lisp
10903 (setq gnus-visual '(highlight))
10904 @end lisp
10905
10906 If @code{gnus-visual} is @code{t}, highlighting and menus will be used
10907 in all Gnus buffers.
10908
10909 Other general variables that influence the look of all buffers include:
10910
10911 @table @code
10912 @item gnus-mouse-face
10913 @vindex gnus-mouse-face
10914 This is the face (i.e., font) used for mouse highlighting in Gnus.  No
10915 mouse highlights will be done if @code{gnus-visual} is @code{nil}.
10916
10917 @item gnus-display-type
10918 @vindex gnus-display-type
10919 This variable is symbol indicating the display type Emacs is running
10920 under.  The symbol should be one of @code{color}, @code{grayscale} or
10921 @code{mono}.  If Gnus guesses this display attribute wrongly, either set
10922 this variable in your @file{~/.emacs} or set the resource
10923 @code{Emacs.displayType} in your @file{~/.Xdefaults}.
10924
10925 @item gnus-background-mode 
10926 @vindex gnus-background-mode 
10927 This is a symbol indicating the Emacs background brightness.  The symbol
10928 should be one of @code{light} or @code{dark}.  If Gnus guesses this
10929 frame attribute wrongly, either set this variable in your @file{~/.emacs} or
10930 set the resource @code{Emacs.backgroundMode} in your @file{~/.Xdefaults}. 
10931 `gnus-display-type'.
10932 @end table
10933
10934 There are hooks associated with the creation of all the different menus:
10935
10936 @table @code
10937
10938 @item gnus-article-menu-hook
10939 @vindex gnus-article-menu-hook
10940 Hook called after creating the article mode menu.
10941
10942 @item gnus-group-menu-hook
10943 @vindex gnus-group-menu-hook
10944 Hook called after creating the group mode menu.
10945
10946 @item gnus-summary-menu-hook
10947 @vindex gnus-summary-menu-hook
10948 Hook called after creating the summary mode menu.
10949
10950 @item gnus-server-menu-hook
10951 @vindex gnus-server-menu-hook
10952 Hook called after creating the server mode menu.
10953
10954 @item gnus-browse-menu-hook
10955 @vindex gnus-browse-menu-hook
10956 Hook called after creating the browse mode menu.
10957
10958 @item gnus-score-menu-hook
10959 @vindex gnus-score-menu-hook
10960 Hook called after creating the score mode menu.
10961
10962 @end table
10963
10964
10965 @node Buttons
10966 @section Buttons
10967 @cindex buttons
10968 @cindex mouse
10969 @cindex click
10970
10971 Those new-fangled @dfn{mouse} contraptions is very popular with the
10972 young, hep kids who don't want to learn the proper way to do things
10973 these days.  Why, I remember way back in the summer of '89, when I was
10974 using Emacs on a Tops 20 system.  Three hundred users on one single
10975 machine, and every user was running Simula compilers.  Bah!
10976
10977 Right.
10978
10979 @vindex gnus-carpal
10980 Well, you can make Gnus display bufferfuls of buttons you can click to
10981 do anything by setting @code{gnus-carpal} to @code{t}.  Pretty simple,
10982 really.  Tell the chiropractor I sent you.
10983
10984
10985 @table @code
10986
10987 @item gnus-carpal-mode-hook
10988 @vindex gnus-carpal-mode-hook
10989 Hook run in all carpal mode buffers.
10990
10991 @item gnus-carpal-button-face
10992 @vindex gnus-carpal-button-face
10993 Face used on buttons.
10994
10995 @item gnus-carpal-header-face
10996 @vindex gnus-carpal-header-face
10997 Face used on carpal buffer headers.
10998
10999 @item gnus-carpal-group-buffer-buttons
11000 @vindex gnus-carpal-group-buffer-buttons
11001 Buttons in the group buffer.
11002
11003 @item gnus-carpal-summary-buffer-buttons
11004 @vindex gnus-carpal-summary-buffer-buttons
11005 Buttons in the summary buffer.
11006
11007 @item gnus-carpal-server-buffer-buttons
11008 @vindex gnus-carpal-server-buffer-buttons
11009 Buttons in the server buffer.
11010
11011 @item gnus-carpal-browse-buffer-buttons
11012 @vindex gnus-carpal-browse-buffer-buttons
11013 Buttons in the browse buffer.
11014 @end table
11015
11016 All the @code{buttons} variables are lists.  The elements in these list
11017 is either a cons cell where the car contains a text to be displayed and
11018 the cdr contains a function symbol, or a simple string.
11019
11020
11021 @node Daemons
11022 @section Daemons
11023 @cindex demons
11024 @cindex daemons
11025
11026 Gnus, being larger than any program ever written (allegedly), does lots
11027 of strange stuff that you may wish to have done while you're not
11028 present.  For instance, you may want it to check for new mail once in a
11029 while.  Or you may want it to close down all connections to all servers
11030 when you leave Emacs idle.  And stuff like that.
11031
11032 Gnus will let you do stuff like that by defining various
11033 @dfn{handlers}.  Each handler consists of three elements:  A
11034 @var{function}, a @var{time}, and an @var{idle} parameter.
11035
11036 Here's an example of a handler that closes connections when Emacs has
11037 been idle for thirty minutes:
11038
11039 @lisp
11040 (gnus-demon-close-connections nil 30)
11041 @end lisp
11042
11043 Here's a handler that scans for PGP headers every hour when Emacs is
11044 idle: 
11045
11046 @lisp
11047 (gnus-demon-scan-pgp 60 t)
11048 @end lisp
11049
11050 This @var{time} parameter and than @var{idle} parameter works together
11051 in a strange, but wonderful fashion.  Basically, if @var{idle} is
11052 @code{nil}, then the function will be called every @var{time} minutes.
11053
11054 If @var{idle} is @code{t}, then the function will be called after
11055 @var{time} minutes only if Emacs is idle.  So if Emacs is never idle,
11056 the function will never be called.  But once Emacs goes idle, the
11057 function will be called every @var{time} minutes.
11058
11059 If @var{idle} is a number and @var{time} is a number, the function will
11060 be called every @var{time} minutes only when Emacs has been idle for
11061 @var{idle} minutes.
11062
11063 If @var{idle} is a number and @var{time} is @code{nil}, the function
11064 will be called once every time Emacs has been idle for @var{idle}
11065 minutes.  
11066
11067 And if @var{time} is a string, it should look like @samp{07:31}, and
11068 the function will then be called once every day somewhere near that
11069 time.  Modified by the @var{idle} parameter, of course.
11070
11071 @vindex gnus-demon-timestep
11072 (When I say ``minute'' here, I really mean @code{gnus-demon-timestep}
11073 seconds.  This is @code{60} by default.  If you change that variable,
11074 all the timings in the handlers will be affected.)
11075
11076 @vindex gnus-use-demon
11077 To set the whole thing in motion, though, you have to set
11078 @code{gnus-use-demon} to @code{t}.
11079
11080 So, if you want to add a handler, you could put something like this in
11081 your @file{.gnus} file:
11082
11083 @findex gnus-demon-add-handler
11084 @lisp
11085 (gnus-demon-add-handler 'gnus-demon-close-connections nil 30)
11086 @end lisp
11087
11088 @findex gnus-demon-add-nocem
11089 @findex gnus-demon-add-scanmail
11090 @findex gnus-demon-add-disconnection
11091 Some ready-made functions to do this has been created:
11092 @code{gnus-demon-add-nocem}, @code{gnus-demon-add-disconnection}, and
11093 @code{gnus-demon-add-scanmail}.  Just put those functions in your
11094 @file{.gnus} if you want those abilities.
11095
11096 @findex gnus-demon-init
11097 @findex gnus-demon-cancel
11098 @vindex gnus-demon-handlers
11099 If you add handlers to @code{gnus-demon-handlers} directly, you should
11100 run @code{gnus-demon-init} to make the changes take hold.  To cancel all
11101 daemons, you can use the @code{gnus-demon-cancel} function.
11102
11103 Note that adding daemons can be pretty naughty if you overdo it.  Adding
11104 functions that scan all news and mail from all servers every two seconds
11105 is a sure-fire way of getting booted off any respectable system.  So
11106 behave. 
11107
11108
11109 @node NoCeM
11110 @section NoCeM
11111 @cindex nocem
11112 @cindex spam
11113
11114 @dfn{Spamming} is posting the same article lots and lots of times.
11115 Spamming is bad.  Spamming is evil.  
11116
11117 Spamming is usually canceled within a day or so by various anti-spamming
11118 agencies.  These agencies usually also send out @dfn{NoCeM} messages.
11119 NoCeM is pronounced ``no see-'em'', and means what the name
11120 implies---these are messages that make the offending articles, like, go
11121 away.  
11122
11123 What use are these NoCeM messages if the articles are canceled anyway?
11124 Some sites do not honor cancel messages and some sites just honor cancels
11125 from a select few people.  Then you may wish to make use of the NoCeM
11126 messages, which are distributed in the @samp{alt.nocem.misc} newsgroup.
11127
11128 Gnus can read and parse the messages in this group automatically, and
11129 this will make spam disappear.  
11130
11131 There are some variables to customize, of course:
11132
11133 @table @code
11134 @item gnus-use-nocem
11135 @vindex gnus-use-nocem
11136 Set this variable to @code{t} to set the ball rolling.  It is @code{nil}
11137 by default. 
11138
11139 @item gnus-nocem-groups
11140 @vindex gnus-nocem-groups
11141 Gnus will look for NoCeM messages in the groups in this list.  The
11142 default is @code{("alt.nocem.misc" "news.admin.net-abuse.announce")}. 
11143
11144 @item gnus-nocem-issuers
11145 @vindex gnus-nocem-issuers
11146 There are many people issuing NoCeM messages.  This list says what
11147 people you want to listen to.  The default is @code{("Automoose-1"
11148 "clewis@@ferret.ocunix.on.ca;" "jem@@xpat.com;" "red@@redpoll.mrfs.oh.us
11149 (Richard E. Depew)")}; fine, upstanding citizens all of them.
11150
11151 Known despammers that you can put in this list include:
11152
11153 @table @samp
11154 @item clewis@@ferret.ocunix.on.ca;
11155 @cindex Chris Lewis
11156 Chris Lewis---Major Canadian despammer who has probably canceled more
11157 usenet abuse than anybody else.
11158
11159 @item Automoose-1
11160 @cindex CancelMoose[tm]
11161 The CancelMoose[tm] on autopilot.  The CancelMoose[tm] is reputed to be
11162 Norwegian, and was the person(s) who invented NoCeM.  
11163
11164 @item jem@@xpat.com;
11165 @cindex Jem
11166 Jem---Korean despammer who is getting very busy these days.
11167
11168 @item red@@redpoll.mrfs.oh.us (Richard E. Depew)
11169 Richard E. Depew---lone American despammer.  He mostly cancels binary
11170 postings to non-binary groups and removes spews (regurgitated articles).
11171 @end table
11172
11173 You do not have to heed NoCeM messages from all these people---just the
11174 ones you want to listen to.
11175
11176 @item gnus-nocem-directory
11177 @vindex gnus-nocem-directory
11178 This is where Gnus will store its NoCeM cache files.  The default is
11179 @file{~/News/NoCeM/}. 
11180
11181 @item gnus-nocem-expiry-wait
11182 @vindex gnus-nocem-expiry-wait
11183 The number of days before removing old NoCeM entries from the cache.
11184 The default is 15.  If you make it shorter Gnus will be faster, but you
11185 might then see old spam.
11186
11187 @end table
11188
11189
11190 @node Various Various
11191 @section Various Various
11192 @cindex mode lines
11193 @cindex highlights
11194
11195 @table @code
11196
11197 @item gnus-verbose
11198 @vindex gnus-verbose
11199 This variable is an integer between zero and ten.  The higher the value,
11200 the more messages will be displayed.  If this variable is zero, Gnus
11201 will never flash any messages, if it is seven (which is the default),
11202 most important messages will be shown, and if it is ten, Gnus won't ever
11203 shut up, but will flash so many messages it will make your head swim.
11204
11205 @item gnus-verbose-backends
11206 @vindex gnus-verbose-backends
11207 This variable works the same way as @code{gnus-verbose}, but it applies
11208 to the Gnus backends instead of Gnus proper.
11209
11210 @item nnheader-max-head-length
11211 @vindex nnheader-max-head-length
11212 When the backends read straight heads of articles, they all try to read
11213 as little as possible.  This variable (default @code{4096}) specifies
11214 the absolute max length the backends will try to read before giving up
11215 on finding a separator line between the head and the body.  If this
11216 variable is @code{nil}, there is no upper read bound.  If it is
11217 @code{t}, the backends won't try to read the articles piece by piece,
11218 but read the entire articles.  This makes sense with some versions of
11219 @code{ange-ftp}. 
11220
11221 @item nnheader-file-name-translation-alist 
11222 @vindex nnheader-file-name-translation-alist 
11223 @cindex file names
11224 @cindex illegal characters in file names
11225 @cindex characters in file names
11226 This is an alist that says how to translate characters in file names.
11227 For instance, if @samp{:} is illegal as a file character in file names
11228 on your system (you OS/2 user you), you could say something like:
11229
11230 @lisp
11231 (setq nnheader-file-name-translation-alist 
11232       '((?: . ?_)))
11233 @end lisp
11234
11235 In fact, this is the default value for this variable on OS/2 and MS
11236 Windows (phooey) systems.
11237
11238 @item gnus-hidden-properties
11239 @vindex gnus-hidden-properties
11240 This is a list of properties to use to hide ``invisible'' text.  It is
11241 @code{(invisible t intangible t)} by default on most systems, which
11242 makes invisible text invisible and intangible.
11243
11244 @item gnus-parse-header-hook
11245 @vindex gnus-parse-header-hook
11246 A hook called before parsing headers.  It can be used, for instance, to
11247 gather statistics on the headers fetched, or perhaps you'd like to prune
11248 some headers.  I don't see why you'd want that, though.
11249
11250 @end table
11251
11252
11253 @node The End
11254 @chapter The End
11255
11256 Well, that's the manual---you can get on with your life now.  Keep in
11257 touch.  Say hello to your cats from me.  
11258
11259 My @strong{ghod}---I just can't stand goodbyes.  Sniffle.
11260
11261 Ol' Charles Reznikoff said it pretty well, so I leave the floor to him:
11262
11263 @quotation
11264 @strong{Te Deum}
11265 @sp 1
11266 Not because of victories @*
11267 I sing,@*
11268 having none,@*
11269 but for the common sunshine,@*
11270 the breeze,@*
11271 the largess of the spring.
11272 @sp 1
11273 Not for victory@*
11274 but for the day's work done@*
11275 as well as I was able;@*
11276 not for a seat upon the dais@*
11277 but at the common table.@*
11278 @end quotation
11279
11280
11281 @node Appendices
11282 @chapter Appendices
11283
11284 @menu
11285 * History::                        How Gnus got where it is today.
11286 * Terminology::                    We use really difficult, like, words here.
11287 * Customization::                  Tailoring Gnus to your needs.
11288 * Troubleshooting::                What you might try if things do not work.
11289 * A Programmers Guide to Gnus::    Rilly, rilly technical stuff.
11290 * Emacs for Heathens::             A short introduction to Emacsian terms.
11291 * Frequently Asked Questions::     A question-and-answer session.
11292 @end menu
11293
11294
11295 @node History
11296 @section History
11297
11298 @cindex history
11299 @sc{gnus} was written by Masanobu @sc{Umeda}.  When autumn crept up in
11300 '94, Lars Magne Ingebrigtsen grew bored and decided to rewrite Gnus.
11301
11302 If you want to investigate the person responsible for this outrage, you
11303 can point your (feh!) web browser to
11304 @file{http://www.ifi.uio.no/~larsi/}.  This is also the primary
11305 distribution point for the new and spiffy versions of Gnus, and is known
11306 as The Site That Destroys Newsrcs And Drives People Mad.
11307
11308 During the first extended alpha period of development, the new Gnus was
11309 called ``(ding) Gnus''.  @dfn{(ding)}, is, of course, short for
11310 @dfn{ding is not Gnus}, which is a total and utter lie, but who cares?
11311 (Besides, the ``Gnus'' in this abbreviation should probably be
11312 pronounced ``news'' as @sc{Umeda} intended, which makes it a more
11313 appropriate name, don't you think?)
11314
11315 In any case, after spending all that energy on coming up with a new and
11316 spunky name, we decided that the name was @emph{too} spunky, so we
11317 renamed it back again to ``Gnus''.  But in mixed case.  ``Gnus'' vs.
11318 ``@sc{gnus}''.  New vs. old.
11319
11320 The first ``proper'' release of Gnus 5 was done in November 1995 when it
11321 was included in the Emacs 19.30 distribution.
11322
11323 Incidentally, the next Gnus generation will be called ``September
11324 Gnus'', and won't be released until April 1996.  Confused?  You will be.
11325
11326 @menu
11327 * Why?::                What's the point of Gnus?
11328 * Compatibility::       Just how compatible is Gnus with @sc{gnus}?
11329 * Conformity::          Gnus tries to conform to all standards.
11330 * Emacsen::             Gnus can be run on a few modern Emacsen.
11331 * Contributors::        Oodles of people.  
11332 * New Features::        Pointers to some of the new stuff in Gnus.
11333 * Newest Features::     Features so new that they haven't been written yet.
11334 * Censorship::          This manual has been censored.
11335 @end menu
11336
11337
11338 @node Why?
11339 @subsection Why?
11340
11341 What's the point of Gnus?  
11342
11343 I want to provide a ``rad'', ``happening'', ``way cool'' and ``hep''
11344 newsreader, that lets you do anything you can think of.  That was my
11345 original motivation, but while working on Gnus, it has become clear to
11346 me that this generation of newsreaders really belong in the stone age.
11347 Newsreaders haven't developed much since the infancy of the net.  If the
11348 volume continues to rise with the current rate of increase, all current
11349 newsreaders will be pretty much useless.  How do you deal with
11350 newsgroups that have thousands of new articles each day?  How do you
11351 keep track of millions of people who post?
11352
11353 Gnus offers no real solutions to these questions, but I would very much
11354 like to see Gnus being used as a testing ground for new methods of
11355 reading and fetching news.  Expanding on @sc{Umeda}-san's wise decision
11356 to separate the newsreader from the backends, Gnus now offers a simple
11357 interface for anybody who wants to write new backends for fetching mail
11358 and news from different sources.  I have added hooks for customizations
11359 everywhere I could imagine useful.  By doing so, I'm inviting every one
11360 of you to explore and invent.
11361
11362 May Gnus never be complete. @kbd{C-u 100 M-x hail-emacs}. 
11363
11364
11365 @node Compatibility
11366 @subsection Compatibility
11367
11368 @cindex compatibility
11369 Gnus was designed to be fully compatible with @sc{gnus}.  Almost all key
11370 bindings have been kept.  More key bindings have been added, of course,
11371 but only in one or two obscure cases have old bindings been changed.
11372
11373 Our motto is:
11374 @quotation
11375 @cartouche
11376 @center In a cloud bones of steel.
11377 @end cartouche
11378 @end quotation
11379
11380 All commands have kept their names.  Some internal functions have changed
11381 their names.
11382
11383 The @code{gnus-uu} package has changed drastically. @pxref{Decoding
11384 Articles}. 
11385
11386 One major compatibility question is the presence of several summary
11387 buffers.  All variables that are relevant while reading a group are
11388 buffer-local to the summary buffer they belong in.  Although many
11389 important variables have their values copied into their global
11390 counterparts whenever a command is executed in the summary buffer, this
11391 change might lead to incorrect values being used unless you are careful.
11392
11393 All code that relies on knowledge of @sc{gnus} internals will probably
11394 fail.  To take two examples: Sorting @code{gnus-newsrc-alist} (or
11395 changing it in any way, as a matter of fact) is strictly verboten.  Gnus
11396 maintains a hash table that points to the entries in this alist (which
11397 speeds up many functions), and changing the alist directly will lead to
11398 peculiar results.
11399
11400 @cindex hilit19
11401 @cindex highlighting
11402 Old hilit19 code does not work at all.  In fact, you should probably
11403 remove all hilit code from all Gnus hooks
11404 (@code{gnus-group-prepare-hook} and @code{gnus-summary-prepare-hook}).
11405 Gnus provides various integrated functions for highlighting.  These are
11406 faster and more accurate.  To make life easier for everybody, Gnus will
11407 by default remove all hilit calls from all hilit hooks.  Uncleanliness!
11408 Away!
11409
11410 Packages like @code{expire-kill} will no longer work.  As a matter of
11411 fact, you should probably remove all old @sc{gnus} packages (and other
11412 code) when you start using Gnus.  More likely than not, Gnus already
11413 does what you have written code to make @sc{gnus} do.  (Snicker.)
11414
11415 Even though old methods of doing things are still supported, only the
11416 new methods are documented in this manual.  If you detect a new method of
11417 doing something while reading this manual, that does not mean you have
11418 to stop doing it the old way.
11419
11420 Gnus understands all @sc{gnus} startup files.
11421
11422 @kindex M-x gnus-bug
11423 @findex gnus-bug
11424 @cindex reporting bugs
11425 @cindex bugs
11426 Overall, a casual user who hasn't written much code that depends on
11427 @sc{gnus} internals should suffer no problems.  If problems occur,
11428 please let me know by issuing that magic command @kbd{M-x gnus-bug}.
11429
11430
11431 @node Conformity
11432 @subsection Conformity
11433
11434 No rebels without a clue here, ma'am.  We conform to all standards known
11435 to (wo)man.  Except for those standards and/or conventions we disagree
11436 with, of course.
11437
11438 @table @strong
11439
11440 @item RFC 822
11441 @cindex RFC 822
11442 There are no known breaches of this standard.
11443
11444 @item RFC 1036
11445 @cindex RFC 1036
11446 There are no known breaches of this standard, either.
11447
11448 @item Usenet Seal of Approval
11449 @cindex Usenet Seal of Approval
11450 Gnus hasn't been formally through the Seal process, but I have read
11451 through the Seal text and I think Gnus would pass.
11452
11453 @item Son-of-RFC 1036
11454 @cindex Son-of-RFC 1036
11455 We do have some breaches to this one.
11456
11457 @table @emph
11458
11459 @item MIME
11460 Gnus does no MIME handling, and this standard-to-be seems to think that
11461 MIME is the bees' knees, so we have major breakage here.
11462
11463 @item X-Newsreader
11464 This is considered to be a ``vanity header'', while I consider it to be
11465 consumer information.  After seeing so many badly formatted articles
11466 coming from @code{tin} and @code{Netscape} I know not to use either of
11467 those for posting articles.  I would not have known that if it wasn't
11468 for the @code{X-Newsreader} header.
11469
11470 @item References
11471 Gnus does line breaking on this header.  I infer from RFC1036 that being
11472 conservative in what you output is not creating 5000-character lines, so
11473 it seems like a good idea to me.  However, this standard-to-be says that
11474 whitespace in the @code{References} header is to be preserved, so...  It
11475 doesn't matter one way or the other to Gnus, so if somebody tells me
11476 what The Way is, I'll change it.  Or not.
11477 @end table
11478
11479 @end table
11480
11481 If you ever notice Gnus acting non-compliantly with regards to the texts
11482 mentioned above, don't hesitate to drop a note to Gnus Towers and let us
11483 know.
11484
11485
11486 @node Emacsen
11487 @subsection Emacsen
11488 @cindex Emacsen
11489 @cindex XEmacs
11490 @cindex Mule
11491 @cindex Emacs
11492
11493 Gnus should work on :
11494
11495 @itemize @bullet 
11496
11497 @item
11498 Emacs 19.30 and up.
11499
11500 @item
11501 XEmacs 19.13 and up.
11502
11503 @item 
11504 Mule versions based on Emacs 19.30 and up.
11505
11506 @end itemize
11507
11508 Gnus will absolutely not work on any Emacsen older than that.  Not
11509 reliably, at least. 
11510
11511 There are some vague differences between Gnus on the various platforms: 
11512
11513 @itemize @bullet
11514
11515 @item
11516 The mouse-face on Gnus lines under Emacs and Mule is delimited to
11517 certain parts of the lines while they cover the entire line under
11518 XEmacs. 
11519
11520 @item 
11521 The same with current-article marking---XEmacs puts an underline under
11522 the entire summary line while Emacs and Mule are nicer and kinder.
11523
11524 @item
11525 XEmacs features more graphics---a logo and a toolbar.
11526
11527 @item
11528 Citation highlighting us better under Emacs and Mule than under XEmacs.
11529
11530 @item
11531 Emacs 19.26-19.28 have tangible hidden headers, which can be a bit
11532 confusing. 
11533
11534 @end itemize
11535
11536
11537 @node Contributors
11538 @subsection Contributors
11539 @cindex contributors
11540
11541 The new Gnus version couldn't have been done without the help of all the
11542 people on the (ding) mailing list.  Every day for over a year I have
11543 gotten billions of nice bug reports from them, filling me with joy,
11544 every single one of them.  Smooches.  The people on the list have been
11545 tried beyond endurance, what with my ``oh, that's a neat idea <type
11546 type>, yup, I'll release it right away <ship off> no wait, that doesn't
11547 work at all <type type>, yup, I'll ship that one off right away <ship
11548 off> no, wait, that absolutely does not work'' policy for releases.
11549 Micro$oft---bah.  Amateurs.  I'm @emph{much} worse.  (Or is that
11550 ``worser''? ``much worser''?  ``worsest''?)
11551
11552 I would like to take this opportunity to thank the Academy for...  oops,
11553 wrong show.
11554
11555 @itemize @bullet
11556 @item
11557 Of course, @sc{gnus} was written by Masanobu @sc{Umeda}.
11558 @item 
11559 Many excellent functions, especially dealing with scoring and
11560 highlighting (as well as the @sc{soup} support) was written
11561 by Per Abrahamsen.
11562 @item
11563 Design and graphics were done by Luis Fernandes.
11564 @item
11565 Innumerable bug fixes were written by Sudish Joseph.
11566 @item 
11567 @code{gnus-topic} was written by Ilja Weis.
11568 @item 
11569 Lots and lots of bugs were found and fixed by Steven L. Baur. 
11570 @item
11571 The refcard was written by Vladimir Alexiev.
11572 @item
11573 I stole some pieces from the XGnus distribution by Felix Lee and JWZ.
11574 @item 
11575 @code{nnfolder} has been much enhanced by Scott Byer.
11576 @item
11577 The orphan scoring was written by Peter Mutsaers.
11578 @item 
11579 GNU XEmacs support has been added by Fabrice Popineau. 
11580 @item 
11581 POP mail support was written by Ken Raeburn.
11582 @item 
11583 Various bits and pieces, especially dealing with .newsrc files, were
11584 suggested and added by Hallvard B Furuseth.
11585 @item 
11586 Brian Edmonds has written @code{gnus-bbdb}.
11587 @item 
11588 Ricardo Nassif and Mark Borges did the proff-reading (sic).
11589 @item
11590 Kevin Davidson came up with the name @dfn{ding}, so blame him.
11591 @item 
11592 Peter Arius, Stainless Steel Rat, Ulrik Dickow, Jack Vinson, Daniel
11593 Quinlan, Frank D. Cringle, Geoffrey T. Dairiki, and Andrew Eskilsson have
11594 all contributed code and suggestions.
11595 @end itemize
11596
11597
11598 @node New Features
11599 @subsection New Features
11600 @cindex new features
11601
11602 @itemize @bullet
11603
11604 @item
11605 The look of all buffers can be changed by setting format-like variables
11606 (@pxref{Group Buffer Format} and @pxref{Summary Buffer Format}). 
11607  
11608 @item 
11609 Local spool and several @sc{nntp} servers can be used at once
11610 (@pxref{Select Methods}).  
11611
11612 @item 
11613 You can combine groups into virtual groups (@pxref{Virtual Groups}).
11614
11615 @item 
11616 You can read a number of different mail formats (@pxref{Getting Mail}).
11617 All the mail backends implement a convenient mail expiry scheme
11618 (@pxref{Expiring Mail}). 
11619
11620 @item
11621 Gnus can use various strategies for gathering threads that have lost
11622 their roots (thereby gathering loose sub-threads into one thread) or it
11623 can go back and retrieve enough headers to build a complete thread
11624 (@pxref{Customizing Threading}).
11625
11626 @item 
11627 Killed groups can be displayed in the group buffer, and you can read
11628 them as well (@pxref{Listing Groups}).
11629
11630 @item 
11631 Gnus can do partial group updates---you do not have to retrieve the
11632 entire active file just to check for new articles in a few groups
11633 (@pxref{The Active File}).
11634
11635 @item 
11636 Gnus implements a sliding scale of subscribedness to groups
11637 (@pxref{Group Levels}).
11638
11639 @item 
11640 You can score articles according to any number of criteria
11641 (@pxref{Scoring}).  You can even get Gnus to find out how to score
11642 articles for you (@pxref{Adaptive Scoring}).
11643
11644 @item 
11645 Gnus maintains a dribble buffer that is auto-saved the normal Emacs
11646 manner, so it should be difficult to lose much data on what you have
11647 read if your machine should go down (@pxref{Auto Save}). 
11648
11649 @item 
11650 Gnus now has its own startup file (@file{.gnus}) to avoid cluttering up
11651 the @file{.emacs} file.
11652
11653 @item 
11654 You can set the process mark on both groups and articles and perform
11655 operations on all the marked items (@pxref{Process/Prefix}).
11656
11657 @item 
11658 You can grep through a subset of groups and create a group from the
11659 results (@pxref{Kibozed Groups}). 
11660
11661 @item 
11662 You can list subsets of groups according to, well, anything
11663 (@pxref{Listing Groups}). 
11664
11665 @item 
11666 You can browse foreign servers and subscribe to groups from those
11667 servers (@pxref{Browse Foreign Server}). 
11668
11669 @item 
11670 Gnus can fetch articles asynchronously on a second connection to the
11671 server (@pxref{Asynchronous Fetching}).
11672
11673 @item 
11674 You can cache articles locally (@pxref{Article Caching}). 
11675
11676 @item 
11677 The uudecode functions have been expanded and generalized
11678 (@pxref{Decoding Articles}). 
11679
11680 @item
11681 You can still post uuencoded articles, which was a little-known feature
11682 of @sc{gnus}' past (@pxref{Uuencoding and Posting}). 
11683
11684 @item
11685 Fetching parents (and other articles) now actually works without
11686 glitches (@pxref{Finding the Parent}). 
11687
11688 @item
11689 Gnus can fetch FAQs and group descriptions (@pxref{Group Information}).
11690
11691 @item
11692 Digests (and other files) can be used as the basis for groups
11693 (@pxref{Document Groups}).
11694
11695 @item 
11696 Articles can be highlighted and customized (@pxref{Customizing
11697 Articles}). 
11698
11699 @item 
11700 URLs and other external references can be buttonized (@pxref{Article
11701 Buttons}). 
11702
11703 @item
11704 You can do lots of strange stuff with the Gnus window & frame
11705 configuration (@pxref{Windows Configuration}).
11706
11707 @item
11708 You can click on buttons instead of using the keyboard
11709 (@pxref{Buttons}). 
11710
11711 @item 
11712 Gnus can use NoCeM files to weed out spam (@pxref{NoCeM}). 
11713
11714 @end itemize
11715
11716 This is, of course, just a @emph{short} overview of the @emph{most}
11717 important new features.  No, really.  There are tons more.  Yes, we have
11718 feeping creaturism in full effect, but nothing too gratuitous, I would
11719 hope. 
11720
11721
11722 @node Newest Features
11723 @subsection Newest Features
11724 @cindex todo
11725
11726 Also known as the @dfn{todo list}.  Sure to be implemented before the
11727 next millennium. 
11728
11729 Be afraid.  Be very afraid.
11730
11731 @itemize @bullet
11732 @item
11733 Native @sc{mime} support is something that should be done.  
11734 @item
11735 A better and simpler method for specifying mail composing methods. 
11736 @item
11737 Allow posting through mail-to-news gateways.
11738 @item
11739 Really do unbinhexing.
11740 @end itemize
11741
11742 And much, much, much more.  There is more to come than has already been
11743 implemented.  (But that's always true, isn't it?)
11744
11745 @code{<URL:http://www.ifi.uio.no/~larsi/sgnus/todo>} is where the actual
11746 up-to-the-second todo list is located, so if you're really curious, you
11747 could point your Web browser over that-a-way.
11748
11749
11750 @node Censorship
11751 @subsection Censorship
11752 @cindex censorship
11753
11754 This version of the Gnus manual (as well as Gnus itself) has been
11755 censored in accord with the Communications Decency Act.  This law was
11756 described by its proponents as a ban on pornography---which was a
11757 deception, since it prohibits far more than that.  This manual did not
11758 contain pornography, but part of it was prohibited nonetheless.
11759
11760 For information on US government censorship of the Internet, and
11761 what you can do to bring back freedom of the press, see the web
11762 site @samp{http://www.vtw.org/}.
11763
11764
11765 @node Terminology
11766 @section Terminology
11767
11768 @cindex terminology
11769 @table @dfn
11770
11771 @item news
11772 @cindex news
11773 This is what you are supposed to use this thing for---reading news.
11774 News is generally fetched from a nearby @sc{nntp} server, and is
11775 generally publicly available to everybody.  If you post news, the entire
11776 world is likely to read just what you have written, and they'll all
11777 snigger mischievously.  Behind your back.
11778
11779 @item mail
11780 @cindex mail
11781 Everything that's delivered to you personally is mail.  Some news/mail
11782 readers (like Gnus) blur the distinction between mail and news, but
11783 there is a difference.  Mail is private.  News is public.  Mailing is
11784 not posting, and replying is not following up.
11785
11786 @item reply
11787 @cindex reply
11788 Send a mail to the person who has written what you are reading.
11789
11790 @item follow up
11791 @cindex follow up
11792 Post an article to the current newsgroup responding to the article you
11793 are reading.
11794
11795 @item backend
11796 @cindex backend
11797 Gnus gets fed articles from a number of backends, both news and mail
11798 backends.  Gnus does not handle the underlying media, so to speak---this
11799 is all done by the backends.
11800
11801 @item native
11802 @cindex native
11803 Gnus will always use one method (and backend) as the @dfn{native}, or
11804 default, way of getting news.
11805
11806 @item foreign
11807 @cindex foreign
11808 You can also have any number of foreign groups active at the same time.
11809 These are groups that use different backends for getting news.
11810
11811 @item secondary
11812 @cindex secondary
11813 Secondary backends are somewhere half-way between being native and being
11814 foreign, but they mostly act like they are native.
11815
11816 @item article
11817 @cindex article
11818 A nessage that has been posted as news.
11819
11820 @item mail message
11821 @cindex mail message
11822 A message that has been mailed.
11823
11824 @item message 
11825 @cindex message
11826 A mail message or news article
11827
11828 @item head
11829 @cindex head
11830 The top part of a message, where administrative information (etc.) is
11831 put.
11832
11833 @item body
11834 @cindex body
11835 The rest of an article.  Everything that is not in the head is in the
11836 body. 
11837
11838 @item header
11839 @cindex header
11840 A line from the head of an article. 
11841
11842 @item headers
11843 @cindex headers
11844 A collection of such lines, or a collection of heads.  Or even a
11845 collection of @sc{nov} lines.
11846
11847 @item @sc{nov}
11848 @cindex nov
11849 When Gnus enters a group, it asks the backend for the headers of all
11850 unread articles in the group.  Most servers support the News OverView
11851 format, which is more compact and much faster to read and parse than the
11852 normal @sc{head} format.
11853
11854 @item level
11855 @cindex levels
11856 Each group is subscribed at some @dfn{level} or other (1-9).  The ones
11857 that have a lower level are ``more'' subscribed than the groups with a
11858 higher level.  In fact, groups on levels 1-5 are considered
11859 @dfn{subscribed}; 6-7 are @dfn{unsubscribed}; 8 are @dfn{zombies}; and 9
11860 are @dfn{killed}.  Commands for listing groups and scanning for new
11861 articles will all use the numeric prefix as @dfn{working level}.
11862
11863 @item killed groups
11864 @cindex killed groups
11865 No information on killed groups is stored or updated, which makes killed
11866 groups much easier to handle than subscribed groups.
11867
11868 @item zombie groups
11869 @cindex zombie groups
11870 Just like killed groups, only slightly less dead.
11871
11872 @item active file
11873 @cindex active file
11874 The news server has to keep track of what articles it carries, and what
11875 groups exist.  All this information in stored in the active file, which
11876 is rather large, as you might surmise.
11877
11878 @item bogus groups
11879 @cindex bogus groups
11880 A group that exists in the @file{.newsrc} file, but isn't known to the
11881 server (i. e.,  it isn't in the active file), is a @emph{bogus group}.
11882 This means that the group probably doesn't exist (any more).
11883
11884 @item server 
11885 @cindex server
11886 A machine than one can connect to and get news (or mail) from.
11887
11888 @item select method
11889 @cindex select method
11890 A structure that specifies the backend, the server and the virtual
11891 server parameters.
11892
11893 @item virtual server
11894 @cindex virtual server
11895 A named select method.  Since a select methods defines all there is to
11896 know about connecting to a (physical) server, taking the who things as a
11897 whole is a virtual server.
11898
11899 @end table
11900
11901
11902 @node Customization
11903 @section Customization
11904 @cindex general customization
11905
11906 All variables are properly documented elsewhere in this manual.  This
11907 section is designed to give general pointers on how to customize Gnus
11908 for some quite common situations.
11909
11910 @menu
11911 * Slow/Expensive Connection:: You run a local Emacs and get the news elsewhere.
11912 * Slow Terminal Connection::  You run a remote Emacs.
11913 * Little Disk Space::         You feel that having large setup files is icky.
11914 * Slow Machine::              You feel like buying a faster machine.
11915 @end menu
11916
11917
11918 @node Slow/Expensive Connection
11919 @subsection Slow/Expensive @sc{nntp} Connection
11920
11921 If you run Emacs on a machine locally, and get your news from a machine
11922 over some very thin strings, you want to cut down on the amount of data
11923 Gnus has to get from the @sc{nntp} server.
11924
11925 @table @code
11926
11927 @item gnus-read-active-file
11928 Set this to @code{nil}, which will inhibit Gnus from requesting the
11929 entire active file from the server.  This file is often v.  large.  You
11930 also have to set @code{gnus-check-new-news} and
11931 @code{gnus-check-bogus-newsgroups} to @code{nil} to make sure that Gnus
11932 doesn't suddenly decide to fetch the active file anyway.
11933
11934 @item gnus-nov-is-evil
11935 This one has to be @code{nil}.  If not, grabbing article headers from
11936 the @sc{nntp} server will not be very fast.  Not all @sc{nntp} servers
11937 support @sc{xover}; Gnus will detect this by itself.
11938 @end table
11939
11940
11941 @node Slow Terminal Connection
11942 @subsection Slow Terminal Connection
11943
11944 Let's say you use your home computer for dialing up the system that
11945 runs Emacs and Gnus.  If your modem is slow, you want to reduce the
11946 amount of data that is sent over the wires as much as possible.
11947
11948 @table @code
11949
11950 @item gnus-auto-center-summary
11951 Set this to @code{nil} to inhibit Gnus from re-centering the summary
11952 buffer all the time.  If it is @code{vertical}, do only vertical
11953 re-centering.  If it is neither @code{nil} nor @code{vertical}, do both
11954 horizontal and vertical recentering.
11955
11956 @item gnus-visible-headers
11957 Cut down on the headers that are included in the articles to the
11958 minimum.  You can, in fact, make do without them altogether---most of the
11959 useful data is in the summary buffer, anyway.  Set this variable to
11960 @samp{^NEVVVVER} or @samp{From:}, or whatever you feel you need.
11961
11962 @item gnus-article-display-hook
11963 Set this hook to all the available hiding commands:
11964 @lisp
11965 (setq gnus-article-display-hook 
11966       '(gnus-article-hide-headers gnus-article-hide-signature
11967         gnus-article-hide-citation))
11968 @end lisp
11969
11970 @item gnus-use-full-window
11971 By setting this to @code{nil}, you can make all the windows smaller.
11972 While this doesn't really cut down much generally, it means that you
11973 have to see smaller portions of articles before deciding that you didn't
11974 want to read them anyway.
11975
11976 @item gnus-thread-hide-subtree
11977 If this is non-@code{nil}, all threads in the summary buffer will be
11978 hidden initially.
11979
11980 @item gnus-updated-mode-lines
11981 If this is @code{nil}, Gnus will not put information in the buffer mode
11982 lines, which might save some time.
11983 @end table
11984
11985
11986 @node Little Disk Space
11987 @subsection Little Disk Space
11988 @cindex disk space
11989
11990 The startup files can get rather large, so you may want to cut their
11991 sizes a bit if you are running out of space.
11992
11993 @table @code
11994
11995 @item gnus-save-newsrc-file
11996 If this is @code{nil}, Gnus will never save @file{.newsrc}---it will
11997 only save @file{.newsrc.eld}.  This means that you will not be able to
11998 use any other newsreaders than Gnus.  This variable is @code{t} by
11999 default. 
12000
12001 @item gnus-save-killed-list
12002 If this is @code{nil}, Gnus will not save the list of dead groups.  You
12003 should also set @code{gnus-check-new-newsgroups} to @code{ask-server}
12004 and @code{gnus-check-bogus-newsgroups} to @code{nil} if you set this
12005 variable to @code{nil}.  This variable is @code{t} by default.
12006
12007 @end table
12008
12009
12010 @node Slow Machine
12011 @subsection Slow Machine
12012 @cindex slow machine
12013
12014 If you have a slow machine, or are just really impatient, there are a
12015 few things you can do to make Gnus run faster.
12016
12017 Set@code{gnus-check-new-newsgroups} and
12018 @code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
12019
12020 Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
12021 @code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
12022 summary buffer faster.
12023
12024 Set @code{gnus-article-display-hook} to @code{nil} to make article
12025 processing a bit faster.
12026
12027
12028 @node Troubleshooting
12029 @section Troubleshooting
12030 @cindex troubleshooting
12031
12032 Gnus works @emph{so} well straight out of the box---I can't imagine any
12033 problems, really.
12034
12035 Ahem.
12036
12037 @enumerate
12038
12039 @item
12040 Make sure your computer is switched on.
12041
12042 @item
12043 Make sure that you really load the current Gnus version.  If you have
12044 been running @sc{gnus}, you need to exit Emacs and start it up again before
12045 Gnus will work.
12046
12047 @item
12048 Try doing an @kbd{M-x gnus-version}.  If you get something that looks
12049 like @samp{Gnus v5.46; nntp 4.0} you have the right files loaded.  If,
12050 on the other hand, you get something like @samp{NNTP 3.x} or @samp{nntp
12051 flee}, you have some old @file{.el} files lying around.  Delete these.
12052
12053 @item
12054 Read the help group (@kbd{G h} in the group buffer) for a FAQ and a
12055 how-to. 
12056 @end enumerate
12057
12058 If all else fails, report the problem as a bug.
12059
12060 @cindex bugs
12061 @cindex reporting bugs
12062
12063 @kindex M-x gnus-bug
12064 @findex gnus-bug
12065 If you find a bug in Gnus, you can report it with the @kbd{M-x gnus-bug}
12066 command. @kbd{M-x set-variable RET debug-on-error RET t RET}, and send
12067 me the backtrace.  I will fix bugs, but I can only fix them if you send
12068 me a precise description as to how to reproduce the bug.
12069
12070 You really can never be too detailed in a bug report.  Always use the
12071 @kbd{M-x gnus-bug} command when you make bug reports, even if it creates
12072 a 10Kb mail each time you use it, and even if you have sent me your
12073 environment 500 times before.  I don't care.  I want the full info each
12074 time.  
12075
12076 It is also important to remember that I have no memory whatsoever.  If
12077 you send a bug report, and I send you a reply, and then you send back
12078 just ``No, it's not! Moron!'', I will have no idea what you are
12079 insulting me about.  Always over-explain everything.  It's much easier
12080 for all of us---if I don't have all the information I need, I will just
12081 mail you and ask for more info, and everything takes more time.
12082
12083 If you just need help, you are better off asking on
12084 @samp{gnu.emacs.gnus}.  I'm not very helpful.
12085
12086 @cindex gnu.emacs.gnus
12087 @cindex ding mailing list
12088 You can also ask on the ding mailing list---@samp{ding@@ifi.uio.no}.
12089 Write to @samp{ding-request@@ifi.uio.no} to subscribe.
12090
12091
12092 @node A Programmers Guide to Gnus
12093 @section A Programmer's Guide to Gnus
12094
12095 It is my hope that other people will figure out smart stuff that Gnus
12096 can do, and that other people will write those smart things as well.  To
12097 facilitate that I thought it would be a good idea to describe the inner
12098 workings of Gnus.  And some of the not-so-inner workings, while I'm at
12099 it.
12100
12101 You can never expect the internals of a program not to change, but I
12102 will be defining (in some details) the interface between Gnus and its
12103 backends (this is written in stone), the format of the score files
12104 (ditto), data structures (some are less likely to change than others)
12105 and general method of operations.
12106
12107 @menu 
12108 * Backend Interface::        How Gnus communicates with the servers.
12109 * Score File Syntax::        A BNF definition of the score file standard.
12110 * Headers::                  How Gnus stores headers internally.
12111 * Ranges::                   A handy format for storing mucho numbers.
12112 * Group Info::               The group info format.
12113 * Various File Formats::     Formats of files that Gnus use.
12114 @end menu
12115
12116
12117 @node Backend Interface
12118 @subsection Backend Interface
12119
12120 Gnus doesn't know anything about @sc{nntp}, spools, mail or virtual
12121 groups.  It only knows how to talk to @dfn{virtual servers}.  A virtual
12122 server is a @dfn{backend} and some @dfn{backend variables}.  As examples
12123 of the first, we have @code{nntp}, @code{nnspool} and @code{nnmbox}.  As
12124 examples of the latter we have @code{nntp-port-number} and
12125 @code{nnmbox-directory}.
12126
12127 When Gnus asks for information from a backend---say @code{nntp}---on
12128 something, it will normally include a virtual server name in the
12129 function parameters.  (If not, the backend should use the ``current''
12130 virtual server.)  For instance, @code{nntp-request-list} takes a virtual
12131 server as its only (optional) parameter.  If this virtual server hasn't
12132 been opened, the function should fail.
12133
12134 Note that a virtual server name has no relation to some physical server
12135 name.  Take this example:
12136
12137 @lisp
12138 (nntp "odd-one" 
12139       (nntp-address "ifi.uio.no") 
12140       (nntp-port-number 4324))
12141 @end lisp
12142
12143 Here the virtual server name is @samp{odd-one} while the name of
12144 the physical server is @samp{ifi.uio.no}. 
12145
12146 The backends should be able to switch between several virtual servers.
12147 The standard backends implement this by keeping an alist of virtual
12148 server environments that it pulls down/pushes up when needed.  
12149
12150 There are two groups of interface functions: @dfn{required functions},
12151 which must be present, and @dfn{optional functions}, which Gnus will
12152 always check whether are present before attempting to call.
12153
12154 All these functions are expected to return data in the buffer
12155 @code{nntp-server-buffer} (@samp{ *nntpd*}), which is somewhat
12156 unfortunately named, but we'll have to live with it.  When I talk about
12157 ``resulting data'', I always refer to the data in that buffer.  When I
12158 talk about ``return value'', I talk about the function value returned by
12159 the function call.
12160
12161 Some backends could be said to be @dfn{server-forming} backends, and
12162 some might be said to not be.  The latter are backends that generally
12163 only operate on one group at a time, and have no concept of ``server''
12164 -- they have a group, and they deliver info on that group and nothing
12165 more.
12166
12167 In the examples and definitions I will refer to the imaginary backend
12168 @code{nnchoke}. 
12169
12170 @cindex @code{nnchoke}
12171
12172 @menu
12173 * Required Backend Functions::        Functions that must be implemented.
12174 * Optional Backend Functions::        Functions that need not be implemented.
12175 @end menu
12176
12177
12178 @node Required Backend Functions
12179 @subsubsection Required Backend Functions
12180
12181 @table @code
12182
12183 @item (nnchoke-retrieve-headers ARTICLES &optional GROUP SERVER FETCH-OLD)
12184
12185 @var{articles} is either a range of article numbers or a list of
12186 @code{Message-ID}s.  Current backends do not fully support either---only
12187 sequences (lists) of article numbers, and most backends do not support
12188 retrieval of @code{Message-ID}s.  But they should try for both. 
12189
12190 The result data should either be HEADs or NOV lines, and the result
12191 value should either be @code{headers} or @code{nov} to reflect this.
12192 This might later be expanded to @code{various}, which will be a mixture
12193 of HEADs and NOV lines, but this is currently not supported by Gnus.  
12194
12195 If @var{fetch-old} is non-@code{nil} it says to try to fetch "extra
12196 headers, in some meaning of the word.  This is generally done by
12197 fetching (at most) @var{fetch-old} extra headers less than the smallest
12198 article number in @code{articles}, and fill in the gaps as well.  The
12199 presence of this parameter can be ignored if the backend finds it
12200 cumbersome to follow the request.  If this is non-@code{nil} and not a
12201 number, do maximum fetches.
12202
12203 Here's an example HEAD:
12204
12205 @example
12206 221 1056 Article retrieved.
12207 Path: ifi.uio.no!sturles
12208 From: sturles@@ifi.uio.no (Sturle Sunde)
12209 Newsgroups: ifi.discussion
12210 Subject: Re: Something very droll
12211 Date: 27 Oct 1994 14:02:57 +0100
12212 Organization: Dept. of Informatics, University of Oslo, Norway
12213 Lines: 26
12214 Message-ID: <38o8e1$a0o@@holmenkollen.ifi.uio.no>
12215 References: <38jdmq$4qu@@visbur.ifi.uio.no>
12216 NNTP-Posting-Host: holmenkollen.ifi.uio.no
12217 .
12218 @end example
12219
12220 So a @code{headers} return value would imply that there's a number of
12221 these in the data buffer.
12222
12223 Here's a BNF definition of such a buffer:
12224
12225 @example
12226 headers        = *head
12227 head           = error / valid-head
12228 error-message  = [ "4" / "5" ] 2number " " <error message> eol
12229 valid-head     = valid-message *header "." eol
12230 valid-message  = "221 " <number> " Article retrieved." eol
12231 header         = <text> eol
12232 @end example
12233
12234 If the return value is @code{nov}, the data buffer should contain
12235 @dfn{network overview database} lines.  These are basically fields
12236 separated by tabs. 
12237
12238 @example
12239 nov-buffer = *nov-line
12240 nov-line   = 8*9 [ field <TAB> ] eol
12241 field      = <text except TAB>
12242 @end example
12243
12244 For a closer explanation what should be in those fields,
12245 @pxref{Headers}. 
12246
12247
12248 @item (nnchoke-open-server SERVER &optional DEFINITIONS)
12249
12250 @var{server} is here the virtual server name.  @var{definitions} is a
12251 list of @code{(VARIABLE VALUE)} pairs that defines this virtual server. 
12252
12253 If the server can't be opened, no error should be signaled.  The backend
12254 may then choose to refuse further attempts at connecting to this
12255 server.  In fact, it should do so. 
12256
12257 If the server is opened already, this function should return a
12258 non-@code{nil} value.  There should be no data returned.
12259
12260
12261 @item (nnchoke-close-server &optional SERVER)
12262
12263 Close connection to @var{server} and free all resources connected
12264 to it. 
12265
12266 There should be no data returned.
12267
12268
12269 @item (nnchoke-request-close)
12270
12271 Close connection to all servers and free all resources that the backend
12272 have reserved.  All buffers that have been created by that backend
12273 should be killed.  (Not the @code{nntp-server-buffer}, though.)
12274
12275 There should be no data returned. 
12276
12277
12278 @item (nnchoke-server-opened &optional SERVER)
12279
12280 This function should return whether @var{server} is opened, and that the
12281 connection to it is still alive.  This function should under no
12282 circumstances attempt to reconnect to a server that is has lost
12283 connection to. 
12284
12285 There should be no data returned.
12286
12287
12288 @item (nnchoke-status-message &optional SERVER)
12289
12290 This function should return the last error message from @var{server}. 
12291
12292 There should be no data returned.
12293
12294
12295 @item (nnchoke-request-article ARTICLE &optional GROUP SERVER TO-BUFFER)
12296
12297 The result data from this function should be the article specified by
12298 @var{article}.  This might either be a @code{Message-ID} or a number.
12299 It is optional whether to implement retrieval by @code{Message-ID}, but
12300 it would be nice if that were possible.
12301
12302 If @var{to-buffer} is non-@code{nil}, the result data should be returned
12303 in this buffer instead of the normal data buffer.  This is to make it
12304 possible to avoid copying large amounts of data from one buffer to
12305 another, and Gnus mainly request articles to be inserted directly into
12306 its article buffer.
12307
12308
12309 @item (nnchoke-open-group GROUP &optional SERVER)
12310
12311 Make @var{group} the current group.  
12312
12313 There should be no data returned by this function.
12314
12315
12316 @item (nnchoke-request-group GROUP &optional SERVER)
12317
12318 Get data on @var{group}.  This function also has the side effect of
12319 making @var{group} the current group. 
12320
12321 Here's an example of some result data and a definition of the same:
12322
12323 @example
12324 211 56 1000 1059 ifi.discussion
12325 @end example
12326
12327 The first number is the status, which should be @code{211}.  Next is the
12328 total number of articles in the group, the lowest article number, the
12329 highest article number, and finally the group name.  Note that the total
12330 number of articles may be less than one might think while just
12331 considering the highest and lowest article numbers, but some articles
12332 may have been canceled.  Gnus just discards the total-number, so
12333 whether one should take the bother to generate it properly (if that is a
12334 problem) is left as an exercise to the reader.
12335
12336 @example
12337 group-status = [ error / info ] eol
12338 error        = [ "4" / "5" ] 2<number> " " <Error message>
12339 info         = "211 " 3* [ <number> " " ] <string>
12340 @end example
12341
12342
12343 @item (nnchoke-close-group GROUP &optional SERVER)
12344
12345 Close @var{group} and free any resources connected to it.  This will be
12346 a no-op on most backends. 
12347
12348 There should be no data returned.
12349
12350
12351 @item (nnchoke-request-list &optional SERVER)
12352
12353 Return a list of all groups available on @var{server}.  And that means
12354 @emph{all}. 
12355
12356 Here's an example from a server that only carries two groups:
12357
12358 @example
12359 ifi.test 0000002200 0000002000 y
12360 ifi.discussion 3324 3300 n
12361 @end example
12362
12363 On each line we have a group name, then the highest article number in
12364 that group, the lowest article number, and finally a flag.
12365
12366 @example
12367 active-file = *active-line
12368 active-line = name " " <number> " " <number> " " flags eol
12369 name        = <string>
12370 flags       = "n" / "y" / "m" / "x" / "j" / "=" name
12371 @end example
12372
12373 The flag says whether the group is read-only (@samp{n}), is moderated
12374 (@samp{m}), is dead (@samp{x}), is aliased to some other group
12375 (@samp{=other-group} or none of the above (@samp{y}). 
12376
12377
12378 @item (nnchoke-request-post &optional SERVER)
12379
12380 This function should post the current buffer.  It might return whether
12381 the posting was successful or not, but that's not required.  If, for
12382 instance, the posting is done asynchronously, it has generally not been
12383 completed by the time this function concludes.  In that case, this
12384 function should set up some kind of sentinel to beep the user loud and
12385 clear if the posting could not be completed.
12386
12387 There should be no result data from this function. 
12388
12389
12390 @item (nnchoke-request-post-buffer POST GROUP SUBJECT HEADER ARTICLE-BUFFER INFO FOLLOW-TO RESPECT-POSTER)
12391
12392 This function should return a buffer suitable for composing an article
12393 to be posted by @code{nnchoke-request-post}.  If @var{post} is
12394 non-@code{nil}, this is not a followup, but a totally new article.
12395 @var{group} is the name of the group to be posted to.  @var{subject} is
12396 the subject of the message.  @var{article-buffer} is the buffer being
12397 followed up, if that is the case.  @var{info} is the group info.
12398 @var{follow-to} is the group that one is supposed to re-direct the
12399 article ot.  If @var{respect-poster} is non-@code{nil}, the special
12400 @samp{poster} value of a @code{Followup-To} header is to be respected.
12401
12402 There should be no result data returned.
12403
12404 @end table
12405
12406
12407 @node Optional Backend Functions
12408 @subsubsection Optional Backend Functions
12409
12410 @table @code
12411
12412 @item (nnchoke-retrieve-groups GROUPS &optional SERVER)
12413
12414 @var{groups} is a list of groups, and this function should request data
12415 on all those groups.  How it does it is of no concern to Gnus, but it
12416 should attempt to do this in a speedy fashion.
12417
12418 The return value of this function can be either @code{active} or
12419 @code{group}, which says what the format of the result data is.  The
12420 former is in the same format as the data from
12421 @code{nnchoke-request-list}, while the latter is a buffer full of lines
12422 in the same format as @code{nnchoke-request-group} gives.
12423
12424 @example
12425 group-buffer = *active-line / *group-status
12426 @end example
12427
12428
12429 @item (nnchoke-request-update-info GROUP INFO &optional SERVER)
12430
12431 A Gnus group info (@pxref{Group Info}) is handed to the backend for
12432 alterations.  This comes in handy if the backend really carries all the
12433 information (as is the case with virtual an imap groups).  This function
12434 may alter the info in any manner it sees fit, and should return the
12435 (altered) group info.  This function may alter the group info
12436 destructively, so no copying is needed before boogeying. 
12437
12438 There should be no result data from this function.
12439
12440
12441 @item (nnchoke-request-type GROUP &optional ARTICLE)
12442
12443 When the user issues commands for ``sending news'' (@kbd{F} in the
12444 summary buffer, for instance), Gnus has to know whether the article the
12445 user is following up is news or mail.  This function should return
12446 @code{news} if @var{article} in @var{group} is news, @code{mail} if it
12447 is mail and @code{unknown} if the type can't be decided.  (The
12448 @var{article} parameter is necessary in @code{nnvirtual} groups which
12449 might very well combine mail groups and news groups.)
12450
12451 There should be no result data from this function.
12452
12453
12454 @item (nnchoke-request-update-mark GROUP ARTICLE MARK)
12455
12456 If the user tries to set a mark that the backend doesn't like, this
12457 function may change the mark.  Gnus will use whatever this function
12458 returns as the mark for @var{article} instead of the original
12459 @var{mark}.  If the backend doesn't care, it must return the original
12460 @var{mark}, and not @code{nil} or any other type of garbage.  
12461
12462 The only use for this that I can see is what @code{nnvirtual} does with
12463 it---if a component group is auto-expirable, marking an article as read
12464 in the virtual group should result in the article being marked as
12465 expirable. 
12466
12467 There should be no result data from this function.
12468
12469
12470 @item (nnchoke-request-scan &optional GROUP SERVER)
12471
12472 This function may be called at any time (by Gnus or anything else) to
12473 request that the backend check for incoming articles, in one way or
12474 another.  A mail backend will typically read the spool file or query the
12475 POP server when this function is invoked.  The @var{group} doesn't have
12476 to be heeded---if the backend decides that it is too much work just
12477 scanning for a single group, it may do a total scan of all groups.  It
12478 would be nice, however, to keep things local if that's practical.
12479
12480 There should be no result data from this function.
12481
12482
12483 @item (nnchoke-request-asynchronous GROUP &optional SERVER ARTICLES)
12484
12485 This is a request to fetch articles asynchronously later.
12486 @var{articles} is an alist of @var{(article-number line-number)}.  One
12487 would generally expect that if one later fetches article number 4, for
12488 instance, some sort of asynchronous fetching of the articles after 4
12489 (which might be 5, 6, 7 or 11, 3, 909 depending on the order in that
12490 alist) would be fetched asynchronously, but that is left up to the
12491 backend.  Gnus doesn't care.
12492
12493 There should be no result data from this function.
12494  
12495
12496 @item (nnchoke-request-group-description GROUP &optional SERVER)
12497
12498 The result data from this function should be a description of
12499 @var{group}. 
12500
12501 @example
12502 description-line = name <TAB> description eol
12503 name             = <string>
12504 description      = <text>
12505 @end example
12506
12507 @item (nnchoke-request-list-newsgroups &optional SERVER)
12508
12509 The result data from this function should be the description of all
12510 groups available on the server.
12511
12512 @example
12513 description-buffer = *description-line
12514 @end example
12515
12516
12517 @item (nnchoke-request-newgroups DATE &optional SERVER)
12518
12519 The result data from this function should be all groups that were
12520 created after @samp{date}, which is in normal human-readable date
12521 format.  The data should be in the active buffer format.
12522
12523
12524 @item (nnchoke-request-create-groups GROUP &optional SERVER)
12525
12526 This function should create an empty group with name @var{group}.  
12527
12528 There should be no return data.
12529
12530
12531 @item (nnchoke-request-expire-articles ARTICLES &optional GROUP SERVER FORCE)
12532
12533 This function should run the expiry process on all articles in the
12534 @var{articles} range (which is currently a simple list of article
12535 numbers.)  It is left up to the backend to decide how old articles
12536 should be before they are removed by this function.  If @var{force} is
12537 non-@code{nil}, all @var{articles} should be deleted, no matter how new
12538 they are. 
12539
12540 This function should return a list of articles that it did not/was not
12541 able to delete.
12542
12543 There should be no result data returned.
12544
12545
12546 @item (nnchoke-request-move-article ARTICLE GROUP SERVER ACCEPT-FORM
12547 &optional LAST)
12548
12549 This function should move @var{article} (which is a number) from
12550 @var{group} by calling @var{accept-form}.  
12551
12552 This function should ready the article in question for moving by
12553 removing any header lines it has added to the article, and generally
12554 should ``tidy up'' the article.  Then it should @code{eval}
12555 @var{accept-form} in the buffer where the ``tidy'' article is.  This
12556 will do the actual copying.  If this @code{eval} returns a
12557 non-@code{nil} value, the article should be removed.
12558
12559 If @var{last} is @code{nil}, that means that there is a high likelihood
12560 that there will be more requests issued shortly, so that allows some
12561 optimizations. 
12562
12563 There should be no data returned. 
12564
12565
12566 @item (nnchoke-request-accept-article GROUP &optional LAST)
12567
12568 This function takes the current buffer and inserts it into @var{group}.
12569 If @var{last} in @code{nil}, that means that there will be more calls to
12570 this function in short order.
12571
12572 There should be no data returned.
12573
12574
12575 @item (nnchoke-request-replace-article ARTICLE GROUP BUFFER)
12576
12577 This function should remove @var{article} (which is a number) from
12578 @var{group} and insert @var{buffer} there instead.
12579
12580 There should be no data returned.
12581
12582
12583 @item (nnchoke-request-delete-group GROUP FORCE &optional SERVER)
12584
12585 This function should delete @var{group}.  If @var{force}, it should
12586 really delete all the articles in the group, and then delete the group
12587 itself.  (If there is such a thing as ``the group itself''.)
12588
12589 There should be no data returned.
12590
12591
12592 @item (nnchoke-request-rename-group GROUP NEW-NAME &optional SERVER)
12593
12594 This function should rename @var{group} into @var{new-name}.  All
12595 articles that are in @var{group} should move to @var{new-name}.
12596
12597 There should be no data returned.
12598
12599 @end table
12600
12601
12602 @node Score File Syntax
12603 @subsection Score File Syntax
12604
12605 Score files are meant to be easily parsable, but yet extremely
12606 mallable.   It was decided that something that had the same read syntax
12607 as an Emacs Lisp list would fit that spec.
12608
12609 Here's a typical score file:
12610
12611 @lisp
12612 (("summary"
12613   ("win95" -10000 nil s)
12614   ("Gnus"))
12615  ("from"
12616   ("Lars" -1000))
12617  (mark -100))
12618 @end lisp
12619
12620 BNF definition of a score file:
12621
12622 @example
12623 score-file       = "" / "(" *element ")"
12624 element          = rule / atom
12625 rule             = string-rule / number-rule / date-rule
12626 string-rule      = "(" quote string-header quote space *string-match ")"
12627 number-rule      = "(" quote number-header quote space *number-match ")"
12628 date-rule        = "(" quote date-header quote space *date-match ")"
12629 quote            = <ascii 34>
12630 string-header    = "subject" / "from" / "references" / "message-id" / 
12631                    "xref" / "body" / "head" / "all" / "followup"
12632 number-header    = "lines" / "chars"
12633 date-header      = "date"
12634 string-match     = "(" quote <string> quote [ "" / [ space score [ "" / 
12635                    space date [ "" / [ space string-match-t ] ] ] ] ] ")"
12636 score            = "nil" / <integer>
12637 date             = "nil" / <natural number>
12638 string-match-t   = "nil" / "s" / "substring" / "S" / "Substring" / 
12639                    "r" / "regex" / "R" / "Regex" /
12640                    "e" / "exact" / "E" / "Exact" /
12641                    "f" / "fuzzy" / "F" / "Fuzzy"
12642 number-match     = "(" <integer> [ "" / [ space score [ "" / 
12643                    space date [ "" / [ space number-match-t ] ] ] ] ] ")"
12644 number-match-t   = "nil" / "=" / "<" / ">" / ">=" / "<="
12645 date-match       = "(" quote <string> quote [ "" / [ space score [ "" / 
12646                    space date [ "" / [ space date-match-t ] ] ] ] ")"
12647 date-match-t     = "nil" / "at" / "before" / "after"
12648 atom             = "(" [ required-atom / optional-atom ] ")"
12649 required-atom    = mark / expunge / mark-and-expunge / files /
12650                    exclude-files / read-only / touched
12651 optional-atom    = adapt / local / eval 
12652 mark             = "mark" space nil-or-number
12653 nil-or-number    = "nil" / <integer>
12654 expunge          = "expunge" space nil-or-number
12655 mark-and-expunge = "mark-and-expunge" space nil-or-number
12656 files            = "files" *[ space <string> ]
12657 exclude-files    = "exclude-files" *[ space <string> ]
12658 read-only        = "read-only" [ space "nil" / space "t" ]
12659 adapt            = "adapt" [ space "nil" / space "t" / space adapt-rule ]
12660 adapt-rule       = "(" *[ <string> *[ "(" <string> <integer> ")" ] ")"
12661 local            = "local" *[ space "(" <string> space <form> ")" ]
12662 eval             = "eval" space <form>
12663 space            = *[ " " / <TAB> / <NEWLINE> ]
12664 @end example
12665
12666 Any unrecognized elements in a score file should be ignored, but not
12667 discarded.  
12668
12669 As you can see, white space is needed, but the type and amount of white
12670 space is irrelevant.  This means that formatting of the score file is
12671 left up to the programmer---if it's simpler to just spew it all out on
12672 one looong line, then that's ok.
12673
12674 The meaning of the various atoms are explained elsewhere in this
12675 manual. 
12676
12677
12678 @node Headers
12679 @subsection Headers
12680
12681 Gnus uses internally a format for storing article headers that
12682 corresponds to the @sc{nov} format in a mysterious fashion.  One could
12683 almost suspect that the author looked at the @sc{nov} specification and
12684 just shamelessly @emph{stole} the entire thing, and one would be right.
12685
12686 @dfn{Header} is a severely overloaded term.  ``Header'' is used in
12687 RFC1036 to talk about lines in the head of an article (eg.,
12688 @code{From}).  It is used by many people as a synonym for
12689 ``head''---``the header and the body''.  (That should be avoided, in my
12690 opinion.)  And Gnus uses a format internally that it calls ``header'',
12691 which is what I'm talking about here.  This is a 9-element vector,
12692 basically, with each header (ouch) having one slot.
12693
12694 These slots are, in order: @code{number}, @code{subject}, @code{from},
12695 @code{date}, @code{id}, @code{references}, @code{chars}, @code{lines},
12696 @code{xref}.  There are macros for accessing and setting these slots --
12697 they all have predictable names beginning with @code{mail-header-} and
12698 @code{mail-header-set-}, respectively.  
12699
12700 The @code{xref} slot is really a @code{misc} slot.  Any extra info will
12701 be put in there.
12702
12703
12704 @node Ranges
12705 @subsection Ranges
12706
12707 @sc{gnus} introduced a concept that I found so useful that I've started
12708 using it a lot and have elaborated on it greatly. 
12709
12710 The question is simple: If you have a large amount of objects that are
12711 identified by numbers (say, articles, to take a @emph{wild} example)
12712 that you want to callify as being ``included'', a normal sequence isn't
12713 very useful.  (A 200,000 length sequence is a bit long-winded.)
12714
12715 The solution is as simple as the question: You just collapse the
12716 sequence. 
12717
12718 @example
12719 (1 2 3 4 5 6 10 11 12)
12720 @end example
12721
12722 is transformed into
12723
12724 @example
12725 ((1 . 6) (10 . 12))
12726 @end example
12727
12728 To avoid having those nasty @samp{(13 . 13)} elements to denote a
12729 lonesome object, a @samp{13} is a valid element:
12730
12731 @example
12732 ((1 . 6) 7 (10 . 12))
12733 @end example
12734
12735 This means that comparing two ranges to find out whether they are equal
12736 is slightly tricky:
12737
12738 @example
12739 ((1 . 5) 7 8 (10 . 12))
12740 @end example
12741
12742 and
12743
12744 @example
12745 ((1 . 5) (7 . 8) (10 . 12))
12746 @end example
12747
12748 are equal.  In fact, any non-descending list is a range:
12749
12750 @example
12751 (1 2 3 4 5)
12752 @end example
12753
12754 is a perfectly valid range, although a pretty long-winded one.  This is
12755 also legal:
12756
12757 @example
12758 (1 . 5)
12759 @end example
12760
12761 and is equal to the previous range.
12762
12763 Here's a BNF definition of ranges.  Of course, one must remember the
12764 semantic requirement that the numbers are non-descending.  (Any number
12765 of repetition of the same number is allowed, but apt to disappear in
12766 range handling.)
12767
12768 @example
12769 range           = simple-range / normal-range
12770 simple-range    = "(" number " . " number ")"
12771 normal-range    = "(" start-contents ")"
12772 contents        = "" / simple-range *[ " " contents ] / 
12773                   number *[ " " contents ]
12774 @end example
12775
12776 Gnus currently uses ranges to keep track of read articles and article
12777 marks.  I plan on implementing a number of range operators in C if The
12778 Powers That Be are willing to let me.  (I haven't asked yet, because I
12779 need to do some more thinking on what operators I need to make life
12780 totally range-based without ever having to convert back to normal
12781 sequences.) 
12782
12783
12784 @node Group Info
12785 @subsection Group Info
12786
12787 Gnus stores all permanent info on groups in a @dfn{group info} list.
12788 This list is from three to six elements (or more) long and exhaustively
12789 describes the group.
12790
12791 Here are two example group infos; one is a very simple group while the
12792 second is a more complex one:
12793
12794 @example
12795 ("no.group" 5 (1 . 54324))
12796
12797 ("nnml:my.mail" 3 ((1 . 5) 9 (20 . 55))
12798                 ((tick (15 . 19)) (replied 3 6 (19 . 3)))
12799                 (nnml "")
12800                 (auto-expire (to-address "ding@@ifi.uio.no")))
12801 @end example
12802
12803 The first element is the group name as Gnus knows the group; the second
12804 is the group level; the third is the read articles in range format; the
12805 fourth is a list of article marks lists; the fifth is the select method;
12806 and the sixth contains the group parameters.
12807
12808 Here's a BNF definition of the group info format:
12809
12810 @example
12811 info          = "(" group space level space read 
12812                 [ "" / [ space marks-list [ "" / [ space method [ "" /
12813                 space parameters ] ] ] ] ] ")" 
12814 group         = quote <string> quote
12815 level         = <integer in the range of 1 to inf>
12816 read          = range
12817 marks-lists   = nil / "(" *marks ")"
12818 marks         = "(" <string> range ")"
12819 method        = "(" <string> *elisp-forms ")"
12820 parameters    = "(" *elisp-forms ")"
12821 @end example
12822
12823 Actually that @samp{marks} rule is a fib.  A @samp{marks} is a
12824 @samp{<string>} consed on to a @samp{range}, but that's a bitch to say
12825 in pseudo-BNF.
12826
12827
12828 @node Various File Formats
12829 @subsection Various File Formats
12830
12831 @menu
12832 * Active File Format::      Information on articles and groups available.
12833 * Newsgroups File Format::  Group descriptions.
12834 @end menu
12835
12836
12837 @node Active File Format
12838 @subsubsection Active File Format
12839
12840 The active file lists all groups that are available on the server in
12841 question.  It also lists the highest and lowest current article numbers
12842 in each group.  
12843
12844 Here's an excerpt from a typical active file:
12845
12846 @example
12847 soc.motss 296030 293865 y
12848 alt.binaries.pictures.fractals 3922 3913 n
12849 comp.sources.unix 1605 1593 m
12850 comp.binaries.ibm.pc 5097 5089 y
12851 no.general 1000 900 y
12852 @end example
12853
12854 Here's a pseudo-BNF definition of this file:
12855
12856 @example
12857 active      = *group-line
12858 group-line  = group space high-number space low-number space flag <NEWLINE>
12859 group       = <non-white-space string>
12860 space       = " "
12861 high-number = <non-negative integer>
12862 low-number  = <positive integer>
12863 flag        = "y" / "n" / "m" / "j" / "x" / "=" group
12864 @end example
12865
12866
12867 @node Newsgroups File Format
12868 @subsubsection Newsgroups File Format
12869
12870 The newsgroups file lists groups along with their descriptions.  Not all
12871 groups on the server have to be listed,  and not all groups in the file
12872 have to exist on the server.  The file is meant purely as information to
12873 the user.
12874
12875 The format is quite simple; a group name, a tab, and the description.
12876 Here's the definition:
12877
12878 @example
12879 newsgroups    = *line
12880 line          = group tab description <NEWLINE>
12881 group         = <non-white-space string>
12882 tab           = <TAB>
12883 description   = <string>
12884 @end example
12885
12886
12887 @node Emacs for Heathens
12888 @section Emacs for Heathens
12889
12890 Believe it or not, but some people who use Gnus haven't really used
12891 Emacs much before they embarked on their journey on the Gnus Love Boat.
12892 If you are one of those unfortunates whom ``@kbd{M-C-a}'', ``kill the
12893 region'', and ``set @code{gnus-flargblossen} to an alist where the key
12894 is a regexp that is used for matching on the group name'' are magical
12895 phrases with little or no meaning, then this appendix is for you.  If
12896 you are already familiar with Emacs, just ignore this and go fondle your
12897 cat instead.
12898
12899 @menu
12900 * Keystrokes::      Entering text and executing commands.
12901 * Emacs Lisp::      The built-in Emacs programming language.
12902 @end menu
12903
12904
12905 @node Keystrokes
12906 @subsection Keystrokes
12907
12908 @itemize @bullet
12909 @item
12910 Q: What is an experienced Emacs user?
12911
12912 @item 
12913 A: A person who wishes that the terminal had pedals.
12914 @end itemize
12915
12916 Yes, when you use Emacs, you are apt to use the control key, the shift
12917 key and the meta key a lot.  This is very annoying to some people
12918 (notably @code{vi}le users), and the rest of us just love the hell out
12919 of it.  Just give up and submit.  Emacs really does stand for
12920 ``Escape-Meta-Alt-Control-Shift'', and not ``Editing Macros'', as you
12921 may have heard from other disreputable sources (like the Emacs author).
12922
12923 The shift key is normally located near your pinky fingers, and are
12924 normally used to get capital letters and stuff.  You probably use it all
12925 the time.  The control key is normally marked ``CTRL'' or something like
12926 that.  The meta key is, funnily enough, never marked as such on any
12927 keyboards.  The one I'm currently at has a key that's marked ``Alt'',
12928 which is the meta key on this keyboard.  It's usually located somewhere
12929 to the left hand side of the keyboard, usually on the bottom row.
12930
12931 Now, us Emacs people doesn't say ``press the meta-control-m key'',
12932 because that's just too inconvenient.  We say ``press the @kbd{M-C-m}
12933 key''.  @kbd{M-} is the prefix that means ``meta'' and ``C-'' is the
12934 prefix that means ``control''.  So ``press @kbd{C-k}'' means ``press
12935 down the control key, and hold it down while you press @kbd{k}''.
12936 ``Press @kbd{M-C-k}'' means ``press down and hold down the meta key and
12937 the control key and then press @kbd{k}''.  Simple, ay?
12938
12939 This is somewhat complicated by the fact that not all keyboards have a
12940 meta key.  In that case you can use the ``escape'' key.  Then @kbd{M-k}
12941 means ``press escape, release escape, press @kbd{k}''.  That's much more
12942 work than if you have a meta key, so if that's the case, I respectfully
12943 suggest you get a real keyboard with a meta key.  You can't live without
12944 it.
12945
12946
12947
12948 @node Emacs Lisp
12949 @subsection Emacs Lisp
12950
12951 Emacs is the King of Editors because it's really a Lisp interpreter.
12952 Each and every key you tap runs some Emacs Lisp code snippet, and since
12953 Emacs Lisp is an interpreted language, that means that you can configure
12954 any key to run any random code.  You just, like, do it.  
12955
12956 Gnus is written in Emacs Lisp, and is run as a bunch of interpreted
12957 functions.  (These are byte-compiled for speed, but it's still
12958 interpreted.)  If you decide that you don't like the way Gnus does
12959 certain things, it's trivial to have it do something a different way.
12960 (Well, at least if you know how to write Lisp code.)  However, that's
12961 beyond the scope of this manual, so we are simply going to talk about
12962 some common constructs that you normally use in your @file{.emacs} file
12963 to customize Gnus.
12964
12965 If you want to set the variable @code{gnus-florgbnize} to four (4), you
12966 write the following:
12967
12968 @lisp
12969 (setq gnus-florgbnize 4)
12970 @end lisp
12971
12972 This function (really ``special form'') @code{setq} is the one that can
12973 set a variable to some value.  This is really all you need to know.  Now
12974 you can go and fill your @code{.emacs} file with lots of these to change
12975 how Gnus works.
12976
12977 If you have put that thing in your @code{.emacs} file, it will be read
12978 and @code{eval}ed (which is lisp-ese for ``run'') the next time you
12979 start Emacs.  If you want to change the variable right away, simply say
12980 @kbd{C-x C-e} after the closing parenthesis.  That will @code{eval} the
12981 previous ``form'', which here is a simple @code{setq} statement.
12982
12983 Go ahead---just try it, if you're located at your Emacs.  After you
12984 @kbd{C-x C-e}, you will see @samp{4} appear in the echo area, which
12985 is the return value of the form you @code{eval}ed.
12986
12987 Some pitfalls:
12988
12989 If the manual says ``set @code{gnus-read-active-file} to @code{some}'',
12990 that means:
12991
12992 @lisp
12993 (setq gnus-read-active-file 'some)
12994 @end lisp
12995
12996 On the other hand, if the manual says ``set @code{gnus-nntp-server} to
12997 @samp{nntp.ifi.uio.no}'', that means:
12998
12999 @lisp
13000 (setq gnus-nntp-server "nntp.ifi.uio.no")
13001 @end lisp
13002
13003 So be careful not to mix up strings (the latter) with symbols (the
13004 former).  The manual is unambiguous, but it can be confusing.
13005
13006
13007 @include gnus-faq.texi
13008
13009 @node Index
13010 @chapter Index
13011 @printindex cp
13012
13013 @node Key Index
13014 @chapter Key Index
13015 @printindex ky
13016
13017 @summarycontents
13018 @contents
13019 @bye
13020
13021 @iftex
13022 @iflatex
13023 \end{document}
13024 @end iflatex
13025 @end iftex
13026
13027 @c End:
13028