Change the example and the doc to use the new format of header match.
[gnus] / texi / gnus.texi
1 \input texinfo
2
3 @setfilename gnus
4 @settitle Gnus Manual
5 @synindex fn cp
6 @synindex vr cp
7 @synindex pg cp
8 @dircategory Emacs
9 @direntry
10 * Gnus: (gnus).         The newsreader Gnus.
11 @end direntry
12 @iftex
13 @finalout
14 @end iftex
15 @setchapternewpage odd
16
17 @iftex
18 @iflatex
19 \documentclass[twoside,a4paper,openright,11pt]{book}
20 \usepackage[latin1]{inputenc}
21 \usepackage{pagestyle}
22 \usepackage{epsfig}
23 \usepackage{pixidx}
24 \input{gnusconfig.tex}
25
26 \ifx\pdfoutput\undefined
27 \else
28 \usepackage[pdftex,bookmarks,colorlinks=true]{hyperref}
29 \usepackage{thumbpdf}
30 \pdfcompresslevel=9
31 \fi
32
33 \makeindex
34 \begin{document}
35
36 \newcommand{\gnusversionname}{Oort Gnus v0.06}
37 \newcommand{\gnuschaptername}{}
38 \newcommand{\gnussectionname}{}
39
40 \newcommand{\gnusbackslash}{/}
41
42 \newcommand{\gnusref}[1]{``#1'' on page \pageref{#1}}
43 \ifx\pdfoutput\undefined
44 \newcommand{\gnusuref}[1]{\gnustt{#1}}
45 \else
46 \newcommand{\gnusuref}[1]{\href{#1}{\gnustt{#1}}}
47 \fi
48 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
49 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
50
51 \newcommand{\gnuskindex}[1]{\index{#1}}
52 \newcommand{\gnusindex}[1]{\index{#1}}
53
54 \newcommand{\gnustt}[1]{{\gnusselectttfont{}#1}}
55 \newcommand{\gnuscode}[1]{\gnustt{#1}}
56 \newcommand{\gnussamp}[1]{``{\fontencoding{OT1}\gnusselectttfont{}#1}''}
57 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
58 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
59 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
60 \newcommand{\gnusdfn}[1]{\textit{#1}}
61 \newcommand{\gnusi}[1]{\textit{#1}}
62 \newcommand{\gnusstrong}[1]{\textbf{#1}}
63 \newcommand{\gnusemph}[1]{\textit{#1}}
64 \newcommand{\gnusvar}[1]{{\fontsize{10pt}{10}\selectfont\textsl{\textsf{#1}}}}
65 \newcommand{\gnussc}[1]{\textsc{#1}}
66 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
67 \newcommand{\gnusversion}[1]{{\small\textit{#1}}}
68 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
69 \newcommand{\gnusresult}[1]{\gnustt{=> #1}}
70
71 \newcommand{\gnusbullet}{{${\bullet}$}}
72 \newcommand{\gnusdollar}{\$}
73 \newcommand{\gnusampersand}{\&}
74 \newcommand{\gnuspercent}{\%}
75 \newcommand{\gnushash}{\#}
76 \newcommand{\gnushat}{\symbol{"5E}}
77 \newcommand{\gnusunderline}{\symbol{"5F}}
78 \newcommand{\gnusnot}{$\neg$}
79 \newcommand{\gnustilde}{\symbol{"7E}}
80 \newcommand{\gnusless}{{$<$}}
81 \newcommand{\gnusgreater}{{$>$}}
82 \newcommand{\gnusbraceleft}{{$>$}}
83 \newcommand{\gnusbraceright}{{$>$}}
84
85 \newcommand{\gnushead}{\raisebox{-1cm}{\epsfig{figure=ps/gnus-head,height=1cm}}}
86 \newcommand{\gnusinteresting}{
87 \marginpar[\mbox{}\hfill\gnushead]{\gnushead}
88 }
89
90 \newcommand{\gnuscleardoublepage}{\ifodd\count0\mbox{}\clearpage\thispagestyle{empty}\mbox{}\clearpage\else\clearpage\fi}
91
92 \newcommand{\gnuspagechapter}[1]{
93 {\mbox{}}
94 }
95
96 \newdimen{\gnusdimen}
97 \gnusdimen 0pt
98
99 \newcommand{\gnuschapter}[2]{
100 \gnuscleardoublepage
101 \ifdim \gnusdimen = 0pt\setcounter{page}{1}\pagestyle{gnus}\pagenumbering{arabic} \gnusdimen 1pt\fi
102 \chapter{#2}
103 \renewcommand{\gnussectionname}{}
104 \renewcommand{\gnuschaptername}{#2}
105 \thispagestyle{empty}
106 \hspace*{-2cm}
107 \begin{picture}(500,500)(0,0)
108 \put(480,350){\makebox(0,0)[tr]{#1}}
109 \put(40,300){\makebox(500,50)[bl]{{\Huge\bf{#2}}}}
110 \end{picture}
111 \clearpage
112 }
113
114 \newcommand{\gnusfigure}[3]{
115 \begin{figure}
116 \mbox{}\ifodd\count0\hspace*{-0.8cm}\else\hspace*{-3cm}\fi\begin{picture}(440,#2)
117 #3
118 \end{picture}
119 \caption{#1}
120 \end{figure}
121 }
122
123 \newcommand{\gnusicon}[1]{
124 \marginpar[\mbox{}\hfill\raisebox{-1.5cm}{\epsfig{figure=ps/#1-up,height=1.5cm}}]{\raisebox{-1cm}{\epsfig{figure=ps/#1-up,height=1cm}}}
125 }
126
127 \newcommand{\gnuspicon}[1]{
128 \margindex{\epsfig{figure=#1,width=2cm}}
129 }
130
131 \newcommand{\gnusxface}[2]{
132 \margindex{\epsfig{figure=#1,width=1cm}\epsfig{figure=#2,width=1cm}}
133 }
134
135 \newcommand{\gnussmiley}[2]{
136 \margindex{\makebox[2cm]{\hfill\epsfig{figure=#1,width=0.5cm}\hfill\epsfig{figure=#2,width=0.5cm}\hfill}}
137 }
138
139 \newcommand{\gnusitemx}[1]{\mbox{}\vspace*{-\itemsep}\vspace*{-\parsep}\item#1}
140
141 \newcommand{\gnussection}[1]{
142 \renewcommand{\gnussectionname}{#1}
143 \section{#1}
144 }
145
146 \newenvironment{codelist}%
147 {\begin{list}{}{
148 }
149 }{\end{list}}
150
151 \newenvironment{kbdlist}%
152 {\begin{list}{}{
153 \labelwidth=0cm
154 }
155 }{\end{list}}
156
157 \newenvironment{dfnlist}%
158 {\begin{list}{}{
159 }
160 }{\end{list}}
161
162 \newenvironment{stronglist}%
163 {\begin{list}{}{
164 }
165 }{\end{list}}
166
167 \newenvironment{samplist}%
168 {\begin{list}{}{
169 }
170 }{\end{list}}
171
172 \newenvironment{varlist}%
173 {\begin{list}{}{
174 }
175 }{\end{list}}
176
177 \newenvironment{emphlist}%
178 {\begin{list}{}{
179 }
180 }{\end{list}}
181
182 \newlength\gnusheadtextwidth
183 \setlength{\gnusheadtextwidth}{\headtextwidth}
184 \addtolength{\gnusheadtextwidth}{1cm}
185
186 \newpagestyle{gnuspreamble}%
187 {
188 {
189 \ifodd\count0
190 {
191 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\mbox{}}\textbf{\hfill\roman{page}}}
192 }
193 \else
194 {
195 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\roman{page}\hfill\mbox{}}}
196 }
197 }
198 \fi
199 }
200 }
201 {
202 \ifodd\count0
203 \mbox{} \hfill
204 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
205 \else
206 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
207 \hfill \mbox{}
208 \fi
209 }
210
211 \newpagestyle{gnusindex}%
212 {
213 {
214 \ifodd\count0
215 {
216 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\gnuschaptername\hfill\arabic{page}}}}
217 }
218 \else
219 {
220 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}
221 }
222 \fi
223 }
224 }
225 {
226 \ifodd\count0
227 \mbox{} \hfill
228 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
229 \else
230 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
231 \hfill \mbox{}
232 \fi
233 }
234
235 \newpagestyle{gnus}%
236 {
237 {
238 \ifodd\count0
239 {
240 \makebox[12cm]{\hspace*{3.1cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{chapter}.\arabic{section}} \textbf{\gnussectionname\hfill\arabic{page}}}}}
241 }
242 \else
243 {
244 \makebox[12cm]{\hspace*{-2.95cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}}
245 }
246 \fi
247 }
248 }
249 {
250 \ifodd\count0
251 \mbox{} \hfill
252 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
253 \else
254 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
255 \hfill \mbox{}
256 \fi
257 }
258
259 \pagenumbering{roman}
260 \pagestyle{gnuspreamble}
261
262 @end iflatex
263 @end iftex
264
265 @iftex
266 @iflatex
267 \begin{titlepage}
268 {
269
270 %\addtolength{\oddsidemargin}{-5cm}
271 %\addtolength{\evensidemargin}{-5cm}
272 \parindent=0cm
273 \addtolength{\textheight}{2cm}
274
275 \gnustitle{\gnustitlename}\hfill\gnusversion{\gnusversionname}\\
276 \rule{15cm}{1mm}\\
277 \vfill
278 \hspace*{0cm}\epsfig{figure=ps/gnus-big-logo,height=15cm}
279 \vfill
280 \rule{15cm}{1mm}\\
281 \gnusauthor{by Lars Magne Ingebrigtsen}
282 \newpage
283 }
284
285 \mbox{}
286 \vfill
287
288 \thispagestyle{empty}
289
290 Copyright \copyright{} 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
291 Free Software Foundation, Inc.
292
293
294 Permission is granted to copy, distribute and/or modify this document
295 under the terms of the GNU Free Documentation License, Version 1.1 or
296 any later version published by the Free Software Foundation; with no
297 Invariant Sections, with the Front-Cover texts being ``A GNU
298 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
299 license is included in the section entitled ``GNU Free Documentation
300 License'' in the Emacs manual.
301
302 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
303 this GNU Manual, like GNU software.  Copies published by the Free
304 Software Foundation raise funds for GNU development.''
305
306 This document is part of a collection distributed under the GNU Free
307 Documentation License.  If you want to distribute this document
308 separately from the collection, you can do so by adding a copy of the
309 license to the document, as described in section 6 of the license.
310 \newpage
311 \end{titlepage}
312 @end iflatex
313 @end iftex
314
315 @ifnottex
316
317 This file documents Gnus, the GNU Emacs newsreader.
318
319 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
320         Free Software Foundation, Inc.
321
322 Permission is granted to copy, distribute and/or modify this document
323 under the terms of the GNU Free Documentation License, Version 1.1 or
324 any later version published by the Free Software Foundation; with the
325 Invariant Sections being none, with the Front-Cover texts being ``A GNU
326 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
327 license is included in the section entitled ``GNU Free Documentation
328 License'' in the Emacs manual.
329
330 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
331 this GNU Manual, like GNU software.  Copies published by the Free
332 Software Foundation raise funds for GNU development.''
333
334 This document is part of a collection distributed under the GNU Free
335 Documentation License.  If you want to distribute this document
336 separately from the collection, you can do so by adding a copy of the
337 license to the document, as described in section 6 of the license.
338 @end ifnottex
339
340 @tex
341
342 @titlepage
343 @title Gnus Manual
344
345 @author by Lars Magne Ingebrigtsen
346 @page
347
348 @vskip 0pt plus 1filll
349 Copyright @copyright{} 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
350         Free Software Foundation, Inc.
351
352 Permission is granted to copy, distribute and/or modify this document
353 under the terms of the GNU Free Documentation License, Version 1.1 or
354 any later version published by the Free Software Foundation; with no
355 Invariant Sections, with the Front-Cover texts being ``A GNU
356 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
357 license is included in the section entitled ``GNU Free Documentation
358 License'' in the Emacs manual.
359
360 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
361 this GNU Manual, like GNU software.  Copies published by the Free
362 Software Foundation raise funds for GNU development.''
363
364 This document is part of a collection distributed under the GNU Free
365 Documentation License.  If you want to distribute this document
366 separately from the collection, you can do so by adding a copy of the
367 license to the document, as described in section 6 of the license.
368
369 @end titlepage
370 @page
371
372 @end tex
373
374
375 @node Top
376 @top The Gnus Newsreader
377
378 @ifinfo
379
380 You can read news (and mail) from within Emacs by using Gnus.  The news
381 can be gotten by any nefarious means you can think of---@sc{nntp}, local
382 spool or your mbox file.  All at the same time, if you want to push your
383 luck.
384
385 This manual corresponds to Oort Gnus v0.06
386
387 @end ifinfo
388
389 @iftex
390
391 @iflatex
392 \tableofcontents
393 \gnuscleardoublepage
394 @end iflatex
395
396 Gnus is the advanced, self-documenting, customizable, extensible
397 unreal-time newsreader for GNU Emacs.
398
399 Oops.  That sounds oddly familiar, so let's start over again to avoid
400 being accused of plagiarism:
401
402 Gnus is a message-reading laboratory.  It will let you look at just
403 about anything as if it were a newsgroup.  You can read mail with it,
404 you can browse directories with it, you can @code{ftp} with it---you
405 can even read news with it!
406
407 Gnus tries to empower people who read news the same way Emacs empowers
408 people who edit text.  Gnus sets no limits to what the user should be
409 allowed to do.  Users are encouraged to extend Gnus to make it behave
410 like they want it to behave.  A program should not control people;
411 people should be empowered to do what they want by using (or abusing)
412 the program.
413
414 @end iftex
415
416 @menu
417 * Starting Up::                 Finding news can be a pain.
418 * Group Buffer::                Selecting, subscribing and killing groups.
419 * Summary Buffer::              Reading, saving and posting articles.
420 * Article Buffer::              Displaying and handling articles.
421 * Composing Messages::          Information on sending mail and news.
422 * Select Methods::              Gnus reads all messages from various select methods.
423 * Scoring::                     Assigning values to articles.
424 * Various::                     General purpose settings.
425 * The End::                     Farewell and goodbye.
426 * Appendices::                  Terminology, Emacs intro, FAQ, History, Internals.
427 * Index::                       Variable, function and concept index.
428 * Key Index::                   Key Index.
429
430 @detailmenu
431  --- The Detailed Node Listing ---
432
433 Starting Gnus
434
435 * Finding the News::            Choosing a method for getting news.
436 * The First Time::              What does Gnus do the first time you start it?
437 * The Server is Down::          How can I read my mail then?
438 * Slave Gnusae::                You can have more than one Gnus active at a time.
439 * Fetching a Group::            Starting Gnus just to read a group.
440 * New Groups::                  What is Gnus supposed to do with new groups?
441 * Changing Servers::            You may want to move from one server to another.
442 * Startup Files::               Those pesky startup files---@file{.newsrc}.
443 * Auto Save::                   Recovering from a crash.
444 * The Active File::             Reading the active file over a slow line Takes Time.
445 * Startup Variables::           Other variables you might change.
446
447 New Groups
448
449 * Checking New Groups::         Determining what groups are new.
450 * Subscription Methods::        What Gnus should do with new groups.
451 * Filtering New Groups::        Making Gnus ignore certain new groups.
452
453 Group Buffer
454
455 * Group Buffer Format::         Information listed and how you can change it.
456 * Group Maneuvering::           Commands for moving in the group buffer.
457 * Selecting a Group::           Actually reading news.
458 * Subscription Commands::       Unsubscribing, killing, subscribing.
459 * Group Data::                  Changing the info for a group.
460 * Group Levels::                Levels? What are those, then?
461 * Group Score::                 A mechanism for finding out what groups you like.
462 * Marking Groups::              You can mark groups for later processing.
463 * Foreign Groups::              Creating and editing groups.
464 * Group Parameters::            Each group may have different parameters set.
465 * Listing Groups::              Gnus can list various subsets of the groups.
466 * Sorting Groups::              Re-arrange the group order.
467 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
468 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
469 * Exiting Gnus::                Stop reading news and get some work done.
470 * Group Topics::                A folding group mode divided into topics.
471 * Misc Group Stuff::            Other stuff that you can to do.
472
473 Group Buffer Format
474
475 * Group Line Specification::    Deciding how the group buffer is to look.
476 * Group Modeline Specification::  The group buffer modeline.
477 * Group Highlighting::          Having nice colors in the group buffer.
478
479 Group Topics
480
481 * Topic Commands::              Interactive E-Z commands.
482 * Topic Variables::             How to customize the topics the Lisp Way.
483 * Topic Sorting::               Sorting each topic individually.
484 * Topic Topology::              A map of the world.
485 * Topic Parameters::            Parameters that apply to all groups in a topic.
486
487 Misc Group Stuff
488
489 * Scanning New Messages::       Asking Gnus to see whether new messages have arrived.
490 * Group Information::           Information and help on groups and Gnus.
491 * Group Timestamp::             Making Gnus keep track of when you last read a group.
492 * File Commands::               Reading and writing the Gnus files.
493 * Sieve Commands::              Managing Sieve scripts.
494
495 Summary Buffer
496
497 * Summary Buffer Format::       Deciding how the summary buffer is to look.
498 * Summary Maneuvering::         Moving around the summary buffer.
499 * Choosing Articles::           Reading articles.
500 * Paging the Article::          Scrolling the current article.
501 * Reply Followup and Post::     Posting articles.
502 * Delayed Articles::            
503 * Marking Articles::            Marking articles as read, expirable, etc.
504 * Limiting::                    You can limit the summary buffer.
505 * Threading::                   How threads are made.
506 * Sorting the Summary Buffer::  How articles and threads are sorted.
507 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
508 * Article Caching::             You may store articles in a cache.
509 * Persistent Articles::         Making articles expiry-resistant.
510 * Article Backlog::             Having already read articles hang around.
511 * Saving Articles::             Ways of customizing article saving.
512 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
513 * Article Treatment::           The article buffer can be mangled at will.
514 * MIME Commands::               Doing MIMEy things with the articles.
515 * Charsets::                    Character set issues.
516 * Article Commands::            Doing various things with the article buffer.
517 * Summary Sorting::             Sorting the summary buffer in various ways.
518 * Finding the Parent::          No child support? Get the parent.
519 * Alternative Approaches::      Reading using non-default summaries.
520 * Tree Display::                A more visual display of threads.
521 * Mail Group Commands::         Some commands can only be used in mail groups.
522 * Various Summary Stuff::       What didn't fit anywhere else.
523 * Exiting the Summary Buffer::  Returning to the Group buffer,
524                                 or reselecting the current group.
525 * Crosspost Handling::          How crossposted articles are dealt with.
526 * Duplicate Suppression::       An alternative when crosspost handling fails.
527 * Security::                    Decrypt and Verify.
528 * Mailing List::                Mailing list minor mode.
529
530 Summary Buffer Format
531
532 * Summary Buffer Lines::        You can specify how summary lines should look.
533 * To From Newsgroups::          How to not display your own name.
534 * Summary Buffer Mode Line::    You can say how the mode line should look.
535 * Summary Highlighting::        Making the summary buffer all pretty and nice.
536
537 Choosing Articles
538
539 * Choosing Commands::           Commands for choosing articles.
540 * Choosing Variables::          Variables that influence these commands.
541
542 Reply, Followup and Post
543
544 * Summary Mail Commands::       Sending mail.
545 * Summary Post Commands::       Sending news.
546 * Summary Message Commands::    Other Message-related commands.
547 * Canceling and Superseding::   
548
549 Marking Articles
550
551 * Unread Articles::             Marks for unread articles.
552 * Read Articles::               Marks for read articles.
553 * Other Marks::                 Marks that do not affect readedness.
554 * Setting Marks::               
555 * Generic Marking Commands::    
556 * Setting Process Marks::       
557
558 Marking Articles
559
560 * Setting Marks::             How to set and remove marks.
561 * Generic Marking Commands::  How to customize the marking.
562 * Setting Process Marks::     How to mark articles for later processing.
563
564 Threading
565
566 * Customizing Threading::       Variables you can change to affect the threading.
567 * Thread Commands::             Thread based commands in the summary buffer.
568
569 Customizing Threading
570
571 * Loose Threads::               How Gnus gathers loose threads into bigger threads.
572 * Filling In Threads::          Making the threads displayed look fuller.
573 * More Threading::              Even more variables for fiddling with threads.
574 * Low-Level Threading::         You thought it was over... but you were wrong!
575
576 Decoding Articles
577
578 * Uuencoded Articles::          Uudecode articles.
579 * Shell Archives::              Unshar articles.
580 * PostScript Files::            Split PostScript.
581 * Other Files::                 Plain save and binhex.
582 * Decoding Variables::          Variables for a happy decoding.
583 * Viewing Files::               You want to look at the result of the decoding?
584
585 Decoding Variables
586
587 * Rule Variables::              Variables that say how a file is to be viewed.
588 * Other Decode Variables::      Other decode variables.
589 * Uuencoding and Posting::      Variables for customizing uuencoding.
590
591 Article Treatment
592
593 * Article Highlighting::        You want to make the article look like fruit salad.
594 * Article Fontisizing::         Making emphasized text look nice.
595 * Article Hiding::              You also want to make certain info go away.
596 * Article Washing::             Lots of way-neat functions to make life better.
597 * Article Header::              Doing various header transformations.
598 * Article Buttons::             Click on URLs, Message-IDs, addresses and the like.
599 * Article Date::                Grumble, UT!
600 * Article Display::             Display various stuff---X-Face, Picons, Smileys
601 * Article Signature::           What is a signature?
602 * Article Miscellania::         Various other stuff.
603
604 Alternative Approaches
605
606 * Pick and Read::               First mark articles and then read them.
607 * Binary Groups::               Auto-decode all articles.
608
609 Various Summary Stuff
610
611 * Summary Group Information::   Information oriented commands.
612 * Searching for Articles::      Multiple article commands.
613 * Summary Generation Commands::  
614 * Really Various Summary Commands::  Those pesky non-conformant commands.
615
616 Article Buffer
617
618 * Hiding Headers::              Deciding what headers should be displayed.
619 * Using MIME::                  Pushing articles through @sc{mime} before reading them.
620 * Customizing Articles::        Tailoring the look of the articles.
621 * Article Keymap::              Keystrokes available in the article buffer.
622 * Misc Article::                Other stuff.
623
624 Composing Messages
625
626 * Mail::                        Mailing and replying.
627 * Posting Server::              What server should you post via?
628 * Mail and Post::               Mailing and posting at the same time.
629 * Archived Messages::           Where Gnus stores the messages you've sent.
630 * Posting Styles::              An easier way to specify who you are.
631 * Drafts::                      Postponing messages and rejected messages.
632 * Rejected Articles::           What happens if the server doesn't like your article?
633 * Signing and encrypting::      How to compose secure messages.
634
635 Select Methods
636
637 * Server Buffer::               Making and editing virtual servers.
638 * Getting News::                Reading USENET news with Gnus.
639 * Getting Mail::                Reading your personal mail with Gnus.
640 * Browsing the Web::            Getting messages from a plethora of Web sources.
641 * IMAP::                        Using Gnus as a @sc{imap} client.
642 * Other Sources::               Reading directories, files, SOUP packets.
643 * Combined Groups::             Combining groups into one group.
644 * Gnus Unplugged::              Reading news and mail offline.
645
646 Server Buffer
647
648 * Server Buffer Format::        You can customize the look of this buffer.
649 * Server Commands::             Commands to manipulate servers.
650 * Example Methods::             Examples server specifications.
651 * Creating a Virtual Server::   An example session.
652 * Server Variables::            Which variables to set.
653 * Servers and Methods::         You can use server names as select methods.
654 * Unavailable Servers::         Some servers you try to contact may be down.
655
656 Getting News
657
658 * NNTP::                        Reading news from an @sc{nntp} server.
659 * News Spool::                  Reading news from the local spool.
660
661 @sc{nntp}
662
663 * Direct Functions::            Connecting directly to the server.
664 * Indirect Functions::          Connecting indirectly to the server.
665 * Common Variables::            Understood by several connection functions.
666
667 Getting Mail
668
669 * Mail in a Newsreader::        Important introductory notes.
670 * Getting Started Reading Mail::  A simple cookbook example.
671 * Splitting Mail::              How to create mail groups.
672 * Mail Sources::                How to tell Gnus where to get mail from.
673 * Mail Back End Variables::     Variables for customizing mail handling.
674 * Fancy Mail Splitting::        Gnus can do hairy splitting of incoming mail.
675 * Group Mail Splitting::        Use group customize to drive mail splitting.
676 * Incorporating Old Mail::      What about the old mail you have?
677 * Expiring Mail::               Getting rid of unwanted mail.
678 * Washing Mail::                Removing gruft from the mail you get.
679 * Duplicates::                  Dealing with duplicated mail.
680 * Not Reading Mail::            Using mail back ends for reading other files.
681 * Choosing a Mail Back End::    Gnus can read a variety of mail formats.
682
683 Mail Sources
684
685 * Mail Source Specifiers::      How to specify what a mail source is.
686 * Mail Source Customization::   Some variables that influence things.
687 * Fetching Mail::               Using the mail source specifiers.
688
689 Choosing a Mail Back End
690
691 * Unix Mail Box::               Using the (quite) standard Un*x mbox.
692 * Rmail Babyl::                 Emacs programs use the rmail babyl format.
693 * Mail Spool::                  Store your mail in a private spool?
694 * MH Spool::                    An mhspool-like back end.
695 * Mail Folders::                Having one file for each group.
696 * Comparing Mail Back Ends::    An in-depth looks at pros and cons.
697
698 Browsing the Web
699
700 * Archiving Mail::              
701 * Web Searches::                Creating groups from articles that match a string.
702 * Slashdot::                    Reading the Slashdot comments.
703 * Ultimate::                    The Ultimate Bulletin Board systems.
704 * Web Archive::                 Reading mailing list archived on web.
705 * RSS::                         Reading RDF site summary.
706 * Customizing w3::              Doing stuff to Emacs/w3 from Gnus.
707
708 @sc{imap}
709
710 * Splitting in IMAP::           Splitting mail with nnimap.
711 * Editing IMAP ACLs::           Limiting/enabling other users access to a mailbox.
712 * Expunging mailboxes::         Equivalent of a "compress mailbox" button.
713
714 Other Sources
715
716 * Directory Groups::            You can read a directory as if it was a newsgroup.
717 * Anything Groups::             Dired?  Who needs dired?
718 * Document Groups::             Single files can be the basis of a group.
719 * SOUP::                        Reading @sc{soup} packets ``offline''.
720 * Mail-To-News Gateways::       Posting articles via mail-to-news gateways.
721
722 Document Groups
723
724 * Document Server Internals::   How to add your own document types.
725
726 SOUP
727
728 * SOUP Commands::               Commands for creating and sending @sc{soup} packets
729 * SOUP Groups::                 A back end for reading @sc{soup} packets.
730 * SOUP Replies::                How to enable @code{nnsoup} to take over mail and news.
731
732 Combined Groups
733
734 * Virtual Groups::              Combining articles from many groups.
735 * Kibozed Groups::              Looking through parts of the newsfeed for articles.
736
737 Gnus Unplugged
738
739 * Agent Basics::                How it all is supposed to work.
740 * Agent Categories::            How to tell the Gnus Agent what to download.
741 * Agent Commands::              New commands for all the buffers.
742 * Agent Expiry::                How to make old articles go away.
743 * Agent and IMAP::              How to use the Agent with IMAP.
744 * Outgoing Messages::           What happens when you post/mail something?
745 * Agent Variables::             Customizing is fun.
746 * Example Setup::               An example @file{.gnus.el} file for offline people.
747 * Batching Agents::             How to fetch news from a @code{cron} job.
748 * Agent Caveats::               What you think it'll do and what it does.
749
750 Agent Categories
751
752 * Category Syntax::             What a category looks like.
753 * Category Buffer::             A buffer for maintaining categories.
754 * Category Variables::          Customize'r'Us.
755
756 Agent Commands
757
758 * Group Agent Commands::        
759 * Summary Agent Commands::      
760 * Server Agent Commands::       
761
762 Scoring
763
764 * Summary Score Commands::      Adding score entries for the current group.
765 * Group Score Commands::        General score commands.
766 * Score Variables::             Customize your scoring.  (My, what terminology).
767 * Score File Format::           What a score file may contain.
768 * Score File Editing::          You can edit score files by hand as well.
769 * Adaptive Scoring::            Big Sister Gnus knows what you read.
770 * Home Score File::             How to say where new score entries are to go.
771 * Followups To Yourself::       Having Gnus notice when people answer you.
772 * Scoring On Other Headers::    Scoring on non-standard headers.
773 * Scoring Tips::                How to score effectively.
774 * Reverse Scoring::             That problem child of old is not problem.
775 * Global Score Files::          Earth-spanning, ear-splitting score files.
776 * Kill Files::                  They are still here, but they can be ignored.
777 * Converting Kill Files::       Translating kill files to score files.
778 * GroupLens::                   Getting predictions on what you like to read.
779 * Advanced Scoring::            Using logical expressions to build score rules.
780 * Score Decays::                It can be useful to let scores wither away.
781
782 GroupLens
783
784 * Using GroupLens::             How to make Gnus use GroupLens.
785 * Rating Articles::             Letting GroupLens know how you rate articles.
786 * Displaying Predictions::      Displaying predictions given by GroupLens.
787 * GroupLens Variables::         Customizing GroupLens.
788
789 Advanced Scoring
790
791 * Advanced Scoring Syntax::     A definition.
792 * Advanced Scoring Examples::   What they look like.
793 * Advanced Scoring Tips::       Getting the most out of it.
794
795 Various
796
797 * Process/Prefix::              A convention used by many treatment commands.
798 * Interactive::                 Making Gnus ask you many questions.
799 * Symbolic Prefixes::           How to supply some Gnus functions with options.
800 * Formatting Variables::        You can specify what buffers should look like.
801 * Window Layout::               Configuring the Gnus buffer windows.
802 * Faces and Fonts::             How to change how faces look.
803 * Compilation::                 How to speed Gnus up.
804 * Mode Lines::                  Displaying information in the mode lines.
805 * Highlighting and Menus::      Making buffers look all nice and cozy.
806 * Buttons::                     Get tendinitis in ten easy steps!
807 * Daemons::                     Gnus can do things behind your back.
808 * NoCeM::                       How to avoid spam and other fatty foods.
809 * Undo::                        Some actions can be undone.
810 * Predicate Specifiers::        Specifying predicates.
811 * Moderation::                  What to do if you're a moderator.
812 * Image Enhancements::          Modern versions of Emacs/XEmacs can display images.
813 * Fuzzy Matching::              What's the big fuzz?
814 * Thwarting Email Spam::        A how-to on avoiding unsolicited commercial email.
815 * Various Various::             Things that are really various.
816
817 Formatting Variables
818
819 * Formatting Basics::           A formatting variable is basically a format string.
820 * Mode Line Formatting::        Some rules about mode line formatting variables.
821 * Advanced Formatting::         Modifying output in various ways.
822 * User-Defined Specs::          Having Gnus call your own functions.
823 * Formatting Fonts::            Making the formatting look colorful and nice.
824 * Positioning Point::           Moving point to a position after an operation.
825 * Tabulation::                  Tabulating your output.
826 * Wide Characters::             Dealing with wide characters.
827
828 Image Enhancements
829
830 * Picons::                      How to display pictures of what you're reading.
831 * Smileys::                     Show all those happy faces the way they were meant to be shown.
832 * X-Face::                      Display a funky, teensy black-and-white image.
833 * Toolbar::                     Click'n'drool.
834 * XVarious::                    Other XEmacsy Gnusey variables.
835
836 Picons
837
838 * Picon Basics::                What are picons and How do I get them.
839 * Picon Requirements::          Don't go further if you aren't using XEmacs.
840 * Easy Picons::                 Displaying Picons---the easy way.
841 * Hard Picons::                 The way you should do it.  You'll learn something.
842 * Picon Useless Configuration::  Other variables you can trash/tweak/munge/play with.
843
844 Appendices
845
846 * XEmacs::                      Requirements for installing under XEmacs.
847 * History::                     How Gnus got where it is today.
848 * On Writing Manuals::          Why this is not a beginner's guide.
849 * Terminology::                 We use really difficult, like, words here.
850 * Customization::               Tailoring Gnus to your needs.
851 * Troubleshooting::             What you might try if things do not work.
852 * Gnus Reference Guide::        Rilly, rilly technical stuff.
853 * Emacs for Heathens::          A short introduction to Emacsian terms.
854 * Frequently Asked Questions::
855
856 History
857
858 * Gnus Versions::               What Gnus versions have been released.
859 * Other Gnus Versions::         Other Gnus versions that also have been released.
860 * Why?::                        What's the point of Gnus?
861 * Compatibility::               Just how compatible is Gnus with @sc{gnus}?
862 * Conformity::                  Gnus tries to conform to all standards.
863 * Emacsen::                     Gnus can be run on a few modern Emacsen.
864 * Gnus Development::            How Gnus is developed.
865 * Contributors::                Oodles of people.
866 * New Features::                Pointers to some of the new stuff in Gnus.
867
868 New Features
869
870 * ding Gnus::                   New things in Gnus 5.0/5.1, the first new Gnus.
871 * September Gnus::              The Thing Formally Known As Gnus 5.2/5.3.
872 * Red Gnus::                    Third time best---Gnus 5.4/5.5.
873 * Quassia Gnus::                Two times two is four, or Gnus 5.6/5.7.
874 * Pterodactyl Gnus::            Pentad also starts with P, AKA Gnus 5.8/5.9.
875
876 Customization
877
878 * Slow/Expensive Connection::   You run a local Emacs and get the news elsewhere.
879 * Slow Terminal Connection::    You run a remote Emacs.
880 * Little Disk Space::           You feel that having large setup files is icky.
881 * Slow Machine::                You feel like buying a faster machine.
882
883 Gnus Reference Guide
884
885 * Gnus Utility Functions::      Common functions and variable to use.
886 * Back End Interface::          How Gnus communicates with the servers.
887 * Score File Syntax::           A BNF definition of the score file standard.
888 * Headers::                     How Gnus stores headers internally.
889 * Ranges::                      A handy format for storing mucho numbers.
890 * Group Info::                  The group info format.
891 * Extended Interactive::        Symbolic prefixes and stuff.
892 * Emacs/XEmacs Code::           Gnus can be run under all modern Emacsen.
893 * Various File Formats::        Formats of files that Gnus use.
894
895 Back End Interface
896
897 * Required Back End Functions::  Functions that must be implemented.
898 * Optional Back End Functions::  Functions that need not be implemented.
899 * Error Messaging::             How to get messages and report errors.
900 * Writing New Back Ends::       Extending old back ends.
901 * Hooking New Back Ends Into Gnus::  What has to be done on the Gnus end.
902 * Mail-like Back Ends::         Some tips on mail back ends.
903
904 Various File Formats
905
906 * Active File Format::          Information on articles and groups available.
907 * Newsgroups File Format::      Group descriptions.
908
909 Emacs for Heathens
910
911 * Keystrokes::                  Entering text and executing commands.
912 * Emacs Lisp::                  The built-in Emacs programming language.
913
914 @end detailmenu
915 @end menu
916
917 @node Starting Up
918 @chapter Starting Gnus
919 @cindex starting up
920
921 @kindex M-x gnus
922 @findex gnus
923 If your system administrator has set things up properly, starting Gnus
924 and reading news is extremely easy---you just type @kbd{M-x gnus} in
925 your Emacs.
926
927 @findex gnus-other-frame
928 @kindex M-x gnus-other-frame
929 If you want to start Gnus in a different frame, you can use the command
930 @kbd{M-x gnus-other-frame} instead.
931
932 If things do not go smoothly at startup, you have to twiddle some
933 variables in your @file{~/.gnus} file.  This file is similar to
934 @file{~/.emacs}, but is read when gnus starts.
935
936 If you puzzle at any terms used in this manual, please refer to the
937 terminology section (@pxref{Terminology}).
938
939 @menu
940 * Finding the News::            Choosing a method for getting news.
941 * The First Time::              What does Gnus do the first time you start it?
942 * The Server is Down::          How can I read my mail then?
943 * Slave Gnusae::                You can have more than one Gnus active at a time.
944 * Fetching a Group::            Starting Gnus just to read a group.
945 * New Groups::                  What is Gnus supposed to do with new groups?
946 * Changing Servers::            You may want to move from one server to another.
947 * Startup Files::               Those pesky startup files---@file{.newsrc}.
948 * Auto Save::                   Recovering from a crash.
949 * The Active File::             Reading the active file over a slow line Takes Time.
950 * Startup Variables::           Other variables you might change.
951 @end menu
952
953
954 @node Finding the News
955 @section Finding the News
956 @cindex finding news
957
958 @vindex gnus-select-method
959 @c @head
960 The @code{gnus-select-method} variable says where Gnus should look for
961 news.  This variable should be a list where the first element says
962 @dfn{how} and the second element says @dfn{where}.  This method is your
963 native method.  All groups not fetched with this method are
964 foreign groups.
965
966 For instance, if the @samp{news.somewhere.edu} @sc{nntp} server is where
967 you want to get your daily dosage of news from, you'd say:
968
969 @lisp
970 (setq gnus-select-method '(nntp "news.somewhere.edu"))
971 @end lisp
972
973 If you want to read directly from the local spool, say:
974
975 @lisp
976 (setq gnus-select-method '(nnspool ""))
977 @end lisp
978
979 If you can use a local spool, you probably should, as it will almost
980 certainly be much faster.  But do not use the local spool if your
981 server is running Leafnode; in this case, use @code{(nntp "localhost")}.
982
983 @vindex gnus-nntpserver-file
984 @cindex NNTPSERVER
985 @cindex @sc{nntp} server
986 If this variable is not set, Gnus will take a look at the
987 @code{NNTPSERVER} environment variable.  If that variable isn't set,
988 Gnus will see whether @code{gnus-nntpserver-file}
989 (@file{/etc/nntpserver} by default) has any opinions on the matter.  If
990 that fails as well, Gnus will try to use the machine running Emacs as an @sc{nntp} server.  That's a long shot, though.
991
992 @vindex gnus-nntp-server
993 If @code{gnus-nntp-server} is set, this variable will override
994 @code{gnus-select-method}.  You should therefore set
995 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
996
997 @vindex gnus-secondary-servers
998 @vindex gnus-nntp-server
999 You can also make Gnus prompt you interactively for the name of an
1000 @sc{nntp} server.  If you give a non-numerical prefix to @code{gnus}
1001 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
1002 in the @code{gnus-secondary-servers} list (if any).  You can also just
1003 type in the name of any server you feel like visiting.  (Note that this
1004 will set @code{gnus-nntp-server}, which means that if you then @kbd{M-x
1005 gnus} later in the same Emacs session, Gnus will contact the same
1006 server.)
1007
1008 @findex gnus-group-browse-foreign-server
1009 @kindex B (Group)
1010 However, if you use one @sc{nntp} server regularly and are just
1011 interested in a couple of groups from a different server, you would be
1012 better served by using the @kbd{B} command in the group buffer.  It will
1013 let you have a look at what groups are available, and you can subscribe
1014 to any of the groups you want to.  This also makes @file{.newsrc}
1015 maintenance much tidier.  @xref{Foreign Groups}.
1016
1017 @vindex gnus-secondary-select-methods
1018 @c @head
1019 A slightly different approach to foreign groups is to set the
1020 @code{gnus-secondary-select-methods} variable.  The select methods
1021 listed in this variable are in many ways just as native as the
1022 @code{gnus-select-method} server.  They will also be queried for active
1023 files during startup (if that's required), and new newsgroups that
1024 appear on these servers will be subscribed (or not) just as native
1025 groups are.
1026
1027 For instance, if you use the @code{nnmbox} back end to read your mail,
1028 you would typically set this variable to
1029
1030 @lisp
1031 (setq gnus-secondary-select-methods '((nnmbox "")))
1032 @end lisp
1033
1034
1035 @node The First Time
1036 @section The First Time
1037 @cindex first time usage
1038
1039 If no startup files exist, Gnus will try to determine what groups should
1040 be subscribed by default.
1041
1042 @vindex gnus-default-subscribed-newsgroups
1043 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
1044 will subscribe you to just those groups in that list, leaving the rest
1045 killed.  Your system administrator should have set this variable to
1046 something useful.
1047
1048 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
1049 picked groups (i.e., @samp{*.newusers}).  (@dfn{Arbitrary} is defined
1050 here as @dfn{whatever Lars thinks you should read}.)
1051
1052 You'll also be subscribed to the Gnus documentation group, which should
1053 help you with most common problems.
1054
1055 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
1056 use the normal functions for handling new groups, and not do anything
1057 special.
1058
1059
1060 @node The Server is Down
1061 @section The Server is Down
1062 @cindex server errors
1063
1064 If the default server is down, Gnus will understandably have some
1065 problems starting.  However, if you have some mail groups in addition to
1066 the news groups, you may want to start Gnus anyway.
1067
1068 Gnus, being the trusting sort of program, will ask whether to proceed
1069 without a native select method if that server can't be contacted.  This
1070 will happen whether the server doesn't actually exist (i.e., you have
1071 given the wrong address) or the server has just momentarily taken ill
1072 for some reason or other.  If you decide to continue and have no foreign
1073 groups, you'll find it difficult to actually do anything in the group
1074 buffer.  But, hey, that's your problem.  Blllrph!
1075
1076 @findex gnus-no-server
1077 @kindex M-x gnus-no-server
1078 @c @head
1079 If you know that the server is definitely down, or you just want to read
1080 your mail without bothering with the server at all, you can use the
1081 @code{gnus-no-server} command to start Gnus.  That might come in handy
1082 if you're in a hurry as well.  This command will not attempt to contact
1083 your primary server---instead, it will just activate all groups on level
1084 1 and 2.  (You should preferably keep no native groups on those two
1085 levels.) Also @pxref{Group Levels}.
1086
1087
1088 @node Slave Gnusae
1089 @section Slave Gnusae
1090 @cindex slave
1091
1092 You might want to run more than one Emacs with more than one Gnus at the
1093 same time.  If you are using different @file{.newsrc} files (e.g., if you
1094 are using the two different Gnusae to read from two different servers),
1095 that is no problem whatsoever.  You just do it.
1096
1097 The problem appears when you want to run two Gnusae that use the same
1098 @code{.newsrc} file.
1099
1100 To work around that problem some, we here at the Think-Tank at the Gnus
1101 Towers have come up with a new concept: @dfn{Masters} and
1102 @dfn{slaves}.  (We have applied for a patent on this concept, and have
1103 taken out a copyright on those words.  If you wish to use those words in
1104 conjunction with each other, you have to send $1 per usage instance to
1105 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
1106 Applications}) will be much more expensive, of course.)
1107
1108 Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1109 however you do it).  Each subsequent slave Gnusae should be started with
1110 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
1111 files, but instead save @dfn{slave files} that contain information only
1112 on what groups have been read in the slave session.  When a master Gnus
1113 starts, it will read (and delete) these slave files, incorporating all
1114 information from them.  (The slave files will be read in the sequence
1115 they were created, so the latest changes will have precedence.)
1116
1117 Information from the slave files has, of course, precedence over the
1118 information in the normal (i.e., master) @code{.newsrc} file.
1119
1120
1121 @node Fetching a Group
1122 @section Fetching a Group
1123 @cindex fetching a group
1124
1125 @findex gnus-fetch-group
1126 It is sometimes convenient to be able to just say ``I want to read this
1127 group and I don't care whether Gnus has been started or not''.  This is
1128 perhaps more useful for people who write code than for users, but the
1129 command @code{gnus-fetch-group} provides this functionality in any case.
1130 It takes the group name as a parameter.
1131
1132
1133 @node New Groups
1134 @section New Groups
1135 @cindex new groups
1136 @cindex subscription
1137
1138 @vindex gnus-check-new-newsgroups
1139 If you are satisfied that you really never want to see any new groups,
1140 you can set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
1141 also save you some time at startup.  Even if this variable is
1142 @code{nil}, you can always subscribe to the new groups just by pressing
1143 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
1144 is @code{ask-server} by default.  If you set this variable to
1145 @code{always}, then Gnus will query the back ends for new groups even
1146 when you do the @kbd{g} command (@pxref{Scanning New Messages}).
1147
1148 @menu
1149 * Checking New Groups::         Determining what groups are new.
1150 * Subscription Methods::        What Gnus should do with new groups.
1151 * Filtering New Groups::        Making Gnus ignore certain new groups.
1152 @end menu
1153
1154
1155 @node Checking New Groups
1156 @subsection Checking New Groups
1157
1158 Gnus normally determines whether a group is new or not by comparing the
1159 list of groups from the active file(s) with the lists of subscribed and
1160 dead groups.  This isn't a particularly fast method.  If
1161 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
1162 server for new groups since the last time.  This is both faster and
1163 cheaper.  This also means that you can get rid of the list of killed
1164 groups altogether, so you may set @code{gnus-save-killed-list} to
1165 @code{nil}, which will save time both at startup, at exit, and all over.
1166 Saves disk space, too.  Why isn't this the default, then?
1167 Unfortunately, not all servers support this command.
1168
1169 I bet I know what you're thinking now: How do I find out whether my
1170 server supports @code{ask-server}?  No?  Good, because I don't have a
1171 fail-safe answer.  I would suggest just setting this variable to
1172 @code{ask-server} and see whether any new groups appear within the next
1173 few days.  If any do, then it works.  If none do, then it doesn't
1174 work.  I could write a function to make Gnus guess whether the server
1175 supports @code{ask-server}, but it would just be a guess.  So I won't.
1176 You could @code{telnet} to the server and say @code{HELP} and see
1177 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
1178 it does, then it might work.  (But there are servers that lists
1179 @samp{NEWGROUPS} without supporting the function properly.)
1180
1181 This variable can also be a list of select methods.  If so, Gnus will
1182 issue an @code{ask-server} command to each of the select methods, and
1183 subscribe them (or not) using the normal methods.  This might be handy
1184 if you are monitoring a few servers for new groups.  A side effect is
1185 that startup will take much longer, so you can meditate while waiting.
1186 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
1187
1188
1189 @node Subscription Methods
1190 @subsection Subscription Methods
1191
1192 @vindex gnus-subscribe-newsgroup-method
1193 What Gnus does when it encounters a new group is determined by the
1194 @code{gnus-subscribe-newsgroup-method} variable.
1195
1196 This variable should contain a function.  This function will be called
1197 with the name of the new group as the only parameter.
1198
1199 Some handy pre-fab functions are:
1200
1201 @table @code
1202
1203 @item gnus-subscribe-zombies
1204 @vindex gnus-subscribe-zombies
1205 Make all new groups zombies.  This is the default.  You can browse the
1206 zombies later (with @kbd{A z}) and either kill them all off properly
1207 (with @kbd{S z}), or subscribe to them (with @kbd{u}).
1208
1209 @item gnus-subscribe-randomly
1210 @vindex gnus-subscribe-randomly
1211 Subscribe all new groups in arbitrary order.  This really means that all
1212 new groups will be added at ``the top'' of the group buffer.
1213
1214 @item gnus-subscribe-alphabetically
1215 @vindex gnus-subscribe-alphabetically
1216 Subscribe all new groups in alphabetical order.
1217
1218 @item gnus-subscribe-hierarchically
1219 @vindex gnus-subscribe-hierarchically
1220 Subscribe all new groups hierarchically.  The difference between this
1221 function and @code{gnus-subscribe-alphabetically} is slight.
1222 @code{gnus-subscribe-alphabetically} will subscribe new groups in a strictly
1223 alphabetical fashion, while this function will enter groups into its
1224 hierarchy.  So if you want to have the @samp{rec} hierarchy before the
1225 @samp{comp} hierarchy, this function will not mess that configuration
1226 up.  Or something like that.
1227
1228 @item gnus-subscribe-interactively
1229 @vindex gnus-subscribe-interactively
1230 Subscribe new groups interactively.  This means that Gnus will ask
1231 you about @strong{all} new groups.  The groups you choose to subscribe
1232 to will be subscribed hierarchically.
1233
1234 @item gnus-subscribe-killed
1235 @vindex gnus-subscribe-killed
1236 Kill all new groups.
1237
1238 @item gnus-subscribe-topics
1239 @vindex gnus-subscribe-topics
1240 Put the groups into the topic that has a matching @code{subscribe} topic
1241 parameter (@pxref{Topic Parameters}).  For instance, a @code{subscribe}
1242 topic parameter that looks like
1243
1244 @example
1245 "nnslashdot"
1246 @end example
1247
1248 will mean that all groups that match that regex will be subscribed under
1249 that topic.
1250
1251 If no topics match the groups, the groups will be subscribed in the
1252 top-level topic.
1253
1254 @end table
1255
1256 @vindex gnus-subscribe-hierarchical-interactive
1257 A closely related variable is
1258 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
1259 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
1260 hierarchical fashion whether to subscribe to new groups or not.  Gnus
1261 will ask you for each sub-hierarchy whether you want to descend the
1262 hierarchy or not.
1263
1264 One common mistake is to set the variable a few paragraphs above
1265 (@code{gnus-subscribe-newsgroup-method}) to
1266 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
1267 will not work.  This is ga-ga.  So don't do it.
1268
1269
1270 @node Filtering New Groups
1271 @subsection Filtering New Groups
1272
1273 A nice and portable way to control which new newsgroups should be
1274 subscribed (or ignored) is to put an @dfn{options} line at the start of
1275 the @file{.newsrc} file.  Here's an example:
1276
1277 @example
1278 options -n !alt.all !rec.all sci.all
1279 @end example
1280
1281 @vindex gnus-subscribe-options-newsgroup-method
1282 This line obviously belongs to a serious-minded intellectual scientific
1283 person (or she may just be plain old boring), because it says that all
1284 groups that have names beginning with @samp{alt} and @samp{rec} should
1285 be ignored, and all groups with names beginning with @samp{sci} should
1286 be subscribed.  Gnus will not use the normal subscription method for
1287 subscribing these groups.
1288 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
1289 variable defaults to @code{gnus-subscribe-alphabetically}.
1290
1291 @vindex gnus-options-not-subscribe
1292 @vindex gnus-options-subscribe
1293 If you don't want to mess with your @file{.newsrc} file, you can just
1294 set the two variables @code{gnus-options-subscribe} and
1295 @code{gnus-options-not-subscribe}.  These two variables do exactly the
1296 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
1297 and if the new group matches the former, it will be unconditionally
1298 subscribed, and if it matches the latter, it will be ignored.
1299
1300 @vindex gnus-auto-subscribed-groups
1301 Yet another variable that meddles here is
1302 @code{gnus-auto-subscribed-groups}.  It works exactly like
1303 @code{gnus-options-subscribe}, and is therefore really superfluous, but I
1304 thought it would be nice to have two of these.  This variable is more
1305 meant for setting some ground rules, while the other variable is used
1306 more for user fiddling.  By default this variable makes all new groups
1307 that come from mail back ends (@code{nnml}, @code{nnbabyl},
1308 @code{nnfolder}, @code{nnmbox}, and @code{nnmh}) subscribed.  If you
1309 don't like that, just set this variable to @code{nil}.
1310
1311 New groups that match this regexp are subscribed using
1312 @code{gnus-subscribe-options-newsgroup-method}.
1313
1314
1315 @node Changing Servers
1316 @section Changing Servers
1317 @cindex changing servers
1318
1319 Sometimes it is necessary to move from one @sc{nntp} server to another.
1320 This happens very rarely, but perhaps you change jobs, or one server is
1321 very flaky and you want to use another.
1322
1323 Changing the server is pretty easy, right?  You just change
1324 @code{gnus-select-method} to point to the new server?
1325
1326 @emph{Wrong!}
1327
1328 Article numbers are not (in any way) kept synchronized between different
1329 @sc{nntp} servers, and the only way Gnus keeps track of what articles
1330 you have read is by keeping track of article numbers.  So when you
1331 change @code{gnus-select-method}, your @file{.newsrc} file becomes
1332 worthless.
1333
1334 Gnus provides a few functions to attempt to translate a @file{.newsrc}
1335 file from one server to another.  They all have one thing in
1336 common---they take a looong time to run.  You don't want to use these
1337 functions more than absolutely necessary.
1338
1339 @kindex M-x gnus-change-server
1340 @findex gnus-change-server
1341 If you have access to both servers, Gnus can request the headers for all
1342 the articles you have read and compare @code{Message-ID}s and map the
1343 article numbers of the read articles and article marks.  The @kbd{M-x
1344 gnus-change-server} command will do this for all your native groups.  It
1345 will prompt for the method you want to move to.
1346
1347 @kindex M-x gnus-group-move-group-to-server
1348 @findex gnus-group-move-group-to-server
1349 You can also move individual groups with the @kbd{M-x
1350 gnus-group-move-group-to-server} command.  This is useful if you want to
1351 move a (foreign) group from one server to another.
1352
1353 @kindex M-x gnus-group-clear-data-on-native-groups
1354 @findex gnus-group-clear-data-on-native-groups
1355 If you don't have access to both the old and new server, all your marks
1356 and read ranges have become worthless.  You can use the @kbd{M-x
1357 gnus-group-clear-data-on-native-groups} command to clear out all data
1358 that you have on your native groups.  Use with caution.
1359
1360 @kindex M-x gnus-group-clear-data
1361 @findex gnus-group-clear-data
1362 Clear the data from the current group only---nix out marks and the
1363 list of read articles (@code{gnus-group-clear-data}).
1364
1365 After changing servers, you @strong{must} move the cache hierarchy away,
1366 since the cached articles will have wrong article numbers, which will
1367 affect which articles Gnus thinks are read.
1368 @code{gnus-group-clear-data-on-native-groups} will ask you if you want
1369 to have it done automatically; for @code{gnus-group-clear-data}, you
1370 can use @kbd{M-x gnus-cache-move-cache} (but beware, it will move the
1371 cache for all groups).
1372
1373
1374 @node Startup Files
1375 @section Startup Files
1376 @cindex startup files
1377 @cindex .newsrc
1378 @cindex .newsrc.el
1379 @cindex .newsrc.eld
1380
1381 Now, you all know about the @file{.newsrc} file.  All subscription
1382 information is traditionally stored in this file.
1383
1384 Things got a bit more complicated with @sc{gnus}.  In addition to
1385 keeping the @file{.newsrc} file updated, it also used a file called
1386 @file{.newsrc.el} for storing all the information that didn't fit into
1387 the @file{.newsrc} file.  (Actually, it also duplicated everything in
1388 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
1389 files was the most recently saved, which enabled people to swap between
1390 @sc{gnus} and other newsreaders.
1391
1392 That was kinda silly, so Gnus went one better: In addition to the
1393 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
1394 @file{.newsrc.eld}.  It will read whichever of these files that are most
1395 recent, but it will never write a @file{.newsrc.el} file.  You should
1396 never delete the @file{.newsrc.eld} file---it contains much information
1397 not stored in the @file{.newsrc} file.
1398
1399 @vindex gnus-save-newsrc-file
1400 @vindex gnus-read-newsrc-file
1401 You can turn off writing the @file{.newsrc} file by setting
1402 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
1403 the file and save some space, as well as exiting from Gnus faster.
1404 However, this will make it impossible to use other newsreaders than
1405 Gnus.  But hey, who would want to, right?  Similarly, setting
1406 @code{gnus-read-newsrc-file} to @code{nil} makes Gnus ignore the
1407 @file{.newsrc} file and any @file{.newsrc-SERVER} files, which is
1408 convenient if you have a tendency to use Netscape once in a while.
1409
1410 @vindex gnus-save-killed-list
1411 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
1412 will not save the list of killed groups to the startup file.  This will
1413 save both time (when starting and quitting) and space (on disk).  It
1414 will also mean that Gnus has no record of what groups are new or old,
1415 so the automatic new groups subscription methods become meaningless.
1416 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
1417 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
1418 Groups}).  This variable can also be a regular expression.  If that's
1419 the case, remove all groups that do not match this regexp before
1420 saving.  This can be useful in certain obscure situations that involve
1421 several servers where not all servers support @code{ask-server}.
1422
1423 @vindex gnus-startup-file
1424 The @code{gnus-startup-file} variable says where the startup files are.
1425 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
1426 file being whatever that one is, with a @samp{.eld} appended.
1427
1428 @vindex gnus-save-newsrc-hook
1429 @vindex gnus-save-quick-newsrc-hook
1430 @vindex gnus-save-standard-newsrc-hook
1431 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
1432 files, while @code{gnus-save-quick-newsrc-hook} is called just before
1433 saving the @file{.newsrc.eld} file, and
1434 @code{gnus-save-standard-newsrc-hook} is called just before saving the
1435 @file{.newsrc} file.  The latter two are commonly used to turn version
1436 control on or off.  Version control is on by default when saving the
1437 startup files.  If you want to turn backup creation off, say something like:
1438
1439 @lisp
1440 (defun turn-off-backup ()
1441   (set (make-local-variable 'backup-inhibited) t))
1442
1443 (add-hook 'gnus-save-quick-newsrc-hook 'turn-off-backup)
1444 (add-hook 'gnus-save-standard-newsrc-hook 'turn-off-backup)
1445 @end lisp
1446
1447 @vindex gnus-init-file
1448 When Gnus starts, it will read the @code{gnus-site-init-file}
1449 (@file{.../site-lisp/gnus} by default) and @code{gnus-init-file}
1450 (@file{~/.gnus} by default) files.  These are normal Emacs Lisp files
1451 and can be used to avoid cluttering your @file{~/.emacs} and
1452 @file{site-init} files with Gnus stuff.  Gnus will also check for files
1453 with the same names as these, but with @file{.elc} and @file{.el}
1454 suffixes.  In other words, if you have set @code{gnus-init-file} to
1455 @file{~/.gnus}, it will look for @file{~/.gnus.elc}, @file{~/.gnus.el},
1456 and finally @file{~/.gnus} (in this order).
1457
1458
1459
1460 @node Auto Save
1461 @section Auto Save
1462 @cindex dribble file
1463 @cindex auto-save
1464
1465 Whenever you do something that changes the Gnus data (reading articles,
1466 catching up, killing/subscribing groups), the change is added to a
1467 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
1468 Emacs way.  If your Emacs should crash before you have saved the
1469 @file{.newsrc} files, all changes you have made can be recovered from
1470 this file.
1471
1472 If Gnus detects this file at startup, it will ask the user whether to
1473 read it.  The auto save file is deleted whenever the real startup file is
1474 saved.
1475
1476 @vindex gnus-use-dribble-file
1477 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1478 maintain a dribble buffer.  The default is @code{t}.
1479
1480 @vindex gnus-dribble-directory
1481 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
1482 this variable is @code{nil}, which it is by default, Gnus will dribble
1483 into the directory where the @file{.newsrc} file is located.  (This is
1484 normally the user's home directory.)  The dribble file will get the same
1485 file permissions as the @code{.newsrc} file.
1486
1487 @vindex gnus-always-read-dribble-file
1488 If @code{gnus-always-read-dribble-file} is non-@code{nil}, Gnus will
1489 read the dribble file on startup without querying the user.
1490
1491
1492 @node The Active File
1493 @section The Active File
1494 @cindex active file
1495 @cindex ignored groups
1496
1497 When Gnus starts, or indeed whenever it tries to determine whether new
1498 articles have arrived, it reads the active file.  This is a very large
1499 file that lists all the active groups and articles on the server.
1500
1501 @vindex gnus-ignored-newsgroups
1502 Before examining the active file, Gnus deletes all lines that match the
1503 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
1504 any groups with bogus names, but you can use this variable to make Gnus
1505 ignore hierarchies you aren't ever interested in.  However, this is not
1506 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
1507 Groups} for an overview of other variables that can be used instead.
1508
1509 @c This variable is
1510 @c @code{nil} by default, and will slow down active file handling somewhat
1511 @c if you set it to anything else.
1512
1513 @vindex gnus-read-active-file
1514 @c @head
1515 The active file can be rather Huge, so if you have a slow network, you
1516 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1517 reading the active file.  This variable is @code{some} by default.
1518
1519 Gnus will try to make do by getting information just on the groups that
1520 you actually subscribe to.
1521
1522 Note that if you subscribe to lots and lots of groups, setting this
1523 variable to @code{nil} will probably make Gnus slower, not faster.  At
1524 present, having this variable @code{nil} will slow Gnus down
1525 considerably, unless you read news over a 2400 baud modem.
1526
1527 This variable can also have the value @code{some}.  Gnus will then
1528 attempt to read active info only on the subscribed groups.  On some
1529 servers this is quite fast (on sparkling, brand new INN servers that
1530 support the @code{LIST ACTIVE group} command), on others this isn't fast
1531 at all.  In any case, @code{some} should be faster than @code{nil}, and
1532 is certainly faster than @code{t} over slow lines.
1533
1534 Some news servers (old versions of Leafnode and old versions of INN, for
1535 instance) do not support the @code{LIST ACTIVE group}.  For these
1536 servers, @code{nil} is probably the most efficient value for this
1537 variable.
1538
1539 If this variable is @code{nil}, Gnus will ask for group info in total
1540 lock-step, which isn't very fast.  If it is @code{some} and you use an
1541 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
1542 read all the replies in one swoop.  This will normally result in better
1543 performance, but if the server does not support the aforementioned
1544 @code{LIST ACTIVE group} command, this isn't very nice to the server.
1545
1546 If you think that starting up Gnus takes too long, try all the three
1547 different values for this variable and see what works best for you.
1548
1549 In any case, if you use @code{some} or @code{nil}, you should definitely
1550 kill all groups that you aren't interested in to speed things up.
1551
1552 Note that this variable also affects active file retrieval from
1553 secondary select methods.
1554
1555
1556 @node Startup Variables
1557 @section Startup Variables
1558
1559 @table @code
1560
1561 @item gnus-load-hook
1562 @vindex gnus-load-hook
1563 A hook run while Gnus is being loaded.  Note that this hook will
1564 normally be run just once in each Emacs session, no matter how many
1565 times you start Gnus.
1566
1567 @item gnus-before-startup-hook
1568 @vindex gnus-before-startup-hook
1569 A hook run after starting up Gnus successfully.
1570
1571 @item gnus-startup-hook
1572 @vindex gnus-startup-hook
1573 A hook run as the very last thing after starting up Gnus
1574
1575 @item gnus-started-hook
1576 @vindex gnus-started-hook
1577 A hook that is run as the very last thing after starting up Gnus
1578 successfully.
1579
1580 @item gnus-setup-news-hook
1581 @vindex gnus-setup-news-hook
1582 A hook that is run after reading the @file{.newsrc} file(s), but before
1583 generating the group buffer.
1584
1585 @item gnus-check-bogus-newsgroups
1586 @vindex gnus-check-bogus-newsgroups
1587 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1588 startup.  A @dfn{bogus group} is a group that you have in your
1589 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
1590 bogus groups can take quite a while, so to save time and resources it's
1591 best to leave this option off, and do the checking for bogus groups once
1592 in a while from the group buffer instead (@pxref{Group Maintenance}).
1593
1594 @item gnus-inhibit-startup-message
1595 @vindex gnus-inhibit-startup-message
1596 If non-@code{nil}, the startup message won't be displayed.  That way,
1597 your boss might not notice as easily that you are reading news instead
1598 of doing your job.  Note that this variable is used before
1599 @file{.gnus.el} is loaded, so it should be set in @code{.emacs} instead.
1600
1601 @item gnus-no-groups-message
1602 @vindex gnus-no-groups-message
1603 Message displayed by Gnus when no groups are available.
1604
1605 @item gnus-play-startup-jingle
1606 @vindex gnus-play-startup-jingle
1607 If non-@code{nil}, play the Gnus jingle at startup.
1608
1609 @item gnus-startup-jingle
1610 @vindex gnus-startup-jingle
1611 Jingle to be played if the above variable is non-@code{nil}.  The
1612 default is @samp{Tuxedomoon.Jingle4.au}.
1613
1614 @end table
1615
1616
1617 @node Group Buffer
1618 @chapter Group Buffer
1619 @cindex group buffer
1620
1621 @c Alex Schroeder suggests to rearrange this as follows:
1622 @c
1623 @c <kensanata> ok, just save it for reference.  I'll go to bed in a minute.
1624 @c   1. Selecting a Group, 2. (new) Finding a Group, 3. Group Levels,
1625 @c   4. Subscription Commands, 5. Group Maneuvering, 6. Group Data,
1626 @c   7. Group Score, 8. Group Buffer Format
1627 @c <kensanata> Group Levels should have more information on levels 5 to 9.  I
1628 @c   suggest to split the 4th paragraph ("Gnus considers groups...") as follows:
1629 @c <kensanata> First, "Gnus considers groups... (default 9)."
1630 @c <kensanata> New, a table summarizing what levels 1 to 9 mean.
1631 @c <kensanata> Third, "Gnus treats subscribed ... reasons of efficiency"
1632 @c <kensanata> Then expand the next paragraph or add some more to it.
1633 @c    This short one sentence explains levels 1 and 2, therefore I understand
1634 @c    that I should keep important news at 3 and boring news at 4.
1635 @c    Say so!  Then go on to explain why I should bother with levels 6 to 9.
1636 @c    Maybe keep those that you don't want to read temporarily at 6,
1637 @c    those that you never want to read at 8, those that offend your
1638 @c    human rights at 9...
1639
1640
1641 The @dfn{group buffer} lists all (or parts) of the available groups.  It
1642 is the first buffer shown when Gnus starts, and will never be killed as
1643 long as Gnus is active.
1644
1645 @iftex
1646 @iflatex
1647 \gnusfigure{The Group Buffer}{320}{
1648 \put(75,50){\epsfig{figure=ps/group,height=9cm}}
1649 \put(120,37){\makebox(0,0)[t]{Buffer name}}
1650 \put(120,38){\vector(1,2){10}}
1651 \put(40,60){\makebox(0,0)[r]{Mode line}}
1652 \put(40,58){\vector(1,0){30}}
1653 \put(200,28){\makebox(0,0)[t]{Native select method}}
1654 \put(200,26){\vector(-1,2){15}}
1655 }
1656 @end iflatex
1657 @end iftex
1658
1659 @menu
1660 * Group Buffer Format::         Information listed and how you can change it.
1661 * Group Maneuvering::           Commands for moving in the group buffer.
1662 * Selecting a Group::           Actually reading news.
1663 * Subscription Commands::       Unsubscribing, killing, subscribing.
1664 * Group Data::                  Changing the info for a group.
1665 * Group Levels::                Levels? What are those, then?
1666 * Group Score::                 A mechanism for finding out what groups you like.
1667 * Marking Groups::              You can mark groups for later processing.
1668 * Foreign Groups::              Creating and editing groups.
1669 * Group Parameters::            Each group may have different parameters set.
1670 * Listing Groups::              Gnus can list various subsets of the groups.
1671 * Sorting Groups::              Re-arrange the group order.
1672 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
1673 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
1674 * Exiting Gnus::                Stop reading news and get some work done.
1675 * Group Topics::                A folding group mode divided into topics.
1676 * Misc Group Stuff::            Other stuff that you can to do.
1677 @end menu
1678
1679
1680 @node Group Buffer Format
1681 @section Group Buffer Format
1682
1683 @menu
1684 * Group Line Specification::    Deciding how the group buffer is to look.
1685 * Group Modeline Specification::  The group buffer modeline.
1686 * Group Highlighting::          Having nice colors in the group buffer.
1687 @end menu
1688
1689
1690 @node Group Line Specification
1691 @subsection Group Line Specification
1692 @cindex group buffer format
1693
1694 The default format of the group buffer is nice and dull, but you can
1695 make it as exciting and ugly as you feel like.
1696
1697 Here's a couple of example group lines:
1698
1699 @example
1700      25: news.announce.newusers
1701  *    0: alt.fan.andrea-dworkin
1702 @end example
1703
1704 Quite simple, huh?
1705
1706 You can see that there are 25 unread articles in
1707 @samp{news.announce.newusers}.  There are no unread articles, but some
1708 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1709 asterisk at the beginning of the line?).
1710
1711 @vindex gnus-group-line-format
1712 You can change that format to whatever you want by fiddling with the
1713 @code{gnus-group-line-format} variable.  This variable works along the
1714 lines of a @code{format} specification, which is pretty much the same as
1715 a @code{printf} specifications, for those of you who use (feh!) C.
1716 @xref{Formatting Variables}.
1717
1718 @samp{%M%S%5y: %(%g%)\n} is the value that produced those lines above.
1719
1720 There should always be a colon on the line; the cursor always moves to
1721 the colon after performing an operation.  @xref{Positioning
1722 Point}. Nothing else is required---not even the group name.  All
1723 displayed text is just window dressing, and is never examined by Gnus.
1724 Gnus stores all real information it needs using text properties.
1725
1726 (Note that if you make a really strange, wonderful, spreadsheet-like
1727 layout, everybody will believe you are hard at work with the accounting
1728 instead of wasting time reading news.)
1729
1730 Here's a list of all available format characters:
1731
1732 @table @samp
1733
1734 @item M
1735 An asterisk if the group only has marked articles.
1736
1737 @item S
1738 Whether the group is subscribed.
1739
1740 @item L
1741 Level of subscribedness.
1742
1743 @item N
1744 Number of unread articles.
1745
1746 @item I
1747 Number of dormant articles.
1748
1749 @item T
1750 Number of ticked articles.
1751
1752 @item R
1753 Number of read articles.
1754
1755 @item t
1756 Estimated total number of articles.  (This is really @var{max-number}
1757 minus @var{min-number} plus 1.)
1758
1759 Gnus uses this estimation because the NNTP protocol provides efficient
1760 access to @var{max-number} and @var{min-number} but getting the true
1761 unread message count is not possible efficiently.  For hysterical
1762 raisins, even the mail back ends, where the true number of unread
1763 messages might be available efficiently, use the same limited
1764 interface.  To remove this restriction from Gnus means that the
1765 back end interface has to be changed, which is not an easy job.  If you
1766 want to work on this, please contact the Gnus mailing list.
1767
1768 @item y
1769 Number of unread, unticked, non-dormant articles.
1770
1771 @item i
1772 Number of ticked and dormant articles.
1773
1774 @item g
1775 Full group name.
1776
1777 @item G
1778 Group name.
1779
1780 @item D
1781 Newsgroup description.
1782
1783 @item o
1784 @samp{m} if moderated.
1785
1786 @item O
1787 @samp{(m)} if moderated.
1788
1789 @item s
1790 Select method.
1791
1792 @item n
1793 Select from where.
1794
1795 @item z
1796 A string that looks like @samp{<%s:%n>} if a foreign select method is
1797 used.
1798
1799 @item P
1800 Indentation based on the level of the topic (@pxref{Group Topics}).
1801
1802 @item c
1803 @vindex gnus-group-uncollapsed-levels
1804 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
1805 variable says how many levels to leave at the end of the group name.
1806 The default is 1---this will mean that group names like
1807 @samp{gnu.emacs.gnus} will be shortened to @samp{g.e.gnus}.
1808
1809 @item m
1810 @vindex gnus-new-mail-mark
1811 @cindex %
1812 @samp{%} (@code{gnus-new-mail-mark}) if there has arrived new mail to
1813 the group lately.
1814
1815 @item p
1816 @samp{#} (@code{gnus-process-mark}) if the group is process marked.
1817
1818 @item d
1819 A string that says when you last read the group (@pxref{Group
1820 Timestamp}).
1821
1822 @item u
1823 User defined specifier.  The next character in the format string should
1824 be a letter.  Gnus will call the function
1825 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1826 following @samp{%u}.  The function will be passed a single dummy
1827 parameter as argument.  The function should return a string, which will
1828 be inserted into the buffer just like information from any other
1829 specifier.
1830 @end table
1831
1832 @cindex *
1833 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
1834 if no info is available---for instance, if it is a non-activated foreign
1835 group, or a bogus native group.
1836
1837
1838 @node Group Modeline Specification
1839 @subsection Group Modeline Specification
1840 @cindex group modeline
1841
1842 @vindex gnus-group-mode-line-format
1843 The mode line can be changed by setting
1844 @code{gnus-group-mode-line-format} (@pxref{Mode Line Formatting}).  It
1845 doesn't understand that many format specifiers:
1846
1847 @table @samp
1848 @item S
1849 The native news server.
1850 @item M
1851 The native select method.
1852 @end table
1853
1854
1855 @node Group Highlighting
1856 @subsection Group Highlighting
1857 @cindex highlighting
1858 @cindex group highlighting
1859
1860 @vindex gnus-group-highlight
1861 Highlighting in the group buffer is controlled by the
1862 @code{gnus-group-highlight} variable.  This is an alist with elements
1863 that look like @code{(@var{form} . @var{face})}.  If @var{form} evaluates to
1864 something non-@code{nil}, the @var{face} will be used on the line.
1865
1866 Here's an example value for this variable that might look nice if the
1867 background is dark:
1868
1869 @lisp
1870 (cond (window-system
1871        (setq custom-background-mode 'light)
1872        (defface my-group-face-1
1873          '((t (:foreground "Red" :bold t))) "First group face")
1874        (defface my-group-face-2
1875          '((t (:foreground "DarkSeaGreen4" :bold t))) "Second group face")
1876        (defface my-group-face-3
1877          '((t (:foreground "Green4" :bold t))) "Third group face")
1878        (defface my-group-face-4
1879          '((t (:foreground "SteelBlue" :bold t))) "Fourth group face")
1880        (defface my-group-face-5
1881          '((t (:foreground "Blue" :bold t))) "Fifth group face")))
1882
1883 (setq gnus-group-highlight
1884       '(((> unread 200) . my-group-face-1)
1885         ((and (< level 3) (zerop unread)) . my-group-face-2)
1886         ((< level 3) . my-group-face-3)
1887         ((zerop unread) . my-group-face-4)
1888         (t . my-group-face-5)))
1889 @end lisp
1890
1891 Also @pxref{Faces and Fonts}.
1892
1893 Variables that are dynamically bound when the forms are evaluated
1894 include:
1895
1896 @table @code
1897 @item group
1898 The group name.
1899 @item unread
1900 The number of unread articles in the group.
1901 @item method
1902 The select method.
1903 @item mailp
1904 Whether the group is a mail group.
1905 @item level
1906 The level of the group.
1907 @item score
1908 The score of the group.
1909 @item ticked
1910 The number of ticked articles in the group.
1911 @item total
1912 The total number of articles in the group.  Or rather, MAX-NUMBER minus
1913 MIN-NUMBER plus one.
1914 @item topic
1915 When using the topic minor mode, this variable is bound to the current
1916 topic being inserted.
1917 @end table
1918
1919 When the forms are @code{eval}ed, point is at the beginning of the line
1920 of the group in question, so you can use many of the normal Gnus
1921 functions for snarfing info on the group.
1922
1923 @vindex gnus-group-update-hook
1924 @findex gnus-group-highlight-line
1925 @code{gnus-group-update-hook} is called when a group line is changed.
1926 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
1927 calls @code{gnus-group-highlight-line} by default.
1928
1929
1930 @node Group Maneuvering
1931 @section Group Maneuvering
1932 @cindex group movement
1933
1934 All movement commands understand the numeric prefix and will behave as
1935 expected, hopefully.
1936
1937 @table @kbd
1938
1939 @item n
1940 @kindex n (Group)
1941 @findex gnus-group-next-unread-group
1942 Go to the next group that has unread articles
1943 (@code{gnus-group-next-unread-group}).
1944
1945 @item p
1946 @itemx DEL
1947 @kindex DEL (Group)
1948 @kindex p (Group)
1949 @findex gnus-group-prev-unread-group
1950 Go to the previous group that has unread articles
1951 (@code{gnus-group-prev-unread-group}).
1952
1953 @item N
1954 @kindex N (Group)
1955 @findex gnus-group-next-group
1956 Go to the next group (@code{gnus-group-next-group}).
1957
1958 @item P
1959 @kindex P (Group)
1960 @findex gnus-group-prev-group
1961 Go to the previous group (@code{gnus-group-prev-group}).
1962
1963 @item M-n
1964 @kindex M-n (Group)
1965 @findex gnus-group-next-unread-group-same-level
1966 Go to the next unread group on the same (or lower) level
1967 (@code{gnus-group-next-unread-group-same-level}).
1968
1969 @item M-p
1970 @kindex M-p (Group)
1971 @findex gnus-group-prev-unread-group-same-level
1972 Go to the previous unread group on the same (or lower) level
1973 (@code{gnus-group-prev-unread-group-same-level}).
1974 @end table
1975
1976 Three commands for jumping to groups:
1977
1978 @table @kbd
1979
1980 @item j
1981 @kindex j (Group)
1982 @findex gnus-group-jump-to-group
1983 Jump to a group (and make it visible if it isn't already)
1984 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
1985 like living groups.
1986
1987 @item ,
1988 @kindex , (Group)
1989 @findex gnus-group-best-unread-group
1990 Jump to the unread group with the lowest level
1991 (@code{gnus-group-best-unread-group}).
1992
1993 @item .
1994 @kindex . (Group)
1995 @findex gnus-group-first-unread-group
1996 Jump to the first group with unread articles
1997 (@code{gnus-group-first-unread-group}).
1998 @end table
1999
2000 @vindex gnus-group-goto-unread
2001 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
2002 commands will move to the next group, not the next unread group.  Even
2003 the commands that say they move to the next unread group.  The default
2004 is @code{t}.
2005
2006
2007 @node Selecting a Group
2008 @section Selecting a Group
2009 @cindex group selection
2010
2011 @table @kbd
2012
2013 @item SPACE
2014 @kindex SPACE (Group)
2015 @findex gnus-group-read-group
2016 Select the current group, switch to the summary buffer and display the
2017 first unread article (@code{gnus-group-read-group}).  If there are no
2018 unread articles in the group, or if you give a non-numerical prefix to
2019 this command, Gnus will offer to fetch all the old articles in this
2020 group from the server.  If you give a numerical prefix @var{N}, @var{N}
2021 determines the number of articles Gnus will fetch.  If @var{N} is
2022 positive, Gnus fetches the @var{N} newest articles, if @var{N} is
2023 negative, Gnus fetches the @code{abs(@var{N})} oldest articles.
2024
2025 Thus, @kbd{SPC} enters the group normally, @kbd{C-u SPC} offers old
2026 articles, @kbd{C-u 4 2 SPC} fetches the 42 newest articles, and @kbd{C-u
2027 - 4 2 SPC} fetches the 42 oldest ones.
2028
2029 When you are in the group (in the Summary buffer), you can type
2030 @kbd{M-g} to fetch new articles, or @kbd{C-u M-g} to also show the old
2031 ones.
2032
2033 @item RET
2034 @kindex RET (Group)
2035 @findex gnus-group-select-group
2036 Select the current group and switch to the summary buffer
2037 (@code{gnus-group-select-group}).  Takes the same arguments as
2038 @code{gnus-group-read-group}---the only difference is that this command
2039 does not display the first unread article automatically upon group
2040 entry.
2041
2042 @item M-RET
2043 @kindex M-RET (Group)
2044 @findex gnus-group-quick-select-group
2045 This does the same as the command above, but tries to do it with the
2046 minimum amount of fuzz (@code{gnus-group-quick-select-group}).  No
2047 scoring/killing will be performed, there will be no highlights and no
2048 expunging.  This might be useful if you're in a real hurry and have to
2049 enter some humongous group.  If you give a 0 prefix to this command
2050 (i.e., @kbd{0 M-RET}), Gnus won't even generate the summary buffer,
2051 which is useful if you want to toggle threading before generating the
2052 summary buffer (@pxref{Summary Generation Commands}).
2053
2054 @item M-SPACE
2055 @kindex M-SPACE (Group)
2056 @findex gnus-group-visible-select-group
2057 This is yet one more command that does the same as the @kbd{RET}
2058 command, but this one does it without expunging and hiding dormants
2059 (@code{gnus-group-visible-select-group}).
2060
2061 @item C-M-RET
2062 @kindex C-M-RET (Group)
2063 @findex gnus-group-select-group-ephemerally
2064 Finally, this command selects the current group ephemerally without
2065 doing any processing of its contents
2066 (@code{gnus-group-select-group-ephemerally}).  Even threading has been
2067 turned off.  Everything you do in the group after selecting it in this
2068 manner will have no permanent effects.
2069
2070 @end table
2071
2072 @vindex gnus-large-newsgroup
2073 The @code{gnus-large-newsgroup} variable says what Gnus should consider
2074 to be a big group.  This is 200 by default.  If the group has more
2075 (unread and/or ticked) articles than this, Gnus will query the user
2076 before entering the group.  The user can then specify how many articles
2077 should be fetched from the server.  If the user specifies a negative
2078 number (@code{-n}), the @code{n} oldest articles will be fetched.  If it
2079 is positive, the @code{n} articles that have arrived most recently will
2080 be fetched.
2081
2082 @vindex gnus-select-group-hook
2083 @vindex gnus-auto-select-first
2084 If @code{gnus-auto-select-first} is non-@code{nil}, select an article
2085 automatically when entering a group with the @kbd{SPACE} command.
2086 Which article this is is controlled by the
2087 @code{gnus-auto-select-subject} variable.  Valid values for this
2088 variable is:
2089
2090 @table @code
2091
2092 @item unread
2093 Place point on the subject line of the first unread article.
2094
2095 @item first
2096 Place point on the subject line of the first article.
2097
2098 @item unseen
2099 Place point on the subject line of the first unseen article.
2100
2101 @item unseen-or-unread
2102 Place point on the subject line of the first unseen article, and if
2103 there is no such article, place point on the subject line of the first
2104 unread article.
2105
2106 @item best
2107 Place point on the subject line of the highest-scored unread article.
2108
2109 @end table
2110
2111 This variable can also be a function.  In that case, that function
2112 will be called to place point on a subject line.  
2113
2114 If you want to prevent automatic selection in some group (say, in a
2115 binary group with Huge articles) you can set the
2116 @code{gnus-auto-select-first} variable to @code{nil} in
2117 @code{gnus-select-group-hook}, which is called when a group is
2118 selected.
2119
2120
2121 @node Subscription Commands
2122 @section Subscription Commands
2123 @cindex subscription
2124
2125 @table @kbd
2126
2127 @item S t
2128 @itemx u
2129 @kindex S t (Group)
2130 @kindex u (Group)
2131 @findex gnus-group-unsubscribe-current-group
2132 @c @icon{gnus-group-unsubscribe}
2133 Toggle subscription to the current group
2134 (@code{gnus-group-unsubscribe-current-group}).
2135
2136 @item S s
2137 @itemx U
2138 @kindex S s (Group)
2139 @kindex U (Group)
2140 @findex gnus-group-unsubscribe-group
2141 Prompt for a group to subscribe, and then subscribe it.  If it was
2142 subscribed already, unsubscribe it instead
2143 (@code{gnus-group-unsubscribe-group}).
2144
2145 @item S k
2146 @itemx C-k
2147 @kindex S k (Group)
2148 @kindex C-k (Group)
2149 @findex gnus-group-kill-group
2150 @c @icon{gnus-group-kill-group}
2151 Kill the current group (@code{gnus-group-kill-group}).
2152
2153 @item S y
2154 @itemx C-y
2155 @kindex S y (Group)
2156 @kindex C-y (Group)
2157 @findex gnus-group-yank-group
2158 Yank the last killed group (@code{gnus-group-yank-group}).
2159
2160 @item C-x C-t
2161 @kindex C-x C-t (Group)
2162 @findex gnus-group-transpose-groups
2163 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
2164 really a subscription command, but you can use it instead of a
2165 kill-and-yank sequence sometimes.
2166
2167 @item S w
2168 @itemx C-w
2169 @kindex S w (Group)
2170 @kindex C-w (Group)
2171 @findex gnus-group-kill-region
2172 Kill all groups in the region (@code{gnus-group-kill-region}).
2173
2174 @item S z
2175 @kindex S z (Group)
2176 @findex gnus-group-kill-all-zombies
2177 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
2178
2179 @item S C-k
2180 @kindex S C-k (Group)
2181 @findex gnus-group-kill-level
2182 Kill all groups on a certain level (@code{gnus-group-kill-level}).
2183 These groups can't be yanked back after killing, so this command should
2184 be used with some caution.  The only time where this command comes in
2185 really handy is when you have a @file{.newsrc} with lots of unsubscribed
2186 groups that you want to get rid off.  @kbd{S C-k} on level 7 will
2187 kill off all unsubscribed groups that do not have message numbers in the
2188 @file{.newsrc} file.
2189
2190 @end table
2191
2192 Also @pxref{Group Levels}.
2193
2194
2195 @node Group Data
2196 @section Group Data
2197
2198 @table @kbd
2199
2200 @item c
2201 @kindex c (Group)
2202 @findex gnus-group-catchup-current
2203 @vindex gnus-group-catchup-group-hook
2204 @c @icon{gnus-group-catchup-current}
2205 Mark all unticked articles in this group as read
2206 (@code{gnus-group-catchup-current}).
2207 @code{gnus-group-catchup-group-hook} is called when catching up a group from
2208 the group buffer.
2209
2210 @item C
2211 @kindex C (Group)
2212 @findex gnus-group-catchup-current-all
2213 Mark all articles in this group, even the ticked ones, as read
2214 (@code{gnus-group-catchup-current-all}).
2215
2216 @item M-c
2217 @kindex M-c (Group)
2218 @findex gnus-group-clear-data
2219 Clear the data from the current group---nix out marks and the list of
2220 read articles (@code{gnus-group-clear-data}).
2221
2222 @item M-x gnus-group-clear-data-on-native-groups
2223 @kindex M-x gnus-group-clear-data-on-native-groups
2224 @findex gnus-group-clear-data-on-native-groups
2225 If you have switched from one @sc{nntp} server to another, all your marks
2226 and read ranges have become worthless.  You can use this command to
2227 clear out all data that you have on your native groups.  Use with
2228 caution.
2229
2230 @end table
2231
2232
2233 @node Group Levels
2234 @section Group Levels
2235 @cindex group level
2236 @cindex level
2237
2238 All groups have a level of @dfn{subscribedness}.  For instance, if a
2239 group is on level 2, it is more subscribed than a group on level 5.  You
2240 can ask Gnus to just list groups on a given level or lower
2241 (@pxref{Listing Groups}), or to just check for new articles in groups on
2242 a given level or lower (@pxref{Scanning New Messages}).
2243
2244 Remember:  The higher the level of the group, the less important it is.
2245
2246 @table @kbd
2247
2248 @item S l
2249 @kindex S l (Group)
2250 @findex gnus-group-set-current-level
2251 Set the level of the current group.  If a numeric prefix is given, the
2252 next @var{n} groups will have their levels set.  The user will be
2253 prompted for a level.
2254 @end table
2255
2256 @vindex gnus-level-killed
2257 @vindex gnus-level-zombie
2258 @vindex gnus-level-unsubscribed
2259 @vindex gnus-level-subscribed
2260 Gnus considers groups from levels 1 to
2261 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
2262 @code{gnus-level-subscribed} (exclusive) and
2263 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
2264 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
2265 (default 8) and @code{gnus-level-killed} to be killed (completely dead)
2266 (default 9).  Gnus treats subscribed and unsubscribed groups exactly the
2267 same, but zombie and killed groups have no information on what articles
2268 you have read, etc, stored.  This distinction between dead and living
2269 groups isn't done because it is nice or clever, it is done purely for
2270 reasons of efficiency.
2271
2272 It is recommended that you keep all your mail groups (if any) on quite
2273 low levels (e.g. 1 or 2).
2274
2275 Maybe the following description of the default behavior of Gnus helps to
2276 understand what these levels are all about.  By default, Gnus shows you
2277 subscribed nonempty groups, but by hitting @kbd{L} you can have it show
2278 empty subscribed groups and unsubscribed groups, too.  Type @kbd{l} to
2279 go back to showing nonempty subscribed groups again.  Thus, unsubscribed
2280 groups are hidden, in a way.
2281
2282 Zombie and killed groups are similar to unsubscribed groups in that they
2283 are hidden by default.  But they are different from subscribed and
2284 unsubscribed groups in that Gnus doesn't ask the news server for
2285 information (number of messages, number of unread messages) on zombie
2286 and killed groups.  Normally, you use @kbd{C-k} to kill the groups you
2287 aren't interested in.  If most groups are killed, Gnus is faster.
2288
2289 Why does Gnus distinguish between zombie and killed groups?  Well, when
2290 a new group arrives on the server, Gnus by default makes it a zombie
2291 group.  This means that you are normally not bothered with new groups,
2292 but you can type @kbd{A z} to get a list of all new groups.  Subscribe
2293 the ones you like and kill the ones you don't want.  (@kbd{A k} shows a
2294 list of killed groups.)
2295
2296 If you want to play with the level variables, you should show some care.
2297 Set them once, and don't touch them ever again.  Better yet, don't touch
2298 them at all unless you know exactly what you're doing.
2299
2300 @vindex gnus-level-default-unsubscribed
2301 @vindex gnus-level-default-subscribed
2302 Two closely related variables are @code{gnus-level-default-subscribed}
2303 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
2304 which are the levels that new groups will be put on if they are