(nnmairix): Point out that nnml uses MH format. Clarify section about
[gnus] / texi / gnus.texi
1 \input texinfo
2
3 @setfilename gnus
4 @settitle Gnus Manual
5 @syncodeindex fn cp
6 @syncodeindex vr cp
7 @syncodeindex pg cp
8
9 @documentencoding ISO-8859-1
10
11 @copying
12 Copyright @copyright{} 1995, 1996, 1997, 1998, 1999, 2000, 2001,
13 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
14
15 @quotation
16 Permission is granted to copy, distribute and/or modify this document
17 under the terms of the GNU Free Documentation License, Version 1.2 or
18 any later version published by the Free Software Foundation; with no
19 Invariant Sections, with the Front-Cover texts being ``A GNU Manual'',
20 and with the Back-Cover Texts as in (a) below.  A copy of the license
21 is included in the section entitled ``GNU Free Documentation License''.
22
23 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
24 modify this GNU manual.  Buying copies from the FSF supports it in
25 developing GNU and promoting software freedom.''
26 @end quotation
27 @end copying
28
29 @iftex
30 @iflatex
31 \documentclass[twoside,a4paper,openright,11pt]{book}
32 \usepackage[latin1]{inputenc}
33 \usepackage{pagestyle}
34 \usepackage{epsfig}
35 \usepackage{pixidx}
36 \input{gnusconfig.tex}
37
38 \ifx\pdfoutput\undefined
39 \else
40 \usepackage[pdftex,bookmarks,colorlinks=true]{hyperref}
41 \usepackage{thumbpdf}
42 \pdfcompresslevel=9
43 \fi
44
45 \makeindex
46 \begin{document}
47
48 % Adjust ../Makefile.in if you change the following line:
49 \newcommand{\gnusversionname}{No Gnus v0.11}
50 \newcommand{\gnuschaptername}{}
51 \newcommand{\gnussectionname}{}
52
53 \newcommand{\gnusbackslash}{/}
54
55 \newcommand{\gnusref}[1]{``#1'' on page \pageref{#1}}
56 \ifx\pdfoutput\undefined
57 \newcommand{\gnusuref}[1]{\gnustt{#1}}
58 \else
59 \newcommand{\gnusuref}[1]{\href{#1}{\gnustt{#1}}}
60 \fi
61 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
62 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
63
64 \newcommand{\gnuskindex}[1]{\index{#1}}
65 \newcommand{\gnusindex}[1]{\index{#1}}
66
67 \newcommand{\gnustt}[1]{{\gnusselectttfont{}#1}}
68 \newcommand{\gnuscode}[1]{\gnustt{#1}}
69 \newcommand{\gnusasis}[1]{\gnustt{#1}}
70 \newcommand{\gnusurl}[1]{\gnustt{#1}}
71 \newcommand{\gnuscommand}[1]{\gnustt{#1}}
72 \newcommand{\gnusenv}[1]{\gnustt{#1}}
73 \newcommand{\gnussamp}[1]{``{\fontencoding{OT1}\gnusselectttfont{}#1}''}
74 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
75 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
76 \newcommand{\gnuskey}[1]{`\gnustt{#1}'}
77 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
78 \newcommand{\gnusdfn}[1]{\textit{#1}}
79 \newcommand{\gnusi}[1]{\textit{#1}}
80 \newcommand{\gnusr}[1]{\textrm{#1}}
81 \newcommand{\gnusstrong}[1]{\textbf{#1}}
82 \newcommand{\gnusemph}[1]{\textit{#1}}
83 \newcommand{\gnusvar}[1]{{\fontsize{10pt}{10}\selectfont\textsl{\textsf{#1}}}}
84 \newcommand{\gnussc}[1]{\textsc{#1}}
85 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
86 \newcommand{\gnusversion}[1]{{\small\textit{#1}}}
87 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
88 \newcommand{\gnusresult}[1]{\gnustt{=> #1}}
89 \newcommand{\gnusacronym}[1]{\textsc{#1}}
90 \newcommand{\gnusemail}[1]{\textit{#1}}
91
92 \newcommand{\gnusbullet}{{${\bullet}$}}
93 \newcommand{\gnusdollar}{\$}
94 \newcommand{\gnusampersand}{\&}
95 \newcommand{\gnuspercent}{\%}
96 \newcommand{\gnushash}{\#}
97 \newcommand{\gnushat}{\symbol{"5E}}
98 \newcommand{\gnusunderline}{\symbol{"5F}}
99 \newcommand{\gnusnot}{$\neg$}
100 \newcommand{\gnustilde}{\symbol{"7E}}
101 \newcommand{\gnusless}{{$<$}}
102 \newcommand{\gnusgreater}{{$>$}}
103 \newcommand{\gnusbraceleft}{{$>$}}
104 \newcommand{\gnusbraceright}{{$>$}}
105
106 \newcommand{\gnushead}{\raisebox{-1cm}{\epsfig{figure=ps/gnus-head,height=1cm}}}
107 \newcommand{\gnusinteresting}{
108 \marginpar[\mbox{}\hfill\gnushead]{\gnushead}
109 }
110
111 \newcommand{\gnuscleardoublepage}{\ifodd\count0\mbox{}\clearpage\thispagestyle{empty}\mbox{}\clearpage\else\clearpage\fi}
112
113 \newcommand{\gnuspagechapter}[1]{
114 {\mbox{}}
115 }
116
117 \newdimen{\gnusdimen}
118 \gnusdimen 0pt
119
120 \newcommand{\gnuschapter}[2]{
121 \gnuscleardoublepage
122 \ifdim \gnusdimen = 0pt\setcounter{page}{1}\pagestyle{gnus}\pagenumbering{arabic} \gnusdimen 1pt\fi
123 \chapter{#2}
124 \renewcommand{\gnussectionname}{}
125 \renewcommand{\gnuschaptername}{#2}
126 \thispagestyle{empty}
127 \hspace*{-2cm}
128 \begin{picture}(500,500)(0,0)
129 \put(480,350){\makebox(0,0)[tr]{#1}}
130 \put(40,300){\makebox(500,50)[bl]{{\Huge\bf{#2}}}}
131 \end{picture}
132 \clearpage
133 }
134
135 \newcommand{\gnusfigure}[3]{
136 \begin{figure}
137 \mbox{}\ifodd\count0\hspace*{-0.8cm}\else\hspace*{-3cm}\fi\begin{picture}(440,#2)
138 #3
139 \end{picture}
140 \caption{#1}
141 \end{figure}
142 }
143
144 \newcommand{\gnusicon}[1]{
145 \marginpar[\mbox{}\hfill\raisebox{-1.5cm}{\epsfig{figure=ps/#1-up,height=1.5cm}}]{\raisebox{-1cm}{\epsfig{figure=ps/#1-up,height=1cm}}}
146 }
147
148 \newcommand{\gnuspicon}[1]{
149 \margindex{\epsfig{figure=#1,width=2cm}}
150 }
151
152 \newcommand{\gnusxface}[2]{
153 \margindex{\epsfig{figure=#1,width=1cm}\epsfig{figure=#2,width=1cm}}
154 }
155
156 \newcommand{\gnussmiley}[2]{
157 \margindex{\makebox[2cm]{\hfill\epsfig{figure=#1,width=0.5cm}\hfill\epsfig{figure=#2,width=0.5cm}\hfill}}
158 }
159
160 \newcommand{\gnusitemx}[1]{\mbox{}\vspace*{-\itemsep}\vspace*{-\parsep}\item#1}
161
162 \newcommand{\gnussection}[1]{
163 \renewcommand{\gnussectionname}{#1}
164 \section{#1}
165 }
166
167 \newenvironment{codelist}%
168 {\begin{list}{}{
169 }
170 }{\end{list}}
171
172 \newenvironment{asislist}%
173 {\begin{list}{}{
174 }
175 }{\end{list}}
176
177 \newenvironment{kbdlist}%
178 {\begin{list}{}{
179 \labelwidth=0cm
180 }
181 }{\end{list}}
182
183 \newenvironment{dfnlist}%
184 {\begin{list}{}{
185 }
186 }{\end{list}}
187
188 \newenvironment{stronglist}%
189 {\begin{list}{}{
190 }
191 }{\end{list}}
192
193 \newenvironment{samplist}%
194 {\begin{list}{}{
195 }
196 }{\end{list}}
197
198 \newenvironment{varlist}%
199 {\begin{list}{}{
200 }
201 }{\end{list}}
202
203 \newenvironment{emphlist}%
204 {\begin{list}{}{
205 }
206 }{\end{list}}
207
208 \newlength\gnusheadtextwidth
209 \setlength{\gnusheadtextwidth}{\headtextwidth}
210 \addtolength{\gnusheadtextwidth}{1cm}
211
212 \newpagestyle{gnuspreamble}%
213 {
214 {
215 \ifodd\count0
216 {
217 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\mbox{}}\textbf{\hfill\roman{page}}}
218 }
219 \else
220 {
221 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\roman{page}\hfill\mbox{}}}
222 }
223 }
224 \fi
225 }
226 }
227 {
228 \ifodd\count0
229 \mbox{} \hfill
230 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
231 \else
232 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
233 \hfill \mbox{}
234 \fi
235 }
236
237 \newpagestyle{gnusindex}%
238 {
239 {
240 \ifodd\count0
241 {
242 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\gnuschaptername\hfill\arabic{page}}}}
243 }
244 \else
245 {
246 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}
247 }
248 \fi
249 }
250 }
251 {
252 \ifodd\count0
253 \mbox{} \hfill
254 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
255 \else
256 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
257 \hfill \mbox{}
258 \fi
259 }
260
261 \newpagestyle{gnus}%
262 {
263 {
264 \ifodd\count0
265 {
266 \makebox[12cm]{\hspace*{3.1cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{chapter}.\arabic{section}} \textbf{\gnussectionname\hfill\arabic{page}}}}}
267 }
268 \else
269 {
270 \makebox[12cm]{\hspace*{-2.95cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}}
271 }
272 \fi
273 }
274 }
275 {
276 \ifodd\count0
277 \mbox{} \hfill
278 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
279 \else
280 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
281 \hfill \mbox{}
282 \fi
283 }
284
285 \pagenumbering{roman}
286 \pagestyle{gnuspreamble}
287
288 @end iflatex
289 @end iftex
290
291 @iftex
292 @iflatex
293
294 \begin{titlepage}
295 {
296
297 %\addtolength{\oddsidemargin}{-5cm}
298 %\addtolength{\evensidemargin}{-5cm}
299 \parindent=0cm
300 \addtolength{\textheight}{2cm}
301
302 \gnustitle{\gnustitlename}\hfill\gnusversion{\gnusversionname}\\
303 \rule{15cm}{1mm}\\
304 \vfill
305 \hspace*{0cm}\epsfig{figure=ps/gnus-big-logo,height=15cm}
306 \vfill
307 \rule{15cm}{1mm}\\
308 \gnusauthor{by Lars Magne Ingebrigtsen}
309 \newpage
310 }
311
312 \mbox{}
313 \vfill
314
315 \thispagestyle{empty}
316
317 @c @insertcopying
318 \newpage
319 \end{titlepage}
320 @end iflatex
321 @end iftex
322
323 @ifnottex
324 @insertcopying
325 @end ifnottex
326
327 @dircategory Emacs
328 @direntry
329 * Gnus: (gnus).         The newsreader Gnus.
330 @end direntry
331 @iftex
332 @finalout
333 @end iftex
334 @setchapternewpage odd
335
336
337
338 @titlepage
339 @title Gnus Manual
340
341 @author by Lars Magne Ingebrigtsen
342 @page
343 @vskip 0pt plus 1filll
344 @insertcopying
345 @end titlepage
346
347
348 @node Top
349 @top The Gnus Newsreader
350
351 @ifinfo
352
353 You can read news (and mail) from within Emacs by using Gnus.  The news
354 can be gotten by any nefarious means you can think of---@acronym{NNTP}, local
355 spool or your mbox file.  All at the same time, if you want to push your
356 luck.
357
358 @c Adjust ../Makefile.in if you change the following line:
359 This manual corresponds to No Gnus v0.11.
360
361 @end ifinfo
362
363 @iftex
364
365 @iflatex
366 \tableofcontents
367 \gnuscleardoublepage
368 @end iflatex
369
370 Gnus is the advanced, self-documenting, customizable, extensible
371 unreal-time newsreader for GNU Emacs.
372
373 Oops.  That sounds oddly familiar, so let's start over again to avoid
374 being accused of plagiarism:
375
376 Gnus is a message-reading laboratory.  It will let you look at just
377 about anything as if it were a newsgroup.  You can read mail with it,
378 you can browse directories with it, you can @code{ftp} with it---you
379 can even read news with it!
380
381 Gnus tries to empower people who read news the same way Emacs empowers
382 people who edit text.  Gnus sets no limits to what the user should be
383 allowed to do.  Users are encouraged to extend Gnus to make it behave
384 like they want it to behave.  A program should not control people;
385 people should be empowered to do what they want by using (or abusing)
386 the program.
387
388 @c Adjust ../Makefile.in if you change the following line:
389 This manual corresponds to No Gnus v0.11.
390
391 @heading Other related manuals
392 @itemize
393 @item Message manual: Composing messages
394 @item Emacs-MIME:     Composing messages; @acronym{MIME}-specific parts.
395 @item Sieve:          Managing Sieve scripts in Emacs.
396 @item PGG:            @acronym{PGP/MIME} with Gnus.
397 @item SASL:           @acronym{SASL} authentication in Emacs.
398 @end itemize
399
400 @end iftex
401
402 @menu
403 * Starting Up::              Finding news can be a pain.
404 * Group Buffer::             Selecting, subscribing and killing groups.
405 * Summary Buffer::           Reading, saving and posting articles.
406 * Article Buffer::           Displaying and handling articles.
407 * Composing Messages::       Information on sending mail and news.
408 * Select Methods::           Gnus reads all messages from various select methods.
409 * Scoring::                  Assigning values to articles.
410 * Various::                  General purpose settings.
411 * The End::                  Farewell and goodbye.
412 * Appendices::               Terminology, Emacs intro, @acronym{FAQ}, History, Internals.
413 * GNU Free Documentation License:: The license for this documentation.
414 * Index::                    Variable, function and concept index.
415 * Key Index::                Key Index.
416
417 Other related manuals
418
419 * Message:(message).         Composing messages.
420 * Emacs-MIME:(emacs-mime).   Composing messages; @acronym{MIME}-specific parts.
421 * Sieve:(sieve).             Managing Sieve scripts in Emacs.
422 * PGG:(pgg).                 @acronym{PGP/MIME} with Gnus.
423 * SASL:(sasl).               @acronym{SASL} authentication in Emacs.
424
425 @detailmenu
426  --- The Detailed Node Listing ---
427
428 Starting Gnus
429
430 * Finding the News::            Choosing a method for getting news.
431 * The First Time::              What does Gnus do the first time you start it?
432 * The Server is Down::          How can I read my mail then?
433 * Slave Gnusae::                You can have more than one Gnus active at a time.
434 * Fetching a Group::            Starting Gnus just to read a group.
435 * New Groups::                  What is Gnus supposed to do with new groups?
436 * Changing Servers::            You may want to move from one server to another.
437 * Startup Files::               Those pesky startup files---@file{.newsrc}.
438 * Auto Save::                   Recovering from a crash.
439 * The Active File::             Reading the active file over a slow line Takes Time.
440 * Startup Variables::           Other variables you might change.
441
442 New Groups
443
444 * Checking New Groups::         Determining what groups are new.
445 * Subscription Methods::        What Gnus should do with new groups.
446 * Filtering New Groups::        Making Gnus ignore certain new groups.
447
448 Group Buffer
449
450 * Group Buffer Format::         Information listed and how you can change it.
451 * Group Maneuvering::           Commands for moving in the group buffer.
452 * Selecting a Group::           Actually reading news.
453 * Subscription Commands::       Unsubscribing, killing, subscribing.
454 * Group Data::                  Changing the info for a group.
455 * Group Levels::                Levels? What are those, then?
456 * Group Score::                 A mechanism for finding out what groups you like.
457 * Marking Groups::              You can mark groups for later processing.
458 * Foreign Groups::              Creating and editing groups.
459 * Group Parameters::            Each group may have different parameters set.
460 * Listing Groups::              Gnus can list various subsets of the groups.
461 * Sorting Groups::              Re-arrange the group order.
462 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
463 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
464 * Exiting Gnus::                Stop reading news and get some work done.
465 * Group Topics::                A folding group mode divided into topics.
466 * Non-ASCII Group Names::       Accessing groups of non-English names.
467 * Misc Group Stuff::            Other stuff that you can to do.
468
469 Group Buffer Format
470
471 * Group Line Specification::    Deciding how the group buffer is to look.
472 * Group Mode Line Specification::  The group buffer mode line.
473 * Group Highlighting::          Having nice colors in the group buffer.
474
475 Group Topics
476
477 * Topic Commands::              Interactive E-Z commands.
478 * Topic Variables::             How to customize the topics the Lisp Way.
479 * Topic Sorting::               Sorting each topic individually.
480 * Topic Topology::              A map of the world.
481 * Topic Parameters::            Parameters that apply to all groups in a topic.
482
483 Misc Group Stuff
484
485 * Scanning New Messages::       Asking Gnus to see whether new messages have arrived.
486 * Group Information::           Information and help on groups and Gnus.
487 * Group Timestamp::             Making Gnus keep track of when you last read a group.
488 * File Commands::               Reading and writing the Gnus files.
489 * Sieve Commands::              Managing Sieve scripts.
490
491 Summary Buffer
492
493 * Summary Buffer Format::       Deciding how the summary buffer is to look.
494 * Summary Maneuvering::         Moving around the summary buffer.
495 * Choosing Articles::           Reading articles.
496 * Paging the Article::          Scrolling the current article.
497 * Reply Followup and Post::     Posting articles.
498 * Delayed Articles::            Send articles at a later time.
499 * Marking Articles::            Marking articles as read, expirable, etc.
500 * Limiting::                    You can limit the summary buffer.
501 * Threading::                   How threads are made.
502 * Sorting the Summary Buffer::  How articles and threads are sorted.
503 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
504 * Article Caching::             You may store articles in a cache.
505 * Persistent Articles::         Making articles expiry-resistant.
506 * Sticky Articles::             Article buffers that are not reused.
507 * Article Backlog::             Having already read articles hang around.
508 * Saving Articles::             Ways of customizing article saving.
509 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
510 * Article Treatment::           The article buffer can be mangled at will.
511 * MIME Commands::               Doing MIMEy things with the articles.
512 * Charsets::                    Character set issues.
513 * Article Commands::            Doing various things with the article buffer.
514 * Summary Sorting::             Sorting the summary buffer in various ways.
515 * Finding the Parent::          No child support? Get the parent.
516 * Alternative Approaches::      Reading using non-default summaries.
517 * Tree Display::                A more visual display of threads.
518 * Mail Group Commands::         Some commands can only be used in mail groups.
519 * Various Summary Stuff::       What didn't fit anywhere else.
520 * Exiting the Summary Buffer::  Returning to the Group buffer,
521                                 or reselecting the current group.
522 * Crosspost Handling::          How crossposted articles are dealt with.
523 * Duplicate Suppression::       An alternative when crosspost handling fails.
524 * Security::                    Decrypt and Verify.
525 * Mailing List::                Mailing list minor mode.
526
527 Summary Buffer Format
528
529 * Summary Buffer Lines::        You can specify how summary lines should look.
530 * To From Newsgroups::          How to not display your own name.
531 * Summary Buffer Mode Line::    You can say how the mode line should look.
532 * Summary Highlighting::        Making the summary buffer all pretty and nice.
533
534 Choosing Articles
535
536 * Choosing Commands::           Commands for choosing articles.
537 * Choosing Variables::          Variables that influence these commands.
538
539 Reply, Followup and Post
540
541 * Summary Mail Commands::       Sending mail.
542 * Summary Post Commands::       Sending news.
543 * Summary Message Commands::    Other Message-related commands.
544 * Canceling and Superseding::
545
546 Marking Articles
547
548 * Unread Articles::             Marks for unread articles.
549 * Read Articles::               Marks for read articles.
550 * Other Marks::                 Marks that do not affect readedness.
551 * Setting Marks::               How to set and remove marks.
552 * Generic Marking Commands::    How to customize the marking.
553 * Setting Process Marks::       How to mark articles for later processing.
554
555 Threading
556
557 * Customizing Threading::       Variables you can change to affect the threading.
558 * Thread Commands::             Thread based commands in the summary buffer.
559
560 Customizing Threading
561
562 * Loose Threads::               How Gnus gathers loose threads into bigger threads.
563 * Filling In Threads::          Making the threads displayed look fuller.
564 * More Threading::              Even more variables for fiddling with threads.
565 * Low-Level Threading::         You thought it was over@dots{} but you were wrong!
566
567 Decoding Articles
568
569 * Uuencoded Articles::          Uudecode articles.
570 * Shell Archives::              Unshar articles.
571 * PostScript Files::            Split PostScript.
572 * Other Files::                 Plain save and binhex.
573 * Decoding Variables::          Variables for a happy decoding.
574 * Viewing Files::               You want to look at the result of the decoding?
575
576 Decoding Variables
577
578 * Rule Variables::              Variables that say how a file is to be viewed.
579 * Other Decode Variables::      Other decode variables.
580 * Uuencoding and Posting::      Variables for customizing uuencoding.
581
582 Article Treatment
583
584 * Article Highlighting::        You want to make the article look like fruit salad.
585 * Article Fontisizing::         Making emphasized text look nice.
586 * Article Hiding::              You also want to make certain info go away.
587 * Article Washing::             Lots of way-neat functions to make life better.
588 * Article Header::              Doing various header transformations.
589 * Article Buttons::             Click on URLs, Message-IDs, addresses and the like.
590 * Article Button Levels::       Controlling appearance of buttons.
591 * Article Date::                Grumble, UT!
592 * Article Display::             Display various stuff---X-Face, Picons, Smileys
593 * Article Signature::           What is a signature?
594 * Article Miscellanea::         Various other stuff.
595
596 Alternative Approaches
597
598 * Pick and Read::               First mark articles and then read them.
599 * Binary Groups::               Auto-decode all articles.
600
601 Various Summary Stuff
602
603 * Summary Group Information::   Information oriented commands.
604 * Searching for Articles::      Multiple article commands.
605 * Summary Generation Commands::
606 * Really Various Summary Commands::  Those pesky non-conformant commands.
607
608 Article Buffer
609
610 * Hiding Headers::              Deciding what headers should be displayed.
611 * Using MIME::                  Pushing articles through @acronym{MIME} before reading them.
612 * Customizing Articles::        Tailoring the look of the articles.
613 * Article Keymap::              Keystrokes available in the article buffer.
614 * Misc Article::                Other stuff.
615
616 Composing Messages
617
618 * Mail::                        Mailing and replying.
619 * Posting Server::              What server should you post and mail via?
620 * POP before SMTP::             You cannot send a mail unless you read a mail.
621 * Mail and Post::               Mailing and posting at the same time.
622 * Archived Messages::           Where Gnus stores the messages you've sent.
623 * Posting Styles::              An easier way to specify who you are.
624 * Drafts::                      Postponing messages and rejected messages.
625 * Rejected Articles::           What happens if the server doesn't like your article?
626 * Signing and encrypting::      How to compose secure messages.
627
628 Select Methods
629
630 * Server Buffer::               Making and editing virtual servers.
631 * Getting News::                Reading USENET news with Gnus.
632 * Getting Mail::                Reading your personal mail with Gnus.
633 * Browsing the Web::            Getting messages from a plethora of Web sources.
634 * IMAP::                        Using Gnus as a @acronym{IMAP} client.
635 * Other Sources::               Reading directories, files, SOUP packets.
636 * Combined Groups::             Combining groups into one group.
637 * Email Based Diary::           Using mails to manage diary events in Gnus.
638 * Gnus Unplugged::              Reading news and mail offline.
639
640 Server Buffer
641
642 * Server Buffer Format::        You can customize the look of this buffer.
643 * Server Commands::             Commands to manipulate servers.
644 * Example Methods::             Examples server specifications.
645 * Creating a Virtual Server::   An example session.
646 * Server Variables::            Which variables to set.
647 * Servers and Methods::         You can use server names as select methods.
648 * Unavailable Servers::         Some servers you try to contact may be down.
649
650 Getting News
651
652 * NNTP::                        Reading news from an @acronym{NNTP} server.
653 * News Spool::                  Reading news from the local spool.
654
655 @acronym{NNTP}
656
657 * Direct Functions::            Connecting directly to the server.
658 * Indirect Functions::          Connecting indirectly to the server.
659 * Common Variables::            Understood by several connection functions.
660 * NNTP marks::                  Storing marks for @acronym{NNTP} servers.
661
662 Getting Mail
663
664 * Mail in a Newsreader::        Important introductory notes.
665 * Getting Started Reading Mail::  A simple cookbook example.
666 * Splitting Mail::              How to create mail groups.
667 * Mail Sources::                How to tell Gnus where to get mail from.
668 * Mail Back End Variables::     Variables for customizing mail handling.
669 * Fancy Mail Splitting::        Gnus can do hairy splitting of incoming mail.
670 * Group Mail Splitting::        Use group customize to drive mail splitting.
671 * Incorporating Old Mail::      What about the old mail you have?
672 * Expiring Mail::               Getting rid of unwanted mail.
673 * Washing Mail::                Removing cruft from the mail you get.
674 * Duplicates::                  Dealing with duplicated mail.
675 * Not Reading Mail::            Using mail back ends for reading other files.
676 * Choosing a Mail Back End::    Gnus can read a variety of mail formats.
677
678 Mail Sources
679
680 * Mail Source Specifiers::      How to specify what a mail source is.
681 * Mail Source Customization::   Some variables that influence things.
682 * Fetching Mail::               Using the mail source specifiers.
683
684 Choosing a Mail Back End
685
686 * Unix Mail Box::               Using the (quite) standard Un*x mbox.
687 * Rmail Babyl::                 Emacs programs use the Rmail Babyl format.
688 * Mail Spool::                  Store your mail in a private spool?
689 * MH Spool::                    An mhspool-like back end.
690 * Maildir::                     Another one-file-per-message format.
691 * Mail Folders::                Having one file for each group.
692 * Comparing Mail Back Ends::    An in-depth looks at pros and cons.
693
694 Browsing the Web
695
696 * Archiving Mail::
697 * Web Searches::                Creating groups from articles that match a string.
698 * Slashdot::                    Reading the Slashdot comments.
699 * Ultimate::                    The Ultimate Bulletin Board systems.
700 * Web Archive::                 Reading mailing list archived on web.
701 * RSS::                         Reading RDF site summary.
702 * Customizing W3::              Doing stuff to Emacs/W3 from Gnus.
703
704 @acronym{IMAP}
705
706 * Splitting in IMAP::           Splitting mail with nnimap.
707 * Expiring in IMAP::            Expiring mail with nnimap.
708 * Editing IMAP ACLs::           Limiting/enabling other users access to a mailbox.
709 * Expunging mailboxes::         Equivalent of a ``compress mailbox'' button.
710 * A note on namespaces::        How to (not) use @acronym{IMAP} namespace in Gnus.
711 * Debugging IMAP::              What to do when things don't work.
712
713 Other Sources
714
715 * Directory Groups::            You can read a directory as if it was a newsgroup.
716 * Anything Groups::             Dired?  Who needs dired?
717 * Document Groups::             Single files can be the basis of a group.
718 * SOUP::                        Reading @sc{soup} packets ``offline''.
719 * Mail-To-News Gateways::       Posting articles via mail-to-news gateways.
720
721 Document Groups
722
723 * Document Server Internals::   How to add your own document types.
724
725 SOUP
726
727 * SOUP Commands::               Commands for creating and sending @sc{soup} packets
728 * SOUP Groups::                 A back end for reading @sc{soup} packets.
729 * SOUP Replies::                How to enable @code{nnsoup} to take over mail and news.
730
731 Combined Groups
732
733 * Virtual Groups::              Combining articles from many groups.
734 * Kibozed Groups::              Looking through parts of the newsfeed for articles.
735
736 Email Based Diary
737
738 * The NNDiary Back End::        Basic setup and usage.
739 * The Gnus Diary Library::      Utility toolkit on top of nndiary.
740 * Sending or Not Sending::      A final note on sending diary messages.
741
742 The NNDiary Back End
743
744 * Diary Messages::              What makes a message valid for nndiary.
745 * Running NNDiary::             NNDiary has two modes of operation.
746 * Customizing NNDiary::         Bells and whistles.
747
748 The Gnus Diary Library
749
750 * Diary Summary Line Format::           A nicer summary buffer line format.
751 * Diary Articles Sorting::              A nicer way to sort messages.
752 * Diary Headers Generation::            Not doing it manually.
753 * Diary Group Parameters::              Not handling them manually.
754
755 Gnus Unplugged
756
757 * Agent Basics::                How it all is supposed to work.
758 * Agent Categories::            How to tell the Gnus Agent what to download.
759 * Agent Commands::              New commands for all the buffers.
760 * Agent Visuals::               Ways that the agent may effect your summary buffer.
761 * Agent as Cache::              The Agent is a big cache too.
762 * Agent Expiry::                How to make old articles go away.
763 * Agent Regeneration::          How to recover from lost connections and other accidents.
764 * Agent and flags::             How the Agent maintains flags.
765 * Agent and IMAP::              How to use the Agent with @acronym{IMAP}.
766 * Outgoing Messages::           What happens when you post/mail something?
767 * Agent Variables::             Customizing is fun.
768 * Example Setup::               An example @file{~/.gnus.el} file for offline people.
769 * Batching Agents::             How to fetch news from a @code{cron} job.
770 * Agent Caveats::               What you think it'll do and what it does.
771
772 Agent Categories
773
774 * Category Syntax::             What a category looks like.
775 * Category Buffer::             A buffer for maintaining categories.
776 * Category Variables::          Customize'r'Us.
777
778 Agent Commands
779
780 * Group Agent Commands::        Configure groups and fetch their contents.
781 * Summary Agent Commands::      Manually select then fetch specific articles.
782 * Server Agent Commands::       Select the servers that are supported by the agent.
783
784 Scoring
785
786 * Summary Score Commands::      Adding score entries for the current group.
787 * Group Score Commands::        General score commands.
788 * Score Variables::             Customize your scoring.  (My, what terminology).
789 * Score File Format::           What a score file may contain.
790 * Score File Editing::          You can edit score files by hand as well.
791 * Adaptive Scoring::            Big Sister Gnus knows what you read.
792 * Home Score File::             How to say where new score entries are to go.
793 * Followups To Yourself::       Having Gnus notice when people answer you.
794 * Scoring On Other Headers::    Scoring on non-standard headers.
795 * Scoring Tips::                How to score effectively.
796 * Reverse Scoring::             That problem child of old is not problem.
797 * Global Score Files::          Earth-spanning, ear-splitting score files.
798 * Kill Files::                  They are still here, but they can be ignored.
799 * Converting Kill Files::       Translating kill files to score files.
800 * Advanced Scoring::            Using logical expressions to build score rules.
801 * Score Decays::                It can be useful to let scores wither away.
802
803 Advanced Scoring
804
805 * Advanced Scoring Syntax::     A definition.
806 * Advanced Scoring Examples::   What they look like.
807 * Advanced Scoring Tips::       Getting the most out of it.
808
809 Various
810
811 * Process/Prefix::              A convention used by many treatment commands.
812 * Interactive::                 Making Gnus ask you many questions.
813 * Symbolic Prefixes::           How to supply some Gnus functions with options.
814 * Formatting Variables::        You can specify what buffers should look like.
815 * Window Layout::               Configuring the Gnus buffer windows.
816 * Faces and Fonts::             How to change how faces look.
817 * Compilation::                 How to speed Gnus up.
818 * Mode Lines::                  Displaying information in the mode lines.
819 * Highlighting and Menus::      Making buffers look all nice and cozy.
820 * Buttons::                     Get tendinitis in ten easy steps!
821 * Daemons::                     Gnus can do things behind your back.
822 * NoCeM::                       How to avoid spam and other fatty foods.
823 * Undo::                        Some actions can be undone.
824 * Predicate Specifiers::        Specifying predicates.
825 * Moderation::                  What to do if you're a moderator.
826 * Image Enhancements::          Modern versions of Emacs/XEmacs can display images.
827 * Fuzzy Matching::              What's the big fuzz?
828 * Thwarting Email Spam::        Simple ways to avoid unsolicited commercial email.
829 * Spam Package::                A package for filtering and processing spam.
830 * Other modes::                 Interaction with other modes.
831 * Various Various::             Things that are really various.
832
833 Formatting Variables
834
835 * Formatting Basics::           A formatting variable is basically a format string.
836 * Mode Line Formatting::        Some rules about mode line formatting variables.
837 * Advanced Formatting::         Modifying output in various ways.
838 * User-Defined Specs::          Having Gnus call your own functions.
839 * Formatting Fonts::            Making the formatting look colorful and nice.
840 * Positioning Point::           Moving point to a position after an operation.
841 * Tabulation::                  Tabulating your output.
842 * Wide Characters::             Dealing with wide characters.
843
844 Image Enhancements
845
846 * X-Face::                      Display a funky, teensy black-and-white image.
847 * Face::                        Display a funkier, teensier colored image.
848 * Smileys::                     Show all those happy faces the way they were
849                                   meant to be shown.
850 * Picons::                      How to display pictures of what you're reading.
851 * XVarious::                    Other XEmacsy Gnusey variables.
852
853 Thwarting Email Spam
854
855 * The problem of spam::         Some background, and some solutions
856 * Anti-Spam Basics::            Simple steps to reduce the amount of spam.
857 * SpamAssassin::                How to use external anti-spam tools.
858 * Hashcash::                    Reduce spam by burning CPU time.
859
860 Spam Package
861
862 * Spam Package Introduction::
863 * Filtering Incoming Mail::
864 * Detecting Spam in Groups::
865 * Spam and Ham Processors::
866 * Spam Package Configuration Examples::
867 * Spam Back Ends::
868 * Extending the Spam package::
869 * Spam Statistics Package::
870
871 Spam Statistics Package
872
873 * Creating a spam-stat dictionary::
874 * Splitting mail using spam-stat::
875 * Low-level interface to the spam-stat dictionary::
876
877 Appendices
878
879 * XEmacs::                      Requirements for installing under XEmacs.
880 * History::                     How Gnus got where it is today.
881 * On Writing Manuals::          Why this is not a beginner's guide.
882 * Terminology::                 We use really difficult, like, words here.
883 * Customization::               Tailoring Gnus to your needs.
884 * Troubleshooting::             What you might try if things do not work.
885 * Gnus Reference Guide::        Rilly, rilly technical stuff.
886 * Emacs for Heathens::          A short introduction to Emacsian terms.
887 * Frequently Asked Questions::  The Gnus FAQ
888
889 History
890
891 * Gnus Versions::               What Gnus versions have been released.
892 * Other Gnus Versions::         Other Gnus versions that also have been released.
893 * Why?::                        What's the point of Gnus?
894 * Compatibility::               Just how compatible is Gnus with @sc{gnus}?
895 * Conformity::                  Gnus tries to conform to all standards.
896 * Emacsen::                     Gnus can be run on a few modern Emacsen.
897 * Gnus Development::            How Gnus is developed.
898 * Contributors::                Oodles of people.
899 * New Features::                Pointers to some of the new stuff in Gnus.
900
901 New Features
902
903 * ding Gnus::                   New things in Gnus 5.0/5.1, the first new Gnus.
904 * September Gnus::              The Thing Formally Known As Gnus 5.2/5.3.
905 * Red Gnus::                    Third time best---Gnus 5.4/5.5.
906 * Quassia Gnus::                Two times two is four, or Gnus 5.6/5.7.
907 * Pterodactyl Gnus::            Pentad also starts with P, AKA Gnus 5.8/5.9.
908 * Oort Gnus::                   It's big.  It's far out.  Gnus 5.10/5.11.
909 * No Gnus::                     Very punny.
910
911 Customization
912
913 * Slow/Expensive Connection::   You run a local Emacs and get the news elsewhere.
914 * Slow Terminal Connection::    You run a remote Emacs.
915 * Little Disk Space::           You feel that having large setup files is icky.
916 * Slow Machine::                You feel like buying a faster machine.
917
918 Gnus Reference Guide
919
920 * Gnus Utility Functions::      Common functions and variable to use.
921 * Back End Interface::          How Gnus communicates with the servers.
922 * Score File Syntax::           A BNF definition of the score file standard.
923 * Headers::                     How Gnus stores headers internally.
924 * Ranges::                      A handy format for storing mucho numbers.
925 * Group Info::                  The group info format.
926 * Extended Interactive::        Symbolic prefixes and stuff.
927 * Emacs/XEmacs Code::           Gnus can be run under all modern Emacsen.
928 * Various File Formats::        Formats of files that Gnus use.
929
930 Back End Interface
931
932 * Required Back End Functions::  Functions that must be implemented.
933 * Optional Back End Functions::  Functions that need not be implemented.
934 * Error Messaging::             How to get messages and report errors.
935 * Writing New Back Ends::       Extending old back ends.
936 * Hooking New Back Ends Into Gnus::  What has to be done on the Gnus end.
937 * Mail-like Back Ends::         Some tips on mail back ends.
938
939 Various File Formats
940
941 * Active File Format::          Information on articles and groups available.
942 * Newsgroups File Format::      Group descriptions.
943
944 Emacs for Heathens
945
946 * Keystrokes::                  Entering text and executing commands.
947 * Emacs Lisp::                  The built-in Emacs programming language.
948
949 @end detailmenu
950 @end menu
951
952 @node Starting Up
953 @chapter Starting Gnus
954 @cindex starting up
955
956 If you haven't used Emacs much before using Gnus, read @ref{Emacs for
957 Heathens} first.
958
959 @kindex M-x gnus
960 @findex gnus
961 If your system administrator has set things up properly, starting Gnus
962 and reading news is extremely easy---you just type @kbd{M-x gnus} in
963 your Emacs.  If not, you should customize the variable
964 @code{gnus-select-method} as described in @ref{Finding the News}.  For a
965 minimal setup for posting should also customize the variables
966 @code{user-full-name} and @code{user-mail-address}.
967
968 @findex gnus-other-frame
969 @kindex M-x gnus-other-frame
970 If you want to start Gnus in a different frame, you can use the command
971 @kbd{M-x gnus-other-frame} instead.
972
973 If things do not go smoothly at startup, you have to twiddle some
974 variables in your @file{~/.gnus.el} file.  This file is similar to
975 @file{~/.emacs}, but is read when Gnus starts.
976
977 If you puzzle at any terms used in this manual, please refer to the
978 terminology section (@pxref{Terminology}).
979
980 @menu
981 * Finding the News::      Choosing a method for getting news.
982 * The First Time::        What does Gnus do the first time you start it?
983 * The Server is Down::    How can I read my mail then?
984 * Slave Gnusae::          You can have more than one Gnus active at a time.
985 * New Groups::            What is Gnus supposed to do with new groups?
986 * Changing Servers::      You may want to move from one server to another.
987 * Startup Files::         Those pesky startup files---@file{.newsrc}.
988 * Auto Save::             Recovering from a crash.
989 * The Active File::       Reading the active file over a slow line Takes Time.
990 * Startup Variables::     Other variables you might change.
991 @end menu
992
993
994 @node Finding the News
995 @section Finding the News
996 @cindex finding news
997
998 @vindex gnus-select-method
999 @c @head
1000 The @code{gnus-select-method} variable says where Gnus should look for
1001 news.  This variable should be a list where the first element says
1002 @dfn{how} and the second element says @dfn{where}.  This method is your
1003 native method.  All groups not fetched with this method are
1004 foreign groups.
1005
1006 For instance, if the @samp{news.somewhere.edu} @acronym{NNTP} server is where
1007 you want to get your daily dosage of news from, you'd say:
1008
1009 @lisp
1010 (setq gnus-select-method '(nntp "news.somewhere.edu"))
1011 @end lisp
1012
1013 If you want to read directly from the local spool, say:
1014
1015 @lisp
1016 (setq gnus-select-method '(nnspool ""))
1017 @end lisp
1018
1019 If you can use a local spool, you probably should, as it will almost
1020 certainly be much faster.  But do not use the local spool if your
1021 server is running Leafnode (which is a simple, standalone private news
1022 server); in this case, use @code{(nntp "localhost")}.
1023
1024 @vindex gnus-nntpserver-file
1025 @cindex NNTPSERVER
1026 @cindex @acronym{NNTP} server
1027 If this variable is not set, Gnus will take a look at the
1028 @env{NNTPSERVER} environment variable.  If that variable isn't set,
1029 Gnus will see whether @code{gnus-nntpserver-file}
1030 (@file{/etc/nntpserver} by default) has any opinions on the matter.
1031 If that fails as well, Gnus will try to use the machine running Emacs
1032 as an @acronym{NNTP} server.  That's a long shot, though.
1033
1034 @vindex gnus-nntp-server
1035 If @code{gnus-nntp-server} is set, this variable will override
1036 @code{gnus-select-method}.  You should therefore set
1037 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
1038
1039 @vindex gnus-secondary-servers
1040 @vindex gnus-nntp-server
1041 You can also make Gnus prompt you interactively for the name of an
1042 @acronym{NNTP} server.  If you give a non-numerical prefix to @code{gnus}
1043 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
1044 in the @code{gnus-secondary-servers} list (if any).  You can also just
1045 type in the name of any server you feel like visiting.  (Note that this
1046 will set @code{gnus-nntp-server}, which means that if you then @kbd{M-x
1047 gnus} later in the same Emacs session, Gnus will contact the same
1048 server.)
1049
1050 @findex gnus-group-browse-foreign-server
1051 @kindex B (Group)
1052 However, if you use one @acronym{NNTP} server regularly and are just
1053 interested in a couple of groups from a different server, you would be
1054 better served by using the @kbd{B} command in the group buffer.  It will
1055 let you have a look at what groups are available, and you can subscribe
1056 to any of the groups you want to.  This also makes @file{.newsrc}
1057 maintenance much tidier.  @xref{Foreign Groups}.
1058
1059 @vindex gnus-secondary-select-methods
1060 @c @head
1061 A slightly different approach to foreign groups is to set the
1062 @code{gnus-secondary-select-methods} variable.  The select methods
1063 listed in this variable are in many ways just as native as the
1064 @code{gnus-select-method} server.  They will also be queried for active
1065 files during startup (if that's required), and new newsgroups that
1066 appear on these servers will be subscribed (or not) just as native
1067 groups are.
1068
1069 For instance, if you use the @code{nnmbox} back end to read your mail,
1070 you would typically set this variable to
1071
1072 @lisp
1073 (setq gnus-secondary-select-methods '((nnmbox "")))
1074 @end lisp
1075
1076 Note: the @acronym{NNTP} back end stores marks in marks files
1077 (@pxref{NNTP marks}).  This feature makes it easy to share marks between
1078 several Gnus installations, but may slow down things a bit when fetching
1079 new articles.  @xref{NNTP marks}, for more information.
1080
1081
1082 @node The First Time
1083 @section The First Time
1084 @cindex first time usage
1085
1086 If no startup files exist (@pxref{Startup Files}), Gnus will try to
1087 determine what groups should be subscribed by default.
1088
1089 @vindex gnus-default-subscribed-newsgroups
1090 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
1091 will subscribe you to just those groups in that list, leaving the rest
1092 killed.  Your system administrator should have set this variable to
1093 something useful.
1094
1095 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
1096 picked groups (i.e., @samp{*.newusers}).  (@dfn{Arbitrary} is defined
1097 here as @dfn{whatever Lars thinks you should read}.)
1098
1099 You'll also be subscribed to the Gnus documentation group, which should
1100 help you with most common problems.
1101
1102 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
1103 use the normal functions for handling new groups, and not do anything
1104 special.
1105
1106
1107 @node The Server is Down
1108 @section The Server is Down
1109 @cindex server errors
1110
1111 If the default server is down, Gnus will understandably have some
1112 problems starting.  However, if you have some mail groups in addition to
1113 the news groups, you may want to start Gnus anyway.
1114
1115 Gnus, being the trusting sort of program, will ask whether to proceed
1116 without a native select method if that server can't be contacted.  This
1117 will happen whether the server doesn't actually exist (i.e., you have
1118 given the wrong address) or the server has just momentarily taken ill
1119 for some reason or other.  If you decide to continue and have no foreign
1120 groups, you'll find it difficult to actually do anything in the group
1121 buffer.  But, hey, that's your problem.  Blllrph!
1122
1123 @findex gnus-no-server
1124 @kindex M-x gnus-no-server
1125 @c @head
1126 If you know that the server is definitely down, or you just want to read
1127 your mail without bothering with the server at all, you can use the
1128 @code{gnus-no-server} command to start Gnus.  That might come in handy
1129 if you're in a hurry as well.  This command will not attempt to contact
1130 your primary server---instead, it will just activate all groups on level
1131 1 and 2.  (You should preferably keep no native groups on those two
1132 levels.) Also @pxref{Group Levels}.
1133
1134
1135 @node Slave Gnusae
1136 @section Slave Gnusae
1137 @cindex slave
1138
1139 You might want to run more than one Emacs with more than one Gnus at the
1140 same time.  If you are using different @file{.newsrc} files (e.g., if you
1141 are using the two different Gnusae to read from two different servers),
1142 that is no problem whatsoever.  You just do it.
1143
1144 The problem appears when you want to run two Gnusae that use the same
1145 @file{.newsrc} file.
1146
1147 To work around that problem some, we here at the Think-Tank at the Gnus
1148 Towers have come up with a new concept: @dfn{Masters} and
1149 @dfn{slaves}.  (We have applied for a patent on this concept, and have
1150 taken out a copyright on those words.  If you wish to use those words in
1151 conjunction with each other, you have to send $1 per usage instance to
1152 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
1153 Applications}) will be much more expensive, of course.)
1154
1155 @findex gnus-slave
1156 Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1157 however you do it).  Each subsequent slave Gnusae should be started with
1158 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
1159 files, but instead save @dfn{slave files} that contain information only
1160 on what groups have been read in the slave session.  When a master Gnus
1161 starts, it will read (and delete) these slave files, incorporating all
1162 information from them.  (The slave files will be read in the sequence
1163 they were created, so the latest changes will have precedence.)
1164
1165 Information from the slave files has, of course, precedence over the
1166 information in the normal (i.e., master) @file{.newsrc} file.
1167
1168 If the @file{.newsrc*} files have not been saved in the master when the
1169 slave starts, you may be prompted as to whether to read an auto-save
1170 file.  If you answer ``yes'', the unsaved changes to the master will be
1171 incorporated into the slave.  If you answer ``no'', the slave may see some
1172 messages as unread that have been read in the master.
1173
1174
1175
1176 @node New Groups
1177 @section New Groups
1178 @cindex new groups
1179 @cindex subscription
1180
1181 @vindex gnus-check-new-newsgroups
1182 If you are satisfied that you really never want to see any new groups,
1183 you can set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
1184 also save you some time at startup.  Even if this variable is
1185 @code{nil}, you can always subscribe to the new groups just by pressing
1186 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
1187 is @code{ask-server} by default.  If you set this variable to
1188 @code{always}, then Gnus will query the back ends for new groups even
1189 when you do the @kbd{g} command (@pxref{Scanning New Messages}).
1190
1191 @menu
1192 * Checking New Groups::         Determining what groups are new.
1193 * Subscription Methods::        What Gnus should do with new groups.
1194 * Filtering New Groups::        Making Gnus ignore certain new groups.
1195 @end menu
1196
1197
1198 @node Checking New Groups
1199 @subsection Checking New Groups
1200
1201 Gnus normally determines whether a group is new or not by comparing the
1202 list of groups from the active file(s) with the lists of subscribed and
1203 dead groups.  This isn't a particularly fast method.  If
1204 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
1205 server for new groups since the last time.  This is both faster and
1206 cheaper.  This also means that you can get rid of the list of killed
1207 groups altogether, so you may set @code{gnus-save-killed-list} to
1208 @code{nil}, which will save time both at startup, at exit, and all over.
1209 Saves disk space, too.  Why isn't this the default, then?
1210 Unfortunately, not all servers support this command.
1211
1212 I bet I know what you're thinking now: How do I find out whether my
1213 server supports @code{ask-server}?  No?  Good, because I don't have a
1214 fail-safe answer.  I would suggest just setting this variable to
1215 @code{ask-server} and see whether any new groups appear within the next
1216 few days.  If any do, then it works.  If none do, then it doesn't
1217 work.  I could write a function to make Gnus guess whether the server
1218 supports @code{ask-server}, but it would just be a guess.  So I won't.
1219 You could @code{telnet} to the server and say @code{HELP} and see
1220 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
1221 it does, then it might work.  (But there are servers that lists
1222 @samp{NEWGROUPS} without supporting the function properly.)
1223
1224 This variable can also be a list of select methods.  If so, Gnus will
1225 issue an @code{ask-server} command to each of the select methods, and
1226 subscribe them (or not) using the normal methods.  This might be handy
1227 if you are monitoring a few servers for new groups.  A side effect is
1228 that startup will take much longer, so you can meditate while waiting.
1229 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
1230
1231
1232 @node Subscription Methods
1233 @subsection Subscription Methods
1234
1235 @vindex gnus-subscribe-newsgroup-method
1236 What Gnus does when it encounters a new group is determined by the
1237 @code{gnus-subscribe-newsgroup-method} variable.
1238
1239 This variable should contain a function.  This function will be called
1240 with the name of the new group as the only parameter.
1241
1242 Some handy pre-fab functions are:
1243
1244 @table @code
1245
1246 @item gnus-subscribe-zombies
1247 @vindex gnus-subscribe-zombies
1248 Make all new groups zombies.  This is the default.  You can browse the
1249 zombies later (with @kbd{A z}) and either kill them all off properly
1250 (with @kbd{S z}), or subscribe to them (with @kbd{u}).
1251
1252 @item gnus-subscribe-randomly
1253 @vindex gnus-subscribe-randomly
1254 Subscribe all new groups in arbitrary order.  This really means that all
1255 new groups will be added at ``the top'' of the group buffer.
1256
1257 @item gnus-subscribe-alphabetically
1258 @vindex gnus-subscribe-alphabetically
1259 Subscribe all new groups in alphabetical order.
1260
1261 @item gnus-subscribe-hierarchically
1262 @vindex gnus-subscribe-hierarchically
1263 Subscribe all new groups hierarchically.  The difference between this
1264 function and @code{gnus-subscribe-alphabetically} is slight.
1265 @code{gnus-subscribe-alphabetically} will subscribe new groups in a strictly
1266 alphabetical fashion, while this function will enter groups into its
1267 hierarchy.  So if you want to have the @samp{rec} hierarchy before the
1268 @samp{comp} hierarchy, this function will not mess that configuration
1269 up.  Or something like that.
1270
1271 @item gnus-subscribe-interactively
1272 @vindex gnus-subscribe-interactively
1273 Subscribe new groups interactively.  This means that Gnus will ask
1274 you about @strong{all} new groups.  The groups you choose to subscribe
1275 to will be subscribed hierarchically.
1276
1277 @item gnus-subscribe-killed
1278 @vindex gnus-subscribe-killed
1279 Kill all new groups.
1280
1281 @item gnus-subscribe-topics
1282 @vindex gnus-subscribe-topics
1283 Put the groups into the topic that has a matching @code{subscribe} topic
1284 parameter (@pxref{Topic Parameters}).  For instance, a @code{subscribe}
1285 topic parameter that looks like
1286
1287 @example
1288 "nnslashdot"
1289 @end example
1290
1291 will mean that all groups that match that regex will be subscribed under
1292 that topic.
1293
1294 If no topics match the groups, the groups will be subscribed in the
1295 top-level topic.
1296
1297 @end table
1298
1299 @vindex gnus-subscribe-hierarchical-interactive
1300 A closely related variable is
1301 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
1302 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
1303 hierarchical fashion whether to subscribe to new groups or not.  Gnus
1304 will ask you for each sub-hierarchy whether you want to descend the
1305 hierarchy or not.
1306
1307 One common mistake is to set the variable a few paragraphs above
1308 (@code{gnus-subscribe-newsgroup-method}) to
1309 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
1310 will not work.  This is ga-ga.  So don't do it.
1311
1312
1313 @node Filtering New Groups
1314 @subsection Filtering New Groups
1315
1316 A nice and portable way to control which new newsgroups should be
1317 subscribed (or ignored) is to put an @dfn{options} line at the start of
1318 the @file{.newsrc} file.  Here's an example:
1319
1320 @example
1321 options -n !alt.all !rec.all sci.all
1322 @end example
1323
1324 @vindex gnus-subscribe-options-newsgroup-method
1325 This line obviously belongs to a serious-minded intellectual scientific
1326 person (or she may just be plain old boring), because it says that all
1327 groups that have names beginning with @samp{alt} and @samp{rec} should
1328 be ignored, and all groups with names beginning with @samp{sci} should
1329 be subscribed.  Gnus will not use the normal subscription method for
1330 subscribing these groups.
1331 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
1332 variable defaults to @code{gnus-subscribe-alphabetically}.
1333
1334 @vindex gnus-options-not-subscribe
1335 @vindex gnus-options-subscribe
1336 If you don't want to mess with your @file{.newsrc} file, you can just
1337 set the two variables @code{gnus-options-subscribe} and
1338 @code{gnus-options-not-subscribe}.  These two variables do exactly the
1339 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
1340 and if the new group matches the former, it will be unconditionally
1341 subscribed, and if it matches the latter, it will be ignored.
1342
1343 @vindex gnus-auto-subscribed-groups
1344 Yet another variable that meddles here is
1345 @code{gnus-auto-subscribed-groups}.  It works exactly like
1346 @code{gnus-options-subscribe}, and is therefore really superfluous,
1347 but I thought it would be nice to have two of these.  This variable is
1348 more meant for setting some ground rules, while the other variable is
1349 used more for user fiddling.  By default this variable makes all new
1350 groups that come from mail back ends (@code{nnml}, @code{nnbabyl},
1351 @code{nnfolder}, @code{nnmbox}, @code{nnmh}, and @code{nnmaildir})
1352 subscribed.  If you don't like that, just set this variable to
1353 @code{nil}.
1354
1355 New groups that match this regexp are subscribed using
1356 @code{gnus-subscribe-options-newsgroup-method}.
1357
1358
1359 @node Changing Servers
1360 @section Changing Servers
1361 @cindex changing servers
1362
1363 Sometimes it is necessary to move from one @acronym{NNTP} server to another.
1364 This happens very rarely, but perhaps you change jobs, or one server is
1365 very flaky and you want to use another.
1366
1367 Changing the server is pretty easy, right?  You just change
1368 @code{gnus-select-method} to point to the new server?
1369
1370 @emph{Wrong!}
1371
1372 Article numbers are not (in any way) kept synchronized between different
1373 @acronym{NNTP} servers, and the only way Gnus keeps track of what articles
1374 you have read is by keeping track of article numbers.  So when you
1375 change @code{gnus-select-method}, your @file{.newsrc} file becomes
1376 worthless.
1377
1378 Gnus provides a few functions to attempt to translate a @file{.newsrc}
1379 file from one server to another.  They all have one thing in
1380 common---they take a looong time to run.  You don't want to use these
1381 functions more than absolutely necessary.
1382
1383 @kindex M-x gnus-change-server
1384 @findex gnus-change-server
1385 If you have access to both servers, Gnus can request the headers for all
1386 the articles you have read and compare @code{Message-ID}s and map the
1387 article numbers of the read articles and article marks.  The @kbd{M-x
1388 gnus-change-server} command will do this for all your native groups.  It
1389 will prompt for the method you want to move to.
1390
1391 @kindex M-x gnus-group-move-group-to-server
1392 @findex gnus-group-move-group-to-server
1393 You can also move individual groups with the @kbd{M-x
1394 gnus-group-move-group-to-server} command.  This is useful if you want to
1395 move a (foreign) group from one server to another.
1396
1397 @kindex M-x gnus-group-clear-data-on-native-groups
1398 @findex gnus-group-clear-data-on-native-groups
1399 If you don't have access to both the old and new server, all your marks
1400 and read ranges have become worthless.  You can use the @kbd{M-x
1401 gnus-group-clear-data-on-native-groups} command to clear out all data
1402 that you have on your native groups.  Use with caution.
1403
1404 @kindex M-x gnus-group-clear-data
1405 @findex gnus-group-clear-data
1406 Clear the data from the current group only---nix out marks and the
1407 list of read articles (@code{gnus-group-clear-data}).
1408
1409 After changing servers, you @strong{must} move the cache hierarchy away,
1410 since the cached articles will have wrong article numbers, which will
1411 affect which articles Gnus thinks are read.
1412 @code{gnus-group-clear-data-on-native-groups} will ask you if you want
1413 to have it done automatically; for @code{gnus-group-clear-data}, you
1414 can use @kbd{M-x gnus-cache-move-cache} (but beware, it will move the
1415 cache for all groups).
1416
1417
1418 @node Startup Files
1419 @section Startup Files
1420 @cindex startup files
1421 @cindex .newsrc
1422 @cindex .newsrc.el
1423 @cindex .newsrc.eld
1424
1425 Most common Unix news readers use a shared startup file called
1426 @file{.newsrc}.  This file contains all the information about what
1427 groups are subscribed, and which articles in these groups have been
1428 read.
1429
1430 Things got a bit more complicated with @sc{gnus}.  In addition to
1431 keeping the @file{.newsrc} file updated, it also used a file called
1432 @file{.newsrc.el} for storing all the information that didn't fit into
1433 the @file{.newsrc} file.  (Actually, it also duplicated everything in
1434 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
1435 files was the most recently saved, which enabled people to swap between
1436 @sc{gnus} and other newsreaders.
1437
1438 That was kinda silly, so Gnus went one better: In addition to the
1439 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
1440 @file{.newsrc.eld}.  It will read whichever of these files that are most
1441 recent, but it will never write a @file{.newsrc.el} file.  You should
1442 never delete the @file{.newsrc.eld} file---it contains much information
1443 not stored in the @file{.newsrc} file.
1444
1445 @vindex gnus-save-newsrc-file
1446 @vindex gnus-read-newsrc-file
1447 You can turn off writing the @file{.newsrc} file by setting
1448 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
1449 the file and save some space, as well as exiting from Gnus faster.
1450 However, this will make it impossible to use other newsreaders than
1451 Gnus.  But hey, who would want to, right?  Similarly, setting
1452 @code{gnus-read-newsrc-file} to @code{nil} makes Gnus ignore the
1453 @file{.newsrc} file and any @file{.newsrc-SERVER} files, which can be
1454 convenient if you use a different news reader occasionally, and you
1455 want to read a different subset of the available groups with that
1456 news reader.
1457
1458 @vindex gnus-save-killed-list
1459 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
1460 will not save the list of killed groups to the startup file.  This will
1461 save both time (when starting and quitting) and space (on disk).  It
1462 will also mean that Gnus has no record of what groups are new or old,
1463 so the automatic new groups subscription methods become meaningless.
1464 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
1465 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
1466 Groups}).  This variable can also be a regular expression.  If that's
1467 the case, remove all groups that do not match this regexp before
1468 saving.  This can be useful in certain obscure situations that involve
1469 several servers where not all servers support @code{ask-server}.
1470
1471 @vindex gnus-startup-file
1472 @vindex gnus-backup-startup-file
1473 @vindex version-control
1474 The @code{gnus-startup-file} variable says where the startup files are.
1475 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
1476 file being whatever that one is, with a @samp{.eld} appended.
1477 If you want version control for this file, set
1478 @code{gnus-backup-startup-file}.  It respects the same values as the
1479 @code{version-control} variable.
1480
1481 @vindex gnus-save-newsrc-hook
1482 @vindex gnus-save-quick-newsrc-hook
1483 @vindex gnus-save-standard-newsrc-hook
1484 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
1485 files, while @code{gnus-save-quick-newsrc-hook} is called just before
1486 saving the @file{.newsrc.eld} file, and
1487 @code{gnus-save-standard-newsrc-hook} is called just before saving the
1488 @file{.newsrc} file.  The latter two are commonly used to turn version
1489 control on or off.  Version control is on by default when saving the
1490 startup files.  If you want to turn backup creation off, say something like:
1491
1492 @lisp
1493 (defun turn-off-backup ()
1494   (set (make-local-variable 'backup-inhibited) t))
1495
1496 (add-hook 'gnus-save-quick-newsrc-hook 'turn-off-backup)
1497 (add-hook 'gnus-save-standard-newsrc-hook 'turn-off-backup)
1498 @end lisp
1499
1500 @vindex gnus-init-file
1501 @vindex gnus-site-init-file
1502 When Gnus starts, it will read the @code{gnus-site-init-file}
1503 (@file{.../site-lisp/gnus-init} by default) and @code{gnus-init-file}
1504 (@file{~/.gnus} by default) files.  These are normal Emacs Lisp files
1505 and can be used to avoid cluttering your @file{~/.emacs} and
1506 @file{site-init} files with Gnus stuff.  Gnus will also check for files
1507 with the same names as these, but with @file{.elc} and @file{.el}
1508 suffixes.  In other words, if you have set @code{gnus-init-file} to
1509 @file{~/.gnus}, it will look for @file{~/.gnus.elc}, @file{~/.gnus.el},
1510 and finally @file{~/.gnus} (in this order).  If Emacs was invoked with
1511 the @option{-q} or @option{--no-init-file} options (@pxref{Initial
1512 Options, ,Initial Options, emacs, The Emacs Manual}), Gnus doesn't read
1513 @code{gnus-init-file}.
1514
1515
1516 @node Auto Save
1517 @section Auto Save
1518 @cindex dribble file
1519 @cindex auto-save
1520
1521 Whenever you do something that changes the Gnus data (reading articles,
1522 catching up, killing/subscribing groups), the change is added to a
1523 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
1524 Emacs way.  If your Emacs should crash before you have saved the
1525 @file{.newsrc} files, all changes you have made can be recovered from
1526 this file.
1527
1528 If Gnus detects this file at startup, it will ask the user whether to
1529 read it.  The auto save file is deleted whenever the real startup file is
1530 saved.
1531
1532 @vindex gnus-use-dribble-file
1533 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1534 maintain a dribble buffer.  The default is @code{t}.
1535
1536 @vindex gnus-dribble-directory
1537 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
1538 this variable is @code{nil}, which it is by default, Gnus will dribble
1539 into the directory where the @file{.newsrc} file is located.  (This is
1540 normally the user's home directory.)  The dribble file will get the same
1541 file permissions as the @file{.newsrc} file.
1542
1543 @vindex gnus-always-read-dribble-file
1544 If @code{gnus-always-read-dribble-file} is non-@code{nil}, Gnus will
1545 read the dribble file on startup without querying the user.
1546
1547
1548 @node The Active File
1549 @section The Active File
1550 @cindex active file
1551 @cindex ignored groups
1552
1553 When Gnus starts, or indeed whenever it tries to determine whether new
1554 articles have arrived, it reads the active file.  This is a very large
1555 file that lists all the active groups and articles on the server.
1556
1557 @vindex gnus-ignored-newsgroups
1558 Before examining the active file, Gnus deletes all lines that match the
1559 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
1560 any groups with bogus names, but you can use this variable to make Gnus
1561 ignore hierarchies you aren't ever interested in.  However, this is not
1562 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
1563 Groups} for an overview of other variables that can be used instead.
1564
1565 @c This variable is
1566 @c @code{nil} by default, and will slow down active file handling somewhat
1567 @c if you set it to anything else.
1568
1569 @vindex gnus-read-active-file
1570 @c @head
1571 The active file can be rather Huge, so if you have a slow network, you
1572 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1573 reading the active file.  This variable is @code{some} by default.
1574
1575 Gnus will try to make do by getting information just on the groups that
1576 you actually subscribe to.
1577
1578 Note that if you subscribe to lots and lots of groups, setting this
1579 variable to @code{nil} will probably make Gnus slower, not faster.  At
1580 present, having this variable @code{nil} will slow Gnus down
1581 considerably, unless you read news over a 2400 baud modem.
1582
1583 This variable can also have the value @code{some}.  Gnus will then
1584 attempt to read active info only on the subscribed groups.  On some
1585 servers this is quite fast (on sparkling, brand new INN servers that
1586 support the @code{LIST ACTIVE group} command), on others this isn't fast
1587 at all.  In any case, @code{some} should be faster than @code{nil}, and
1588 is certainly faster than @code{t} over slow lines.
1589
1590 Some news servers (old versions of Leafnode and old versions of INN, for
1591 instance) do not support the @code{LIST ACTIVE group}.  For these
1592 servers, @code{nil} is probably the most efficient value for this
1593 variable.
1594
1595 If this variable is @code{nil}, Gnus will ask for group info in total
1596 lock-step, which isn't very fast.  If it is @code{some} and you use an
1597 @acronym{NNTP} server, Gnus will pump out commands as fast as it can, and
1598 read all the replies in one swoop.  This will normally result in better
1599 performance, but if the server does not support the aforementioned
1600 @code{LIST ACTIVE group} command, this isn't very nice to the server.
1601
1602 If you think that starting up Gnus takes too long, try all the three
1603 different values for this variable and see what works best for you.
1604
1605 In any case, if you use @code{some} or @code{nil}, you should definitely
1606 kill all groups that you aren't interested in to speed things up.
1607
1608 Note that this variable also affects active file retrieval from
1609 secondary select methods.
1610
1611
1612 @node Startup Variables
1613 @section Startup Variables
1614
1615 @table @code
1616
1617 @item gnus-load-hook
1618 @vindex gnus-load-hook
1619 A hook run while Gnus is being loaded.  Note that this hook will
1620 normally be run just once in each Emacs session, no matter how many
1621 times you start Gnus.
1622
1623 @item gnus-before-startup-hook
1624 @vindex gnus-before-startup-hook
1625 A hook run after starting up Gnus successfully.
1626
1627 @item gnus-startup-hook
1628 @vindex gnus-startup-hook
1629 A hook run as the very last thing after starting up Gnus
1630
1631 @item gnus-started-hook
1632 @vindex gnus-started-hook
1633 A hook that is run as the very last thing after starting up Gnus
1634 successfully.
1635
1636 @item gnus-setup-news-hook
1637 @vindex gnus-setup-news-hook
1638 A hook that is run after reading the @file{.newsrc} file(s), but before
1639 generating the group buffer.
1640
1641 @item gnus-check-bogus-newsgroups
1642 @vindex gnus-check-bogus-newsgroups
1643 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1644 startup.  A @dfn{bogus group} is a group that you have in your
1645 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
1646 bogus groups can take quite a while, so to save time and resources it's
1647 best to leave this option off, and do the checking for bogus groups once
1648 in a while from the group buffer instead (@pxref{Group Maintenance}).
1649
1650 @item gnus-inhibit-startup-message
1651 @vindex gnus-inhibit-startup-message
1652 If non-@code{nil}, the startup message won't be displayed.  That way,
1653 your boss might not notice as easily that you are reading news instead
1654 of doing your job.  Note that this variable is used before
1655 @file{~/.gnus.el} is loaded, so it should be set in @file{.emacs} instead.
1656
1657 @item gnus-no-groups-message
1658 @vindex gnus-no-groups-message
1659 Message displayed by Gnus when no groups are available.
1660
1661 @item gnus-play-startup-jingle
1662 @vindex gnus-play-startup-jingle
1663 If non-@code{nil}, play the Gnus jingle at startup.
1664
1665 @item gnus-startup-jingle
1666 @vindex gnus-startup-jingle
1667 Jingle to be played if the above variable is non-@code{nil}.  The
1668 default is @samp{Tuxedomoon.Jingle4.au}.
1669
1670 @end table
1671
1672
1673 @node Group Buffer
1674 @chapter Group Buffer
1675 @cindex group buffer
1676
1677 @c Alex Schroeder suggests to rearrange this as follows:
1678 @c
1679 @c <kensanata> ok, just save it for reference.  I'll go to bed in a minute.
1680 @c   1. Selecting a Group, 2. (new) Finding a Group, 3. Group Levels,
1681 @c   4. Subscription Commands, 5. Group Maneuvering, 6. Group Data,
1682 @c   7. Group Score, 8. Group Buffer Format
1683 @c <kensanata> Group Levels should have more information on levels 5 to 9.  I
1684 @c   suggest to split the 4th paragraph ("Gnus considers groups...") as follows:
1685 @c <kensanata> First, "Gnus considers groups... (default 9)."
1686 @c <kensanata> New, a table summarizing what levels 1 to 9 mean.
1687 @c <kensanata> Third, "Gnus treats subscribed ... reasons of efficiency"
1688 @c <kensanata> Then expand the next paragraph or add some more to it.
1689 @c    This short one sentence explains levels 1 and 2, therefore I understand
1690 @c    that I should keep important news at 3 and boring news at 4.
1691 @c    Say so!  Then go on to explain why I should bother with levels 6 to 9.
1692 @c    Maybe keep those that you don't want to read temporarily at 6,
1693 @c    those that you never want to read at 8, those that offend your
1694 @c    human rights at 9...
1695
1696
1697 The @dfn{group buffer} lists all (or parts) of the available groups.  It
1698 is the first buffer shown when Gnus starts, and will never be killed as
1699 long as Gnus is active.
1700
1701 @iftex
1702 @iflatex
1703 \gnusfigure{The Group Buffer}{320}{
1704 \put(75,50){\epsfig{figure=ps/group,height=9cm}}
1705 \put(120,37){\makebox(0,0)[t]{Buffer name}}
1706 \put(120,38){\vector(1,2){10}}
1707 \put(40,60){\makebox(0,0)[r]{Mode line}}
1708 \put(40,58){\vector(1,0){30}}
1709 \put(200,28){\makebox(0,0)[t]{Native select method}}
1710 \put(200,26){\vector(-1,2){15}}
1711 }
1712 @end iflatex
1713 @end iftex
1714
1715 @menu
1716 * Group Buffer Format::         Information listed and how you can change it.
1717 * Group Maneuvering::           Commands for moving in the group buffer.
1718 * Selecting a Group::           Actually reading news.
1719 * Subscription Commands::       Unsubscribing, killing, subscribing.
1720 * Group Data::                  Changing the info for a group.
1721 * Group Levels::                Levels? What are those, then?
1722 * Group Score::                 A mechanism for finding out what groups you like.
1723 * Marking Groups::              You can mark groups for later processing.
1724 * Foreign Groups::              Creating and editing groups.
1725 * Group Parameters::            Each group may have different parameters set.
1726 * Listing Groups::              Gnus can list various subsets of the groups.
1727 * Sorting Groups::              Re-arrange the group order.
1728 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
1729 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
1730 * Exiting Gnus::                Stop reading news and get some work done.
1731 * Group Topics::                A folding group mode divided into topics.
1732 * Non-ASCII Group Names::       Accessing groups of non-English names.
1733 * Searching::                   Mail search engines.
1734 * Misc Group Stuff::            Other stuff that you can to do.
1735 @end menu
1736
1737
1738 @node Group Buffer Format
1739 @section Group Buffer Format
1740
1741 @menu
1742 * Group Line Specification::    Deciding how the group buffer is to look.
1743 * Group Mode Line Specification::  The group buffer mode line.
1744 * Group Highlighting::          Having nice colors in the group buffer.
1745 @end menu
1746
1747 You can customize the Group Mode tool bar, see @kbd{M-x
1748 customize-apropos RET gnus-group-tool-bar}.  This feature is only
1749 available in Emacs.
1750
1751 The tool bar icons are now (de)activated correctly depending on the
1752 cursor position.  Therefore, moving around in the Group Buffer is
1753 slower.  You can disable this via the variable
1754 @code{gnus-group-update-tool-bar}.  Its default value depends on your
1755 Emacs version.
1756
1757 @node Group Line Specification
1758 @subsection Group Line Specification
1759 @cindex group buffer format
1760
1761 The default format of the group buffer is nice and dull, but you can
1762 make it as exciting and ugly as you feel like.
1763
1764 Here's a couple of example group lines:
1765
1766 @example
1767      25: news.announce.newusers
1768  *    0: alt.fan.andrea-dworkin
1769 @end example
1770
1771 Quite simple, huh?
1772
1773 You can see that there are 25 unread articles in
1774 @samp{news.announce.newusers}.  There are no unread articles, but some
1775 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1776 asterisk at the beginning of the line?).
1777
1778 @vindex gnus-group-line-format
1779 You can change that format to whatever you want by fiddling with the
1780 @code{gnus-group-line-format} variable.  This variable works along the
1781 lines of a @code{format} specification, which is pretty much the same as
1782 a @code{printf} specifications, for those of you who use (feh!) C.
1783 @xref{Formatting Variables}.
1784
1785 @samp{%M%S%5y:%B%(%g%)\n} is the value that produced those lines above.
1786
1787 There should always be a colon on the line; the cursor always moves to
1788 the colon after performing an operation.  @xref{Positioning
1789 Point}.  Nothing else is required---not even the group name.  All
1790 displayed text is just window dressing, and is never examined by Gnus.
1791 Gnus stores all real information it needs using text properties.
1792
1793 (Note that if you make a really strange, wonderful, spreadsheet-like
1794 layout, everybody will believe you are hard at work with the accounting
1795 instead of wasting time reading news.)
1796
1797 Here's a list of all available format characters:
1798
1799 @table @samp
1800
1801 @item M
1802 An asterisk if the group only has marked articles.
1803
1804 @item S
1805 Whether the group is subscribed.
1806
1807 @item L
1808 Level of subscribedness.
1809
1810 @item N
1811 Number of unread articles.
1812
1813 @item I
1814 Number of dormant articles.
1815
1816 @item T
1817 Number of ticked articles.
1818
1819 @item R
1820 Number of read articles.
1821
1822 @item U
1823 Number of unseen articles.
1824
1825 @item t
1826 Estimated total number of articles.  (This is really @var{max-number}
1827 minus @var{min-number} plus 1.)
1828
1829 Gnus uses this estimation because the @acronym{NNTP} protocol provides
1830 efficient access to @var{max-number} and @var{min-number} but getting
1831 the true unread message count is not possible efficiently.  For
1832 hysterical raisins, even the mail back ends, where the true number of
1833 unread messages might be available efficiently, use the same limited
1834 interface.  To remove this restriction from Gnus means that the back
1835 end interface has to be changed, which is not an easy job.
1836
1837 The nnml backend (@pxref{Mail Spool}) has a feature called ``group
1838 compaction'' which circumvents this deficiency: the idea is to
1839 renumber all articles from 1, removing all gaps between numbers, hence
1840 getting a correct total count.  Other backends may support this in the
1841 future.  In order to keep your total article count relatively up to
1842 date, you might want to compact your groups (or even directly your
1843 server) from time to time. @xref{Misc Group Stuff}, @xref{Server Commands}.
1844
1845 @item y
1846 Number of unread, unticked, non-dormant articles.
1847
1848 @item i
1849 Number of ticked and dormant articles.
1850
1851 @item g
1852 Full group name.
1853
1854 @item G
1855 Group name.
1856
1857 @item C
1858 Group comment (@pxref{Group Parameters}) or group name if there is no
1859 comment element in the group parameters.
1860
1861 @item D
1862 Newsgroup description.  You need to read the group descriptions
1863 before these will appear, and to do that, you either have to set
1864 @code{gnus-read-active-file} or use the group buffer @kbd{M-d}
1865 command.
1866
1867 @item o
1868 @samp{m} if moderated.
1869
1870 @item O
1871 @samp{(m)} if moderated.
1872
1873 @item s
1874 Select method.
1875
1876 @item B
1877 If the summary buffer for the group is open or not.
1878
1879 @item n
1880 Select from where.
1881
1882 @item z
1883 A string that looks like @samp{<%s:%n>} if a foreign select method is
1884 used.
1885
1886 @item P
1887 Indentation based on the level of the topic (@pxref{Group Topics}).
1888
1889 @item c
1890 @vindex gnus-group-uncollapsed-levels
1891 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
1892 variable says how many levels to leave at the end of the group name.
1893 The default is 1---this will mean that group names like
1894 @samp{gnu.emacs.gnus} will be shortened to @samp{g.e.gnus}.
1895
1896 @item m
1897 @vindex gnus-new-mail-mark
1898 @cindex %
1899 @samp{%} (@code{gnus-new-mail-mark}) if there has arrived new mail to
1900 the group lately.
1901
1902 @item p
1903 @samp{#} (@code{gnus-process-mark}) if the group is process marked.
1904
1905 @item d
1906 A string that says when you last read the group (@pxref{Group
1907 Timestamp}).
1908
1909 @item F
1910 The disk space used by the articles fetched by both the cache and
1911 agent.  The value is automatically scaled to bytes(B), kilobytes(K),
1912 megabytes(M), or gigabytes(G) to minimize the column width.  A format
1913 of %7F is sufficient for a fixed-width column.
1914
1915 @item u
1916 User defined specifier.  The next character in the format string should
1917 be a letter.  Gnus will call the function
1918 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1919 following @samp{%u}.  The function will be passed a single dummy
1920 parameter as argument.  The function should return a string, which will
1921 be inserted into the buffer just like information from any other
1922 specifier.
1923 @end table
1924
1925 @cindex *
1926 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
1927 if no info is available---for instance, if it is a non-activated foreign
1928 group, or a bogus native group.
1929
1930
1931 @node Group Mode Line Specification
1932 @subsection Group Mode Line Specification
1933 @cindex group mode line
1934
1935 @vindex gnus-group-mode-line-format
1936 The mode line can be changed by setting
1937 @code{gnus-group-mode-line-format} (@pxref{Mode Line Formatting}).  It
1938 doesn't understand that many format specifiers:
1939
1940 @table @samp
1941 @item S
1942 The native news server.
1943 @item M
1944 The native select method.
1945 @end table
1946
1947
1948 @node Group Highlighting
1949 @subsection Group Highlighting
1950 @cindex highlighting
1951 @cindex group highlighting
1952
1953 @vindex gnus-group-highlight
1954 Highlighting in the group buffer is controlled by the
1955 @code{gnus-group-highlight} variable.  This is an alist with elements
1956 that look like @code{(@var{form} . @var{face})}.  If @var{form} evaluates to
1957 something non-@code{nil}, the @var{face} will be used on the line.
1958
1959 Here's an example value for this variable that might look nice if the
1960 background is dark:
1961
1962 @lisp
1963 (cond (window-system
1964        (setq custom-background-mode 'light)
1965        (defface my-group-face-1
1966          '((t (:foreground "Red" :bold t))) "First group face")
1967        (defface my-group-face-2
1968          '((t (:foreground "DarkSeaGreen4" :bold t)))
1969          "Second group face")
1970        (defface my-group-face-3
1971          '((t (:foreground "Green4" :bold t))) "Third group face")
1972        (defface my-group-face-4
1973          '((t (:foreground "SteelBlue" :bold t))) "Fourth group face")
1974        (defface my-group-face-5
1975          '((t (:foreground "Blue" :bold t))) "Fifth group face")))
1976
1977 (setq gnus-group-highlight
1978       '(((> unread 200) . my-group-face-1)
1979         ((and (< level 3) (zerop unread)) . my-group-face-2)
1980         ((< level 3) . my-group-face-3)
1981         ((zerop unread) . my-group-face-4)
1982         (t . my-group-face-5)))
1983 @end lisp
1984
1985 Also @pxref{Faces and Fonts}.
1986
1987 Variables that are dynamically bound when the forms are evaluated
1988 include:
1989
1990 @table @code
1991 @item group
1992 The group name.
1993 @item unread
1994 The number of unread articles in the group.
1995 @item method
1996 The select method.
1997 @item mailp
1998 Whether the group is a mail group.
1999 @item level
2000 The level of the group.
2001 @item score
2002 The score of the group.
2003 @item ticked
2004 The number of ticked articles in the group.
2005 @item total
2006 The total number of articles in the group.  Or rather,
2007 @var{max-number} minus @var{min-number} plus one.
2008 @item topic
2009 When using the topic minor mode, this variable is bound to the current
2010 topic being inserted.
2011 @end table
2012
2013 When the forms are @code{eval}ed, point is at the beginning of the line
2014 of the group in question, so you can use many of the normal Gnus
2015 functions for snarfing info on the group.
2016
2017 @vindex gnus-group-update-hook
2018 @findex gnus-group-highlight-line
2019 @code{gnus-group-update-hook} is called when a group line is changed.
2020 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
2021 calls @code{gnus-group-highlight-line} by default.
2022
2023
2024 @node Group Maneuvering
2025 @section Group Maneuvering
2026 @cindex group movement
2027
2028 All movement commands understand the numeric prefix and will behave as
2029 expected, hopefully.
2030
2031 @table @kbd
2032
2033 @item n
2034 @kindex n (Group)
2035 @findex gnus-group-next-unread-group
2036 Go to the next group that has unread articles
2037 (@code{gnus-group-next-unread-group}).
2038
2039 @item p
2040 @itemx DEL
2041 @kindex DEL (Group)
2042 @kindex p (Group)
2043 @findex gnus-group-prev-unread-group
2044 Go to the previous group that has unread articles
2045 (@code{gnus-group-prev-unread-group}).
2046
2047 @item N
2048 @kindex N (Group)
2049 @findex gnus-group-next-group
2050 Go to the next group (@code{gnus-group-next-group}).
2051
2052 @item P
2053 @kindex P (Group)
2054 @findex gnus-group-prev-group
2055 Go to the previous group (@code{gnus-group-prev-group}).
2056
2057 @item M-n
2058 @kindex M-n (Group)
2059 @findex gnus-group-next-unread-group-same-level
2060 Go to the next unread group on the same (or lower) level
2061 (@code{gnus-group-next-unread-group-same-level}).
2062
2063 @item M-p
2064 @kindex M-p (Group)
2065 @findex gnus-group-prev-unread-group-same-level
2066 Go to the previous unread group on the same (or lower) level
2067 (@code{gnus-group-prev-unread-group-same-level}).
2068 @end table
2069
2070 Three commands for jumping to groups:
2071
2072 @table @kbd
2073
2074 @item j
2075 @kindex j (Group)
2076 @findex gnus-group-jump-to-group
2077 Jump to a group (and make it visible if it isn't already)
2078 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
2079 like living groups.
2080
2081 @item ,
2082 @kindex , (Group)
2083 @findex gnus-group-best-unread-group
2084 Jump to the unread group with the lowest level
2085 (@code{gnus-group-best-unread-group}).
2086
2087 @item .
2088 @kindex . (Group)
2089 @findex gnus-group-first-unread-group
2090 Jump to the first group with unread articles
2091 (@code{gnus-group-first-unread-group}).
2092 @end table
2093
2094 @vindex gnus-group-goto-unread
2095 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
2096 commands will move to the next group, not the next unread group.  Even
2097 the commands that say they move to the next unread group.  The default
2098 is @code{t}.
2099
2100 @vindex gnus-summary-next-group-on-exit
2101 If @code{gnus-summary-next-group-on-exit} is @code{t}, when a summary is
2102 exited, the point in the group buffer is moved to the next unread group.
2103 Otherwise, the point is set to the group just exited.  The default is
2104 @code{t}.
2105
2106 @node Selecting a Group
2107 @section Selecting a Group
2108 @cindex group selection
2109
2110 @table @kbd
2111
2112 @item SPACE
2113 @kindex SPACE (Group)
2114 @findex gnus-group-read-group
2115 Select the current group, switch to the summary buffer and display the
2116 first unread article (@code{gnus-group-read-group}).  If there are no
2117 unread articles in the group, or if you give a non-numerical prefix to
2118 this command, Gnus will offer to fetch all the old articles in this
2119 group from the server.  If you give a numerical prefix @var{n}, @var{n}
2120 determines the number of articles Gnus will fetch.  If @var{n} is
2121 positive, Gnus fetches the @var{n} newest articles, if @var{n} is
2122 negative, Gnus fetches the @code{abs(@var{n})} oldest articles.
2123
2124 Thus, @kbd{SPC} enters the group normally, @kbd{C-u SPC} offers old
2125 articles, @kbd{C-u 4 2 SPC} fetches the 42 newest articles, and @kbd{C-u
2126 - 4 2 SPC} fetches the 42 oldest ones.
2127
2128 When you are in the group (in the Summary buffer), you can type
2129 @kbd{M-g} to fetch new articles, or @kbd{C-u M-g} to also show the old
2130 ones.
2131
2132 @item RET
2133 @kindex RET (Group)
2134 @findex gnus-group-select-group
2135 Select the current group and switch to the summary buffer
2136 (@code{gnus-group-select-group}).  Takes the same arguments as
2137 @code{gnus-group-read-group}---the only difference is that this command
2138 does not display the first unread article automatically upon group
2139 entry.
2140
2141 @item M-RET
2142 @kindex M-RET (Group)
2143 @findex gnus-group-quick-select-group
2144 This does the same as the command above, but tries to do it with the
2145 minimum amount of fuzz (@code{gnus-group-quick-select-group}).  No
2146 scoring/killing will be performed, there will be no highlights and no
2147 expunging.  This might be useful if you're in a real hurry and have to
2148 enter some humongous group.  If you give a 0 prefix to this command
2149 (i.e., @kbd{0 M-RET}), Gnus won't even generate the summary buffer,
2150 which is useful if you want to toggle threading before generating the
2151 summary buffer (@pxref{Summary Generation Commands}).
2152
2153 @item M-SPACE
2154 @kindex M-SPACE (Group)
2155 @findex gnus-group-visible-select-group
2156 This is yet one more command that does the same as the @kbd{RET}
2157 command, but this one does it without expunging and hiding dormants
2158 (@code{gnus-group-visible-select-group}).
2159
2160 @item C-M-RET
2161 @kindex C-M-RET (Group)
2162 @findex gnus-group-select-group-ephemerally
2163 Finally, this command selects the current group ephemerally without
2164 doing any processing of its contents
2165 (@code{gnus-group-select-group-ephemerally}).  Even threading has been
2166 turned off.  Everything you do in the group after selecting it in this
2167 manner will have no permanent effects.
2168
2169 @end table
2170
2171 @vindex gnus-large-newsgroup
2172 The @code{gnus-large-newsgroup} variable says what Gnus should
2173 consider to be a big group.  If it is @code{nil}, no groups are
2174 considered big.  The default value is 200.  If the group has more
2175 (unread and/or ticked) articles than this, Gnus will query the user
2176 before entering the group.  The user can then specify how many
2177 articles should be fetched from the server.  If the user specifies a
2178 negative number (@var{-n}), the @var{n} oldest articles will be
2179 fetched.  If it is positive, the @var{n} articles that have arrived
2180 most recently will be fetched.
2181
2182 @vindex gnus-large-ephemeral-newsgroup
2183 @code{gnus-large-ephemeral-newsgroup} is the same as
2184 @code{gnus-large-newsgroup}, but is only used for ephemeral
2185 newsgroups.
2186
2187 @vindex gnus-newsgroup-maximum-articles
2188 In groups in some news servers, there might be a big gap between a few
2189 very old articles that will never be expired and the recent ones.  In
2190 such a case, the server will return the data like @code{(1 . 30000000)}
2191 for the @code{LIST ACTIVE group} command, for example.  Even if there
2192 are actually only the articles 1-10 and 29999900-30000000, Gnus doesn't
2193 know it at first and prepares for getting 30000000 articles.  However,
2194 it will consume hundreds megabytes of memories and might make Emacs get
2195 stuck as the case may be.  If you use such news servers, set the
2196 variable @code{gnus-newsgroup-maximum-articles} to a positive number.
2197 The value means that Gnus ignores articles other than this number of the
2198 latest ones in every group.  For instance, the value 10000 makes Gnus
2199 get only the articles 29990001-30000000 (if the latest article number is
2200 30000000 in a group).  Note that setting this variable to a number might
2201 prevent you from reading very old articles.  The default value of the
2202 variable @code{gnus-newsgroup-maximum-articles} is @code{nil}, which
2203 means Gnus never ignores old articles.
2204
2205 @vindex gnus-select-group-hook
2206 @vindex gnus-auto-select-first
2207 @vindex gnus-auto-select-subject
2208 If @code{gnus-auto-select-first} is non-@code{nil}, select an article
2209 automatically when entering a group with the @kbd{SPACE} command.
2210 Which article this is is controlled by the
2211 @code{gnus-auto-select-subject} variable.  Valid values for this
2212 variable are:
2213
2214 @table @code
2215
2216 @item unread
2217 Place point on the subject line of the first unread article.
2218
2219 @item first
2220 Place point on the subject line of the first article.
2221
2222 @item unseen
2223 Place point on the subject line of the first unseen article.
2224
2225 @item unseen-or-unread
2226 Place point on the subject line of the first unseen article, and if
2227 there is no such article, place point on the subject line of the first
2228 unread article.
2229
2230 @item best
2231 Place point on the subject line of the highest-scored unread article.
2232
2233 @end table
2234
2235 This variable can also be a function.  In that case, that function
2236 will be called to place point on a subject line.
2237
2238 If you want to prevent automatic selection in some group (say, in a
2239 binary group with Huge articles) you can set the
2240 @code{gnus-auto-select-first} variable to @code{nil} in
2241 @code{gnus-select-group-hook}, which is called when a group is
2242 selected.
2243
2244
2245 @node Subscription Commands
2246 @section Subscription Commands
2247 @cindex subscription
2248
2249 @table @kbd
2250
2251 @item S t
2252 @itemx u
2253 @kindex S t (Group)
2254 @kindex u (Group)
2255 @findex gnus-group-unsubscribe-current-group
2256 @c @icon{gnus-group-unsubscribe}
2257 Toggle subscription to the current group
2258 (@code{gnus-group-unsubscribe-current-group}).
2259
2260 @item S s
2261 @itemx U
2262 @kindex S s (Group)
2263 @kindex U (Group)
2264 @findex gnus-group-unsubscribe-group
2265 Prompt for a group to subscribe, and then subscribe it.  If it was
2266 subscribed already, unsubscribe it instead
2267 (@code{gnus-group-unsubscribe-group}).
2268
2269 @item S k
2270 @itemx C-k
2271 @kindex S k (Group)
2272 @kindex C-k (Group)
2273 @findex gnus-group-kill-group
2274 @c @icon{gnus-group-kill-group}
2275 Kill the current group (@code{gnus-group-kill-group}).
2276
2277 @item S y
2278 @itemx C-y
2279 @kindex S y (Group)
2280 @kindex C-y (Group)
2281 @findex gnus-group-yank-group
2282 Yank the last killed group (@code{gnus-group-yank-group}).
2283
2284 @item C-x C-t
2285 @kindex C-x C-t (Group)
2286 @findex gnus-group-transpose-groups
2287 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
2288 really a subscription command, but you can use it instead of a
2289 kill-and-yank sequence sometimes.
2290
2291 @item S w
2292 @itemx C-w
2293 @kindex S w (Group)
2294 @kindex C-w (Group)
2295 @findex gnus-group-kill-region
2296 Kill all groups in the region (@code{gnus-group-kill-region}).
2297
2298 @item S z
2299 @kindex S z (Group)
2300 @findex gnus-group-kill-all-zombies
2301 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
2302
2303 @item S C-k
2304 @kindex S C-k (Group)
2305 @findex gnus-group-kill-level
2306 Kill all groups on a certain level (@code{gnus-group-kill-level}).
2307 These groups can't be yanked back after killing, so this command should
2308 be used with some caution.  The only time where this command comes in
2309 really handy is when you have a @file{.newsrc} with lots of unsubscribed
2310 groups that you want to get rid off.  @kbd{S C-k} on level 7 will
2311 kill off all unsubscribed groups that do not have message numbers in the
2312 @file{.newsrc} file.
2313
2314 @end table
2315
2316 Also @pxref{Group Levels}.
2317
2318
2319 @node Group Data
2320 @section Group Data
2321
2322 @table @kbd
2323
2324 @item c
2325 @kindex c (Group)
2326 @findex gnus-group-catchup-current
2327 @vindex gnus-group-catchup-group-hook
2328 @c @icon{gnus-group-catchup-current}
2329 Mark all unticked articles in this group as read
2330 (@code{gnus-group-catchup-current}).
2331 @code{gnus-group-catchup-group-hook} is called when catching up a group from
2332 the group buffer.
2333
2334 @item C
2335 @kindex C (Group)
2336 @findex gnus-group-catchup-current-all
2337 Mark all articles in this group, even the ticked ones, as read
2338 (@code{gnus-group-catchup-current-all}).
2339
2340 @item M-c
2341 @kindex M-c (Group)
2342 @findex gnus-group-clear-data
2343 Clear the data from the current group---nix out marks and the list of
2344 read articles (@code{gnus-group-clear-data}).
2345
2346 @item M-x gnus-group-clear-data-on-native-groups
2347 @kindex M-x gnus-group-clear-data-on-native-groups
2348 @findex gnus-group-clear-data-on-native-groups
2349 If you have switched from one @acronym{NNTP} server to another, all your marks
2350 and read ranges have become worthless.  You can use this command to
2351 clear out all data that you have on your native groups.  Use with
2352 caution.
2353
2354 @end table
2355
2356
2357 @node Group Levels
2358 @section Group Levels
2359 @cindex group level
2360 @cindex level
2361
2362 All groups have a level of @dfn{subscribedness}.  For instance, if a
2363 group is on level 2, it is more subscribed than a group on level 5.  You
2364 can ask Gnus to just list groups on a given level or lower
2365 (@pxref{Listing Groups}), or to just check for new articles in groups on
2366 a given level or lower (@pxref{Scanning New Messages}).
2367
2368 Remember:  The higher the level of the group, the less important it is.
2369
2370 @table @kbd
2371
2372 @item S l
2373 @kindex S l (Group)
2374 @findex gnus-group-set-current-level
2375 Set the level of the current group.  If a numeric prefix is given, the
2376 next @var{n} groups will have their levels set.  The user will be
2377 prompted for a level.
2378 @end table
2379
2380 @vindex gnus-level-killed
2381 @vindex gnus-level-zombie
2382 @vindex gnus-level-unsubscribed
2383 @vindex gnus-level-subscribed
2384 Gnus considers groups from levels 1 to
2385 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
2386 @code{gnus-level-subscribed} (exclusive) and
2387 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
2388 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
2389 (default 8) and @code{gnus-level-killed} to be killed (completely dead)
2390 (default 9).  Gnus treats subscribed and unsubscribed groups exactly the
2391 same, but zombie and killed groups have no information on what articles
2392 you have read, etc, stored.  This distinction between dead and living
2393 groups isn't done because it is nice or clever, it is done purely for
2394 reasons of efficiency.
2395
2396 It is recommended that you keep all your mail groups (if any) on quite
2397 low levels (e.g. 1 or 2).
2398
2399 Maybe the following description of the default behavior of Gnus helps to
2400 understand what these levels are all about.  By default, Gnus shows you
2401 subscribed nonempty groups, but by hitting @kbd{L} you can have it show
2402 empty subscribed groups and unsubscribed groups, too.  Type @kbd{l} to
2403 go back to showing nonempty subscribed groups again.  Thus, unsubscribed
2404 groups are hidden, in a way.
2405
2406 Zombie and killed groups are similar to unsubscribed groups in that they
2407 are hidden by default.  But they are different from subscribed and
2408 unsubscribed groups in that Gnus doesn't ask the news server for
2409 information (number of messages, number of unread messages) on zombie
2410 and killed groups.  Normally, you use @kbd{C-k} to kill the groups you
2411 aren't interested in.  If most groups are killed, Gnus is faster.
2412
2413 Why does Gnus distinguish between zombie and killed groups?  Well, when
2414 a new group arrives on the server, Gnus by default makes it a zombie
2415 group.  This means that you are normally not bothered with new groups,
2416 but you can type @kbd{A z} to get a list of all new groups.  Subscribe
2417 the ones you like and kill the ones you don't want.  (@kbd{A k} shows a
2418 list of killed groups.)
2419
2420 If you want to play with the level variables, you should show some care.
2421 Set them once, and don't touch them ever again.  Better yet, don't touch
2422 them at all unless you know exactly what you're doing.
2423
2424 @vindex gnus-level-default-unsubscribed
2425 @vindex gnus-level-default-subscribed
2426 Two closely related variables are @code{gnus-level-default-subscribed}
2427 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
2428 which are the levels that new groups will be put on if they are
2429 (un)subscribed.  These two variables should, of course, be inside the
2430 relevant valid ranges.
2431
2432 @vindex gnus-keep-same-level
2433 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
2434 will only move to groups of the same level (or lower).  In
2435 particular, going from the last article in one group to the next group
2436 will go to the next group of the same level (or lower).  This might be
2437 handy if you want to read the most important groups before you read the
2438 rest.
2439
2440 If this variable is @code{best}, Gnus will make the next newsgroup the
2441 one with the best level.
2442
2443 @vindex gnus-group-default-list-level
2444 All groups with a level less than or equal to
2445 @code{gnus-group-default-list-level} will be listed in the group buffer
2446 by default.
2447
2448 @vindex gnus-group-list-inactive-groups
2449 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
2450 groups will be listed along with the unread groups.  This variable is
2451 @code{t} by default.  If it is @code{nil}, inactive groups won't be
2452 listed.
2453
2454 @vindex gnus-group-use-permanent-levels
2455 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
2456 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
2457 use this level as the ``work'' level.
2458
2459 @vindex gnus-activate-level
2460 Gnus will normally just activate (i. e., query the server about) groups
2461 on level @code{gnus-activate-level} or less.  If you don't want to
2462 activate unsubscribed groups, for instance, you might set this variable
2463 to 5.  The default is 6.
2464
2465
2466 @node Group Score
2467 @section Group Score
2468 @cindex group score
2469 @cindex group rank
2470 @cindex rank
2471
2472 You would normally keep important groups on high levels, but that scheme
2473 is somewhat restrictive.  Don't you wish you could have Gnus sort the
2474 group buffer according to how often you read groups, perhaps?  Within
2475 reason?
2476
2477 This is what @dfn{group score} is for.  You can have Gnus assign a score
2478 to each group through the mechanism described below.  You can then sort
2479 the group buffer based on this score.  Alternatively, you can sort on
2480 score and then level.  (Taken together, the level and the score is
2481 called the @dfn{rank} of the group.  A group that is on level 4 and has
2482 a score of 1 has a higher rank than a group on level 5 that has a score
2483 of 300.  (The level is the most significant part and the score is the
2484 least significant part.))
2485
2486 @findex gnus-summary-bubble-group
2487 If you want groups you read often to get higher scores than groups you
2488 read seldom you can add the @code{gnus-summary-bubble-group} function to
2489 the @code{gnus-summary-exit-hook} hook.  This will result (after
2490 sorting) in a bubbling sort of action.  If you want to see that in
2491 action after each summary exit, you can add
2492 @code{gnus-group-sort-groups-by-rank} or
2493 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
2494 slow things down somewhat.
2495
2496
2497 @node Marking Groups
2498 @section Marking Groups
2499 @cindex marking groups
2500
2501 If you want to perform some command on several groups, and they appear
2502 subsequently in the group buffer, you would normally just give a
2503 numerical prefix to the command.  Most group commands will then do your
2504 bidding on those groups.
2505
2506 However, if the groups are not in sequential order, you can still
2507 perform a command on several groups.  You simply mark the groups first
2508 with the process mark and then execute the command.
2509
2510 @table @kbd
2511
2512 @item #
2513 @kindex # (Group)
2514 @itemx M m
2515 @kindex M m (Group)
2516 @findex gnus-group-mark-group
2517 Set the mark on the current group (@code{gnus-group-mark-group}).
2518
2519 @item M-#
2520 @kindex M-# (Group)
2521 @itemx M u
2522 @kindex M u (Group)
2523 @findex gnus-group-unmark-group
2524 Remove the mark from the current group
2525 (@code{gnus-group-unmark-group}).
2526
2527 @item M U
2528 @kindex M U (Group)
2529 @findex gnus-group-unmark-all-groups
2530 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}).
2531
2532 @item M w
2533 @kindex M w (Group)
2534 @findex gnus-group-mark-region
2535 Mark all groups between point and mark (@code{gnus-group-mark-region}).
2536
2537 @item M b
2538 @kindex M b (Group)
2539 @findex gnus-group-mark-buffer
2540 Mark all groups in the buffer (@code{gnus-group-mark-buffer}).
2541
2542 @item M r
2543 @kindex M r (Group)
2544 @findex gnus-group-mark-regexp
2545 Mark all groups that match some regular expression
2546 (@code{gnus-group-mark-regexp}).
2547 @end table
2548
2549 Also @pxref{Process/Prefix}.
2550
2551 @findex gnus-group-universal-argument
2552 If you want to execute some command on all groups that have been marked
2553 with the process mark, you can use the @kbd{M-&}
2554 (@code{gnus-group-universal-argument}) command.  It will prompt you for
2555 the command to be executed.
2556
2557
2558 @node Foreign Groups
2559 @section Foreign Groups
2560 @cindex foreign groups
2561
2562 Below are some group mode commands for making and editing general foreign
2563 groups, as well as commands to ease the creation of a few
2564 special-purpose groups.  All these commands insert the newly created
2565 groups under point---@code{gnus-subscribe-newsgroup-method} is not
2566 consulted.
2567
2568 Changes from the group editing commands are stored in
2569 @file{~/.newsrc.eld} (@code{gnus-startup-file}).  An alternative is the
2570 variable @code{gnus-parameters}, @xref{Group Parameters}.
2571
2572 @table @kbd
2573
2574 @item G m
2575 @kindex G m (Group)
2576 @findex gnus-group-make-group
2577 @cindex making groups
2578 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
2579 for a name, a method and possibly an @dfn{address}.  For an easier way
2580 to subscribe to @acronym{NNTP} groups (@pxref{Browse Foreign Server}).
2581
2582 @item G M
2583 @kindex G M (Group)
2584 @findex gnus-group-read-ephemeral-group
2585 Make an ephemeral group (@code{gnus-group-read-ephemeral-group}).  Gnus
2586 will prompt you for a name, a method and an @dfn{address}.
2587
2588 @item G r
2589 @kindex G r (Group)
2590 @findex gnus-group-rename-group
2591 @cindex renaming groups
2592 Rename the current group to something else
2593 (@code{gnus-group-rename-group}).  This is valid only on some
2594 groups---mail groups mostly.  This command might very well be quite slow
2595 on some back ends.
2596
2597 @item G c
2598 @kindex G c (Group)
2599 @cindex customizing
2600 @findex gnus-group-customize
2601 Customize the group parameters (@code{gnus-group-customize}).
2602
2603 @item G e
2604 @kindex G e (Group)
2605 @findex gnus-group-edit-group-method
2606 @cindex renaming groups
2607 Enter a buffer where you can edit the select method of the current
2608 group (@code{gnus-group-edit-group-method}).
2609
2610 @item G p
2611 @kindex G p (Group)
2612 @findex gnus-group-edit-group-parameters
2613 Enter a buffer where you can edit the group parameters
2614 (@code{gnus-group-edit-group-parameters}).
2615
2616 @item G E
2617 @kindex G E (Group)
2618 @findex gnus-group-edit-group
2619 Enter a buffer where you can edit the group info
2620 (@code{gnus-group-edit-group}).
2621
2622 @item G d
2623 @kindex G d (Group)
2624 @findex gnus-group-make-directory-group
2625 @cindex nndir
2626 Make a directory group (@pxref{Directory Groups}).  You will be prompted
2627 for a directory name (@code{gnus-group-make-directory-group}).
2628
2629 @item G h
2630 @kindex G h (Group)
2631 @cindex help group
2632 @findex gnus-group-make-help-group
2633 Make the Gnus help group (@code{gnus-group-make-help-group}).
2634
2635 @item G a
2636 @kindex G a (Group)
2637 @cindex (ding) archive
2638 @cindex archive group
2639 @findex gnus-group-make-archive-group
2640 @vindex gnus-group-archive-directory
2641 @vindex gnus-group-recent-archive-directory
2642 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
2643 default a group pointing to the most recent articles will be created
2644 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
2645 group will be created from @code{gnus-group-archive-directory}.
2646
2647 @item G k
2648 @kindex G k (Group)
2649 @findex gnus-group-make-kiboze-group
2650 @cindex nnkiboze
2651 Make a kiboze group.  You will be prompted for a name, for a regexp to
2652 match groups to be ``included'' in the kiboze group, and a series of
2653 strings to match on headers (@code{gnus-group-make-kiboze-group}).
2654 @xref{Kibozed Groups}.
2655
2656 @item G D
2657 @kindex G D (Group)
2658 @findex gnus-group-enter-directory
2659 @cindex nneething
2660 Read an arbitrary directory as if it were a newsgroup with the
2661 @code{nneething} back end (@code{gnus-group-enter-directory}).
2662 @xref{Anything Groups}.
2663
2664 @item G f
2665 @kindex G f (Group)
2666 @findex gnus-group-make-doc-group
2667 @cindex ClariNet Briefs
2668 @cindex nndoc
2669 Make a group based on some file or other
2670 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
2671 command, you will be prompted for a file name and a file type.
2672 Currently supported types are @code{mbox}, @code{babyl},
2673 @code{digest}, @code{news}, @code{rnews}, @code{mmdf}, @code{forward},
2674 @code{rfc934}, @code{rfc822-forward}, @code{mime-parts},
2675 @code{standard-digest}, @code{slack-digest}, @code{clari-briefs},
2676 @code{nsmail}, @code{outlook}, @code{oe-dbx}, and @code{mailman}.  If
2677 you run this command without a prefix, Gnus will guess at the file
2678 type.  @xref{Document Groups}.
2679
2680 @item G u
2681 @kindex G u (Group)
2682 @vindex gnus-useful-groups
2683 @findex gnus-group-make-useful-group
2684 Create one of the groups mentioned in @code{gnus-useful-groups}
2685 (@code{gnus-group-make-useful-group}).
2686
2687 @item G w
2688 @kindex G w (Group)
2689 @findex gnus-group-make-web-group
2690 @cindex Google
2691 @cindex nnweb
2692 @cindex gmane
2693 Make an ephemeral group based on a web search
2694 (@code{gnus-group-make-web-group}).  If you give a prefix to this
2695 command, make a solid group instead.  You will be prompted for the
2696 search engine type and the search string.  Valid search engine types
2697 include @code{google}, @code{dejanews}, and @code{gmane}.
2698 @xref{Web Searches}.
2699
2700 If you use the @code{google} search engine, you can limit the search
2701 to a particular group by using a match string like
2702 @samp{shaving group:alt.sysadmin.recovery}.
2703
2704 @item G R
2705 @kindex G R (Group)
2706 @findex gnus-group-make-rss-group
2707 Make a group based on an @acronym{RSS} feed
2708 (@code{gnus-group-make-rss-group}).  You will be prompted for an URL.
2709 @xref{RSS}.
2710
2711 @item G DEL
2712 @kindex G DEL (Group)
2713 @findex gnus-group-delete-group
2714 This function will delete the current group
2715 (@code{gnus-group-delete-group}).  If given a prefix, this function will
2716 actually delete all the articles in the group, and forcibly remove the
2717 group itself from the face of the Earth.  Use a prefix only if you are
2718 absolutely sure of what you are doing.  This command can't be used on
2719 read-only groups (like @code{nntp} groups), though.
2720
2721 @item G V
2722 @kindex G V (Group)
2723 @findex gnus-group-make-empty-virtual
2724 Make a new, fresh, empty @code{nnvirtual} group
2725 (@code{gnus-group-make-empty-virtual}).  @xref{Virtual Groups}.
2726
2727 @item G v
2728 @kindex G v (Group)
2729 @findex gnus-group-add-to-virtual
2730 Add the current group to an @code{nnvirtual} group
2731 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
2732 @end table
2733
2734 @xref{Select Methods}, for more information on the various select
2735 methods.
2736
2737 @vindex gnus-activate-foreign-newsgroups
2738 If @code{gnus-activate-foreign-newsgroups} is a positive number,
2739 Gnus will check all foreign groups with this level or lower at startup.
2740 This might take quite a while, especially if you subscribe to lots of
2741 groups from different @acronym{NNTP} servers.  Also @pxref{Group Levels};
2742 @code{gnus-activate-level} also affects activation of foreign
2743 newsgroups.
2744
2745
2746 The following commands create ephemeral groups.  They can be called not
2747 only from the Group buffer, but in any Gnus buffer.
2748
2749 @table @code
2750 @item gnus-read-ephemeral-gmane-group
2751 @findex gnus-read-ephemeral-gmane-group
2752 @vindex gnus-gmane-group-download-format
2753 Read an ephemeral group on Gmane.org.  The articles are downloaded via
2754 HTTP using the URL specified by @code{gnus-gmane-group-download-format}.
2755 Gnus will prompt you for a group name, the start article number and an
2756 the article range.
2757
2758 @item gnus-read-ephemeral-gmane-group-url
2759 @findex gnus-read-ephemeral-gmane-group-url
2760 This command is similar to @code{gnus-read-ephemeral-gmane-group}, but
2761 the group name and the article number and range are constructed from a
2762 given @acronym{URL}.  Supported @acronym{URL} formats include e.g.
2763 @url{http://thread.gmane.org/gmane.foo.bar/12300/focus=12399},
2764 @url{http://thread.gmane.org/gmane.foo.bar/12345/},
2765 @url{http://article.gmane.org/gmane.foo.bar/12345/},
2766 @url{http://permalink.gmane.org/gmane.foo.bar/12345/}, and
2767 @url{http://news.gmane.org/group/gmane.foo.bar/thread=12345}.
2768
2769 @item gnus-read-ephemeral-emacs-bug-group
2770 @findex gnus-read-ephemeral-emacs-bug-group
2771 Read an Emacs bug report in an ephemeral group.  Gnus will prompt for a
2772 bug number.  The default is the number at point.  The @acronym{URL} is
2773 specified in @code{gnus-bug-group-download-format-alist}.
2774
2775 @item gnus-read-ephemeral-debian-bug-group
2776 @findex gnus-read-ephemeral-debian-bug-group
2777 Read a Debian bug report in an ephemeral group.  Analog to
2778 @code{gnus-read-ephemeral-emacs-bug-group}.
2779 @end table
2780
2781 Some of these command are also useful for article buttons, @xref{Article
2782 Buttons}.
2783
2784 Here is an example:
2785 @lisp
2786 (require 'gnus-art)
2787 (add-to-list
2788  'gnus-button-alist
2789  '("#\\([0-9]+\\)\\>" 1
2790    (string-match "\\<emacs\\>" (or gnus-newsgroup-name ""))
2791    gnus-read-ephemeral-emacs-bug-group 1))
2792 @end lisp
2793
2794
2795 @node Group Parameters
2796 @section Group Parameters
2797 @cindex group parameters
2798
2799 The group parameters store information local to a particular group.
2800
2801 Use the @kbd{G p} or the @kbd{G c} command to edit group parameters of a
2802 group.  (@kbd{G p} presents you with a Lisp-based interface, @kbd{G c}
2803 presents you with a Customize-like interface.  The latter helps avoid
2804 silly Lisp errors.)  You might also be interested in reading about topic
2805 parameters (@pxref{Topic Parameters}).
2806 Additionally, you can set group parameters via the
2807 @code{gnus-parameters} variable, see below.
2808
2809 Here's an example group parameter list:
2810
2811 @example
2812 ((to-address . "ding@@gnus.org")
2813  (auto-expire . t))
2814 @end example
2815
2816 We see that each element consists of a ``dotted pair''---the thing before
2817 the dot is the key, while the thing after the dot is the value.  All the
2818 parameters have this form @emph{except} local variable specs, which are
2819 not dotted pairs, but proper lists.
2820
2821 Some parameters have correspondent customizable variables, each of which
2822 is an alist of regexps and values.
2823
2824 The following group parameters can be used:
2825
2826 @table @code
2827 @item to-address
2828 @cindex to-address
2829 Address used by when doing followups and new posts.
2830
2831 @example
2832 (to-address . "some@@where.com")
2833 @end example
2834
2835 This is primarily useful in mail groups that represent closed mailing
2836 lists---mailing lists where it's expected that everybody that writes to
2837 the mailing list is subscribed to it.  Since using this parameter
2838 ensures that the mail only goes to the mailing list itself, it means
2839 that members won't receive two copies of your followups.
2840
2841 Using @code{to-address} will actually work whether the group is foreign
2842 or not.  Let's say there's a group on the server that is called
2843 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
2844 the articles from a mail-to-news gateway.  Posting directly to this
2845 group is therefore impossible---you have to send mail to the mailing
2846 list address instead.
2847
2848 See also @code{gnus-parameter-to-address-alist}.
2849
2850 @item to-list
2851 @cindex to-list
2852 Address used when doing @kbd{a} in that group.
2853
2854 @example
2855 (to-list . "some@@where.com")
2856 @end example
2857
2858 It is totally ignored
2859 when doing a followup---except that if it is present in a news group,
2860 you'll get mail group semantics when doing @kbd{f}.
2861
2862 If you do an @kbd{a} command in a mail group and you have neither a
2863 @code{to-list} group parameter nor a @code{to-address} group parameter,
2864 then a @code{to-list} group parameter will be added automatically upon
2865 sending the message if @code{gnus-add-to-list} is set to @code{t}.
2866 @vindex gnus-add-to-list
2867
2868 @findex gnus-mailing-list-mode
2869 @cindex mail list groups
2870 If this variable is set, @code{gnus-mailing-list-mode} is turned on when
2871 entering summary buffer.
2872
2873 See also @code{gnus-parameter-to-list-alist}.
2874
2875 @anchor{subscribed}
2876 @item subscribed
2877 @cindex subscribed
2878 @cindex Mail-Followup-To
2879 @findex gnus-find-subscribed-addresses
2880 If this parameter is set to @code{t}, Gnus will consider the
2881 to-address and to-list parameters for this group as addresses of
2882 mailing lists you are subscribed to.  Giving Gnus this information is
2883 (only) a first step in getting it to generate correct Mail-Followup-To
2884 headers for your posts to these lists.  The second step is to put the
2885 following in your @file{.gnus.el}
2886
2887 @lisp
2888 (setq message-subscribed-address-functions
2889       '(gnus-find-subscribed-addresses))
2890 @end lisp
2891
2892 @xref{Mailing Lists, ,Mailing Lists, message, The Message Manual}, for
2893 a complete treatment of available MFT support.
2894
2895 @item visible
2896 @cindex visible
2897 If the group parameter list has the element @code{(visible . t)},
2898 that group will always be visible in the Group buffer, regardless
2899 of whether it has any unread articles.
2900
2901 This parameter cannot be set via @code{gnus-parameters}. See
2902 @code{gnus-permanently-visible-groups} as an alternative.
2903
2904 @item broken-reply-to
2905 @cindex broken-reply-to
2906 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
2907 headers in this group are to be ignored, and for the header to be hidden
2908 if @code{reply-to} is part of @code{gnus-boring-article-headers}.  This
2909 can be useful if you're reading a mailing list group where the listserv
2910 has inserted @code{Reply-To} headers that point back to the listserv
2911 itself.  That is broken behavior.  So there!
2912
2913 @item to-group
2914 @cindex to-group
2915 Elements like @code{(to-group . "some.group.name")} means that all
2916 posts in that group will be sent to @code{some.group.name}.
2917
2918 @item newsgroup
2919 @cindex newsgroup
2920 If you have @code{(newsgroup . t)} in the group parameter list, Gnus
2921 will treat all responses as if they were responses to news articles.
2922 This can be useful if you have a mail group that's really a mirror of a
2923 news group.
2924
2925 @item gcc-self
2926 @cindex gcc-self
2927 If @code{(gcc-self . t)} is present in the group parameter list, newly
2928 composed messages will be @code{Gcc}'d to the current group.  If
2929 @code{(gcc-self . none)} is present, no @code{Gcc:} header will be
2930 generated, if @code{(gcc-self . "string")} is present, this string will
2931 be inserted literally as a @code{gcc} header.  This parameter takes
2932 precedence over any default @code{Gcc} rules as described later
2933 (@pxref{Archived Messages}).
2934
2935 @strong{Caveat}: Adding @code{(gcc-self . t)} to the parameter list of
2936 @code{nntp} groups (or the like) isn't valid.  An @code{nntp} server
2937 doesn't accept articles.
2938
2939 @item auto-expire
2940 @cindex auto-expire
2941 @cindex expiring mail
2942 If the group parameter has an element that looks like @code{(auto-expire
2943 . t)}, all articles read will be marked as expirable.  For an
2944 alternative approach, @pxref{Expiring Mail}.
2945
2946 See also @code{gnus-auto-expirable-newsgroups}.
2947
2948 @item total-expire
2949 @cindex total-expire
2950 @cindex expiring mail
2951 If the group parameter has an element that looks like
2952 @code{(total-expire . t)}, all read articles will be put through the
2953 expiry process, even if they are not marked as expirable.  Use with
2954 caution.  Unread, ticked and dormant articles are not eligible for
2955 expiry.
2956
2957 See also @code{gnus-total-expirable-newsgroups}.
2958
2959 @item expiry-wait
2960 @cindex expiry-wait
2961 @vindex nnmail-expiry-wait-function
2962 If the group parameter has an element that looks like
2963 @code{(expiry-wait . 10)}, this value will override any
2964 @code{nnmail-expiry-wait} and @code{nnmail-expiry-wait-function}
2965 (@pxref{Expiring Mail}) when expiring expirable messages.  The value
2966 can either be a number of days (not necessarily an integer) or the
2967 symbols @code{never} or @code{immediate}.
2968
2969 @item expiry-target
2970 @cindex expiry-target
2971 Where expired messages end up.  This parameter overrides
2972 @code{nnmail-expiry-target}.
2973
2974 @item score-file
2975 @cindex score file group parameter
2976 Elements that look like @code{(score-file . "file")} will make
2977 @file{file} into the current score file for the group in question.  All
2978 interactive score entries will be put into this file.
2979
2980 @item adapt-file
2981 @cindex adapt file group parameter
2982 Elements that look like @code{(adapt-file . "file")} will make
2983 @file{file} into the current adaptive file for the group in question.
2984 All adaptive score entries will be put into this file.
2985
2986 @item admin-address
2987 @cindex admin-address
2988 When unsubscribing from a mailing list you should never send the
2989 unsubscription notice to the mailing list itself.  Instead, you'd send
2990 messages to the administrative address.  This parameter allows you to
2991 put the admin address somewhere convenient.
2992
2993 @item display
2994 @cindex display
2995 Elements that look like @code{(display . MODE)} say which articles to
2996 display on entering the group.  Valid values are:
2997
2998 @table @code
2999 @item all
3000 Display all articles, both read and unread.
3001
3002 @item an integer
3003 Display the last @var{integer} articles in the group.  This is the same as
3004 entering the group with @kbd{C-u @var{integer}}.
3005
3006 @item default
3007 Display the default visible articles, which normally includes unread and
3008 ticked articles.
3009
3010 @item an array
3011 Display articles that satisfy a predicate.
3012
3013 Here are some examples:
3014
3015 @table @code
3016 @item [unread]
3017 Display only unread articles.
3018
3019 @item [not expire]
3020 Display everything except expirable articles.
3021
3022 @item [and (not reply) (not expire)]
3023 Display everything except expirable and articles you've already
3024 responded to.
3025 @end table
3026
3027 The available operators are @code{not}, @code{and} and @code{or}.
3028 Predicates include @code{tick}, @code{unsend}, @code{undownload},
3029 @code{unread}, @code{dormant}, @code{expire}, @code{reply},
3030 @code{killed}, @code{bookmark}, @code{score}, @code{save},
3031 @code{cache}, @code{forward}, @code{unseen} and @code{recent}.
3032
3033 @end table
3034
3035 The @code{display} parameter works by limiting the summary buffer to
3036 the subset specified.  You can pop the limit by using the @kbd{/ w}
3037 command (@pxref{Limiting}).
3038
3039 @item comment
3040 @cindex comment
3041 Elements that look like @code{(comment . "This is a comment")} are
3042 arbitrary comments on the group.  You can display comments in the
3043 group line (@pxref{Group Line Specification}).
3044
3045 @item charset
3046 @cindex charset
3047 Elements that look like @code{(charset . iso-8859-1)} will make
3048 @code{iso-8859-1} the default charset; that is, the charset that will be
3049 used for all articles that do not specify a charset.
3050
3051 See also @code{gnus-group-charset-alist}.
3052
3053 @item ignored-charsets
3054 @cindex ignored-charset
3055 Elements that look like @code{(ignored-charsets x-unknown iso-8859-1)}
3056 will make @code{iso-8859-1} and @code{x-unknown} ignored; that is, the
3057 default charset will be used for decoding articles.
3058
3059 See also @code{gnus-group-ignored-charsets-alist}.
3060
3061 @item posting-style
3062 @cindex posting-style
3063 You can store additional posting style information for this group
3064 here (@pxref{Posting Styles}).  The format is that of an entry in the
3065 @code{gnus-posting-styles} alist, except that there's no regexp matching
3066 the group name (of course).  Style elements in this group parameter will
3067 take precedence over the ones found in @code{gnus-posting-styles}.
3068
3069 For instance, if you want a funky name and signature in this group only,
3070 instead of hacking @code{gnus-posting-styles}, you could put something
3071 like this in the group parameters:
3072
3073 @example
3074 (posting-style
3075   (name "Funky Name")
3076   ("X-My-Header" "Funky Value")
3077   (signature "Funky Signature"))
3078 @end example
3079
3080 If you're using topics to organize your group buffer
3081 (@pxref{Group Topics}), note that posting styles can also be set in
3082 the topics parameters. Posting styles in topic parameters apply to all
3083 groups in this topic. More precisely, the posting-style settings for a
3084 group result from the hierarchical merging of all posting-style
3085 entries in the parameters of this group and all the topics it belongs
3086 to.
3087
3088
3089 @item post-method
3090 @cindex post-method
3091 If it is set, the value is used as the method for posting message
3092 instead of @code{gnus-post-method}.
3093
3094 @item mail-source
3095 @cindex mail-source
3096 If it is set, and the setting of @code{mail-sources} includes a
3097 @code{group} mail source (@pxref{Mail Sources}), the value is a
3098 mail source for this group.
3099
3100 @item banner
3101 @cindex banner
3102 An item like @code{(banner . @var{regexp})} causes any part of an article
3103 that matches the regular expression @var{regexp} to be stripped.  Instead of
3104 @var{regexp}, you can also use the symbol @code{signature} which strips the
3105 last signature or any of the elements of the alist
3106 @code{gnus-article-banner-alist}.
3107
3108 @item sieve
3109 @cindex sieve
3110 This parameter contains a Sieve test that should match incoming mail
3111 that should be placed in this group.  From this group parameter, a
3112 Sieve @samp{IF} control structure is generated, having the test as the
3113 condition and @samp{fileinto "group.name";} as the body.
3114
3115 For example, if the @samp{INBOX.list.sieve} group has the @code{(sieve
3116 address "sender" "sieve-admin@@extundo.com")} group parameter, when
3117 translating the group parameter into a Sieve script (@pxref{Sieve
3118 Commands}) the following Sieve code is generated:
3119
3120 @example
3121 if address "sender" "sieve-admin@@extundo.com" @{
3122         fileinto "INBOX.list.sieve";
3123 @}
3124 @end example
3125
3126 To generate tests for multiple email-addresses use a group parameter
3127 like @code{(sieve address "sender" ("name@@one.org" else@@two.org"))}.
3128 When generating a sieve script (@pxref{Sieve Commands}) Sieve code
3129 like the following is generated:
3130
3131 @example
3132 if address "sender" ["name@@one.org", "else@@two.org"] @{
3133         fileinto "INBOX.list.sieve";
3134 @}
3135 @end example
3136
3137 See @pxref{Sieve Commands} for commands and variables that might be of
3138 interest in relation to the sieve parameter.
3139
3140 The Sieve language is described in RFC 3028.  @xref{Top, Emacs Sieve,
3141 Top, sieve, Emacs Sieve}.
3142
3143 @item (agent parameters)
3144 If the agent has been enabled, you can set any of the its parameters
3145 to control the behavior of the agent in individual groups. See Agent
3146 Parameters in @ref{Category Syntax}.  Most users will choose to set
3147 agent parameters in either an agent category or group topic to
3148 minimize the configuration effort.
3149
3150 @item (@var{variable} @var{form})
3151 You can use the group parameters to set variables local to the group you
3152 are entering.  If you want to turn threading off in @samp{news.answers},
3153 you could put @code{(gnus-show-threads nil)} in the group parameters of
3154 that group.  @code{gnus-show-threads} will be made into a local variable
3155 in the summary buffer you enter, and the form @code{nil} will be
3156 @code{eval}ed there.
3157
3158 Note that this feature sets the variable locally to the summary buffer.
3159 But some variables are evaluated in the article buffer, or in the
3160 message buffer (of a reply or followup or otherwise newly created
3161 message).  As a workaround, it might help to add the variable in
3162 question to @code{gnus-newsgroup-variables}.  @xref{Various Summary
3163 Stuff}.  So if you want to set @code{message-from-style} via the group
3164 parameters, then you may need the following statement elsewhere in your
3165 @file{~/.gnus.el} file:
3166
3167 @lisp
3168 (add-to-list 'gnus-newsgroup-variables 'message-from-style)
3169 @end lisp
3170
3171 @vindex gnus-list-identifiers
3172 A use for this feature is to remove a mailing list identifier tag in
3173 the subject fields of articles.  E.g. if the news group
3174
3175 @example
3176 nntp+news.gnus.org:gmane.text.docbook.apps
3177 @end example
3178
3179 has the tag @samp{DOC-BOOK-APPS:} in the subject of all articles, this
3180 tag can be removed from the article subjects in the summary buffer for
3181 the group by putting @code{(gnus-list-identifiers "DOCBOOK-APPS:")}
3182 into the group parameters for the group.
3183
3184 This can also be used as a group-specific hook function.  If you want to
3185 hear a beep when you enter a group, you could put something like
3186 @code{(dummy-variable (ding))} in the parameters of that group.
3187 @code{dummy-variable} will be set to the (meaningless) result of the
3188 @code{(ding)} form.
3189
3190 Alternatively, since the VARIABLE becomes local to the group, this
3191 pattern can be used to temporarily change a hook.  For example, if the
3192 following is added to a group parameter
3193
3194 @lisp
3195 (gnus-summary-prepared-hook
3196   '(lambda nil (local-set-key "d" (local-key-binding "n"))))
3197 @end lisp
3198
3199 when the group is entered, the 'd' key will not mark the article as
3200 expired.
3201
3202 @end table
3203
3204 @vindex gnus-parameters
3205 Group parameters can be set via the @code{gnus-parameters} variable too.
3206 But some variables, such as @code{visible}, have no effect (For this
3207 case see @code{gnus-permanently-visible-groups} as an alternative.).
3208 For example:
3209
3210 @lisp
3211 (setq gnus-parameters
3212       '(("mail\\..*"
3213          (gnus-show-threads nil)
3214          (gnus-use-scoring nil)
3215          (gnus-summary-line-format
3216           "%U%R%z%I%(%[%d:%ub%-23,23f%]%) %s\n")
3217          (gcc-self . t)
3218          (display . all))
3219
3220         ("^nnimap:\\(foo.bar\\)$"
3221          (to-group . "\\1"))
3222
3223         ("mail\\.me"
3224          (gnus-use-scoring  t))
3225
3226         ("list\\..*"
3227          (total-expire . t)
3228          (broken-reply-to . t))))
3229 @end lisp
3230
3231 String value of parameters will be subjected to regexp substitution, as
3232 the @code{to-group} example shows.
3233
3234 @vindex gnus-parameters-case-fold-search
3235 By default, whether comparing the group name and one of those regexps
3236 specified in @code{gnus-parameters} is done in a case-sensitive manner
3237 or a case-insensitive manner depends on the value of
3238 @code{case-fold-search} at the time when the comparison is done.  The
3239 value of @code{case-fold-search} is typically @code{t}; it means, for
3240 example, the element @code{("INBOX\\.FOO" (total-expire . t))} might be
3241 applied to both the @samp{INBOX.FOO} group and the @samp{INBOX.foo}
3242 group.  If you want to make those regexps always case-sensitive, set the
3243 value of the @code{gnus-parameters-case-fold-search} variable to
3244 @code{nil}.  Otherwise, set it to @code{t} if you want to compare them
3245 always in a case-insensitive manner.
3246
3247 You can define different sorting to different groups via
3248 @code{gnus-parameters}.  Here is an example to sort an @acronym{NNTP}
3249 group by reverse date to see the latest news at the top and an
3250 @acronym{RSS} group by subject.  In this example, the first group is the
3251 Debian daily news group @code{gmane.linux.debian.user.news} from
3252 news.gmane.org.  The @acronym{RSS} group corresponds to the Debian
3253 weekly news RSS feed
3254 @url{http://packages.debian.org/unstable/newpkg_main.en.rdf},
3255 @xref{RSS}.
3256
3257 @lisp
3258 (setq
3259  gnus-parameters
3260  '(("nntp.*gmane\\.debian\\.user\\.news"
3261     (gnus-show-threads nil)
3262     (gnus-article-sort-functions '((not gnus-article-sort-by-date)))
3263     (gnus-use-adaptive-scoring nil)
3264     (gnus-use-scoring nil))
3265    ("nnrss.*debian"
3266     (gnus-show-threads nil)
3267     (gnus-article-sort-functions 'gnus-article-sort-by-subject)
3268     (gnus-use-adaptive-scoring nil)
3269     (gnus-use-scoring t)
3270     (gnus-score-find-score-files-function 'gnus-score-find-single)
3271     (gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"))))
3272 @end lisp
3273
3274
3275 @node Listing Groups
3276 @section Listing Groups
3277 @cindex group listing
3278
3279 These commands all list various slices of the groups available.
3280
3281 @table @kbd
3282
3283 @item l
3284 @itemx A s
3285 @kindex A s (Group)
3286 @kindex l (Group)
3287 @findex gnus-group-list-groups
3288 List all groups that have unread articles
3289 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
3290 command will list only groups of level ARG and lower.  By default, it
3291 only lists groups of level five (i.e.,
3292 @code{gnus-group-default-list-level}) or lower (i.e., just subscribed
3293 groups).
3294
3295 @item L
3296 @itemx A u
3297 @kindex A u (Group)
3298 @kindex L (Group)
3299 @findex gnus-group-list-all-groups
3300 List all groups, whether they have unread articles or not
3301 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
3302 this command will list only groups of level ARG and lower.  By default,
3303 it lists groups of level seven or lower (i.e., just subscribed and
3304 unsubscribed groups).
3305
3306 @item A l
3307 @kindex A l (Group)
3308 @findex gnus-group-list-level
3309 List all unread groups on a specific level
3310 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
3311 with no unread articles.
3312
3313 @item A k
3314 @kindex A k (Group)
3315 @findex gnus-group-list-killed
3316 List all killed groups (@code{gnus-group-list-killed}).  If given a
3317 prefix argument, really list all groups that are available, but aren't
3318 currently (un)subscribed.  This could entail reading the active file
3319 from the server.
3320
3321 @item A z
3322 @kindex A z (Group)
3323 @findex gnus-group-list-zombies
3324 List all zombie groups (@code{gnus-group-list-zombies}).
3325
3326 @item A m
3327 @kindex A m (Group)
3328 @findex gnus-group-list-matching
3329 List all unread, subscribed groups with names that match a regexp
3330 (@code{gnus-group-list-matching}).
3331
3332 @item A M
3333 @kindex A M (Group)
3334 @findex gnus-group-list-all-matching
3335 List groups that match a regexp (@code{gnus-group-list-all-matching}).
3336
3337 @item A A
3338 @kindex A A (Group)
3339 @findex gnus-group-list-active
3340 List absolutely all groups in the active file(s) of the
3341 server(s) you are connected to (@code{gnus-group-list-active}).  This
3342 might very well take quite a while.  It might actually be a better idea
3343 to do a @kbd{A M} to list all matching, and just give @samp{.} as the
3344 thing to match on.  Also note that this command may list groups that
3345 don't exist (yet)---these will be listed as if they were killed groups.
3346 Take the output with some grains of salt.
3347
3348 @item A a
3349 @kindex A a (Group)
3350 @findex gnus-group-apropos
3351 List all groups that have names that match a regexp
3352 (@code{gnus-group-apropos}).
3353
3354 @item A d
3355 @kindex A d (Group)
3356 @findex gnus-group-description-apropos
3357 List all groups that have names or descriptions that match a regexp
3358 (@code{gnus-group-description-apropos}).
3359
3360 @item A c
3361 @kindex A c (Group)
3362 @findex gnus-group-list-cached
3363 List all groups with cached articles (@code{gnus-group-list-cached}).
3364
3365 @item A ?
3366 @kindex A ? (Group)
3367 @findex gnus-group-list-dormant
3368 List all groups with dormant articles (@code{gnus-group-list-dormant}).
3369
3370 @item A /
3371 @kindex A / (Group)
3372 @findex gnus-group-list-limit
3373 List groups limited within the current selection
3374 (@code{gnus-group-list-limit}).
3375
3376 @item A f
3377 @kindex A f (Group)
3378 @findex gnus-group-list-flush
3379 Flush groups from the current selection (@code{gnus-group-list-flush}).
3380
3381 @item A p
3382 @kindex A p (Group)
3383 @findex gnus-group-list-plus
3384 List groups plus the current selection (@code{gnus-group-list-plus}).
3385
3386 @end table
3387
3388 @vindex gnus-permanently-visible-groups
3389 @cindex visible group parameter
3390 Groups that match the @code{gnus-permanently-visible-groups} regexp will
3391 always be shown, whether they have unread articles or not.  You can also
3392 add the @code{visible} element to the group parameters in question to
3393 get the same effect.
3394
3395 @vindex gnus-list-groups-with-ticked-articles
3396 Groups that have just ticked articles in it are normally listed in the
3397 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
3398 @code{nil}, these groups will be treated just like totally empty
3399 groups.  It is @code{t} by default.
3400
3401
3402 @node Sorting Groups
3403 @section Sorting Groups
3404 @cindex sorting groups
3405
3406 @kindex C-c C-s (Group)
3407 @findex gnus-group-sort-groups
3408 @vindex gnus-group-sort-function
3409 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
3410 group buffer according to the function(s) given by the
3411 @code{gnus-group-sort-function} variable.  Available sorting functions
3412 include:
3413
3414 @table @code
3415
3416 @item gnus-group-sort-by-alphabet
3417 @findex gnus-group-sort-by-alphabet
3418 Sort the group names alphabetically.  This is the default.
3419
3420 @item gnus-group-sort-by-real-name
3421 @findex gnus-group-sort-by-real-name
3422 Sort the group alphabetically on the real (unprefixed) group names.
3423
3424 @item gnus-group-sort-by-level
3425 @findex gnus-group-sort-by-level
3426 Sort by group level.
3427
3428 @item gnus-group-sort-by-score
3429 @findex gnus-group-sort-by-score
3430 Sort by group score.  @xref{Group Score}.
3431
3432 @item gnus-group-sort-by-rank
3433 @findex gnus-group-sort-by-rank
3434 Sort by group score and then the group level.  The level and the score
3435 are, when taken together, the group's @dfn{rank}.  @xref{Group Score}.
3436
3437 @item gnus-group-sort-by-unread
3438 @findex gnus-group-sort-by-unread
3439 Sort by number of unread articles.
3440
3441 @item gnus-group-sort-by-method
3442 @findex gnus-group-sort-by-method
3443 Sort alphabetically on the select method.
3444
3445 @item gnus-group-sort-by-server
3446 @findex gnus-group-sort-by-server
3447 Sort alphabetically on the Gnus server name.
3448
3449
3450 @end table
3451
3452 @code{gnus-group-sort-function} can also be a list of sorting
3453 functions.  In that case, the most significant sort key function must be
3454 the last one.
3455
3456
3457 There are also a number of commands for sorting directly according to
3458 some sorting criteria:
3459
3460 @table @kbd
3461 @item G S a
3462 @kindex G S a (Group)
3463 @findex gnus-group-sort-groups-by-alphabet
3464 Sort the group buffer alphabetically by group name
3465 (@code{gnus-group-sort-groups-by-alphabet}).
3466
3467 @item G S u
3468 @kindex G S u (Group)
3469 @findex gnus-group-sort-groups-by-unread
3470 Sort the group buffer by the number of unread articles
3471 (@code{gnus-group-sort-groups-by-unread}).
3472
3473 @item G S l
3474 @kindex G S l (Group)
3475 @findex gnus-group-sort-groups-by-level
3476 Sort the group buffer by group level
3477 (@code{gnus-group-sort-groups-by-level}).
3478
3479 @item G S v
3480 @kindex G S v (Group)
3481 @findex gnus-group-sort-groups-by-score
3482 Sort the group buffer by group score
3483 (@code{gnus-group-sort-groups-by-score}).  @xref{Group Score}.
3484
3485 @item G S r
3486 @kindex G S r (Group)
3487 @findex gnus-group-sort-groups-by-rank
3488 Sort the group buffer by group rank
3489 (@code{gnus-group-sort-groups-by-rank}).  @xref{Group Score}.
3490
3491 @item G S m
3492 @kindex G S m (Group)
3493 @findex gnus-group-sort-groups-by-method
3494 Sort the group buffer alphabetically by back end name@*
3495 (@code{gnus-group-sort-groups-by-method}).
3496
3497 @item G S n
3498 @kindex G S n (Group)
3499 @findex gnus-group-sort-groups-by-real-name
3500 Sort the group buffer alphabetically by real (unprefixed) group name
3501 (@code{gnus-group-sort-groups-by-real-name}).
3502
3503 @end table
3504
3505 All the commands below obey the process/prefix convention
3506 (@pxref{Process/Prefix}).
3507
3508 When given a symbolic prefix (@pxref{Symbolic Prefixes}), all these
3509 commands will sort in reverse order.
3510
3511 You can also sort a subset of the groups:
3512
3513 @table @kbd
3514 @item G P a
3515 @kindex G P a (Group)
3516 @findex gnus-group-sort-selected-groups-by-alphabet
3517 Sort the groups alphabetically by group name
3518 (@code{gnus-group-sort-selected-groups-by-alphabet}).
3519
3520 @item G P u
3521 @kindex G P u (Group)
3522 @findex gnus-group-sort-selected-groups-by-unread
3523 Sort the groups by the number of unread articles
3524 (@code{gnus-group-sort-selected-groups-by-unread}).
3525
3526 @item G P l
3527 @kindex G P l (Group)
3528 @findex gnus-group-sort-selected-groups-by-level
3529 Sort the groups by group level
3530 (@code{gnus-group-sort-selected-groups-by-level}).
3531
3532 @item G P v
3533 @kindex G P v (Group)
3534 @findex gnus-group-sort-selected-groups-by-score
3535 Sort the groups by group score
3536 (@code{gnus-group-sort-selected-groups-by-score}).  @xref{Group Score}.
3537
3538 @item G P r
3539 @kindex G P r (Group)
3540 @findex gnus-group-sort-selected-groups-by-rank
3541 Sort the groups by group rank
3542 (@code{gnus-group-sort-selected-groups-by-rank}).  @xref{Group Score}.
3543
3544 @item G P m
3545 @kindex G P m (Group)
3546 @findex gnus-group-sort-selected-groups-by-method
3547 Sort the groups alphabetically by back end name@*
3548 (@code{gnus-group-sort-selected-groups-by-method}).
3549
3550 @item G P n
3551 @kindex G P n (Group)
3552 @findex gnus-group-sort-selected-groups-by-real-name
3553 Sort the groups alphabetically by real (unprefixed) group name
3554 (@code{gnus-group-sort-selected-groups-by-real-name}).
3555
3556 @item G P s
3557 @kindex G P s (Group)
3558 @findex gnus-group-sort-selected-groups
3559 Sort the groups according to @code{gnus-group-sort-function}.
3560
3561 @end table
3562
3563 And finally, note that you can use @kbd{C-k} and @kbd{C-y} to manually
3564 move groups around.
3565
3566
3567 @node Group Maintenance
3568 @section Group Maintenance
3569 @cindex bogus groups
3570
3571 @table @kbd
3572 @item b
3573 @kindex b (Group)
3574 @findex gnus-group-check-bogus-groups
3575 Find bogus groups and delete them
3576 (@code{gnus-group-check-bogus-groups}).
3577
3578 @item F
3579 @kindex F (Group)
3580 @findex gnus-group-find-new-groups
3581 Find new groups and process them (@code{gnus-group-find-new-groups}).
3582 With 1 @kbd{C-u}, use the @code{ask-server} method to query the server
3583 for new groups.  With 2 @kbd{C-u}'s, use most complete method possible
3584 to query the server for new groups, and subscribe the new groups as
3585 zombies.
3586
3587 @item C-c C-x
3588 @kindex C-c C-x (Group)
3589 @findex gnus-group-expire-articles
3590 @cindex expiring mail
3591 Run all expirable articles in the current group through the expiry
3592 process (if any) (@code{gnus-group-expire-articles}).  That is, delete
3593 all expirable articles in the group that have been around for a while.
3594 (@pxref{Expiring Mail}).
3595
3596 @item C-c C-M-x
3597 @kindex C-c C-M-x (Group)
3598 @findex gnus-group-expire-all-groups
3599 @cindex expiring mail
3600 Run all expirable articles in all groups through the expiry process
3601 (@code{gnus-group-expire-all-groups}).
3602
3603 @end table
3604
3605
3606 @node Browse Foreign Server
3607 @section Browse Foreign Server
3608 @cindex foreign servers
3609 @cindex browsing servers
3610
3611 @table @kbd
3612 @item B
3613 @kindex B (Group)
3614 @findex gnus-group-browse-foreign-server
3615 You will be queried for a select method and a server name.  Gnus will
3616 then attempt to contact this server and let you browse the groups there
3617 (@code{gnus-group-browse-foreign-server}).
3618 @end table
3619
3620 @findex gnus-browse-mode
3621 A new buffer with a list of available groups will appear.  This buffer
3622 will use the @code{gnus-browse-mode}.  This buffer looks a bit (well,
3623 a lot) like a normal group buffer.
3624
3625 Here's a list of keystrokes available in the browse mode:
3626
3627 @table @kbd
3628 @item n
3629 @kindex n (Browse)
3630 @findex gnus-group-next-group
3631 Go to the next group (@code{gnus-group-next-group}).
3632
3633 @item p
3634 @kindex p (Browse)
3635 @findex gnus-group-prev-group
3636 Go to the previous group (@code{gnus-group-prev-group}).
3637
3638 @item SPACE
3639 @kindex SPACE (Browse)
3640 @findex gnus-browse-read-group
3641 Enter the current group and display the first article
3642 (@code{gnus-browse-read-group}).
3643
3644 @item RET
3645 @kindex RET (Browse)
3646 @findex gnus-browse-select-group
3647 Enter the current group (@code{gnus-browse-select-group}).
3648
3649 @item u
3650 @kindex u (Browse)
3651 @findex gnus-browse-unsubscribe-current-group
3652 Unsubscribe to the current group, or, as will be the case here,
3653 subscribe to it (@code{gnus-browse-unsubscribe-current-group}).
3654
3655 @item l
3656 @itemx q
3657 @kindex q (Browse)
3658 @kindex l (Browse)
3659 @findex gnus-browse-exit
3660 Exit browse mode (@code{gnus-browse-exit}).
3661
3662 @item d
3663 @kindex d (Browse)
3664 @findex gnus-browse-describe-group
3665 Describe the current group (@code{gnus-browse-describe-group}).
3666
3667 @item ?
3668 @kindex ? (Browse)
3669 @findex gnus-browse-describe-briefly
3670 Describe browse mode briefly (well, there's not much to describe, is
3671 there) (@code{gnus-browse-describe-briefly}).
3672 @end table
3673
3674
3675 @node Exiting Gnus
3676 @section Exiting Gnus
3677 @cindex exiting Gnus
3678
3679 Yes, Gnus is ex(c)iting.
3680
3681 @table @kbd
3682 @item z
3683 @kindex z (Group)
3684 @findex gnus-group-suspend
3685 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
3686 but it kills all buffers except the Group buffer.  I'm not sure why this
3687 is a gain, but then who am I to judge?
3688
3689 @item q
3690 @kindex q (Group)
3691 @findex gnus-group-exit
3692 @c @icon{gnus-group-exit}
3693 Quit Gnus (@code{gnus-group-exit}).
3694
3695 @item Q
3696 @kindex Q (Group)
3697 @findex gnus-group-quit
3698 Quit Gnus without saving the @file{.newsrc} files (@code{gnus-group-quit}).
3699 The dribble file will be saved, though (@pxref{Auto Save}).
3700 @end table
3701
3702 @vindex gnus-exit-gnus-hook
3703 @vindex gnus-suspend-gnus-hook
3704 @vindex gnus-after-exiting-gnus-hook
3705 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
3706 @code{gnus-exit-gnus-hook} is called when you quit Gnus, while
3707 @code{gnus-after-exiting-gnus-hook} is called as the final item when
3708 exiting Gnus.
3709
3710 Note:
3711
3712 @quotation
3713 Miss Lisa Cannifax, while sitting in English class, felt her feet go
3714 numbly heavy and herself fall into a hazy trance as the boy sitting
3715 behind her drew repeated lines with his pencil across the back of her
3716 plastic chair.
3717 @end quotation
3718
3719
3720 @node Group Topics
3721 @section Group Topics
3722 @cindex topics
3723
3724 If you read lots and lots of groups, it might be convenient to group
3725 them hierarchically according to topics.  You put your Emacs groups over
3726 here, your sex groups over there, and the rest (what, two groups or so?)
3727 you put in some misc section that you never bother with anyway.  You can
3728 even group the Emacs sex groups as a sub-topic to either the Emacs
3729 groups or the sex groups---or both!  Go wild!
3730
3731 @iftex
3732 @iflatex
3733 \gnusfigure{Group Topics}{400}{
3734 \put(75,50){\epsfig{figure=ps/group-topic,height=9cm}}
3735 }
3736 @end iflatex
3737 @end iftex
3738
3739 Here's an example:
3740
3741 @example
3742 Gnus
3743   Emacs -- I wuw it!
3744      3: comp.emacs
3745      2: alt.religion.emacs
3746     Naughty Emacs
3747      452: alt.sex.emacs
3748        0: comp.talk.emacs.recovery
3749   Misc
3750      8: comp.binaries.fractals
3751     13: comp.sources.unix
3752 @end example
3753
3754 @findex gnus-topic-mode
3755 @kindex t (Group)
3756 To get this @emph{fab} functionality you simply turn on (ooh!) the
3757 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
3758 is a toggling command.)
3759
3760 Go ahead, just try it.  I'll still be here when you get back.  La de
3761 dum@dots{} Nice tune, that@dots{} la la la@dots{} What, you're back?
3762 Yes, and now press @kbd{l}.  There.  All your groups are now listed
3763 under @samp{misc}.  Doesn't that make you feel all warm and fuzzy?
3764 Hot and bothered?
3765
3766 If you want this permanently enabled, you should add that minor mode to
3767 the hook for the group mode.  Put the following line in your
3768 @file{~/.gnus.el} file:
3769
3770 @lisp
3771 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
3772 @end lisp
3773
3774 @menu
3775 * Topic Commands::              Interactive E-Z commands.
3776 * Topic Variables::             How to customize the topics the Lisp Way.
3777 * Topic Sorting::               Sorting each topic individually.
3778 * Topic Topology::              A map of the world.
3779 * Topic Parameters::            Parameters that apply to all groups in a topic.
3780 @end menu
3781
3782
3783 @node Topic Commands
3784 @subsection Topic Commands
3785 @cindex topic commands
3786
3787 When the topic minor mode is turned on, a new @kbd{T} submap will be
3788 available.  In addition, a few of the standard keys change their
3789 definitions slightly.
3790
3791 In general, the following kinds of operations are possible on topics.
3792 First of all, you want to create topics.  Secondly, you want to put
3793 groups in topics and to move them around until you have an order you
3794 like.  The third kind of operation is to show/hide parts of the whole
3795 shebang.  You might want to hide a topic including its subtopics and
3796 groups, to get a better overview of the other groups.
3797
3798 Here is a list of the basic keys that you might need to set up topics
3799 the way you like.
3800
3801 @table @kbd
3802
3803 @item T n
3804 @kindex T n (Topic)
3805 @findex gnus-topic-create-topic
3806 Prompt for a new topic name and create it
3807 (@code{gnus-topic-create-topic}).
3808
3809 @item T TAB
3810 @itemx TAB
3811 @kindex T TAB (Topic)
3812 @kindex TAB (Topic)
3813 @findex gnus-topic-indent
3814 ``Indent'' the current topic so that it becomes a sub-topic of the
3815 previous topic (@code{gnus-topic-indent}).  If given a prefix,
3816 ``un-indent'' the topic instead.
3817
3818 @item M-TAB
3819 @kindex M-TAB (Topic)
3820 @findex gnus-topic-unindent
3821 ``Un-indent'' the current topic so that it becomes a sub-topic of the
3822 parent of its current parent (@code{gnus-topic-unindent}).
3823
3824 @end table
3825
3826 The following two keys can be used to move groups and topics around.
3827 They work like the well-known cut and paste.  @kbd{C-k} is like cut and
3828 @kbd{C-y} is like paste.  Of course, this being Emacs, we use the terms
3829 kill and yank rather than cut and paste.
3830
3831 @table @kbd
3832
3833 @item C-k
3834 @kindex C-k (Topic)
3835 @findex gnus-topic-kill-group
3836 Kill a group or topic (@code{gnus-topic-kill-group}).  All groups in the
3837 topic will be removed along with the topic.
3838
3839 @item C-y
3840 @kindex C-y (Topic)
3841 @findex gnus-topic-yank-group
3842 Yank the previously killed group or topic
3843 (@code{gnus-topic-yank-group}).  Note that all topics will be yanked
3844 before all groups.
3845
3846 So, to move a topic to the beginning of the list of topics, just hit
3847 @kbd{C-k} on it.  This is like the ``cut'' part of cut and paste.  Then,
3848 move the cursor to the beginning of the buffer (just below the ``Gnus''
3849 topic) and hit @kbd{C-y}.  This is like the ``paste'' part of cut and
3850 paste.  Like I said -- E-Z.
3851
3852 You can use @kbd{C-k} and @kbd{C-y} on groups as well as on topics.  So
3853 you can move topics around as well as groups.
3854
3855 @end table
3856
3857 After setting up the topics the way you like them, you might wish to
3858 hide a topic, or to show it again.  That's why we have the following
3859 key.
3860
3861 @table @kbd
3862
3863 @item RET
3864 @kindex RET (Topic)
3865 @findex gnus-topic-select-group
3866 @itemx SPACE
3867 Either select a group or fold a topic (@code{gnus-topic-select-group}).
3868 When you perform this command on a group, you'll enter the group, as
3869 usual.  When done on a topic line, the topic will be folded (if it was
3870 visible) or unfolded (if it was folded already).  So it's basically a
3871 toggling command on topics.  In addition, if you give a numerical
3872 prefix, group on that level (and lower) will be displayed.
3873
3874 @end table
3875
3876 Now for a list of other commands, in no particular order.
3877
3878 @table @kbd
3879
3880 @item T m
3881 @kindex T m (Topic)
3882 @findex gnus-topic-move-group
3883 Move the current group to some other topic
3884 (@code{gnus-topic-move-group}).  This command uses the process/prefix
3885 convention (@pxref{Process/Prefix}).
3886
3887 @item T j
3888 @kindex T j (Topic)
3889 @findex gnus-topic-jump-to-topic
3890 Go to a topic (@code{gnus-topic-jump-to-topic}).
3891
3892 @item T c
3893 @kindex T c (Topic)
3894 @findex gnus-topic-copy-group
3895 Copy the current group to some other topic
3896 (@code{gnus-topic-copy-group}).  This command uses the process/prefix
3897 convention (@pxref{Process/Prefix}).
3898
3899 @item T h
3900 @kindex T h (Topic)
3901 @findex gnus-topic-hide-topic
3902 Hide the current topic (@code{gnus-topic-hide-topic}).  If given
3903 a prefix, hide the topic permanently.
3904
3905 @item T s
3906 @kindex T s (Topic)
3907 @findex gnus-topic-show-topic
3908 Show the current topic (@code{gnus-topic-show-topic}).  If given
3909 a prefix, show the topic permanently.
3910
3911 @item T D
3912 @kindex T D (Topic)
3913 @findex gnus-topic-remove-group
3914 Remove a group from the current topic (@code{gnus-topic-remove-group}).
3915 This command is mainly useful if you have the same group in several
3916 topics and wish to remove it from one of the topics.  You may also
3917 remove a group from all topics, but in that case, Gnus will add it to
3918 the root topic the next time you start Gnus.  In fact, all new groups
3919 (which, naturally, don't belong to any topic) will show up in the root
3920 topic.
3921
3922 This command uses the process/prefix convention
3923 (@pxref{Process/Prefix}).
3924
3925 @item T M
3926 @kindex T M (Topic)
3927 @findex gnus-topic-move-matching
3928 Move all groups that match some regular expression to a topic
3929 (@code{gnus-topic-move-matching}).
3930
3931 @item T C
3932 @kindex T C (Topic)
3933 @findex gnus-topic-copy-matching
3934 Copy all groups that match some regular expression to a topic
3935 (@code{gnus-topic-copy-matching}).
3936
3937 @item T H
3938 @kindex T H (Topic)
3939 @findex gnus-topic-toggle-display-empty-topics
3940 Toggle hiding empty topics
3941 (@code{gnus-topic-toggle-display-empty-topics}).
3942
3943 @item T #
3944 @kindex T # (Topic)
3945 @findex gnus-topic-mark-topic
3946 Mark all groups in the current topic with the process mark
3947 (@code{gnus-topic-mark-topic}).  This command works recursively on
3948 sub-topics unless given a prefix.
3949
3950 @item T M-#
3951 @kindex T M-# (Topic)
3952 @findex gnus-topic-unmark-topic
3953 Remove the process mark from all groups in the current topic
3954 (@code{gnus-topic-unmark-topic}).  This command works recursively on
3955 sub-topics unless given a prefix.
3956
3957 @item C-c C-x
3958 @kindex C-c C-x (Topic)
3959 @findex gnus-topic-expire-articles
3960 @cindex expiring mail
3961 Run all expirable articles in the current group or topic through the
3962 expiry process (if any)
3963 (@code{gnus-topic-expire-articles}).  (@pxref{Expiring Mail}).
3964
3965 @item T r
3966 @kindex T r (Topic)
3967 @findex gnus-topic-rename
3968 Rename a topic (@code{gnus-topic-rename}).
3969
3970 @item T DEL
3971 @kindex T DEL (Topic)
3972 @findex gnus-topic-delete
3973 Delete an empty topic (@code{gnus-topic-delete}).
3974
3975 @item A T
3976 @kindex A T (Topic)
3977 @findex gnus-topic-list-active
3978 List all groups that Gnus knows about in a topics-ified way
3979 (@code{gnus-topic-list-active}).
3980
3981 @item T M-n
3982 @kindex T M-n (Topic)
3983 @findex gnus-topic-goto-next-topic
3984 Go to the next topic (@code{gnus-topic-goto-next-topic}).
3985
3986 @item T M-p
3987 @kindex T M-p (Topic)
3988 @findex gnus-topic-goto-previous-topic
3989 Go to the previous topic (@code{gnus-topic-goto-previous-topic}).
3990
3991 @item G p
3992 @kindex G p (Topic)
3993 @findex gnus-topic-edit-parameters
3994 @cindex group parameters
3995 @cindex topic parameters
3996 @cindex parameters
3997 Edit the topic parameters (@code{gnus-topic-edit-parameters}).
3998 @xref{Topic Parameters}.
3999
4000 @end table
4001
4002
4003 @node Topic Variables
4004 @subsection Topic Variables
4005 @cindex topic variables
4006
4007 The previous section told you how to tell Gnus which topics to display.
4008 This section explains how to tell Gnus what to display about each topic.
4009
4010 @vindex gnus-topic-line-format
4011 The topic lines themselves are created according to the
4012 @code{gnus-topic-line-format} variable (@pxref{Formatting Variables}).
4013 Valid elements are:
4014
4015 @table @samp
4016 @item i
4017 Indentation.
4018 @item n
4019 Topic name.
4020 @item v
4021 Visibility.
4022 @item l
4023 Level.
4024 @item g
4025 Number of groups in the topic.
4026 @item a
4027 Number of unread articles in the topic.
4028 @item A
4029 Number of unread articles in the topic and all its subtopics.
4030 @end table
4031
4032 @vindex gnus-topic-indent-level
4033 Each sub-topic (and the groups in the sub-topics) will be indented with
4034 @code{gnus-topic-indent-level} times the topic level number of spaces.
4035 The default is 2.
4036
4037 @vindex gnus-topic-mode-hook
4038 @code{gnus-topic-mode-hook} is called in topic minor mode buffers.
4039
4040 @vindex gnus-topic-display-empty-topics
4041 The @code{gnus-topic-display-empty-topics} says whether to display even
4042 topics that have no unread articles in them.  The default is @code{t}.
4043
4044
4045 @node Topic Sorting
4046 @subsection Topic Sorting
4047 @cindex topic sorting
4048
4049 You can sort the groups in each topic individually with the following
4050 commands:
4051
4052
4053 @table @kbd
4054 @item T S a
4055 @kindex T S a (Topic)
4056 @findex gnus-topic-sort-groups-by-alphabet
4057 Sort the current topic alphabetically by group name
4058 (@code{gnus-topic-sort-groups-by-alphabet}).
4059
4060 @item T S u
4061 @kindex T S u (Topic)
4062 @findex gnus-topic-sort-groups-by-unread
4063 Sort the current topic by the number of unread articles
4064 (@code{gnus-topic-sort-groups-by-unread}).
4065
4066 @item T S l
4067 @kindex T S l (Topic)
4068 @findex gnus-topic-sort-groups-by-level
4069 Sort the current topic by group level
4070 (@code{gnus-topic-sort-groups-by-level}).
4071
4072 @item T S v
4073 @kindex T S v (Topic)
4074 @findex gnus-topic-sort-groups-by-score
4075 Sort the current topic by group score
4076 (@code{gnus-topic-sort-groups-by-score}).  @xref{Group Score}.
4077
4078 @item T S r
4079 @kindex T S r (Topic)
4080 @findex gnus-topic-sort-groups-by-rank
4081 Sort the current topic by group rank
4082 (@code{gnus-topic-sort-groups-by-rank}).  @xref{Group Score}.
4083
4084 @item T S m
4085 @kindex T S m (Topic)
4086 @findex gnus-topic-sort-groups-by-method
4087 Sort the current topic alphabetically by back end name
4088 (@code{gnus-topic-sort-groups-by-method}).
4089
4090 @item T S e
4091 @kindex T S e (Topic)
4092 @findex gnus-topic-sort-groups-by-server
4093 Sort the current topic alphabetically by server name
4094 (@code{gnus-topic-sort-groups-by-server}).
4095
4096 @item T S s
4097 @kindex T S s (Topic)
4098 @findex gnus-topic-sort-groups
4099 Sort the current topic according to the function(s) given by the
4100 @code{gnus-group-sort-function} variable
4101 (@code{gnus-topic-sort-groups}).
4102
4103 @end table
4104
4105 When given a prefix argument, all these commands will sort in reverse
4106 order.  @xref{Sorting Groups}, for more information about group
4107 sorting.
4108
4109
4110 @node Topic Topology
4111 @subsection Topic Topology
4112 @cindex topic topology
4113 @cindex topology
4114
4115 So, let's have a look at an example group buffer:
4116
4117 @example
4118 @group
4119 Gnus
4120   Emacs -- I wuw it!
4121      3: comp.emacs
4122      2: alt.religion.emacs
4123     Naughty Emacs
4124      452: alt.sex.emacs
4125        0: comp.talk.emacs.recovery
4126   Misc
4127      8: comp.binaries.fractals
4128     13: comp.sources.unix
4129 @end group
4130 @end example
4131
4132 So, here we have one top-level topic (@samp{Gnus}), two topics under
4133 that, and one sub-topic under one of the sub-topics.  (There is always
4134 just one (1) top-level topic).  This topology can be expressed as
4135 follows:
4136
4137 @lisp
4138 (("Gnus" visible)
4139  (("Emacs -- I wuw it!" visible)
4140   (("Naughty Emacs" visible)))
4141  (("Misc" visible)))
4142 @end lisp
4143
4144 @vindex gnus-topic-topology
4145 This is in fact how the variable @code{gnus-topic-topology} would look
4146 for the display above.  That variable is saved in the @file{.newsrc.eld}
4147 file, and shouldn't be messed with manually---unless you really want
4148 to.  Since this variable is read from the @file{.newsrc.eld} file,
4149 setting it in any other startup files will have no effect.
4150
4151 This topology shows what topics are sub-topics of what topics (right),
4152 and which topics are visible.  Two settings are currently
4153 allowed---@code{visible} and @code{invisible}.
4154
4155
4156 @node Topic Parameters
4157 @subsection Topic Parameters
4158 @cindex topic parameters
4159
4160 All groups in a topic will inherit group parameters from the parent
4161 (and ancestor) topic parameters.  All valid group parameters are valid
4162 topic parameters (@pxref{Group Parameters}).  When the agent is
4163 enabled, all agent parameters (See Agent Parameters in @ref{Category
4164 Syntax}) are also valid topic parameters.
4165
4166 In addition, the following parameters are only valid as topic
4167 parameters:
4168
4169 @table @code
4170 @item subscribe
4171 When subscribing new groups by topic (@pxref{Subscription Methods}), the
4172 @code{subscribe} topic parameter says what groups go in what topic.  Its
4173 value should be a regexp to match the groups that should go in that
4174 topic.
4175
4176 @item subscribe-level
4177 When subscribing new groups by topic (see the @code{subscribe} parameter),
4178 the group will be subscribed with the level specified in the
4179 @code{subscribe-level} instead of @code{gnus-level-default-subscribed}.
4180
4181 @end table
4182
4183 Group parameters (of course) override topic parameters, and topic
4184 parameters in sub-topics override topic parameters in super-topics.  You
4185 know.  Normal inheritance rules.  (@dfn{Rules} is here a noun, not a
4186 verb, although you may feel free to disagree with me here.)
4187
4188 @example
4189 @group
4190 Gnus
4191   Emacs
4192      3: comp.emacs
4193      2: alt.religion.emacs
4194    452: alt.sex.emacs
4195     Relief
4196      452: alt.sex.emacs
4197        0: comp.talk.emacs.recovery
4198   Misc
4199      8: comp.binaries.fractals
4200     13: comp.sources.unix
4201    452: alt.sex.emacs
4202 @end group
4203 @end example
4204
4205 The @samp{Emacs} topic has the topic parameter @code{(score-file
4206 . "emacs.SCORE")}; the @samp{Relief} topic has the topic parameter
4207 @code{(score-file . "relief.SCORE")}; and the @samp{Misc} topic has the
4208 topic parameter @code{(score-file . "emacs.SCORE")}.  In addition,
4209 @* @samp{alt.religion.emacs} has the group parameter @code{(score-file
4210 . "religion.SCORE")}.
4211
4212 Now, when you enter @samp{alt.sex.emacs} in the @samp{Relief} topic, you
4213 will get the @file{relief.SCORE} home score file.  If you enter the same
4214 group in the @samp{Emacs} topic, you'll get the @file{emacs.SCORE} home
4215 score file.  If you enter the group @samp{alt.religion.emacs}, you'll
4216 get the @file{religion.SCORE} home score file.
4217
4218 This seems rather simple and self-evident, doesn't it?  Well, yes.  But
4219 there are some problems, especially with the @code{total-expiry}
4220 parameter.  Say you have a mail group in two topics; one with
4221 @code{total-expiry} and one without.  What happens when you do @kbd{M-x
4222 gnus-expire-all-expirable-groups}?  Gnus has no way of telling which one
4223 of these topics you mean to expire articles from, so anything may
4224 happen.  In fact, I hereby declare that it is @dfn{undefined} what
4225 happens.  You just have to be careful if you do stuff like that.
4226
4227
4228 @node Non-ASCII Group Names
4229 @section Accessing groups of non-English names
4230 @cindex non-ascii group names
4231
4232 There are some news servers that provide groups of which the names are
4233 expressed with their native languages in the world.  For instance, in a
4234 certain news server there are some newsgroups of which the names are
4235 spelled in Chinese, where people are talking in Chinese.  You can, of
4236 course, subscribe to such news groups using Gnus.  Currently Gnus
4237 supports non-@acronym{ASCII} group names not only with the @code{nntp}
4238 back end but also with the @code{nnml} back end and the @code{nnrss}
4239 back end.
4240
4241 Every such group name is encoded by a certain charset in the server
4242 side (in an @acronym{NNTP} server its administrator determines the
4243 charset, but for groups in the other back ends it is determined by you).
4244 Gnus has to display the decoded ones for you in the group buffer and the
4245 article buffer, and needs to use the encoded ones when communicating
4246 with servers.  However, Gnus doesn't know what charset is used for each
4247 non-@acronym{ASCII} group name.  The following two variables are just
4248 the ones for telling Gnus what charset should be used for each group:
4249
4250 @table @code
4251 @item gnus-group-name-charset-method-alist
4252 @vindex gnus-group-name-charset-method-alist
4253 An alist of select methods and charsets.  The default value is
4254 @code{nil}.  The names of groups in the server specified by that select
4255 method are all supposed to use the corresponding charset.  For example:
4256
4257 @lisp
4258 (setq gnus-group-name-charset-method-alist
4259       '(((nntp "news.com.cn") . cn-gb-2312)))
4260 @end lisp
4261
4262 Charsets specified for groups with this variable are preferred to the
4263 ones specified for the same groups with the
4264 @code{gnus-group-name-charset-group-alist} variable (see below).
4265
4266 A select method can be very long, like:
4267
4268 @lisp
4269 (nntp "gmane"
4270       (nntp-address "news.gmane.org")
4271       (nntp-end-of-line "\n")
4272       (nntp-open-connection-function
4273        nntp-open-via-rlogin-and-telnet)
4274       (nntp-via-rlogin-command "ssh")
4275       (nntp-via-rlogin-command-switches
4276        ("-C" "-t" "-e" "none"))
4277       (nntp-via-address @dots{}))
4278 @end lisp
4279
4280 In that case, you can truncate it into @code{(nntp "gmane")} in this
4281 variable.  That is, it is enough to contain only the back end name and
4282 the server name.
4283
4284 @item gnus-group-name-charset-group-alist
4285 @cindex UTF-8 group names
4286 @vindex gnus-group-name-charset-group-alist
4287 An alist of regexp of group name and the charset for group names.
4288 @code{((".*" . utf-8))} is the default value if UTF-8 is supported,
4289 otherwise the default is @code{nil}.  For example:
4290
4291 @lisp
4292 (setq gnus-group-name-charset-group-alist
4293       '(("\\.com\\.cn:" . cn-gb-2312)
4294         (".*" . utf-8)))
4295 @end lisp
4296
4297 Note that this variable is ignored if the match is made with
4298 @code{gnus-group-name-charset-method-alist}.
4299 @end table
4300
4301 Those two variables are used also to determine the charset for encoding
4302 and decoding non-@acronym{ASCII} group names that are in the back ends
4303 other than @code{nntp}.  It means that it is you who determine it.  If
4304 you do nothing, the charset used for group names in those back ends will
4305 all be @code{utf-8} because of the last element of
4306 @code{gnus-group-name-charset-group-alist}.
4307
4308 There is one more important variable for non-@acronym{ASCII} group
4309 names.  @emph{XEmacs users must set this}.  Emacs users necessarily need
4310 not do:
4311
4312 @table @code
4313 @item nnmail-pathname-coding-system
4314 The value of this variable should be a coding system or @code{nil}
4315 (which is the default).  The @code{nnml} back end, the @code{nnrss} back
4316 end, the @acronym{NNTP} marks feature (@pxref{NNTP marks}), the agent,
4317 and the cache use non-@acronym{ASCII} group names in those files and
4318 directories.  This variable overrides the value of
4319 @code{file-name-coding-system} which specifies the coding system used
4320 when encoding and decoding those file names and directory names.
4321
4322 In XEmacs (with the @code{mule} feature), @code{file-name-coding-system}
4323 is the only means to specify the coding system used to encode and decode
4324 file names.  Therefore, @emph{you, XEmacs users, have to set it} to the
4325 coding system that is suitable to encode and decode non-@acronym{ASCII}
4326 group names.  On the other hand, Emacs uses the value of
4327 @code{default-file-name-coding-system} if @code{file-name-coding-system}
4328 is @code{nil}.  Normally the value of
4329 @code{default-file-name-coding-system} is initialized according to the
4330 locale, so you will need to do nothing if the value is suitable to
4331 encode and decode non-@acronym{ASCII} group names.
4332
4333 The value of this variable (or @code{default-file-name-coding-system})
4334 does not necessarily need to be the same value that is determined by
4335 @code{gnus-group-name-charset-method-alist} and
4336 @code{gnus-group-name-charset-group-alist}.
4337
4338 If you want to subscribe to the groups spelled in Chinese but
4339 @code{default-file-name-coding-system} is initialized by default to
4340 @code{iso-latin-1} for example, that is the most typical case where you
4341 have to set @code{nnmail-pathname-coding-system} even if you are an
4342 Emacs user.  The @code{utf-8} coding system is a good candidate for it.
4343 Otherwise, you may change the locale in your system so that
4344 @code{default-file-name-coding-system} may be initialized to an
4345 appropriate value, instead of specifying this variable.
4346 @end table
4347
4348 Note that when you copy or move articles from a non-@acronym{ASCII}
4349 group to another group, the charset used to encode and decode group
4350 names should be the same in both groups.  Otherwise the Newsgroups
4351 header will be displayed incorrectly in the article buffer.
4352
4353
4354 @node Searching
4355 @section Searching
4356
4357 @menu
4358 * nnir::                     Searching on IMAP, with swish, namazu, etc.
4359 * nnmairix::                 Searching maildir, MH or mbox with Mairix.
4360 @end menu
4361
4362 @cindex Searching
4363
4364 FIXME: This node is a stub.
4365
4366 FIXME: Add a brief overview of Gnus search capabilities.  A brief
4367 comparison of nnir, nnmairix, contrib/gnus-namazu would be nice
4368 as well.
4369
4370 FIXME: Explain difference to @ref{Searching for Articles}, add reference
4371 and back-reference.
4372
4373 @node nnir
4374 @subsection nnir
4375
4376 FIXME: As a first step, convert the commentary of @file{nnir} to texi.
4377 @cindex nnir
4378
4379 @node nnmairix
4380 @subsection nnmairix
4381
4382 @cindex mairix 
4383 @cindex nnmairix
4384 This paragraph describes how to set up mairix and the back end
4385 @code{nnmairix} for indexing and searching your mail from within
4386 Gnus.  Additionally, you can create permanent ``smart'' groups which are
4387 bound to mairix searches and are automatically updated.
4388
4389 @menu
4390 * About mairix::                About the mairix mail search engine
4391 * nnmairix requirements::       What you will need for using nnmairix
4392 * What nnmairix does::          What does nnmairix actually do?
4393 * Setting up mairix::           Set up your mairix installation
4394 * Configuring nnmairix::        Set up the nnmairix back end
4395 * nnmairix keyboard shortcuts:: List of available keyboard shortcuts
4396 * Propagating marks::           How to propagate marks from nnmairix groups
4397 * nnmairix tips and tricks::    Some tips, tricks and examples
4398 * nnmairix caveats::            Some more stuff you might want to know
4399 @end menu
4400
4401 @c FIXME: The markup in this section might need improvement.
4402 @c E.g. adding @samp, @var, @file, @command, etc.
4403 @c Cf. (info "(texinfo)Indicating")
4404
4405 @node About mairix
4406 @subsubsection About mairix
4407
4408 Mairix is a tool for indexing and searching words in locally stored
4409 mail.  It was written by Richard Curnow and is licensed under the
4410 GPL.  Mairix comes with most popular GNU/Linux distributions, but it also
4411 runs under Windows (with cygwin), Mac OS X and Solaris.  The homepage can
4412 be found at
4413 @uref{http://www.rpcurnow.force9.co.uk/mairix/index.html}
4414
4415 Though mairix might not be as flexible as other search tools like
4416 swish++ or namazu, which you can use via the @code{nnir} back end, it
4417 has the prime advantage of being incredibly fast.  On current systems, it
4418 can easily search through headers and message bodies of thousands and
4419 thousands of mails in well under a second.  Building the database
4420 necessary for searching might take a minute or two, but only has to be
4421 done once fully.  Afterwards, the updates are done incrementally and
4422 therefore are really fast, too.  Additionally, mairix is very easy to set
4423 up.
4424
4425 For maximum speed though, mairix should be used with mails stored in
4426 @code{Maildir} or @code{MH} format (this includes the @code{nnml} back
4427 end), although it also works with mbox.  Mairix presents the search
4428 results by populating a @emph{virtual} maildir/MH folder with symlinks
4429 which point to the ``real'' message files (if mbox is used, copies are
4430 made).  Since mairix already presents search results in such a virtual
4431 mail folder, it is very well suited for using it as an external program
4432 for creating @emph{smart} mail folders, which represent certain mail
4433 searches.  This is similar to a Kiboze group (@pxref{Kibozed Groups}),
4434 but much faster.
4435
4436 @node nnmairix requirements
4437 @subsubsection nnmairix requirements
4438
4439 Mairix searches local mail---that means, mairix absolutely must have
4440 direct access to your mail folders.  If your mail resides on another
4441 server (e.g. an @acronym{IMAP} server) and you happen to have shell
4442 access, @code{nnmairix} supports running mairix remotely, e.g. via ssh.
4443
4444 Additionally, @code{nnmairix} only supports the following Gnus back
4445 ends: @code{nnml}, @code{nnmaildir}, and @code{nnimap}.  You must use
4446 one of these back ends for using @code{nnmairix}.  Other back ends, like
4447 @code{nnmbox}, @code{nnfolder} or @code{nnmh}, won't work.
4448
4449 If you absolutely must use mbox and still want to use @code{nnmairix},
4450 you can set up a local @acronym{IMAP} server, which you then access via
4451 @code{nnimap}.  This is a rather massive setup for accessing some mbox
4452 files, so just change to MH or Maildir already...
4453
4454 @node What nnmairix does
4455 @subsubsection What nnmairix does
4456
4457 The back end @code{nnmairix} enables you to call mairix from within Gnus,
4458 either to query mairix with a search term or to update the
4459 database.  While visiting a message in the summary buffer, you can use
4460 several pre-defined shortcuts for calling mairix, e.g. to quickly
4461 search for all mails from the sender of the current message or to
4462 display the whole thread associated with the message, even if the
4463 mails are in different folders.
4464
4465 Additionally, you can create permanent @code{nnmairix} groups which are bound
4466 to certain mairix searches.  This way, you can easily create a group
4467 containing mails from a certain sender, with a certain subject line or
4468 even for one specific thread based on the Message-ID.  If you check for
4469 new mail in these folders (e.g. by pressing @kbd{g} or @kbd{M-g}), they
4470 automatically update themselves by calling mairix. 
4471
4472 You might ask why you need @code{nnmairix} at all, since mairix already
4473 creates the group, populates it with links to the mails so that you can
4474 then access it with Gnus, right? Well, this @emph{might} work, but often
4475 does not---at least not without problems.  Most probably you will get
4476 strange article counts, and sometimes you might see mails which Gnus
4477 claims have already been canceled and are inaccessible.  This is due to
4478 the fact that Gnus isn't really amused when things are happening behind
4479 its back.  Another problem can be the mail back end itself, e.g. if you
4480 use mairix with an @acronym{IMAP} server (I had Dovecot complaining
4481 about corrupt index files when mairix changed the contents of the search
4482 group).  Using @code{nnmairix} should circumvent these problems.
4483
4484 @code{nnmairix} is not really a mail back end---it's actually more like a
4485 wrapper, sitting between a ``real'' mail back end where mairix stores the
4486 searches and the Gnus front end.  You can choose between three different
4487 mail back ends for the mairix folders: @code{nnml}, @code{nnmaildir} or
4488 @code{nnimap}.  @code{nnmairix} will call the mairix binary so that the
4489 search results are stored in folders named
4490 @code{zz_mairix-<NAME>-<NUMBER>} on this mail back end, but it will
4491 present these folders in the Gnus front end only with @code{<NAME>}.  You
4492 can use an existing mail back end where you already store your mail, but
4493 if you're uncomfortable with @code{nnmairix} creating new mail groups
4494 alongside your other mail, you can also create e.g. a new
4495 @code{nnmaildir} server exclusively for mairix.  However, a special case
4496 exists if you want to use mairix remotely on an IMAP server with
4497 @code{nnimap}---here the mairix folders and your other mail must be on
4498 the same @code{nnimap} back end.
4499
4500 @node Setting up mairix
4501 @subsubsection Setting up mairix
4502
4503 First: create a backup of your mail folders (@pxref{nnmairix caveats}).
4504
4505 Setting up mairix is easy: simply create a @file{.mairixrc} file with
4506 (at least) the following entries:
4507
4508 @example
4509 # Your Maildir/MH base folder
4510 base=~/Maildir
4511 @end example
4512
4513 This is the base folder for your mails.  All the following directories
4514 are relative to this base folder.  If you want to use @code{nnmairix}
4515 with @code{nnimap}, this base directory has to point to the mail
4516 directory where the @acronym{IMAP} server stores the mail folders!
4517
4518 @example
4519 maildir= ... your maildir folders which should be indexed ...
4520 mh= ... your nnml/mh folders which should be indexed ...
4521 mbox = ... your mbox files which should be indexed ...
4522 @end example
4523
4524 This specifies all your mail folders and mbox files (relative to the
4525 base directory!) you want to index with mairix.  Note that the
4526 @code{nnml} back end saves mails in MH format, so you have to put those
4527 directories in the @code{mh} line.  See the example at the end of this
4528 section and mairixrc's man-page for further details.
4529
4530 @example
4531 omit=zz_mairix-*
4532 @end example
4533
4534 @vindex nnmairix-group-prefix
4535 This should make sure that you don't accidentally index the mairix
4536 search results.  You can change the prefix of these folders with the
4537 variable @code{nnmairix-group-prefix}.
4538
4539 @example
4540 mformat= ... 'maildir' or 'mh' ...
4541 database= ... location of database file ...
4542 @end example
4543
4544 The @code{format} setting specifies the output format for the mairix
4545 search folder.  Set this to @code{mh} if you want to access search results
4546 with @code{nnml}.  Otherwise choose @code{maildir}.
4547
4548 To summarize, here is my shortened @file{.mairixrc} file as an example:
4549
4550 @example
4551 base=~/Maildir
4552 maildir=.personal:.work:.logcheck:.sent
4553 mh=../Mail/nnml/*...
4554 mbox=../mboxmail/mailarchive_year*
4555 mformat=maildir
4556 omit=zz_mairix-*
4557 database=~/.mairixdatabase
4558 @end example
4559
4560 In this case, the base directory is @file{~/Maildir}, where all my Maildir
4561 folders are stored.  As you can see, the folders are separated by
4562 colons.  If you wonder why every folder begins with a dot: this is
4563 because I use Dovecot as @acronym{IMAP} server, which again uses
4564 @code{Maildir++} folders.  For testing nnmairix, I also have some
4565 @code{nnml} mail, which is saved in @file{~/Mail/nnml}.  Since this has
4566 to be specified relative to the @code{base} directory, the @code{../Mail}
4567 notation is needed.  Note that the line ends in @code{*...}, which means
4568 to recursively scan all files under this directory.  Without the three
4569 dots, the wildcard @code{*} will not work recursively.  I also have some
4570 old mbox files with archived mail lying around in @file{~/mboxmail}.
4571 The other lines should be obvious.
4572
4573 See the man page for @code{mairixrc} for details and further options,
4574 especially regarding wildcard usage, which may be a little different
4575 than you are used to.
4576
4577 Now simply call @code{mairix} to create the index for the first time.
4578 Note that this may take a few minutes, but every following index will do
4579 the updates incrementally and hence is very fast.
4580
4581 @node Configuring nnmairix
4582 @subsubsection Configuring nnmairix
4583
4584 In group mode, type @kbd{G b c}
4585 (@code{nnmairix-create-server-and-default-group}).  This will ask you for all
4586 necessary information and create a @code{nnmairix} server as a foreign
4587 server.  You will have to specify the following:
4588
4589 @itemize @bullet
4590
4591 @item
4592 The @strong{name} of the @code{nnmairix} server---choose whatever you
4593 want.
4594
4595 @item
4596 The name of the @strong{back end server} where mairix should store its
4597 searches.  This must be a full server name, like @code{nnml:mymail}.
4598 Just hit @kbd{TAB} to see the available servers.  Currently, servers
4599 which are accessed through @code{nnmaildir}, @code{nnimap} and
4600 @code{nnml} are supported.  As explained above, for locally stored
4601 mails, this can be an existing server where you store your mails.
4602 However, you can also create e.g. a new @code{nnmaildir} server
4603 exclusively for @code{nnmairix} in your secondary select methods
4604 (@pxref{Finding the News}).  If you want to use mairix remotely on an
4605 @acronym{IMAP} server, you have to choose the corresponding
4606 @code{nnimap} server here.
4607
4608 @item
4609 @vindex nnmairix-mairix-search-options
4610 The @strong{command} to call the mairix binary.  This will usually just
4611 be @code{mairix}, but you can also choose something like @code{ssh
4612 SERVER mairix} if you want to call mairix remotely, e.g. on your
4613 @acronym{IMAP} server.  If you want to add some default options to
4614 mairix, you could do this here, but better use the variable
4615 @code{nnmairix-mairix-search-options} instead.
4616
4617 @item
4618 The name of the @strong{default search group}.  This will be the group
4619 where all temporary mairix searches are stored, i.e. all searches which
4620 are not bound to permanent @code{nnmairix} groups.  Choose whatever you
4621 like.
4622
4623 @item
4624 If the mail back end is @code{nnimap} or @code{nnmaildir}, you will be
4625 asked if you work with @strong{Maildir++}, i.e. with hidden maildir
4626 folders (=beginning with a dot).  For example, you have to answer
4627 @samp{yes} here if you work with the Dovecot @acronym{IMAP}
4628 server.  Otherwise, you should answer @samp{no} here.
4629
4630 @end itemize
4631
4632 @node nnmairix keyboard shortcuts
4633 @subsubsection nnmairix keyboard shortcuts
4634
4635 In group mode:
4636
4637 @table @kbd
4638
4639 @item G b c
4640 @kindex G b c (Group)
4641 @findex nnmairix-create-server-and-default-group
4642 Creates @code{nnmairix} server and default search group for this server
4643 (@code{nnmairix-create-server-and-default-group}).  You should have done
4644 this by now (@pxref{Configuring nnmairix}).
4645
4646 @item G b s
4647 @kindex G b s (Group)
4648 @findex nnmairix-search
4649 Prompts for query which is then sent to the mairix binary.  Search
4650 results are put into the default search group which is automatically
4651 displayed (@code{nnmairix-search}).
4652
4653 @item G b m
4654 @kindex G b m (Group)
4655 @findex nnmairix-widget-search
4656 Allows you to create a mairix search or a permanent group more
4657 comfortably using graphical widgets, similar to a customization
4658 group.  Just try it to see how it works (@code{nnmairix-widget-search}).
4659
4660 @item G b i
4661 @kindex G b i (Group)
4662 @findex nnmairix-search-interactive
4663 Another command for creating a mairix query more comfortably, but uses
4664 only the minibuffer (@code{nnmairix-search-interactive}).
4665
4666 @item G b g
4667 @kindex G b g (Group)
4668 @findex nnmairix-create-search-group
4669 Creates a permanent group which is associated with a search query
4670 (@code{nnmairix-create-search-group}).  The @code{nnmairix} back end
4671 automatically calls mairix when you update this group with @kbd{g} or
4672 @kbd{M-g}.
4673
4674 @item G b q
4675 @kindex G b q (Group)
4676 @findex nnmairix-group-change-query-this-group
4677 Changes the search query for the @code{nnmairix} group under cursor
4678 (@code{nnmairix-group-change-query-this-group}).
4679
4680 @item G b t
4681 @kindex G b t (Group)
4682 @findex nnmairix-group-toggle-threads-this-group
4683 Toggles the 'threads' parameter for the @code{nnmairix} group under cursor,
4684 i.e.  if you want see the whole threads of the found messages
4685 (@code{nnmairix-group-toggle-threads-this-group}).
4686
4687 @item G b u
4688 @kindex G b u (Group)
4689 @findex nnmairix-update-database
4690 @vindex nnmairix-mairix-update-options
4691 Calls mairix binary for updating the database
4692 (@code{nnmairix-update-database}).  The default parameters are @code{-F}
4693 and @code{-Q} for making this as fast as possible (see variable
4694 @code{nnmairix-mairix-update-options} for defining these default
4695 options).
4696
4697 @item G b r
4698 @kindex G b r (Group)
4699 @findex nnmairix-group-toggle-readmarks-this-group
4700 Keep articles in this @code{nnmairix} group always read or unread, or leave the
4701 marks unchanged (@code{nnmairix-group-toggle-readmarks-this-group}).
4702
4703 @item G b d
4704 @kindex G b d (Group)
4705 @findex nnmairix-group-delete-recreate-this-group
4706 Recreate @code{nnmairix} group on the ``real'' mail back end
4707 (@code{nnmairix-group-delete-recreate-this-group}).  You can do this if
4708 you always get wrong article counts with a @code{nnmairix} group.
4709
4710 @item G b a
4711 @kindex G b a (Group)
4712 @findex nnmairix-group-toggle-allowfast-this-group
4713 Toggles the @code{allow-fast} parameters for group under cursor
4714 (@code{nnmairix-group-toggle-allowfast-this-group}).  The default
4715 behavior of @code{nnmairix} is to do a mairix search every time you
4716 update or enter the group.  With the @code{allow-fast} parameter set,
4717 mairix will only be called when you explicitly update the group, but not
4718 upon entering.  This makes entering the group faster, but it may also
4719 lead to dangling symlinks if something changed between updating and
4720 entering the group which is not yet in the mairix database.
4721
4722 @item G b p
4723 @kindex G b p (Group)
4724 @findex nnmairix-group-toggle-propmarks-this-group
4725 Toggle marks propagation for this group
4726 (@code{nnmairix-group-toggle-propmarks-this-group}).  (@pxref{Propagating
4727 marks}).
4728
4729 @item G b o
4730 @kindex G b o (Group)
4731 @findex nnmairix-propagate-marks
4732 Manually propagate marks (@code{nnmairix-propagate-marks}); needed only when
4733 @code{nnmairix-propagate-marks-upon-close} is set to @code{nil}.
4734
4735 @end table
4736
4737 In summary mode:
4738
4739 @table @kbd
4740
4741 @item $ m
4742 @kindex $ m (Summary)
4743 @findex nnmairix-widget-search-from-this-article
4744 Allows you to create a mairix query or group based on the current
4745 message using graphical widgets (same as @code{nnmairix-widget-search})
4746 (@code{nnmairix-widget-search-from-this-article}).
4747
4748 @item $ g
4749 @kindex $ g (Summary)
4750 @findex nnmairix-create-search-group-from-message
4751 Interactively creates a new search group with query based on the current
4752 message, but uses the minibuffer instead of graphical widgets
4753 (@code{nnmairix-create-search-group-from-message}).
4754
4755 @item $ t
4756 @kindex $ t (Summary)
4757 @findex nnmairix-search-thread-this-article
4758 Searches thread for the current article
4759 (@code{nnmairix-search-thread-this-article}).  This is effectively a
4760 shortcut for calling @code{nnmairix-search} with @samp{m:msgid} of the
4761 current article and enabled threads.
4762
4763 @item $ f
4764 @kindex $ f (Summary)
4765 @findex nnmairix-search-from-this-article
4766 Searches all messages from sender of the current article
4767 (@code{nnmairix-search-from-this-article}).  This is a shortcut for
4768 calling @code{nnmairix-search} with @samp{f:From}.
4769
4770 @item $ o
4771 @kindex $ o (Summary)
4772 @findex nnmairix-goto-original-article
4773 (Only in @code{nnmairix} groups!) Tries determine the group this article
4774 originally came from and displays the article in this group, so that
4775 e.g. replying to this article the correct posting styles/group
4776 parameters are applied (@code{nnmairix-goto-original-article}).  This
4777 function will use the registry if available, but can also parse the
4778 article file name as a fallback method.
4779
4780 @item $ u
4781 @kindex $ u (Summary)
4782 @findex nnmairix-remove-tick-mark-original-article
4783 Remove possibly existing tick mark from original article
4784 (@code{nnmairix-remove-tick-mark-original-article}).  (@pxref{nnmairix
4785 tips and tricks}).
4786
4787 @end table
4788
4789 @node Propagating marks
4790 @subsubsection Propagating marks
4791
4792 First of: you really need a patched mairix binary for using the marks
4793 propagation feature efficiently. Otherwise, you would have to update
4794 the mairix database all the time. You can get the patch at
4795
4796 @uref{http://m61s02.vlinux.de/mairix-maildir-patch.tar}
4797
4798 You need the mairix v0.21 source code for this patch; everything else
4799 is explained in the accompanied readme file. If you don't want to use
4800 marks propagation, you don't have to apply these patches, but they also
4801 fix some annoyances regarding changing maildir flags, so it might still
4802 be useful to you.
4803
4804 With the patched mairix binary, you can use @code{nnmairix} as an
4805 alternative to mail splitting (@pxref{Fancy Mail Splitting}). For
4806 example, instead of splitting all mails from @samp{david@@foobar.com}
4807 into a group, you can simply create a search group with the query
4808 @samp{f:david@@foobar.com}. This is actually what ``smart folders'' are
4809 all about: simply put everything in one mail folder and dynamically
4810 create searches instead of splitting. This is more flexible, since you
4811 can dynamically change your folders any time you want to. This also
4812 implies that you will usually read your mails in the @code{nnmairix}
4813 groups instead of your ``real'' mail groups.
4814
4815 There is one problem, though: say you got a new mail from
4816 @samp{david@@foobar.com}; it will now show up in two groups, the
4817 ``real'' group (your INBOX, for example) and in the @code{nnmairix}
4818 search group (provided you have updated the mairix database). Now you
4819 enter the @code{nnmairix} group and read the mail. The mail will be
4820 marked as read, but only in the @code{nnmairix} group---in the ``real''
4821 mail group it will be still shown as unread.
4822
4823 You could now catch up the mail group (@pxref{Group Data}), but this is
4824 tedious and error prone, since you may overlook mails you don't have
4825 created @code{nnmairix} groups for. Of course, you could first use
4826 @code{nnmairix-goto-original-article} (@pxref{nnmairix keyboard
4827 shortcuts}) and then read the mail in the original group, but that's
4828 even more cumbersome.
4829
4830 Clearly, the easiest way would be if marks could somehow be
4831 automatically set for the original article. This is exactly what
4832 @emph{marks propagation} is about.
4833
4834 Marks propagation is deactivated by default. You can activate it for a
4835 certain @code{nnmairix} group with
4836 @code{nnmairix-group-toggle-propmarks-this-group} (bound to @kbd{G b
4837 p}). This function will warn you if you try to use it with your default
4838 search group; the reason is that the default search group is used for
4839 temporary searches, and it's easy to accidentally propagate marks from
4840 this group. However, you can ignore this warning if you really want to.
4841
4842 With marks propagation enabled, all the marks you set in a @code{nnmairix}
4843 group should now be propagated to the original article. For example,
4844 you can now tick an article (by default with @kbd{!}) and this mark should
4845 magically be set for the original article, too.
4846
4847 A few more remarks which you may or may not want to know:
4848
4849 @vindex nnmairix-propagate-marks-upon-close
4850 Marks will not be set immediately, but only upon closing a group. This
4851 not only makes marks propagation faster, it also avoids problems with
4852 dangling symlinks when dealing with maildir files (since changing flags
4853 will change the file name). You can also control when to propagate marks
4854 via @code{nnmairix-propagate-marks-upon-close} (see the doc-string for
4855 details).
4856
4857 Obviously, @code{nnmairix} will have to look up the original group for every
4858 article you want to set marks for. If available, @code{nnmairix} will first use
4859 the registry for determining the original group. The registry is very
4860 fast, hence you should really, really enable the registry when using
4861 marks propagation. If you don't have to worry about RAM and disc space,
4862 set @code{gnus-registry-max-entries} to a large enough value; to be on
4863 the safe side, choose roughly the amount of mails you index with mairix.
4864
4865 @vindex nnmairix-only-use-registry
4866 If you don't want to use the registry or the registry hasn't seen the
4867 original article yet, @code{nnmairix} will use an additional mairix
4868 search for determining the file name of the article. This, of course, is
4869 way slower than the registry---if you set hundreds or even thousands of
4870 marks this way, it might take some time. You can avoid this situation by
4871 setting @code{nnmairix-only-use-registry} to t.
4872
4873 Maybe you also want to propagate marks the other way round, i.e. if you
4874 tick an article in a "real" mail group, you'd like to have the same
4875 article in a @code{nnmairix} group ticked, too. For several good
4876 reasons, this can only be done efficiently if you use maildir. To
4877 immediately contradict myself, let me mention that it WON'T work with
4878 @code{nnmaildir}, since @code{nnmaildir} stores the marks externally and
4879 not in the file name. Therefore, propagating marks to @code{nnmairix}
4880 groups will usually only work if you use an IMAP server which uses
4881 maildir as its file format.
4882
4883 @vindex nnmairix-propagate-marks-to-nnmairix-groups
4884 If you work with this setup, just set
4885 @code{nnmairix-propagate-marks-to-nnmairix-groups} to @code{t} and see what
4886 happens. If you don't like what you see, just set it to @code{nil} again. One
4887 problem might be that you get a wrong number of unread articles; this
4888 usually happens when you delete or expire articles in the original
4889 groups. When this happens, you can recreate the @code{nnmairix} group on the
4890 back end using @kbd{G b d}.
4891
4892 @node nnmairix tips and tricks
4893 @subsubsection nnmairix tips and tricks
4894
4895 @itemize
4896 @item
4897 Checking Mail
4898
4899 @findex nnmairix-update-groups
4900 I put all my important mail groups at group level 1. The mairix groups
4901 have group level 5, so they do not get checked at start up (@pxref{Group
4902 Levels}).
4903
4904 I use the following to check for mails:
4905
4906 @lisp
4907 (defun my-check-mail-mairix-update (level)
4908   (interactive "P")
4909   ;; if no prefix given, set level=1
4910   (gnus-group-get-new-news (or level 1))
4911   (nnmairix-update-groups "mairixsearch" t t)
4912   (gnus-group-list-groups))
4913
4914 (define-key gnus-group-mode-map "g" 'my-check-mail-mairix-update)
4915 @end lisp
4916
4917 Instead of @samp{"mairixsearch"} use the name of your @code{nnmairix}
4918 server. See the doc string for @code{nnmairix-update-groups} for
4919 details.
4920
4921 @item
4922 Example: search group for ticked articles
4923
4924 For example, you can create a group for all ticked articles, where the
4925 articles always stay unread:
4926
4927 Hit @kbd{G b g}, enter group name (e.g. @samp{important}), use
4928 @samp{F:f} as query and do not include threads.
4929
4930 Now activate marks propagation for this group by using @kbd{G b p}. Then
4931 activate the always-unread feature by using @kbd{G b r} twice.
4932
4933 So far so good---but how do you remove the tick marks in the @code{nnmairix}
4934 group?  There are two options: You may simply use
4935 @code{nnmairix-remove-tick-mark-original-article} (bound to @kbd{$ u}) to remove
4936 tick marks from the original article. The other possibility is to set
4937 @code{nnmairix-propagate-marks-to-nnmairix-groups} to @code{t}, but see the above
4938 comments about this option.  If it works for you, the tick marks should
4939 also exist in the @code{nnmairix} group and you can remove them as usual,
4940 e.g. by marking an article as read.
4941
4942 When you have removed a tick mark from the original article, this
4943 article should vanish from the @code{nnmairix} group after you have updated the
4944 mairix database and updated the group.  Fortunately, there is a function
4945 for doing exactly that: @code{nnmairix-update-groups}. See the previous code
4946 snippet and the doc string for details.
4947
4948 @item
4949 Dealing with auto-subscription of mail groups
4950
4951 As described before, all @code{nnmairix} groups are in fact stored on
4952 the mail back end in the form @samp{zz_mairix-<NAME>-<NUMBER>}. You can
4953 see them when you enter the back end server in the server buffer. You
4954 should not subscribe these groups! Unfortunately, these groups will
4955 usually get @emph{auto-subscribed} when you use @code{nnmaildir} or
4956 @code{nnml}, i.e. you will suddenly see groups of the form
4957 @samp{zz_mairix*} pop up in your group buffer. If this happens to you,
4958 simply kill these groups with C-k.  For avoiding this, turn off
4959 auto-subscription completely by setting the variable
4960 @code{gnus-auto-subscribed-groups} to @code{nil} (@pxref{Filtering New
4961 Groups}), or if you like to keep this feature use the following kludge
4962 for turning it off for all groups beginning with @samp{zz_}:
4963
4964 @lisp
4965 (setq gnus-auto-subscribed-groups
4966       "^\\(nnml\\|nnfolder\\|nnmbox\\|nnmh\\|nnbabyl\\|nnmaildir\\).*:\\([^z]\\|z$\\|\\z[^z]\\|zz$\\|zz[^_]\\|zz_$\\).*")
4967 @end lisp
4968
4969 @end itemize
4970
4971 @node nnmairix caveats
4972 @subsubsection nnmairix caveats
4973
4974 @itemize
4975 @item
4976 If you use the Gnus agent (@pxref{Gnus Unplugged}): don't agentize
4977 @code{nnmairix} groups (though I have no idea what happens if you do).
4978
4979 @item
4980 If you use the Gnus registry: don't use the registry with
4981 @code{nnmairix} groups (put them in
4982 @code{gnus-registry-unfollowed-groups}).  Be @emph{extra careful} if
4983 you use @code{gnus-registry-split-fancy-with-parent}; mails which are
4984 split into @code{nnmairix} groups are usually gone for good as soon as
4985 you check the group for new mail (yes, it has happened to me...).
4986
4987 @item
4988 Therefore: @emph{Never ever} put ``real'' mails into @code{nnmairix}
4989 groups (you shouldn't be able to, anyway).
4990
4991 @item
4992 mairix does only support us-ascii characters.
4993
4994 @item
4995 @code{nnmairix} uses a rather brute force method to force Gnus to
4996 completely reread the group on the mail back end after mairix was
4997 called---it simply deletes and re-creates the group on the mail
4998 back end. So far, this has worked for me without any problems, and I
4999 don't see how @code{nnmairix} could delete other mail groups than its
5000 own, but anyway: you really should have a backup of your mail
5001 folders.
5002
5003 @item
5004 All necessary information is stored in the group parameters
5005 (@pxref{Group Parameters}). This has the advantage that no active file
5006 is needed, but also implies that when you kill a @code{nnmairix} group,
5007 it is gone for good.
5008
5009 @item
5010 @findex nnmairix-purge-old-groups
5011 If you create and kill a lot of @code{nnmairix} groups, the
5012 ``zz_mairix-*'' groups will accumulate on the mail back end server. To
5013 delete old groups which are no longer needed, call
5014 @code{nnmairix-purge-old-groups}. Note that this assumes that you don't
5015 save any ``real'' mail in folders of the form
5016 @code{zz_mairix-<NAME>-<NUMBER>}. You can change the prefix of
5017 @code{nnmairix} groups by changing the variable
5018 @code{nnmairix-group-prefix}.
5019
5020 @item
5021 The following only applies if you @emph{don't} use the mentioned patch
5022 for mairix (@pxref{Propagating marks}):
5023
5024 A problem can occur when using @code{nnmairix} with maildir folders and
5025 comes with the fact that maildir stores mail flags like @samp{Seen} or
5026 @samp{Replied} by appending chars @samp{S} and @samp{R} to the message
5027 file name, respectively. This implies that currently you would have to
5028 update the mairix database not only when new mail arrives, but also when
5029 mail flags are changing. The same applies to new mails which are indexed
5030 while they are still in the @samp{new} folder but then get moved to
5031 @samp{cur} when Gnus has seen the mail. If you don't update the database
5032 after this has happened, a mairix query can lead to symlinks pointing to
5033 non-existing files. In Gnus, these messages will usually appear with
5034 ``(none)'' entries in the header and can't be accessed. If this happens
5035 to you, using @kbd{G b u} and updating the group will usually fix this.
5036
5037 @end itemize
5038
5039 @node Misc Group Stuff
5040 @section Misc Group Stuff
5041
5042 @menu
5043 * Scanning New Messages::       Asking Gnus to see whether new messages have arrived.
5044 * Group Information::           Information and help on groups and Gnus.
5045 * Group Timestamp::             Making Gnus keep track of when you last read a group.
5046 * File Commands::               Reading and writing the Gnus files.
5047 * Sieve Commands::              Managing Sieve scripts.
5048 @end menu
5049
5050 @table @kbd
5051
5052 @item v
5053 @kindex v (Group)
5054 @cindex keys, reserved for users (Group)
5055 The key @kbd{v} is reserved for users.  You can bind it to some
5056 command or better use it as a prefix key.  For example:
5057
5058 @lisp
5059 (define-key gnus-group-mode-map (kbd "v j d")
5060   (lambda ()
5061     (interactive)
5062     (gnus-group-jump-to-group "nndraft:drafts")))
5063 @end lisp
5064
5065 On keys reserved for users in Emacs and on keybindings in general
5066 @xref{Keymaps, Keymaps, , emacs, The Emacs Editor}.
5067
5068 @item ^
5069 @kindex ^ (Group)
5070 @findex gnus-group-enter-server-mode
5071 Enter the server buffer (@code{gnus-group-enter-server-mode}).
5072 @xref{Server Buffer}.
5073
5074 @item a
5075 @kindex a (Group)
5076 @findex gnus-group-post-news
5077 Start composing a message (a news by default)
5078 (@code{gnus-group-post-news}).  If given a prefix, post to the group
5079 under the point.  If the prefix is 1, prompt for a group to post to.
5080 Contrary to what the name of this function suggests, the prepared
5081 article might be a mail instead of a news, if a mail group is specified
5082 with the prefix argument.  @xref{Composing Messages}.
5083
5084 @item m
5085 @kindex m (Group)
5086 @findex gnus-group-mail
5087 Mail a message somewhere (@code{gnus-group-mail}).  If given a prefix,
5088 use the posting style of the group under the point.  If the prefix is 1,
5089 prompt for a group name to find the posting style.
5090 @xref{Composing Messages}.
5091
5092 @item i
5093 @kindex i (Group)
5094 @findex gnus-group-news
5095 Start composing a news (@code{gnus-group-news}).  If given a prefix,
5096 post to the group under the point.  If the prefix is 1, prompt
5097 for group to post to.  @xref{Composing Messages}.
5098
5099 This function actually prepares a news even when using mail groups.
5100 This is useful for ``posting'' messages to mail groups without actually
5101 sending them over the network: they're just saved directly to the group
5102 in question.  The corresponding back end must have a request-post method
5103 for this to work though.
5104
5105 @item G z
5106 @kindex G z (Group)
5107 @findex gnus-group-compact-group
5108
5109 Compact the group under point (@code{gnus-group-compact-group}).
5110 Currently implemented only in nnml (@pxref{Mail Spool}).  This removes
5111 gaps between article numbers, hence getting a correct total article
5112 count.
5113
5114 @end table
5115
5116 Variables for the group buffer:
5117
5118 @table @code
5119
5120 @item gnus-group-mode-hook
5121 @vindex gnus-group-mode-hook
5122 is called after the group buffer has been
5123 created.
5124
5125 @item gnus-group-prepare-hook
5126 @vindex gnus-group-prepare-hook
5127 is called after the group buffer is
5128 generated.  It may be used to modify the buffer in some strange,
5129 unnatural way.
5130
5131 @item gnus-group-prepared-hook
5132 @vindex gnus-group-prepare-hook
5133 is called as the very last thing after the group buffer has been
5134 generated.  It may be used to move point around, for instance.
5135
5136 @item gnus-permanently-visible-groups
5137 @vindex gnus-permanently-visible-groups
5138 Groups matching this regexp will always be listed in the group buffer,
5139 whether they are empty or not.
5140
5141 @end table
5142
5143 @node Scanning New Messages
5144 @subsection Scanning New Messages
5145 @cindex new messages
5146 @cindex scanning new news
5147
5148 @table @kbd
5149
5150 @item g
5151 @kindex g (Group)
5152 @findex gnus-group-get-new-news
5153 @c @icon{gnus-group-get-new-news}
5154 Check the server(s) for new articles.  If the numerical prefix is used,
5155 this command will check only groups of level @var{arg} and lower
5156 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
5157 command will force a total re-reading of the active file(s) from the
5158 back end(s).
5159
5160 @item M-g
5161 @kindex M-g (Group)
5162 @findex gnus-group-get-new-news-this-group
5163 @vindex gnus-goto-next-group-when-activating
5164 @c @icon{gnus-group-get-new-news-this-group}
5165 Check whether new articles have arrived in the current group
5166 (@code{gnus-group-get-new-news-this-group}).
5167 @code{gnus-goto-next-group-when-activating} says whether this command is
5168 to move point to the next group or not.  It is @code{t} by default.
5169
5170 @findex gnus-activate-all-groups
5171 @cindex activating groups
5172 @item C-c M-g
5173 @kindex C-c M-g (Group)
5174 Activate absolutely all groups (@code{gnus-activate-all-groups}).
5175
5176 @item R
5177 @kindex R (Group)
5178 @cindex restarting
5179 @findex gnus-group-restart
5180 Restart Gnus (@code{gnus-group-restart}).  This saves the @file{.newsrc}
5181 file(s), closes the connection to all servers, clears up all run-time
5182 Gnus variables, and then starts Gnus all over again.
5183
5184 @end table
5185
5186 @vindex gnus-get-new-news-hook
5187 @code{gnus-get-new-news-hook} is run just before checking for new news.
5188
5189 @vindex gnus-after-getting-new-news-hook
5190 @code{gnus-after-getting-new-news-hook} is run after checking for new
5191 news.
5192
5193
5194 @node Group Information
5195 @subsection Group Information
5196 @cindex group information
5197 @cindex information on groups
5198
5199 @table @kbd
5200
5201
5202 @item H f
5203 @kindex H f (Group)
5204 @findex gnus-group-fetch-faq
5205 @vindex gnus-group-faq-directory
5206 @cindex FAQ
5207 @cindex ange-ftp
5208 Try to fetch the @acronym{FAQ} for the current group
5209 (@code{gnus-group-fetch-faq}).  Gnus will try to get the @acronym{FAQ}
5210 from @code{gnus-group-faq-directory}, which is usually a directory on
5211 a remote machine.  This variable can also be a list of directories.
5212 In that case, giving a prefix to this command will allow you to choose
5213 between the various sites.  @code{ange-ftp} (or @code{efs}) will be
5214 used for fetching the file.
5215
5216 If fetching from the first site is unsuccessful, Gnus will attempt to go
5217 through @code{gnus-group-faq-directory} and try to open them one by one.
5218
5219 @item H c
5220 @kindex H c (Group)
5221 @findex gnus-group-fetch-charter
5222 @vindex gnus-group-charter-alist
5223 @cindex charter
5224 Try to open the charter for the current group in a web browser
5225 (@code{gnus-group-fetch-charter}).  Query for a group if given a
5226 prefix argument.
5227
5228 Gnus will use @code{gnus-group-charter-alist} to find the location of
5229 the charter.  If no location is known, Gnus will fetch the control
5230 messages for the group, which in some cases includes the charter.
5231
5232 @item H C
5233 @kindex H C (Group)
5234 @findex gnus-group-fetch-control
5235 @vindex gnus-group-fetch-control-use-browse-url
5236 @cindex control message
5237 Fetch the control messages for the group from the archive at
5238 @code{ftp.isc.org} (@code{gnus-group-fetch-control}).  Query for a
5239 group if given a prefix argument.
5240
5241 If @code{gnus-group-fetch-control-use-browse-url} is non-@code{nil},
5242 Gnus will open the control messages in a browser using
5243 @code{browse-url}.  Otherwise they are fetched using @code{ange-ftp}
5244 and displayed in an ephemeral group.
5245
5246 Note that the control messages are compressed.  To use this command
5247 you need to turn on @code{auto-compression-mode} (@pxref{Compressed
5248 Files, ,Compressed Files, emacs, The Emacs Manual}).
5249
5250 @item H d
5251 @itemx C-c C-d
5252 @c @icon{gnus-group-describe-group}
5253 @kindex H d (Group)
5254 @kindex C-c C-d (Group)
5255 @cindex describing groups
5256 @cindex group description
5257 @findex gnus-group-describe-group
5258 Describe the current group (@code{gnus-group-describe-group}).  If given
5259 a prefix, force Gnus to re-read the description from the server.
5260
5261 @item M-d
5262 @kindex M-d (Group)
5263 @findex gnus-group-describe-all-groups
5264 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
5265 prefix, force Gnus to re-read the description file from the server.
5266
5267 @item H v
5268 @itemx V
5269 @kindex V (Group)
5270 @kindex H v (Group)
5271 @cindex version
5272 @findex gnus-version
5273 Display current Gnus version numbers (@code{gnus-version}).
5274
5275 @item ?
5276 @kindex ? (Group)
5277 @findex gnus-group-describe-briefly
5278 Give a very short help message (@code{gnus-group-describe-briefly}).
5279
5280 @item C-c C-i
5281 @kindex C-c C-i (Group)
5282 @cindex info
5283 @cindex manual
5284 @findex gnus-info-find-node
5285 Go to the Gnus info node (@code{gnus-info-find-node}).
5286 @end table
5287
5288
5289 @node Group Timestamp
5290 @subsection Group Timestamp
5291 @cindex timestamps
5292 @cindex group timestamps
5293
5294 It can be convenient to let Gnus keep track of when you last read a
5295 group.  To set the ball rolling, you should add
5296 @code{gnus-group-set-timestamp} to @code{gnus-select-group-hook}:
5297
5298 @lisp
5299 (add-hook 'gnus-select-group-hook 'gnus-group-set-timestamp)
5300 @end lisp
5301
5302 After doing this, each time you enter a group, it'll be recorded.
5303
5304 This information can be displayed in various ways---the easiest is to
5305 use the @samp{%d} spec in the group line format:
5306
5307 @lisp
5308 (setq gnus-group-line-format
5309       "%M\%S\%p\%P\%5y: %(%-40,40g%) %d\n")
5310 @end lisp
5311
5312 This will result in lines looking like:
5313
5314 @example
5315 *        0: mail.ding                                19961002T012943
5316          0: custom                                   19961002T012713
5317 @end example
5318
5319 As you can see, the date is displayed in compact ISO 8601 format.  This
5320 may be a bit too much, so to just display the date, you could say
5321 something like:
5322
5323 @lisp
5324 (setq gnus-group-line-format
5325       "%M\%S\%p\%P\%5y: %(%-40,40g%) %6,6~(cut 2)d\n")
5326 @end lisp
5327
5328 If you would like greater control of the time format, you can use a
5329 user-defined format spec.  Something like the following should do the
5330 trick:
5331
5332 @lisp
5333 (setq gnus-group-line-format
5334       "%M\%S\%p\%P\%5y: %(%-40,40g%) %ud\n")
5335 (defun gnus-user-format-function-d (headers)
5336   (let ((time (gnus-group-timestamp gnus-tmp-group)))
5337     (if time
5338         (format-time-string "%b %d  %H:%M" time)
5339       "")))
5340 @end lisp
5341
5342
5343 @node File Commands
5344 @subsection File Commands
5345 @cindex file commands
5346
5347 @table @kbd
5348
5349 @item r
5350 @kindex r (Group)
5351 @findex gnus-group-read-init-file
5352 @vindex gnus-init-file
5353 @cindex reading init file
5354 Re-read the init file (@code{gnus-init-file}, which defaults to
5355 @file{~/.gnus.el}) (@code{gnus-group-read-init-file}).
5356
5357 @item s
5358 @kindex s (Group)
5359 @findex gnus-group-save-newsrc
5360 @cindex saving .newsrc
5361 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
5362 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
5363 file(s) whether Gnus thinks it is necessary or not.
5364
5365 @c @item Z
5366 @c @kindex Z (Group)
5367 @c @findex gnus-group-clear-dribble
5368 @c Clear the dribble buffer (@code{gnus-group-clear-dribble}).
5369
5370 @end table
5371
5372
5373 @node Sieve Commands
5374 @subsection Sieve Commands
5375 @cindex group sieve commands
5376
5377 Sieve is a server-side mail filtering language.  In Gnus you can use
5378 the @code{sieve} group parameter (@pxref{Group Parameters}) to specify
5379 sieve rules that should apply to each group.  Gnus provides two
5380 commands to translate all these group parameters into a proper Sieve
5381 script that can be transfered to the server somehow.
5382
5383 @vindex gnus-sieve-file
5384 @vindex gnus-sieve-region-start
5385 @vindex gnus-sieve-region-end
5386 The generated Sieve script is placed in @code{gnus-sieve-file} (by
5387 default @file{~/.sieve}).  The Sieve code that Gnus generate is placed
5388 between two delimiters, @code{gnus-sieve-region-start} and
5389 @code{gnus-sieve-region-end}, so you may write additional Sieve code
5390 outside these delimiters that will not be removed the next time you
5391 regenerate the Sieve script.
5392
5393 @vindex gnus-sieve-crosspost
5394 The variable @code{gnus-sieve-crosspost} controls how the Sieve script
5395 is generated.  If it is non-@code{nil} (the default) articles is
5396 placed in all groups that have matching rules, otherwise the article
5397 is only placed in the group with the first matching rule.  For
5398 example, the group parameter @samp{(sieve address "sender"
5399 "owner-ding@@hpc.uh.edu")} will generate the following piece of Sieve
5400 code if @code{gnus-sieve-crosspost} is @code{nil}.  (When
5401 @code{gnus-sieve-crosspost} is non-@code{nil}, it looks the same
5402 except that the line containing the call to @code{stop} is removed.)
5403
5404 @example
5405 if address "sender" "owner-ding@@hpc.uh.edu" @{
5406         fileinto "INBOX.ding";
5407         stop;
5408 @}
5409 @end example
5410
5411 @xref{Top, Emacs Sieve, Top, sieve, Emacs Sieve}.
5412
5413 @table @kbd
5414
5415 @item D g
5416 @kindex D g (Group)
5417 @findex gnus-sieve-generate
5418 @vindex gnus-sieve-file
5419 @cindex generating sieve script
5420 Regenerate a Sieve script from the @code{sieve} group parameters and
5421 put you into the @code{gnus-sieve-file} without saving it.
5422
5423 @item D u
5424 @kindex D u (Group)
5425 @findex gnus-sieve-update
5426 @vindex gnus-sieve-file
5427 @cindex updating sieve script
5428 Regenerates the Gnus managed part of @code{gnus-sieve-file} using the
5429 @code{sieve} group parameters, save the file and upload it to the
5430 server using the @code{sieveshell} program.
5431
5432 @end table
5433
5434
5435 @node Summary Buffer
5436 @chapter Summary Buffer
5437 @cindex summary buffer
5438
5439 A line for each article is displayed in the summary buffer.  You can
5440 move around, read articles, post articles and reply to articles.
5441
5442 The most common way to a summary buffer is to select a group from the
5443 group buffer (@pxref{Selecting a Group}).
5444
5445 You can have as many summary buffers open as you wish.
5446
5447 You can customize the Summary Mode tool bar, see @kbd{M-x
5448 customize-apropos RET gnus-summary-tool-bar}.  This feature is only
5449 available in Emacs.
5450
5451 @kindex v (Summary)
5452 @cindex keys, reserved for users (Summary)
5453 The key @kbd{v} is reserved for users.  You can bind it to some
5454 command or better use it as a prefix key.  For example:
5455 @lisp
5456 (define-key gnus-summary-mode-map (kbd "v -") "LrS") ;; lower subthread
5457 @end lisp
5458
5459 @menu
5460 * Summary Buffer Format::       Deciding how the summary buffer is to look.
5461 * Summary Maneuvering::         Moving around the summary buffer.
5462 * Choosing Articles::           Reading articles.
5463 * Paging the Article::          Scrolling the current article.
5464 * Reply Followup and Post::     Posting articles.
5465 * Delayed Articles::            Send articles at a later time.
5466 * Marking Articles::            Marking articles as read, expirable, etc.
5467 * Limiting::                    You can limit the summary buffer.
5468 * Threading::                   How threads are made.
5469 * Sorting the Summary Buffer::  How articles and threads are sorted.
5470 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
5471 * Article Caching::             You may store articles in a cache.
5472 * Persistent Articles::         Making articles expiry-resistant.
5473 * Sticky Articles::             Article buffers that are not reused.
5474 * Article Backlog::             Having already read articles hang around.
5475 * Saving Articles::             Ways of customizing article saving.
5476 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
5477 * Article Treatment::           The article buffer can be mangled at will.
5478 * MIME Commands::               Doing MIMEy things with the articles.
5479 * Charsets::                    Character set issues.
5480 * Article Commands::            Doing various things with the article buffer.
5481 * Summary Sorting::             Sorting the summary buffer in various ways.
5482 * Finding the Parent::          No child support? Get the parent.
5483 * Alternative Approaches::      Reading using non-default summaries.
5484 * Tree Display::                A more visual display of threads.
5485 * Mail Group Commands::         Some commands can only be used in mail groups.
5486 * Various Summary Stuff::       What didn't fit anywhere else.
5487 * Exiting the Summary Buffer::  Returning to the Group buffer,
5488                                 or reselecting the current group.
5489 * Crosspost Handling::          How crossposted articles are dealt with.
5490 * Duplicate Suppression::       An alternative when crosspost handling fails.
5491 * Security::                    Decrypt and Verify.
5492 * Mailing List::                Mailing list minor mode.
5493 @end menu
5494
5495
5496 @node Summary Buffer Format
5497 @section Summary Buffer Format
5498 @cindex summary buffer format
5499
5500 @iftex
5501 @iflatex
5502 \gnusfigure{The Summary Buffer}{180}{
5503 \put(0,0){\epsfig{figure=ps/summary,width=7.5cm}}
5504 \put(445,0){\makebox(0,0)[br]{\epsfig{figure=ps/summary-article,width=7.5cm}}}
5505 }
5506 @end iflatex
5507 @end iftex
5508
5509 @menu
5510 * Summary Buffer Lines::        You can specify how summary lines should look.
5511 * To From Newsgroups::          How to not display your own name.
5512 * Summary Buffer Mode Line::    You can say how the mode line should look.
5513 * Summary Highlighting::        Making the summary buffer all pretty and nice.
5514 @end menu
5515
5516 @findex mail-extract-address-components
5517 @findex gnus-extract-address-components
5518 @vindex gnus-extract-address-components
5519 Gnus will use the value of the @code{gnus-extract-address-components}
5520 variable as a function for getting the name and address parts of a
5521 @code{From} header.  Two pre-defined functions exist:
5522 @code{gnus-extract-address-components}, which is the default, quite
5523 fast, and too simplistic solution; and
5524 @code{mail-extract-address-components}, which works very nicely, but is
5525 slower.  The default function will return the wrong answer in 5% of the
5526 cases.  If this is unacceptable to you, use the other function instead:
5527
5528 @lisp
5529 (setq gnus-extract-address-components
5530       'mail-extract-address-components)
5531 @end lisp
5532
5533 @vindex gnus-summary-same-subject
5534 @code{gnus-summary-same-subject} is a string indicating that the current
5535 article has the same subject as the previous.  This string will be used