(Examples): Fix grammar.
[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 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
20 Manual'', and with the Back-Cover Texts as in (a) below.  A copy of the
21 license is included in the section entitled ``GNU Free Documentation
22 License'' in the Emacs manual.
23
24 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
25 this GNU Manual, like GNU software.  Copies published by the Free
26 Software Foundation raise funds for GNU development.''
27
28 This document is part of a collection distributed under the GNU Free
29 Documentation License.  If you want to distribute this document
30 separately from the collection, you can do so by adding a copy of the
31 license to the document, as described in section 6 of the license.
32 @end quotation
33 @end copying
34
35 @iftex
36 @iflatex
37 \documentclass[twoside,a4paper,openright,11pt]{book}
38 \usepackage[latin1]{inputenc}
39 \usepackage{pagestyle}
40 \usepackage{epsfig}
41 \usepackage{pixidx}
42 \input{gnusconfig.tex}
43
44 \ifx\pdfoutput\undefined
45 \else
46 \usepackage[pdftex,bookmarks,colorlinks=true]{hyperref}
47 \usepackage{thumbpdf}
48 \pdfcompresslevel=9
49 \fi
50
51 \makeindex
52 \begin{document}
53
54 % Adjust ../Makefile.in if you change the following line:
55 \newcommand{\gnusversionname}{No Gnus v0.4}
56 \newcommand{\gnuschaptername}{}
57 \newcommand{\gnussectionname}{}
58
59 \newcommand{\gnusbackslash}{/}
60
61 \newcommand{\gnusref}[1]{``#1'' on page \pageref{#1}}
62 \ifx\pdfoutput\undefined
63 \newcommand{\gnusuref}[1]{\gnustt{#1}}
64 \else
65 \newcommand{\gnusuref}[1]{\href{#1}{\gnustt{#1}}}
66 \fi
67 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
68 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
69
70 \newcommand{\gnuskindex}[1]{\index{#1}}
71 \newcommand{\gnusindex}[1]{\index{#1}}
72
73 \newcommand{\gnustt}[1]{{\gnusselectttfont{}#1}}
74 \newcommand{\gnuscode}[1]{\gnustt{#1}}
75 \newcommand{\gnusasis}[1]{\gnustt{#1}}
76 \newcommand{\gnusurl}[1]{\gnustt{#1}}
77 \newcommand{\gnuscommand}[1]{\gnustt{#1}}
78 \newcommand{\gnusenv}[1]{\gnustt{#1}}
79 \newcommand{\gnussamp}[1]{``{\fontencoding{OT1}\gnusselectttfont{}#1}''}
80 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
81 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
82 \newcommand{\gnuskey}[1]{`\gnustt{#1}'}
83 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
84 \newcommand{\gnusdfn}[1]{\textit{#1}}
85 \newcommand{\gnusi}[1]{\textit{#1}}
86 \newcommand{\gnusr}[1]{\textrm{#1}}
87 \newcommand{\gnusstrong}[1]{\textbf{#1}}
88 \newcommand{\gnusemph}[1]{\textit{#1}}
89 \newcommand{\gnusvar}[1]{{\fontsize{10pt}{10}\selectfont\textsl{\textsf{#1}}}}
90 \newcommand{\gnussc}[1]{\textsc{#1}}
91 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
92 \newcommand{\gnusversion}[1]{{\small\textit{#1}}}
93 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
94 \newcommand{\gnusresult}[1]{\gnustt{=> #1}}
95 \newcommand{\gnusacronym}[1]{\textsc{#1}}
96 \newcommand{\gnusemail}[1]{\textit{#1}}
97
98 \newcommand{\gnusbullet}{{${\bullet}$}}
99 \newcommand{\gnusdollar}{\$}
100 \newcommand{\gnusampersand}{\&}
101 \newcommand{\gnuspercent}{\%}
102 \newcommand{\gnushash}{\#}
103 \newcommand{\gnushat}{\symbol{"5E}}
104 \newcommand{\gnusunderline}{\symbol{"5F}}
105 \newcommand{\gnusnot}{$\neg$}
106 \newcommand{\gnustilde}{\symbol{"7E}}
107 \newcommand{\gnusless}{{$<$}}
108 \newcommand{\gnusgreater}{{$>$}}
109 \newcommand{\gnusbraceleft}{{$>$}}
110 \newcommand{\gnusbraceright}{{$>$}}
111
112 \newcommand{\gnushead}{\raisebox{-1cm}{\epsfig{figure=ps/gnus-head,height=1cm}}}
113 \newcommand{\gnusinteresting}{
114 \marginpar[\mbox{}\hfill\gnushead]{\gnushead}
115 }
116
117 \newcommand{\gnuscleardoublepage}{\ifodd\count0\mbox{}\clearpage\thispagestyle{empty}\mbox{}\clearpage\else\clearpage\fi}
118
119 \newcommand{\gnuspagechapter}[1]{
120 {\mbox{}}
121 }
122
123 \newdimen{\gnusdimen}
124 \gnusdimen 0pt
125
126 \newcommand{\gnuschapter}[2]{
127 \gnuscleardoublepage
128 \ifdim \gnusdimen = 0pt\setcounter{page}{1}\pagestyle{gnus}\pagenumbering{arabic} \gnusdimen 1pt\fi
129 \chapter{#2}
130 \renewcommand{\gnussectionname}{}
131 \renewcommand{\gnuschaptername}{#2}
132 \thispagestyle{empty}
133 \hspace*{-2cm}
134 \begin{picture}(500,500)(0,0)
135 \put(480,350){\makebox(0,0)[tr]{#1}}
136 \put(40,300){\makebox(500,50)[bl]{{\Huge\bf{#2}}}}
137 \end{picture}
138 \clearpage
139 }
140
141 \newcommand{\gnusfigure}[3]{
142 \begin{figure}
143 \mbox{}\ifodd\count0\hspace*{-0.8cm}\else\hspace*{-3cm}\fi\begin{picture}(440,#2)
144 #3
145 \end{picture}
146 \caption{#1}
147 \end{figure}
148 }
149
150 \newcommand{\gnusicon}[1]{
151 \marginpar[\mbox{}\hfill\raisebox{-1.5cm}{\epsfig{figure=ps/#1-up,height=1.5cm}}]{\raisebox{-1cm}{\epsfig{figure=ps/#1-up,height=1cm}}}
152 }
153
154 \newcommand{\gnuspicon}[1]{
155 \margindex{\epsfig{figure=#1,width=2cm}}
156 }
157
158 \newcommand{\gnusxface}[2]{
159 \margindex{\epsfig{figure=#1,width=1cm}\epsfig{figure=#2,width=1cm}}
160 }
161
162 \newcommand{\gnussmiley}[2]{
163 \margindex{\makebox[2cm]{\hfill\epsfig{figure=#1,width=0.5cm}\hfill\epsfig{figure=#2,width=0.5cm}\hfill}}
164 }
165
166 \newcommand{\gnusitemx}[1]{\mbox{}\vspace*{-\itemsep}\vspace*{-\parsep}\item#1}
167
168 \newcommand{\gnussection}[1]{
169 \renewcommand{\gnussectionname}{#1}
170 \section{#1}
171 }
172
173 \newenvironment{codelist}%
174 {\begin{list}{}{
175 }
176 }{\end{list}}
177
178 \newenvironment{asislist}%
179 {\begin{list}{}{
180 }
181 }{\end{list}}
182
183 \newenvironment{kbdlist}%
184 {\begin{list}{}{
185 \labelwidth=0cm
186 }
187 }{\end{list}}
188
189 \newenvironment{dfnlist}%
190 {\begin{list}{}{
191 }
192 }{\end{list}}
193
194 \newenvironment{stronglist}%
195 {\begin{list}{}{
196 }
197 }{\end{list}}
198
199 \newenvironment{samplist}%
200 {\begin{list}{}{
201 }
202 }{\end{list}}
203
204 \newenvironment{varlist}%
205 {\begin{list}{}{
206 }
207 }{\end{list}}
208
209 \newenvironment{emphlist}%
210 {\begin{list}{}{
211 }
212 }{\end{list}}
213
214 \newlength\gnusheadtextwidth
215 \setlength{\gnusheadtextwidth}{\headtextwidth}
216 \addtolength{\gnusheadtextwidth}{1cm}
217
218 \newpagestyle{gnuspreamble}%
219 {
220 {
221 \ifodd\count0
222 {
223 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\mbox{}}\textbf{\hfill\roman{page}}}
224 }
225 \else
226 {
227 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\roman{page}\hfill\mbox{}}}
228 }
229 }
230 \fi
231 }
232 }
233 {
234 \ifodd\count0
235 \mbox{} \hfill
236 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
237 \else
238 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
239 \hfill \mbox{}
240 \fi
241 }
242
243 \newpagestyle{gnusindex}%
244 {
245 {
246 \ifodd\count0
247 {
248 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\gnuschaptername\hfill\arabic{page}}}}
249 }
250 \else
251 {
252 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}
253 }
254 \fi
255 }
256 }
257 {
258 \ifodd\count0
259 \mbox{} \hfill
260 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
261 \else
262 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
263 \hfill \mbox{}
264 \fi
265 }
266
267 \newpagestyle{gnus}%
268 {
269 {
270 \ifodd\count0
271 {
272 \makebox[12cm]{\hspace*{3.1cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{chapter}.\arabic{section}} \textbf{\gnussectionname\hfill\arabic{page}}}}}
273 }
274 \else
275 {
276 \makebox[12cm]{\hspace*{-2.95cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}}
277 }
278 \fi
279 }
280 }
281 {
282 \ifodd\count0
283 \mbox{} \hfill
284 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
285 \else
286 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
287 \hfill \mbox{}
288 \fi
289 }
290
291 \pagenumbering{roman}
292 \pagestyle{gnuspreamble}
293
294 @end iflatex
295 @end iftex
296
297 @iftex
298 @iflatex
299
300 \begin{titlepage}
301 {
302
303 %\addtolength{\oddsidemargin}{-5cm}
304 %\addtolength{\evensidemargin}{-5cm}
305 \parindent=0cm
306 \addtolength{\textheight}{2cm}
307
308 \gnustitle{\gnustitlename}\hfill\gnusversion{\gnusversionname}\\
309 \rule{15cm}{1mm}\\
310 \vfill
311 \hspace*{0cm}\epsfig{figure=ps/gnus-big-logo,height=15cm}
312 \vfill
313 \rule{15cm}{1mm}\\
314 \gnusauthor{by Lars Magne Ingebrigtsen}
315 \newpage
316 }
317
318 \mbox{}
319 \vfill
320
321 \thispagestyle{empty}
322
323 @c @insertcopying
324 \newpage
325 \end{titlepage}
326 @end iflatex
327 @end iftex
328
329 @ifnottex
330 @insertcopying
331 @end ifnottex
332
333 @dircategory Emacs
334 @direntry
335 * Gnus: (gnus).         The newsreader Gnus.
336 @end direntry
337 @iftex
338 @finalout
339 @end iftex
340 @setchapternewpage odd
341
342
343
344 @titlepage
345 @title Gnus Manual
346
347 @author by Lars Magne Ingebrigtsen
348 @page
349 @vskip 0pt plus 1filll
350 @insertcopying
351 @end titlepage
352
353
354 @node Top
355 @top The Gnus Newsreader
356
357 @ifinfo
358
359 You can read news (and mail) from within Emacs by using Gnus.  The news
360 can be gotten by any nefarious means you can think of---@acronym{NNTP}, local
361 spool or your mbox file.  All at the same time, if you want to push your
362 luck.
363
364 @c Adjust ../Makefile.in if you change the following line:
365 This manual corresponds to No Gnus v0.4.
366
367 @end ifinfo
368
369 @iftex
370
371 @iflatex
372 \tableofcontents
373 \gnuscleardoublepage
374 @end iflatex
375
376 Gnus is the advanced, self-documenting, customizable, extensible
377 unreal-time newsreader for GNU Emacs.
378
379 Oops.  That sounds oddly familiar, so let's start over again to avoid
380 being accused of plagiarism:
381
382 Gnus is a message-reading laboratory.  It will let you look at just
383 about anything as if it were a newsgroup.  You can read mail with it,
384 you can browse directories with it, you can @code{ftp} with it---you
385 can even read news with it!
386
387 Gnus tries to empower people who read news the same way Emacs empowers
388 people who edit text.  Gnus sets no limits to what the user should be
389 allowed to do.  Users are encouraged to extend Gnus to make it behave
390 like they want it to behave.  A program should not control people;
391 people should be empowered to do what they want by using (or abusing)
392 the program.
393
394 @end iftex
395
396 @menu
397 * Starting Up::              Finding news can be a pain.
398 * Group Buffer::             Selecting, subscribing and killing groups.
399 * Summary Buffer::           Reading, saving and posting articles.
400 * Article Buffer::           Displaying and handling articles.
401 * Composing Messages::       Information on sending mail and news.
402 * Select Methods::           Gnus reads all messages from various select methods.
403 * Scoring::                  Assigning values to articles.
404 * Various::                  General purpose settings.
405 * The End::                  Farewell and goodbye.
406 * Appendices::               Terminology, Emacs intro, @acronym{FAQ}, History, Internals.
407 * Index::                    Variable, function and concept index.
408 * Key Index::                Key Index.
409
410 Other related manuals
411
412 * Message:(message).         Composing messages.
413 * Emacs-MIME:(emacs-mime).   Composing messages; @acronym{MIME}-specific parts.
414 * Sieve:(sieve).             Managing Sieve scripts in Emacs.
415 * PGG:(pgg).                 @acronym{PGP/MIME} with Gnus.
416 * SASL:(sasl).               @acronym{SASL} authentication in Emacs.
417
418 @detailmenu
419  --- The Detailed Node Listing ---
420
421 Starting Gnus
422
423 * Finding the News::            Choosing a method for getting news.
424 * The First Time::              What does Gnus do the first time you start it?
425 * The Server is Down::          How can I read my mail then?
426 * Slave Gnusae::                You can have more than one Gnus active at a time.
427 * Fetching a Group::            Starting Gnus just to read a group.
428 * New Groups::                  What is Gnus supposed to do with new groups?
429 * Changing Servers::            You may want to move from one server to another.
430 * Startup Files::               Those pesky startup files---@file{.newsrc}.
431 * Auto Save::                   Recovering from a crash.
432 * The Active File::             Reading the active file over a slow line Takes Time.
433 * Startup Variables::           Other variables you might change.
434
435 New Groups
436
437 * Checking New Groups::         Determining what groups are new.
438 * Subscription Methods::        What Gnus should do with new groups.
439 * Filtering New Groups::        Making Gnus ignore certain new groups.
440
441 Group Buffer
442
443 * Group Buffer Format::         Information listed and how you can change it.
444 * Group Maneuvering::           Commands for moving in the group buffer.
445 * Selecting a Group::           Actually reading news.
446 * Subscription Commands::       Unsubscribing, killing, subscribing.
447 * Group Data::                  Changing the info for a group.
448 * Group Levels::                Levels? What are those, then?
449 * Group Score::                 A mechanism for finding out what groups you like.
450 * Marking Groups::              You can mark groups for later processing.
451 * Foreign Groups::              Creating and editing groups.
452 * Group Parameters::            Each group may have different parameters set.
453 * Listing Groups::              Gnus can list various subsets of the groups.
454 * Sorting Groups::              Re-arrange the group order.
455 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
456 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
457 * Exiting Gnus::                Stop reading news and get some work done.
458 * Group Topics::                A folding group mode divided into topics.
459 * Misc Group Stuff::            Other stuff that you can to do.
460
461 Group Buffer Format
462
463 * Group Line Specification::    Deciding how the group buffer is to look.
464 * Group Mode Line Specification::  The group buffer mode line.
465 * Group Highlighting::          Having nice colors in the group buffer.
466
467 Group Topics
468
469 * Topic Commands::              Interactive E-Z commands.
470 * Topic Variables::             How to customize the topics the Lisp Way.
471 * Topic Sorting::               Sorting each topic individually.
472 * Topic Topology::              A map of the world.
473 * Topic Parameters::            Parameters that apply to all groups in a topic.
474
475 Misc Group Stuff
476
477 * Scanning New Messages::       Asking Gnus to see whether new messages have arrived.
478 * Group Information::           Information and help on groups and Gnus.
479 * Group Timestamp::             Making Gnus keep track of when you last read a group.
480 * File Commands::               Reading and writing the Gnus files.
481 * Sieve Commands::              Managing Sieve scripts.
482
483 Summary Buffer
484
485 * Summary Buffer Format::       Deciding how the summary buffer is to look.
486 * Summary Maneuvering::         Moving around the summary buffer.
487 * Choosing Articles::           Reading articles.
488 * Paging the Article::          Scrolling the current article.
489 * Reply Followup and Post::     Posting articles.
490 * Delayed Articles::            Send articles at a later time.
491 * Marking Articles::            Marking articles as read, expirable, etc.
492 * Limiting::                    You can limit the summary buffer.
493 * Threading::                   How threads are made.
494 * Sorting the Summary Buffer::  How articles and threads are sorted.
495 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
496 * Article Caching::             You may store articles in a cache.
497 * Persistent Articles::         Making articles expiry-resistant.
498 * Article Backlog::             Having already read articles hang around.
499 * Saving Articles::             Ways of customizing article saving.
500 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
501 * Article Treatment::           The article buffer can be mangled at will.
502 * MIME Commands::               Doing MIMEy things with the articles.
503 * Charsets::                    Character set issues.
504 * Article Commands::            Doing various things with the article buffer.
505 * Summary Sorting::             Sorting the summary buffer in various ways.
506 * Finding the Parent::          No child support? Get the parent.
507 * Alternative Approaches::      Reading using non-default summaries.
508 * Tree Display::                A more visual display of threads.
509 * Mail Group Commands::         Some commands can only be used in mail groups.
510 * Various Summary Stuff::       What didn't fit anywhere else.
511 * Exiting the Summary Buffer::  Returning to the Group buffer,
512                                 or reselecting the current group.
513 * Crosspost Handling::          How crossposted articles are dealt with.
514 * Duplicate Suppression::       An alternative when crosspost handling fails.
515 * Security::                    Decrypt and Verify.
516 * Mailing List::                Mailing list minor mode.
517
518 Summary Buffer Format
519
520 * Summary Buffer Lines::        You can specify how summary lines should look.
521 * To From Newsgroups::          How to not display your own name.
522 * Summary Buffer Mode Line::    You can say how the mode line should look.
523 * Summary Highlighting::        Making the summary buffer all pretty and nice.
524
525 Choosing Articles
526
527 * Choosing Commands::           Commands for choosing articles.
528 * Choosing Variables::          Variables that influence these commands.
529
530 Reply, Followup and Post
531
532 * Summary Mail Commands::       Sending mail.
533 * Summary Post Commands::       Sending news.
534 * Summary Message Commands::    Other Message-related commands.
535 * Canceling and Superseding::
536
537 Marking Articles
538
539 * Unread Articles::             Marks for unread articles.
540 * Read Articles::               Marks for read articles.
541 * Other Marks::                 Marks that do not affect readedness.
542 * Setting Marks::               How to set and remove marks.
543 * Generic Marking Commands::    How to customize the marking.
544 * Setting Process Marks::       How to mark articles for later processing.
545
546 Threading
547
548 * Customizing Threading::       Variables you can change to affect the threading.
549 * Thread Commands::             Thread based commands in the summary buffer.
550
551 Customizing Threading
552
553 * Loose Threads::               How Gnus gathers loose threads into bigger threads.
554 * Filling In Threads::          Making the threads displayed look fuller.
555 * More Threading::              Even more variables for fiddling with threads.
556 * Low-Level Threading::         You thought it was over@dots{} but you were wrong!
557
558 Decoding Articles
559
560 * Uuencoded Articles::          Uudecode articles.
561 * Shell Archives::              Unshar articles.
562 * PostScript Files::            Split PostScript.
563 * Other Files::                 Plain save and binhex.
564 * Decoding Variables::          Variables for a happy decoding.
565 * Viewing Files::               You want to look at the result of the decoding?
566
567 Decoding Variables
568
569 * Rule Variables::              Variables that say how a file is to be viewed.
570 * Other Decode Variables::      Other decode variables.
571 * Uuencoding and Posting::      Variables for customizing uuencoding.
572
573 Article Treatment
574
575 * Article Highlighting::        You want to make the article look like fruit salad.
576 * Article Fontisizing::         Making emphasized text look nice.
577 * Article Hiding::              You also want to make certain info go away.
578 * Article Washing::             Lots of way-neat functions to make life better.
579 * Article Header::              Doing various header transformations.
580 * Article Buttons::             Click on URLs, Message-IDs, addresses and the like.
581 * Article Button Levels::       Controlling appearance of buttons.
582 * Article Date::                Grumble, UT!
583 * Article Display::             Display various stuff---X-Face, Picons, Smileys
584 * Article Signature::           What is a signature?
585 * Article Miscellanea::         Various other stuff.
586
587 Alternative Approaches
588
589 * Pick and Read::               First mark articles and then read them.
590 * Binary Groups::               Auto-decode all articles.
591
592 Various Summary Stuff
593
594 * Summary Group Information::   Information oriented commands.
595 * Searching for Articles::      Multiple article commands.
596 * Summary Generation Commands::
597 * Really Various Summary Commands::  Those pesky non-conformant commands.
598
599 Article Buffer
600
601 * Hiding Headers::              Deciding what headers should be displayed.
602 * Using MIME::                  Pushing articles through @acronym{MIME} before reading them.
603 * Customizing Articles::        Tailoring the look of the articles.
604 * Article Keymap::              Keystrokes available in the article buffer.
605 * Misc Article::                Other stuff.
606
607 Composing Messages
608
609 * Mail::                        Mailing and replying.
610 * Posting Server::              What server should you post and mail via?
611 * POP before SMTP::             You cannot send a mail unless you read a mail.
612 * Mail and Post::               Mailing and posting at the same time.
613 * Archived Messages::           Where Gnus stores the messages you've sent.
614 * Posting Styles::              An easier way to specify who you are.
615 * Drafts::                      Postponing messages and rejected messages.
616 * Rejected Articles::           What happens if the server doesn't like your article?
617 * Signing and encrypting::      How to compose secure messages.
618
619 Select Methods
620
621 * Server Buffer::               Making and editing virtual servers.
622 * Getting News::                Reading USENET news with Gnus.
623 * Getting Mail::                Reading your personal mail with Gnus.
624 * Browsing the Web::            Getting messages from a plethora of Web sources.
625 * IMAP::                        Using Gnus as a @acronym{IMAP} client.
626 * Other Sources::               Reading directories, files, SOUP packets.
627 * Combined Groups::             Combining groups into one group.
628 * Email Based Diary::           Using mails to manage diary events in Gnus.
629 * Gnus Unplugged::              Reading news and mail offline.
630
631 Server Buffer
632
633 * Server Buffer Format::        You can customize the look of this buffer.
634 * Server Commands::             Commands to manipulate servers.
635 * Example Methods::             Examples server specifications.
636 * Creating a Virtual Server::   An example session.
637 * Server Variables::            Which variables to set.
638 * Servers and Methods::         You can use server names as select methods.
639 * Unavailable Servers::         Some servers you try to contact may be down.
640
641 Getting News
642
643 * NNTP::                        Reading news from an @acronym{NNTP} server.
644 * News Spool::                  Reading news from the local spool.
645
646 @acronym{NNTP}
647
648 * Direct Functions::            Connecting directly to the server.
649 * Indirect Functions::          Connecting indirectly to the server.
650 * Common Variables::            Understood by several connection functions.
651 * NNTP marks::                  Storing marks for @acronym{NNTP} servers.
652
653 Getting Mail
654
655 * Mail in a Newsreader::        Important introductory notes.
656 * Getting Started Reading Mail::  A simple cookbook example.
657 * Splitting Mail::              How to create mail groups.
658 * Mail Sources::                How to tell Gnus where to get mail from.
659 * Mail Back End Variables::     Variables for customizing mail handling.
660 * Fancy Mail Splitting::        Gnus can do hairy splitting of incoming mail.
661 * Group Mail Splitting::        Use group customize to drive mail splitting.
662 * Incorporating Old Mail::      What about the old mail you have?
663 * Expiring Mail::               Getting rid of unwanted mail.
664 * Washing Mail::                Removing cruft from the mail you get.
665 * Duplicates::                  Dealing with duplicated mail.
666 * Not Reading Mail::            Using mail back ends for reading other files.
667 * Choosing a Mail Back End::    Gnus can read a variety of mail formats.
668
669 Mail Sources
670
671 * Mail Source Specifiers::      How to specify what a mail source is.
672 * Mail Source Customization::   Some variables that influence things.
673 * Fetching Mail::               Using the mail source specifiers.
674
675 Choosing a Mail Back End
676
677 * Unix Mail Box::               Using the (quite) standard Un*x mbox.
678 * Rmail Babyl::                 Emacs programs use the Rmail Babyl format.
679 * Mail Spool::                  Store your mail in a private spool?
680 * MH Spool::                    An mhspool-like back end.
681 * Maildir::                     Another one-file-per-message format.
682 * Mail Folders::                Having one file for each group.
683 * Comparing Mail Back Ends::    An in-depth looks at pros and cons.
684
685 Browsing the Web
686
687 * Archiving Mail::
688 * Web Searches::                Creating groups from articles that match a string.
689 * Slashdot::                    Reading the Slashdot comments.
690 * Ultimate::                    The Ultimate Bulletin Board systems.
691 * Web Archive::                 Reading mailing list archived on web.
692 * RSS::                         Reading RDF site summary.
693 * Customizing W3::              Doing stuff to Emacs/W3 from Gnus.
694
695 @acronym{IMAP}
696
697 * Splitting in IMAP::           Splitting mail with nnimap.
698 * Expiring in IMAP::            Expiring mail with nnimap.
699 * Editing IMAP ACLs::           Limiting/enabling other users access to a mailbox.
700 * Expunging mailboxes::         Equivalent of a ``compress mailbox'' button.
701 * A note on namespaces::        How to (not) use @acronym{IMAP} namespace in Gnus.
702 * Debugging IMAP::              What to do when things don't work.
703
704 Other Sources
705
706 * Directory Groups::            You can read a directory as if it was a newsgroup.
707 * Anything Groups::             Dired?  Who needs dired?
708 * Document Groups::             Single files can be the basis of a group.
709 * SOUP::                        Reading @sc{soup} packets ``offline''.
710 * Mail-To-News Gateways::       Posting articles via mail-to-news gateways.
711
712 Document Groups
713
714 * Document Server Internals::   How to add your own document types.
715
716 SOUP
717
718 * SOUP Commands::               Commands for creating and sending @sc{soup} packets
719 * SOUP Groups::                 A back end for reading @sc{soup} packets.
720 * SOUP Replies::                How to enable @code{nnsoup} to take over mail and news.
721
722 Combined Groups
723
724 * Virtual Groups::              Combining articles from many groups.
725 * Kibozed Groups::              Looking through parts of the newsfeed for articles.
726
727 Email Based Diary
728
729 * The NNDiary Back End::        Basic setup and usage.
730 * The Gnus Diary Library::      Utility toolkit on top of nndiary.
731 * Sending or Not Sending::      A final note on sending diary messages.
732
733 The NNDiary Back End
734
735 * Diary Messages::              What makes a message valid for nndiary.
736 * Running NNDiary::             NNDiary has two modes of operation.
737 * Customizing NNDiary::         Bells and whistles.
738
739 The Gnus Diary Library
740
741 * Diary Summary Line Format::           A nicer summary buffer line format.
742 * Diary Articles Sorting::              A nicer way to sort messages.
743 * Diary Headers Generation::            Not doing it manually.
744 * Diary Group Parameters::              Not handling them manually.
745
746 Gnus Unplugged
747
748 * Agent Basics::                How it all is supposed to work.
749 * Agent Categories::            How to tell the Gnus Agent what to download.
750 * Agent Commands::              New commands for all the buffers.
751 * Agent Visuals::               Ways that the agent may effect your summary buffer.
752 * Agent as Cache::              The Agent is a big cache too.
753 * Agent Expiry::                How to make old articles go away.
754 * Agent Regeneration::          How to recover from lost connections and other accidents.
755 * Agent and flags::             How the Agent maintains flags.
756 * Agent and IMAP::              How to use the Agent with @acronym{IMAP}.
757 * Outgoing Messages::           What happens when you post/mail something?
758 * Agent Variables::             Customizing is fun.
759 * Example Setup::               An example @file{~/.gnus.el} file for offline people.
760 * Batching Agents::             How to fetch news from a @code{cron} job.
761 * Agent Caveats::               What you think it'll do and what it does.
762
763 Agent Categories
764
765 * Category Syntax::             What a category looks like.
766 * Category Buffer::             A buffer for maintaining categories.
767 * Category Variables::          Customize'r'Us.
768
769 Agent Commands
770
771 * Group Agent Commands::        Configure groups and fetch their contents.
772 * Summary Agent Commands::      Manually select then fetch specific articles.
773 * Server Agent Commands::       Select the servers that are supported by the agent.
774
775 Scoring
776
777 * Summary Score Commands::      Adding score entries for the current group.
778 * Group Score Commands::        General score commands.
779 * Score Variables::             Customize your scoring.  (My, what terminology).
780 * Score File Format::           What a score file may contain.
781 * Score File Editing::          You can edit score files by hand as well.
782 * Adaptive Scoring::            Big Sister Gnus knows what you read.
783 * Home Score File::             How to say where new score entries are to go.
784 * Followups To Yourself::       Having Gnus notice when people answer you.
785 * Scoring On Other Headers::    Scoring on non-standard headers.
786 * Scoring Tips::                How to score effectively.
787 * Reverse Scoring::             That problem child of old is not problem.
788 * Global Score Files::          Earth-spanning, ear-splitting score files.
789 * Kill Files::                  They are still here, but they can be ignored.
790 * Converting Kill Files::       Translating kill files to score files.
791 * Advanced Scoring::            Using logical expressions to build score rules.
792 * Score Decays::                It can be useful to let scores wither away.
793
794 Advanced Scoring
795
796 * Advanced Scoring Syntax::     A definition.
797 * Advanced Scoring Examples::   What they look like.
798 * Advanced Scoring Tips::       Getting the most out of it.
799
800 Various
801
802 * Process/Prefix::              A convention used by many treatment commands.
803 * Interactive::                 Making Gnus ask you many questions.
804 * Symbolic Prefixes::           How to supply some Gnus functions with options.
805 * Formatting Variables::        You can specify what buffers should look like.
806 * Window Layout::               Configuring the Gnus buffer windows.
807 * Faces and Fonts::             How to change how faces look.
808 * Compilation::                 How to speed Gnus up.
809 * Mode Lines::                  Displaying information in the mode lines.
810 * Highlighting and Menus::      Making buffers look all nice and cozy.
811 * Buttons::                     Get tendinitis in ten easy steps!
812 * Daemons::                     Gnus can do things behind your back.
813 * NoCeM::                       How to avoid spam and other fatty foods.
814 * Undo::                        Some actions can be undone.
815 * Predicate Specifiers::        Specifying predicates.
816 * Moderation::                  What to do if you're a moderator.
817 * Image Enhancements::          Modern versions of Emacs/XEmacs can display images.
818 * Fuzzy Matching::              What's the big fuzz?
819 * Thwarting Email Spam::        A how-to on avoiding unsolicited commercial email.
820 * Other modes::                 Interaction with other modes.
821 * Various Various::             Things that are really various.
822
823 Formatting Variables
824
825 * Formatting Basics::           A formatting variable is basically a format string.
826 * Mode Line Formatting::        Some rules about mode line formatting variables.
827 * Advanced Formatting::         Modifying output in various ways.
828 * User-Defined Specs::          Having Gnus call your own functions.
829 * Formatting Fonts::            Making the formatting look colorful and nice.
830 * Positioning Point::           Moving point to a position after an operation.
831 * Tabulation::                  Tabulating your output.
832 * Wide Characters::             Dealing with wide characters.
833
834 Image Enhancements
835
836 * X-Face::                      Display a funky, teensy black-and-white image.
837 * Face::                        Display a funkier, teensier colored image.
838 * Smileys::                     Show all those happy faces the way they were meant to be shown.
839 * Picons::                      How to display pictures of what you're reading.
840 * XVarious::                    Other XEmacsy Gnusey variables.
841
842 Thwarting Email Spam
843
844 * The problem of spam::         Some background, and some solutions
845 * Anti-Spam Basics::            Simple steps to reduce the amount of spam.
846 * SpamAssassin::                How to use external anti-spam tools.
847 * Hashcash::                    Reduce spam by burning CPU time.
848 * Filtering Spam Using The Spam ELisp Package::
849 * Filtering Spam Using Statistics with spam-stat::
850
851 Filtering Spam Using The Spam ELisp Package
852
853 * Spam ELisp Package Sequence of Events::
854 * Spam ELisp Package Filtering of Incoming Mail::
855 * Spam ELisp Package Global Variables::
856 * Spam ELisp Package Configuration Examples::
857 * Blacklists and Whitelists::
858 * BBDB Whitelists::
859 * Gmane Spam Reporting::
860 * Anti-spam Hashcash Payments::
861 * Blackholes::
862 * Regular Expressions Header Matching::
863 * Bogofilter::
864 * SpamAssassin back end::
865 * ifile spam filtering::
866 * spam-stat spam filtering::
867 * SpamOracle::
868 * Extending the Spam ELisp package::
869
870 Filtering Spam Using Statistics with spam-stat
871
872 * Creating a spam-stat dictionary::
873 * Splitting mail using spam-stat::
874 * Low-level interface to the spam-stat dictionary::
875
876 Appendices
877
878 * XEmacs::                      Requirements for installing under XEmacs.
879 * History::                     How Gnus got where it is today.
880 * On Writing Manuals::          Why this is not a beginner's guide.
881 * Terminology::                 We use really difficult, like, words here.
882 * Customization::               Tailoring Gnus to your needs.
883 * Troubleshooting::             What you might try if things do not work.
884 * Gnus Reference Guide::        Rilly, rilly technical stuff.
885 * Emacs for Heathens::          A short introduction to Emacsian terms.
886 * Frequently Asked Questions::  The Gnus FAQ
887
888 History
889
890 * Gnus Versions::               What Gnus versions have been released.
891 * Other Gnus Versions::         Other Gnus versions that also have been released.
892 * Why?::                        What's the point of Gnus?
893 * Compatibility::               Just how compatible is Gnus with @sc{gnus}?
894 * Conformity::                  Gnus tries to conform to all standards.
895 * Emacsen::                     Gnus can be run on a few modern Emacsen.
896 * Gnus Development::            How Gnus is developed.
897 * Contributors::                Oodles of people.
898 * New Features::                Pointers to some of the new stuff in Gnus.
899
900 New Features
901
902 * ding Gnus::                   New things in Gnus 5.0/5.1, the first new Gnus.
903 * September Gnus::              The Thing Formally Known As Gnus 5.2/5.3.
904 * Red Gnus::                    Third time best---Gnus 5.4/5.5.
905 * Quassia Gnus::                Two times two is four, or Gnus 5.6/5.7.
906 * Pterodactyl Gnus::            Pentad also starts with P, AKA Gnus 5.8/5.9.
907 * Oort Gnus::                   It's big.  It's far out.  Gnus 5.10/5.11.
908 * No Gnus::                     Very punny.
909
910 Customization
911
912 * Slow/Expensive Connection::   You run a local Emacs and get the news elsewhere.
913 * Slow Terminal Connection::    You run a remote Emacs.
914 * Little Disk Space::           You feel that having large setup files is icky.
915 * Slow Machine::                You feel like buying a faster machine.
916
917 Gnus Reference Guide
918
919 * Gnus Utility Functions::      Common functions and variable to use.
920 * Back End Interface::          How Gnus communicates with the servers.
921 * Score File Syntax::           A BNF definition of the score file standard.
922 * Headers::                     How Gnus stores headers internally.
923 * Ranges::                      A handy format for storing mucho numbers.
924 * Group Info::                  The group info format.
925 * Extended Interactive::        Symbolic prefixes and stuff.
926 * Emacs/XEmacs Code::           Gnus can be run under all modern Emacsen.
927 * Various File Formats::        Formats of files that Gnus use.
928
929 Back End Interface
930
931 * Required Back End Functions::  Functions that must be implemented.
932 * Optional Back End Functions::  Functions that need not be implemented.
933 * Error Messaging::             How to get messages and report errors.
934 * Writing New Back Ends::       Extending old back ends.
935 * Hooking New Back Ends Into Gnus::  What has to be done on the Gnus end.
936 * Mail-like Back Ends::         Some tips on mail back ends.
937
938 Various File Formats
939
940 * Active File Format::          Information on articles and groups available.
941 * Newsgroups File Format::      Group descriptions.
942
943 Emacs for Heathens
944
945 * Keystrokes::                  Entering text and executing commands.
946 * Emacs Lisp::                  The built-in Emacs programming language.
947
948 @end detailmenu
949 @end menu
950
951 @node Starting Up
952 @chapter Starting Gnus
953 @cindex starting up
954
955 @kindex M-x gnus
956 @findex gnus
957 If your system administrator has set things up properly, starting Gnus
958 and reading news is extremely easy---you just type @kbd{M-x gnus} in
959 your Emacs.
960
961 @findex gnus-other-frame
962 @kindex M-x gnus-other-frame
963 If you want to start Gnus in a different frame, you can use the command
964 @kbd{M-x gnus-other-frame} instead.
965
966 If things do not go smoothly at startup, you have to twiddle some
967 variables in your @file{~/.gnus.el} file.  This file is similar to
968 @file{~/.emacs}, but is read when Gnus starts.
969
970 If you puzzle at any terms used in this manual, please refer to the
971 terminology section (@pxref{Terminology}).
972
973 @menu
974 * Finding the News::      Choosing a method for getting news.
975 * The First Time::        What does Gnus do the first time you start it?
976 * The Server is Down::    How can I read my mail then?
977 * Slave Gnusae::          You can have more than one Gnus active at a time.
978 * New Groups::            What is Gnus supposed to do with new groups?
979 * Changing Servers::      You may want to move from one server to another.
980 * Startup Files::         Those pesky startup files---@file{.newsrc}.
981 * Auto Save::             Recovering from a crash.
982 * The Active File::       Reading the active file over a slow line Takes Time.
983 * Startup Variables::     Other variables you might change.
984 @end menu
985
986
987 @node Finding the News
988 @section Finding the News
989 @cindex finding news
990
991 @vindex gnus-select-method
992 @c @head
993 The @code{gnus-select-method} variable says where Gnus should look for
994 news.  This variable should be a list where the first element says
995 @dfn{how} and the second element says @dfn{where}.  This method is your
996 native method.  All groups not fetched with this method are
997 foreign groups.
998
999 For instance, if the @samp{news.somewhere.edu} @acronym{NNTP} server is where
1000 you want to get your daily dosage of news from, you'd say:
1001
1002 @lisp
1003 (setq gnus-select-method '(nntp "news.somewhere.edu"))
1004 @end lisp
1005
1006 If you want to read directly from the local spool, say:
1007
1008 @lisp
1009 (setq gnus-select-method '(nnspool ""))
1010 @end lisp
1011
1012 If you can use a local spool, you probably should, as it will almost
1013 certainly be much faster.  But do not use the local spool if your
1014 server is running Leafnode (which is a simple, standalone private news
1015 server); in this case, use @code{(nntp "localhost")}.
1016
1017 @vindex gnus-nntpserver-file
1018 @cindex NNTPSERVER
1019 @cindex @acronym{NNTP} server
1020 If this variable is not set, Gnus will take a look at the
1021 @env{NNTPSERVER} environment variable.  If that variable isn't set,
1022 Gnus will see whether @code{gnus-nntpserver-file}
1023 (@file{/etc/nntpserver} by default) has any opinions on the matter.
1024 If that fails as well, Gnus will try to use the machine running Emacs
1025 as an @acronym{NNTP} server.  That's a long shot, though.
1026
1027 @vindex gnus-nntp-server
1028 If @code{gnus-nntp-server} is set, this variable will override
1029 @code{gnus-select-method}.  You should therefore set
1030 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
1031
1032 @vindex gnus-secondary-servers
1033 @vindex gnus-nntp-server
1034 You can also make Gnus prompt you interactively for the name of an
1035 @acronym{NNTP} server.  If you give a non-numerical prefix to @code{gnus}
1036 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
1037 in the @code{gnus-secondary-servers} list (if any).  You can also just
1038 type in the name of any server you feel like visiting.  (Note that this
1039 will set @code{gnus-nntp-server}, which means that if you then @kbd{M-x
1040 gnus} later in the same Emacs session, Gnus will contact the same
1041 server.)
1042
1043 @findex gnus-group-browse-foreign-server
1044 @kindex B (Group)
1045 However, if you use one @acronym{NNTP} server regularly and are just
1046 interested in a couple of groups from a different server, you would be
1047 better served by using the @kbd{B} command in the group buffer.  It will
1048 let you have a look at what groups are available, and you can subscribe
1049 to any of the groups you want to.  This also makes @file{.newsrc}
1050 maintenance much tidier.  @xref{Foreign Groups}.
1051
1052 @vindex gnus-secondary-select-methods
1053 @c @head
1054 A slightly different approach to foreign groups is to set the
1055 @code{gnus-secondary-select-methods} variable.  The select methods
1056 listed in this variable are in many ways just as native as the
1057 @code{gnus-select-method} server.  They will also be queried for active
1058 files during startup (if that's required), and new newsgroups that
1059 appear on these servers will be subscribed (or not) just as native
1060 groups are.
1061
1062 For instance, if you use the @code{nnmbox} back end to read your mail,
1063 you would typically set this variable to
1064
1065 @lisp
1066 (setq gnus-secondary-select-methods '((nnmbox "")))
1067 @end lisp
1068
1069 Note: the @acronym{NNTP} back end stores marks in marks files
1070 (@pxref{NNTP marks}).  This feature makes it easy to share marks between
1071 several Gnus installations, but may slow down things a bit when fetching
1072 new articles.  @xref{NNTP marks}, for more information.
1073
1074
1075 @node The First Time
1076 @section The First Time
1077 @cindex first time usage
1078
1079 If no startup files exist (@pxref{Startup Files}), Gnus will try to
1080 determine what groups should be subscribed by default.
1081
1082 @vindex gnus-default-subscribed-newsgroups
1083 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
1084 will subscribe you to just those groups in that list, leaving the rest
1085 killed.  Your system administrator should have set this variable to
1086 something useful.
1087
1088 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
1089 picked groups (i.e., @samp{*.newusers}).  (@dfn{Arbitrary} is defined
1090 here as @dfn{whatever Lars thinks you should read}.)
1091
1092 You'll also be subscribed to the Gnus documentation group, which should
1093 help you with most common problems.
1094
1095 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
1096 use the normal functions for handling new groups, and not do anything
1097 special.
1098
1099
1100 @node The Server is Down
1101 @section The Server is Down
1102 @cindex server errors
1103
1104 If the default server is down, Gnus will understandably have some
1105 problems starting.  However, if you have some mail groups in addition to
1106 the news groups, you may want to start Gnus anyway.
1107
1108 Gnus, being the trusting sort of program, will ask whether to proceed
1109 without a native select method if that server can't be contacted.  This
1110 will happen whether the server doesn't actually exist (i.e., you have
1111 given the wrong address) or the server has just momentarily taken ill
1112 for some reason or other.  If you decide to continue and have no foreign
1113 groups, you'll find it difficult to actually do anything in the group
1114 buffer.  But, hey, that's your problem.  Blllrph!
1115
1116 @findex gnus-no-server
1117 @kindex M-x gnus-no-server
1118 @c @head
1119 If you know that the server is definitely down, or you just want to read
1120 your mail without bothering with the server at all, you can use the
1121 @code{gnus-no-server} command to start Gnus.  That might come in handy
1122 if you're in a hurry as well.  This command will not attempt to contact
1123 your primary server---instead, it will just activate all groups on level
1124 1 and 2.  (You should preferably keep no native groups on those two
1125 levels.) Also @pxref{Group Levels}.
1126
1127
1128 @node Slave Gnusae
1129 @section Slave Gnusae
1130 @cindex slave
1131
1132 You might want to run more than one Emacs with more than one Gnus at the
1133 same time.  If you are using different @file{.newsrc} files (e.g., if you
1134 are using the two different Gnusae to read from two different servers),
1135 that is no problem whatsoever.  You just do it.
1136
1137 The problem appears when you want to run two Gnusae that use the same
1138 @file{.newsrc} file.
1139
1140 To work around that problem some, we here at the Think-Tank at the Gnus
1141 Towers have come up with a new concept: @dfn{Masters} and
1142 @dfn{slaves}.  (We have applied for a patent on this concept, and have
1143 taken out a copyright on those words.  If you wish to use those words in
1144 conjunction with each other, you have to send $1 per usage instance to
1145 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
1146 Applications}) will be much more expensive, of course.)
1147
1148 @findex gnus-slave
1149 Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1150 however you do it).  Each subsequent slave Gnusae should be started with
1151 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
1152 files, but instead save @dfn{slave files} that contain information only
1153 on what groups have been read in the slave session.  When a master Gnus
1154 starts, it will read (and delete) these slave files, incorporating all
1155 information from them.  (The slave files will be read in the sequence
1156 they were created, so the latest changes will have precedence.)
1157
1158 Information from the slave files has, of course, precedence over the
1159 information in the normal (i.e., master) @file{.newsrc} file.
1160
1161 If the @file{.newsrc*} files have not been saved in the master when the
1162 slave starts, you may be prompted as to whether to read an auto-save
1163 file.  If you answer ``yes'', the unsaved changes to the master will be
1164 incorporated into the slave.  If you answer ``no'', the slave may see some
1165 messages as unread that have been read in the master.
1166
1167
1168
1169 @node New Groups
1170 @section New Groups
1171 @cindex new groups
1172 @cindex subscription
1173
1174 @vindex gnus-check-new-newsgroups
1175 If you are satisfied that you really never want to see any new groups,
1176 you can set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
1177 also save you some time at startup.  Even if this variable is
1178 @code{nil}, you can always subscribe to the new groups just by pressing
1179 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
1180 is @code{ask-server} by default.  If you set this variable to
1181 @code{always}, then Gnus will query the back ends for new groups even
1182 when you do the @kbd{g} command (@pxref{Scanning New Messages}).
1183
1184 @menu
1185 * Checking New Groups::         Determining what groups are new.
1186 * Subscription Methods::        What Gnus should do with new groups.
1187 * Filtering New Groups::        Making Gnus ignore certain new groups.
1188 @end menu
1189
1190
1191 @node Checking New Groups
1192 @subsection Checking New Groups
1193
1194 Gnus normally determines whether a group is new or not by comparing the
1195 list of groups from the active file(s) with the lists of subscribed and
1196 dead groups.  This isn't a particularly fast method.  If
1197 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
1198 server for new groups since the last time.  This is both faster and
1199 cheaper.  This also means that you can get rid of the list of killed
1200 groups altogether, so you may set @code{gnus-save-killed-list} to
1201 @code{nil}, which will save time both at startup, at exit, and all over.
1202 Saves disk space, too.  Why isn't this the default, then?
1203 Unfortunately, not all servers support this command.
1204
1205 I bet I know what you're thinking now: How do I find out whether my
1206 server supports @code{ask-server}?  No?  Good, because I don't have a
1207 fail-safe answer.  I would suggest just setting this variable to
1208 @code{ask-server} and see whether any new groups appear within the next
1209 few days.  If any do, then it works.  If none do, then it doesn't
1210 work.  I could write a function to make Gnus guess whether the server
1211 supports @code{ask-server}, but it would just be a guess.  So I won't.
1212 You could @code{telnet} to the server and say @code{HELP} and see
1213 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
1214 it does, then it might work.  (But there are servers that lists
1215 @samp{NEWGROUPS} without supporting the function properly.)
1216
1217 This variable can also be a list of select methods.  If so, Gnus will
1218 issue an @code{ask-server} command to each of the select methods, and
1219 subscribe them (or not) using the normal methods.  This might be handy
1220 if you are monitoring a few servers for new groups.  A side effect is
1221 that startup will take much longer, so you can meditate while waiting.
1222 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
1223
1224
1225 @node Subscription Methods
1226 @subsection Subscription Methods
1227
1228 @vindex gnus-subscribe-newsgroup-method
1229 What Gnus does when it encounters a new group is determined by the
1230 @code{gnus-subscribe-newsgroup-method} variable.
1231
1232 This variable should contain a function.  This function will be called
1233 with the name of the new group as the only parameter.
1234
1235 Some handy pre-fab functions are:
1236
1237 @table @code
1238
1239 @item gnus-subscribe-zombies
1240 @vindex gnus-subscribe-zombies
1241 Make all new groups zombies.  This is the default.  You can browse the
1242 zombies later (with @kbd{A z}) and either kill them all off properly
1243 (with @kbd{S z}), or subscribe to them (with @kbd{u}).
1244
1245 @item gnus-subscribe-randomly
1246 @vindex gnus-subscribe-randomly
1247 Subscribe all new groups in arbitrary order.  This really means that all
1248 new groups will be added at ``the top'' of the group buffer.
1249
1250 @item gnus-subscribe-alphabetically
1251 @vindex gnus-subscribe-alphabetically
1252 Subscribe all new groups in alphabetical order.
1253
1254 @item gnus-subscribe-hierarchically
1255 @vindex gnus-subscribe-hierarchically
1256 Subscribe all new groups hierarchically.  The difference between this
1257 function and @code{gnus-subscribe-alphabetically} is slight.
1258 @code{gnus-subscribe-alphabetically} will subscribe new groups in a strictly
1259 alphabetical fashion, while this function will enter groups into its
1260 hierarchy.  So if you want to have the @samp{rec} hierarchy before the
1261 @samp{comp} hierarchy, this function will not mess that configuration
1262 up.  Or something like that.
1263
1264 @item gnus-subscribe-interactively
1265 @vindex gnus-subscribe-interactively
1266 Subscribe new groups interactively.  This means that Gnus will ask
1267 you about @strong{all} new groups.  The groups you choose to subscribe
1268 to will be subscribed hierarchically.
1269
1270 @item gnus-subscribe-killed
1271 @vindex gnus-subscribe-killed
1272 Kill all new groups.
1273
1274 @item gnus-subscribe-topics
1275 @vindex gnus-subscribe-topics
1276 Put the groups into the topic that has a matching @code{subscribe} topic
1277 parameter (@pxref{Topic Parameters}).  For instance, a @code{subscribe}
1278 topic parameter that looks like
1279
1280 @example
1281 "nnslashdot"
1282 @end example
1283
1284 will mean that all groups that match that regex will be subscribed under
1285 that topic.
1286
1287 If no topics match the groups, the groups will be subscribed in the
1288 top-level topic.
1289
1290 @end table
1291
1292 @vindex gnus-subscribe-hierarchical-interactive
1293 A closely related variable is
1294 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
1295 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
1296 hierarchical fashion whether to subscribe to new groups or not.  Gnus
1297 will ask you for each sub-hierarchy whether you want to descend the
1298 hierarchy or not.
1299
1300 One common mistake is to set the variable a few paragraphs above
1301 (@code{gnus-subscribe-newsgroup-method}) to
1302 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
1303 will not work.  This is ga-ga.  So don't do it.
1304
1305
1306 @node Filtering New Groups
1307 @subsection Filtering New Groups
1308
1309 A nice and portable way to control which new newsgroups should be
1310 subscribed (or ignored) is to put an @dfn{options} line at the start of
1311 the @file{.newsrc} file.  Here's an example:
1312
1313 @example
1314 options -n !alt.all !rec.all sci.all
1315 @end example
1316
1317 @vindex gnus-subscribe-options-newsgroup-method
1318 This line obviously belongs to a serious-minded intellectual scientific
1319 person (or she may just be plain old boring), because it says that all
1320 groups that have names beginning with @samp{alt} and @samp{rec} should
1321 be ignored, and all groups with names beginning with @samp{sci} should
1322 be subscribed.  Gnus will not use the normal subscription method for
1323 subscribing these groups.
1324 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
1325 variable defaults to @code{gnus-subscribe-alphabetically}.
1326
1327 @vindex gnus-options-not-subscribe
1328 @vindex gnus-options-subscribe
1329 If you don't want to mess with your @file{.newsrc} file, you can just
1330 set the two variables @code{gnus-options-subscribe} and
1331 @code{gnus-options-not-subscribe}.  These two variables do exactly the
1332 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
1333 and if the new group matches the former, it will be unconditionally
1334 subscribed, and if it matches the latter, it will be ignored.
1335
1336 @vindex gnus-auto-subscribed-groups
1337 Yet another variable that meddles here is
1338 @code{gnus-auto-subscribed-groups}.  It works exactly like
1339 @code{gnus-options-subscribe}, and is therefore really superfluous,
1340 but I thought it would be nice to have two of these.  This variable is
1341 more meant for setting some ground rules, while the other variable is
1342 used more for user fiddling.  By default this variable makes all new
1343 groups that come from mail back ends (@code{nnml}, @code{nnbabyl},
1344 @code{nnfolder}, @code{nnmbox}, @code{nnmh}, and @code{nnmaildir})
1345 subscribed.  If you don't like that, just set this variable to
1346 @code{nil}.
1347
1348 New groups that match this regexp are subscribed using
1349 @code{gnus-subscribe-options-newsgroup-method}.
1350
1351
1352 @node Changing Servers
1353 @section Changing Servers
1354 @cindex changing servers
1355
1356 Sometimes it is necessary to move from one @acronym{NNTP} server to another.
1357 This happens very rarely, but perhaps you change jobs, or one server is
1358 very flaky and you want to use another.
1359
1360 Changing the server is pretty easy, right?  You just change
1361 @code{gnus-select-method} to point to the new server?
1362
1363 @emph{Wrong!}
1364
1365 Article numbers are not (in any way) kept synchronized between different
1366 @acronym{NNTP} servers, and the only way Gnus keeps track of what articles
1367 you have read is by keeping track of article numbers.  So when you
1368 change @code{gnus-select-method}, your @file{.newsrc} file becomes
1369 worthless.
1370
1371 Gnus provides a few functions to attempt to translate a @file{.newsrc}
1372 file from one server to another.  They all have one thing in
1373 common---they take a looong time to run.  You don't want to use these
1374 functions more than absolutely necessary.
1375
1376 @kindex M-x gnus-change-server
1377 @findex gnus-change-server
1378 If you have access to both servers, Gnus can request the headers for all
1379 the articles you have read and compare @code{Message-ID}s and map the
1380 article numbers of the read articles and article marks.  The @kbd{M-x
1381 gnus-change-server} command will do this for all your native groups.  It
1382 will prompt for the method you want to move to.
1383
1384 @kindex M-x gnus-group-move-group-to-server
1385 @findex gnus-group-move-group-to-server
1386 You can also move individual groups with the @kbd{M-x
1387 gnus-group-move-group-to-server} command.  This is useful if you want to
1388 move a (foreign) group from one server to another.
1389
1390 @kindex M-x gnus-group-clear-data-on-native-groups
1391 @findex gnus-group-clear-data-on-native-groups
1392 If you don't have access to both the old and new server, all your marks
1393 and read ranges have become worthless.  You can use the @kbd{M-x
1394 gnus-group-clear-data-on-native-groups} command to clear out all data
1395 that you have on your native groups.  Use with caution.
1396
1397 @kindex M-x gnus-group-clear-data
1398 @findex gnus-group-clear-data
1399 Clear the data from the current group only---nix out marks and the
1400 list of read articles (@code{gnus-group-clear-data}).
1401
1402 After changing servers, you @strong{must} move the cache hierarchy away,
1403 since the cached articles will have wrong article numbers, which will
1404 affect which articles Gnus thinks are read.
1405 @code{gnus-group-clear-data-on-native-groups} will ask you if you want
1406 to have it done automatically; for @code{gnus-group-clear-data}, you
1407 can use @kbd{M-x gnus-cache-move-cache} (but beware, it will move the
1408 cache for all groups).
1409
1410
1411 @node Startup Files
1412 @section Startup Files
1413 @cindex startup files
1414 @cindex .newsrc
1415 @cindex .newsrc.el
1416 @cindex .newsrc.eld
1417
1418 Most common Unix news readers use a shared startup file called
1419 @file{.newsrc}.  This file contains all the information about what
1420 groups are subscribed, and which articles in these groups have been
1421 read.
1422
1423 Things got a bit more complicated with @sc{gnus}.  In addition to
1424 keeping the @file{.newsrc} file updated, it also used a file called
1425 @file{.newsrc.el} for storing all the information that didn't fit into
1426 the @file{.newsrc} file.  (Actually, it also duplicated everything in
1427 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
1428 files was the most recently saved, which enabled people to swap between
1429 @sc{gnus} and other newsreaders.
1430
1431 That was kinda silly, so Gnus went one better: In addition to the
1432 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
1433 @file{.newsrc.eld}.  It will read whichever of these files that are most
1434 recent, but it will never write a @file{.newsrc.el} file.  You should
1435 never delete the @file{.newsrc.eld} file---it contains much information
1436 not stored in the @file{.newsrc} file.
1437
1438 @vindex gnus-save-newsrc-file
1439 @vindex gnus-read-newsrc-file
1440 You can turn off writing the @file{.newsrc} file by setting
1441 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
1442 the file and save some space, as well as exiting from Gnus faster.
1443 However, this will make it impossible to use other newsreaders than
1444 Gnus.  But hey, who would want to, right?  Similarly, setting
1445 @code{gnus-read-newsrc-file} to @code{nil} makes Gnus ignore the
1446 @file{.newsrc} file and any @file{.newsrc-SERVER} files, which can be
1447 convenient if you use a different news reader occasionally, and you
1448 want to read a different subset of the available groups with that
1449 news reader.
1450
1451 @vindex gnus-save-killed-list
1452 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
1453 will not save the list of killed groups to the startup file.  This will
1454 save both time (when starting and quitting) and space (on disk).  It
1455 will also mean that Gnus has no record of what groups are new or old,
1456 so the automatic new groups subscription methods become meaningless.
1457 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
1458 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
1459 Groups}).  This variable can also be a regular expression.  If that's
1460 the case, remove all groups that do not match this regexp before
1461 saving.  This can be useful in certain obscure situations that involve
1462 several servers where not all servers support @code{ask-server}.
1463
1464 @vindex gnus-startup-file
1465 @vindex gnus-backup-startup-file
1466 @vindex version-control
1467 The @code{gnus-startup-file} variable says where the startup files are.
1468 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
1469 file being whatever that one is, with a @samp{.eld} appended.
1470 If you want version control for this file, set
1471 @code{gnus-backup-startup-file}.  It respects the same values as the
1472 @code{version-control} variable.
1473
1474 @vindex gnus-save-newsrc-hook
1475 @vindex gnus-save-quick-newsrc-hook
1476 @vindex gnus-save-standard-newsrc-hook
1477 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
1478 files, while @code{gnus-save-quick-newsrc-hook} is called just before
1479 saving the @file{.newsrc.eld} file, and
1480 @code{gnus-save-standard-newsrc-hook} is called just before saving the
1481 @file{.newsrc} file.  The latter two are commonly used to turn version
1482 control on or off.  Version control is on by default when saving the
1483 startup files.  If you want to turn backup creation off, say something like:
1484
1485 @lisp
1486 (defun turn-off-backup ()
1487   (set (make-local-variable 'backup-inhibited) t))
1488
1489 (add-hook 'gnus-save-quick-newsrc-hook 'turn-off-backup)
1490 (add-hook 'gnus-save-standard-newsrc-hook 'turn-off-backup)
1491 @end lisp
1492
1493 @vindex gnus-init-file
1494 @vindex gnus-site-init-file
1495 When Gnus starts, it will read the @code{gnus-site-init-file}
1496 (@file{.../site-lisp/gnus-init} by default) and @code{gnus-init-file}
1497 (@file{~/.gnus} by default) files.  These are normal Emacs Lisp files
1498 and can be used to avoid cluttering your @file{~/.emacs} and
1499 @file{site-init} files with Gnus stuff.  Gnus will also check for files
1500 with the same names as these, but with @file{.elc} and @file{.el}
1501 suffixes.  In other words, if you have set @code{gnus-init-file} to
1502 @file{~/.gnus}, it will look for @file{~/.gnus.elc}, @file{~/.gnus.el},
1503 and finally @file{~/.gnus} (in this order).  If Emacs was invoked with
1504 the @option{-q} or @option{--no-init-file} options (@pxref{Initial
1505 Options, ,Initial Options, emacs, The Emacs Manual}), Gnus doesn't read
1506 @code{gnus-init-file}.
1507
1508
1509 @node Auto Save
1510 @section Auto Save
1511 @cindex dribble file
1512 @cindex auto-save
1513
1514 Whenever you do something that changes the Gnus data (reading articles,
1515 catching up, killing/subscribing groups), the change is added to a
1516 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
1517 Emacs way.  If your Emacs should crash before you have saved the
1518 @file{.newsrc} files, all changes you have made can be recovered from
1519 this file.
1520
1521 If Gnus detects this file at startup, it will ask the user whether to
1522 read it.  The auto save file is deleted whenever the real startup file is
1523 saved.
1524
1525 @vindex gnus-use-dribble-file
1526 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1527 maintain a dribble buffer.  The default is @code{t}.
1528
1529 @vindex gnus-dribble-directory
1530 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
1531 this variable is @code{nil}, which it is by default, Gnus will dribble
1532 into the directory where the @file{.newsrc} file is located.  (This is
1533 normally the user's home directory.)  The dribble file will get the same
1534 file permissions as the @file{.newsrc} file.
1535
1536 @vindex gnus-always-read-dribble-file
1537 If @code{gnus-always-read-dribble-file} is non-@code{nil}, Gnus will
1538 read the dribble file on startup without querying the user.
1539
1540
1541 @node The Active File
1542 @section The Active File
1543 @cindex active file
1544 @cindex ignored groups
1545
1546 When Gnus starts, or indeed whenever it tries to determine whether new
1547 articles have arrived, it reads the active file.  This is a very large
1548 file that lists all the active groups and articles on the server.
1549
1550 @vindex gnus-ignored-newsgroups
1551 Before examining the active file, Gnus deletes all lines that match the
1552 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
1553 any groups with bogus names, but you can use this variable to make Gnus
1554 ignore hierarchies you aren't ever interested in.  However, this is not
1555 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
1556 Groups} for an overview of other variables that can be used instead.
1557
1558 @c This variable is
1559 @c @code{nil} by default, and will slow down active file handling somewhat
1560 @c if you set it to anything else.
1561
1562 @vindex gnus-read-active-file
1563 @c @head
1564 The active file can be rather Huge, so if you have a slow network, you
1565 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1566 reading the active file.  This variable is @code{some} by default.
1567
1568 Gnus will try to make do by getting information just on the groups that
1569 you actually subscribe to.
1570
1571 Note that if you subscribe to lots and lots of groups, setting this
1572 variable to @code{nil} will probably make Gnus slower, not faster.  At
1573 present, having this variable @code{nil} will slow Gnus down
1574 considerably, unless you read news over a 2400 baud modem.
1575
1576 This variable can also have the value @code{some}.  Gnus will then
1577 attempt to read active info only on the subscribed groups.  On some
1578 servers this is quite fast (on sparkling, brand new INN servers that
1579 support the @code{LIST ACTIVE group} command), on others this isn't fast
1580 at all.  In any case, @code{some} should be faster than @code{nil}, and
1581 is certainly faster than @code{t} over slow lines.
1582
1583 Some news servers (old versions of Leafnode and old versions of INN, for
1584 instance) do not support the @code{LIST ACTIVE group}.  For these
1585 servers, @code{nil} is probably the most efficient value for this
1586 variable.
1587
1588 If this variable is @code{nil}, Gnus will ask for group info in total
1589 lock-step, which isn't very fast.  If it is @code{some} and you use an
1590 @acronym{NNTP} server, Gnus will pump out commands as fast as it can, and
1591 read all the replies in one swoop.  This will normally result in better
1592 performance, but if the server does not support the aforementioned
1593 @code{LIST ACTIVE group} command, this isn't very nice to the server.
1594
1595 If you think that starting up Gnus takes too long, try all the three
1596 different values for this variable and see what works best for you.
1597
1598 In any case, if you use @code{some} or @code{nil}, you should definitely
1599 kill all groups that you aren't interested in to speed things up.
1600
1601 Note that this variable also affects active file retrieval from
1602 secondary select methods.
1603
1604
1605 @node Startup Variables
1606 @section Startup Variables
1607
1608 @table @code
1609
1610 @item gnus-load-hook
1611 @vindex gnus-load-hook
1612 A hook run while Gnus is being loaded.  Note that this hook will
1613 normally be run just once in each Emacs session, no matter how many
1614 times you start Gnus.
1615
1616 @item gnus-before-startup-hook
1617 @vindex gnus-before-startup-hook
1618 A hook run after starting up Gnus successfully.
1619
1620 @item gnus-startup-hook
1621 @vindex gnus-startup-hook
1622 A hook run as the very last thing after starting up Gnus
1623
1624 @item gnus-started-hook
1625 @vindex gnus-started-hook
1626 A hook that is run as the very last thing after starting up Gnus
1627 successfully.
1628
1629 @item gnus-setup-news-hook
1630 @vindex gnus-setup-news-hook
1631 A hook that is run after reading the @file{.newsrc} file(s), but before
1632 generating the group buffer.
1633
1634 @item gnus-check-bogus-newsgroups
1635 @vindex gnus-check-bogus-newsgroups
1636 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1637 startup.  A @dfn{bogus group} is a group that you have in your
1638 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
1639 bogus groups can take quite a while, so to save time and resources it's
1640 best to leave this option off, and do the checking for bogus groups once
1641 in a while from the group buffer instead (@pxref{Group Maintenance}).
1642
1643 @item gnus-inhibit-startup-message
1644 @vindex gnus-inhibit-startup-message
1645 If non-@code{nil}, the startup message won't be displayed.  That way,
1646 your boss might not notice as easily that you are reading news instead
1647 of doing your job.  Note that this variable is used before
1648 @file{~/.gnus.el} is loaded, so it should be set in @file{.emacs} instead.
1649
1650 @item gnus-no-groups-message
1651 @vindex gnus-no-groups-message
1652 Message displayed by Gnus when no groups are available.
1653
1654 @item gnus-play-startup-jingle
1655 @vindex gnus-play-startup-jingle
1656 If non-@code{nil}, play the Gnus jingle at startup.
1657
1658 @item gnus-startup-jingle
1659 @vindex gnus-startup-jingle
1660 Jingle to be played if the above variable is non-@code{nil}.  The
1661 default is @samp{Tuxedomoon.Jingle4.au}.
1662
1663 @end table
1664
1665
1666 @node Group Buffer
1667 @chapter Group Buffer
1668 @cindex group buffer
1669
1670 @c Alex Schroeder suggests to rearrange this as follows:
1671 @c
1672 @c <kensanata> ok, just save it for reference.  I'll go to bed in a minute.
1673 @c   1. Selecting a Group, 2. (new) Finding a Group, 3. Group Levels,
1674 @c   4. Subscription Commands, 5. Group Maneuvering, 6. Group Data,
1675 @c   7. Group Score, 8. Group Buffer Format
1676 @c <kensanata> Group Levels should have more information on levels 5 to 9.  I
1677 @c   suggest to split the 4th paragraph ("Gnus considers groups...") as follows:
1678 @c <kensanata> First, "Gnus considers groups... (default 9)."
1679 @c <kensanata> New, a table summarizing what levels 1 to 9 mean.
1680 @c <kensanata> Third, "Gnus treats subscribed ... reasons of efficiency"
1681 @c <kensanata> Then expand the next paragraph or add some more to it.
1682 @c    This short one sentence explains levels 1 and 2, therefore I understand
1683 @c    that I should keep important news at 3 and boring news at 4.
1684 @c    Say so!  Then go on to explain why I should bother with levels 6 to 9.
1685 @c    Maybe keep those that you don't want to read temporarily at 6,
1686 @c    those that you never want to read at 8, those that offend your
1687 @c    human rights at 9...
1688
1689
1690 The @dfn{group buffer} lists all (or parts) of the available groups.  It
1691 is the first buffer shown when Gnus starts, and will never be killed as
1692 long as Gnus is active.
1693
1694 @iftex
1695 @iflatex
1696 \gnusfigure{The Group Buffer}{320}{
1697 \put(75,50){\epsfig{figure=ps/group,height=9cm}}
1698 \put(120,37){\makebox(0,0)[t]{Buffer name}}
1699 \put(120,38){\vector(1,2){10}}
1700 \put(40,60){\makebox(0,0)[r]{Mode line}}
1701 \put(40,58){\vector(1,0){30}}
1702 \put(200,28){\makebox(0,0)[t]{Native select method}}
1703 \put(200,26){\vector(-1,2){15}}
1704 }
1705 @end iflatex
1706 @end iftex
1707
1708 @menu
1709 * Group Buffer Format::         Information listed and how you can change it.
1710 * Group Maneuvering::           Commands for moving in the group buffer.
1711 * Selecting a Group::           Actually reading news.
1712 * Subscription Commands::       Unsubscribing, killing, subscribing.
1713 * Group Data::                  Changing the info for a group.
1714 * Group Levels::                Levels? What are those, then?
1715 * Group Score::                 A mechanism for finding out what groups you like.
1716 * Marking Groups::              You can mark groups for later processing.
1717 * Foreign Groups::              Creating and editing groups.
1718 * Group Parameters::            Each group may have different parameters set.
1719 * Listing Groups::              Gnus can list various subsets of the groups.
1720 * Sorting Groups::              Re-arrange the group order.
1721 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
1722 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
1723 * Exiting Gnus::                Stop reading news and get some work done.
1724 * Group Topics::                A folding group mode divided into topics.
1725 * Misc Group Stuff::            Other stuff that you can to do.
1726 @end menu
1727
1728
1729 @node Group Buffer Format
1730 @section Group Buffer Format
1731
1732 @menu
1733 * Group Line Specification::    Deciding how the group buffer is to look.
1734 * Group Mode Line Specification::  The group buffer mode line.
1735 * Group Highlighting::          Having nice colors in the group buffer.
1736 @end menu
1737
1738
1739 @node Group Line Specification
1740 @subsection Group Line Specification
1741 @cindex group buffer format
1742
1743 The default format of the group buffer is nice and dull, but you can
1744 make it as exciting and ugly as you feel like.
1745
1746 Here's a couple of example group lines:
1747
1748 @example
1749      25: news.announce.newusers
1750  *    0: alt.fan.andrea-dworkin
1751 @end example
1752
1753 Quite simple, huh?
1754
1755 You can see that there are 25 unread articles in
1756 @samp{news.announce.newusers}.  There are no unread articles, but some
1757 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1758 asterisk at the beginning of the line?).
1759
1760 @vindex gnus-group-line-format
1761 You can change that format to whatever you want by fiddling with the
1762 @code{gnus-group-line-format} variable.  This variable works along the
1763 lines of a @code{format} specification, which is pretty much the same as
1764 a @code{printf} specifications, for those of you who use (feh!) C.
1765 @xref{Formatting Variables}.
1766
1767 @samp{%M%S%5y:%B%(%g%)\n} is the value that produced those lines above.
1768
1769 There should always be a colon on the line; the cursor always moves to
1770 the colon after performing an operation.  @xref{Positioning
1771 Point}.  Nothing else is required---not even the group name.  All
1772 displayed text is just window dressing, and is never examined by Gnus.
1773 Gnus stores all real information it needs using text properties.
1774
1775 (Note that if you make a really strange, wonderful, spreadsheet-like
1776 layout, everybody will believe you are hard at work with the accounting
1777 instead of wasting time reading news.)
1778
1779 Here's a list of all available format characters:
1780
1781 @table @samp
1782
1783 @item M
1784 An asterisk if the group only has marked articles.
1785
1786 @item S
1787 Whether the group is subscribed.
1788
1789 @item L
1790 Level of subscribedness.
1791
1792 @item N
1793 Number of unread articles.
1794
1795 @item I
1796 Number of dormant articles.
1797
1798 @item T
1799 Number of ticked articles.
1800
1801 @item R
1802 Number of read articles.
1803
1804 @item U
1805 Number of unseen articles.
1806
1807 @item t
1808 Estimated total number of articles.  (This is really @var{max-number}
1809 minus @var{min-number} plus 1.)
1810
1811 Gnus uses this estimation because the @acronym{NNTP} protocol provides
1812 efficient access to @var{max-number} and @var{min-number} but getting
1813 the true unread message count is not possible efficiently.  For
1814 hysterical raisins, even the mail back ends, where the true number of
1815 unread messages might be available efficiently, use the same limited
1816 interface.  To remove this restriction from Gnus means that the back
1817 end interface has to be changed, which is not an easy job.  If you
1818 want to work on this, please contact the Gnus mailing list.
1819
1820 @item y
1821 Number of unread, unticked, non-dormant articles.
1822
1823 @item i
1824 Number of ticked and dormant articles.
1825
1826 @item g
1827 Full group name.
1828
1829 @item G
1830 Group name.
1831
1832 @item C
1833 Group comment (@pxref{Group Parameters}) or group name if there is no
1834 comment element in the group parameters.
1835
1836 @item D
1837 Newsgroup description.  You need to read the group descriptions
1838 before these will appear, and to do that, you either have to set
1839 @code{gnus-read-active-file} or use the group buffer @kbd{M-d}
1840 command.
1841
1842 @item o
1843 @samp{m} if moderated.
1844
1845 @item O
1846 @samp{(m)} if moderated.
1847
1848 @item s
1849 Select method.
1850
1851 @item B
1852 If the summary buffer for the group is open or not.
1853
1854 @item n
1855 Select from where.
1856
1857 @item z
1858 A string that looks like @samp{<%s:%n>} if a foreign select method is
1859 used.
1860
1861 @item P
1862 Indentation based on the level of the topic (@pxref{Group Topics}).
1863
1864 @item c
1865 @vindex gnus-group-uncollapsed-levels
1866 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
1867 variable says how many levels to leave at the end of the group name.
1868 The default is 1---this will mean that group names like
1869 @samp{gnu.emacs.gnus} will be shortened to @samp{g.e.gnus}.
1870
1871 @item m
1872 @vindex gnus-new-mail-mark
1873 @cindex %
1874 @samp{%} (@code{gnus-new-mail-mark}) if there has arrived new mail to
1875 the group lately.
1876
1877 @item p
1878 @samp{#} (@code{gnus-process-mark}) if the group is process marked.
1879
1880 @item d
1881 A string that says when you last read the group (@pxref{Group
1882 Timestamp}).
1883
1884 @item F
1885 The disk space used by the articles fetched by both the cache and
1886 agent.  The value is automatically scaled to bytes(B), kilobytes(K),
1887 megabytes(M), or gigabytes(G) to minimize the column width.  A format
1888 of %7F is sufficient for a fixed-width column.
1889
1890 @item u
1891 User defined specifier.  The next character in the format string should
1892 be a letter.  Gnus will call the function
1893 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1894 following @samp{%u}.  The function will be passed a single dummy
1895 parameter as argument.  The function should return a string, which will
1896 be inserted into the buffer just like information from any other
1897 specifier.
1898 @end table
1899
1900 @cindex *
1901 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
1902 if no info is available---for instance, if it is a non-activated foreign
1903 group, or a bogus native group.
1904
1905
1906 @node Group Mode Line Specification
1907 @subsection Group Mode Line Specification
1908 @cindex group mode line
1909
1910 @vindex gnus-group-mode-line-format
1911 The mode line can be changed by setting
1912 @code{gnus-group-mode-line-format} (@pxref{Mode Line Formatting}).  It
1913 doesn't understand that many format specifiers:
1914
1915 @table @samp
1916 @item S
1917 The native news server.
1918 @item M
1919 The native select method.
1920 @end table
1921
1922
1923 @node Group Highlighting
1924 @subsection Group Highlighting
1925 @cindex highlighting
1926 @cindex group highlighting
1927
1928 @vindex gnus-group-highlight
1929 Highlighting in the group buffer is controlled by the
1930 @code{gnus-group-highlight} variable.  This is an alist with elements
1931 that look like @code{(@var{form} . @var{face})}.  If @var{form} evaluates to
1932 something non-@code{nil}, the @var{face} will be used on the line.
1933
1934 Here's an example value for this variable that might look nice if the
1935 background is dark:
1936
1937 @lisp
1938 (cond (window-system
1939        (setq custom-background-mode 'light)
1940        (defface my-group-face-1
1941          '((t (:foreground "Red" :bold t))) "First group face")
1942        (defface my-group-face-2
1943          '((t (:foreground "DarkSeaGreen4" :bold t)))
1944          "Second group face")
1945        (defface my-group-face-3
1946          '((t (:foreground "Green4" :bold t))) "Third group face")
1947        (defface my-group-face-4
1948          '((t (:foreground "SteelBlue" :bold t))) "Fourth group face")
1949        (defface my-group-face-5
1950          '((t (:foreground "Blue" :bold t))) "Fifth group face")))
1951
1952 (setq gnus-group-highlight
1953       '(((> unread 200) . my-group-face-1)
1954         ((and (< level 3) (zerop unread)) . my-group-face-2)
1955         ((< level 3) . my-group-face-3)
1956         ((zerop unread) . my-group-face-4)
1957         (t . my-group-face-5)))
1958 @end lisp
1959
1960 Also @pxref{Faces and Fonts}.
1961
1962 Variables that are dynamically bound when the forms are evaluated
1963 include:
1964
1965 @table @code
1966 @item group
1967 The group name.
1968 @item unread
1969 The number of unread articles in the group.
1970 @item method
1971 The select method.
1972 @item mailp
1973 Whether the group is a mail group.
1974 @item level
1975 The level of the group.
1976 @item score
1977 The score of the group.
1978 @item ticked
1979 The number of ticked articles in the group.
1980 @item total
1981 The total number of articles in the group.  Or rather,
1982 @var{max-number} minus @var{min-number} plus one.
1983 @item topic
1984 When using the topic minor mode, this variable is bound to the current
1985 topic being inserted.
1986 @end table
1987
1988 When the forms are @code{eval}ed, point is at the beginning of the line
1989 of the group in question, so you can use many of the normal Gnus
1990 functions for snarfing info on the group.
1991
1992 @vindex gnus-group-update-hook
1993 @findex gnus-group-highlight-line
1994 @code{gnus-group-update-hook} is called when a group line is changed.
1995 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
1996 calls @code{gnus-group-highlight-line} by default.
1997
1998
1999 @node Group Maneuvering
2000 @section Group Maneuvering
2001 @cindex group movement
2002
2003 All movement commands understand the numeric prefix and will behave as
2004 expected, hopefully.
2005
2006 @table @kbd
2007
2008 @item n
2009 @kindex n (Group)
2010 @findex gnus-group-next-unread-group
2011 Go to the next group that has unread articles
2012 (@code{gnus-group-next-unread-group}).
2013
2014 @item p
2015 @itemx DEL
2016 @kindex DEL (Group)
2017 @kindex p (Group)
2018 @findex gnus-group-prev-unread-group
2019 Go to the previous group that has unread articles
2020 (@code{gnus-group-prev-unread-group}).
2021
2022 @item N
2023 @kindex N (Group)
2024 @findex gnus-group-next-group
2025 Go to the next group (@code{gnus-group-next-group}).
2026
2027 @item P
2028 @kindex P (Group)
2029 @findex gnus-group-prev-group
2030 Go to the previous group (@code{gnus-group-prev-group}).
2031
2032 @item M-n
2033 @kindex M-n (Group)
2034 @findex gnus-group-next-unread-group-same-level
2035 Go to the next unread group on the same (or lower) level
2036 (@code{gnus-group-next-unread-group-same-level}).
2037
2038 @item M-p
2039 @kindex M-p (Group)
2040 @findex gnus-group-prev-unread-group-same-level
2041 Go to the previous unread group on the same (or lower) level
2042 (@code{gnus-group-prev-unread-group-same-level}).
2043 @end table
2044
2045 Three commands for jumping to groups:
2046
2047 @table @kbd
2048
2049 @item j
2050 @kindex j (Group)
2051 @findex gnus-group-jump-to-group
2052 Jump to a group (and make it visible if it isn't already)
2053 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
2054 like living groups.
2055
2056 @item ,
2057 @kindex , (Group)
2058 @findex gnus-group-best-unread-group
2059 Jump to the unread group with the lowest level
2060 (@code{gnus-group-best-unread-group}).
2061
2062 @item .
2063 @kindex . (Group)
2064 @findex gnus-group-first-unread-group
2065 Jump to the first group with unread articles
2066 (@code{gnus-group-first-unread-group}).
2067 @end table
2068
2069 @vindex gnus-group-goto-unread
2070 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
2071 commands will move to the next group, not the next unread group.  Even
2072 the commands that say they move to the next unread group.  The default
2073 is @code{t}.
2074
2075
2076 @node Selecting a Group
2077 @section Selecting a Group
2078 @cindex group selection
2079
2080 @table @kbd
2081
2082 @item SPACE
2083 @kindex SPACE (Group)
2084 @findex gnus-group-read-group
2085 Select the current group, switch to the summary buffer and display the
2086 first unread article (@code{gnus-group-read-group}).  If there are no
2087 unread articles in the group, or if you give a non-numerical prefix to
2088 this command, Gnus will offer to fetch all the old articles in this
2089 group from the server.  If you give a numerical prefix @var{n}, @var{n}
2090 determines the number of articles Gnus will fetch.  If @var{n} is
2091 positive, Gnus fetches the @var{n} newest articles, if @var{n} is
2092 negative, Gnus fetches the @code{abs(@var{n})} oldest articles.
2093
2094 Thus, @kbd{SPC} enters the group normally, @kbd{C-u SPC} offers old
2095 articles, @kbd{C-u 4 2 SPC} fetches the 42 newest articles, and @kbd{C-u
2096 - 4 2 SPC} fetches the 42 oldest ones.
2097
2098 When you are in the group (in the Summary buffer), you can type
2099 @kbd{M-g} to fetch new articles, or @kbd{C-u M-g} to also show the old
2100 ones.
2101
2102 @item RET
2103 @kindex RET (Group)
2104 @findex gnus-group-select-group
2105 Select the current group and switch to the summary buffer
2106 (@code{gnus-group-select-group}).  Takes the same arguments as
2107 @code{gnus-group-read-group}---the only difference is that this command
2108 does not display the first unread article automatically upon group
2109 entry.
2110
2111 @item M-RET
2112 @kindex M-RET (Group)
2113 @findex gnus-group-quick-select-group
2114 This does the same as the command above, but tries to do it with the
2115 minimum amount of fuzz (@code{gnus-group-quick-select-group}).  No
2116 scoring/killing will be performed, there will be no highlights and no
2117 expunging.  This might be useful if you're in a real hurry and have to
2118 enter some humongous group.  If you give a 0 prefix to this command
2119 (i.e., @kbd{0 M-RET}), Gnus won't even generate the summary buffer,
2120 which is useful if you want to toggle threading before generating the
2121 summary buffer (@pxref{Summary Generation Commands}).
2122
2123 @item M-SPACE
2124 @kindex M-SPACE (Group)
2125 @findex gnus-group-visible-select-group
2126 This is yet one more command that does the same as the @kbd{RET}
2127 command, but this one does it without expunging and hiding dormants
2128 (@code{gnus-group-visible-select-group}).
2129
2130 @item C-M-RET
2131 @kindex C-M-RET (Group)
2132 @findex gnus-group-select-group-ephemerally
2133 Finally, this command selects the current group ephemerally without
2134 doing any processing of its contents
2135 (@code{gnus-group-select-group-ephemerally}).  Even threading has been
2136 turned off.  Everything you do in the group after selecting it in this
2137 manner will have no permanent effects.
2138
2139 @end table
2140
2141 @vindex gnus-large-newsgroup
2142 The @code{gnus-large-newsgroup} variable says what Gnus should
2143 consider to be a big group.  If it is @code{nil}, no groups are
2144 considered big.  The default value is 200.  If the group has more
2145 (unread and/or ticked) articles than this, Gnus will query the user
2146 before entering the group.  The user can then specify how many
2147 articles should be fetched from the server.  If the user specifies a
2148 negative number (@var{-n}), the @var{n} oldest articles will be
2149 fetched.  If it is positive, the @var{n} articles that have arrived
2150 most recently will be fetched.
2151
2152 @vindex gnus-large-ephemeral-newsgroup
2153 @code{gnus-large-ephemeral-newsgroup} is the same as
2154 @code{gnus-large-newsgroup}, but is only used for ephemeral
2155 newsgroups.
2156
2157 @vindex gnus-select-group-hook
2158 @vindex gnus-auto-select-first
2159 @vindex gnus-auto-select-subject
2160 If @code{gnus-auto-select-first} is non-@code{nil}, select an article
2161 automatically when entering a group with the @kbd{SPACE} command.
2162 Which article this is is controlled by the
2163 @code{gnus-auto-select-subject} variable.  Valid values for this
2164 variable is:
2165
2166 @table @code
2167
2168 @item unread
2169 Place point on the subject line of the first unread article.
2170
2171 @item first
2172 Place point on the subject line of the first article.
2173
2174 @item unseen
2175 Place point on the subject line of the first unseen article.
2176
2177 @item unseen-or-unread
2178 Place point on the subject line of the first unseen article, and if
2179 there is no such article, place point on the subject line of the first
2180 unread article.
2181
2182 @item best
2183 Place point on the subject line of the highest-scored unread article.
2184
2185 @end table
2186
2187 This variable can also be a function.  In that case, that function
2188 will be called to place point on a subject line.
2189
2190 If you want to prevent automatic selection in some group (say, in a
2191 binary group with Huge articles) you can set the
2192 @code{gnus-auto-select-first} variable to @code{nil} in
2193 @code{gnus-select-group-hook}, which is called when a group is
2194 selected.
2195
2196
2197 @node Subscription Commands
2198 @section Subscription Commands
2199 @cindex subscription
2200
2201 @table @kbd
2202
2203 @item S t
2204 @itemx u
2205 @kindex S t (Group)
2206 @kindex u (Group)
2207 @findex gnus-group-unsubscribe-current-group
2208 @c @icon{gnus-group-unsubscribe}
2209 Toggle subscription to the current group
2210 (@code{gnus-group-unsubscribe-current-group}).
2211
2212 @item S s
2213 @itemx U
2214 @kindex S s (Group)
2215 @kindex U (Group)
2216 @findex gnus-group-unsubscribe-group
2217 Prompt for a group to subscribe, and then subscribe it.  If it was
2218 subscribed already, unsubscribe it instead
2219 (@code{gnus-group-unsubscribe-group}).
2220
2221 @item S k
2222 @itemx C-k
2223 @kindex S k (Group)
2224 @kindex C-k (Group)
2225 @findex gnus-group-kill-group
2226 @c @icon{gnus-group-kill-group}
2227 Kill the current group (@code{gnus-group-kill-group}).
2228
2229 @item S y
2230 @itemx C-y
2231 @kindex S y (Group)
2232 @kindex C-y (Group)
2233 @findex gnus-group-yank-group
2234 Yank the last killed group (@code{gnus-group-yank-group}).
2235
2236 @item C-x C-t
2237 @kindex C-x C-t (Group)
2238 @findex gnus-group-transpose-groups
2239 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
2240 really a subscription command, but you can use it instead of a
2241 kill-and-yank sequence sometimes.
2242
2243 @item S w
2244 @itemx C-w
2245 @kindex S w (Group)
2246 @kindex C-w (Group)
2247 @findex gnus-group-kill-region
2248 Kill all groups in the region (@code{gnus-group-kill-region}).
2249
2250 @item S z
2251 @kindex S z (Group)
2252 @findex gnus-group-kill-all-zombies
2253 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
2254
2255 @item S C-k
2256 @kindex S C-k (Group)
2257 @findex gnus-group-kill-level
2258 Kill all groups on a certain level (@code{gnus-group-kill-level}).
2259 These groups can't be yanked back after killing, so this command should
2260 be used with some caution.  The only time where this command comes in
2261 really handy is when you have a @file{.newsrc} with lots of unsubscribed
2262 groups that you want to get rid off.  @kbd{S C-k} on level 7 will
2263 kill off all unsubscribed groups that do not have message numbers in the
2264 @file{.newsrc} file.
2265
2266 @end table
2267
2268 Also @pxref{Group Levels}.
2269
2270
2271 @node Group Data
2272 @section Group Data
2273
2274 @table @kbd
2275
2276 @item c
2277 @kindex c (Group)
2278 @findex gnus-group-catchup-current
2279 @vindex gnus-group-catchup-group-hook
2280 @c @icon{gnus-group-catchup-current}
2281 Mark all unticked articles in this group as read
2282 (@code{gnus-group-catchup-current}).
2283 @code{gnus-group-catchup-group-hook} is called when catching up a group from
2284 the group buffer.
2285
2286 @item C
2287 @kindex C (Group)
2288 @findex gnus-group-catchup-current-all
2289 Mark all articles in this group, even the ticked ones, as read
2290 (@code{gnus-group-catchup-current-all}).
2291
2292 @item M-c
2293 @kindex M-c (Group)
2294 @findex gnus-group-clear-data
2295 Clear the data from the current group---nix out marks and the list of
2296 read articles (@code{gnus-group-clear-data}).
2297
2298 @item M-x gnus-group-clear-data-on-native-groups
2299 @kindex M-x gnus-group-clear-data-on-native-groups
2300 @findex gnus-group-clear-data-on-native-groups
2301 If you have switched from one @acronym{NNTP} server to another, all your marks
2302 and read ranges have become worthless.  You can use this command to
2303 clear out all data that you have on your native groups.  Use with
2304 caution.
2305
2306 @end table
2307
2308
2309 @node Group Levels
2310 @section Group Levels
2311 @cindex group level
2312 @cindex level
2313
2314 All groups have a level of @dfn{subscribedness}.  For instance, if a
2315 group is on level 2, it is more subscribed than a group on level 5.  You
2316 can ask Gnus to just list groups on a given level or lower
2317 (@pxref{Listing Groups}), or to just check for new articles in groups on
2318 a given level or lower (@pxref{Scanning New Messages}).
2319
2320 Remember:  The higher the level of the group, the less important it is.
2321
2322 @table @kbd
2323
2324 @item S l
2325 @kindex S l (Group)
2326 @findex gnus-group-set-current-level
2327 Set the level of the current group.  If a numeric prefix is given, the
2328 next @var{n} groups will have their levels set.  The user will be
2329 prompted for a level.
2330 @end table
2331
2332 @vindex gnus-level-killed
2333 @vindex gnus-level-zombie
2334 @vindex gnus-level-unsubscribed
2335 @vindex gnus-level-subscribed
2336 Gnus considers groups from levels 1 to
2337 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
2338 @code{gnus-level-subscribed} (exclusive) and
2339 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
2340 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
2341 (default 8) and @code{gnus-level-killed} to be killed (completely dead)
2342 (default 9).  Gnus treats subscribed and unsubscribed groups exactly the
2343 same, but zombie and killed groups have no information on what articles
2344 you have read, etc, stored.  This distinction between dead and living
2345 groups isn't done because it is nice or clever, it is done purely for
2346 reasons of efficiency.
2347
2348 It is recommended that you keep all your mail groups (if any) on quite
2349 low levels (e.g. 1 or 2).
2350
2351 Maybe the following description of the default behavior of Gnus helps to
2352 understand what these levels are all about.  By default, Gnus shows you
2353 subscribed nonempty groups, but by hitting @kbd{L} you can have it show
2354 empty subscribed groups and unsubscribed groups, too.  Type @kbd{l} to
2355 go back to showing nonempty subscribed groups again.  Thus, unsubscribed
2356 groups are hidden, in a way.
2357
2358 Zombie and killed groups are similar to unsubscribed groups in that they
2359 are hidden by default.  But they are different from subscribed and
2360 unsubscribed groups in that Gnus doesn't ask the news server for
2361 information (number of messages, number of unread messages) on zombie
2362 and killed groups.  Normally, you use @kbd{C-k} to kill the groups you
2363 aren't interested in.  If most groups are killed, Gnus is faster.
2364
2365 Why does Gnus distinguish between zombie and killed groups?  Well, when
2366 a new group arrives on the server, Gnus by default makes it a zombie
2367 group.  This means that you are normally not bothered with new groups,
2368 but you can type @kbd{A z} to get a list of all new groups.  Subscribe
2369 the ones you like and kill the ones you don't want.  (@kbd{A k} shows a
2370 list of killed groups.)
2371
2372 If you want to play with the level variables, you should show some care.
2373 Set them once, and don't touch them ever again.  Better yet, don't touch
2374 them at all unless you know exactly what you're doing.
2375
2376 @vindex gnus-level-default-unsubscribed
2377 @vindex gnus-level-default-subscribed
2378 Two closely related variables are @code{gnus-level-default-subscribed}
2379 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
2380 which are the levels that new groups will be put on if they are
2381 (un)subscribed.  These two variables should, of course, be inside the
2382 relevant valid ranges.
2383
2384 @vindex gnus-keep-same-level
2385 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
2386 will only move to groups of the same level (or lower).  In
2387 particular, going from the last article in one group to the next group
2388 will go to the next group of the same level (or lower).  This might be
2389 handy if you want to read the most important groups before you read the
2390 rest.
2391
2392 If this variable is @code{best}, Gnus will make the next newsgroup the
2393 one with the best level.
2394
2395 @vindex gnus-group-default-list-level
2396 All groups with a level less than or equal to
2397 @code{gnus-group-default-list-level} will be listed in the group buffer
2398 by default.
2399
2400 @vindex gnus-group-list-inactive-groups
2401 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
2402 groups will be listed along with the unread groups.  This variable is
2403 @code{t} by default.  If it is @code{nil}, inactive groups won't be
2404 listed.
2405
2406 @vindex gnus-group-use-permanent-levels
2407 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
2408 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
2409 use this level as the ``work'' level.
2410
2411 @vindex gnus-activate-level
2412 Gnus will normally just activate (i. e., query the server about) groups
2413 on level @code{gnus-activate-level} or less.  If you don't want to
2414 activate unsubscribed groups, for instance, you might set this variable
2415 to 5.  The default is 6.
2416
2417
2418 @node Group Score
2419 @section Group Score
2420 @cindex group score
2421 @cindex group rank
2422 @cindex rank
2423
2424 You would normally keep important groups on high levels, but that scheme
2425 is somewhat restrictive.  Don't you wish you could have Gnus sort the
2426 group buffer according to how often you read groups, perhaps?  Within
2427 reason?
2428
2429 This is what @dfn{group score} is for.  You can have Gnus assign a score
2430 to each group through the mechanism described below.  You can then sort
2431 the group buffer based on this score.  Alternatively, you can sort on
2432 score and then level.  (Taken together, the level and the score is
2433 called the @dfn{rank} of the group.  A group that is on level 4 and has
2434 a score of 1 has a higher rank than a group on level 5 that has a score
2435 of 300.  (The level is the most significant part and the score is the
2436 least significant part.))
2437
2438 @findex gnus-summary-bubble-group
2439 If you want groups you read often to get higher scores than groups you
2440 read seldom you can add the @code{gnus-summary-bubble-group} function to
2441 the @code{gnus-summary-exit-hook} hook.  This will result (after
2442 sorting) in a bubbling sort of action.  If you want to see that in
2443 action after each summary exit, you can add
2444 @code{gnus-group-sort-groups-by-rank} or
2445 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
2446 slow things down somewhat.
2447
2448
2449 @node Marking Groups
2450 @section Marking Groups
2451 @cindex marking groups
2452
2453 If you want to perform some command on several groups, and they appear
2454 subsequently in the group buffer, you would normally just give a
2455 numerical prefix to the command.  Most group commands will then do your
2456 bidding on those groups.
2457
2458 However, if the groups are not in sequential order, you can still
2459 perform a command on several groups.  You simply mark the groups first
2460 with the process mark and then execute the command.
2461
2462 @table @kbd
2463
2464 @item #
2465 @kindex # (Group)
2466 @itemx M m
2467 @kindex M m (Group)
2468 @findex gnus-group-mark-group
2469 Set the mark on the current group (@code{gnus-group-mark-group}).
2470
2471 @item M-#
2472 @kindex M-# (Group)
2473 @itemx M u
2474 @kindex M u (Group)
2475 @findex gnus-group-unmark-group
2476 Remove the mark from the current group
2477 (@code{gnus-group-unmark-group}).
2478
2479 @item M U
2480 @kindex M U (Group)
2481 @findex gnus-group-unmark-all-groups
2482 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}).
2483
2484 @item M w
2485 @kindex M w (Group)
2486 @findex gnus-group-mark-region
2487 Mark all groups between point and mark (@code{gnus-group-mark-region}).
2488
2489 @item M b
2490 @kindex M b (Group)
2491 @findex gnus-group-mark-buffer
2492 Mark all groups in the buffer (@code{gnus-group-mark-buffer}).
2493
2494 @item M r
2495 @kindex M r (Group)
2496 @findex gnus-group-mark-regexp
2497 Mark all groups that match some regular expression
2498 (@code{gnus-group-mark-regexp}).
2499 @end table
2500
2501 Also @pxref{Process/Prefix}.
2502
2503 @findex gnus-group-universal-argument
2504 If you want to execute some command on all groups that have been marked
2505 with the process mark, you can use the @kbd{M-&}
2506 (@code{gnus-group-universal-argument}) command.  It will prompt you for
2507 the command to be executed.
2508
2509
2510 @node Foreign Groups
2511 @section Foreign Groups
2512 @cindex foreign groups
2513
2514 Below are some group mode commands for making and editing general foreign
2515 groups, as well as commands to ease the creation of a few
2516 special-purpose groups.  All these commands insert the newly created
2517 groups under point---@code{gnus-subscribe-newsgroup-method} is not
2518 consulted.
2519
2520 @table @kbd
2521
2522 @item G m
2523 @kindex G m (Group)
2524 @findex gnus-group-make-group
2525 @cindex making groups
2526 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
2527 for a name, a method and possibly an @dfn{address}.  For an easier way
2528 to subscribe to @acronym{NNTP} groups (@pxref{Browse Foreign Server}).
2529
2530 @item G M
2531 @kindex G M (Group)
2532 @findex gnus-group-read-ephemeral-group
2533 Make an ephemeral group (@code{gnus-group-read-ephemeral-group}).  Gnus
2534 will prompt you for a name, a method and an @dfn{address}.
2535
2536 @item G r
2537 @kindex G r (Group)
2538 @findex gnus-group-rename-group
2539 @cindex renaming groups
2540 Rename the current group to something else
2541 (@code{gnus-group-rename-group}).  This is valid only on some
2542 groups---mail groups mostly.  This command might very well be quite slow
2543 on some back ends.
2544
2545 @item G c
2546 @kindex G c (Group)
2547 @cindex customizing
2548 @findex gnus-group-customize
2549 Customize the group parameters (@code{gnus-group-customize}).
2550
2551 @item G e
2552 @kindex G e (Group)
2553 @findex gnus-group-edit-group-method
2554 @cindex renaming groups
2555 Enter a buffer where you can edit the select method of the current
2556 group (@code{gnus-group-edit-group-method}).
2557
2558 @item G p
2559 @kindex G p (Group)
2560 @findex gnus-group-edit-group-parameters
2561 Enter a buffer where you can edit the group parameters
2562 (@code{gnus-group-edit-group-parameters}).
2563
2564 @item G E
2565 @kindex G E (Group)
2566 @findex gnus-group-edit-group
2567 Enter a buffer where you can edit the group info
2568 (@code{gnus-group-edit-group}).
2569
2570 @item G d
2571 @kindex G d (Group)
2572 @findex gnus-group-make-directory-group
2573 @cindex nndir
2574 Make a directory group (@pxref{Directory Groups}).  You will be prompted
2575 for a directory name (@code{gnus-group-make-directory-group}).
2576
2577 @item G h
2578 @kindex G h (Group)
2579 @cindex help group
2580 @findex gnus-group-make-help-group
2581 Make the Gnus help group (@code{gnus-group-make-help-group}).
2582
2583 @item G a
2584 @kindex G a (Group)
2585 @cindex (ding) archive
2586 @cindex archive group
2587 @findex gnus-group-make-archive-group
2588 @vindex gnus-group-archive-directory
2589 @vindex gnus-group-recent-archive-directory
2590 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
2591 default a group pointing to the most recent articles will be created
2592 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
2593 group will be created from @code{gnus-group-archive-directory}.
2594
2595 @item G k
2596 @kindex G k (Group)
2597 @findex gnus-group-make-kiboze-group
2598 @cindex nnkiboze
2599 Make a kiboze group.  You will be prompted for a name, for a regexp to
2600 match groups to be ``included'' in the kiboze group, and a series of
2601 strings to match on headers (@code{gnus-group-make-kiboze-group}).
2602 @xref{Kibozed Groups}.
2603
2604 @item G D
2605 @kindex G D (Group)
2606 @findex gnus-group-enter-directory
2607 @cindex nneething
2608 Read an arbitrary directory as if it were a newsgroup with the
2609 @code{nneething} back end (@code{gnus-group-enter-directory}).
2610 @xref{Anything Groups}.
2611
2612 @item G f
2613 @kindex G f (Group)
2614 @findex gnus-group-make-doc-group
2615 @cindex ClariNet Briefs
2616 @cindex nndoc
2617 Make a group based on some file or other
2618 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
2619 command, you will be prompted for a file name and a file type.
2620 Currently supported types are @code{mbox}, @code{babyl},
2621 @code{digest}, @code{news}, @code{rnews}, @code{mmdf}, @code{forward},
2622 @code{rfc934}, @code{rfc822-forward}, @code{mime-parts},
2623 @code{standard-digest}, @code{slack-digest}, @code{clari-briefs},
2624 @code{nsmail}, @code{outlook}, @code{oe-dbx}, and @code{mailman}.  If
2625 you run this command without a prefix, Gnus will guess at the file
2626 type.  @xref{Document Groups}.
2627
2628 @item G u
2629 @kindex G u (Group)
2630 @vindex gnus-useful-groups
2631 @findex gnus-group-make-useful-group
2632 Create one of the groups mentioned in @code{gnus-useful-groups}
2633 (@code{gnus-group-make-useful-group}).
2634
2635 @item G w
2636 @kindex G w (Group)
2637 @findex gnus-group-make-web-group
2638 @cindex Google
2639 @cindex nnweb
2640 @cindex gmane
2641 Make an ephemeral group based on a web search
2642 (@code{gnus-group-make-web-group}).  If you give a prefix to this
2643 command, make a solid group instead.  You will be prompted for the
2644 search engine type and the search string.  Valid search engine types
2645 include @code{google}, @code{dejanews}, and @code{gmane}.
2646 @xref{Web Searches}.
2647
2648 If you use the @code{google} search engine, you can limit the search
2649 to a particular group by using a match string like
2650 @samp{shaving group:alt.sysadmin.recovery}.
2651
2652 @item G R
2653 @kindex G R (Group)
2654 @findex gnus-group-make-rss-group
2655 Make a group based on an @acronym{RSS} feed
2656 (@code{gnus-group-make-rss-group}).  You will be prompted for an URL.
2657 @xref{RSS}.
2658
2659 @item G DEL
2660 @kindex G DEL (Group)
2661 @findex gnus-group-delete-group
2662 This function will delete the current group
2663 (@code{gnus-group-delete-group}).  If given a prefix, this function will
2664 actually delete all the articles in the group, and forcibly remove the
2665 group itself from the face of the Earth.  Use a prefix only if you are
2666 absolutely sure of what you are doing.  This command can't be used on
2667 read-only groups (like @code{nntp} groups), though.
2668
2669 @item G V
2670 @kindex G V (Group)
2671 @findex gnus-group-make-empty-virtual
2672 Make a new, fresh, empty @code{nnvirtual} group
2673 (@code{gnus-group-make-empty-virtual}).  @xref{Virtual Groups}.
2674
2675 @item G v
2676 @kindex G v (Group)
2677 @findex gnus-group-add-to-virtual
2678 Add the current group to an @code{nnvirtual} group
2679 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
2680 @end table
2681
2682 @xref{Select Methods}, for more information on the various select
2683 methods.
2684
2685 @vindex gnus-activate-foreign-newsgroups
2686 If @code{gnus-activate-foreign-newsgroups} is a positive number,
2687 Gnus will check all foreign groups with this level or lower at startup.
2688 This might take quite a while, especially if you subscribe to lots of
2689 groups from different @acronym{NNTP} servers.  Also @pxref{Group Levels};
2690 @code{gnus-activate-level} also affects activation of foreign
2691 newsgroups.
2692
2693
2694 @node Group Parameters
2695 @section Group Parameters
2696 @cindex group parameters
2697
2698 The group parameters store information local to a particular group.
2699 Here's an example group parameter list:
2700
2701 @example
2702 ((to-address . "ding@@gnus.org")
2703  (auto-expire . t))
2704 @end example
2705
2706 We see that each element consists of a ``dotted pair''---the thing before
2707 the dot is the key, while the thing after the dot is the value.  All the
2708 parameters have this form @emph{except} local variable specs, which are
2709 not dotted pairs, but proper lists.
2710
2711 Some parameters have correspondent customizable variables, each of which
2712 is an alist of regexps and values.
2713
2714 The following group parameters can be used:
2715
2716 @table @code
2717 @item to-address
2718 @cindex to-address
2719 Address used by when doing followups and new posts.
2720
2721 @example
2722 (to-address . "some@@where.com")
2723 @end example
2724
2725 This is primarily useful in mail groups that represent closed mailing
2726 lists---mailing lists where it's expected that everybody that writes to
2727 the mailing list is subscribed to it.  Since using this parameter
2728 ensures that the mail only goes to the mailing list itself, it means
2729 that members won't receive two copies of your followups.
2730
2731 Using @code{to-address} will actually work whether the group is foreign
2732 or not.  Let's say there's a group on the server that is called
2733 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
2734 the articles from a mail-to-news gateway.  Posting directly to this
2735 group is therefore impossible---you have to send mail to the mailing
2736 list address instead.
2737
2738 See also @code{gnus-parameter-to-address-alist}.
2739
2740 @item to-list
2741 @cindex to-list
2742 Address used when doing @kbd{a} in that group.
2743
2744 @example
2745 (to-list . "some@@where.com")
2746 @end example
2747
2748 It is totally ignored
2749 when doing a followup---except that if it is present in a news group,
2750 you'll get mail group semantics when doing @kbd{f}.
2751
2752 If you do an @kbd{a} command in a mail group and you have neither a
2753 @code{to-list} group parameter nor a @code{to-address} group parameter,
2754 then a @code{to-list} group parameter will be added automatically upon
2755 sending the message if @code{gnus-add-to-list} is set to @code{t}.
2756 @vindex gnus-add-to-list
2757
2758 @findex gnus-mailing-list-mode
2759 @cindex mail list groups
2760 If this variable is set, @code{gnus-mailing-list-mode} is turned on when
2761 entering summary buffer.
2762
2763 See also @code{gnus-parameter-to-list-alist}.
2764
2765 @anchor{subscribed}
2766 @item subscribed
2767 @cindex subscribed
2768 @cindex Mail-Followup-To
2769 @findex gnus-find-subscribed-addresses
2770 If this parameter is set to @code{t}, Gnus will consider the
2771 to-address and to-list parameters for this group as addresses of
2772 mailing lists you are subscribed to.  Giving Gnus this information is
2773 (only) a first step in getting it to generate correct Mail-Followup-To
2774 headers for your posts to these lists.  The second step is to put the
2775 following in your @file{.gnus.el}
2776
2777 @lisp
2778 (setq message-subscribed-address-functions
2779       '(gnus-find-subscribed-addresses))
2780 @end lisp
2781
2782 @xref{Mailing Lists, ,Mailing Lists, message, The Message Manual}, for
2783 a complete treatment of available MFT support.
2784
2785 @item visible
2786 @cindex visible
2787 If the group parameter list has the element @code{(visible . t)},
2788 that group will always be visible in the Group buffer, regardless
2789 of whether it has any unread articles.
2790
2791 This parameter cannot be set via @code{gnus-parameters}. See
2792 @code{gnus-permanently-visible-groups} as an alternative.
2793
2794 @item broken-reply-to
2795 @cindex broken-reply-to
2796 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
2797 headers in this group are to be ignored, and for the header to be hidden
2798 if @code{reply-to} is part of @code{gnus-boring-article-headers}.  This
2799 can be useful if you're reading a mailing list group where the listserv
2800 has inserted @code{Reply-To} headers that point back to the listserv
2801 itself.  That is broken behavior.  So there!
2802
2803 @item to-group
2804 @cindex to-group
2805 Elements like @code{(to-group . "some.group.name")} means that all
2806 posts in that group will be sent to @code{some.group.name}.
2807
2808 @item newsgroup
2809 @cindex newsgroup
2810 If you have @code{(newsgroup . t)} in the group parameter list, Gnus
2811 will treat all responses as if they were responses to news articles.
2812 This can be useful if you have a mail group that's really a mirror of a
2813 news group.
2814
2815 @item gcc-self
2816 @cindex gcc-self
2817 If @code{(gcc-self . t)} is present in the group parameter list, newly
2818 composed messages will be @code{Gcc}'d to the current group.  If
2819 @code{(gcc-self . none)} is present, no @code{Gcc:} header will be
2820 generated, if @code{(gcc-self . "string")} is present, this string will
2821 be inserted literally as a @code{gcc} header.  This parameter takes
2822 precedence over any default @code{Gcc} rules as described later
2823 (@pxref{Archived Messages}).
2824
2825 @strong{Caveat}: Adding @code{(gcc-self . t)} to the parameter list of
2826 @code{nntp} groups (or the like) isn't valid.  An @code{nntp} server
2827 doesn't accept articles.
2828
2829 @item auto-expire
2830 @cindex auto-expire
2831 If the group parameter has an element that looks like @code{(auto-expire
2832 . t)}, all articles read will be marked as expirable.  For an
2833 alternative approach, @pxref{Expiring Mail}.
2834
2835 See also @code{gnus-auto-expirable-newsgroups}.
2836
2837 @item total-expire
2838 @cindex total-expire
2839 If the group parameter has an element that looks like
2840 @code{(total-expire . t)}, all read articles will be put through the
2841 expiry process, even if they are not marked as expirable.  Use with
2842 caution.  Unread, ticked and dormant articles are not eligible for
2843 expiry.
2844
2845 See also @code{gnus-total-expirable-newsgroups}.
2846
2847 @item expiry-wait
2848 @cindex expiry-wait
2849 @vindex nnmail-expiry-wait-function
2850 If the group parameter has an element that looks like
2851 @code{(expiry-wait . 10)}, this value will override any
2852 @code{nnmail-expiry-wait} and @code{nnmail-expiry-wait-function}
2853 (@pxref{Expiring Mail}) when expiring expirable messages.  The value
2854 can either be a number of days (not necessarily an integer) or the
2855 symbols @code{never} or @code{immediate}.
2856
2857 @item expiry-target
2858 @cindex expiry-target
2859 Where expired messages end up.  This parameter overrides
2860 @code{nnmail-expiry-target}.
2861
2862 @item score-file
2863 @cindex score file group parameter
2864 Elements that look like @code{(score-file . "file")} will make
2865 @file{file} into the current score file for the group in question.  All
2866 interactive score entries will be put into this file.
2867
2868 @item adapt-file
2869 @cindex adapt file group parameter
2870 Elements that look like @code{(adapt-file . "file")} will make
2871 @file{file} into the current adaptive file for the group in question.
2872 All adaptive score entries will be put into this file.
2873
2874 @item admin-address
2875 @cindex admin-address
2876 When unsubscribing from a mailing list you should never send the
2877 unsubscription notice to the mailing list itself.  Instead, you'd send
2878 messages to the administrative address.  This parameter allows you to
2879 put the admin address somewhere convenient.
2880
2881 @item display
2882 @cindex display
2883 Elements that look like @code{(display . MODE)} say which articles to
2884 display on entering the group.  Valid values are:
2885
2886 @table @code
2887 @item all
2888 Display all articles, both read and unread.
2889
2890 @item an integer
2891 Display the last @var{integer} articles in the group.  This is the same as
2892 entering the group with @kbd{C-u @var{integer}}.
2893
2894 @item default
2895 Display the default visible articles, which normally includes unread and
2896 ticked articles.
2897
2898 @item an array
2899 Display articles that satisfy a predicate.
2900
2901 Here are some examples:
2902
2903 @table @code
2904 @item [unread]
2905 Display only unread articles.
2906
2907 @item [not expire]
2908 Display everything except expirable articles.
2909
2910 @item [and (not reply) (not expire)]
2911 Display everything except expirable and articles you've already
2912 responded to.
2913 @end table
2914
2915 The available operators are @code{not}, @code{and} and @code{or}.
2916 Predicates include @code{tick}, @code{unsend}, @code{undownload},
2917 @code{unread}, @code{dormant}, @code{expire}, @code{reply},
2918 @code{killed}, @code{bookmark}, @code{score}, @code{save},
2919 @code{cache}, @code{forward}, @code{unseen} and @code{recent}.
2920
2921 @end table
2922
2923 The @code{display} parameter works by limiting the summary buffer to
2924 the subset specified.  You can pop the limit by using the @kbd{/ w}
2925 command (@pxref{Limiting}).
2926
2927 @item comment
2928 @cindex comment
2929 Elements that look like @code{(comment . "This is a comment")} are
2930 arbitrary comments on the group.  You can display comments in the
2931 group line (@pxref{Group Line Specification}).
2932
2933 @item charset
2934 @cindex charset
2935 Elements that look like @code{(charset . iso-8859-1)} will make
2936 @code{iso-8859-1} the default charset; that is, the charset that will be
2937 used for all articles that do not specify a charset.
2938
2939 See also @code{gnus-group-charset-alist}.
2940
2941 @item ignored-charsets
2942 @cindex ignored-charset
2943 Elements that look like @code{(ignored-charsets x-unknown iso-8859-1)}
2944 will make @code{iso-8859-1} and @code{x-unknown} ignored; that is, the
2945 default charset will be used for decoding articles.
2946
2947 See also @code{gnus-group-ignored-charsets-alist}.
2948
2949 @item posting-style
2950 @cindex posting-style
2951 You can store additional posting style information for this group
2952 here (@pxref{Posting Styles}).  The format is that of an entry in the
2953 @code{gnus-posting-styles} alist, except that there's no regexp matching
2954 the group name (of course).  Style elements in this group parameter will
2955 take precedence over the ones found in @code{gnus-posting-styles}.
2956
2957 For instance, if you want a funky name and signature in this group only,
2958 instead of hacking @code{gnus-posting-styles}, you could put something
2959 like this in the group parameters:
2960
2961 @example
2962 (posting-style
2963   (name "Funky Name")
2964   ("X-My-Header" "Funky Value")
2965   (signature "Funky Signature"))
2966 @end example
2967
2968 @item post-method
2969 @cindex post-method
2970 If it is set, the value is used as the method for posting message
2971 instead of @code{gnus-post-method}.
2972
2973 @item banner
2974 @cindex banner
2975 An item like @code{(banner . @var{regexp})} causes any part of an article
2976 that matches the regular expression @var{regexp} to be stripped.  Instead of
2977 @var{regexp}, you can also use the symbol @code{signature} which strips the
2978 last signature or any of the elements of the alist
2979 @code{gnus-article-banner-alist}.
2980
2981 @item sieve
2982 @cindex sieve
2983 This parameter contains a Sieve test that should match incoming mail
2984 that should be placed in this group.  From this group parameter, a
2985 Sieve @samp{IF} control structure is generated, having the test as the
2986 condition and @samp{fileinto "group.name";} as the body.
2987
2988 For example, if the @samp{INBOX.list.sieve} group has the @code{(sieve
2989 address "sender" "sieve-admin@@extundo.com")} group parameter, when
2990 translating the group parameter into a Sieve script (@pxref{Sieve
2991 Commands}) the following Sieve code is generated:
2992
2993 @example
2994 if address "sender" "sieve-admin@@extundo.com" @{
2995         fileinto "INBOX.list.sieve";
2996 @}
2997 @end example
2998
2999 To generate tests for multiple email-addresses use a group parameter
3000 like @code{(sieve address "sender" ("name@@one.org" else@@two.org"))}.
3001 When generating a sieve script (@pxref{Sieve Commands}) Sieve code
3002 like the following is generated:
3003
3004 @example
3005 if address "sender" ["name@@one.org", "else@@two.org"] @{
3006         fileinto "INBOX.list.sieve";
3007 @}
3008 @end example
3009
3010 See @pxref{Sieve Commands} for commands and variables that might be of
3011 interest in relation to the sieve parameter.
3012
3013 The Sieve language is described in RFC 3028.  @xref{Top, Emacs Sieve,
3014 Top, sieve, Emacs Sieve}.
3015
3016 @item (agent parameters)
3017 If the agent has been enabled, you can set any of the its parameters
3018 to control the behavior of the agent in individual groups. See Agent
3019 Parameters in @ref{Category Syntax}.  Most users will choose to set
3020 agent parameters in either an agent category or group topic to
3021 minimize the configuration effort.
3022
3023 @item (@var{variable} @var{form})
3024 You can use the group parameters to set variables local to the group you
3025 are entering.  If you want to turn threading off in @samp{news.answers},
3026 you could put @code{(gnus-show-threads nil)} in the group parameters of
3027 that group.  @code{gnus-show-threads} will be made into a local variable
3028 in the summary buffer you enter, and the form @code{nil} will be
3029 @code{eval}ed there.
3030
3031 Note that this feature sets the variable locally to the summary buffer.
3032 But some variables are evaluated in the article buffer, or in the
3033 message buffer (of a reply or followup or otherwise newly created
3034 message).  As a workaround, it might help to add the variable in
3035 question to @code{gnus-newsgroup-variables}.  @xref{Various Summary
3036 Stuff}.  So if you want to set @code{message-from-style} via the group
3037 parameters, then you may need the following statement elsewhere in your
3038 @file{~/.gnus} file:
3039
3040 @lisp
3041 (add-to-list 'gnus-newsgroup-variables 'message-from-style)
3042 @end lisp
3043
3044 @vindex gnus-list-identifiers
3045 A use for this feature is to remove a mailing list identifier tag in
3046 the subject fields of articles.  E.g. if the news group
3047
3048 @example
3049 nntp+news.gnus.org:gmane.text.docbook.apps
3050 @end example
3051
3052 has the tag @samp{DOC-BOOK-APPS:} in the subject of all articles, this
3053 tag can be removed from the article subjects in the summary buffer for
3054 the group by putting @code{(gnus-list-identifiers "DOCBOOK-APPS:")}
3055 into the group parameters for the group.
3056
3057 This can also be used as a group-specific hook function.  If you want to
3058 hear a beep when you enter a group, you could put something like
3059 @code{(dummy-variable (ding))} in the parameters of that group.
3060 @code{dummy-variable} will be set to the (meaningless) result of the
3061 @code{(ding)} form.
3062
3063 Alternatively, since the VARIABLE becomes local to the group, this
3064 pattern can be used to temporarily change a hook.  For example, if the
3065 following is added to a group parameter
3066
3067 @lisp
3068 (gnus-summary-prepared-hook
3069   '(lambda nil (local-set-key "d" (local-key-binding "n"))))
3070 @end lisp
3071
3072 when the group is entered, the 'd' key will not mark the article as
3073 expired.
3074
3075 @end table
3076
3077 Use the @kbd{G p} or the @kbd{G c} command to edit group parameters of a
3078 group.  (@kbd{G p} presents you with a Lisp-based interface, @kbd{G c}
3079 presents you with a Customize-like interface.  The latter helps avoid
3080 silly Lisp errors.)  You might also be interested in reading about topic
3081 parameters (@pxref{Topic Parameters}).
3082
3083 @vindex gnus-parameters
3084 Group parameters can be set via the @code{gnus-parameters} variable too.
3085 But some variables, such as @code{visible}, have no effect (For this
3086 case see @code{gnus-permanently-visible-groups} as an alternative.).
3087 For example:
3088
3089 @lisp
3090 (setq gnus-parameters
3091       '(("mail\\..*"
3092          (gnus-show-threads nil)
3093          (gnus-use-scoring nil)
3094          (gnus-summary-line-format
3095           "%U%R%z%I%(%[%d:%ub%-23,23f%]%) %s\n")
3096          (gcc-self . t)
3097          (display . all))
3098
3099         ("^nnimap:\\(foo.bar\\)$"
3100          (to-group . "\\1"))
3101
3102         ("mail\\.me"
3103          (gnus-use-scoring  t))
3104
3105         ("list\\..*"
3106          (total-expire . t)
3107          (broken-reply-to . t))))
3108 @end lisp
3109
3110 String value of parameters will be subjected to regexp substitution, as
3111 the @code{to-group} example shows.
3112
3113 @vindex gnus-parameters-case-fold-search
3114 By default, whether comparing the group name and one of those regexps
3115 specified in @code{gnus-parameters} is done in a case-sensitive manner
3116 or a case-insensitive manner depends on the value of
3117 @code{case-fold-search} at the time when the comparison is done.  The
3118 value of @code{case-fold-search} is typically @code{t}; it means, for
3119 example, the element @code{("INBOX\\.FOO" (total-expire . t))} might be
3120 applied to both the @samp{INBOX.FOO} group and the @samp{INBOX.foo}
3121 group.  If you want to make those regexps always case-sensitive, set the
3122 value of the @code{gnus-parameters-case-fold-search} variable to
3123 @code{nil}.  Otherwise, set it to @code{t} if you want to compare them
3124 always in a case-insensitive manner.
3125
3126 You can define different sorting to different groups via
3127 @code{gnus-parameters}.  Here is an example to sort an @acronym{NNTP}
3128 group by reverse date to see the latest news at the top and an
3129 @acronym{RSS} group by subject.  In this example, the first group is the
3130 Debian daily news group @code{gmane.linux.debian.user.news} from
3131 news.gmane.org.  The @acronym{RSS} group corresponds to the Debian
3132 weekly news RSS feed
3133 @url{http://packages.debian.org/unstable/newpkg_main.en.rdf},
3134 @xref{RSS}.
3135
3136 @lisp
3137 (setq
3138  gnus-parameters
3139  '(("nntp.*gmane\\.debian\\.user\\.news"
3140     (gnus-show-threads nil)
3141     (gnus-article-sort-functions '((not gnus-article-sort-by-date)))
3142     (gnus-use-adaptive-scoring nil)
3143     (gnus-use-scoring nil))
3144    ("nnrss.*debian"
3145     (gnus-show-threads nil)
3146     (gnus-article-sort-functions 'gnus-article-sort-by-subject)
3147     (gnus-use-adaptive-scoring nil)
3148     (gnus-use-scoring t)
3149     (gnus-score-find-score-files-function 'gnus-score-find-single)
3150     (gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"))))
3151 @end lisp
3152
3153
3154 @node Listing Groups
3155 @section Listing Groups
3156 @cindex group listing
3157
3158 These commands all list various slices of the groups available.
3159
3160 @table @kbd
3161
3162 @item l
3163 @itemx A s
3164 @kindex A s (Group)
3165 @kindex l (Group)
3166 @findex gnus-group-list-groups
3167 List all groups that have unread articles
3168 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
3169 command will list only groups of level ARG and lower.  By default, it
3170 only lists groups of level five (i.e.,
3171 @code{gnus-group-default-list-level}) or lower (i.e., just subscribed
3172 groups).
3173
3174 @item L
3175 @itemx A u
3176 @kindex A u (Group)
3177 @kindex L (Group)
3178 @findex gnus-group-list-all-groups
3179 List all groups, whether they have unread articles or not
3180 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
3181 this command will list only groups of level ARG and lower.  By default,
3182 it lists groups of level seven or lower (i.e., just subscribed and
3183 unsubscribed groups).
3184
3185 @item A l
3186 @kindex A l (Group)
3187 @findex gnus-group-list-level
3188 List all unread groups on a specific level
3189 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
3190 with no unread articles.
3191
3192 @item A k
3193 @kindex A k (Group)
3194 @findex gnus-group-list-killed
3195 List all killed groups (@code{gnus-group-list-killed}).  If given a
3196 prefix argument, really list all groups that are available, but aren't
3197 currently (un)subscribed.  This could entail reading the active file
3198 from the server.
3199
3200 @item A z
3201 @kindex A z (Group)
3202 @findex gnus-group-list-zombies
3203 List all zombie groups (@code{gnus-group-list-zombies}).
3204
3205 @item A m
3206 @kindex A m (Group)
3207 @findex gnus-group-list-matching
3208 List all unread, subscribed groups with names that match a regexp
3209 (@code{gnus-group-list-matching}).
3210
3211 @item A M
3212 @kindex A M (Group)
3213 @findex gnus-group-list-all-matching
3214 List groups that match a regexp (@code{gnus-group-list-all-matching}).
3215
3216 @item A A
3217 @kindex A A (Group)
3218 @findex gnus-group-list-active
3219 List absolutely all groups in the active file(s) of the
3220 server(s) you are connected to (@code{gnus-group-list-active}).  This
3221 might very well take quite a while.  It might actually be a better idea
3222 to do a @kbd{A M} to list all matching, and just give @samp{.} as the
3223 thing to match on.  Also note that this command may list groups that
3224 don't exist (yet)---these will be listed as if they were killed groups.
3225 Take the output with some grains of salt.
3226
3227 @item A a
3228 @kindex A a (Group)
3229 @findex gnus-group-apropos
3230 List all groups that have names that match a regexp
3231 (@code{gnus-group-apropos}).
3232
3233 @item A d
3234 @kindex A d (Group)
3235 @findex gnus-group-description-apropos
3236 List all groups that have names or descriptions that match a regexp
3237 (@code{gnus-group-description-apropos}).
3238
3239 @item A c
3240 @kindex A c (Group)
3241 @findex gnus-group-list-cached
3242 List all groups with cached articles (@code{gnus-group-list-cached}).
3243
3244 @item A ?
3245 @kindex A ? (Group)
3246 @findex gnus-group-list-dormant
3247 List all groups with dormant articles (@code{gnus-group-list-dormant}).
3248
3249 @item A /
3250 @kindex A / (Group)
3251 @findex gnus-group-list-limit
3252 List groups limited within the current selection
3253 (@code{gnus-group-list-limit}).
3254
3255 @item A f
3256 @kindex A f (Group)
3257 @findex gnus-group-list-flush
3258 Flush groups from the current selection (@code{gnus-group-list-flush}).
3259
3260 @item A p
3261 @kindex A p (Group)
3262 @findex gnus-group-list-plus
3263 List groups plus the current selection (@code{gnus-group-list-plus}).
3264
3265 @end table
3266
3267 @vindex gnus-permanently-visible-groups
3268 @cindex visible group parameter
3269 Groups that match the @code{gnus-permanently-visible-groups} regexp will
3270 always be shown, whether they have unread articles or not.  You can also
3271 add the @code{visible} element to the group parameters in question to
3272 get the same effect.
3273
3274 @vindex gnus-list-groups-with-ticked-articles
3275 Groups that have just ticked articles in it are normally listed in the
3276 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
3277 @code{nil}, these groups will be treated just like totally empty
3278 groups.  It is @code{t} by default.
3279
3280
3281 @node Sorting Groups
3282 @section Sorting Groups
3283 @cindex sorting groups
3284
3285 @kindex C-c C-s (Group)
3286 @findex gnus-group-sort-groups
3287 @vindex gnus-group-sort-function
3288 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
3289 group buffer according to the function(s) given by the
3290 @code{gnus-group-sort-function} variable.  Available sorting functions
3291 include:
3292
3293 @table @code
3294
3295 @item gnus-group-sort-by-alphabet
3296 @findex gnus-group-sort-by-alphabet
3297 Sort the group names alphabetically.  This is the default.
3298
3299 @item gnus-group-sort-by-real-name
3300 @findex gnus-group-sort-by-real-name
3301 Sort the group alphabetically on the real (unprefixed) group names.
3302
3303 @item gnus-group-sort-by-level
3304 @findex gnus-group-sort-by-level
3305 Sort by group level.
3306
3307 @item gnus-group-sort-by-score
3308 @findex gnus-group-sort-by-score
3309 Sort by group score.  @xref{Group Score}.
3310
3311 @item gnus-group-sort-by-rank
3312 @findex gnus-group-sort-by-rank
3313 Sort by group score and then the group level.  The level and the score
3314 are, when taken together, the group's @dfn{rank}.  @xref{Group Score}.
3315
3316 @item gnus-group-sort-by-unread
3317 @findex gnus-group-sort-by-unread
3318 Sort by number of unread articles.
3319
3320 @item gnus-group-sort-by-method
3321 @findex gnus-group-sort-by-method
3322 Sort alphabetically on the select method.
3323
3324 @item gnus-group-sort-by-server
3325 @findex gnus-group-sort-by-server
3326 Sort alphabetically on the Gnus server name.
3327
3328
3329 @end table
3330
3331 @code{gnus-group-sort-function} can also be a list of sorting
3332 functions.  In that case, the most significant sort key function must be
3333 the last one.
3334
3335
3336 There are also a number of commands for sorting directly according to
3337 some sorting criteria:
3338
3339 @table @kbd
3340 @item G S a
3341 @kindex G S a (Group)
3342 @findex gnus-group-sort-groups-by-alphabet
3343 Sort the group buffer alphabetically by group name
3344 (@code{gnus-group-sort-groups-by-alphabet}).
3345
3346 @item G S u
3347 @kindex G S u (Group)
3348 @findex gnus-group-sort-groups-by-unread
3349 Sort the group buffer by the number of unread articles
3350 (@code{gnus-group-sort-groups-by-unread}).
3351
3352 @item G S l
3353 @kindex G S l (Group)
3354 @findex gnus-group-sort-groups-by-level
3355 Sort the group buffer by group level
3356 (@code{gnus-group-sort-groups-by-level}).
3357
3358 @item G S v
3359 @kindex G S v (Group)
3360 @findex gnus-group-sort-groups-by-score
3361 Sort the group buffer by group score
3362 (@code{gnus-group-sort-groups-by-score}).  @xref{Group Score}.
3363
3364 @item G S r
3365 @kindex G S r (Group)
3366 @findex gnus-group-sort-groups-by-rank
3367 Sort the group buffer by group rank
3368 (@code{gnus-group-sort-groups-by-rank}).  @xref{Group Score}.
3369
3370 @item G S m
3371 @kindex G S m (Group)
3372 @findex gnus-group-sort-groups-by-method
3373 Sort the group buffer alphabetically by back end name@*
3374 (@code{gnus-group-sort-groups-by-method}).
3375
3376 @item G S n
3377 @kindex G S n (Group)
3378 @findex gnus-group-sort-groups-by-real-name
3379 Sort the group buffer alphabetically by real (unprefixed) group name
3380 (@code{gnus-group-sort-groups-by-real-name}).
3381
3382 @end table
3383
3384 All the commands below obey the process/prefix convention
3385 (@pxref{Process/Prefix}).
3386
3387 When given a symbolic prefix (@pxref{Symbolic Prefixes}), all these
3388 commands will sort in reverse order.
3389
3390 You can also sort a subset of the groups:
3391
3392 @table @kbd
3393 @item G P a
3394 @kindex G P a (Group)
3395 @findex gnus-group-sort-selected-groups-by-alphabet
3396 Sort the groups alphabetically by group name
3397 (@code{gnus-group-sort-selected-groups-by-alphabet}).
3398
3399 @item G P u
3400 @kindex G P u (Group)
3401 @findex gnus-group-sort-selected-groups-by-unread
3402 Sort the groups by the number of unread articles
3403 (@code{gnus-group-sort-selected-groups-by-unread}).
3404
3405 @item G P l
3406 @kindex G P l (Group)
3407 @findex gnus-group-sort-selected-groups-by-level
3408 Sort the groups by group level
3409 (@code{gnus-group-sort-selected-groups-by-level}).
3410
3411 @item G P v
3412 @kindex G P v (Group)
3413 @findex gnus-group-sort-selected-groups-by-score
3414 Sort the groups by group score
3415 (@code{gnus-group-sort-selected-groups-by-score}).  @xref{Group Score}.
3416
3417 @item G P r
3418 @kindex G P r (Group)
3419 @findex gnus-group-sort-selected-groups-by-rank
3420 Sort the groups by group rank
3421 (@code{gnus-group-sort-selected-groups-by-rank}).  @xref{Group Score}.
3422
3423 @item G P m
3424 @kindex G P m (Group)
3425 @findex gnus-group-sort-selected-groups-by-method
3426 Sort the groups alphabetically by back end name@*
3427 (@code{gnus-group-sort-selected-groups-by-method}).
3428
3429 @item G P n
3430 @kindex G P n (Group)
3431 @findex gnus-group-sort-selected-groups-by-real-name
3432 Sort the groups alphabetically by real (unprefixed) group name
3433 (@code{gnus-group-sort-selected-groups-by-real-name}).
3434
3435 @item G P s
3436 @kindex G P s (Group)
3437 @findex gnus-group-sort-selected-groups
3438 Sort the groups according to @code{gnus-group-sort-function}.
3439
3440 @end table
3441
3442 And finally, note that you can use @kbd{C-k} and @kbd{C-y} to manually
3443 move groups around.
3444
3445
3446 @node Group Maintenance
3447 @section Group Maintenance
3448 @cindex bogus groups
3449
3450 @table @kbd
3451 @item b
3452 @kindex b (Group)
3453 @findex gnus-group-check-bogus-groups
3454 Find bogus groups and delete them
3455 (@code{gnus-group-check-bogus-groups}).
3456
3457 @item F
3458 @kindex F (Group)
3459 @findex gnus-group-find-new-groups
3460 Find new groups and process them (@code{gnus-group-find-new-groups}).
3461 With 1 @kbd{C-u}, use the @code{ask-server} method to query the server
3462 for new groups.  With 2 @kbd{C-u}'s, use most complete method possible
3463 to query the server for new groups, and subscribe the new groups as
3464 zombies.
3465
3466 @item C-c C-x
3467 @kindex C-c C-x (Group)
3468 @findex gnus-group-expire-articles
3469 Run all expirable articles in the current group through the expiry
3470 process (if any) (@code{gnus-group-expire-articles}).  That is, delete
3471 all expirable articles in the group that have been around for a while.
3472 (@pxref{Expiring Mail}).
3473
3474 @item C-c C-M-x
3475 @kindex C-c C-M-x (Group)
3476 @findex gnus-group-expire-all-groups
3477 Run all expirable articles in all groups through the expiry process
3478 (@code{gnus-group-expire-all-groups}).
3479
3480 @end table
3481
3482
3483 @node Browse Foreign Server
3484 @section Browse Foreign Server
3485 @cindex foreign servers
3486 @cindex browsing servers
3487
3488 @table @kbd
3489 @item B
3490 @kindex B (Group)
3491 @findex gnus-group-browse-foreign-server
3492 You will be queried for a select method and a server name.  Gnus will
3493 then attempt to contact this server and let you browse the groups there
3494 (@code{gnus-group-browse-foreign-server}).
3495 @end table
3496
3497 @findex gnus-browse-mode
3498 A new buffer with a list of available groups will appear.  This buffer
3499 will use the @code{gnus-browse-mode}.  This buffer looks a bit (well,
3500 a lot) like a normal group buffer.
3501
3502 Here's a list of keystrokes available in the browse mode:
3503
3504 @table @kbd
3505 @item n
3506 @kindex n (Browse)
3507 @findex gnus-group-next-group
3508 Go to the next group (@code{gnus-group-next-group}).
3509
3510 @item p
3511 @kindex p (Browse)
3512 @findex gnus-group-prev-group
3513 Go to the previous group (@code{gnus-group-prev-group}).
3514
3515 @item SPACE
3516 @kindex SPACE (Browse)
3517 @findex gnus-browse-read-group
3518 Enter the current group and display the first article
3519 (@code{gnus-browse-read-group}).
3520
3521 @item RET
3522 @kindex RET (Browse)
3523 @findex gnus-browse-select-group
3524 Enter the current group (@code{gnus-browse-select-group}).
3525
3526 @item u
3527 @kindex u (Browse)
3528 @findex gnus-browse-unsubscribe-current-group
3529 Unsubscribe to the current group, or, as will be the case here,
3530 subscribe to it (@code{gnus-browse-unsubscribe-current-group}).
3531
3532 @item l
3533 @itemx q
3534 @kindex q (Browse)
3535 @kindex l (Browse)
3536 @findex gnus-browse-exit
3537 Exit browse mode (@code{gnus-browse-exit}).
3538
3539 @item d
3540 @kindex d (Browse)
3541 @findex gnus-browse-describe-group
3542 Describe the current group (@code{gnus-browse-describe-group}).
3543
3544 @item ?
3545 @kindex ? (Browse)
3546 @findex gnus-browse-describe-briefly
3547 Describe browse mode briefly (well, there's not much to describe, is
3548 there) (@code{gnus-browse-describe-briefly}).
3549 @end table
3550
3551
3552 @node Exiting Gnus
3553 @section Exiting Gnus
3554 @cindex exiting Gnus
3555
3556 Yes, Gnus is ex(c)iting.
3557
3558 @table @kbd
3559 @item z
3560 @kindex z (Group)
3561 @findex gnus-group-suspend
3562 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
3563 but it kills all buffers except the Group buffer.  I'm not sure why this
3564 is a gain, but then who am I to judge?
3565
3566 @item q
3567 @kindex q (Group)
3568 @findex gnus-group-exit
3569 @c @icon{gnus-group-exit}
3570 Quit Gnus (@code{gnus-group-exit}).
3571
3572 @item Q
3573 @kindex Q (Group)
3574 @findex gnus-group-quit
3575 Quit Gnus without saving the @file{.newsrc} files (@code{gnus-group-quit}).
3576 The dribble file will be saved, though (@pxref{Auto Save}).
3577 @end table
3578
3579 @vindex gnus-exit-gnus-hook
3580 @vindex gnus-suspend-gnus-hook
3581 @vindex gnus-after-exiting-gnus-hook
3582 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
3583 @code{gnus-exit-gnus-hook} is called when you quit Gnus, while
3584 @code{gnus-after-exiting-gnus-hook} is called as the final item when
3585 exiting Gnus.
3586
3587 Note:
3588
3589 @quotation
3590 Miss Lisa Cannifax, while sitting in English class, felt her feet go
3591 numbly heavy and herself fall into a hazy trance as the boy sitting
3592 behind her drew repeated lines with his pencil across the back of her
3593 plastic chair.
3594 @end quotation
3595
3596
3597 @node Group Topics
3598 @section Group Topics
3599 @cindex topics
3600
3601 If you read lots and lots of groups, it might be convenient to group
3602 them hierarchically according to topics.  You put your Emacs groups over
3603 here, your sex groups over there, and the rest (what, two groups or so?)
3604 you put in some misc section that you never bother with anyway.  You can
3605 even group the Emacs sex groups as a sub-topic to either the Emacs
3606 groups or the sex groups---or both!  Go wild!
3607
3608 @iftex
3609 @iflatex
3610 \gnusfigure{Group Topics}{400}{
3611 \put(75,50){\epsfig{figure=ps/group-topic,height=9cm}}
3612 }
3613 @end iflatex
3614 @end iftex
3615
3616 Here's an example:
3617
3618 @example
3619 Gnus
3620   Emacs -- I wuw it!
3621      3: comp.emacs
3622      2: alt.religion.emacs
3623     Naughty Emacs
3624      452: alt.sex.emacs
3625        0: comp.talk.emacs.recovery
3626   Misc
3627      8: comp.binaries.fractals
3628     13: comp.sources.unix
3629 @end example
3630
3631 @findex gnus-topic-mode
3632 @kindex t (Group)
3633 To get this @emph{fab} functionality you simply turn on (ooh!) the
3634 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
3635 is a toggling command.)
3636
3637 Go ahead, just try it.  I'll still be here when you get back.  La de
3638 dum@dots{} Nice tune, that@dots{} la la la@dots{} What, you're back?
3639 Yes, and now press @kbd{l}.  There.  All your groups are now listed
3640 under @samp{misc}.  Doesn't that make you feel all warm and fuzzy?
3641 Hot and bothered?
3642
3643 If you want this permanently enabled, you should add that minor mode to
3644 the hook for the group mode.  Put the following line in your
3645 @file{~/.gnus.el} file:
3646
3647 @lisp
3648 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
3649 @end lisp
3650
3651 @menu
3652 * Topic Commands::              Interactive E-Z commands.
3653 * Topic Variables::             How to customize the topics the Lisp Way.
3654 * Topic Sorting::               Sorting each topic individually.
3655 * Topic Topology::              A map of the world.
3656 * Topic Parameters::            Parameters that apply to all groups in a topic.
3657 @end menu
3658
3659
3660 @node Topic Commands
3661 @subsection Topic Commands
3662 @cindex topic commands
3663
3664 When the topic minor mode is turned on, a new @kbd{T} submap will be
3665 available.  In addition, a few of the standard keys change their
3666 definitions slightly.
3667
3668 In general, the following kinds of operations are possible on topics.
3669 First of all, you want to create topics.  Secondly, you want to put
3670 groups in topics and to move them around until you have an order you
3671 like.  The third kind of operation is to show/hide parts of the whole
3672 shebang.  You might want to hide a topic including its subtopics and
3673 groups, to get a better overview of the other groups.
3674
3675 Here is a list of the basic keys that you might need to set up topics
3676 the way you like.
3677
3678 @table @kbd
3679
3680 @item T n
3681 @kindex T n (Topic)
3682 @findex gnus-topic-create-topic
3683 Prompt for a new topic name and create it
3684 (@code{gnus-topic-create-topic}).
3685
3686 @item T TAB
3687 @itemx TAB
3688 @kindex T TAB (Topic)
3689 @kindex TAB (Topic)
3690 @findex gnus-topic-indent
3691 ``Indent'' the current topic so that it becomes a sub-topic of the
3692 previous topic (@code{gnus-topic-indent}).  If given a prefix,
3693 ``un-indent'' the topic instead.
3694
3695 @item M-TAB
3696 @kindex M-TAB (Topic)
3697 @findex gnus-topic-unindent
3698 ``Un-indent'' the current topic so that it becomes a sub-topic of the
3699 parent of its current parent (@code{gnus-topic-unindent}).
3700
3701 @end table
3702
3703 The following two keys can be used to move groups and topics around.
3704 They work like the well-known cut and paste.  @kbd{C-k} is like cut and
3705 @kbd{C-y} is like paste.  Of course, this being Emacs, we use the terms
3706 kill and yank rather than cut and paste.
3707
3708 @table @kbd
3709
3710 @item C-k
3711 @kindex C-k (Topic)
3712 @findex gnus-topic-kill-group
3713 Kill a group or topic (@code{gnus-topic-kill-group}).  All groups in the
3714 topic will be removed along with the topic.
3715
3716 @item C-y
3717 @kindex C-y (Topic)
3718 @findex gnus-topic-yank-group
3719 Yank the previously killed group or topic
3720 (@code{gnus-topic-yank-group}).  Note that all topics will be yanked
3721 before all groups.
3722
3723 So, to move a topic to the beginning of the list of topics, just hit
3724 @kbd{C-k} on it.  This is like the ``cut'' part of cut and paste.  Then,
3725 move the cursor to the beginning of the buffer (just below the ``Gnus''
3726 topic) and hit @kbd{C-y}.  This is like the ``paste'' part of cut and
3727 paste.  Like I said -- E-Z.
3728
3729 You can use @kbd{C-k} and @kbd{C-y} on groups as well as on topics.  So
3730 you can move topics around as well as groups.
3731
3732 @end table
3733
3734 After setting up the topics the way you like them, you might wish to
3735 hide a topic, or to show it again.  That's why we have the following
3736 key.
3737
3738 @table @kbd
3739
3740 @item RET
3741 @kindex RET (Topic)
3742 @findex gnus-topic-select-group
3743 @itemx SPACE
3744 Either select a group or fold a topic (@code{gnus-topic-select-group}).
3745 When you perform this command on a group, you'll enter the group, as
3746 usual.  When done on a topic line, the topic will be folded (if it was
3747 visible) or unfolded (if it was folded already).  So it's basically a
3748 toggling command on topics.  In addition, if you give a numerical
3749 prefix, group on that level (and lower) will be displayed.
3750
3751 @end table
3752
3753 Now for a list of other commands, in no particular order.
3754
3755 @table @kbd
3756
3757 @item T m
3758 @kindex T m (Topic)
3759 @findex gnus-topic-move-group
3760 Move the current group to some other topic
3761 (@code{gnus-topic-move-group}).  This command uses the process/prefix
3762 convention (@pxref{Process/Prefix}).
3763
3764 @item T j
3765 @kindex T j (Topic)
3766 @findex gnus-topic-jump-to-topic
3767 Go to a topic (@code{gnus-topic-jump-to-topic}).
3768
3769 @item T c
3770 @kindex T c (Topic)
3771 @findex gnus-topic-copy-group
3772 Copy the current group to some other topic
3773 (@code{gnus-topic-copy-group}).  This command uses the process/prefix
3774 convention (@pxref{Process/Prefix}).
3775
3776 @item T h
3777 @kindex T h (Topic)
3778 @findex gnus-topic-hide-topic
3779 Hide the current topic (@code{gnus-topic-hide-topic}).  If given
3780 a prefix, hide the topic permanently.
3781
3782 @item T s
3783 @kindex T s (Topic)
3784 @findex gnus-topic-show-topic
3785 Show the current topic (@code{gnus-topic-show-topic}).  If given
3786 a prefix, show the topic permanently.
3787
3788 @item T D
3789 @kindex T D (Topic)
3790 @findex gnus-topic-remove-group
3791 Remove a group from the current topic (@code{gnus-topic-remove-group}).
3792 This command is mainly useful if you have the same group in several
3793 topics and wish to remove it from one of the topics.  You may also
3794 remove a group from all topics, but in that case, Gnus will add it to
3795 the root topic the next time you start Gnus.  In fact, all new groups
3796 (which, naturally, don't belong to any topic) will show up in the root
3797 topic.
3798
3799 This command uses the process/prefix convention
3800 (@pxref{Process/Prefix}).
3801
3802 @item T M
3803 @kindex T M (Topic)
3804 @findex gnus-topic-move-matching
3805 Move all groups that match some regular expression to a topic
3806 (@code{gnus-topic-move-matching}).
3807
3808 @item T C
3809 @kindex T C (Topic)
3810 @findex gnus-topic-copy-matching
3811 Copy all groups that match some regular expression to a topic
3812 (@code{gnus-topic-copy-matching}).
3813
3814 @item T H
3815 @kindex T H (Topic)
3816 @findex gnus-topic-toggle-display-empty-topics
3817 Toggle hiding empty topics
3818 (@code{gnus-topic-toggle-display-empty-topics}).
3819
3820 @item T #
3821 @kindex T # (Topic)
3822 @findex gnus-topic-mark-topic
3823 Mark all groups in the current topic with the process mark
3824 (@code{gnus-topic-mark-topic}).  This command works recursively on
3825 sub-topics unless given a prefix.
3826
3827 @item T M-#
3828 @kindex T M-# (Topic)
3829 @findex gnus-topic-unmark-topic
3830 Remove the process mark from all groups in the current topic
3831 (@code{gnus-topic-unmark-topic}).  This command works recursively on
3832 sub-topics unless given a prefix.
3833
3834 @item C-c C-x
3835 @kindex C-c C-x (Topic)
3836 @findex gnus-topic-expire-articles
3837 Run all expirable articles in the current group or topic through the
3838 expiry process (if any)
3839 (@code{gnus-topic-expire-articles}).  (@pxref{Expiring Mail}).
3840
3841 @item T r
3842 @kindex T r (Topic)
3843 @findex gnus-topic-rename
3844 Rename a topic (@code{gnus-topic-rename}).
3845
3846 @item T DEL
3847 @kindex T DEL (Topic)
3848 @findex gnus-topic-delete
3849 Delete an empty topic (@code{gnus-topic-delete}).
3850
3851 @item A T
3852 @kindex A T (Topic)
3853 @findex gnus-topic-list-active
3854 List all groups that Gnus knows about in a topics-ified way
3855 (@code{gnus-topic-list-active}).
3856
3857 @item T M-n
3858 @kindex T M-n (Topic)
3859 @findex gnus-topic-goto-next-topic
3860 Go to the next topic (@code{gnus-topic-goto-next-topic}).
3861
3862 @item T M-p
3863 @kindex T M-p (Topic)
3864 @findex gnus-topic-goto-previous-topic
3865 Go to the previous topic (@code{gnus-topic-goto-previous-topic}).
3866
3867 @item G p
3868 @kindex G p (Topic)
3869 @findex gnus-topic-edit-parameters
3870 @cindex group parameters
3871 @cindex topic parameters
3872 @cindex parameters
3873 Edit the topic parameters (@code{gnus-topic-edit-parameters}).
3874 @xref{Topic Parameters}.
3875
3876 @end table
3877
3878
3879 @node Topic Variables
3880 @subsection Topic Variables
3881 @cindex topic variables
3882
3883 The previous section told you how to tell Gnus which topics to display.
3884 This section explains how to tell Gnus what to display about each topic.
3885
3886 @vindex gnus-topic-line-format
3887 The topic lines themselves are created according to the
3888 @code{gnus-topic-line-format} variable (@pxref{Formatting Variables}).
3889 Valid elements are:
3890
3891 @table @samp
3892 @item i
3893 Indentation.
3894 @item n
3895 Topic name.
3896 @item v
3897 Visibility.
3898 @item l
3899 Level.
3900 @item g
3901 Number of groups in the topic.
3902 @item a
3903 Number of unread articles in the topic.
3904 @item A
3905 Number of unread articles in the topic and all its subtopics.
3906 @end table
3907
3908 @vindex gnus-topic-indent-level
3909 Each sub-topic (and the groups in the sub-topics) will be indented with
3910 @code{gnus-topic-indent-level} times the topic level number of spaces.
3911 The default is 2.
3912
3913 @vindex gnus-topic-mode-hook
3914 @code{gnus-topic-mode-hook} is called in topic minor mode buffers.
3915
3916 @vindex gnus-topic-display-empty-topics
3917 The @code{gnus-topic-display-empty-topics} says whether to display even
3918 topics that have no unread articles in them.  The default is @code{t}.
3919
3920
3921 @node Topic Sorting
3922 @subsection Topic Sorting
3923 @cindex topic sorting
3924
3925 You can sort the groups in each topic individually with the following
3926 commands:
3927
3928
3929 @table @kbd
3930 @item T S a
3931 @kindex T S a (Topic)
3932 @findex gnus-topic-sort-groups-by-alphabet
3933 Sort the current topic alphabetically by group name
3934 (@code{gnus-topic-sort-groups-by-alphabet}).
3935
3936 @item T S u
3937 @kindex T S u (Topic)
3938 @findex gnus-topic-sort-groups-by-unread
3939 Sort the current topic by the number of unread articles
3940 (@code{gnus-topic-sort-groups-by-unread}).
3941
3942 @item T S l
3943 @kindex T S l (Topic)
3944 @findex gnus-topic-sort-groups-by-level
3945 Sort the current topic by group level
3946 (@code{gnus-topic-sort-groups-by-level}).
3947
3948 @item T S v
3949 @kindex T S v (Topic)
3950 @findex gnus-topic-sort-groups-by-score
3951 Sort the current topic by group score
3952 (@code{gnus-topic-sort-groups-by-score}).  @xref{Group Score}.
3953
3954 @item T S r
3955 @kindex T S r (Topic)
3956 @findex gnus-topic-sort-groups-by-rank
3957 Sort the current topic by group rank
3958 (@code{gnus-topic-sort-groups-by-rank}).  @xref{Group Score}.
3959
3960 @item T S m
3961 @kindex T S m (Topic)
3962 @findex gnus-topic-sort-groups-by-method
3963 Sort the current topic alphabetically by back end name
3964 (@code{gnus-topic-sort-groups-by-method}).
3965
3966 @item T S e
3967 @kindex T S e (Topic)
3968 @findex gnus-topic-sort-groups-by-server
3969 Sort the current topic alphabetically by server name
3970 (@code{gnus-topic-sort-groups-by-server}).
3971
3972 @item T S s
3973 @kindex T S s (Topic)
3974 @findex gnus-topic-sort-groups
3975 Sort the current topic according to the function(s) given by the
3976 @code{gnus-group-sort-function} variable
3977 (@code{gnus-topic-sort-groups}).
3978
3979 @end table
3980
3981 When given a prefix argument, all these commands will sort in reverse
3982 order.  @xref{Sorting Groups}, for more information about group
3983 sorting.
3984
3985
3986 @node Topic Topology
3987 @subsection Topic Topology
3988 @cindex topic topology
3989 @cindex topology
3990
3991 So, let's have a look at an example group buffer:
3992
3993 @example
3994 @group
3995 Gnus
3996   Emacs -- I wuw it!
3997      3: comp.emacs
3998      2: alt.religion.emacs
3999     Naughty Emacs
4000      452: alt.sex.emacs
4001        0: comp.talk.emacs.recovery
4002   Misc
4003      8: comp.binaries.fractals
4004     13: comp.sources.unix
4005 @end group
4006 @end example
4007
4008 So, here we have one top-level topic (@samp{Gnus}), two topics under
4009 that, and one sub-topic under one of the sub-topics.  (There is always
4010 just one (1) top-level topic).  This topology can be expressed as
4011 follows:
4012
4013 @lisp
4014 (("Gnus" visible)
4015  (("Emacs -- I wuw it!" visible)
4016   (("Naughty Emacs" visible)))
4017  (("Misc" visible)))
4018 @end lisp
4019
4020 @vindex gnus-topic-topology
4021 This is in fact how the variable @code{gnus-topic-topology} would look
4022 for the display above.  That variable is saved in the @file{.newsrc.eld}
4023 file, and shouldn't be messed with manually---unless you really want
4024 to.  Since this variable is read from the @file{.newsrc.eld} file,
4025 setting it in any other startup files will have no effect.
4026
4027 This topology shows what topics are sub-topics of what topics (right),
4028 and which topics are visible.  Two settings are currently
4029 allowed---@code{visible} and @code{invisible}.
4030
4031
4032 @node Topic Parameters
4033 @subsection Topic Parameters
4034 @cindex topic parameters
4035
4036 All groups in a topic will inherit group parameters from the parent
4037 (and ancestor) topic parameters.  All valid group parameters are valid
4038 topic parameters (@pxref{Group Parameters}).  When the agent is
4039 enabled, all agent parameters (See Agent Parameters in @ref{Category
4040 Syntax}) are also valid topic parameters.
4041
4042 In addition, the following parameters are only valid as topic
4043 parameters:
4044
4045 @table @code
4046 @item subscribe
4047 When subscribing new groups by topic (@pxref{Subscription Methods}), the
4048 @code{subscribe} topic parameter says what groups go in what topic.  Its
4049 value should be a regexp to match the groups that should go in that
4050 topic.
4051
4052 @item subscribe-level
4053 When subscribing new groups by topic (see the @code{subscribe} parameter),
4054 the group will be subscribed with the level specified in the
4055 @code{subscribe-level} instead of @code{gnus-level-default-subscribed}.
4056
4057 @end table
4058
4059 Group parameters (of course) override topic parameters, and topic
4060 parameters in sub-topics override topic parameters in super-topics.  You
4061 know.  Normal inheritance rules.  (@dfn{Rules} is here a noun, not a
4062 verb, although you may feel free to disagree with me here.)
4063
4064 @example
4065 @group
4066 Gnus
4067   Emacs
4068      3: comp.emacs
4069      2: alt.religion.emacs
4070    452: alt.sex.emacs
4071     Relief
4072      452: alt.sex.emacs
4073        0: comp.talk.emacs.recovery
4074   Misc
4075      8: comp.binaries.fractals
4076     13: comp.sources.unix
4077    452: alt.sex.emacs
4078 @end group
4079 @end example
4080
4081 The @samp{Emacs} topic has the topic parameter @code{(score-file
4082 . "emacs.SCORE")}; the @samp{Relief} topic has the topic parameter
4083 @code{(score-file . "relief.SCORE")}; and the @samp{Misc} topic has the
4084 topic parameter @code{(score-file . "emacs.SCORE")}.  In addition,
4085 @* @samp{alt.religion.emacs} has the group parameter @code{(score-file
4086 . "religion.SCORE")}.
4087
4088 Now, when you enter @samp{alt.sex.emacs} in the @samp{Relief} topic, you
4089 will get the @file{relief.SCORE} home score file.  If you enter the same
4090 group in the @samp{Emacs} topic, you'll get the @file{emacs.SCORE} home
4091 score file.  If you enter the group @samp{alt.religion.emacs}, you'll
4092 get the @file{religion.SCORE} home score file.
4093
4094 This seems rather simple and self-evident, doesn't it?  Well, yes.  But
4095 there are some problems, especially with the @code{total-expiry}
4096 parameter.  Say you have a mail group in two topics; one with
4097 @code{total-expiry} and one without.  What happens when you do @kbd{M-x
4098 gnus-expire-all-expirable-groups}?  Gnus has no way of telling which one
4099 of these topics you mean to expire articles from, so anything may
4100 happen.  In fact, I hereby declare that it is @dfn{undefined} what
4101 happens.  You just have to be careful if you do stuff like that.
4102
4103
4104 @node Misc Group Stuff
4105 @section Misc Group Stuff
4106
4107 @menu
4108 * Scanning New Messages::       Asking Gnus to see whether new messages have arrived.
4109 * Group Information::           Information and help on groups and Gnus.
4110 * Group Timestamp::             Making Gnus keep track of when you last read a group.
4111 * File Commands::               Reading and writing the Gnus files.
4112 * Sieve Commands::              Managing Sieve scripts.
4113 @end menu
4114
4115 @table @kbd
4116
4117 @item v
4118 @kindex v (Group)
4119 @cindex keys, reserved for users (Group)
4120 The key @kbd{v} is reserved for users.  You can bind it key to some
4121 function or better use it as a prefix key.  For example:
4122
4123 @lisp
4124 (define-key gnus-group-mode-map (kbd "v j d")
4125   (lambda ()
4126     (interactive)
4127     (gnus-group-jump-to-group "nndraft:drafts")))
4128 @end lisp
4129
4130 On keys reserved for users in Emacs and on keybindings in general
4131 @xref{Keymaps, Keymaps, , emacs, The Emacs Editor}.
4132
4133 @item ^
4134 @kindex ^ (Group)
4135 @findex gnus-group-enter-server-mode
4136 Enter the server buffer (@code{gnus-group-enter-server-mode}).
4137 @xref{Server Buffer}.
4138
4139 @item a
4140 @kindex a (Group)
4141 @findex gnus-group-post-news
4142 Start composing a message (a news by default)
4143 (@code{gnus-group-post-news}).  If given a prefix, post to the group
4144 under the point.  If the prefix is 1, prompt for a group to post to.
4145 Contrary to what the name of this function suggests, the prepared
4146 article might be a mail instead of a news, if a mail group is specified
4147 with the prefix argument.  @xref{Composing Messages}.
4148
4149 @item m
4150 @kindex m (Group)
4151 @findex gnus-group-mail
4152 Mail a message somewhere (@code{gnus-group-mail}).  If given a prefix,
4153 use the posting style of the group under the point.  If the prefix is 1,
4154 prompt for a group name to find the posting style.
4155 @xref{Composing Messages}.
4156
4157 @item i
4158 @kindex i (Group)
4159 @findex gnus-group-news
4160 Start composing a news (@code{gnus-group-news}).  If given a prefix,
4161 post to the group under the point.  If the prefix is 1, prompt
4162 for group to post to.  @xref{Composing Messages}.
4163
4164 This function actually prepares a news even when using mail groups.
4165 This is useful for ``posting'' messages to mail groups without actually
4166 sending them over the network: they're just saved directly to the group
4167 in question.  The corresponding back end must have a request-post method
4168 for this to work though.
4169
4170 @end table
4171
4172 Variables for the group buffer:
4173
4174 @table @code
4175
4176 @item gnus-group-mode-hook
4177 @vindex gnus-group-mode-hook
4178 is called after the group buffer has been
4179 created.
4180
4181 @item gnus-group-prepare-hook
4182 @vindex gnus-group-prepare-hook
4183 is called after the group buffer is
4184 generated.  It may be used to modify the buffer in some strange,
4185 unnatural way.
4186
4187 @item gnus-group-prepared-hook
4188 @vindex gnus-group-prepare-hook
4189 is called as the very last thing after the group buffer has been
4190 generated.  It may be used to move point around, for instance.
4191
4192 @item gnus-permanently-visible-groups
4193 @vindex gnus-permanently-visible-groups
4194 Groups matching this regexp will always be listed in the group buffer,
4195 whether they are empty or not.
4196
4197 @item gnus-group-name-charset-method-alist
4198 @vindex gnus-group-name-charset-method-alist
4199 An alist of method and the charset for group names.  It is used to show
4200 non-@acronym{ASCII} group names.
4201
4202 For example:
4203 @lisp
4204 (setq gnus-group-name-charset-method-alist
4205     '(((nntp "news.com.cn") . cn-gb-2312)))
4206 @end lisp
4207
4208 @item gnus-group-name-charset-group-alist
4209 @cindex UTF-8 group names
4210 @vindex gnus-group-name-charset-group-alist
4211 An alist of regexp of group name and the charset for group names.  It
4212 is used to show non-@acronym{ASCII} group names.  @code{((".*"
4213 utf-8))} is the default value if UTF-8 is supported, otherwise the
4214 default is @code{nil}.
4215
4216 For example:
4217 @lisp
4218 (setq gnus-group-name-charset-group-alist
4219     '(("\\.com\\.cn:" . cn-gb-2312)))
4220 @end lisp
4221
4222 @end table
4223
4224 @node Scanning New Messages
4225 @subsection Scanning New Messages
4226 @cindex new messages
4227 @cindex scanning new news
4228
4229 @table @kbd
4230
4231 @item g
4232 @kindex g (Group)
4233 @findex gnus-group-get-new-news
4234 @c @icon{gnus-group-get-new-news}
4235 Check the server(s) for new articles.  If the numerical prefix is used,
4236 this command will check only groups of level @var{arg} and lower
4237 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
4238 command will force a total re-reading of the active file(s) from the
4239 back end(s).
4240
4241 @item M-g
4242 @kindex M-g (Group)
4243 @findex gnus-group-get-new-news-this-group
4244 @vindex gnus-goto-next-group-when-activating
4245 @c @icon{gnus-group-get-new-news-this-group}
4246 Check whether new articles have arrived in the current group
4247 (@code{gnus-group-get-new-news-this-group}).
4248 @code{gnus-goto-next-group-when-activating} says whether this command is
4249 to move point to the next group or not.  It is @code{t} by default.
4250
4251 @findex gnus-activate-all-groups
4252 @cindex activating groups
4253 @item C-c M-g
4254 @kindex C-c M-g (Group)
4255 Activate absolutely all groups (@code{gnus-activate-all-groups}).
4256
4257 @item R
4258 @kindex R (Group)
4259 @cindex restarting
4260 @findex gnus-group-restart
4261 Restart Gnus (@code{gnus-group-restart}).  This saves the @file{.newsrc}
4262 file(s), closes the connection to all servers, clears up all run-time
4263 Gnus variables, and then starts Gnus all over again.
4264
4265 @end table
4266
4267 @vindex gnus-get-new-news-hook
4268 @code{gnus-get-new-news-hook} is run just before checking for new news.
4269
4270 @vindex gnus-after-getting-new-news-hook
4271 @code{gnus-after-getting-new-news-hook} is run after checking for new
4272 news.
4273
4274
4275 @node Group Information
4276 @subsection Group Information
4277 @cindex group information
4278 @cindex information on groups
4279
4280 @table @kbd
4281
4282
4283 @item H f
4284 @kindex H f (Group)
4285 @findex gnus-group-fetch-faq
4286 @vindex gnus-group-faq-directory
4287 @cindex FAQ
4288 @cindex ange-ftp
4289 Try to fetch the @acronym{FAQ} for the current group
4290 (@code{gnus-group-fetch-faq}).  Gnus will try to get the @acronym{FAQ}
4291 from @code{gnus-group-faq-directory}, which is usually a directory on
4292 a remote machine.  This variable can also be a list of directories.
4293 In that case, giving a prefix to this command will allow you to choose
4294 between the various sites.  @code{ange-ftp} (or @code{efs}) will be
4295 used for fetching the file.
4296
4297 If fetching from the first site is unsuccessful, Gnus will attempt to go
4298 through @code{gnus-group-faq-directory} and try to open them one by one.
4299
4300 @item H c
4301 @kindex H c (Group)
4302 @findex gnus-group-fetch-charter
4303 @vindex gnus-group-charter-alist
4304 @cindex charter
4305 Try to open the charter for the current group in a web browser
4306 (@code{gnus-group-fetch-charter}).  Query for a group if given a
4307 prefix argument.
4308
4309 Gnus will use @code{gnus-group-charter-alist} to find the location of
4310 the charter.  If no location is known, Gnus will fetch the control
4311 messages for the group, which in some cases includes the charter.
4312
4313 @item H C
4314 @kindex H C (Group)
4315 @findex gnus-group-fetch-control
4316 @vindex gnus-group-fetch-control-use-browse-url
4317 @cindex control message
4318 Fetch the control messages for the group from the archive at
4319 @code{ftp.isc.org} (@code{gnus-group-fetch-control}).  Query for a
4320 group if given a prefix argument.
4321
4322 If @code{gnus-group-fetch-control-use-browse-url} is non-@code{nil},
4323 Gnus will open the control messages in a browser using
4324 @code{browse-url}.  Otherwise they are fetched using @code{ange-ftp}
4325 and displayed in an ephemeral group.
4326
4327 Note that the control messages are compressed.  To use this command
4328 you need to turn on @code{auto-compression-mode} (@pxref{Compressed
4329 Files, ,Compressed Files, emacs, The Emacs Manual}).
4330
4331 @item H d
4332 @itemx C-c C-d
4333 @c @icon{gnus-group-describe-group}
4334 @kindex H d (Group)
4335 @kindex C-c C-d (Group)
4336 @cindex describing groups
4337 @cindex group description
4338 @findex gnus-group-describe-group
4339 Describe the current group (@code{gnus-group-describe-group}).  If given
4340 a prefix, force Gnus to re-read the description from the server.
4341
4342 @item M-d
4343 @kindex M-d (Group)
4344 @findex gnus-group-describe-all-groups
4345 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
4346 prefix, force Gnus to re-read the description file from the server.
4347
4348 @item H v
4349 @itemx V
4350 @kindex V (Group)
4351 @kindex H v (Group)
4352 @cindex version
4353 @findex gnus-version
4354 Display current Gnus version numbers (@code{gnus-version}).
4355
4356 @item ?
4357 @kindex ? (Group)
4358 @findex gnus-group-describe-briefly
4359 Give a very short help message (@code{gnus-group-describe-briefly}).
4360
4361 @item C-c C-i
4362 @kindex C-c C-i (Group)
4363 @cindex info
4364 @cindex manual
4365 @findex gnus-info-find-node
4366 Go to the Gnus info node (@code{gnus-info-find-node}).
4367 @end table
4368
4369
4370 @node Group Timestamp
4371 @subsection Group Timestamp
4372 @cindex timestamps
4373 @cindex group timestamps
4374
4375 It can be convenient to let Gnus keep track of when you last read a
4376 group.  To set the ball rolling, you should add
4377 @code{gnus-group-set-timestamp} to @code{gnus-select-group-hook}:
4378
4379 @lisp
4380 (add-hook 'gnus-select-group-hook 'gnus-group-set-timestamp)
4381 @end lisp
4382
4383 After doing this, each time you enter a group, it'll be recorded.
4384
4385 This information can be displayed in various ways---the easiest is to
4386 use the @samp{%d} spec in the group line format:
4387
4388 @lisp
4389 (setq gnus-group-line-format
4390       "%M\%S\%p\%P\%5y: %(%-40,40g%) %d\n")
4391 @end lisp
4392
4393 This will result in lines looking like:
4394
4395 @example
4396 *        0: mail.ding                                19961002T012943
4397          0: custom                                   19961002T012713
4398 @end example
4399
4400 As you can see, the date is displayed in compact ISO 8601 format.  This
4401 may be a bit too much, so to just display the date, you could say
4402 something like:
4403
4404 @lisp
4405 (setq gnus-group-line-format
4406       "%M\%S\%p\%P\%5y: %(%-40,40g%) %6,6~(cut 2)d\n")
4407 @end lisp
4408
4409 If you would like greater control of the time format, you can use a
4410 user-defined format spec.  Something like the following should do the
4411 trick:
4412
4413 @lisp
4414 (setq gnus-group-line-format
4415       "%M\%S\%p\%P\%5y: %(%-40,40g%) %ud\n")
4416 (defun gnus-user-format-function-d (headers)
4417   (let ((time (gnus-group-timestamp gnus-tmp-group)))
4418     (if time
4419         (format-time-string "%b %d  %H:%M" time)
4420       "")))
4421 @end lisp
4422
4423
4424 @node File Commands
4425 @subsection File Commands
4426 @cindex file commands
4427
4428 @table @kbd
4429
4430 @item r
4431 @kindex r (Group)
4432 @findex gnus-group-read-init-file
4433 @vindex gnus-init-file
4434 @cindex reading init file
4435 Re-read the init file (@code{gnus-init-file}, which defaults to
4436 @file{~/.gnus.el}) (@code{gnus-group-read-init-file}).
4437
4438 @item s
4439 @kindex s (Group)
4440 @findex gnus-group-save-newsrc
4441 @cindex saving .newsrc
4442 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
4443 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
4444 file(s) whether Gnus thinks it is necessary or not.
4445
4446 @c @item Z
4447 @c @kindex Z (Group)
4448 @c @findex gnus-group-clear-dribble
4449 @c Clear the dribble buffer (@code{gnus-group-clear-dribble}).
4450
4451 @end table
4452
4453
4454 @node Sieve Commands
4455 @subsection Sieve Commands
4456 @cindex group sieve commands
4457
4458 Sieve is a server-side mail filtering language.  In Gnus you can use
4459 the @code{sieve} group parameter (@pxref{Group Parameters}) to specify
4460 sieve rules that should apply to each group.  Gnus provides two
4461 commands to translate all these group parameters into a proper Sieve
4462 script that can be transfered to the server somehow.
4463
4464 @vindex gnus-sieve-file
4465 @vindex gnus-sieve-region-start
4466 @vindex gnus-sieve-region-end
4467 The generated Sieve script is placed in @code{gnus-sieve-file} (by
4468 default @file{~/.sieve}).  The Sieve code that Gnus generate is placed
4469 between two delimiters, @code{gnus-sieve-region-start} and
4470 @code{gnus-sieve-region-end}, so you may write additional Sieve code
4471 outside these delimiters that will not be removed the next time you
4472 regenerate the Sieve script.
4473
4474 @vindex gnus-sieve-crosspost
4475 The variable @code{gnus-sieve-crosspost} controls how the Sieve script
4476 is generated.  If it is non-@code{nil} (the default) articles is
4477 placed in all groups that have matching rules, otherwise the article
4478 is only placed in the group with the first matching rule.  For
4479 example, the group parameter @samp{(sieve address "sender"
4480 "owner-ding@@hpc.uh.edu")} will generate the following piece of Sieve
4481 code if @code{gnus-sieve-crosspost} is @code{nil}.  (When
4482 @code{gnus-sieve-crosspost} is non-@code{nil}, it looks the same
4483 except that the line containing the call to @code{stop} is removed.)
4484
4485 @example
4486 if address "sender" "owner-ding@@hpc.uh.edu" @{
4487         fileinto "INBOX.ding";
4488         stop;
4489 @}
4490 @end example
4491
4492 @xref{Top, Emacs Sieve, Top, sieve, Emacs Sieve}.
4493
4494 @table @kbd
4495
4496 @item D g
4497 @kindex D g (Group)
4498 @findex gnus-sieve-generate
4499 @vindex gnus-sieve-file
4500 @cindex generating sieve script
4501 Regenerate a Sieve script from the @code{sieve} group parameters and
4502 put you into the @code{gnus-sieve-file} without saving it.
4503
4504 @item D u
4505 @kindex D u (Group)
4506 @findex gnus-sieve-update
4507 @vindex gnus-sieve-file
4508 @cindex updating sieve script
4509 Regenerates the Gnus managed part of @code{gnus-sieve-file} using the
4510 @code{sieve} group parameters, save the file and upload it to the
4511 server using the @code{sieveshell} program.
4512
4513 @end table
4514
4515
4516 @node Summary Buffer
4517 @chapter Summary Buffer
4518 @cindex summary buffer
4519
4520 A line for each article is displayed in the summary buffer.  You can
4521 move around, read articles, post articles and reply to articles.
4522
4523 The most common way to a summary buffer is to select a group from the
4524 group buffer (@pxref{Selecting a Group}).
4525
4526 You can have as many summary buffers open as you wish.
4527
4528 @kindex v (Summary)
4529 @cindex keys, reserved for users (Summary)
4530 The key @kbd{v} is reserved for users.  You can bind it key to some
4531 function or better use it as a prefix key.  For example:
4532 @lisp
4533 (define-key gnus-summary-mode-map (kbd "v -") "LrS") ;; lower subthread
4534 @end lisp
4535
4536 @menu
4537 * Summary Buffer Format::       Deciding how the summary buffer is to look.
4538 * Summary Maneuvering::         Moving around the summary buffer.
4539 * Choosing Articles::           Reading articles.
4540 * Paging the Article::          Scrolling the current article.
4541 * Reply Followup and Post::     Posting articles.
4542 * Delayed Articles::            Send articles at a later time.
4543 * Marking Articles::            Marking articles as read, expirable, etc.
4544 * Limiting::                    You can limit the summary buffer.
4545 * Threading::                   How threads are made.
4546 * Sorting the Summary Buffer::  How articles and threads are sorted.
4547 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
4548 * Article Caching::             You may store articles in a cache.
4549 * Persistent Articles::         Making articles expiry-resistant.
4550 * Article Backlog::             Having already read articles hang around.
4551 * Saving Articles::             Ways of customizing article saving.
4552 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
4553 * Article Treatment::           The article buffer can be mangled at will.
4554 * MIME Commands::               Doing MIMEy things with the articles.
4555 * Charsets::                    Character set issues.
4556 * Article Commands::            Doing various things with the article buffer.
4557 * Summary Sorting::             Sorting the summary buffer in various ways.
4558 * Finding the Parent::          No child support? Get the parent.
4559 * Alternative Approaches::      Reading using non-default summaries.
4560 * Tree Display::                A more visual display of threads.
4561 * Mail Group Commands::         Some commands can only be used in mail groups.
4562 * Various Summary Stuff::       What didn't fit anywhere else.
4563 * Exiting the Summary Buffer::  Returning to the Group buffer,
4564                                 or reselecting the current group.
4565 * Crosspost Handling::          How crossposted articles are dealt with.
4566 * Duplicate Suppression::       An alternative when crosspost handling fails.
4567 * Security::                    Decrypt and Verify.
4568 * Mailing List::                Mailing list minor mode.
4569 @end menu
4570
4571
4572 @node Summary Buffer Format
4573 @section Summary Buffer Format
4574 @cindex summary buffer format
4575
4576 @iftex
4577 @iflatex
4578 \gnusfigure{The Summary Buffer}{180}{
4579 \put(0,0){\epsfig{figure=ps/summary,width=7.5cm}}
4580 \put(445,0){\makebox(0,0)[br]{\epsfig{figure=ps/summary-article,width=7.5cm}}}
4581 }
4582 @end iflatex
4583 @end iftex
4584
4585 @menu
4586 * Summary Buffer Lines::        You can specify how summary lines should look.
4587 * To From Newsgroups::          How to not display your own name.
4588 * Summary Buffer Mode Line::    You can say how the mode line should look.
4589 * Summary Highlighting::        Making the summary buffer all pretty and nice.
4590 @end menu
4591
4592 @findex mail-extract-address-components
4593 @findex gnus-extract-address-components
4594 @vindex gnus-extract-address-components
4595 Gnus will use the value of the @code{gnus-extract-address-components}
4596 variable as a function for getting the name and address parts of a
4597 @code{From} header.  Two pre-defined functions exist:
4598 @code{gnus-extract-address-components}, which is the default, quite
4599 fast, and too simplistic solution; and
4600 @code{mail-extract-address-components}, which works very nicely, but is
4601 slower.  The default function will return the wrong answer in 5% of the
4602 cases.  If this is unacceptable to you, use the other function instead:
4603
4604 @lisp
4605 (setq gnus-extract-address-components
4606       'mail-extract-address-components)
4607 @end lisp
4608
4609 @vindex gnus-summary-same-subject
4610 @code{gnus-summary-same-subject} is a string indicating that the current
4611 article has the same subject as the previous.  This string will be used
4612 with those specs that require it.  The default is @code{""}.
4613
4614
4615 @node Summary Buffer Lines
4616 @subsection Summary Buffer Lines
4617
4618 @vindex gnus-summary-line-format
4619 You can change the format of the lines in the summary buffer by changing
4620 the @code{gnus-summary-line-format} variable.  It works along the same
4621 lines as a normal @code{format} string, with some extensions
4622 (@pxref{Formatting Variables}).
4623
4624 There should always be a colon or a point position marker on the line;
4625 the cursor always moves to the point position marker or the colon after
4626 performing an operation.  (Of course, Gnus wouldn't be Gnus if it wasn't
4627 possible to change this.  Just write a new function
4628 @code{gnus-goto-colon} which does whatever you like with the cursor.)
4629 @xref{Positioning Point}.
4630
4631 The default string is @samp{%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n}.
4632
4633 The following format specification characters and extended format
4634 specification(s) are understood:
4635
4636 @table @samp
4637 @item N
4638 Article number.
4639 @item S
4640 Subject string.  List identifiers stripped,
4641 @code{gnus-list-identifies}.  @xref{Article Hiding}.
4642 @item s
4643 Subject if the article is the root of the thread or the previous article
4644 had a different subject, @code{gnus-summary-same-subject} otherwise.
4645 (@code{gnus-summary-same-subject} defaults to @code{""}.)
4646 @item F
4647 Full @code{From} header.
4648 @item n
4649 The name (from the @code{From} header).
4650 @item f
4651 The name, @code{To} header or the @code{Newsgroups} header (@pxref{To
4652 From Newsgroups}).
4653 @item a
4654 The name (from the @code{From} header).  This differs from the @code{n}
4655 spec in that it uses the function designated by the
4656 @code{gnus-extract-address-components} variable, which is slower, but
4657 may be more thorough.
4658 @item A
4659 The address (from the @code{From} header).  This works the same way as
4660 the @code{a} spec.
4661 @item L
4662 Number of lines in the article.
4663 @item c
4664 Number of characters in the article.  This specifier is not supported
4665 in some methods (like nnfolder).
4666 @item k
4667 Pretty-printed version of the number of characters in the article;
4668 for example, @samp{1.2k} or @samp{0.4M}.
4669 @item I
4670 Indentation based on thread level (@pxref{Customizing Threading}).
4671 @item B
4672 A complex trn-style thread tree, showing response-connecting trace
4673 lines.  A thread could be drawn like this:
4674
4675 @example
4676 >
4677 +->
4678 | +->
4679 | | \->
4680 | |   \->
4681 | \->
4682 +->
4683 \->
4684 @end example
4685
4686 You can customize the appearance with the following options.  Note
4687 that it is possible to make the thread display look really neat by
4688 replacing the default @acronym{ASCII} characters with graphic
4689 line-drawing glyphs.
4690 @table @code
4691 @item gnus-sum-thread-tree-root
4692 @vindex gnus-sum-thread-tree-root
4693 Used for the root of a thread.  If @code{nil}, use subject
4694 instead.  The default is @samp{> }.
4695
4696 @item gnus-sum-thread-tree-false-root
4697 @vindex gnus-sum-thread-tree-false-root
4698 Used for the false root of a thread (@pxref{Loose Threads}).  If
4699 @code{nil}, use subject instead.  The default is @samp{> }.
4700
4701 @item gnus-sum-thread-tree-single-indent
4702 @vindex gnus-sum-thread-tree-single-indent
4703 Used for a thread with just one message.  If @code{nil}, use subject
4704 instead.  The default is @samp{}.
4705
4706 @item gnus-sum-thread-tree-vertical
4707 @vindex gnus-sum-thread-tree-vertical
4708 Used for drawing a vertical line.  The default is @samp{| }.
4709
4710 @item gnus-sum-thread-tree-indent
4711 @vindex gnus-sum-thread-tree-indent
4712 Used for indenting.  The default is @samp{  }.
4713
4714 @item gnus-sum-thread-tree-leaf-with-other
4715 @vindex gnus-sum-thread-tree-leaf-with-other
4716 Used for a leaf with brothers.  The default is @samp{+-> }.
4717
4718 @item gnus-sum-thread-tree-single-leaf
4719 @vindex gnus-sum-thread-tree-single-leaf
4720 Used for a leaf without brothers.  The default is @samp{\-> }
4721
4722 @end table
4723
4724 @item T
4725 Nothing if the article is a root and lots of spaces if it isn't (it
4726 pushes everything after it off the screen).
4727 @item [
4728 Opening bracket, which is normally @samp{[}, but can also be @samp{<}
4729 for adopted articles (@pxref{Customizing Threading}).
4730 @item ]
4731 Closing bracket, which is normally @samp{]}, but can also be @samp{>}
4732 for adopted articles.
4733 @item >
4734 One space for each thread level.
4735 @item <
4736 Twenty minus thread level spaces.
4737 @item U
4738 Unread.  @xref{Read Articles}.
4739
4740 @item R
4741 This misleadingly named specifier is the @dfn{secondary mark}.  This
4742 mark will say whether the article has been replied to, has been cached,
4743 or has been saved.  @xref{Other Marks}.
4744
4745 @item i
4746 Score as a number (@pxref{Scoring}).
4747 @item z
4748 @vindex gnus-summary-zcore-fuzz
4749 Zcore, @samp{+} if above the default level and @samp{-} if below the
4750 default level.  If the difference between
4751 @code{gnus-summary-default-score} and the score is less than
4752 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
4753 @item V
4754 Total thread score.
4755 @item x
4756 @code{Xref}.
4757 @item D
4758 @code{Date}.
4759 @item d
4760 The @code{Date} in @code{DD-MMM} format.
4761 @item o
4762 The @code{Date} in @var{YYYYMMDD}@code{T}@var{HHMMSS} format.
4763 @item M
4764 @code{Message-ID}.
4765 @item r
4766 @code{References}.
4767 @item t
4768 Number of articles in the current sub-thread.  Using this spec will slow
4769 down summary buffer generation somewhat.
4770 @item e
4771 An @samp{=} (@code{gnus-not-empty-thread-mark}) will be displayed if the
4772 article has any children.
4773 @item P
4774 The line number.
4775 @item O
4776 Download mark.
4777 @item *
4778 Desired cursor position (instead of after first colon).
4779 @item &user-date;
4780 Age sensitive date format.  Various date format is defined in
4781 @code{gnus-user-date-format-alist}.
4782 @item u
4783 User defined specifier.  The next character in the format string should
4784 be a letter.  Gnus will call the function
4785 @code{gnus-user-format-function-@var{x}}, where @var{x} is the letter
4786 following @samp{%u}.  The function will be passed the current header as
4787 argument.  The function should return a string, which will be inserted
4788 into the summary just like information from any other summary specifier.
4789 @end table
4790
4791 Text between @samp{%(} and @samp{%)} will be highlighted with
4792 @code{gnus-mouse-face} when the mouse point is placed inside the area.
4793 There can only be one such area.
4794
4795 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
4796 have to be handled with care.  For reasons of efficiency, Gnus will
4797 compute what column these characters will end up in, and ``hard-code''
4798 that.  This means that it is invalid to have these specs after a
4799 variable-length spec.  Well, you might not be arrested, but your summary
4800 buffer will look strange, which is bad enough.
4801
4802 The smart choice is to have these specs as far to the left as possible.
4803 (Isn't that the case with everything, though?  But I digress.)
4804
4805 This restriction may disappear in later versions of Gnus.
4806
4807
4808 @node To From Newsgroups
4809 @subsection To From Newsgroups
4810 @cindex To
4811 @cindex Newsgroups
4812
4813 In some groups (particularly in archive groups), the @code{From} header
4814 isn't very interesting, since all the articles there are written by
4815 you.  To display the information in the @code{To} or @code{Newsgroups}
4816 headers instead, you need to decide three things: What information to
4817 gather; where to display it; and when to display it.
4818
4819 @enumerate
4820 @item
4821 @vindex gnus-extra-headers
4822 The reading of extra header information is controlled by the
4823 @code{gnus-extra-headers}.  This is a list of header symbols.  For
4824 instance:
4825
4826 @lisp
4827 (setq gnus-extra-headers
4828       '(To Newsgroups X-Newsreader))
4829 @end lisp
4830
4831 This will result in Gnus trying to obtain these three headers, and
4832 storing it in header structures for later easy retrieval.
4833
4834 @item
4835 @findex gnus-extra-header
4836 The value of these extra headers can be accessed via the
4837 @code{gnus-extra-header} function.  Here's a format line spec that will
4838 access the @code{X-Newsreader} header:
4839
4840 @example
4841 "%~(form (gnus-extra-header 'X-Newsreader))@@"
4842 @end example
4843
4844 @item
4845 @vindex gnus-ignored-from-addresses
4846 The @code{gnus-ignored-from-addresses} variable says when the @samp{%f}
4847 summary line spec returns the @code{To}, @code{Newsreader} or
4848 @code{From} header.  If this regexp matches the contents of the
4849 @code{From} header, the value of the @code{To} or @code{Newsreader}
4850 headers are used instead.
4851
4852 To distinguish regular articles from those where the @code{From} field
4853 has been swapped, a string is prefixed to the @code{To} or
4854 @code{Newsgroups} header in the summary line.  By default the string is
4855 @samp{-> } for @code{To} and @samp{=> } for @code{Newsgroups}, you can
4856 customize these strings with @code{gnus-summary-to-prefix} and
4857 @code{gnus-summary-newsgroup-prefix}.
4858
4859 @end enumerate
4860
4861 @vindex nnmail-extra-headers
4862 A related variable is @code{nnmail-extra-headers}, which controls when
4863 to include extra headers when generating overview (@acronym{NOV}) files.
4864 If you have old overview files, you should regenerate them after
4865 changing this variable, by entering the server buffer using @kbd{^},
4866 and then @kbd{g} on the appropriate mail server (e.g. nnml) to cause
4867 regeneration.
4868
4869 @vindex gnus-summary-line-format
4870 You also have to instruct Gnus to display the data by changing the
4871 @code{%n} spec to the @code{%f} spec in the
4872 @code{gnus-summary-line-format} variable.
4873
4874 In summary, you'd typically put something like the following in
4875 @file{~/.gnus.el}:
4876
4877 @lisp
4878 (setq gnus-extra-headers
4879       '(To Newsgroups))
4880 (setq nnmail-extra-headers gnus-extra-headers)
4881 (setq gnus-summary-line-format
4882       "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n")
4883 (setq gnus-ignored-from-addresses
4884       "Your Name Here")
4885 @end lisp
4886
4887 (The values listed above are the default values in Gnus.  Alter them
4888 to fit your needs.)
4889
4890 A note for news server administrators, or for users who wish to try to
4891 convince their news server administrator to provide some additional
4892 support:
4893
4894 The above is mostly useful for mail groups, where you have control over
4895 the @acronym{NOV} files that are created.  However, if you can persuade your
4896 nntp admin to add (in the usual implementation, notably INN):
4897
4898 @example
4899 Newsgroups:full
4900 @end example
4901
4902 to the end of her @file{overview.fmt} file, then you can use that just
4903 as you would the extra headers from the mail groups.
4904
4905
4906 @node Summary Buffer Mode Line
4907 @subsection Summary Buffer Mode Line
4908
4909 @vindex gnus-summary-mode-line-format
4910 You can also change the format of the summary mode bar (@pxref{Mode Line
4911 Formatting}).  Set @code{gnus-summary-mode-line-format} to whatever you
4912 like.  The default is @samp{Gnus: %%b [%A] %Z}.
4913
4914 Here are the elements you can play with:
4915
4916 @table @samp
4917 @item G
4918 Group name.
4919 @item p
4920 Unprefixed group name.
4921 @item A
4922 Current article number.
4923 @item z
4924 Current article score.
4925 @item V
4926 Gnus version.
4927 @item U
4928 Number of unread articles in this group.
4929 @item e
4930 Number of unread articles in this group that aren't displayed in the
4931 summary buffer.
4932 @item Z
4933 A string with the number of unread and unselected articles represented
4934 either as @samp{<%U(+%e) more>} if there are both unread and unselected
4935 articles, and just as @samp{<%U more>} if there are just unread articles
4936 and no unselected ones.
4937 @item g
4938 Shortish group name.  For instance, @samp{rec.arts.anime} will be
4939 shortened to @samp{r.a.anime}.
4940 @item S
4941 Subject of the current article.
4942 @item u
4943 User-defined spec (@pxref{User-Defined Specs}).
4944 @item s
4945 Name of the current score file (@pxref{Scoring}).
4946 @item d
4947 Number of dormant articles (@pxref{Unread Articles}).
4948 @item t
4949 Number of ticked articles (@pxref{Unread Articles}).
4950 @item r
4951 Number of articles that have been marked as read in this session.
4952 @item E
4953 Number of articles expunged by the score files.
4954 @end table
4955
4956
4957 @node Summary Highlighting
4958 @subsection Summary Highlighting
4959
4960 @table @code
4961
4962 @item gnus-visual-mark-article-hook
4963 @vindex gnus-visual-mark-article-hook
4964 This hook is run after selecting an article.  It is meant to be used for
4965 highlighting the article in some way.  It is not run if
4966 @code{gnus-visual} is @code{nil}.
4967
4968 @item gnus-summary-update-hook
4969 @vindex gnus-summary-update-hook
4970 This hook is called when a summary line is changed.  It is not run if
4971 @code{gnus-visual} is @code{nil}.
4972
4973 @item gnus-summary-selected-face
4974 @vindex gnus-summary-selected-face
4975 This is the face (or @dfn{font} as some people call it) used to
4976 highlight the current article in the summary buffer.
4977
4978 @item gnus-summary-highlight
4979 @vindex gnus-summary-highlight
4980 Summary lines are highlighted according to this variable, which is a
4981 list where the elements are of the format @code{(@var{form}
4982 . @var{face})}.  If you would, for instance, like ticked articles to be
4983 italic and high-scored articles to be bold, you could set this variable
4984 to something like
4985 @lisp
4986 (((eq mark gnus-ticked-mark) . italic)
4987  ((> score default) . bold))
4988 @end lisp
4989 As you may have guessed, if @var{form} returns a non-@code{nil} value,
4990 @var{face} will be applied to the line.
4991 @end table
4992
4993
4994 @node Summary Maneuvering
4995 @section Summary Maneuvering
4996 @cindex summary movement
4997
4998 All the straight movement commands understand the numeric prefix and
4999 behave pretty much as you'd expect.
5000
5001 None of these commands select articles.
5002
5003 @table @kbd
5004 @item G M-n
5005 @itemx M-n
5006 @kindex M-n (Summary)
5007 @kindex G M-n (Summary)
5008 @findex gnus-summary-next-unread-subject
5009 Go to the next summary line of an unread article
5010 (@code{gnus-summary-next-unread-subject}).
5011
5012 @item G M-p
5013 @itemx M-p
5014 @kindex M-p (Summary)
5015 @kindex G M-p (Summary)
5016 @findex gnus-summary-prev-unread-subject
5017 Go to the previous summary line of an unread article
5018 (@code{gnus-summary-prev-unread-subject}).
5019
5020 @item G g
5021 @kindex G g (Summary)
5022 @findex gnus-summary-goto-subject
5023 Ask for an article number and then go to the summary line of that article
5024 without displaying the article (@code{gnus-summary-goto-subject}).
5025 @end table
5026
5027 If Gnus asks you to press a key to confirm going to the next group, you
5028 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
5029 buffer, searching for the next group to read without actually returning
5030 to the group buffer.
5031
5032 Variables related to summary movement:
5033
5034 @table @code
5035
5036 @vindex gnus-auto-select-next
5037 @item gnus-auto-select-next
5038 If you issue one of the movement commands (like @kbd{n}) and there are
5039 no more unread articles after the current one, Gnus will offer to go to
5040 the next group.  If this variable is @code{t} and the next group is
5041 empty, Gnus will exit summary mode and return to the group buffer.  If
5042 this variable is neither @code{t} nor @code{nil}, Gnus will select the
5043 next group with unread articles.  As a special case, if this variable
5044 is @code{quietly}, Gnus will select the next group without asking for
5045 confirmation.  If this variable is @code{almost-quietly}, the same
5046 will happen only if you are located on the last article in the group.
5047 Finally, if this variable is @code{slightly-quietly}, the @kbd{Z n}
5048 command will go to the next group without confirmation.  Also
5049 @pxref{Group Levels}.
5050
5051 @item gnus-auto-select-same
5052 @vindex gnus-auto-select-same
5053 If non-@code{nil}, all the movement commands will try to go to the next
5054 article with the same subject as the current.  (@dfn{Same} here might
5055 mean @dfn{roughly equal}.  See @code{gnus-summary-gather-subject-limit}
5056 for details (@pxref{Customizing Threading}).)  If there are no more
5057 articles with the same subject, go to the first unread article.
5058
5059 This variable is not particularly useful if you use a threaded display.
5060
5061 @item gnus-summary-check-current
5062 @vindex gnus-summary-check-current
5063 If non-@code{nil}, all the ``unread'' movement commands will not proceed
5064 to the next (or previous) article if the current article is unread.
5065 Instead, they will choose the current article.
5066
5067 @item gnus-auto-center-summary
5068 @vindex gnus-auto-center-summary
5069 If non-@code{nil}, Gnus will keep the point in the summary buffer
5070 centered at all times.  This makes things quite tidy, but if you have a
5071 slow network connection, or simply do not like this un-Emacsism, you can
5072 set this variable to @code{nil} to get the normal Emacs scrolling
5073 action.  This will also inhibit horizontal re-centering of the summary
5074 buffer, which might make it more inconvenient to read extremely long
5075 threads.
5076
5077 This variable can also be a number.  In that case, center the window at
5078 the given number of lines from the top.
5079
5080 @end table
5081
5082
5083 @node Choosing Articles
5084 @section Choosing Articles
5085 @cindex selecting articles
5086
5087 @menu
5088 * Choosing Commands::           Commands for choosing articles.
5089 * Choosing Variables::          Variables that influence these commands.
5090 @end menu
5091
5092
5093 @node Choosing Commands
5094 @subsection Choosing Commands
5095
5096 None of the following movement commands understand the numeric prefix,
5097 and they all select and display an article.
5098
5099 If you want to fetch new articles or redisplay the group, see
5100 @ref{Exiting the Summary Buffer}.
5101
5102 @table @kbd
5103 @item SPACE
5104 @kindex SPACE (Summary)
5105 @findex gnus-summary-next-page
5106 Select the current article, or, if that one's read already, the next
5107 unread article (@code{gnus-summary-next-page}).
5108
5109 If you have an article window open already and you press @kbd{SPACE}
5110 again, the article will be scrolled.  This lets you conveniently
5111 @kbd{SPACE} through an entire newsgroup.  @xref{Paging the Article}.
5112
5113 @item G n
5114 @itemx n
5115 @kindex n (Summary)
5116 @kindex G n (Summary)
5117 @findex gnus-summary-next-unread-article
5118 @c @icon{gnus-summary-next-unread}
5119 Go to next unread article (@code{gnus-summary-next-unread-article}).
5120
5121 @item G p
5122 @itemx p
5123 @kindex p (Summary)
5124 @findex gnus-summary-prev-unread-article
5125 @c @icon{gnus-summary-prev-unread}
5126 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
5127
5128 @item G N
5129 @itemx N
5130 @kindex N (Summary)
5131 @kindex G N (Summary)
5132 @findex gnus-summary-next-article
5133 Go to the next article (@code{gnus-summary-next-article}).
5134
5135 @item G P
5136 @itemx P
5137 @kindex P (Summary)
5138 @kindex G P (Summary)
5139 @findex gnus-summary-prev-article
5140 Go to the previous article (@code{gnus-summary-prev-article}).
5141
5142 @item G C-n
5143 @kindex G C-n (Summary)
5144 @findex gnus-summary-next-same-subject
5145 Go to the next article with the same subject
5146 (@code{gnus-summary-next-same-subject}).
5147
5148 @item G C-p
5149 @kindex G C-p (Summary)
5150 @findex gnus-summary-prev-same-subject
5151 Go to the previous article with the same subject
5152 (@code{gnus-summary-prev-same-subject}).
5153
5154 @item G f
5155 @itemx .
5156 @kindex G f  (Summary)
5157 @kindex .  (Summary)
5158 @findex gnus-summary-first-unread-article
5159 Go to the first unread article
5160 (@code{gnus-summary-first-unread-article}).
5161
5162 @item G b
5163 @itemx ,
5164 @kindex G b (Summary)
5165 @kindex , (Summary)
5166 @findex gnus-summary-best-unread-article
5167 Go to the unread article with the highest score
5168 (@code{gnus-summary-best-unread-article}).  If given a prefix argument,
5169 go to the first unread article that has a score over the default score.
5170
5171 @item G l
5172 @itemx l
5173 @kindex l (Summary)
5174 @kindex G l (Summary)
5175 @findex gnus-summary-goto-last-article
5176 Go to the previous article read (@code{gnus-summary-goto-last-article}).
5177
5178 @item G o
5179 @kindex G o (Summary)
5180 @findex gnus-summary-pop-article
5181 @cindex history
5182 @cindex article history
5183 Pop an article off the summary history and go to this article
5184 (@code{gnus-summary-pop-article}).  This command differs from the
5185 command above in that you can pop as many previous articles off the
5186 history as you like, while @kbd{l} toggles the two last read articles.
5187 For a somewhat related issue (if you use these commands a lot),
5188 @pxref{Article Backlog}.
5189
5190 @item G j
5191 @itemx j
5192 @kindex j (Summary)
5193 @kindex G j (Summary)
5194 @findex gnus-summary-goto-article
5195 Ask for an article number or @code{Message-ID}, and then go to that
5196 article (@code{gnus-summary-goto-article}).
5197
5198 @end table
5199
5200
5201 @node Choosing Variables
5202 @subsection Choosing Variables
5203
5204 Some variables relevant for moving and selecting articles:
5205
5206 @table @code
5207 @item gnus-auto-extend-newsgroup
5208 @vindex gnus-auto-extend-newsgroup
5209 All the movement commands will try to go to the previous (or next)
5210 article, even if that article isn't displayed in the Summary buffer if
5211 this variable is non-@code{nil}.  Gnus will then fetch the article from
5212 the server and display it in the article buffer.
5213
5214 @item gnus-select-article-hook
5215 @vindex gnus-select-article-hook
5216 This hook is called whenever an article is selected.  The default is
5217 @code{nil}.  If you would like each article to be saved in the Agent as
5218 you read it, putting @code{gnus-agent-fetch-selected-article} on this
5219 hook will do so.
5220
5221 @item gnus-mark-article-hook
5222 @vindex gnus-mark-article-hook
5223 @findex gnus-summary-mark-unread-as-read
5224 @findex gnus-summary-mark-read-and-unread-as-read
5225 @findex gnus-unread-mark
5226 This hook is called whenever an article is selected.  It is intended to
5227 be used for marking articles as read.  The default value is
5228 @code{gnus-summary-mark-read-and-unread-as-read}, and will change the
5229 mark of almost any article you read to @code{gnus-read-mark}.  The only
5230 articles not affected by this function are ticked, dormant, and
5231 expirable articles.  If you'd instead like to just have unread articles
5232 marked as read, you can use @code{gnus-summary-mark-unread-as-read}
5233 instead.  It will leave marks like @code{gnus-low-score-mark},
5234 @code{gnus-del-mark} (and so on) alone.
5235
5236 @end table
5237
5238
5239 @node Paging the Article
5240 @section Scrolling the Article
5241 @cindex article scrolling
5242
5243 @table @kbd
5244
5245 @item SPACE
5246 @kindex SPACE (Summary)
5247 @findex gnus-summary-next-page
5248 Pressing @kbd{SPACE} will scroll the current article forward one page,
5249 or, if you have come to the end of the current article, will choose the
5250 next article (@code{gnus-summary-next-page}).
5251
5252 @vindex gnus-article-boring-faces
5253 @vindex gnus-article-skip-boring
5254 If @code{gnus-article-skip-boring} is non-@code{nil} and the rest of
5255 the article consists only of citations and signature, then it will be
5256 skipped; the next article will be shown instead.  You can customize
5257 what is considered uninteresting with
5258 @code{gnus-article-boring-faces}.  You can manually view the article's
5259 pages, no matter how boring, using @kbd{C-M-v}.
5260
5261 @item DEL
5262 @kindex DEL (Summary)
5263 @findex gnus-summary-prev-page
5264 Scroll the current article back one page (@code{gnus-summary-prev-page}).
5265
5266 @item RET
5267 @kindex RET (Summary)
5268 @findex gnus-summary-scroll-up
5269 Scroll the current article one line forward
5270 (@code{gnus-summary-scroll-up}).
5271
5272 @item M-RET
5273 @kindex M-RET (Summary)
5274 @findex gnus-summary-scroll-down
5275 Scroll the current article one line backward
5276 (@code{gnus-summary-scroll-down}).
5277
5278 @item A g
5279 @itemx g
5280 @kindex A g (Summary)
5281 @kindex g (Summary)
5282 @findex gnus-summary-show-article
5283 @vindex gnus-summary-show-article-charset-alist
5284 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
5285 given a prefix, fetch the current article, but don't run any of the
5286 article treatment functions.  This will give you a ``raw'' article, just
5287 the way it came from the server.
5288
5289 If given a numerical prefix, you can do semi-manual charset stuff.
5290 @kbd{C-u 0 g cn-gb-2312 RET} will decode the message as if it were
5291 encoded in the @code{cn-gb-2312} charset.  If you have
5292
5293 @lisp
5294 (setq gnus-summary-show-article-charset-alist
5295       '((1 . cn-gb-2312)
5296         (2 . big5)))
5297 @end lisp
5298
5299 then you can say @kbd{C-u 1 g} to get the same effect.
5300
5301 @item A <
5302 @itemx <
5303 @kindex < (Summary)
5304 @kindex A < (Summary)
5305 @findex gnus-summary-beginning-of-article
5306 Scroll to the beginning of the article
5307 (@code{gnus-summary-beginning-of-article}).
5308
5309 @item A >
5310 @itemx >
5311 @kindex > (Summary)
5312 @kindex A > (Summary)
5313 @findex gnus-summary-end-of-article
5314 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
5315
5316 @item A s
5317 @itemx s
5318 @kindex A s (Summary)
5319 @kindex s (Summary)
5320 @findex gnus-summary-isearch-article
5321 Perform an isearch in the article buffer
5322 (@code{gnus-summary-isearch-article}).
5323
5324 @item h
5325 @kindex h (Summary)
5326 @findex gnus-summary-select-article-buffer
5327 Select the article buffer (@code{gnus-summary-select-article-buffer}).
5328
5329 @end table
5330
5331
5332 @node Reply Followup and Post
5333 @section Reply, Followup and Post
5334
5335 @menu
5336 * Summary Mail Commands::       Sending mail.
5337 * Summary Post Commands::       Sending news.
5338 * Summary Message Commands::    Other Message-related commands.
5339 * Canceling and Superseding::
5340 @end menu
5341
5342
5343 @node Summary Mail Commands
5344 @subsection Summary Mail Commands
5345 @cindex mail
5346 @cindex composing mail
5347
5348 Commands for composing a mail message:
5349
5350 @table @kbd
5351
5352 @item S r
5353 @itemx r
5354 @kindex S r (Summary)
5355 @kindex r (Summary)
5356 @findex gnus-summary-reply
5357 @c @icon{gnus-summary-mail-reply}
5358 @c @icon{gnus-summary-reply}
5359 Mail a reply to the author of the current article
5360 (@code{gnus-summary-reply}).
5361
5362 @item S R
5363 @itemx R
5364 @kindex R (Summary)
5365 @kindex S R (Summary)
5366 @findex gnus-summary-reply-with-original
5367 @c @icon{gnus-summary-reply-with-original}
5368 Mail a reply to the author of the current article and include the
5369 original message (@code{gnus-summary-reply-with-original}).  This
5370 command uses the process/prefix convention.
5371
5372 @item S w
5373 @kindex S w (Summary)
5374 @findex gnus-summary-wide-reply
5375 Mail a wide reply to the author of the current article
5376 (@code{gnus-summary-wide-reply}).  A @dfn{wide reply} is a reply that
5377 goes out to all people listed in the @code{To}, @code{From} (or
5378 @code{Reply-to}) and @code{Cc} headers.  If @code{Mail-Followup-To} is
5379 present, that's used instead.
5380
5381 @item S W
5382 @kindex S W (Summary)
5383 @findex gnus-summary-wide-reply-with-original
5384 Mail a wide reply to the current article and include the original
5385 message (@code{gnus-summary-wide-reply-with-original}).  This command uses
5386 the process/prefix convention.
5387
5388 @item S v
5389 @kindex S v (Summary)
5390 @findex gnus-summary-very-wide-reply
5391 Mail a very wide reply to the author of the current article
5392 (@code{gnus-summary-wide-reply}).  A @dfn{very wide reply} is a reply
5393 that goes out to all people listed in the @code{To}, @code{From} (or
5394 @code{Reply-to}) and @code{Cc} headers in all the process/prefixed
5395 articles.  This command uses the process/prefix convention.
5396
5397 @item S V
5398 @kindex S V (Summary)
5399 @findex gnus-summary-very-wide-reply-with-original
5400 Mail a very wide reply to the author of the current article and include the
5401 original message (@code{gnus-summary-very-wide-reply-with-original}).  This
5402 command uses the process/prefix convention.
5403
5404 @item S B r
5405 @kindex S B r (Summary)
5406 @findex gnus-summary-reply-broken-reply-to
5407 Mail a reply to the author of the current article but ignore the
5408 @code{Reply-To} field (@code{gnus-summary-reply-broken-reply-to}).
5409 If you need this because a mailing list incorrectly sets a
5410 @code{Reply-To} header pointing to the list, you probably want to set
5411 the @code{broken-reply-to} group parameter instead, so things will work
5412 correctly.  @xref{Group Parameters}.
5413
5414 @item S B R
5415 @kindex S B R (Summary)
5416 @findex gnus-summary-reply-broken-reply-to-with-original
5417 Mail a reply to the author of the current article and include the
5418 original message but ignore the @code{Reply-To} field
5419 (@code{gnus-summary-reply-broken-reply-to-with-original}).
5420
5421 @item S o m
5422 @itemx C-c C-f
5423 @kindex S o m (Summary)
5424 @kindex C-c C-f (Summary)
5425 @findex gnus-summary-mail-forward
5426 @c @icon{gnus-summary-mail-forward}
5427 Forward the current article to some other person
5428 (@code{gnus-summary-mail-forward}).  If no prefix is given, the message
5429 is forwarded according to the value of (@code{message-forward-as-mime})
5430 and (@code{message-forward-show-mml}); if the prefix is 1, decode the
5431 message and forward directly inline; if the prefix is 2, forward message
5432 as an rfc822 @acronym{MIME} section; if the prefix is 3, decode message and
5433 forward as an rfc822 @acronym{MIME} section; if the prefix is 4, forward message
5434 directly inline; otherwise, the message is forwarded as no prefix given
5435 but use the flipped value of (@code{message-forward-as-mime}).  By
5436 default, the message is decoded and forwarded as an rfc822 @acronym{MIME}
5437 section.
5438
5439 @item S m
5440 @itemx m
5441 @kindex m (Summary)
5442 @kindex S m (Summary)
5443 @findex gnus-summary-mail-other-window
5444 @c @icon{gnus-summary-mail-originate}
5445 Prepare a mail (@code{gnus-summary-mail-other-window}).  By default, use
5446 the posting style of the current group.  If given a prefix, disable that.
5447 If the prefix is 1, prompt for a group name to find the posting style.
5448
5449 @item S i
5450 @itemx i
5451 @kindex i (Summary)
5452 @kindex S i (Summary)
5453 @findex gnus-summary-news-other-window
5454 Prepare a news (@code{gnus-summary-news-other-window}).  By default,
5455 post to the current group.  If given a prefix, disable that.  If the
5456 prefix is 1, prompt for a group to post to.
5457
5458 This function actually prepares a news even when using mail groups.
5459 This is useful for ``posting'' messages to mail groups without actually
5460 sending them over the network: they're just saved directly to the group
5461 in question.  The corresponding back end must have a request-post method
5462 for this to work though.
5463
5464 @item S D b
5465 @kindex S D b (Summary)
5466 @findex gnus-summary-resend-bounced-mail
5467 @cindex bouncing mail
5468 If you have sent a mail, but the mail was bounced back to you for some
5469 reason (wrong address, transient failure), you can use this command to
5470 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
5471 will be popped into a mail buffer where you can edit the headers before
5472 sending the mail off again.  If you give a prefix to this command, and
5473 the bounced mail is a reply to some other mail, Gnus will try to fetch
5474 that mail and display it for easy perusal of its headers.  This might
5475 very well fail, though.
5476
5477 @item S D r
5478 @kindex S D r (Summary)
5479 @findex gnus-summary-resend-message
5480 Not to be confused with the previous command,
5481 @code{gnus-summary-resend-message} will prompt you for an address to
5482 send the current message off to, and then send it to that place.  The
5483 headers of the message won't be altered---but lots of headers that say
5484 @code{Resent-To}, @code{Resent-From} and so on will be added.  This
5485 means that you actually send a mail to someone that has a @code{To}
5486 header that (probably) points to yourself.  This will confuse people.
5487 So, natcherly you'll only do that if you're really eVIl.
5488
5489 This command is mainly used if you have several accounts and want to
5490 ship a mail to a different account of yours.  (If you're both
5491 @code{root} and @code{postmaster} and get a mail for @code{postmaster}
5492 to the @code{root} account, you may want to resend it to
5493 @code{postmaster}.  Ordnung muss sein!
5494
5495 This command understands the process/prefix convention
5496 (@pxref{Process/Prefix}).
5497
5498 @item S D e
5499 @kindex S D e (Summary)
5500 @findex gnus-summary-resend-message-edit
5501
5502 Like the previous command, but will allow you to edit the message as
5503 if it were a new message before resending.
5504
5505 @item S O m
5506 @kindex S O m (Summary)
5507 @findex gnus-uu-digest-mail-forward
5508 Digest the current series (@pxref{Decoding Articles}) and forward the
5509 result using mail (@code{gnus-uu-digest-mail-forward}).  This command
5510 uses the process/prefix convention (@pxref{Process/Prefix}).
5511
5512 @item S M-c
5513 @kindex S M-c (Summary)
5514 @findex gnus-summary-mail-crosspost-complaint
5515 @cindex crossposting
5516 @cindex excessive crossposting
5517 Send a complaint about excessive crossposting to the author of the
5518 current article (@code{gnus-summary-mail-crosspost-complaint}).
5519
5520 @findex gnus-crosspost-complaint
5521 This command is provided as a way to fight back against the current
5522 crossposting pandemic that's sweeping Usenet.  It will compose a reply
5523 using the @code{gnus-crosspost-complaint} variable as a preamble.  This
5524 command understands the process/prefix convention
5525 (@pxref{Process/Prefix}) and will prompt you before sending each mail.
5526
5527 @end table
5528
5529 Also @xref{Header Commands, ,Header Commands, message, The Message
5530 Manual}, for more information.
5531
5532
5533 @node Summary Post Commands
5534 @subsection Summary Post Commands
5535 @cindex post
5536 @cindex composing news
5537
5538 Commands for posting a news article:
5539
5540 @table @kbd
5541 @item S p
5542 @itemx a
5543 @kindex a (Summary)
5544 @kindex S p (Summary)
5545 @findex gnus-summary-post-news
5546 @c @icon{gnus-summary-post-news}
5547 Prepare for posting an article (@code{gnus-summary-post-news}).  By
5548 default, post to the current group.  If given a prefix, disable that.
5549 If the prefix is 1, prompt for another group instead.
5550
5551 @item S f
5552 @itemx f
5553 @kindex f (Summary)
5554 @kindex S f (Summary)
5555 @findex gnus-summary-followup
5556 @c @icon{gnus-summary-followup}
5557 Post a followup to the current article (@code{gnus-summary-followup}).
5558
5559 @item S F
5560 @itemx F
5561 @kindex S F (Summary)
5562 @kindex F (Summary)
5563 @c @icon{gnus-summary-followup-with-original}
5564 @findex gnus-summary-followup-with-original
5565 Post a followup to the current article and include the original message
5566 (@code{gnus-summary-followup-with-original}).  This command uses the
5567 process/prefix convention.
5568
5569 @item S n
5570 @kindex S n (Summary)
5571 @findex gnus-summary-followup-to-mail
5572 Post a followup to the current article via news, even if you got the
5573 message through mail (@code{gnus-summary-followup-to-mail}).
5574
5575 @item S N
5576 @kindex S N (Summary)
5577 @findex gnus-summary-followup-to-mail-with-original
5578 Post a followup to the current article via news, even if you got the
5579 message through mail and include the original message
5580 (@code{gnus-summary-followup-to-mail-with-original}).  This command uses
5581 the process/prefix convention.
5582
5583 @item S o p
5584 @kindex S o p (Summary)
5585 @findex gnus-summary-post-forward
5586 Forward the current article to a newsgroup
5587 (@code{gnus-summary-post-forward}).
5588  If no prefix is given, the message is forwarded according to the value
5589 of (@code{message-forward-as-mime}) and
5590 (@code{message-forward-show-mml}); if the prefix is 1, decode the
5591 message and forward directly inline; if the prefix is 2, forward message
5592 as an rfc822 @acronym{MIME} section; if the prefix is 3, decode message and
5593 forward as an rfc822 @acronym{MIME} section; if the prefix is 4, forward message
5594 directly inline; otherwise, the message is forwarded as no prefix given
5595 but use the flipped value of (@code{message-forward-as-mime}).  By
5596 default, the message is decoded and forwarded as an rfc822 @acronym{MIME} section.
5597
5598 @item S O p
5599 @kindex S O p (Summary)
5600 @findex gnus-uu-digest-post-forward
5601 @cindex digests
5602 @cindex making digests
5603 Digest the current series and forward the result to a newsgroup
5604 (@code{gnus-uu-digest-post-forward}).  This command uses the
5605 process/prefix convention.
5606
5607 @item S u
5608 @kindex S u (Summary)
5609 @findex gnus-uu-post-news
5610 @c @icon{gnus-uu-post-news}
5611 Uuencode a file, split it into parts, and post it as a series
5612 (@code{gnus-uu-post-news}).  (@pxref{Uuencoding and Posting}).
5613 @end table
5614
5615 Also @xref{Header Commands, ,Header Commands, message, The Message
5616 Manual}, for more information.
5617
5618
5619 @node Summary Message Commands
5620 @subsection Summary Message Commands
5621
5622 @table @kbd
5623 @item S y
5624 @kindex S y (Summary)
5625 @findex gnus-summary-yank-message
5626 Yank the current article into an already existing Message composition
5627 buffer (@code{gnus-summary-yank-message}).  This command prompts for
5628 what message buffer you want to yank into, and understands the
5629 process/prefix convention (@pxref{Process/Prefix}).
5630
5631 @end table
5632
5633
5634 @node Canceling and Superseding
5635 @subsection Canceling Articles
5636 @cindex canceling articles
5637 @cindex superseding articles
5638
5639 Have you ever written something, and then decided that you really,
5640 really, really wish you hadn't posted that?
5641
5642 Well, you can't cancel mail, but you can cancel posts.
5643
5644 @findex gnus-summary-cancel-article
5645 @kindex C (Summary)
5646 @c @icon{gnus-summary-cancel-article}
5647 Find the article you wish to cancel (you can only cancel your own
5648 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
5649 c} (@code{gnus-summary-cancel-article}).  Your article will be
5650 canceled---machines all over the world will be deleting your article.
5651 This command uses the process/prefix convention (@pxref{Process/Prefix}).
5652
5653 Be aware, however, that not all sites honor cancels, so your article may
5654 live on here and there, while most sites will delete the article in
5655 question.
5656
5657 Gnus will use the ``current'' select method when canceling.  If you
5658 want to use the standard posting method, use the @samp{a} symbolic
5659 prefix (@pxref{Symbolic Prefixes}).
5660
5661 Gnus ensures that only you can cancel your own messages using a
5662 @code{Cancel-Lock} header (@pxref{Canceling News, Canceling News, ,
5663 message, Message Manual}).
5664
5665 If you discover that you have made some mistakes and want to do some
5666 corrections, you can post a @dfn{superseding} article that will replace
5667 your original article.
5668
5669 @findex gnus-summary-supersede-article
5670 @kindex S (Summary)
5671 Go to the original article and press @kbd{S s}
5672 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
5673 where you can edit the article all you want before sending it off the
5674 usual way.
5675
5676 The same goes for superseding as for canceling, only more so: Some
5677 sites do not honor superseding.  On those sites, it will appear that you
5678 have posted almost the same article twice.
5679
5680 If you have just posted the article, and change your mind right away,
5681 there is a trick you can use to cancel/supersede the article without
5682 waiting for the article to appear on your site first.  You simply return
5683 to the post buffer (which is called @code{*sent ...*}).  There you will
5684 find the article you just posted, with all the headers intact.  Change
5685 the @code{Message-ID} header to a @code{Cancel} or @code{Supersedes}
5686 header by substituting one of those words for the word
5687 @code{Message-ID}.  Then just press @kbd{C-c C-c} to send the article as
5688 you would do normally.  The previous article will be
5689 canceled/superseded.
5690
5691 Just remember, kids: There is no 'c' in 'supersede'.
5692
5693 @node Delayed Articles
5694 @section Delayed Articles
5695 @cindex delayed sending
5696 @cindex send delayed
5697
5698 Sometimes, you might wish to delay the sending of a message.  For
5699 example, you might wish to arrange for a message to turn up just in time
5700 to remind your about the birthday of your Significant Other.  For this,
5701 there is the @code{gnus-delay} package.  Setup is simple:
5702
5703 @lisp
5704 (gnus-delay-initialize)
5705 @end lisp
5706
5707 @findex gnus-delay-article
5708 Normally, to send a message you use the @kbd{C-c C-c} command from
5709 Message mode.  To delay a message, use @kbd{C-c C-j}
5710 (@code{gnus-delay-article}) instead.  This will ask you for how long the
5711 message should be delayed.  Possible answers are:
5712
5713 @itemize @bullet
5714 @item
5715 A time span.  Consists of an integer and a letter.  For example,
5716 @code{42d} means to delay for 42 days.  Available letters are @code{m}
5717 (minutes), @code{h} (hours), @code{d} (days), @code{w} (weeks), @code{M}
5718 (months) and @code{Y} (years).
5719
5720 @item
5721 A specific date.  Looks like @code{YYYY-MM-DD}.  The message will be
5722 delayed until that day, at a specific time (eight o'clock by default).
5723 See also @code{gnus-delay-default-hour}.
5724
5725 @item
5726 A specific time of day.  Given in @code{hh:mm} format, 24h, no am/pm
5727 stuff.  The deadline will be at that time today, except if that time has
5728 already passed, then it's at the given time tomorrow.  So if it's ten
5729 o'clock in the morning and you specify @code{11:15}, then the deadline
5730 is one hour and fifteen minutes hence.  But if you specify @code{9:20},
5731 that means a time tomorrow.
5732 @end itemize
5733
5734 The action of the @code{gnus-delay-article} command is influenced by a
5735 couple of variables:
5736
5737 @table @code
5738 @item gnus-delay-default-hour
5739 @vindex gnus-delay-default-hour
5740 When you specify a specific date, the message will be due on that hour
5741 on the given date.  Possible values are integers 0 through 23.
5742
5743 @item gnus-delay-default-delay
5744 @vindex gnus-delay-default-delay
5745 This is a string and gives the default delay.  It can be of any of the
5746 formats described above.
5747
5748 @item gnus-delay-group
5749 @vindex gnus-delay-group
5750 Delayed articles will be kept in this group on the drafts server until
5751 they are due.  You probably don't need to change this.  The default
5752 value is @code{"delayed"}.
5753
5754 @item gnus-delay-header
5755 @vindex gnus-delay-header
5756 The deadline for each article will be stored in a header.  This variable
5757 is a string and gives the header name.  You probably don't need to
5758 change this.  The default value is @code{"X-Gnus-Delayed"}.
5759 @end table
5760
5761 The way delaying works is like this: when you use the
5762 @code{gnus-delay-article} command, you give a certain delay.  Gnus
5763 calculates the deadline of the message and stores it in the
5764 @code{X-Gnus-Delayed} header and puts the message in the
5765 @code{nndraft:delayed} group.
5766
5767 @findex gnus-delay-send-queue
5768 And whenever you get new news, Gnus looks through the group for articles
5769 which are due and sends them.  It uses the @code{gnus-delay-send-queue}
5770 function for this.  By default, this function is added to the hook
5771 @code{gnus-get-new-news-hook}.  But of course, you can change this.
5772 Maybe you want to use the demon to send drafts?  Just tell the demon to
5773 execute the @code{gnus-delay-send-queue} function.
5774
5775 @table @code
5776 @item gnus-delay-initialize
5777 @findex gnus-delay-initialize
5778 By default, this function installs @code{gnus-delay-send-queue} in
5779 @code{gnus-get-new-news-hook}.  But it accepts the optional second
5780 argument @code{no-check}.  If it is non-@code{nil},
5781 @code{gnus-get-new-news-hook} is not changed.  The optional first
5782 argument is ignored.
5783
5784 For example, @code{(gnus-delay-initialize nil t)} means to do nothing.
5785 Presumably, you want to use the demon for sending due delayed articles.
5786 Just don't forget to set that up :-)
5787 @end table
5788
5789
5790 @node Marking Articles
5791 @section Marking Articles
5792 @cindex article marking
5793 @cindex article ticking
5794 @cindex marks
5795
5796 There are several marks you can set on an article.
5797
5798 You have marks that decide the @dfn{readedness} (whoo, neato-keano
5799 neologism ohoy!) of the article.  Alphabetic marks generally mean
5800 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
5801
5802 In addition, you also have marks that do not affect readedness.
5803
5804 @ifinfo
5805 There's a plethora of commands for manipulating these marks.
5806 @end ifinfo
5807
5808 @menu
5809 * Unread Articles::             Marks for unread articles.
5810 * Read Articles::               Marks for read articles.
5811 * Other Marks::                 Marks that do not affect readedness.
5812 * Setting Marks::               How to set and remove marks.
5813 * Generic Marking Commands::    How to customize the marking.
5814 * Setting Process Marks::       How to mark articles for later processing.
5815 @end menu
5816
5817
5818 @node Unread Articles
5819 @subsection Unread Articles
5820
5821 The following marks mark articles as (kinda) unread, in one form or
5822 other.
5823
5824 @table @samp
5825 @item !
5826 @vindex gnus-ticked-mark
5827 Marked as ticked (@code{gnus-ticked-mark}).
5828
5829 @dfn{Ticked articles} are articles that will remain visible always.  If
5830 you see an article that you find interesting, or you want to put off
5831 reading it, or replying to it, until sometime later, you'd typically
5832 tick it.  However, articles can be expired (from news servers by the
5833 news server software, Gnus itself never expires ticked messages), so if
5834 you want to keep an article forever, you'll have to make it persistent
5835 (@pxref{Persistent Articles}).
5836
5837 @item ?
5838 @vindex gnus-dormant-mark
5839 Marked as dormant (@code{gnus-dormant-mark}).
5840
5841 @dfn{Dormant articles} will only appear in the summary buffer if there
5842 are followups to it.  If you want to see them even if they don't have
5843 followups, you can use the @kbd{/ D} command (@pxref{Limiting}).
5844 Otherwise (except for the visibility issue), they are just like ticked
5845 messages.
5846
5847 @item SPACE
5848 @vindex gnus-unread-mark
5849 Marked as unread (@code{gnus-unread-mark}).
5850
5851 @dfn{Unread articles} are articles that haven't been read at all yet.
5852 @end table
5853
5854
5855 @node Read Articles
5856 @subsection Read Articles
5857 @cindex expirable mark
5858
5859 All the following marks mark articles as read.
5860
5861 @table @samp
5862
5863 @item r
5864 @vindex gnus-del-mark
5865 These are articles that the user has marked as read with the @kbd{d}
5866 command manually, more or less (@code{gnus-del-mark}).
5867
5868 @item R
5869 @vindex gnus-read-mark
5870 Articles that have actually been read (@code{gnus-read-mark}).
5871
5872 @item O
5873 @vindex gnus-ancient-mark
5874 Articles that were marked as read in previous sessions and are now
5875 @dfn{old} (@code{gnus-ancient-mark}).
5876
5877 @item K
5878 @vindex gnus-killed-mark
5879 Marked as killed (@code{gnus-killed-mark}).
5880
5881 @item X
5882 @vindex gnus-kill-file-mark
5883 Marked as killed by kill files (@code{gnus-kill-file-mark}).
5884
5885 @item Y
5886 @vindex gnus-low-score-mark
5887 Marked as read by having too low a score (@code{gnus-low-score-mark}).
5888
5889 @item C
5890 @vindex gnus-catchup-mark
5891 Marked as read by a catchup (@code{gnus-catchup-mark}).
5892
5893 @item G
5894 @vindex gnus-canceled-mark
5895 Canceled article (@code{gnus-canceled-mark})
5896
5897 @item F
5898 @vindex gnus-souped-mark
5899 @sc{soup}ed article (@code{gnus-souped-mark}).  @xref{SOUP}.
5900
5901 @item Q
5902 @vindex gnus-sparse-mark
5903 Sparsely reffed article (@code{gnus-sparse-mark}).  @xref{Customizing
5904 Threading}.
5905
5906 @item M
5907 @vindex gnus-duplicate-mark
5908 Article marked as read by duplicate suppression
5909 (@code{gnus-duplicate-mark}).  @xref{Duplicate Suppression}.
5910
5911 @end table
5912
5913 All these marks just mean that the article is marked as read, really.
5914 They are interpreted differently when doing adaptive scoring, though.
5915
5916 One more special mark, though:
5917
5918 @table @samp
5919 @item E
5920 @vindex gnus-expirable-mark
5921 Marked as expirable (@code{gnus-expirable-mark}).
5922
5923 Marking articles as @dfn{expirable} (or have them marked as such
5924 automatically) doesn't make much sense in normal groups---a user doesn't
5925 control expiring of news articles, but in mail groups, for instance,
5926 articles marked as @dfn{expirable} can be deleted by Gnus at
5927 any time.
5928 @end table
5929
5930
5931 @node Other Marks
5932 @subsection Other Marks
5933 @cindex process mark
5934 @cindex bookmarks
5935
5936 There are some marks that have nothing to do with whether the article is
5937 read or not.
5938
5939 @itemize @bullet
5940
5941 @item
5942 You can set a bookmark in the current article.  Say you are reading a
5943 long thesis on cats' urinary tracts, and have to go home for dinner
5944 before you've finished reading the thesis.  You can then set a bookmark
5945 in the article, and Gnus will jump to this bookmark the next time it
5946 encounters the article.  @xref{Setting Marks}.
5947
5948 @item
5949 @vindex gnus-replied-mark
5950 All articles that you have replied to or made a followup to (i.e., have
5951 answered) will be marked with an @samp{A} in the second column
5952 (@code{gnus-replied-mark}).
5953
5954 @item
5955 @vindex gnus-forwarded-mark
5956 All articles that you have forwarded will be marked with an @samp{F} in
5957 the second column (@code{gnus-forwarded-mark}).
5958
5959 @item
5960 @vindex gnus-cached-mark
5961 Articles stored in the article cache will be marked with an @samp{*} in
5962 the second column (@code{gnus-cached-mark}).  @xref{Article Caching}.
5963
5964 @item
5965 @vindex gnus-saved-mark
5966 Articles ``saved'' (in some manner or other; not necessarily
5967 religiously) are marked with an @samp{S} in the second column
5968 (@code{gnus-saved-mark}).
5969
5970 @item
5971 @vindex gnus-recent-mark
5972 Articles that according to the server haven't been shown to the user
5973 before are marked with a @samp{N} in the second column
5974 (@code{gnus-recent-mark}).  Note that not all servers support this
5975 mark, in which case it simply never appears.  Compare with
5976 @code{gnus-unseen-mark}.
5977
5978 @item
5979 @vindex gnus-unseen-mark
5980 Articles that haven't been seen before in Gnus by the user are marked
5981 with a @samp{.} in the second column (@code{gnus-unseen-mark}).
5982 Compare with @code{gnus-recent-mark}.
5983
5984 @item
5985 @vindex gnus-downloaded-mark
5986 When using the Gnus agent (@pxref{Agent Basics}), articles may be
5987 downloaded for unplugged (offline) viewing.  If you are using the
5988 @samp{%O} spec, these articles get the @samp{+} mark in that spec.
5989 (The variable @code{gnus-downloaded-mark} controls which character to
5990 use.)
5991
5992 @item
5993 @vindex gnus-undownloaded-mark
5994 When using the Gnus agent (@pxref{Agent Basics}), some articles might
5995 not have been downloaded.  Such articles cannot be viewed while you
5996 are unplugged (offline).  If you are using the @samp{%O} spec, these
5997 articles get the @samp{-} mark in that spec.  (The variable
5998 @code{gnus-undownloaded-mark} controls which character to use.)
5999
6000 @item
6001 @vindex gnus-downloadable-mark
6002 The Gnus agent (@pxref{Agent Basics}) downloads some articles
6003 automatically, but it is also possible to explicitly mark articles for
6004 download, even if they would not be downloaded automatically.  Such
6005 explicitly-marked articles get the @samp{%} mark in the first column.
6006 (The variable @code{gnus-downloadable-mark} controls which character to
6007 use.)
6008
6009 @item
6010 @vindex gnus-not-empty-thread-mark
6011 @vindex gnus-empty-thread-mark
6012 If the @samp{%e} spec is used, the presence of threads or not will be
6013 marked with @code{gnus-not-empty-thread-mark} and
6014 @code{gnus-empty-thread-mark} in the third column, respectively.
6015
6016 @item
6017 @vindex gnus-process-mark
6018 Finally we have the @dfn{process mark} (@code{gnus-process-mark}).  A
6019 variety of commands react to the presence of the process mark.  For
6020 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
6021 all articles that have been marked with the process mark.  Articles
6022 marked with the process mark have a @samp{#} in the second column.
6023
6024 @end itemize
6025
6026 You might have noticed that most of these ``non-readedness'' marks
6027 appear in the second column by default.  So if you have a cached, saved,
6028 replied article that you have process-marked, what will that look like?
6029
6030 Nothing much.  The precedence rules go as follows: process -> cache ->
6031 replied -> saved.  So if the article is in the cache and is replied,
6032 you'll only see the cache mark and not the replied mark.
6033
6034
6035 @node Setting Marks
6036 @subsection Setting Marks
6037 @cindex setting marks
6038
6039 All the marking commands understand the numeric prefix.
6040
6041 @table @kbd
6042 @item M c
6043 @itemx M-u
6044 @kindex M c (Summary)
6045 @kindex M-u (Summary)
6046 @findex gnus-summary-clear-mark-forward
6047 @cindex mark as unread
6048 Clear all readedness-marks from the current article
6049 (@code{gnus-summary-clear-mark-forward}).  In other words, mark the
6050 article as unread.
6051
6052 @item M t
6053 @itemx !
6054 @kindex ! (Summary)
6055 @kindex M t (Summary)
6056 @findex gnus-summary-tick-article-forward
6057 Tick the current article (@code{gnus-summary-tick-article-forward}).
6058 @xref{Article Caching}.
6059
6060 @item M ?
6061 @itemx ?
6062 @kindex ? (Summary)
6063 @kindex M ? (Summary)
6064 @findex gnus-summary-mark-as-dormant
6065 Mark the current article as dormant
6066 (@code{gnus-summary-mark-as-dormant}).  @xref{Article Caching}.
6067
6068 @item M d
6069 @itemx d
6070 @kindex M d (Summary)
6071 @kindex d (Summary)
6072 @findex gnus-summary-mark-as-read-forward
6073 Mark the current article as read
6074 (@code{gnus-summary-mark-as-read-forward}).
6075
6076 @item D
6077 @kindex D (Summary)
6078 @findex gnus-summary-mark-as-read-backward
6079 Mark the current article as read and move point to the previous line
6080 (@code{gnus-summary-mark-as-read-backward}).
6081
6082 @item M k
6083 @itemx k
6084 @kindex k (Summary)
6085 @kindex M k (Summary)
6086 @findex gnus-summary-kill-same-subject-and-select
6087 Mark all articles that have the same subject as the current one as read,
6088 and then select the next unread article
6089 (@code{gnus-summary-kill-same-subject-and-select}).
6090
6091 @item M K
6092 @itemx C-k
6093 @kindex M K (Summary)
6094 @kindex C-k (Summary)
6095 @findex gnus-summary-kill-same-subject
6096 Mark all articles that have the same subject as the current one as read
6097 (@code{gnus-summary-kill-same-subject}).
6098
6099 @item M C
6100 @kindex M C (Summary)
6101 @findex gnus-summary-catchup
6102 @c @icon{gnus-summary-catchup}
6103 Mark all unread articles as read (@code{gnus-summary-catchup}).
6104
6105 @item M C-c
6106 @kindex M C-c (Summary)
6107 @findex gnus-summary-catchup-all
6108 Mark all articles in the group as read---even the ticked and dormant
6109 articles (@code{gnus-summary-catchup-all}).
6110
6111 @item M H
6112 @kindex M H (Summary)
6113 @findex gnus-summary-catchup-to-here
6114 Catchup the current group to point (before the point)
6115 (@code{gnus-summary-catchup-to-here}).
6116
6117 @item M h
6118 @kindex M h (Summary)
6119 @findex gnus-summary-catchup-from-here
6120 Catchup the current group from point (after the point)
6121 (@code{gnus-summary-catchup-from-here}).
6122
6123 @item C-w
6124 @kindex C-w (Summary)
6125 @findex gnus-summary-mark-region-as-read
6126 Mark all articles between point and mark as read
6127 (@code{gnus-summary-mark-region-as-read}).
6128
6129 @item M V k
6130 @kindex M V k (Summary)
6131 @findex gnus-summary-kill-below
6132 Kill all articles with scores below the default score (or below the
6133 numeric prefix) (@code{gnus-summary-kill-below}).
6134
6135 @item M e
6136 @itemx E
6137 @kindex M e (Summary)
6138 @kindex E (Summary)
6139 @findex gnus-summary-mark-as-expirable
6140 Mark the current article as expirable
6141 (@code{gnus-summary-mark-as-expirable}).
6142
6143 @item M b
6144 @kindex M b (Summary)
6145 @findex gnus-summary-set-bookmark
6146 Set a bookmark in the current article
6147 (@code{gnus-summary-set-bookmark}).
6148
6149 @item M B
6150 @kindex M B (Summary)
6151 @findex gnus-summary-remove-bookmark
6152 Remove the bookmark from the current article
6153 (@code{gnus-summary-remove-bookmark}).
6154
6155 @item M V c
6156 @kindex M V c (Summary)
6157 @findex gnus-summary-clear-above
6158 Clear all marks from articles with scores over the default score (or
6159 over the numeric prefix) (@code{gnus-summary-clear-above}).
6160
6161 @item M V u
6162 @kindex M V u (Summary)
6163 @findex gnus-summary-tick-above
6164 Tick all articles with scores over the default score (or over the
6165 numeric prefix) (@code{gnus-summary-tick-above}).
6166
6167 @item M V m
6168 @kindex M V m (Summary)
6169 @findex gnus-summary-mark-above
6170 Prompt for a mark, and mark all articles with scores over the default
6171 score (or over the numeric prefix) with this mark
6172 (@code{gnus-summary-clear-above}).
6173 @end table
6174
6175 @vindex gnus-summary-goto-unread
6176 The @code{gnus-summary-goto-unread} variable controls what action should
6177 be taken after setting a mark.  If non-@code{nil}, point will move to
6178 the next/previous unread article.  If @code{nil}, point will just move
6179 one line up or down.  As a special case, if this variable is
6180 @code{never}, all the marking commands as well as other commands (like
6181 @kbd{SPACE}) will move to the next article, whether it is unread or not.
6182 The default is @code{t}.
6183
6184
6185 @node Generic Marking Commands
6186 @subsection Generic Marking Commands
6187
6188 Some people would like the command that ticks an article (@kbd{!}) go to
6189 the next article.  Others would like it to go to the next unread
6190 article.  Yet others would like it to stay on the current article.  And
6191 even though I haven't heard of anybody wanting it to go to the
6192 previous (unread) article, I'm sure there are people that want that as
6193 well.
6194
6195 Multiply these five behaviors with five different marking commands, and
6196 you get a potentially complex set of variable to control what each
6197 command should do.
6198
6199 To sidestep that mess, Gnus provides commands that do all these
6200 different things.  They can be found on the @kbd{M M} map in the summary
6201 buffer.  Type @kbd{M M C-h} to see them all---there are too many of them
6202 to list in this manual.
6203
6204 While you can use these commands directly, most users would prefer
6205 altering the summary mode keymap.  For instance, if you would like the
6206 @kbd{!} command to go to the next article instead of the next unread
6207 article, you could say something like:
6208
6209 @lisp
6210 @group
6211 (add-hook 'gnus-summary-mode-hook 'my-alter-summary-map)
6212 (defun my-alter-summary-map ()
6213   (local-set-key "!" 'gnus-summary-put-mark-as-ticked-next))
6214 @end group
6215 @end lisp
6216
6217 @noindent
6218 or
6219
6220 @lisp
6221 (defun my-alter-summary-map ()
6222   (local-set-key "!" "MM!n"))
6223 @end lisp
6224
6225
6226 @node Setting Process Marks
6227 @subsection Setting Process Marks
6228 @cindex setting process marks
6229
6230 Process marks are displayed as @code{#} in the summary buffer, and are
6231 used for marking articles in such a way that other commands will
6232 process these articles.  For instance, if you process mark four
6233 articles and then use the @kbd{*} command, Gnus will enter these four
6234 commands into the cache.  For more information,
6235 @pxref{Process/Prefix}.
6236
6237 @table @kbd
6238
6239 @item M P p
6240 @itemx #
6241 @kindex # (Summary)
6242 @kindex M P p (Summary)
6243 @findex gnus-summary-mark-as-processable
6244 Mark the current article with the process mark
6245 (@code{gnus-summary-mark-as-processable}).
6246 @findex gnus-summary-unmark-as-processable
6247
6248 @item M P u
6249 @itemx M-#
6250 @kindex M P u (Summary)
6251 @kindex M-# (Summary)
6252 Remove the process mark, if any, from the current article
6253 (@code{gnus-summary-unmark-as-processable}).
6254
6255 @item M P U
6256 @kindex M P U (Summary)
6257 @findex gnus-summary-unmark-all-processable
6258 Remove the process mark from all articles
6259 (@code{gnus-summary-unmark-all-processable}).
6260
6261 @item M P i
6262 @kindex M P i (Summary)
6263 @findex gnus-uu-invert-processable
6264 Invert the list of process marked articles
6265 (@code{gnus-uu-invert-processable}).
6266
6267 @item M P R
6268 @kindex M P R (Summary)
6269 @findex gnus-uu-mark-by-regexp
6270 Mark articles that have a @code{Subject} header that matches a regular
6271 expression (@code{gnus-uu-mark-by-regexp}).
6272
6273 @item M P G
6274 @kindex M P G (Summary)
6275 @findex gnus-uu-unmark-by-regexp
6276 Unmark articles that have a @code{Subject} header that matches a regular
6277 expression (@code{gnus-uu-unmark-by-regexp}).
6278
6279 @item M P r
6280 @kindex M P r (Summary)
6281 @findex gnus-uu-mark-region
6282 Mark articles in region (@code{gnus-uu-mark-region}).
6283
6284 @item M P g
6285 @kindex M P g (Summary)
6286 @findex gnus-uu-unmark-region
6287 Unmark articles in region (@code{gnus-uu-unmark-region}).
6288
6289 @item M P t
6290 @kindex M P t (Summary)
6291 @findex gnus-uu-mark-thread
6292 Mark all articles in the current (sub)thread
6293 (@code{gnus-uu-mark-thread}).
6294
6295 @item M P T
6296 @kindex M P T (Summary)
6297 @findex gnus-uu-unmark-thread
6298 Unmark all articles in the current (sub)thread
6299 (@code{gnus-uu-unmark-thread}).
6300
6301 @item M P v
6302 @kindex M P v (Summary)
6303 @findex gnus-uu-mark-over
6304 Mark all articles that have a score above the prefix argument
6305 (@code{gnus-uu-mark-over}).
6306
6307 @item M P s
6308 @kindex M P s (Summary)
6309 @findex gnus-uu-mark-series
6310 Mark all articles in the current series (@code{gnus-uu-mark-series}).
6311
6312 @item M P S
6313 @kindex M P S (Summary)
6314 @findex gnus-uu-mark-sparse
6315 Mark all series that have already had some articles marked
6316 (@code{gnus-uu-mark-sparse}).
6317
6318 @item M P a
6319 @kindex M P a (Summary)
6320 @findex gnus-uu-mark-all
6321 Mark all articles in series order (@code{gnus-uu-mark-all}).
6322
6323 @item M P b
6324 @kindex M P b (Summary)
6325 @findex gnus-uu-mark-buffer
6326 Mark all articles in the buffer in the order they appear
6327 (@code{gnus-uu-mark-buffer}).
6328
6329 @item M P k
6330 @kindex M P k (Summary)
6331 @findex gnus-summary-kill-process-mark
6332 Push the current process mark set onto the stack and unmark all articles
6333 (@code{gnus-summary-kill-process-mark}).
6334
6335 @item M P y
6336 @kindex M P y (Summary)
6337 @findex gnus-summary-yank-process-mark
6338 Pop the previous process mark set from the stack and restore it
6339 (@code{gnus-summary-yank-process-mark}).
6340
6341 @item M P w
6342 @kindex M P w (Summary)
6343 @findex gnus-summary-save-process-mark
6344 Push the current process mark set onto the stack
6345 (@code{gnus-summary-save-process-mark}).
6346
6347 @end table
6348
6349 Also see the @kbd{&} command in @ref{Searching for Articles}, for how to
6350 set process marks based on article body contents.
6351
6352
6353 @node Limiting
6354 @section Limiting
6355 @cindex limiting
6356
6357 It can be convenient to limit the summary buffer to just show some
6358 subset of the articles currently in the group.  The effect most limit
6359 commands have is to remove a few (or many) articles from the summary
6360 buffer.
6361
6362 All limiting commands work on subsets of the articles already fetched
6363 from the servers.  None of these commands query the server for
6364 additional articles.
6365
6366 @table @kbd
6367
6368 @item / /
6369 @itemx / s
6370 @kindex / / (Summary)
6371 @findex gnus-summary-limit-to-subject
6372 Limit the summary buffer to articles that match some subject
6373 (@code{gnus-summary-limit-to-subject}).  If given a prefix, exclude
6374 matching articles.
6375
6376 @item / a
6377 @kindex / a (Summary)
6378 @findex gnus-summary-limit-to-author
6379 Limit the summary buffer to articles that match some author
6380 (@code{gnus-summary-limit-to-author}).  If given a prefix, exclude
6381 matching articles.
6382
6383 @item / R
6384 @kindex / R (Summary)
6385 @findex gnus-summary-limit-to-recipient
6386 Limit the summary buffer to articles that match some recipient
6387 (@code{gnus-summary-limit-to-recipient}).  If given a prefix, exclude
6388 matching articles.
6389
6390 @item / x
6391 @kindex / x (Summary)
6392 @findex gnus-summary-limit-to-extra
6393 Limit the summary buffer to articles that match one of the ``extra''
6394 headers (@pxref{To From Newsgroups})
6395 (@code{gnus-summary-limit-to-extra}).  If given a prefix, exclude
6396 matching articles.
6397
6398 @item / u
6399 @itemx x
6400 @kindex / u (Summary)
6401 @kindex x (Summary)
6402 @findex gnus-summary-limit-to-unread
6403 Limit the summary buffer to articles not marked as read
6404 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
6405 buffer to articles strictly unread.  This means that ticked and
6406 dormant articles will also be excluded.
6407
6408 @item / m
6409 @kindex / m (Summary)
6410 @findex gnus-summary-limit-to-marks
6411 Ask for a mark and then limit to all articles that have been marked
6412 with that mark (@code{gnus-summary-limit-to-marks}).
6413
6414 @item / t
6415 @kindex / t (Summary)
6416 @findex gnus-summary-limit-to-age
6417 Ask for a number and then limit the summary buffer to articles older than (or equal to) that number of days
6418 (@code{gnus-summary-limit-to-age}).  If given a prefix, limit to
6419 articles younger than that number of days.
6420
6421 @item / n
6422 @kindex / n (Summary)
6423 @findex gnus-summary-limit-to-articles
6424 Limit the summary buffer to the current article
6425 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
6426 convention (@pxref{Process/Prefix}).
6427
6428 @item / w
6429 @kindex / w (Summary)
6430 @findex gnus-summary-pop-limit
6431 Pop the previous limit off the stack and restore it
6432 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
6433 the stack.
6434
6435 @item / .
6436 @kindex / . (Summary)
6437 @findex gnus-summary-limit-to-unseen
6438 Limit the summary buffer to the unseen articles
6439 (@code{gnus-summary-limit-to-unseen}).
6440
6441 @item / v
6442 @kindex / v (Summary)
6443 @findex gnus-summary-limit-to-score
6444 Limit the summary buffer to articles that have a score at or above some
6445 score (@code{gnus-summary-limit-to-score}).
6446
6447 @item / p
6448 @kindex / p (Summary)
6449 @findex gnus-summary-limit-to-display-predicate
6450 Limit the summary buffer to articles that satisfy the @code{display}
6451 group parameter predicate
6452 (@code{gnus-summary-limit-to-display-predicate}).  @xref{Group
6453 Parameters}, for more on this predicate.
6454
6455 @item / r
6456 @kindex / r (Summary)
6457 @findex gnus-summary-limit-to-replied
6458 Limit the summary buffer to replied articles
6459 (@code{gnus-summary-limit-to-replied}).  If given a prefix, exclude
6460 replied articles.
6461
6462 @item / E
6463 @itemx M S
6464 @kindex M S (Summary)
6465 @kindex / E (Summary)
6466 @findex gnus-summary-limit-include-expunged
6467 Include all expunged articles in the limit
6468 (@code{gnus-summary-limit-include-expunged}).
6469
6470 @item / D
6471 @kindex / D (Summary)
6472 @findex gnus-summary-limit-include-dormant
6473 Include all dormant articles in the limit
6474 (@code{gnus-summary-limit-include-dormant}).
6475
6476 @item / *
6477 @kindex / * (Summary)
6478 @findex gnus-summary-limit-include-cached
6479 Include all cached articles in the limit
6480 (@code{gnus-summary-limit-include-cached}).
6481
6482 @item / d
6483 @kindex / d (Summary)
6484 @findex gnus-summary-limit-exclude-dormant
6485 Exclude all dormant articles from the limit
6486 (@code{gnus-summary-limit-exclude-dormant}).
6487
6488 @item / M
6489 @kindex / M (Summary)
6490 @findex gnus-summary-limit-exclude-marks
6491 Exclude all marked articles (@code{gnus-summary-limit-exclude-marks}).
6492
6493 @item / T
6494 @kindex / T (Summary)
6495 @findex gnus-summary-limit-include-thread
6496 Include all the articles in the current thread in the limit.
6497
6498 @item / c
6499 @kindex / c (Summary)
6500 @findex gnus-summary-limit-exclude-childless-dormant
6501 Exclude all dormant articles that have no children from the limit@*
6502 (@code{gnus-summary-limit-exclude-childless-dormant}).
6503
6504 @item / C
6505 @kindex / C (Summary)
6506 @findex gnus-summary-limit-mark-excluded-as-read
6507 Mark all excluded unread articles as read
6508 (@code{gnus-summary-limit-mark-excluded-as-read}).  If given a prefix,
6509 also mark excluded ticked and dormant articles as read.
6510
6511 @item / N
6512 @kindex / N (Summary)
6513 @findex gnus-summary-insert-new-articles
6514 Insert all new articles in the summary buffer.  It scans for new emails
6515 if @var{back-end}@code{-get-new-mail} is non-@code{nil}.
6516
6517 @item / o
6518 @kindex / o (Summary)
6519 @findex gnus-summary-insert-old-articles
6520 Insert all old articles in the summary buffer.  If given a numbered
6521 prefix, fetch this number of articles.
6522
6523 @item / b
6524 @kindex / b (Summary)
6525 @findex gnus-summary-limit-to-bodies
6526 Limit the summary buffer to articles that have bodies that match a
6527 certain regexp (@code{gnus-summary-limit-to-bodies}).  If given a
6528 prefix, reverse the limit.  This command is quite slow since it
6529 requires selecting each article to find the matches.
6530
6531 @end table
6532
6533
6534 @node Threading
6535 @section Threading
6536 @cindex threading
6537 @cindex article threading
6538
6539 Gnus threads articles by default.  @dfn{To thread} is to put responses
6540 to articles directly after the articles they respond to---in a
6541 hierarchical fashion.
6542
6543 Threading is done by looking at the @code{References} headers of the
6544 articles.  In a perfect world, this would be enough to build pretty
6545 trees, but unfortunately, the @code{References} header is often broken
6546 or simply missing.  Weird news propagation exacerbates the problem,
6547 so one has to employ other heuristics to get pleasing results.  A
6548 plethora of approaches exists, as detailed in horrible detail in
6549 @ref{Customizing Threading}.
6550
6551 First, a quick overview of the concepts:
6552
6553 @table @dfn
6554 @item root
6555 The top-most article in a thread; the first article in the thread.
6556
6557 @item thread
6558 A tree-like article structure.
6559
6560 @item sub-thread
6561 A small(er) section of this tree-like structure.
6562
6563 @item loose threads
6564 Threads often lose their roots due to article expiry, or due to the root
6565 already having been read in a previous session, and not displayed in the
6566 summary buffer.  We then typically have many sub-threads that really
6567 belong to one thread, but are without connecting roots.  These are
6568 called loose threads.
6569
6570 @item thread gathering
6571 An attempt to gather loose threads into bigger threads.
6572
6573 @item sparse threads
6574 A thread where the missing articles have been ``guessed'' at, and are
6575 displayed as empty lines in the summary buffer.
6576
6577 @end table
6578
6579
6580 @menu
6581 * Customizing Threading::       Variables you can change to affect the threading.
6582 * Thread Commands::             Thread based commands in the summary buffer.
6583 @end menu
6584
6585
6586 @node Customizing Threading
6587 @subsection Customizing Threading
6588 @cindex customizing threading
6589
6590 @menu
6591 * Loose Threads::               How Gnus gathers loose threads into bigger threads.
6592 * Filling In Threads::          Making the threads displayed look fuller.
6593 * More Threading::              Even more variables for fiddling with threads.
6594 * Low-Level Threading::         You thought it was over@dots{} but you were wrong!
6595 @end menu
6596
6597
6598 @node Loose Threads
6599 @subsubsection Loose Threads
6600 @cindex <
6601 @cindex >
6602 @cindex loose threads
6603
6604 @table @code
6605 @item gnus-summary-make-false-root
6606 @vindex gnus-summary-make-false-root
6607 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
6608 and create a dummy root at the top.  (Wait a minute.  Root at the top?
6609 Yup.)  Loose subtrees occur when the real root has expired, or you've
6610 read or killed the root in a previous session.
6611
6612 When there is no real root of a thread, Gnus will have to fudge
6613 something.  This variable says what fudging method Gnus should use.
6614 There are four possible values:
6615
6616 @iftex
6617 @iflatex
6618 \gnusfigure{The Summary Buffer}{390}{
6619 \put(0,0){\epsfig{figure=ps/summary-adopt,width=7.5cm}}
6620 \put(445,0){\makebox(0,0)[br]{\epsfig{figure=ps/summary-empty,width=7.5cm}}}
6621 \put(0,400){\makebox(0,0)[tl]{\epsfig{figure=ps/summary-none,width=7.5cm}}}
6622 \put(445,400){\makebox(0,0)[tr]{\epsfig{figure=ps/summary-dummy,width=7.5cm}}}
6623 }
6624 @end iflatex
6625 @end iftex
6626
6627 @cindex adopting articles
6628
6629 @table @code
6630
6631 @item adopt
6632 Gnus will make the first of the orphaned articles the parent.  This
6633 parent will adopt all the other articles.  The adopted articles will be
6634 marked as such by pointy brackets (@samp{<>}) instead of the standard
6635 square brackets (@samp{[]}).  This is the default method.
6636
6637 @item dummy
6638 @vindex gnus-summary-dummy-line-format
6639 @vindex gnus-summary-make-false-root-always
6640 Gnus will create a dummy summary line that will pretend to be the
6641 parent.  This dummy line does not correspond to any real article, so
6642 selecting it will just select the first real article after the dummy
6643 article.  @code{gnus-summary-dummy-line-format} is used to specify the
6644 format of the dummy roots.  It accepts only one format spec:  @samp{S},
6645 which is the subject of the article.  @xref{Formatting Variables}.
6646 If you want all threads to have a dummy root, even the non-gathered
6647 ones, set @code{gnus-summary-make-false-root-always} to @code{t}.
6648
6649 @item empty
6650 Gnus won't actually make any article the parent, but simply leave the
6651 subject field of all orphans except the first empty.  (Actually, it will
6652 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
6653 Buffer Format}).)
6654
6655 @item none
6656 Don't make any article parent at all.  Just gather the threads and
6657 display them after one another.
6658
6659 @item nil
6660 Don't gather loose threads.
6661 @end table
6662
6663 @item gnus-summary-gather-subject-limit
6664 @vindex gnus-summary-gather-subject-limit
6665 Loose threads are gathered by comparing subjects of articles.  If this
6666 variable is @code{nil}, Gnus requires an exact match between the
6667 subjects of the loose threads before gathering them into one big
6668 super-thread.  This might be too strict a requirement, what with the
6669 presence of stupid newsreaders that chop off long subject lines.  If
6670 you think so, set this variable to, say, 20 to require that only the
6671 first 20 characters of the subjects have to match.  If you set this
6672 variable to a really low number, you'll find that Gnus will gather
6673 everything in sight into one thread, which isn't very helpful.
6674
6675 @cindex fuzzy article gathering
6676 If you set this variable to the special value @code{fuzzy}, Gnus will
6677 use a fuzzy string comparison algorithm on the subjects (@pxref{Fuzzy
6678 Matching}).
6679
6680 @item gnus-simplify-subject-fuzzy-regexp
6681 @vindex gnus-simplify-subject-fuzzy-regexp
6682 This can either be a regular expression or list of regular expressions
6683 that match strings that will be removed from subjects if fuzzy subject
6684 simplification is used.
6685
6686 @item gnus-simplify-ignored-prefixes
6687 @vindex gnus-simplify-ignored-prefixes
6688 If you set @code{gnus-summary-gather-subject-limit} to something as low
6689 as 10, you might consider setting this variable to something sensible:
6690
6691 @c Written by Michael Ernst <mernst@cs.rice.edu>
6692 @lisp
6693 (setq gnus-simplify-ignored-prefixes
6694       (concat
6695        "\\`\\[?\\("
6696        (mapconcat
6697         'identity
6698         '("looking"
6699           "wanted" "followup" "summary\\( of\\)?"
6700           "help" "query" "problem" "question"
6701           "answer" "reference" "announce"
6702           "How can I" "How to" "Comparison of"
6703           ;; ...
6704           )
6705         "\\|")
6706        "\\)\\s *\\("
6707        (mapconcat 'identity
6708                   '("for" "for reference" "with" "about")
6709                   "\\|")
6710        "\\)?\\]?:?[ \t]*"))
6711 @end lisp
6712
6713 All words that match this regexp will be removed before comparing two
6714 subjects.
6715
6716 @item gnus-simplify-subject-functions
6717 @vindex gnus-simplify-subject-functions
6718 If non-@code{nil}, this variable overrides
6719 @code{gnus-summary-gather-subject-limit}.  This variable should be a
6720 list of functions to apply to the @code{Subject} string iteratively to
6721 arrive at the simplified version of the string.
6722
6723 Useful functions to put in this list include:
6724
6725 @table @code
6726 @item gnus-simplify-subject-re
6727 @findex gnus-simplify-subject-re
6728 Strip the leading @samp{Re:}.
6729
6730 @item gnus-simplify-subject-fuzzy
6731 @findex gnus-simplify-subject-fuzzy
6732 Simplify fuzzily.
6733
6734 @item gnus-simplify-whitespace
6735 @findex gnus-simplify-whitespace
6736 Remove excessive whitespace.
6737
6738 @item gnus-simplify-all-whitespace
6739 @findex gnus-simplify-all-whitespace
6740 Remove all whitespace.
6741 @end table
6742
6743 You may also write your own functions, of course.
6744
6745
6746 @item gnus-summary-gather-exclude-subject
6747 @vindex gnus-summary-gather-exclude-subject
6748 Since loose thread gathering is done on subjects only, that might lead
6749 to many false hits, especially with certain common subjects like
6750 @samp{} and @samp{(none)}.  To make the situation slightly better,
6751 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
6752 what subjects should be excluded from the gathering process.@*
6753 The default is @samp{^ *$\\|^(none)$}.
6754
6755 @item gnus-summary-thread-gathering-function
6756 @vindex gnus-summary-thread-gathering-function
6757 Gnus gathers threads by looking at @code{Subject} headers.  This means
6758 that totally unrelated articles may end up in the same ``thread'', which
6759 is confusing.  An alternate approach is to look at all the
6760 @code{Message-ID}s in all the @code{References} headers to find matches.
6761 This will ensure that no gathered threads ever include unrelated
6762 articles, but it also means that people who have posted with broken
6763 newsreaders won't be gathered properly.  The choice is yours---plague or
6764 cholera:
6765
6766 @table @code
6767 @item gnus-gather-threads-by-subject
6768 @findex gnus-gather-threads-by-subject
6769 This function is the default gathering function and looks at
6770 @code{Subject}s exclusively.
6771
6772 @item gnus-gather-threads-by-references
6773 @findex gnus-gather-threads-by-references
6774 This function looks at @code{References} headers exclusively.
6775 @end table
6776
6777 If you want to test gathering by @code{References}, you could say
6778 something like:
6779
6780 @lisp
6781 (setq gnus-summary-thread-gathering-function
6782       'gnus-gather-threads-by-references)
6783 @end lisp
6784
6785 @end table
6786
6787
6788 @node Filling In Threads
6789 @subsubsection Filling In Threads
6790
6791 @table @code
6792 @item gnus-fetch-old-headers
6793 @vindex gnus-fetch-old-headers
6794 If non-@code{nil}, Gnus will attempt to build old threads by fetching
6795 more old headers---headers to articles marked as read.  If you would
6796 like to display as few summary lines as possible, but still connect as
6797 many loose threads as possible, you should set this variable to
6798 @code{some} or a number.  If you set it to a number, no more than that
6799 number of extra old headers will be fetched.  In either case, fetching
6800 old headers only works if the back end you are using carries overview
6801 files---this would normally be @code{nntp}, @code{nnspool},
6802 @code{nnml}, and @code{nnmaildir}.  Also remember that if the root of
6803 the thread has been expired by the server, there's not much Gnus can
6804 do about that.
6805
6806 This variable can also be set to @code{invisible}.  This won't have any
6807 visible effects, but is useful if you use the @kbd{A T} command a lot
6808 (@pxref{Finding the Parent}).
6809
6810 @item gnus-fetch-old-ephemeral-headers
6811 @vindex gnus-fetch-old-ephemeral-headers
6812 Same as @code{gnus-fetch-old-headers}, but only used for ephemeral
6813 newsgroups.
6814
6815 @item gnus-build-sparse-threads
6816 @vindex gnus-build-sparse-threads
6817 Fetching old headers can be slow.  A low-rent similar effect can be
6818 gotten by setting this variable to @code{some}.  Gnus will then look at
6819 the complete @code{References} headers of all articles and try to string
6820 together articles that belong in the same thread.  This will leave
6821 @dfn{gaps} in the threading display where Gnus guesses that an article
6822 is missing from the thread.  (These gaps appear like normal summary
6823 lines.  If you select a gap, Gnus will try to fetch the article in
6824 question.)  If this variable is @code{t}, Gnus will display all these
6825 ``gaps'' without regard for whether they are useful for completing the
6826 thread or not.  Finally, if this variable is @code{more}, Gnus won't cut
6827 off sparse leaf nodes that don't lead anywhere.  This variable is
6828 @code{nil} by default.
6829
6830 @item gnus-read-all-available-headers
6831 @vindex gnus-read-all-available-headers
6832 This is a rather obscure variable that few will find useful.  It's
6833 intended for those non-news newsgroups where the back end has to fetch
6834 quite a lot to present the summary buffer, and where it's impossible to
6835 go back to parents of articles.  This is mostly the case in the
6836 web-based groups, like the @code{nnultimate} groups.
6837
6838 If you don't use those, then it's safe to leave this as the default
6839 @code{nil}.  If you want to use this variable, it should be a regexp
6840 that matches the group name, or @code{t} for all groups.
6841
6842 @end table
6843
6844
6845 @node More Threading
6846 @subsubsection More Threading
6847
6848 @table @code
6849 @item gnus-show-threads
6850 @vindex gnus-show-threads
6851 If this variable is @code{nil}, no threading will be done, and all of
6852 the rest of the variables here will have no effect.  Turning threading
6853 off will speed group selection up a bit, but it is sure to make reading
6854 slower and more awkward.
6855
6856 @item gnus-thread-hide-subtree
6857 @vindex gnus-thread-hide-subtree
6858 If non-@code{nil}, all threads will be hidden when the summary buffer is
6859 generated.
6860
6861 This can also be a predicate specifier (@pxref{Predicate Specifiers}).
6862 Available predicates are @code{gnus-article-unread-p} and
6863 @code{gnus-article-unseen-p}.
6864
6865 Here's an example:
6866
6867 @lisp
6868 (setq gnus-thread-hide-subtree
6869       '(or gnus-article-unread-p
6870            gnus-article-unseen-p))
6871 @end lisp
6872
6873 (It's a pretty nonsensical example, since all unseen articles are also
6874 unread, but you get my drift.)
6875
6876
6877 @item gnus-thread-expunge-below
6878 @vindex gnus-thread-expunge-below
6879 All threads that have a total score (as defined by
6880 @code{gnus-thread-score-function}) less than this number will be
6881 expunged.  This variable is @code{nil} by default, which means that no
6882 threads are expunged.
6883
6884 @item gnus-thread-hide-killed
6885 @vindex gnus-thread-hide-killed
6886 if you kill a thread and this variable is non-@code{nil}, the subtree
6887 will be hidden.
6888
6889 @item gnus-thread-ignore-subject
6890 @vindex gnus-thread-ignore-subject
6891 Sometimes somebody changes the subject in the middle of a thread.  If
6892 this variable is non-@code{nil}, which is the default, the subject
6893 change is ignored.  If it is @code{nil}, a change in the subject will
6894 result in a new thread.
6895
6896 @item gnus-thread-indent-level
6897 @vindex gnus-thread-indent-level
6898 This is a number that says how much each sub-thread should be indented.
6899 The default is 4.
6900
6901 @item gnus-sort-gathered-threads-function
6902 @vindex gnus-sort-gathered-threads-function
6903 Sometimes, particularly with mailing lists, the order in which mails
6904 arrive locally is not necessarily the same as the order in which they
6905 arrived on the mailing list.  Consequently, when sorting sub-threads
6906 using the default @code{gnus-thread-sort-by-number}, responses can end
6907 up appearing before the article to which they are responding to.
6908 Setting this variable to an alternate value
6909 (e.g. @code{gnus-thread-sort-by-date}), in a group's parameters or in an
6910 appropriate hook (e.g. @code{gnus-summary-generate-hook}) can produce a
6911 more logical sub-thread ordering in such instances.
6912
6913 @end table
6914
6915
6916 @node Low-Level Threading
6917 @subsubsection Low-Level Threading
6918
6919 @table @code
6920
6921 @item gnus-parse-headers-hook
6922 @vindex gnus-parse-headers-hook
6923 Hook run before parsing any headers.
6924
6925 @item gnus-alter-header-function
6926 @vindex gnus-alter-header-function
6927 If non-@code{nil}, this function will be called to allow alteration of
6928 article header structures.  The function is called with one parameter,
6929 the article header vector, which it may alter in any way.  For instance,
6930 if you have a mail-to-news gateway which alters the @code{Message-ID}s
6931 in systematic ways (by adding prefixes and such), you can use this
6932 variable to un-scramble the @code{Message-ID}s so that they are more
6933 meaningful.  Here's one example:
6934
6935 @lisp
6936 (setq gnus-alter-header-function 'my-alter-message-id)
6937
6938 (defun my-alter-message-id (header)
6939   (let ((id (mail-header-id header)))
6940     (when (string-match
6941            "\\(<[^<>@@]*\\)\\.?cygnus\\..*@@\\([^<>@@]*>\\)" id)
6942       (mail-header-set-id
6943        (concat (match-string 1 id) "@@" (match-string 2 id))
6944        header))))
6945 @end lisp
6946
6947 @end table
6948
6949
6950 @node Thread Commands
6951 @subsection Thread Commands
6952 @cindex thread commands
6953
6954 @table @kbd
6955
6956 @item T k
6957 @itemx C-M-k
6958 @kindex T k (Summary)
6959 @kindex C-M-k (Summary)
6960 @findex gnus-summary-kill-thread
6961 Mark all articles in the current (sub-)thread as read
6962 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
6963 remove all marks instead.  If the prefix argument is negative, tick
6964 articles instead.
6965
6966 @item T l
6967 @itemx C-M-l
6968 @kindex T l (Summary)
6969 @kindex C-M-l (Summary)
6970 @findex gnus-summary-lower-thread
6971 Lower the score of the current (sub-)thread
6972 (@code{gnus-summary-lower-thread}).
6973
6974 @item T i
6975 @kindex T i (Summary)
6976 @findex gnus-summary-raise-thread
6977 Increase the score of the current (sub-)thread
6978 (@code{gnus-summary-raise-thread}).
6979
6980 @item T #
6981 @kindex T # (Summary)
6982 @findex gnus-uu-mark-thread
6983 Set the process mark on the current (sub-)thread
6984 (@code{gnus-uu-mark-thread}).
6985
6986 @item T M-#
6987 @kindex T M-# (Summary)
6988 @findex gnus-uu-unmark-thread
6989 Remove the process mark from the current (sub-)thread
6990 (@code{gnus-uu-unmark-thread}).
6991
6992 @item T T
6993 @kindex T T (Summary)
6994 @findex gnus-summary-toggle-threads
6995 Toggle threading (@code{gnus-summary-toggle-threads}).
6996
6997 @item T s
6998 @kindex T s (Summary)
6999 @findex gnus-summary-show-thread
7000 Expose the (sub-)thread hidden under the current article, if any@*
7001 (@code{gnus-summary-show-thread}).
7002
7003 @item T h
7004 @kindex T h (Summary)
7005 @findex gnus-summary-hide-thread
7006 Hide the current (sub-)thread (@code{gnus-summary-hide-thread}).
7007
7008 @item T S
7009 @kindex T S (Summary)
7010 @findex gnus-summary-show-all-threads
7011 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
7012
7013 @item T H
7014 @kindex T H (Summary)
7015 @findex gnus-summary-hide-all-threads
7016 Hide all threads (@code{gnus-summary-hide-all-threads}).
7017
7018 @item T t
7019 @kindex T t (Summary)
7020 @findex gnus-summary-rethread-current
7021 Re-thread the current article's thread
7022 (@code{gnus-summary-rethread-current}).  This works even when the
7023 summary buffer is otherwise unthreaded.
7024
7025 @item T ^
7026 @kindex T ^ (Summary)
7027 @findex gnus-summary-reparent-thread
7028 Make the current article the child of the marked (or previous) article
7029 (@code{gnus-summary-reparent-thread}).
7030
7031 @item T M-^
7032 @kindex T M-^ (Summary)
7033 @findex gnus-summary-reparent-children
7034 Make the current article the parent of the marked articles
7035 (@code{gnus-summary-reparent-children}).
7036
7037 @end table
7038
7039 The following commands are thread movement commands.  They all
7040 understand the numeric prefix.
7041
7042 @table @kbd
7043
7044 @item T n
7045 @kindex T n (Summary)
7046 @itemx C-M-f
7047 @kindex C-M-n (Summary)
7048 @itemx M-down
7049 @kindex M-down (Summary)
7050 @findex gnus-summary-next-thread
7051 Go to the next thread (@code{gnus-summary-next-thread}).
7052
7053 @item T p
7054 @kindex T p (Summary)
7055 @itemx C-M-b
7056 @kindex C-M-p (Summary)
7057 @itemx M-up
7058 @kindex M-up (Summary)
7059 @findex gnus-summary-prev-thread
7060 Go to the previous thread (@code{gnus-summary-prev-thread}).
7061
7062 @item T d
7063 @kindex T d (Summary)
7064 @findex gnus-summary-down-thread
7065 Descend the thread (@code{gnus-summary-down-thread}).
7066
7067 @item T u
7068 @kindex T u (Summary)
7069 @findex gnus-summary-up-thread
7070 Ascend the thread (@code{gnus-summary-up-thread}).
7071
7072 @item T o
7073 @kindex T o (Summary)
7074 @findex gnus-summary-top-thread
7075 Go to the top of the thread (@code{gnus-summary-top-thread}).
7076 @end table
7077
7078 @vindex gnus-thread-operation-ignore-subject
7079 If you ignore subject while threading, you'll naturally end up with
7080 threads that have several different subjects in them.  If you then issue
7081 a command like @kbd{T k} (@code{gnus-summary-kill-thread}) you might not
7082 wish to kill the entire thread, but just those parts of the thread that
7083 have the same subject as the current article.  If you like this idea,
7084 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If it
7085 is non-@code{nil} (which it is by default), subjects will be ignored
7086 when doing thread commands.  If this variable is @code{nil}, articles in
7087 the same thread with different subjects will not be included in the
7088 operation in question.  If this variable is @code{fuzzy}, only articles
7089 that have subjects fuzzily equal will be included (@pxref{Fuzzy
7090 Matching}).
7091
7092
7093 @node Sorting the Summary Buffer
7094 @section Sorting the Summary Buffer
7095
7096 @findex gnus-thread-sort-by-total-score
7097 @findex gnus-thread-sort-by-date
7098 @findex gnus-thread-sort-by-date-reverse
7099 @findex gnus-thread-sort-by-score
7100 @findex gnus-thread-sort-by-subject
7101 @findex gnus-thread-sort-by-author
7102 @findex gnus-thread-sort-by-recipient
7103 @findex gnus-thread-sort-by-number
7104 @findex gnus-thread-sort-by-random
7105 @vindex gnus-thread-sort-functions
7106 @findex gnus-thread-sort-by-most-recent-number
7107 @findex gnus-thread-sort-by-most-recent-date
7108 If you are using a threaded summary display, you can sort the threads by
7109 setting @code{gnus-thread-sort-functions}, which can be either a single
7110 function, a list of functions, or a list containing functions and
7111 @code{(not some-function)} elements.
7112
7113 By default, sorting is done on article numbers.  Ready-made sorting
7114 predicate functions include @code{gnus-thread-sort-by-number},
7115 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-recipient},
7116 @code{gnus-thread-sort-by-subject},
7117 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-date-reverse},
7118 @code{gnus-thread-sort-by-score},
7119 @code{gnus-thread-sort-by-most-recent-number},
7120 @code{gnus-thread-sort-by-most-recent-date},
7121 @code{gnus-thread-sort-by-random} and
7122 @code{gnus-thread-sort-by-total-score}.
7123
7124 Each function takes two threads and returns non-@code{nil} if the first
7125 thread should be sorted before the other.  Note that sorting really is
7126 normally done by looking only at the roots of each thread.
7127
7128 If you use more than one function, the primary sort key should be the
7129 last function in the list.  You should probably always include
7130 @code{gnus-thread-sort-by-number} in the list of sorting
7131 functions---preferably first.  This will ensure that threads that are
7132 equal with respect to the other sort criteria will be displayed in
7133 ascending article order.
7134
7135 If you would like to sort by reverse score, then by subject, and finally
7136 by number, you could do something like:
7137
7138 @lisp
7139 (setq gnus-thread-sort-functions
7140       '(gnus-thread-sort-by-number
7141         gnus-thread-sort-by-subject
7142         (not gnus-thread-sort-by-total-score)))
7143 @end lisp
7144
7145 The threads that have highest score will be displayed first in the
7146 summary buffer.  When threads have the same score, they will be sorted
7147 alphabetically.  The threads that have the same score and the same
7148 subject will be sorted by number, which is (normally) the sequence in
7149 which the articles arrived.
7150
7151 If you want to sort by score and then reverse arrival order, you could
7152 say something like:
7153
7154 @lisp
7155 (setq gnus-thread-sort-functions
7156       '((not gnus-thread-sort-by-number)
7157         gnus-thread-sort-by-score))
7158 @end lisp
7159
7160 @vindex gnus-thread-score-function
7161 The function in the @code{gnus-thread-score-function} variable (default
7162 @code{+}) is used for calculating the total score of a thread.  Useful
7163 functions might be @code{max}, @code{min}, or squared means, or whatever
7164 tickles your fancy.
7165
7166 @findex gnus-article-sort-functions
7167 @findex gnus-article-sort-by-date
7168 @findex gnus-article-sort-by-score
7169 @findex gnus-article-sort-by-subject
7170 @findex gnus-article-sort-by-author
7171 @findex gnus-article-sort-by-random
7172 @findex gnus-article-sort-by-number
7173 If you are using an unthreaded display for some strange reason or
7174 other, you have to fiddle with the @code{gnus-article-sort-functions}
7175 variable.  It is very similar to the
7176 @code{gnus-thread-sort-functions}, except that it uses slightly
7177 different functions for article comparison.  Available sorting
7178 predicate functions are @code{gnus-article-sort-by-number},
7179 @code{gnus-article-sort-by-author},
7180 @code{gnus-article-sort-by-subject}, @code{gnus-article-sort-by-date},
7181 @code{gnus-article-sort-by-random}, and
7182 @code{gnus-article-sort-by-score}.
7183
7184 If you want to sort an unthreaded summary display by subject, you could
7185 say something like:
7186
7187 @lisp
7188 (setq gnus-article-sort-functions
7189       '(gnus-article-sort-by-number
7190         gnus-article-sort-by-subject))
7191 @end lisp
7192
7193 You can define group specific sorting via @code{gnus-parameters},
7194 @xref{Group Parameters}.
7195
7196
7197 @node Asynchronous Fetching
7198 @section Asynchronous Article Fetching
7199 @cindex asynchronous article fetching
7200 @cindex article pre-fetch
7201 @cindex pre-fetch
7202
7203 If you read your news from an @acronym{NNTP} server that's far away, the
7204 network latencies may make reading articles a chore.  You have to wait
7205 for a while after pressing @kbd{n} to go to the next article before the
7206 article appears.  Why can't Gnus just go ahead and fetch the article
7207 while you are reading the previous one?  Why not, indeed.
7208
7209 First, some caveats.  There are some pitfalls to using asynchronous
7210 article fetching, especially the way Gnus does it.
7211
7212 Let's say you are reading article 1, which is short, and article 2 is
7213 quite long, and you are not interested in reading that.  Gnus does not
7214 know this, so it goes ahead and fetches article 2.  You decide to read
7215 article 3, but since Gnus is in the process of fetching article 2, the
7216 connection is blocked.
7217
7218 To avoid these situations, Gnus will open two (count 'em two)
7219 connections to the server.  Some people may think this isn't a very nice
7220 thing to do, but I don't see any real alternatives.  Setting up that
7221 extra connection takes some time, so Gnus startup will be slower.
7222
7223 Gnus will fetch more articles than you will read.  This will mean that
7224 the link between your machine and the @acronym{NNTP} server will become more
7225 loaded than if you didn't use article pre-fetch.  The server itself will
7226 also become more loaded---both with the extra article requests, and the
7227 extra connection.
7228
7229 Ok, so now you know that you shouldn't really use this thing@dots{} unless
7230 you really want to.
7231
7232 @vindex gnus-asynchronous
7233 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
7234 happen automatically.
7235
7236 @vindex gnus-use-article-prefetch
7237 You can control how many articles are to be pre-fetched by setting
7238 @code{gnus-use-article-prefetch}.  This is 30 by default, which means
7239 that when you read an article in the group, the back end will pre-fetch
7240 the next 30 articles.  If this variable is @code{t}, the back end will
7241 pre-fetch all the articles it can without bound.  If it is
7242 @code{nil}, no pre-fetching will be done.
7243
7244 @vindex gnus-async-prefetch-article-p
7245 @findex gnus-async-read-p
7246 There are probably some articles that you don't want to pre-fetch---read
7247 articles, for instance.  The @code{gnus-async-prefetch-article-p}
7248 variable controls whether an article is to be pre-fetched.  This
7249 function should return non-@code{nil} when the article in question is
7250 to be pre-fetched.  The default is @code{gnus-async-read-p}, which
7251 returns @code{nil} on read articles.  The function is called with an
7252 article data structure as the only parameter.
7253
7254 If, for instance, you wish to pre-fetch only unread articles shorter
7255 than 100 lines, you could say something like:
7256
7257 @lisp
7258 (defun my-async-short-unread-p (data)
7259   "Return non-nil for short, unread articles."
7260   (and (gnus-data-unread-p data)
7261        (< (mail-header-lines (gnus-data-header data))
7262           100)))
7263
7264 (setq gnus-async-prefetch-article-p 'my-async-short-unread-p)
7265 @end lisp
7266
7267 These functions will be called many, many times, so they should
7268 preferably be short and sweet to avoid slowing down Gnus too much.
7269 It's probably a good idea to byte-compile things like this.
7270
7271 @vindex gnus-prefetched-article-deletion-strategy
7272 Articles have to be removed from the asynch buffer sooner or later.  The
7273 @code{gnus-prefetched-article-deletion-strategy} says when to remove
7274 articles.  This is a list that may contain the following elements:
7275
7276 @table @code
7277 @item read
7278 Remove articles when they are read.
7279
7280 @item exit
7281 Remove articles when exiting the group.
7282 @end table
7283
7284 The default value is @code{(read exit)}.
7285
7286 @c @vindex gnus-use-header-prefetch
7287 @c If @code{gnus-use-header-prefetch} is non-@code{nil}, prefetch articles
7288 @c from the next group.
7289
7290
7291 @node Article Caching
7292 @section Article Caching
7293 @cindex article caching
7294 @cindex caching
7295
7296 If you have an @emph{extremely} slow @acronym{NNTP} connection, you may
7297 consider turning article caching on.  Each article will then be stored
7298 locally under your home directory.  As you may surmise, this could
7299 potentially use @emph{huge} amounts of disk space, as well as eat up all
7300 your inodes so fast it will make your head swim.  In vodka.
7301
7302 Used carefully, though, it could be just an easier way to save articles.
7303
7304 @vindex gnus-use-long-file-name
7305 @vindex gnus-cache-directory
7306 @vindex gnus-use-cache
7307 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
7308 all articles ticked or marked as dormant will then be copied
7309 over to your local cache (@code{gnus-cache-directory}).  Whether this
7310 cache is flat or hierarchical is controlled by the
7311 @code{gnus-use-long-file-name} variable, as usual.
7312
7313 When re-selecting a ticked or dormant article, it will be fetched from the
7314 cache instead of from the server.  As articles in your cache will never
7315 expire, this might serve as a method of saving articles while still
7316 keeping them where they belong.  Just mark all articles you want to save
7317 as dormant, and don't worry.
7318
7319 When an article is marked as read, is it removed from the cache.
7320
7321 @vindex gnus-cache-remove-articles
7322 @vindex gnus-cache-enter-articles
7323 The entering/removal of articles from the cache is controlled by the
7324 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
7325 variables.  Both are lists of symbols.  The first is @code{(ticked
7326 dormant)} by default, meaning that ticked and dormant articles will be
7327 put in the cache.  The latter is @code{(read)} by default, meaning that
7328 articles marked as read are removed from the cache.  Possibly
7329 symbols in these two lists are @code{ticked}, @code{dormant},
7330 @code{unread} and @code{read}.
7331
7332 @findex gnus-jog-cache
7333 So where does the massive article-fetching and storing come into the
7334 picture?  The @code{gnus-jog-cache} command will go through all
7335 subscribed newsgroups, request all unread articles, score them, and
7336 store them in the cache.  You should only ever, ever ever ever, use this
7337 command if 1) your connection to the @acronym{NNTP} server is really, really,
7338 really slow and 2) you have a really, really, really huge disk.
7339 Seriously.  One way to cut down on the number of articles downloaded is
7340 to score unwanted articles down and have them marked as read.  They will
7341 not then be downloaded by this command.
7342
7343 @vindex gnus-uncacheable-groups
7344 @vindex gnus-cacheable-groups
7345 It is likely that you do not want caching on all groups.  For instance,
7346 if your @code{nnml} mail is located under your home directory, it makes no
7347 sense to cache it somewhere else under your home directory.  Unless you
7348 feel that it's neat to use twice as much space.
7349
7350 To limit the caching, you could set @code{gnus-cacheable-groups} to a
7351 regexp of groups to cache, @samp{^nntp} for instance, or set the
7352 @code{gnus-uncacheable-groups} regexp to @samp{^nnml}, for instance.
7353 Both variables are @code{nil} by default.  If a group matches both
7354 variables, the group is not cached.
7355
7356 @findex gnus-cache-generate-nov-databases
7357 @findex gnus-cache-generate-active
7358 @vindex gnus-cache-active-file
7359 The cache stores information on what articles it contains in its active
7360 file (@code{gnus-cache-active-file}).  If this file (or any other parts
7361 of the cache) becomes all messed up for some reason or other, Gnus
7362 offers two functions that will try to set things right.  @kbd{M-x
7363 gnus-cache-generate-nov-databases} will (re)build all the @acronym{NOV}
7364 files, and @kbd{gnus-cache-generate-active} will (re)generate the active
7365 file.
7366
7367 @findex gnus-cache-move-cache
7368 @code{gnus-cache-move-cache} will move your whole
7369 @code{gnus-cache-directory} to some other location.  You get asked to
7370 where, isn't that cool?
7371
7372 @node Persistent Articles
7373 @section Persistent Articles
7374 @cindex persistent articles
7375
7376 Closely related to article caching, we have @dfn{persistent articles}.
7377 In fact, it's just a different way of looking at caching, and much more
7378 useful in my opinion.
7379
7380 Say you're reading a newsgroup, and you happen on to some valuable gem
7381 that you want to keep and treasure forever.  You'd normally just save it
7382 (using one of the many saving commands) in some file.  The problem with
7383 that is that it's just, well, yucky.  Ideally you'd prefer just having
7384 the article remain in the group where you found it forever; untouched by
7385 the expiry going on at the news server.
7386
7387 This is what a @dfn{persistent article} is---an article that just won't
7388 be deleted.  It's implemented using the normal cache functions, but
7389 you use two explicit commands for managing persistent articles:
7390
7391 @table @kbd
7392
7393 @item *
7394 @kindex * (Summary)
7395 @findex gnus-cache-enter-article
7396 Make the current article persistent (@code{gnus-cache-enter-article}).
7397
7398 @item M-*
7399 @kindex M-* (Summary)
7400 @findex gnus-cache-remove-article
7401 Remove the current article from the persistent articles
7402 (@code{gnus-cache-remove-article}).  This will normally delete the
7403 article.
7404 @end table
7405
7406 Both these commands understand the process/prefix convention.
7407
7408 To avoid having all ticked articles (and stuff) entered into the cache,
7409 you should set @code{gnus-use-cache} to @code{passive} if you're just
7410 interested in persistent articles:
7411
7412 @lisp
7413 (setq gnus-use-cache 'passive)
7414 @end lisp
7415
7416
7417 @node Article Backlog
7418 @section Article Backlog
7419 @cindex backlog
7420 @cindex article backlog
7421
7422 If you have a slow connection, but the idea of using caching seems
7423 unappealing to you (and it is, really), you can help the situation some
7424 by switching on the @dfn{backlog}.  This is where Gnus will buffer
7425 already read articles so that it doesn't have to re-fetch articles
7426 you've already read.  This only helps if you are in the habit of
7427 re-selecting articles you've recently read, of course.  If you never do
7428 that, turning the backlog on will slow Gnus down a little bit, and
7429 increase memory usage some.
7430
7431 @vindex gnus-keep-backlog
7432 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
7433 at most @var{n} old articles in a buffer for later re-fetching.  If this
7434 variable is non-@code{nil} and is not a number, Gnus will store
7435 @emph{all} read articles, which means that your Emacs will grow without
7436 bound before exploding and taking your machine down with you.  I put
7437 that in there just to keep y'all on your toes.
7438
7439 The default value is 20.
7440
7441
7442 @node Saving Articles
7443 @section Saving Articles
7444 @cindex saving articles
7445
7446 Gnus can save articles in a number of ways.  Below is the documentation
7447 for saving articles in a fairly straight-forward fashion (i.e., little
7448 processing of the article is done before it is saved).  For a different
7449 approach (uudecoding, unsharing) you should use @code{gnus-uu}
7450 (@pxref{Decoding Articles}).
7451
7452 For the commands listed here, the target is a file.  If you want to
7453 save to a group, see the @kbd{B c} (@code{gnus-summary-copy-article})
7454 command (@pxref{Mail Group Commands}).
7455
7456 @vindex gnus-save-all-headers
7457 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
7458 unwanted headers before saving the article.
7459
7460 @vindex gnus-saved-headers
7461 If the preceding variable is @code{nil}, all headers that match the
7462 @code{gnus-saved-headers} regexp will be kept, while the rest will be
7463 deleted before saving.
7464
7465 @table @kbd
7466
7467 @item O o
7468 @itemx o
7469 @kindex O o (Summary)
7470 @kindex o (Summary)
7471 @findex gnus-summary-save-article
7472 @c @icon{gnus-summary-save-article}
7473 Save the current article using the default article saver
7474 (@code{gnus-summary-save-article}).
7475
7476 @item O m
7477 @kindex O m (Summary)
7478 @findex gnus-summary-save-article-mail
7479 Save the current article in mail format
7480 (@code{gnus-summary-save-article-mail}).
7481
7482 @item O r
7483 @kindex O r (Summary)
7484 @findex gnus-summary-save-article-rmail
7485 Save the current article in Rmail format
7486 (@code{gnus-summary-save-article-rmail}).
7487
7488 @item O f
7489 @kindex O f (Summary)
7490 @findex gnus-summary-save-article-file
7491 @c @icon{gnus-summary-save-article-file}
7492 Save the current article in plain file format
7493 (@code{gnus-summary-save-article-file}).
7494
7495 @item O F
7496 @kindex O F (Summary)
7497 @findex gnus-summary-write-article-file
7498 Write the current article in plain file format, overwriting any previous
7499 file contents (@code{gnus-summary-write-article-file}).
7500
7501 @item O b
7502 @kindex O b (Summary)
7503 @findex gnus-summary-save-article-body-file
7504 Save the current article body in plain file format
7505 (@code{gnus-summary-save-article-body-file}).
7506
7507 @item O h
7508 @kindex O h (Summary)
7509 @findex gnus-summary-save-article-folder
7510 Save the current article in mh folder format
7511 (@code{gnus-summary-save-article-folder}).
7512
7513 @item O v
7514 @kindex O v (Summary)
7515 @findex gnus-summary-save-article-vm
7516 Save the current article in a VM folder
7517 (@code{gnus-summary-save-article-vm}).
7518
7519 @item O p
7520 @itemx |
7521 @kindex O p (Summary)
7522 @kindex | (Summary)
7523 @findex gnus-summary-pipe-output
7524 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
7525 the current article to a process (@code{gnus-summary-pipe-output}).
7526 If given a symbolic prefix (@pxref{Symbolic Prefixes}), include the
7527 complete headers in the piped output.
7528
7529 @item O P
7530 @kindex O P (Summary)
7531 @findex gnus-summary-muttprint
7532 @vindex gnus-summary-muttprint-program
7533 Save the current article into muttprint.  That is, print it using the
7534 external program @uref{http://muttprint.sourceforge.net/,
7535 Muttprint}.  The program name and options to use is controlled by the
7536 variable @code{gnus-summary-muttprint-program}.
7537 (@code{gnus-summary-muttprint}).
7538
7539 @end table
7540
7541 @vindex gnus-prompt-before-saving
7542 All these commands use the process/prefix convention
7543 (@pxref{Process/Prefix}).  If you save bunches of articles using these
7544 functions, you might get tired of being prompted for files to save each
7545 and every article in.  The prompting action is controlled by
7546 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
7547 default, giving you that excessive prompting action you know and
7548 loathe.  If you set this variable to @code{t} instead, you'll be prompted
7549 just once for each series of articles you save.  If you like to really
7550 have Gnus do all your thinking for you, you can even set this variable
7551 to @code{nil}, which means that you will never be prompted for files to
7552 save articles in.  Gnus will simply save all the articles in the default
7553 files.
7554
7555
7556 @vindex gnus-default-article-saver
7557 You can customize the @code{gnus-default-article-saver} variable to make
7558 Gnus do what you want it to.  You can use any of the six ready-made
7559 functions below, or you can create your own.
7560
7561 @table @code
7562
7563 @item gnus-summary-save-in-rmail
7564 @findex gnus-summary-save-in-rmail
7565 @vindex gnus-rmail-save-name
7566 @findex gnus-plain-save-name
7567 This is the default format, @dfn{Babyl}.  Uses the function in the
7568 @code{gnus-rmail-save-name} variable to get a file name to save the
7569 article in.  The default is @code{gnus-plain-save-name}.
7570
7571 @item gnus-summary-save-in-mail
7572 @findex gnus-summary-save-in-mail
7573 @vindex gnus-mail-save-name
7574 Save in a Unix mail (mbox) file.  Uses the function in the
7575 @code{gnus-mail-save-name} variable to get a file name to save the
7576 article in.  The default is @code{gnus-plain-save-name}.
7577
7578 @item gnus-summary-save-in-file
7579 @findex gnus-summary-save-in-file
7580 @vindex gnus-file-save-name
7581 @findex gnus-numeric-save-name
7582 Append the article straight to an ordinary file.  Uses the function in
7583 the @code{gnus-file-save-name} variable to get a file name to save the
7584 article in.  The default is @code{gnus-numeric-save-name}.
7585
7586 @item gnus-summary-write-to-file
7587 @findex gnus-summary-write-to-file
7588 Write the article straight to an ordinary file.  The file is
7589 overwritten if it exists.  Uses the function in the
7590 @code{gnus-file-save-name} variable to get a file name to save the
7591 article in.  The default is @code{gnus-numeric-save-name}.
7592
7593 @item gnus-summary-save-body-in-file
7594 @findex gnus-summary-save-body-in-file
7595 Append the article body to an ordinary file.  Uses the function in the
7596 @code{gnus-file-save-name} variable to get a file name to save the
7597 article in.  The default is @code{gnus-numeric-save-name}.
7598
7599 @item gnus-summary-save-in-folder
7600 @findex gnus-summary-save-in-folder
7601 @findex gnus-folder-save-name
7602 @findex gnus-Folder-save-name
7603 @vindex gnus-folder-save-name
7604 @cindex rcvstore
7605 @cindex MH folders
7606 Save the article to an MH folder using @code{rcvstore} from the MH
7607 library.  Uses the function in the @code{gnus-folder-save-name} variable
7608 to get a file name to save the article in.  The default is
7609 @code{gnus-folder-save-name}, but you can also use
7610 @code{gnus-Folder-save-name}, which creates capitalized names.
7611
7612 @item gnus-summary-save-in-vm
7613 @findex gnus-summary-save-in-vm
7614 Save the article in a VM folder.  You have to have the VM mail
7615 reader to use this setting.
7616 @end table
7617
7618 @vindex gnus-article-save-directory
7619 All of these functions, except for the last one, will save the article
7620 in the @code{gnus-article-save-directory}, which is initialized from the
7621 @env{SAVEDIR} environment variable.  This is @file{~/News/} by
7622 default.
7623
7624 As you can see above, the functions use different functions to find a
7625 suitable name of a file to save the article in.  Below is a list of
7626 available functions that generate names:
7627
7628 @table @code
7629
7630 @item gnus-Numeric-save-name
7631 @findex gnus-Numeric-save-name
7632 File names like @file{~/News/Alt.andrea-dworkin/45}.
7633
7634 @item gnus-numeric-save-name
7635 @findex gnus-numeric-save-name
7636 File names like @file{~/News/alt.andrea-dworkin/45}.
7637
7638 @item gnus-Plain-save-name
7639 @findex gnus-Plain-save-name
7640 File names like @file{~/News/Alt.andrea-dworkin}.
7641
7642 @item gnus-plain-save-name
7643 @findex gnus-plain-save-name
7644 File names like @file{~/News/alt.andrea-dworkin}.
7645
7646 @item gnus-sender-save-name
7647 @findex gnus-sender-save-name
7648 File names like @file{~/News/larsi}.
7649 @end table
7650
7651 @vindex gnus-split-methods
7652 You can have Gnus suggest where to save articles by plonking a regexp into
7653 the @code{gnus-split-methods} alist.  For instance, if you would like to
7654 save articles related to Gnus in the file @file{gnus-stuff}, and articles
7655 related to VM in @file{vm-stuff}, you could set this variable to something
7656 like:
7657
7658 @lisp
7659 (("^Subject:.*gnus\\|^Newsgroups:.*gnus" "gnus-stuff")
7660  ("^Subject:.*vm\\|^Xref:.*vm" "vm-stuff")
7661  (my-choosing-function "../other-dir/my-stuff")
7662  ((equal gnus-newsgroup-name "mail.misc") "mail-stuff"))
7663 @end lisp
7664
7665 We see that this is a list where each element is a list that has two
7666 elements---the @dfn{match} and the @dfn{file}.  The match can either be
7667 a string (in which case it is used as a regexp to match on the article
7668 head); it can be a symbol (which will be called as a function with the
7669 group name as a parameter); or it can be a list (which will be
7670 @code{eval}ed).  If any of these actions have a non-@code{nil} result,
7671 the @dfn{file} will be used as a default prompt.  In addition, the
7672 result of the operation itself will be used if the function or form
7673 called returns a string or a list of strings.
7674
7675 You basically end up with a list of file names that might be used when
7676 saving the current article.  (All ``matches'' will be used.)  You will
7677 then be prompted for what you really want to use as a name, with file
7678 name completion over the results from applying this variable.
7679
7680 This variable is @code{((gnus-article-archive-name))} by default, which
7681 means that Gnus will look at the articles it saves for an
7682 @code{Archive-name} line and use that as a suggestion for the file
7683 name.
7684
7685 Here's an example function to clean up file names somewhat.  If you have
7686 lots of mail groups called things like
7687 @samp{nnml:mail.whatever}, you may want to chop off the beginning of
7688 these group names before creating the file name to save to.  The
7689 following will do just that:
7690
7691 @lisp
7692 (defun my-save-name (group)
7693   (when (string-match "^nnml:mail." group)
7694     (substring group (match-end 0))))
7695
7696 (setq gnus-split-methods
7697       '((gnus-article-archive-name)
7698         (my-save-name)))
7699 @end lisp
7700
7701
7702 @vindex gnus-use-long-file-name
7703 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
7704 @code{nil}, all the preceding functions will replace all periods
7705 (@samp{.}) in the group names with slashes (@samp{/})---which means that
7706 the functions will generate hierarchies of directories instead of having
7707 all the files in the top level directory
7708 (@file{~/News/alt/andrea-dworkin} instead of
7709 @file{~/News/alt.andrea-dworkin}.)  This variable is @code{t} by default
7710 on most systems.  However, for historical reasons, this is @code{nil} on
7711 Xenix and usg-unix-v machines by default.
7712
7713 This function also affects kill and score file names.  If this variable
7714 is a list, and the list contains the element @code{not-score}, long file
7715 names will not be used for score files, if it contains the element
7716 @code{not-save}, long file names will not be used for saving, and if it
7717 contains the element @code{not-kill}, long file names will not be used
7718 for kill files.
7719
7720 If you'd like to save articles in a hierarchy that looks something like
7721 a spool, you could
7722
7723 @lisp
7724 (setq gnus-use-long-file-name '(not-save)) ; @r{to get a hierarchy}
7725 (setq gnus-default-article-saver
7726       'gnus-summary-save-in-file)          ; @r{no encoding}
7727 @end lisp
7728
7729 Then just save with @kbd{o}.  You'd then read this hierarchy with
7730 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
7731 the top level directory as the argument (@file{~/News/}).  Then just walk
7732 around to the groups/directories with @code{nneething}.
7733
7734
7735 @node Decoding Articles
7736 @section Decoding Articles
7737 @cindex decoding articles
7738
7739 Sometime users post articles (or series of articles) that have been
7740 encoded in some way or other.  Gnus can decode them for you.
7741
7742 @menu
7743 * Uuencoded Articles::          Uudecode articles.
7744 * Shell Archives::              Unshar articles.
7745 * PostScript Files::            Split PostScript.
7746 * Other Files::                 Plain save and binhex.
7747 * Decoding Variables::          Variables for a happy decoding.
7748 * Viewing Files::               You want to look at the result of the decoding?
7749 @end menu
7750
7751 @cindex series
7752 @cindex article series
7753 All these functions use the process/prefix convention
7754 (@pxref{Process/Prefix}) for finding out what articles to work on, with
7755 the extension that a ``single article'' means ``a single series''.  Gnus
7756 can find out by itself what articles belong to a series, decode all the
7757 articles and unpack/view/save the resulting file(s).
7758
7759 Gnus guesses what articles are in the series according to the following
7760 simplish rule: The subjects must be (nearly) identical, except for the
7761 last two numbers of the line.  (Spaces are largely ignored, however.)
7762
7763 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
7764 will find all the articles that match the regexp @samp{^cat.gif
7765 ([0-9]+/[0-9]+).*$}.
7766
7767 Subjects that are non-standard, like @samp{cat.gif (2/3) Part 6 of a
7768 series}, will not be properly recognized by any of the automatic viewing
7769 commands, and you have to mark the articles manually with @kbd{#}.
7770
7771
7772 @node Uuencoded Articles
7773 @subsection Uuencoded Articles
7774 @cindex uudecode
7775 @cindex uuencoded articles
7776
7777 @table @kbd
7778
7779 @item X u
7780 @kindex X u (Summary)
7781 @findex gnus-uu-decode-uu
7782 @c @icon{gnus-uu-decode-uu}
7783 Uudecodes the current series (@code{gnus-uu-decode-uu}).
7784
7785 @item X U
7786 @kindex X U (Summary)
7787 @findex gnus-uu-decode-uu-and-save
7788 Uudecodes and saves the current series
7789 (@code{gnus-uu-decode-uu-and-save}).
7790
7791 @item X v u
7792 @kindex X v u (Summary)
7793 @findex gnus-uu-decode-uu-view
7794 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
7795
7796 @item X v U
7797 @kindex X v U (Summary)
7798 @findex gnus-uu-decode-uu-and-save-view
7799 Uudecodes, views and saves the current series
7800 (@code{gnus-uu-decode-uu-and-save-view}).
7801
7802 @end table
7803
7804 Remember that these all react to the presence of articles marked with
7805 the process mark.  If, for instance, you'd like to decode and save an
7806 entire newsgroup, you'd typically do @kbd{M P a}
7807 (@code{gnus-uu-mark-all}) and then @kbd{X U}
7808 (@code{gnus-uu-decode-uu-and-save}).
7809
7810 All this is very much different from how @code{gnus-uu} worked with
7811 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
7812 the sun.  This version of @code{gnus-uu} generally assumes that you mark
7813 articles in some way (@pxref{Setting Process Marks}) and then press
7814 @kbd{X u}.
7815
7816 @vindex gnus-uu-notify-files
7817 Note: When trying to decode articles that have names matching
7818 @code{gnus-uu-notify-files}, which is hard-coded to
7819 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
7820 automatically post an article on @samp{comp.unix.wizards} saying that
7821 you have just viewed the file in question.  This feature can't be turned
7822 off.
7823
7824
7825 @node Shell Archives
7826 @subsection Shell Archives
7827 @cindex unshar
7828 @cindex shell archives
7829 @cindex shared articles
7830
7831 Shell archives (``shar files'') used to be a popular way to distribute
7832 sources, but it isn't used all that much today.  In any case, we have
7833 some commands to deal with these:
7834
7835 @table @kbd
7836
7837 @item X s
7838 @kindex X s (Summary)
7839 @findex gnus-uu-decode-unshar
7840 Unshars the current series (@code{gnus-uu-decode-unshar}).
7841
7842 @item X S
7843 @kindex X S (Summary)
7844 @findex gnus-uu-decode-unshar-and-save
7845 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
7846
7847 @item X v s
7848 @kindex X v s (Summary)
7849 @findex gnus-uu-decode-unshar-view
7850 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
7851
7852 @item X v S
7853 @kindex X v S (Summary)
7854 @findex gnus-uu-decode-unshar-and-save-view
7855 Unshars, views and saves the current series
7856 (@code{gnus-uu-decode-unshar-and-save-view}).
7857 @end table
7858
7859
7860 @node PostScript Files
7861 @subsection PostScript Files
7862 @cindex PostScript
7863
7864 @table @kbd
7865
7866 @item X p
7867 @kindex X p (Summary)
7868 @findex gnus-uu-decode-postscript
7869 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
7870
7871 @item X P
7872 @kindex X P (Summary)
7873 @findex gnus-uu-decode-postscript-and-save
7874 Unpack and save the current PostScript series
7875 (@code{gnus-uu-decode-postscript-and-save}).
7876
7877 @item X v p
7878 @kindex X v p (Summary)
7879 @findex gnus-uu-decode-postscript-view
7880 View the current PostScript series
7881 (@code{gnus-uu-decode-postscript-view}).
7882
7883 @item X v P
7884 @kindex X v P (Summary)
7885 @findex gnus-uu-decode-postscript-and-save-view
7886 View and save the current PostScript series
7887 (@code{gnus-uu-decode-postscript-and-save-view}).
7888 @end table
7889
7890
7891 @node Other Files
7892 @subsection Other Files
7893
7894 @table @kbd
7895 @item X o
7896 @kindex X o (Summary)
7897 @findex gnus-uu-decode-save
7898 Save the current series
7899 (@code{gnus-uu-decode-save}).
7900
7901 @item X b
7902 @kindex X b (Summary)
7903 @findex gnus-uu-decode-binhex
7904 Unbinhex the current series (@code{gnus-uu-decode-binhex}).  This
7905 doesn't really work yet.
7906 @end table
7907
7908
7909 @node Decoding Variables
7910 @subsection Decoding Variables
7911
7912 Adjective, not verb.
7913
7914 @menu
7915 * Rule Variables::              Variables that say how a file is to be viewed.
7916 * Other Decode Variables::      Other decode variables.
7917 * Uuencoding and Posting::      Variables for customizing uuencoding.
7918 @end menu
7919
7920
7921 @node Rule Variables
7922 @subsubsection Rule Variables
7923 @cindex rule variables
7924
7925 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
7926 variables are of the form
7927
7928 @lisp
7929       (list '(regexp1 command2)
7930             '(regexp2 command2)
7931             ...)
7932 @end lisp
7933
7934 @table @code
7935
7936 @item gnus-uu-user-view-rules
7937 @vindex gnus-uu-user-view-rules
7938 @cindex sox
7939 This variable is consulted first when viewing files.  If you wish to use,
7940 for instance, @code{sox} to convert an @file{.au} sound file, you could
7941 say something like:
7942 @lisp
7943 (setq gnus-uu-user-view-rules
7944       (list '("\\\\.au$" "sox %s -t .aiff > /dev/audio")))
7945 @end lisp
7946
7947 @item gnus-uu-user-view-rules-end
7948 @vindex gnus-uu-user-view-rules-end
7949 This variable is consulted if Gnus couldn't make any matches from the
7950 user and default view rules.
7951
7952 @item gnus-uu-user-archive-rules
7953 @vindex gnus-uu-user-archive-rules
7954 This variable can be used to say what commands should be used to unpack
7955 archives.
7956 @end table
7957
7958
7959 @node Other Decode Variables
7960 @subsubsection Other Decode Variables
7961
7962 @table @code
7963 @vindex gnus-uu-grabbed-file-functions
7964
7965 @item gnus-uu-grabbed-file-functions
7966 All functions in this list will be called right after each file has been
7967 successfully decoded---so that you can move or view files right away,
7968 and don't have to wait for all files to be decoded before you can do
7969 anything.  Ready-made functions you can put in this list are:
7970
7971 @table @code
7972
7973 @item gnus-uu-grab-view
7974 @findex gnus-uu-grab-view
7975 View the file.
7976
7977 @item gnus-uu-grab-move
7978 @findex gnus-uu-grab-move
7979 Move the file (if you're using a saving function.)
7980 @end table
7981
7982 @item gnus-uu-be-dangerous
7983 @vindex gnus-uu-be-dangerous
7984 Specifies what to do if unusual situations arise during decoding.  If
7985 @code{nil}, be as conservative as possible.  If @code{t}, ignore things
7986 that didn't work, and overwrite existing files.  Otherwise, ask each
7987 time.
7988
7989 @item gnus-uu-ignore-files-by-name
7990 @vindex gnus-uu-ignore-files-by-name
7991 Files with name matching this regular expression won't be viewed.
7992
7993 @item gnus-uu-ignore-files-by-type
7994 @vindex gnus-uu-ignore-files-by-type
7995 Files with a @acronym{MIME} type matching this variable won't be viewed.
7996 Note that Gnus tries to guess what type the file is based on the name.
7997 @code{gnus-uu} is not a @acronym{MIME} package (yet), so this is slightly
7998 kludgey.
7999
8000 @item gnus-uu-tmp-dir
8001 @vindex gnus-uu-tmp-dir
8002 Where @code{gnus-uu} does its work.
8003
8004 @item gnus-uu-do-not-unpack-archives
8005 @vindex gnus-uu-do-not-unpack-archives
8006 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
8007 looking for files to display.
8008
8009 @item gnus-uu-view-and-save
8010 @vindex gnus-uu-view-and-save
8011 Non-@code{nil} means that the user will always be asked to save a file
8012 after viewing it.
8013
8014 @item gnus-uu-ignore-default-view-rules
8015 @vindex gnus-uu-ignore-default-view-rules
8016 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
8017 rules.
8018
8019 @item gnus-uu-ignore-default-archive-rules
8020 @vindex gnus-uu-ignore-default-archive-rules
8021 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
8022 unpacking commands.
8023
8024 @item gnus-uu-kill-carriage-return
8025 @vindex gnus-uu-kill-carriage-return
8026 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
8027 from articles.
8028
8029 @item gnus-uu-unmark-articles-not-decoded
8030 @vindex gnus-uu-unmark-articles-not-decoded
8031 Non-@code{nil} means that @code{gnus-uu} will mark unsuccessfully
8032 decoded articles as unread.
8033
8034 @item gnus-uu-correct-stripped-uucode
8035 @vindex gnus-uu-correct-stripped-uucode
8036 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
8037 uuencoded files that have had trailing spaces deleted.
8038
8039 @item gnus-uu-pre-uudecode-hook
8040 @vindex gnus-uu-pre-uudecode-hook
8041 Hook run before sending a message to @code{uudecode}.
8042
8043 @item gnus-uu-view-with-metamail
8044 @vindex gnus-uu-view-with-metamail
8045 @cindex metamail
8046 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
8047 commands defined by the rule variables and just fudge a @acronym{MIME}
8048 content type based on the file name.  The result will be fed to
8049 @code{metamail} for viewing.
8050
8051 @item gnus-uu-save-in-digest
8052 @vindex gnus-uu-save-in-digest
8053 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
8054 decoding, will save in digests.  If this variable is @code{nil},
8055 @code{gnus-uu} will just save everything in a file without any
8056 embellishments.  The digesting almost conforms to RFC 1153---no easy way
8057 to specify any meaningful volume and issue numbers were found, so I
8058 simply dropped them.
8059
8060 @end table
8061
8062
8063 @node Uuencoding and Posting
8064 @subsubsection Uuencoding and Posting
8065
8066 @table @code
8067
8068 @item gnus-uu-post-include-before-composing
8069 @vindex gnus-uu-post-include-before-composing
8070 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
8071 before you compose the article.  If this variable is @code{t}, you can
8072 either include an encoded file with @kbd{C-c C-i} or have one included
8073 for you when you post the article.
8074
8075 @item gnus-uu-post-length
8076 @vindex gnus-uu-post-length
8077 Maximum length of an article.  The encoded file will be split into how
8078 many articles it takes to post the entire file.
8079
8080 @item gnus-uu-post-threaded
8081 @vindex gnus-uu-post-threaded
8082 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
8083 thread.  This may not be smart, as no other decoder I have seen is able
8084 to follow threads when collecting uuencoded articles.  (Well, I have
8085 seen one package that does that---@code{gnus-uu}, but somehow, I don't
8086 think that counts@dots{}) Default is @code{nil}.
8087
8088 @item gnus-uu-post-separate-description
8089 @vindex gnus-uu-post-separate-description
8090 Non-@code{nil} means that the description will be posted in a separate
8091 article.  The first article will typically be numbered (0/x).  If this
8092 variable is @code{nil}, the description the user enters will be included
8093 at the beginning of the first article, which will be numbered (1/x).
8094 Default is @code{t}.
8095
8096 @end table
8097
8098
8099 @node Viewing Files
8100 @subsection Viewing Files
8101 @cindex viewing files
8102 @cindex pseudo-articles
8103
8104 After decoding, if the file is some sort of archive, Gnus will attempt
8105 to unpack the archive and see if any of the files in the archive can be
8106 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
8107 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
8108 uncompress and de-tar the main file, and then view the two pictures.
8109 This unpacking process is recursive, so if the archive contains archives
8110 of archives, it'll all be unpacked.
8111
8112 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
8113 extracted file into the summary buffer.  If you go to these
8114 ``articles'', you will be prompted for a command to run (usually Gnus
8115 will make a suggestion), and then the command will be run.
8116
8117 @vindex gnus-view-pseudo-asynchronously
8118 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
8119 until the viewing is done before proceeding.
8120
8121 @vindex gnus-view-pseudos
8122 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
8123 the pseudo-articles into the summary buffer, but view them
8124 immediately.  If this variable is @code{not-confirm}, the user won't even
8125 be asked for a confirmation before viewing is done.
8126
8127 @vindex gnus-view-pseudos-separately
8128 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
8129 pseudo-article will be created for each file to be viewed.  If
8130 @code{nil}, all files that use the same viewing command will be given as
8131 a list of parameters to that command.
8132
8133 @vindex gnus-insert-pseudo-articles
8134 If @code{gnus-insert-pseudo-articles} is non-@code{nil}, insert
8135 pseudo-articles when decoding.  It is @code{t} by default.
8136
8137 So; there you are, reading your @emph{pseudo-articles} in your
8138 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
8139 Why isn't anything real anymore? How did we get here?
8140
8141
8142 @node Article Treatment
8143 @section Article Treatment
8144
8145 Reading through this huge manual, you may have quite forgotten that the
8146 object of newsreaders is to actually, like, read what people have
8147 written.  Reading articles.  Unfortunately, people are quite bad at
8148 writing, so there are tons of functions and variables to make reading
8149 these articles easier.
8150
8151 @menu
8152 * Article Highlighting::        You want to make the article look like fruit salad.
8153 * Article Fontisizing::         Making emphasized text look nice.
8154 * Article Hiding::              You also want to make certain info go away.
8155 * Article Washing::             Lots of way-neat functions to make life better.
8156 * Article Header::              Doing various header transformations.
8157 * Article Buttons::             Click on URLs, Message-IDs, addresses and the like.
8158 * Article Button Levels::       Controlling appearance of buttons.
8159 * Article Date::                Grumble, UT!
8160 * Article Display::             Display various stuff---X-Face, Picons, Smileys
8161 * Article Signature::           What is a signature?
8162 * Article Miscellanea::         Various other stuff.
8163 @end menu
8164
8165
8166 @node Article Highlighting
8167 @subsection Article Highlighting
8168 @cindex highlighting
8169
8170 Not only do you want your article buffer to look like fruit salad, but
8171 you want it to look like technicolor fruit salad.
8172
8173 @table @kbd
8174
8175 @item W H a
8176 @kindex W H a (Summary)
8177 @findex gnus-article-highlight
8178 @findex gnus-article-maybe-highlight
8179 Do much highlighting of the current article
8180 (@code{gnus-article-highlight}).  This function highlights header, cited
8181 text, the signature, and adds buttons to the body and the head.
8182
8183 @item W H h
8184 @kindex W H h (Summary)
8185 @findex gnus-article-highlight-headers
8186 @vindex gnus-header-face-alist
8187 Highlight the headers (@code{gnus-article-highlight-headers}).  The
8188 highlighting will be done according to the @code{gnus-header-face-alist}
8189 variable, which is a list where each element has the form
8190 @code{(@var{regexp} @var{name} @var{content})}.
8191 @var{regexp} is a regular expression for matching the
8192 header, @var{name} is the face used for highlighting the header name
8193 (@pxref{Faces and Fonts}) and @var{content} is the face for highlighting
8194 the header value.  The first match made will be used.  Note that
8195 @var{regexp} shouldn't have @samp{^} prepended---Gnus will add one.
8196
8197 @item W H c
8198 @kindex W H c (Summary)
8199 @findex gnus-article-highlight-citation
8200 Highlight cited text (@code{gnus-article-highlight-citation}).
8201
8202 Some variables to customize the citation highlights:
8203
8204 @table @code
8205 @vindex gnus-cite-parse-max-size
8206
8207 @item gnus-cite-parse-max-size
8208 If the article size if bigger than this variable (which is 25000 by
8209 default), no citation highlighting will be performed.
8210
8211 @item gnus-cite-max-prefix
8212 @vindex gnus-cite-max-prefix
8213 Maximum possible length for a citation prefix (default 20).
8214
8215 @item gnus-cite-face-list
8216 @vindex gnus-cite-face-list
8217 List of faces used for highlighting citations (@pxref{Faces and Fonts}).
8218 When there are citations from multiple articles in the same message,
8219 Gnus will try to give each citation from each article its own face.
8220 This should make it easier to see who wrote what.
8221
8222 @item gnus-supercite-regexp
8223 @vindex gnus-supercite-regexp
8224 Regexp matching normal Supercite attribution lines.
8225
8226 @item gnus-supercite-secondary-regexp
8227 @vindex gnus-supercite-secondary-regexp
8228 Regexp matching mangled Supercite attribution lines.
8229
8230 @item gnus-cite-minimum-match-count
8231 @vindex gnus-cite-minimum-match-count
8232 Minimum number of identical prefixes we have to see before we believe
8233 that it's a citation.
8234
8235 @item gnus-cite-attribution-prefix
8236 @vindex gnus-cite-attribution-prefix
8237 Regexp matching the beginning of an attribution line.
8238
8239 @item gnus-cite-attribution-suffix
8240 @vindex gnus-cite-attribution-suffix
8241 Regexp matching the end of an attribution line.
8242
8243 @item gnus-cite-attribution-face
8244 @vindex gnus-cite-attribution-face
8245 Face used for attribution lines.  It is merged with the face for the
8246 cited text belonging to the attribution.
8247
8248 @item gnus-cite-ignore-quoted-from
8249 @vindex gnus-cite-ignore-quoted-from
8250 If non-@code{nil}, no citation highlighting will be performed on lines
8251 beginning with @samp{>From }.  Those lines may have been quoted by MTAs
8252 in order not to mix up with the envelope From line.  The default value
8253 is @code{t}.
8254
8255 @end table
8256
8257
8258 @item W H s
8259 @kindex W H s (Summary)
8260 @vindex gnus-signature-separator
8261 @vindex gnus-signature-face
8262 @findex gnus-article-highlight-signature
8263 Highlight the signature (@code{gnus-article-highlight-signature}).
8264 Everything after @code{gnus-signature-separator} (@pxref{Article
8265 Signature}) in an article will be considered a signature and will be
8266 highlighted with @code{gnus-signature-face}, which is @code{italic} by
8267 default.
8268
8269 @end table
8270
8271 @xref{Customizing Articles}, for how to highlight articles automatically.
8272
8273
8274 @node Article Fontisizing
8275 @subsection Article Fontisizing
8276 @cindex emphasis
8277 @cindex article emphasis
8278
8279 @findex gnus-article-emphasize
8280 @kindex W e (Summary)
8281 People commonly add emphasis to words in news articles by writing things
8282 like @samp{_this_} or @samp{*this*} or @samp{/this/}.  Gnus can make
8283 this look nicer by running the article through the @kbd{W e}
8284 (@code{gnus-article-emphasize}) command.
8285
8286 @vindex gnus-emphasis-alist
8287 How the emphasis is computed is controlled by the
8288 @code{gnus-emphasis-alist} variable.  This is an alist where the first
8289 element is a regular expression to be matched.  The second is a number
8290 that says what regular expression grouping is used to find the entire
8291 emphasized word.  The third is a number that says what regexp grouping
8292 should be displayed and highlighted.  (The text between these two
8293 groupings will be hidden.)  The fourth is the face used for
8294 highlighting.
8295
8296 @lisp
8297 (setq gnus-emphasis-alist
8298       '(("_\\(\\w+\\)_" 0 1 gnus-emphasis-underline)
8299         ("\\*\\(\\w+\\)\\*" 0 1 gnus-emphasis-bold)))
8300 @end lisp
8301
8302 @cindex slash
8303 @cindex asterisk
8304 @cindex underline
8305 @cindex /
8306 @cindex *
8307
8308 @vindex gnus-emphasis-underline
8309 @vindex gnus-emphasis-bold
8310 @vindex gnus-emphasis-italic
8311 @vindex gnus-emphasis-underline-bold
8312 @vindex gnus-emphasis-underline-italic
8313 @vindex gnus-emphasis-bold-italic
8314 @vindex gnus-emphasis-underline-bold-italic
8315 By default, there are seven rules, and they use the following faces:
8316 @code{gnus-emphasis-bold}, @code{gnus-emphasis-italic},
8317 @code{gnus-emphasis-underline}, @code{gnus-emphasis-bold-italic},
8318 @code{gnus-emphasis-underline-italic},
8319 @code{gnus-emphasis-underline-bold}, and
8320 @code{gnus-emphasis-underline-bold-italic}.
8321
8322 If you want to change these faces, you can either use @kbd{M-x
8323 customize}, or you can use @code{copy-face}.  For instance, if you want
8324 to make @code{gnus-emphasis-italic} use a red face instead, you could
8325 say something like:
8326
8327 @lisp
8328 (copy-face 'red 'gnus-emphasis-italic)
8329 @end lisp
8330
8331 @vindex gnus-group-highlight-words-alist
8332
8333 If you want to highlight arbitrary words, you can use the
8334 @code{gnus-group-highlight-words-alist} variable, which uses the same
8335 syntax as @code{gnus-emphasis-alist}.  The @code{highlight-words} group
8336 parameter (@pxref{Group Parameters}) can also be used.
8337
8338 @xref{Customizing Articles}, for how to fontize articles automatically.
8339
8340
8341 @node Article Hiding
8342 @subsection Article Hiding
8343 @cindex article hiding
8344
8345 Or rather, hiding certain things in each article.  There usually is much
8346 too much cruft in most articles.
8347
8348 @table @kbd
8349
8350 @item W W a
8351 @kindex W W a (Summary)
8352 @findex gnus-article-hide
8353 Do quite a lot of hiding on the article buffer
8354 (@kbd{gnus-article-hide}).  In particular, this function will hide
8355 headers, @acronym{PGP}, cited text and the signature.
8356
8357 @item W W h
8358 @kindex W W h (Summary)
8359 @findex gnus-article-hide-headers
8360 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
8361 Headers}.
8362
8363 @item W W b
8364 @kindex W W b (Summary)
8365 @findex gnus-article-hide-boring-headers
8366 Hide headers that aren't particularly interesting
8367 (@code{gnus-article-hide-boring-headers}).  @xref{Hiding Headers}.
8368
8369 @item W W s
8370 @kindex W W s (Summary)
8371 @findex gnus-article-hide-signature
8372 Hide signature (@code{gnus-article-hide-signature}).  @xref{Article
8373 Signature}.
8374
8375 @item W W l
8376 @kindex W W l (Summary)
8377 @findex gnus-article-hide-list-identifiers
8378 @vindex gnus-list-identifiers
8379 Strip list identifiers specified in @code{gnus-list-identifiers}.  These
8380 are strings some mailing list servers add to the beginning of all
8381 @code{Subject} headers---for example, @samp{[zebra 4711]}.  Any leading
8382 @samp{Re: } is skipped before stripping.  @code{gnus-list-identifiers}
8383 may not contain @code{\\(..\\)}.
8384
8385 @table @code
8386
8387 @item gnus-list-identifiers
8388 @vindex gnus-list-identifiers
8389 A regular expression that matches list identifiers to be removed from
8390 subject.  This can also be a list of regular expressions.
8391
8392 @end table
8393
8394 @item W W P
8395 @kindex W W P (Summary)
8396 @findex gnus-article-hide-pem
8397 Hide @acronym{PEM} (privacy enhanced messages) cruft
8398 (@code{gnus-article-hide-pem}).
8399
8400 @item W W B
8401 @kindex W W B (Summary)
8402 @findex gnus-article-strip-banner
8403 @vindex gnus-article-banner-alist
8404 @vindex gnus-article-address-banner-alist
8405 @cindex banner
8406 @cindex OneList
8407 @cindex stripping advertisements
8408 @cindex advertisements
8409 Strip the banner specified by the @code{banner} group parameter
8410 (@code{gnus-article-strip-banner}).  This is mainly used to hide those
8411 annoying banners and/or signatures that some mailing lists and moderated
8412 groups adds to all the messages.  The way to use this function is to add
8413 the @code{banner} group parameter (@pxref{Group Parameters}) to the
8414 group you want banners stripped from.  The parameter either be a string,
8415 which will be interpreted as a regular expression matching text to be
8416 removed, or the symbol @code{signature}, meaning that the (last)
8417 signature should be removed, or other symbol, meaning that the
8418 corresponding regular expression in @code{gnus-article-banner-alist} is
8419 used.
8420
8421 Regardless of a group, you can hide things like advertisements only when
8422 the sender of an article has a certain mail address specified in
8423 @code{gnus-article-address-banner-alist}.
8424
8425 @table @code
8426
8427 @item gnus-article-address-banner-alist
8428 @vindex gnus-article-address-banner-alist
8429 Alist of mail addresses and banners.  Each element has the form
8430 @code{(@var{address} . @var{banner})}, where @var{address} is a regexp
8431 matching a mail address in the From header, @var{banner} is one of a
8432 symbol @code{signature}, an item in @code{gnus-article-banner-alist},
8433 a regexp and @code{nil}.  If @var{address} matches author's mail
8434 address, it will remove things like advertisements.  For example, if a
8435 sender has the mail address @samp{hail@@yoo-hoo.co.jp} and there is a
8436 banner something like @samp{Do You Yoo-hoo!?} in all articles he
8437 sends, you can use the following element to remove them:
8438
8439 @lisp
8440 ("@@yoo-hoo\\.co\\.jp\\'" .
8441  "\n_+\nDo You Yoo-hoo!\\?\n.*\n.*\n")
8442 @end lisp
8443
8444 @end table
8445
8446 @item W W c
8447 @kindex W W c (Summary)
8448 @findex gnus-article-hide-citation
8449 Hide citation (@code{gnus-article-hide-citation}).  Some variables for
8450 customizing the hiding:
8451
8452 @table @code
8453
8454 @item gnus-cited-opened-text-button-line-format
8455 @itemx gnus-cited-closed-text-button-line-format
8456 @vindex gnus-cited-closed-text-button-line-format
8457 @vindex gnus-cited-opened-text-button-line-format
8458 Gnus adds buttons to show where the cited text has been hidden, and to
8459 allow toggle hiding the text.  The format of the variable is specified
8460 by these format-like variable (@pxref{Formatting Variables}).  These
8461 specs are valid:
8462
8463 @table @samp
8464 @item b
8465 Starting point of the hidden text.
8466 @item e
8467 Ending point of the hidden text.
8468 @item l
8469 Number of characters in the hidden region.
8470 @item n
8471 Number of lines of hidden text.
8472 @end table
8473
8474 @item gnus-cited-lines-visible
8475 @vindex gnus-cited-lines-visible
8476 The number of lines at the beginning of the cited text to leave
8477 shown.  This can also be a cons cell with the number of lines at the top
8478 and bottom of the text, respectively, to remain visible.
8479
8480 @end table
8481
8482 @item W W C-c
8483 @kindex W W C-c (Summary)
8484 @findex gnus-article-hide-citation-maybe
8485
8486 Hide citation (@code{gnus-article-hide-citation-maybe}) depending on the
8487 following two variables:
8488
8489 @table @code
8490 @item gnus-cite-hide-percentage
8491 @vindex gnus-cite-hide-percentage
8492 If the cited text is of a bigger percentage than this variable (default
8493 50), hide the cited text.
8494
8495 @item gnus-cite-hide-absolute
8496 @vindex gnus-cite-hide-absolute
8497 The cited text must have at least this length (default 10) before it
8498 is hidden.
8499 @end table
8500
8501 @item W W C
8502 @kindex W W C (Summary)
8503 @findex gnus-article-hide-citation-in-followups
8504 Hide cited text in articles that aren't roots
8505 (@code{gnus-article-hide-citation-in-followups}).  This isn't very
8506 useful as an interactive command, but might be a handy function to stick
8507 have happen automatically (@pxref{Customizing Articles}).
8508
8509 @end table
8510
8511 All these ``hiding'' commands are toggles, but if you give a negative
8512 prefix to these commands, they will show what they have previously
8513 hidden.  If you give a positive prefix, they will always hide.
8514
8515 Also @pxref{Article Highlighting} for further variables for
8516 citation customization.
8517
8518 @xref{Customizing Articles}, for how to hide article elements
8519 automatically.
8520
8521
8522 @node Article Washing
8523 @subsection Article Washing
8524 @cindex washing
8525 @cindex article washing
8526
8527 We call this ``article washing'' for a really good reason.  Namely, the
8528 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
8529
8530 @dfn{Washing} is defined by us as ``changing something from something to
8531 something else'', but normally results in something looking better.
8532 Cleaner, perhaps.
8533
8534 @xref{Customizing Articles}, if you want to change how Gnus displays
8535 articles by default.
8536
8537 @table @kbd
8538
8539 @item C-u g
8540 This is not really washing, it's sort of the opposite of washing.  If
8541 you type this, you see the article exactly as it exists on disk or on
8542 the server.
8543
8544 @item g
8545 Force redisplaying of the current article
8546 (@code{gnus-summary-show-article}).  This is also not really washing.
8547 If you type this, you see the article without any previously applied
8548 interactive Washing functions but with all default treatments
8549 (@pxref{Customizing Articles}).
8550
8551 @item W l
8552 @kindex W l (Summary)
8553 @findex gnus-summary-stop-page-breaking
8554 Remove page breaks from the current article
8555 (@code{gnus-summary-stop-page-breaking}).  @xref{Misc Article}, for page
8556 delimiters.
8557
8558 @item W r
8559 @kindex W r (Summary)
8560 @findex gnus-summary-caesar-message
8561 @c @icon{gnus-summary-caesar-message}
8562 Do a Caesar rotate (rot13) on the article buffer
8563 (@code{gnus-summary-caesar-message}).
8564 Unreadable articles that tell you to read them with Caesar rotate or rot13.
8565 (Typically offensive jokes and such.)
8566
8567 It's commonly called ``rot13'' because each letter is rotated 13
8568 positions in the alphabet, e. g. @samp{B} (letter #2) -> @samp{O} (letter
8569 #15).  It is sometimes referred to as ``Caesar rotate'' because Caesar
8570 is rumored to have employed this form of, uh, somewhat weak encryption.
8571
8572 @item W m
8573 @kindex W m (Summary)
8574 @findex gnus-summary-morse-message
8575 Morse decode the article buffer (@code{gnus-summary-morse-message}).
8576
8577 @item W i
8578 @kindex W i (Summary)
8579 @findex gnus-summary-idna-message
8580 Decode IDNA encoded domain names in the current articles.  IDNA
8581 encoded domain names looks like @samp{xn--bar}.  If a string remain
8582 unencoded after running invoking this, it is likely an invalid IDNA
8583 string (@samp{xn--bar} is invalid).  You must have GNU Libidn
8584 (@url{http://www.gnu.org/software/libidn/}) installed for this command
8585 to work.
8586
8587 @item W t
8588 @item t
8589 @kindex W t (Summary)
8590 @kindex t (Summary)
8591 @findex gnus-summary-toggle-header
8592 Toggle whether to display all headers in the article buffer
8593 (@code{gnus-summary-toggle-header}).
8594
8595 @item W v
8596 @kindex W v (Summary)
8597 @findex gnus-summary-verbose-headers
8598 Toggle whether to display all headers in the article buffer permanently
8599 (@code{gnus-summary-verbose-headers}).
8600
8601 @item W o
8602 @kindex W o (Summary)
8603 @findex gnus-article-treat-overstrike
8604 Treat overstrike (@code{gnus-article-treat-overstrike}).
8605
8606 @item W d
8607 @kindex W d (Summary)
8608 @findex gnus-article-treat-dumbquotes
8609 @vindex gnus-article-dumbquotes-map
8610 @cindex Smartquotes
8611 @cindex M****s*** sm*rtq**t*s
8612 @cindex Latin 1
8613 Treat M****s*** sm*rtq**t*s according to
8614 @code{gnus-article-dumbquotes-map}
8615 (@code{gnus-article-treat-dumbquotes}).  Note that this function guesses
8616 whether a character is a sm*rtq**t* or not, so it should only be used
8617 interactively.
8618
8619 Sm*rtq**t*s are M****s***'s unilateral extension to the character map in
8620 an attempt to provide more quoting characters.  If you see something
8621 like @code{\222} or @code{\264} where you're expecting some kind of
8622 apostrophe or quotation mark, then try this wash.
8623
8624 @item W Y f
8625 @kindex W Y f (Summary)
8626 @findex gnus-article-outlook-deuglify-article
8627 @cindex Outlook Express
8628 Full deuglify of broken Outlook (Express) articles: Treat dumbquotes,
8629 unwrap lines, repair attribution and rearrange citation.
8630 (@code{gnus-article-outlook-deuglify-article}).
8631
8632 @item W Y u
8633 @kindex W Y u (Summary)
8634 @findex gnus-article-outlook-unwrap-lines
8635 @vindex gnus-outlook-deuglify-unwrap-min
8636 @vindex gnus-outlook-deuglify-unwrap-max
8637 Unwrap lines that appear to be wrapped citation lines.  You can control
8638 what lines will be unwrapped by frobbing
8639 @code{gnus-outlook-deuglify-unwrap-min} and
8640 @code{gnus-outlook-deuglify-unwrap-max}, indicating the minimum and
8641 maximum length of an unwrapped citation line.
8642 (@code{gnus-article-outlook-unwrap-lines}).
8643
8644 @item W Y a
8645 @kindex W Y a (Summary)
8646 @findex gnus-article-outlook-repair-attribution
8647 Repair a broken attribution line.@*
8648 (@code{gnus-article-outlook-repair-attribution}).
8649
8650 @item W Y c
8651 @kindex W Y c (Summary)
8652 @findex gnus-article-outlook-rearrange-citation
8653 Repair broken citations by rearranging the text.
8654 (@code{gnus-article-outlook-rearrange-citation}).
8655
8656 @item W w
8657 @kindex W w (Summary)
8658 @findex gnus-article-fill-cited-article
8659 Do word wrap (@code{gnus-article-fill-cited-article}).
8660
8661 You can give the command a numerical prefix to specify the width to use
8662 when filling.
8663
8664 @item W Q
8665 @kindex W Q (Summary)
8666 @findex gnus-article-fill-long-lines
8667 Fill long lines (@code{gnus-article-fill-long-lines}).
8668
8669 @item W C
8670 @kindex W C (Summary)
8671 @findex gnus-article-capitalize-sentences
8672 Capitalize the first word in each sentence
8673 (@code{gnus-article-capitalize-sentences}).
8674
8675 @item W c
8676 @kindex W c (Summary)
8677 @findex gnus-article-remove-cr
8678 Translate CRLF pairs (i. e., @samp{^M}s on the end of the lines) into LF
8679 (this takes care of DOS line endings), and then translate any remaining
8680 CRs into LF (this takes care of Mac line endings)
8681 (@code{gnus-article-remove-cr}).
8682
8683 @item W q
8684 @kindex W q (Summary)
8685 @findex gnus-article-de-quoted-unreadable
8686 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
8687 Quoted-Printable is one common @acronym{MIME} encoding employed when
8688 sending non-@acronym{ASCII} (i.e., 8-bit) articles.  It typically
8689 makes strings like @samp{d@'ej@`a vu} look like @samp{d=E9j=E0 vu},
8690 which doesn't look very readable to me.  Note that this is usually
8691 done automatically by Gnus if the message in question has a
8692 @code{Content-Transfer-Encoding} header that says that this encoding
8693 has been done.  If a prefix is given, a charset will be asked for.
8694
8695 @item W 6
8696 @kindex W 6 (Summary)
8697 @findex gnus-article-de-base64-unreadable
8698 Treat base64 (@code{gnus-article-de-base64-unreadable}).  Base64 is
8699 one common @acronym{MIME} encoding employed when sending
8700 non-@acronym{ASCII} (i.e., 8-bit) articles.  Note that this is
8701 usually done automatically by Gnus if the message in question has a
8702 @code{Content-Transfer-Encoding} header that says that this encoding
8703 has been done.  If a prefix is given, a charset will be asked for.
8704
8705 @item W Z
8706 @kindex W Z (Summary)
8707 @findex gnus-article-decode-HZ
8708 Treat HZ or HZP (@code{gnus-article-decode-HZ}).  HZ (or HZP) is one
8709 common encoding employed when sending Chinese articles.  It typically
8710 makes strings look like @samp{~@{<:Ky2;S@{#,NpJ)l6HK!#~@}}.
8711
8712 @item W A
8713 @kindex W A (Summary)
8714 @findex gnus-article-treat-ansi-sequences
8715 @cindex @acronym{ANSI} control sequences
8716 Translate @acronym{ANSI} SGR control sequences into overlays or
8717 extents (@code{gnus-article-treat-ansi-sequences}).  @acronym{ANSI}
8718 sequences are used in some Chinese hierarchies for highlighting.
8719
8720 @item W u
8721 @kindex W u (Summary)
8722 @findex gnus-article-unsplit-urls
8723 Remove newlines from within URLs.  Some mailers insert newlines into
8724 outgoing email messages to keep lines short.  This reformatting can
8725 split long URLs onto multiple lines.  Repair those URLs by removing
8726 the newlines (@code{gnus-article-unsplit-urls}).
8727
8728 @item W h
8729 @kindex W h (Summary)
8730 @findex gnus-article-wash-html
8731 Treat @acronym{HTML} (@code{gnus-article-wash-html}).  Note that this is
8732 usually done automatically by Gnus if the message in question has a
8733 @code{Content-Type} header that says that the message is @acronym{HTML}.
8734
8735 If a prefix is given, a charset will be asked for.  If it is a number,
8736 the charset defined in @code{gnus-summary-show-article-charset-alist}
8737 (@pxref{Paging the Article}) will be used.
8738
8739 @vindex gnus-article-wash-function
8740 The default is to use the function specified by
8741 @code{mm-text-html-renderer} (@pxref{Display Customization, ,Display
8742 Customization, emacs-mime, The Emacs MIME Manual}) to convert the
8743 @acronym{HTML}, but this is controlled by the
8744 @code{gnus-article-wash-function} variable.  Pre-defined functions you
8745 can use include:
8746
8747 @table @code
8748 @item w3
8749 Use Emacs/W3.
8750
8751 @item w3m
8752 Use @uref{http://emacs-w3m.namazu.org/, emacs-w3m}.
8753
8754 @item w3m-standalone
8755 Use @uref{http://w3m.sourceforge.net/, w3m}.
8756
8757 @item links
8758 Use @uref{http://links.sf.net/, Links}.
8759
8760 @item lynx
8761 Use @uref{http://lynx.isc.org/, Lynx}.
8762
8763 @item html2text
8764 Use html2text---a simple @acronym{HTML} converter included with Gnus.
8765
8766 @end table
8767
8768 @item W b
8769 @kindex W b (Summary)
8770 @findex gnus-article-add-buttons
8771 Add clickable buttons to the article (@code{gnus-article-add-buttons}).
8772 @xref{Article Buttons}.
8773
8774 @item W B
8775 @kindex W B (Summary)
8776 @findex gnus-article-add-buttons-to-head
8777 Add clickable buttons to the article headers
8778 (@code{gnus-article-add-buttons-to-head}).
8779
8780 @item W p
8781 @kindex W p (Summary)
8782 @findex gnus-article-verify-x-pgp-sig
8783 Verify a signed control message
8784 (@code{gnus-article-verify-x-pgp-sig}).  Control messages such as
8785 @code{newgroup} and @code{checkgroups} are usually signed by the
8786 hierarchy maintainer.  You need to add the @acronym{PGP} public key of
8787 the maintainer to your keyring to verify the
8788 message.@footnote{@acronym{PGP} keys for many hierarchies are
8789 available at @uref{ftp://ftp.isc.org/pub/pgpcontrol/README.html}}
8790
8791 @item W s
8792 @kindex W s (Summary)
8793 @findex gnus-summary-force-verify-and-decrypt
8794 Verify a signed (@acronym{PGP}, @acronym{PGP/MIME} or
8795 @acronym{S/MIME}) message
8796 (@code{gnus-summary-force-verify-and-decrypt}). @xref{Security}.
8797
8798 @item W a
8799 @kindex W a (Summary)
8800 @findex gnus-article-strip-headers-in-body
8801 Strip headers like the @code{X-No-Archive} header from the beginning of
8802 article bodies (@code{gnus-article-strip-headers-in-body}).
8803
8804 @item W E l
8805 @kindex W E l (Summary)
8806 @findex gnus-article-strip-leading-blank-lines
8807 Remove all blank lines from the beginning of the article
8808 (@code{gnus-article-strip-leading-blank-lines}).
8809
8810 @item W E m
8811 @kindex W E m (Summary)
8812 @findex gnus-article-strip-multiple-blank-lines
8813 Replace all blank lines with empty lines and then all multiple empty
8814 lines with a single empty line.
8815 (@code{gnus-article-strip-multiple-blank-lines}).
8816
8817 @item W E t
8818 @kindex W E t (Summary)
8819 @findex gnus-article-remove-trailing-blank-lines
8820 Remove all blank lines at the end of the article
8821 (@code{gnus-article-remove-trailing-blank-lines}).
8822
8823 @item W E a
8824 @kindex W E a (Summary)
8825 @findex gnus-article-strip-blank-lines
8826 Do all the three commands above
8827 (@code{gnus-article-strip-blank-lines}).
8828
8829 @item W E A
8830 @kindex W E A (Summary)
8831 @findex gnus-article-strip-all-blank-lines
8832 Remove all blank lines
8833 (@code{gnus-article-strip-all-blank-lines}).
8834
8835 @item W E s
8836 @kindex W E s (Summary)
8837 @findex gnus-article-strip-leading-space
8838 Remove all white space from the beginning of all lines of the article
8839 body (@code{gnus-article-strip-leading-space}).
8840
8841 @item W E e
8842 @kindex W E e (Summary)
8843 @findex gnus-article-strip-trailing-space
8844 Remove all white space from the end of all lines of the article
8845 body (@code{gnus-article-strip-trailing-space}).
8846
8847 @end table
8848
8849 @xref{Customizing Articles}, for how to wash articles automatically.
8850
8851
8852 @node Article Header
8853 @subsection Article Header
8854
8855 These commands perform various transformations of article header.
8856
8857 @table @kbd
8858
8859 @item W G u
8860 @kindex W G u (Summary)
8861 @findex gnus-article-treat-unfold-headers
8862 Unfold folded header lines (@code{gnus-article-treat-unfold-headers}).
8863
8864 @item W G n
8865 @kindex W G n (Summary)
8866 @findex gnus-article-treat-fold-newsgroups
8867 Fold the @code{Newsgroups} and @code{Followup-To} headers
8868 (@code{gnus-article-treat-fold-newsgroups}).
8869
8870 @item W G f
8871 @kindex W G f (Summary)
8872 @findex gnus-article-treat-fold-headers
8873 Fold all the message headers
8874 (@code{gnus-article-treat-fold-headers}).
8875
8876 @item W E w
8877 @kindex W E w (Summary)
8878 @findex gnus-article-remove-leading-whitespace
8879 Remove excessive whitespace from all headers
8880 (@code{gnus-article-remove-leading-whitespace}).
8881
8882 @end table
8883
8884
8885 @node Article Buttons
8886 @subsection Article Buttons
8887 @cindex buttons
8888
8889 People often include references to other stuff in articles, and it would
8890 be nice if Gnus could just fetch whatever it is that people talk about
8891 with the minimum of fuzz when you hit @kbd{RET} or use the middle mouse
8892 button on these references.
8893
8894 @vindex gnus-button-man-handler
8895 Gnus adds @dfn{buttons} to certain standard references by default:
8896 Well-formed URLs, mail addresses, Message-IDs, Info links, man pages and
8897 Emacs or Gnus related references.  This is controlled by two variables,
8898 one that handles article bodies and one that handles article heads:
8899
8900 @table @code
8901
8902 @item gnus-button-alist
8903 @vindex gnus-button-alist
8904 This is an alist where each entry has this form:
8905
8906 @lisp
8907 (@var{regexp} @var{button-par} @var{use-p} @var{function} @var{data-par})
8908 @end lisp
8909
8910 @table @var
8911
8912 @item regexp
8913 All text that match this regular expression (case insensitive) will be
8914 considered an external reference.  Here's a typical regexp that matches
8915 embedded URLs: @samp{<URL:\\([^\n\r>]*\\)>}.  This can also be a
8916 variable containing a regexp, useful variables to use include
8917 @code{gnus-button-url-regexp} and @code{gnus-button-mid-or-mail-regexp}.
8918
8919 @item button-par
8920 Gnus has to know which parts of the matches is to be highlighted.  This
8921 is a number that says what sub-expression of the regexp is to be
8922 highlighted.  If you want it all highlighted, you use 0 here.
8923
8924 @item use-p
8925 This form will be @code{eval}ed, and if the result is non-@code{nil},
8926 this is considered a match.  This is useful if you want extra sifting to
8927 avoid false matches.  Often variables named
8928 @code{gnus-button-@var{*}-level} are used here, @xref{Article Button
8929 Levels}, but any other form may be used too.
8930
8931 @c @code{use-p} is @code{eval}ed only if @code{regexp} matches.
8932
8933 @item function
8934 This function will be called when you click on this button.
8935
8936 @item data-par
8937 As with @var{button-par}, this is a sub-expression number, but this one
8938 says which part of the match is to be sent as data to @var{function}.
8939
8940 @end table
8941
8942 So the full entry for buttonizing URLs is then
8943
8944 @lisp
8945 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
8946 @end lisp
8947
8948 @item gnus-header-button-alist
8949 @vindex gnus-header-button-alist
8950 This is just like the other alist, except that it is applied to the
8951 article head only, and that each entry has an additional element that is
8952 used to say what headers to apply the buttonize coding to:
8953
8954 @lisp
8955 (@var{header} @var{regexp} @var{button-par} @var{use-p} @var{function} @var{data-par})
8956 @end lisp
8957
8958 @var{header} is a regular expression.
8959 @end table
8960
8961 @subsubsection Related variables and functions
8962
8963 @table @code
8964 @item gnus-button-@var{*}-level
8965 @xref{Article Button Levels}.
8966
8967 @c Stuff related to gnus-button-browse-level
8968
8969 @item gnus-button-url-regexp
8970 @vindex gnus-button-url-regexp
8971 A regular expression that matches embedded URLs.  It is used in the
8972 default values of the variables above.
8973
8974 @c Stuff related to gnus-button-man-level
8975
8976 @item gnus-button-man-handler
8977 @vindex gnus-button-man-handler
8978 The function to use for displaying man pages.  It must take at least one
8979 argument with a string naming the man page.
8980
8981 @c Stuff related to gnus-button-message-level
8982
8983 @item gnus-button-mid-or-mail-regexp
8984 @vindex gnus-button-mid-or-mail-regexp
8985 Regular expression that matches a message ID or a mail address.
8986
8987 @item gnus-button-prefer-mid-or-mail
8988 @vindex gnus-button-prefer-mid-or-mail
8989 This variable determines what to do when the button on a string as
8990 @samp{foo123@@bar.invalid} is pushed.  Strings like this can be either a
8991 message ID or a mail address.  If it is one of the symbols @code{mid} or
8992 @code{mail}, Gnus will always assume that the string is a message ID or
8993 a mail address, respectively.  If this variable is set to the symbol
8994 @code{ask}, always query the user what do do.  If it is a function, this
8995 function will be called with the string as its only argument.  The
8996 function must return @code{mid}, @code{mail}, @code{invalid} or
8997 @code{ask}.  The default value is the function
8998 @code{gnus-button-mid-or-mail-heuristic}.
8999
9000 @item gnus-button-mid-or-mail-heuristic
9001 @findex gnus-button-mid-or-mail-heuristic
9002 Function that guesses whether its argument is a message ID or a mail
9003 address.  Returns @code{mid} if it's a message IDs, @code{mail} if
9004 it's a mail address, @code{ask} if unsure and @code{invalid} if the
9005 string is invalid.
9006
9007 @item gnus-button-mid-or-mail-heuristic-alist
9008 @vindex gnus-button-mid-or-mail-heuristic-alist
9009 An alist of @code{(RATE . REGEXP)} pairs used by the function
9010 @code{gnus-button-mid-or-mail-heuristic}.
9011
9012 @c Stuff related to gnus-button-tex-level
9013
9014 @item gnus-button-ctan-handler
9015 @findex gnus-button-ctan-handler
9016 The function to use for displaying CTAN links.  It must take one
9017 argument, the string naming the URL.
9018
9019 @item gnus-ctan-url
9020 @vindex gnus-ctan-url
9021 Top directory of a CTAN (Comprehensive TeX Archive Network) archive used
9022 by @code{gnus-button-ctan-handler}.
9023
9024 @c Misc stuff
9025
9026 @item gnus-article-button-face
9027 @vindex gnus-article-button-face
9028 Face used on buttons.
9029
9030 @item gnus-article-mouse-face
9031 @vindex gnus-article-mouse-face
9032 Face used when the mouse cursor is over a button.
9033
9034 @end table
9035
9036 @xref{Customizing Articles}, for how to buttonize articles automatically.
9037
9038
9039 @node Article Button Levels
9040 @subsection Article button levels
9041 @cindex button levels
9042 The higher the value of the variables @code{gnus-button-@var{*}-level},
9043 the more buttons will appear.  If the level is zero, no corresponding
9044 buttons are displayed.  With the default value (which is 5) you should
9045 already see quite a lot of buttons.  With higher levels, you will see
9046 more buttons, but you may also get more false positives.  To avoid them,
9047 you can set the variables @code{gnus-button-@var{*}-level} local to
9048 specific groups (@pxref{Group Parameters}).  Here's an example for the
9049 variable @code{gnus-parameters}:
9050
9051 @lisp
9052 ;; @r{increase @code{gnus-button-*-level} in some groups:}
9053 (setq gnus-parameters
9054       '(("\\<\\(emacs\\|gnus\\)\\>" (gnus-button-emacs-level 10))
9055         ("\\<unix\\>"               (gnus-button-man-level 10))
9056         ("\\<tex\\>"                (gnus-button-tex-level 10))))
9057 @end lisp
9058
9059 @table @code
9060
9061 @item gnus-button-browse-level
9062 @vindex gnus-button-browse-level
9063 Controls the display of references to message IDs, mail addresses and
9064 news URLs.  Related variables and functions include
9065 @code{gnus-button-url-regexp}, @code{browse-url}, and
9066 @code{browse-url-browser-function}.
9067
9068 @item gnus-button-emacs-level
9069 @vindex gnus-button-emacs-level
9070 Controls the display of Emacs or Gnus references.  Related functions are
9071 @code{gnus-button-handle-custom},
9072 @code{gnus-button-handle-describe-function},
9073 @code{gnus-button-handle-describe-variable},
9074 @code{gnus-button-handle-symbol},
9075 @code{gnus-button-handle-describe-key},
9076 @code{gnus-button-handle-apropos},
9077 @code{gnus-button-handle-apropos-command},
9078 @code{gnus-button-handle-apropos-variable},
9079 @code{gnus-button-handle-apropos-documentation}, and
9080 @code{gnus-button-handle-library}.
9081
9082 @item gnus-button-man-level
9083 @vindex gnus-button-man-level
9084 Controls the display of references to (Unix) man pages.
9085 See @code{gnus-button-man-handler}.
9086
9087 @item gnus-button-message-level
9088 @vindex gnus-button-message-level
9089 Controls the display of message IDs, mail addresses and news URLs.
9090 Related variables and functions include
9091 @code{gnus-button-mid-or-mail-regexp},
9092 @code{gnus-button-prefer-mid-or-mail},
9093 @code{gnus-button-mid-or-mail-heuristic}, and
9094 @code{gnus-button-mid-or-mail-heuristic-alist}.
9095
9096 @item gnus-button-tex-level
9097 @vindex gnus-button-tex-level
9098 Controls the display of references to @TeX{} or LaTeX stuff, e.g. for CTAN
9099 URLs.  See the variables @code{gnus-ctan-url},
9100 @code{gnus-button-ctan-handler},
9101 @code{gnus-button-ctan-directory-regexp}, and
9102 @code{gnus-button-handle-ctan-bogus-regexp}.
9103
9104 @end table
9105
9106
9107 @node Article Date
9108 @subsection Article Date
9109
9110 The date is most likely generated in some obscure timezone you've never
9111 heard of, so it's quite nice to be able to find out what the time was
9112 when the article was sent.
9113
9114 @table @kbd
9115
9116 @item W T u
9117 @kindex W T u (Summary)
9118 @findex gnus-article-date-ut
9119 Display the date in UT (aka. GMT, aka ZULU)
9120 (@code{gnus-article-date-ut}).
9121
9122 @item W T i
9123 @kindex W T i (Summary)
9124 @findex gnus-article-date-iso8601
9125 @cindex ISO 8601
9126 Display the date in international format, aka. ISO 8601
9127 (@code{gnus-article-date-iso8601}).
9128
9129 @item W T l
9130 @kindex W T l (Summary)
9131 @findex gnus-article-date-local
9132 Display the date in the local timezone (@code{gnus-article-date-local}).
9133
9134 @item W T p
9135 @kindex W T p (Summary)
9136 @findex gnus-article-date-english
9137 Display the date in a format that's easily pronounceable in English
9138 (@code{gnus-article-date-english}).
9139
9140 @item W T s
9141 @kindex W T s (Summary)
9142 @vindex gnus-article-time-format
9143 @findex gnus-article-date-user
9144 @findex format-time-string
9145 Display the date using a user-defined format
9146 (@code{gnus-article-date-user}).  The format is specified by the
9147 @code{gnus-article-time-format} variable, and is a string that's passed
9148 to @code{format-time-string}.  See the documentation of that variable
9149 for a list of possible format specs.
9150
9151 @item W T e
9152 @kindex W T e (Summary)
9153 @findex gnus-article-date-lapsed
9154 @findex gnus-start-date-timer
9155 @findex gnus-stop-date-timer
9156 Say how much time has elapsed between the article was posted and now
9157 (@code{gnus-article-date-lapsed}).  It looks something like:
9158
9159 @example
9160 X-Sent: 6 weeks, 4 days, 1 hour, 3 minutes, 8 seconds ago
9161 @end example
9162
9163 @vindex gnus-article-date-lapsed-new-header
9164 The value of @code{gnus-article-date-lapsed-new-header} determines
9165 whether this header will just be added below the old Date one, or will
9166 replace it.
9167
9168 An advantage of using Gnus to read mail is that it converts simple bugs
9169 into wonderful absurdities.
9170
9171 If you want to have this line updated continually, you can put
9172
9173 @lisp
9174 (gnus-start-date-timer)
9175 @end lisp
9176
9177 in your @file{~/.gnus.el} file, or you can run it off of some hook.  If
9178 you want to stop the timer, you can use the @code{gnus-stop-date-timer}
9179 command.
9180
9181 @item W T o
9182 @kindex W T o (Summary)
9183 @findex gnus-article-date-original
9184 Display the original date (@code{gnus-article-date-original}).  This can
9185 be useful if you normally use some other conversion function and are
9186 worried that it might be doing something totally wrong.  Say, claiming
9187 that the article was posted in 1854.  Although something like that is
9188 @emph{totally} impossible.  Don't you trust me? *titter*
9189
9190 @end table
9191
9192 @xref{Customizing Articles}, for how to display the date in your
9193 preferred format automatically.
9194
9195
9196 @node Article Display
9197 @subsection Article Display
9198 @cindex picons
9199 @cindex x-face
9200 @cindex smileys
9201
9202 These commands add various frivolous display gimmicks to the article
9203 buffer in Emacs versions that support them.
9204
9205 @code{X-Face} headers are small black-and-white images supplied by the
9206 message headers (@pxref{X-Face}).
9207
9208 @code{Face} headers are small colored images supplied by the message
9209 headers (@pxref{Face}).
9210
9211 Smileys are those little @samp{:-)} symbols that people like to litter
9212 their messages with (@pxref{Smileys}).
9213
9214 Picons, on the other hand, reside on your own system, and Gnus will
9215 try to match the headers to what you have (@pxref{Picons}).
9216
9217 All these functions are toggles---if the elements already exist,
9218 they'll be removed.
9219
9220 @table @kbd
9221 @item W D x
9222 @kindex W D x (Summary)
9223 @findex gnus-article-display-x-face
9224 Display an @code{X-Face} in the @code{From} header.
9225 (@code{gnus-article-display-x-face}).
9226
9227 @item W D d
9228 @kindex W D d (Summary)
9229 @findex gnus-article-display-face
9230 Display a @code{Face} in the @code{From} header.
9231 (@code{gnus-article-display-face}).
9232
9233 @item W D s
9234 @kindex W D s (Summary)
9235 @findex gnus-treat-smiley
9236 Display smileys (@code{gnus-treat-smiley}).
9237
9238 @item W D f
9239 @kindex W D f (Summary)
9240 @findex gnus-treat-from-picon
9241 Piconify the @code{From} header (@code{gnus-treat-from-picon}).
9242
9243 @item W D m
9244 @kindex W D m (Summary)
9245 @findex gnus-treat-mail-picon
9246 Piconify all mail headers (i. e., @code{Cc}, @code{To})
9247 (@code{gnus-treat-mail-picon}).
9248
9249 @item W D n
9250 @kindex W D n (Summary)
9251 @findex gnus-treat-newsgroups-picon
9252 Piconify all news headers (i. e., @code{Newsgroups} and
9253 @code{Followup-To}) (@code{gnus-treat-newsgroups-picon}).
9254
9255 @item W D D
9256 @kindex W D D (Summary)
9257 @findex gnus-article-remove-images
9258 Remove all images from the article buffer
9259 (@code{gnus-article-remove-images}).
9260
9261 @end table
9262
9263
9264
9265 @node Article Signature
9266 @subsection Article Signature
9267 @cindex signatures
9268 @cindex article signature
9269
9270 @vindex gnus-signature-separator
9271 Each article is divided into two parts---the head and the body.  The
9272 body can be divided into a signature part and a text part.  The variable
9273 that says what is to be considered a signature is
9274 @code{gnus-signature-separator}.  This is normally the standard
9275 @samp{^-- $} as mandated by son-of-RFC 1036.  However, many people use
9276 non-standard signature separators, so this variable can also be a list
9277 of regular expressions to be tested, one by one.  (Searches are done
9278 from the end of the body towards the beginning.)  One likely value is:
9279
9280 @lisp
9281 (setq gnus-signature-separator
9282       '("^-- $"         ; @r{The standard}
9283         "^-- *$"        ; @r{A common mangling}
9284         "^-------*$"    ; @r{Many people just use a looong}
9285                         ; @r{line of dashes.  Shame!}
9286         "^ *--------*$" ; @r{Double-shame!}
9287         "^________*$"   ; @r{Underscores are also popular}
9288         "^========*$")) ; @r{Pervert!}
9289 @end lisp
9290
9291 The more permissive you are, the more likely it is that you'll get false
9292 positives.
9293
9294 @vindex gnus-signature-limit
9295 @code{gnus-signature-limit} provides a limit to what is considered a
9296 signature when displaying articles.
9297
9298 @enumerate
9299 @item
9300 If it is an integer, no signature may be longer (in characters) than
9301 that integer.
9302 @item
9303 If it is a floating point number, no signature may be longer (in lines)
9304 than that number.
9305 @item
9306 If it is a function, the function will be called without any parameters,
9307 and if it returns @code{nil}, there is no signature in the buffer.
9308 @item
9309 If it is a string, it will be used as a regexp.  If it matches, the text
9310 in question is not a signature.
9311 @end enumerate
9312
9313 This variable can also be a list where the elements may be of the types
9314 listed above.  Here's an example:
9315
9316 @lisp
9317 (setq gnus-signature-limit
9318       '(200.0 "^---*Forwarded article"))
9319 @end lisp
9320
9321 This means that if there are more than 200 lines after the signature
9322 separator, or the text after the signature separator is matched by
9323 the regular expression @samp{^---*Forwarded article}, then it isn't a
9324 signature after all.
9325
9326
9327 @node Article Miscellanea
9328 @subsection Article Miscellanea
9329
9330 @table @kbd
9331 @item A t
9332 @kindex A t (Summary)
9333 @findex gnus-article-babel
9334 Translate the article from one language to another
9335 (@code{gnus-article-babel}).
9336
9337 @end table
9338
9339
9340 @node MIME Commands
9341 @section MIME Commands
9342 @cindex MIME decoding
9343 @cindex attachments
9344 @cindex viewing attachments
9345
9346 The following commands all understand the numerical prefix.  For
9347 instance, @kbd{3 K v} means ``view the third @acronym{MIME} part''.
9348
9349 @table @kbd
9350 @item b
9351 @itemx K v
9352 @kindex b (Summary)
9353 @kindex K v (Summary)
9354 View the @acronym{MIME} part.
9355
9356 @item K o
9357 @kindex K o (Summary)
9358 Save the @acronym{MIME} part.
9359
9360 @item K O
9361 @kindex K O (Summary)
9362 Prompt for a file name, then save the @acronym{MIME} part and strip it
9363 from the article.  The stripped @acronym{MIME} object will be referred
9364 via the message/external-body @acronym{MIME} type.
9365
9366 @item K r
9367 @kindex K r (Summary)
9368 Replace the @acronym{MIME} part with an external body.
9369
9370 @item K d
9371 @kindex K d (Summary)
9372 Delete the @acronym{MIME} part and add some information about the
9373 removed part.
9374
9375 @item K c
9376 @kindex K c (Summary)
9377 Copy the @acronym{MIME} part.
9378
9379 @item K e
9380 @kindex K e (Summary)
9381 View the @acronym{MIME} part externally.
9382
9383 @item K i
9384 @kindex K i (Summary)
9385 View the @acronym{MIME} part internally.
9386
9387 @item K |
9388 @kindex K | (Summary)
9389 Pipe the @acronym{MIME} part to an external command.
9390 @end table
9391
9392 The rest of these @acronym{MIME} commands do not use the numerical prefix in
9393 the same manner:
9394
9395 @table @kbd
9396 @item K b
9397 @kindex K b (Summary)
9398 Make all the @acronym{MIME} parts have buttons in front of them.  This is
9399 mostly useful if you wish to save (or perform other actions) on inlined
9400 parts.
9401
9402 @item K m
9403 @kindex K m (Summary)
9404 @findex gnus-summary-repair-multipart
9405 Some multipart messages are transmitted with missing or faulty headers.
9406 This command will attempt to ``repair'' these messages so that they can
9407 be viewed in a more pleasant manner
9408 (@code{gnus-summary-repair-multipart}).
9409
9410 @item X m
9411 @kindex X m (Summary)
9412 @findex gnus-summary-save-parts
9413 Save all parts matching a @acronym{MIME} type to a directory
9414 (@code{gnus-summary-save-parts}).  Understands the process/prefix
9415 convention (@pxref{Process/Prefix}).
9416
9417 @item M-t
9418 @kindex M-t (Summary)
9419 @findex gnus-summary-toggle-display-buttonized
9420 Toggle the buttonized display of the article buffer
9421 (@code{gnus-summary-toggle-display-buttonized}).
9422
9423 @item W M w
9424 @kindex W M w (Summary)
9425 @findex gnus-article-decode-mime-words
9426 Decode RFC 2047-encoded words in the article headers
9427 (@code{gnus-article-decode-mime-words}).
9428
9429 @item W M c
9430 @kindex W M c (Summary)
9431 @findex gnus-article-decode-charset
9432 Decode encoded article bodies as well as charsets
9433 (@code{gnus-article-decode-charset}).
9434
9435 This command looks in the @code{Content-Type} header to determine the
9436 charset.  If there is no such header in the article, you can give it a
9437 prefix, which will prompt for the charset to decode as.  In regional
9438 groups where people post using some common encoding (but do not
9439 include @acronym{MIME} headers), you can set the @code{charset} group/topic
9440 parameter to the required charset (@pxref{Group Parameters}).
9441
9442 @item W M v
9443 @kindex W M v (Summary)
9444 @findex gnus-mime-view-all-parts
9445 View all the @acronym{MIME} parts in the current article
9446 (@code{gnus-mime-view-all-parts}).
9447
9448 @end table
9449
9450 Relevant variables:
9451
9452 @table @code
9453 @item gnus-ignored-mime-types
9454 @vindex gnus-ignored-mime-types
9455 This is a list of regexps.  @acronym{MIME} types that match a regexp from
9456 this list will be completely ignored by Gnus.  The default value is
9457 @code{nil}.
9458
9459 To have all Vcards be ignored, you'd say something like this:
9460
9461 @lisp
9462 (setq gnus-ignored-mime-types
9463       '("text/x-vcard"))
9464 @end lisp
9465
9466 @item gnus-article-loose-mime
9467 @vindex gnus-article-loose-mime
9468 If non-@code{nil}, Gnus won't require the @samp{MIME-Version} header
9469 before interpreting the message as a @acronym{MIME} message.  This helps
9470 when reading messages from certain broken mail user agents.  The
9471 default is @code{nil}.
9472
9473 @item gnus-article-emulate-mime
9474 @vindex gnus-article-emulate-mime
9475 There are other, non-@acronym{MIME} encoding methods used.  The most common
9476 is @samp{uuencode}, but yEncode is also getting to be popular.  If
9477 this variable is non-@code{nil}, Gnus will look in message bodies to
9478 see if it finds these encodings, and if so, it'll run them through the
9479 Gnus @acronym{MIME} machinery.  The default is @code{t}.
9480
9481 @item gnus-unbuttonized-mime-types
9482 @vindex gnus-unbuttonized-mime-types
9483 This is a list of regexps.  @acronym{MIME} types that match a regexp from
9484 this list won't have @acronym{MIME} buttons inserted unless they aren't
9485 displayed or this variable is overridden by
9486 @code{gnus-buttonized-mime-types}.  The default value is
9487 @code{(".*/.*")}.  This variable is only used when
9488 @code{gnus-inhibit-mime-unbuttonizing} is @code{nil}.
9489
9490 @item gnus-buttonized-mime-types
9491 @vindex gnus-buttonized-mime-types
9492 This is a list of regexps.  @acronym{MIME} types that match a regexp from
9493 this list will have @acronym{MIME} buttons inserted unless they aren't
9494 displayed.  This variable overrides
9495 @code{gnus-unbuttonized-mime-types}.  The default value is @code{nil}.
9496 This variable is only used when @code{gnus-inhibit-mime-unbuttonizing}
9497 is @code{nil}.
9498
9499 To see e.g. security buttons but no other buttons, you could set this
9500 variable to @code{("multipart/signed")} and leave
9501 @code{gnus-unbuttonized-mime-types} at the default value.
9502
9503 You could also add @code{"multipart/alternative"} to this list to
9504 display radio buttons that allow you to choose one of two media types
9505 those mails include.  See also @code{mm-discouraged-alternatives}
9506 (@pxref{Display Customization, ,Display Customization, emacs-mime, The
9507 Emacs MIME Manual}).
9508
9509 @item gnus-inhibit-mime-unbuttonizing
9510 @vindex gnus-inhibit-mime-unbuttonizing
9511 If this is non-@code{nil}, then all @acronym{MIME} parts get buttons.  The
9512 default value is @code{nil}.
9513
9514 @item gnus-article-mime-part-function
9515 @vindex gnus-article-mime-part-function
9516 For each @acronym{MIME} part, this function will be called with the @acronym{MIME}
9517 handle as the parameter.  The function is meant to be used to allow
9518 users to gather information from the article (e. g., add Vcard info to
9519 the bbdb database) or to do actions based on parts (e. g., automatically
9520 save all jpegs into some directory).
9521
9522 Here's an example function the does the latter:
9523
9524 @lisp
9525 (defun my-save-all-jpeg-parts (handle)
9526   (when (equal (car (mm-handle-type handle)) "image/jpeg")
9527     (with-temp-buffer
9528       (insert (mm-get-part handle))
9529       (write-region (point-min) (point-max)
9530                     (read-file-name "Save jpeg to: ")))))
9531 (setq gnus-article-mime-part-function
9532       'my-save-all-jpeg-parts)
9533 @end lisp
9534
9535 @vindex gnus-mime-multipart-functions
9536 @item gnus-mime-multipart-functions
9537 Alist of @acronym{MIME} multipart types and functions to handle them.
9538
9539 @vindex gnus-mime-display-multipart-alternative-as-mixed
9540 @item gnus-mime-display-multipart-alternative-as-mixed
9541 Display "multipart/alternative" parts as "multipart/mixed".
9542
9543 @vindex gnus-mime-display-multipart-related-as-mixed
9544 @item gnus-mime-display-multipart-related-as-mixed
9545 Display "multipart/related" parts as "multipart/mixed".
9546
9547 If displaying "text/html" is discouraged, see
9548 @code{mm-discouraged-alternatives}, images or other material inside a
9549 "multipart/related" part might be overlooked when this variable is
9550 @code{nil}.  @ref{Display Customization, Display Customization, ,
9551 emacs-mime, Emacs-Mime Manual}.
9552
9553 @vindex gnus-mime-display-multipart-as-mixed
9554 @item gnus-mime-display-multipart-as-mixed
9555 Display "multipart" parts as "multipart/mixed".  If @code{t}, it
9556 overrides @code{nil} values of
9557 @code{gnus-mime-display-multipart-alternative-as-mixed} and
9558 @code{gnus-mime-display-multipart-related-as-mixed}.
9559
9560 @vindex mm-file-name-rewrite-functions
9561 @item mm-file-name-rewrite-functions
9562 List of functions used for rewriting file names of @acronym{MIME} parts.
9563 Each function takes a file name as input and returns a file name.
9564
9565 Ready-made functions include@*
9566 @code{mm-file-name-delete-whitespace},
9567 @code{mm-file-name-trim-whitespace},
9568 @code{mm-file-name-collapse-whitespace}, and
9569 @code{mm-file-name-replace-whitespace}.  The later uses the value of
9570 the variable @code{mm-file-name-replace-whitespace} to replace each
9571 whitespace character in a file name with that string; default value
9572 is @code{"_"} (a single underscore).
9573 @findex mm-file-name-delete-whitespace
9574 @findex mm-file-name-trim-whitespace
9575 @findex mm-file-name-collapse-whitespace
9576 @findex mm-file-name-replace-whitespace
9577 @vindex mm-file-name-replace-whitespace
9578
9579 The standard functions @code{capitalize}, @code{downcase},
9580 @code{upcase}, and @code{upcase-initials} may be useful, too.
9581
9582 Everybody knows that whitespace characters in file names are evil,
9583 except those who don't know.  If you receive lots of attachments from
9584 such unenlightened users, you can make live easier by adding
9585
9586 @lisp
9587 (setq mm-file-name-rewrite-functions
9588       '(mm-file-name-trim-whitespace
9589         mm-file-name-collapse-whitespace
9590         mm-file-name-replace-whitespace))
9591 @end lisp
9592
9593 @noindent
9594 to your @file{~/.gnus.el} file.
9595
9596 @end table
9597
9598
9599 @node Charsets
9600 @section Charsets
9601 @cindex charsets
9602
9603 People use different charsets, and we have @acronym{MIME} to let us know what
9604 charsets they use.  Or rather, we wish we had.  Many people use
9605 newsreaders and mailers that do not understand or use @acronym{MIME}, and
9606 just send out messages without saying what character sets they use.  To
9607 help a bit with this, some local news hierarchies have policies that say
9608 what character set is the default.  For instance, the @samp{fj}
9609 hierarchy uses @code{iso-2022-jp}.
9610
9611 @vindex gnus-group-charset-alist
9612 This knowledge is encoded in the @code{gnus-group-charset-alist}
9613 variable, which is an alist of regexps (use the first item to match full
9614 group names) and default charsets to be used when reading these groups.
9615
9616 @vindex gnus-newsgroup-ignored-charsets
9617 In addition, some people do use soi-disant @acronym{MIME}-aware agents that
9618 aren't.  These blithely mark messages as being in @code{iso-8859-1}
9619 even if they really are in @code{koi-8}.  To help here, the
9620 @code{gnus-newsgroup-ignored-charsets} variable can be used.  The
9621 charsets that are listed here will be ignored.  The variable can be
9622 set on a group-by-group basis using the group parameters (@pxref{Group
9623 Parameters}).  The default value is @code{(unknown-8bit x-unknown)},
9624 which includes values some agents insist on having in there.
9625
9626 @vindex gnus-group-posting-charset-alist
9627 When posting, @code{gnus-group-posting-charset-alist} is used to
9628 determine which charsets should not be encoded using the @acronym{MIME}
9629 encodings.  For instance, some hierarchies discourage using
9630 quoted-printable header encoding.
9631
9632 This variable is an alist of regexps and permitted unencoded charsets
9633 for posting.  Each element of the alist has the form @code{(}@var{test
9634 header body-list}@code{)}, where:
9635
9636 @table @var
9637 @item test
9638 is either a regular expression matching the newsgroup header or a
9639 variable to query,
9640 @item header
9641 is the charset which may be left unencoded in the header (@code{nil}
9642 means encode all charsets),
9643 @item body-list
9644 is a list of charsets which may be encoded using 8bit content-transfer
9645 encoding in the body, or one of the special values @code{nil} (always
9646 encode using quoted-printable) or @code{t} (always use 8bit).
9647 @end table
9648
9649 @cindex Russian
9650 @cindex koi8-r
9651 @cindex koi8-u
9652 @cindex iso-8859-5
9653 @cindex coding system aliases
9654 @cindex preferred charset
9655
9656 @xref{Encoding Customization, , Encoding Customization, emacs-mime,
9657 The Emacs MIME Manual}, for additional variables that control which
9658 MIME charsets are used when sending messages.
9659
9660 Other charset tricks that may be useful, although not Gnus-specific:
9661
9662 If there are several @acronym{MIME} charsets that encode the same Emacs
9663 charset, you can choose what charset to use by saying the following:
9664
9665 @lisp
9666 (put-charset-property 'cyrillic-iso8859-5
9667                       'preferred-coding-system 'koi8-r)
9668 @end lisp
9669
9670 This means that Russian will be encoded using @code{koi8-r} instead of
9671 the default @code{iso-8859-5} @acronym{MIME} charset.
9672
9673 If you want to read messages in @code{koi8-u}, you can cheat and say
9674
9675 @lisp
9676 (define-coding-system-alias 'koi8-u 'koi8-r)
9677 @end lisp
9678
9679 This will almost do the right thing.
9680
9681 And finally, to read charsets like @code{windows-1251}, you can say
9682 something like
9683
9684 @lisp
9685 (codepage-setup 1251)
9686 (define-coding-system-alias 'windows-1251 'cp1251)
9687 @end lisp
9688
9689
9690 @node Article Commands
9691 @section Article Commands
9692
9693 @table @kbd
9694
9695 @item A P
9696 @cindex PostScript
9697 @cindex printing
9698 @kindex A P (Summary)
9699 @vindex gnus-ps-print-hook
9700 @findex gnus-summary-print-article
9701 Generate and print a PostScript image of the article buffer
9702 (@code{gnus-summary-print-article}).  @code{gnus-ps-print-hook} will
9703 be run just before printing the buffer.  An alternative way to print
9704 article is to use Muttprint (@pxref{Saving Articles}).
9705
9706 @end table
9707
9708
9709 @node Summary Sorting
9710 @section Summary Sorting
9711 @cindex summary sorting
9712
9713 You can have the summary buffer sorted in various ways, even though I
9714 can't really see why you'd want that.
9715
9716 @table @kbd
9717
9718 @item C-c C-s C-n
9719 @kindex C-c C-s C-n (Summary)
9720 @findex gnus-summary-sort-by-number
9721 Sort by article number (@code{gnus-summary-sort-by-number}).
9722
9723 @item C-c C-s C-a
9724 @kindex C-c C-s C-a (Summary)
9725 @findex gnus-summary-sort-by-author
9726 Sort by author (@code{gnus-summary-sort-by-author}).
9727
9728 @item C-c C-s C-t
9729 @kindex C-c C-s C-t (Summary)
9730 @findex gnus-summary-sort-by-recipient
9731 Sort by recipient (@code{gnus-summary-sort-by-recipient}).
9732
9733 @item C-c C-s C-s
9734 @kindex C-c C-s C-s (Summary)
9735 @findex gnus-summary-sort-by-subject
9736 Sort by subject (@code{gnus-summary-sort-by-subject}).
9737
9738 @item C-c C-s C-d
9739 @kindex C-c C-s C-d (Summary)
9740 @findex gnus-summary-sort-by-date
9741 Sort by date (@code{gnus-summary-sort-by-date}).
9742
9743 @item C-c C-s C-l
9744 @kindex C-c C-s C-l (Summary)
9745 @findex gnus-summary-sort-by-lines
9746 Sort by lines (@code{gnus-summary-sort-by-lines}).
9747
9748 @item C-c C-s C-c
9749 @kindex C-c C-s C-c (Summary)
9750 @findex gnus-summary-sort-by-chars
9751 Sort by article length (@code{gnus-summary-sort-by-chars}).
9752
9753 @item C-c C-s C-i
9754 @kindex C-c C-s C-i (Summary)
9755 @findex gnus-summary-sort-by-score
9756 Sort by score (@code{gnus-summary-sort-by-score}).
9757
9758 @item C-c C-s C-r
9759 @kindex C-c C-s C-r (Summary)
9760 @findex gnus-summary-sort-by-random
9761 Randomize (@code{gnus-summary-sort-by-random}).
9762
9763 @item C-c C-s C-o
9764 @kindex C-c C-s C-o (Summary)
9765 @findex gnus-summary-sort-by-original
9766 Sort using the default sorting method
9767 (@code{gnus-summary-sort-by-original}).
9768 @end table
9769
9770 These functions will work both when you use threading and when you don't
9771 use threading.  In the latter case, all summary lines will be sorted,
9772 line by line.  In the former case, sorting will be done on a
9773 root-by-root basis, which might not be what you were looking for.  To
9774 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
9775 Commands}).
9776
9777
9778 @node Finding the Parent
9779 @section Finding the Parent
9780 @cindex parent articles
9781 @cindex referring articles
9782
9783 @table @kbd
9784 @item ^
9785 @kindex ^ (Summary)
9786 @findex gnus-summary-refer-parent-article
9787 If you'd like to read the parent of the current article, and it is not
9788 displayed in the summary buffer, you might still be able to.  That is,
9789 if the current group is fetched by @acronym{NNTP}, the parent hasn't expired
9790 and the @code{References} in the current article are not mangled, you
9791 can just press @kbd{^} or @kbd{A r}
9792 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
9793 you'll get the parent.  If the parent is already displayed in the
9794 summary buffer, point will just move to this article.
9795
9796 If given a positive numerical prefix, fetch that many articles back into
9797 the ancestry.  If given a negative numerical prefix, fetch just that
9798 ancestor.  So if you say @kbd{3 ^}, Gnus will fetch the parent, the
9799 grandparent and the grandgrandparent of the current article.  If you say
9800 @kbd{-3 ^}, Gnus will only fetch the grandgrandparent of the current
9801 article.
9802
9803 @item A R (Summary)
9804 @findex gnus-summary-refer-references
9805 @kindex A R (Summary)
9806 Fetch all articles mentioned in the @code{References} header of the
9807 article (@code{gnus-summary-refer-references}).
9808
9809 @item A T (Summary)
9810 @findex gnus-summary-refer-thread
9811 @kindex A T (Summary)
9812 Display the full thread where the current article appears
9813 (@code{gnus-summary-refer-thread}).  This command has to fetch all the
9814 headers in the current group to work, so it usually takes a while.  If
9815 you do it often, you may consider setting @code{gnus-fetch-old-headers}
9816 to @code{invisible} (@pxref{Filling In Threads}).  This won't have any
9817 visible effects normally, but it'll make this command work a whole lot
9818 faster.  Of course, it'll make group entry somewhat slow.
9819
9820 @vindex gnus-refer-thread-limit
9821 The @code{gnus-refer-thread-limit} variable says how many old (i. e.,
9822 articles before the first displayed in the current group) headers to
9823 fetch when doing this command.  The default is 200.  If @code{t}, all
9824 the available headers will be fetched.  This variable can be overridden
9825 by giving the @kbd{A T} command a numerical prefix.
9826
9827 @item M-^ (Summary)
9828 @findex gnus-summary-refer-article
9829 @kindex M-^ (Summary)
9830 @cindex Message-ID
9831 @cindex fetching by Message-ID
9832 You can also ask Gnus for an arbitrary article, no matter what group it
9833 belongs to.  @kbd{M-^} (@code{gnus-summary-refer-article}) will ask you
9834 for a @code{Message-ID}, which is one of those long, hard-to-read
9835 thingies that look something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.
9836 You have to get it all exactly right.  No fuzzy searches, I'm afraid.
9837
9838 Gnus looks for the @code{Message-ID} in the headers that have already
9839 been fetched, but also tries all the select methods specified by
9840 @code{gnus-refer-article-method} if it is not found.
9841 @end table
9842
9843 @vindex gnus-refer-article-method
9844 If the group you are reading is located on a back end that does not
9845 support fetching by @code{Message-ID} very well (like @code{nnspool}),
9846 you can set @code{gnus-refer-article-method} to an @acronym{NNTP} method.  It
9847 would, perhaps, be best if the @acronym{NNTP} server you consult is the one
9848 updating the spool you are reading from, but that's not really
9849 necessary.
9850
9851 It can also be a list of select methods, as well as the special symbol
9852 @code{current}, which means to use the current select method.  If it
9853 is a list, Gnus will try all the methods in the list until it finds a
9854 match.
9855
9856 Here's an example setting that will first try the current method, and
9857 then ask Google if that fails:
9858
9859 @lisp
9860 (setq gnus-refer-article-method
9861       '(current
9862         (nnweb "google" (nnweb-type google))))
9863 @end lisp
9864
9865 Most of the mail back ends support fetching by @code{Message-ID}, but
9866 do not do a particularly excellent job at it.  That is, @code{nnmbox},
9867 @code{nnbabyl}, @code{nnmaildir}, @code{nnml}, are able to locate
9868 articles from any groups, while @code{nnfolder}, and @code{nnimap} are
9869 only able to locate articles that have been posted to the current
9870 group.  (Anything else would be too time consuming.)  @code{nnmh} does
9871 not support this at all.
9872
9873
9874 @node Alternative Approaches
9875 @section Alternative Approaches
9876
9877 Different people like to read news using different methods.  This being
9878 Gnus, we offer a small selection of minor modes for the summary buffers.
9879
9880 @menu
9881 * Pick and Read::               First mark articles and then read them.
9882 * Binary Groups::               Auto-decode all articles.
9883 @end menu
9884
9885
9886 @node Pick and Read
9887 @subsection Pick and Read
9888 @cindex pick and read
9889
9890 Some newsreaders (like @code{nn} and, uhm, @code{Netnews} on VM/CMS) use
9891 a two-phased reading interface.  The user first marks in a summary
9892 buffer the articles she wants to read.  Then she starts reading the
9893 articles with just an article buffer displayed.
9894
9895 @findex gnus-pick-mode
9896 @kindex M-x gnus-pick-mode
9897 Gnus provides a summary buffer minor mode that allows
9898 this---@code{gnus-pick-mode}.  This basically means that a few process
9899 mark commands become one-keystroke commands to allow easy marking, and
9900 it provides one additional command for switching to the summary buffer.
9901
9902 Here are the available keystrokes when using pick mode:
9903
9904 @table @kbd
9905 @item .
9906 @kindex . (Pick)
9907 @findex gnus-pick-article-or-thread
9908 Pick the article or thread on the current line
9909 (@code{gnus-pick-article-or-thread}).  If the variable
9910 @code{gnus-thread-hide-subtree} is true, then this key selects the
9911 entire thread when used at the first article of the thread.  Otherwise,
9912 it selects just the article.  If given a numerical prefix, go to that
9913 thread or article and pick it.  (The line number is normally displayed
9914 at the beginning of the summary pick lines.)
9915
9916 @item SPACE
9917 @kindex SPACE (Pick)
9918 @findex gnus-pick-next-page
9919 Scroll the summary buffer up one page (@code{gnus-pick-next-page}).  If
9920 at the end of the buffer, start reading the picked articles.
9921
9922 @item u
9923 @kindex u (Pick)
9924 @findex gnus-pick-unmark-article-or-thread.
9925 Unpick the thread or article
9926 (@code{gnus-pick-unmark-article-or-thread}).  If the variable
9927 @code{gnus-thread-hide-subtree} is true, then this key unpicks the
9928 thread if used at the first article of the thread.  Otherwise it unpicks
9929 just the article.  You can give this key a numerical prefix to unpick
9930 the thread or article at that line.
9931
9932 @item RET
9933 @kindex RET (Pick)
9934 @findex gnus-pick-start-reading
9935 @vindex gnus-pick-display-summary
9936 Start reading the picked articles (@code{gnus-pick-start-reading}).  If
9937 given a prefix, mark all unpicked articles as read first.  If
9938 @code{gnus-pick-display-summary} is non-@code{nil}, the summary buffer
9939 will still be visible when you are reading.
9940
9941 @end table
9942
9943 All the normal summary mode commands are still available in the
9944 pick-mode, with the exception of @kbd{u}.  However @kbd{!} is available
9945 which is mapped to the same function
9946 @code{gnus-summary-tick-article-forward}.
9947
9948 If this sounds like a good idea to you, you could say:
9949
9950 @lisp
9951 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
9952 @end lisp
9953
9954 @vindex gnus-pick-mode-hook
9955 @code{gnus-pick-mode-hook} is run in pick minor mode buffers.
9956
9957 @vindex gnus-mark-unpicked-articles-as-read
9958 If @code{gnus-mark-unpicked-articles-as-read} is non-@code{nil}, mark
9959 all unpicked articles as read.  The default is @code{nil}.
9960
9961 @vindex gnus-summary-pick-line-format
9962 The summary line format in pick mode is slightly different from the
9963 standard format.  At the beginning of each line the line number is
9964 displayed.  The pick mode line format is controlled by the
9965 @code{gnus-summary-pick-line-format} variable (@pxref{Formatting
9966 Variables}).  It accepts the same format specs that
9967 @code{gnus-summary-line-format} does (@pxref{Summary Buffer Lines}).
9968
9969
9970 @node Binary Groups
9971 @subsection Binary Groups
9972 @cindex binary groups
9973
9974 @findex gnus-binary-mode
9975 @kindex M-x gnus-binary-mode
9976 If you spend much time in binary groups, you may grow tired of hitting
9977 @kbd{X u}, @kbd{n}, @kbd{RET} all the time.  @kbd{M-x gnus-binary-mode}
9978 is a minor mode for summary buffers that makes all ordinary Gnus article
9979 selection functions uudecode series of articles and display the result
9980 instead of just displaying the articles the normal way.
9981
9982 @kindex g (Binary)
9983 @findex gnus-binary-show-article
9984 The only way, in fact, to see the actual articles is the @kbd{g}
9985 command, when you have turned on this mode
9986 (@code{gnus-binary-show-article}).
9987
9988 @vindex gnus-binary-mode-hook
9989 @code{gnus-binary-mode-hook} is called in binary minor mode buffers.
9990
9991
9992 @node Tree Display
9993 @section Tree Display
9994 @cindex trees
9995
9996 @vindex gnus-use-trees
9997 If you don't like the normal Gnus summary display, you might try setting
9998 @code{gnus-use-trees} to @code{t}.  This will create (by default) an
9999 additional @dfn{tree buffer}.  You can execute all summary mode commands
10000 in the tree buffer.
10001
10002 There are a few variables to customize the tree display, of course:
10003
10004 @table @code
10005 @item gnus-tree-mode-hook
10006 @vindex gnus-tree-mode-hook
10007 A hook called in all tree mode buffers.
10008
10009 @item gnus-tree-mode-line-format
10010 @vindex gnus-tree-mode-line-format
10011 A format string for the mode bar in the tree mode buffers (@pxref{Mode
10012 Line Formatting}).  The default is @samp{Gnus: %%b %S %Z}.  For a list
10013 of valid specs, @pxref{Summary Buffer Mode Line}.
10014
10015 @item gnus-selected-tree-face
10016 @vindex gnus-selected-tree-face
10017 Face used for highlighting the selected article in the tree buffer.  The
10018 default is @code{modeline}.
10019
10020 @item gnus-tree-line-format
10021 @vindex gnus-tree-line-format
10022 A format string for the tree nodes.  The name is a bit of a misnomer,
10023 though---it doesn't define a line, but just the node.  The default value
10024 is @samp{%(%[%3,3n%]%)}, which displays the first three characters of
10025 the name of the poster.  It is vital that all nodes are of the same
10026 length, so you @emph{must} use @samp{%4,4n}-like specifiers.
10027
10028 Valid specs are:
10029
10030 @table @samp
10031 @item n
10032 The name of the poster.
10033 @item f
10034 The @code{From} header.
10035 @item N
10036 The number of the article.
10037 @item [
10038 The opening bracket.
10039 @item ]
10040 The closing bracket.
10041 @item s
10042 The subject.
10043 @end table
10044
10045 @xref{Formatting Variables}.
10046
10047 Variables related to the display are:
10048
10049 @table @code
10050 @item gnus-tree-brackets
10051 @vindex gnus-tree-brackets
10052 This is used for differentiating between ``real'' articles and
10053 ``sparse'' articles.  The format is
10054 @example
10055 ((@var{real-open} . @var{real-close})
10056  (@var{sparse-open} . @var{sparse-close})
10057  (@var{dummy-open} . @var{dummy-close}))
10058 @end example
10059 and the default is @code{((?[ . ?]) (?( . ?)) (?@{ . ?@}) (?< . ?>))}.
10060
10061 @item gnus-tree-parent-child-edges
10062 @vindex gnus-tree-parent-child-edges
10063 This is a list that contains the characters used for connecting parent
10064 nodes to their children.  The default is @code{(?- ?\\ ?|)}.
10065
10066 @end table
10067
10068 @item gnus-tree-minimize-window
10069 @vindex gnus-tree-minimize-window
10070 If this variable is non-@code{nil}, Gnus will try to keep the tree
10071 buffer as small as possible to allow more room for the other Gnus
10072 windows.  If this variable is a number, the tree buffer will never be
10073 higher than that number.  The default is @code{t}.  Note that if you
10074 have several windows displayed side-by-side in a frame and the tree
10075 buffer is one of these, minimizing the tree window will also resize all
10076 other windows displayed next to it.
10077
10078 You may also wish to add the following hook to keep the window minimized
10079 at all times:
10080
10081 @lisp
10082 (add-hook 'gnus-configure-windows-hook
10083           'gnus-tree-perhaps-minimize)
10084 @end lisp
10085
10086 @item gnus-generate-tree-function
10087 @vindex gnus-generate-tree-function
10088 @findex gnus-generate-horizontal-tree
10089 @findex gnus-generate-vertical-tree
10090 The function that actually generates the thread tree.  Two predefined
10091 functions are available: @code{gnus-generate-horizontal-tree} and
10092 @code{gnus-generate-vertical-tree} (which is the default).
10093
10094 @end table
10095
10096 Here's an example from a horizontal tree buffer:
10097
10098 @example
10099 @{***@}-(***)-[odd]-[Gun]
10100      |      \[Jan]
10101      |      \[odd]-[Eri]
10102      |      \(***)-[Eri]
10103      |            \[odd]-[Paa]
10104      \[Bjo]
10105      \[Gun]
10106      \[Gun]-[Jor]
10107 @end example
10108
10109 Here's the same thread displayed in a vertical tree buffer:
10110
10111 @example
10112 @group
10113 @{***@}
10114   |--------------------------\-----\-----\
10115 (***)                         [Bjo] [Gun] [Gun]
10116   |--\-----\-----\                          |
10117 [odd] [Jan] [odd] (***)                   [Jor]
10118   |           |     |--\
10119 [Gun]       [Eri] [Eri] [odd]
10120                           |
10121                         [Paa]
10122 @end group
10123 @end example
10124
10125 If you're using horizontal trees, it might be nice to display the trees
10126 side-by-side with the summary buffer.  You could add something like the
10127 following to your @file{~/.gnus.el} file:
10128
10129 @lisp
10130 (setq gnus-use-trees t
10131       gnus-generate-tree-function 'gnus-generate-horizontal-tree
10132       gnus-tree-minimize-window nil)
10133 (gnus-add-configuration
10134  '(article
10135    (vertical 1.0
10136              (horizontal 0.25
10137                          (summary 0.75 point)
10138                          (tree 1.0))
10139              (article 1.0))))
10140 @end lisp
10141
10142 @xref{Window Layout}.
10143
10144
10145 @node Mail Group Commands
10146 @section Mail Group Commands
10147 @cindex mail group commands
10148
10149 Some commands only make sense in mail groups.  If these commands are
10150 invalid in the current group, they will raise a hell and let you know.
10151
10152 All these commands (except the expiry and edit commands) use the
10153 process/prefix convention (@pxref{Process/Prefix}).
10154
10155 @table @kbd
10156
10157 @item B e
10158 @kindex B e (Summary)
10159 @findex gnus-summary-expire-articles
10160 Run all expirable articles in the current group through the expiry
10161 process (@code{gnus-summary-expire-articles}).  That is, delete all
10162 expirable articles in the group that have been around for a while.
10163 (@pxref{Expiring Mail}).
10164
10165 @item B C-M-e
10166 @kindex B C-M-e (Summary)
10167 @findex gnus-summary-expire-articles-now
10168 Delete all the expirable articles in the group
10169 (@code{gnus-summary-expire-articles-now}).  This means that @strong{all}
10170 articles eligible for expiry in the current group will
10171 disappear forever into that big @file{/dev/null} in the sky.
10172
10173 @item B DEL
10174 @kindex B DEL (Summary)
10175 @findex gnus-summary-delete-article
10176 @c @icon{gnus-summary-mail-delete}
10177 Delete the mail article.  This is ``delete'' as in ``delete it from your
10178 disk forever and ever, never to return again.'' Use with caution.
10179 (@code{gnus-summary-delete-article}).
10180
10181 @item B m
10182 @kindex B m (Summary)
10183 @cindex move mail
10184 @findex gnus-summary-move-article
10185 @vindex gnus-preserve-marks
10186 Move the article from one mail group to another
10187 (@code{gnus-summary-move-article}).  Marks will be preserved if
10188 @code{gnus-preserve-marks} is non-@code{nil} (which is the default).
10189
10190 @item B c
10191 @kindex B c (Summary)
10192 @cindex copy mail
10193 @findex gnus-summary-copy-article
10194 @c @icon{gnus-summary-mail-copy}
10195 Copy the article from one group (mail group or not) to a mail group
10196 (@code{gnus-summary-copy-article}).  Marks will be preserved if
10197 @code{gnus-preserve-marks} is non-@code{nil} (which is the default).
10198
10199 @item B B
10200 @kindex B B (Summary)
10201 @cindex crosspost mail
10202 @findex gnus-summary-crosspost-article
10203 Crosspost the current article to some other group
10204 (@code{gnus-summary-crosspost-article}).  This will create a new copy of
10205 the article in the other group, and the Xref headers of the article will
10206 be properly updated.
10207
10208 @item B i
10209 @kindex B i (Summary)
10210 @findex gnus-summary-import-article
10211 Import an arbitrary file into the current mail newsgroup
10212 (@code{gnus-summary-import-article}).  You will be prompted for a file
10213 name, a @code{From} header and a @code{Subject} header.
10214
10215 @item B I
10216 @kindex B I (Summary)
10217 @findex gnus-summary-create-article
10218 Create an empty article in the current mail newsgroups
10219 (@code{gnus-summary-create-article}).  You will be prompted for a
10220 @code{From} header and a @code{Subject} header.
10221
10222 @item B r
10223 @kindex B r (Summary)
10224 @findex gnus-summary-respool-article
10225 @vindex gnus-summary-respool-default-method
10226 Respool the mail article (@code{gnus-summary-respool-article}).
10227 @code{gnus-summary-respool-default-method} will be used as the default
10228 select method when respooling.  This variable is @code{nil} by default,
10229 which means that the current group select method will be used instead.
10230 Marks will be preserved if @code{gnus-preserve-marks} is non-@code{nil}
10231 (which is the default).
10232
10233 @item B w
10234 @itemx e
10235 @kindex B w (Summary)
10236 @kindex e (Summary)
10237 @findex gnus-summary-edit-article
10238 @kindex C-c C-c (Article)
10239 @findex gnus-summary-edit-article-done
10240 Edit the current article (@code{gnus-summary-edit-article}).  To finish
10241 editing and make the changes permanent, type @kbd{C-c C-c}
10242 (@code{gnus-summary-edit-article-done}).  If you give a prefix to the
10243 @kbd{C-c C-c} command, Gnus won't re-highlight the article.
10244
10245 @item B q
10246 @kindex B q (Summary)
10247 @findex gnus-summary-respool-query
10248 If you want to re-spool an article, you might be curious as to what group
10249 the article will end up in before you do the re-spooling.  This command
10250 will tell you (@code{gnus-summary-respool-query}).
10251
10252 @item B t
10253 @kindex B t (Summary)
10254 @findex gnus-summary-respool-trace
10255 Similarly, this command will display all fancy splitting patterns used
10256 when respooling, if any (@code{gnus-summary-respool-trace}).
10257
10258 @item B p
10259 @kindex B p (Summary)
10260 @findex gnus-summary-article-posted-p
10261 Some people have a tendency to send you ``courtesy'' copies when they
10262 follow up to articles you have posted.  These usually have a
10263 @code{Newsgroups} header in them, but not always.  This command
10264 (@code{gnus-summary-article-posted-p}) will try to fetch the current
10265 article from your news server (or rather, from
10266 @code{gnus-refer-article-method} or @code{gnus-select-method}) and will
10267 report back whether it found the article or not.  Even if it says that
10268 it didn't find the article, it may have been posted anyway---mail
10269 propagation is much faster than news propagation, and the news copy may
10270 just not have arrived yet.
10271
10272 @item K E
10273 @kindex K E (Summary)
10274 @findex gnus-article-encrypt-body
10275 @vindex gnus-article-encrypt-protocol
10276 Encrypt the body of an article (@code{gnus-article-encrypt-body}).
10277 The body is encrypted with the encryption protocol specified by the
10278 variable @code{gnus-article-encrypt-protocol}.
10279
10280 @end table
10281
10282 @vindex gnus-move-split-methods
10283 @cindex moving articles
10284 If you move (or copy) articles regularly, you might wish to have Gnus
10285 suggest where to put the articles.  @code{gnus-move-split-methods} is a
10286 variable that uses the same syntax as @code{gnus-split-methods}
10287 (@pxref{Saving Articles}).  You may customize that variable to create
10288 suggestions you find reasonable.  (Note that
10289 @code{gnus-move-split-methods} uses group names where
10290 @code{gnus-split-methods} uses file names.)
10291
10292 @lisp
10293 (setq gnus-move-split-methods
10294       '(("^From:.*Lars Magne" "nnml:junk")
10295         ("^Subject:.*gnus" "nnfolder:important")
10296         (".*" "nnml:misc")))
10297 @end lisp
10298
10299
10300 @node Various Summary Stuff
10301 @section Various Summary Stuff
10302
10303 @menu
10304 * Summary Group Information::   Information oriented commands.
10305 * Searching for Articles::      Multiple article commands.
10306 * Summary Generation Commands::
10307 * Really Various Summary Commands::  Those pesky non-conformant commands.
10308 @end menu
10309
10310 @table @code
10311 @vindex gnus-summary-display-while-building
10312 @item gnus-summary-display-while-building
10313 If non-@code{nil}, show and update the summary buffer as it's being
10314 built.  If @code{t}, update the buffer after every line is inserted.
10315 If the value is an integer, @var{n}, update the display every @var{n}
10316 lines.  The default is @code{nil}.
10317
10318 @vindex gnus-summary-display-arrow
10319 @item gnus-summary-display-arrow
10320 If non-@code{nil}, display an arrow in the fringe to indicate the
10321 current article.
10322
10323 @vindex gnus-summary-mode-hook
10324 @item gnus-summary-mode-hook
10325 This hook is called when creating a summary mode buffer.
10326
10327 @vindex gnus-summary-generate-hook
10328 @item gnus-summary-generate-hook
10329 This is called as the last thing before doing the threading and the
10330 generation of the summary buffer.  It's quite convenient for customizing
10331 the threading variables based on what data the newsgroup has.  This hook
10332 is called from the summary buffer after most summary buffer variables
10333 have been set.
10334
10335 @vindex gnus-summary-prepare-hook
10336 @item gnus-summary-prepare-hook
10337 It is called after the summary buffer has been generated.  You might use
10338 it to, for instance, highlight lines or modify the look of the buffer in
10339 some other ungodly manner.  I don't care.
10340
10341 @vindex gnus-summary-prepared-hook
10342 @item gnus-summary-prepared-hook
10343 A hook called as the very last thing after the summary buffer has been
10344 generated.
10345
10346 @vindex gnus-summary-ignore-duplicates
10347 @item gnus-summary-ignore-duplicates
10348 When Gnus discovers two articles that have the same @code{Message-ID},
10349 it has to do something drastic.  No articles are allowed to have the
10350 same @code{Message-ID}, but this may happen when reading mail from some
10351 sources.  Gnus allows you to customize what happens with this variable.
10352 If it is @code{nil} (which is the default), Gnus will rename the
10353 @code{Message-ID} (for display purposes only) and display the article as
10354 any other article.  If this variable is @code{t}, it won't display the
10355 article---it'll be as if it never existed.
10356
10357 @vindex gnus-alter-articles-to-read-function
10358 @item gnus-alter-articles-to-read-function
10359 This function, which takes two parameters (the group name and the list
10360 of articles to be selected), is called to allow the user to alter the
10361 list of articles to be selected.
10362
10363 For instance, the following function adds the list of cached articles to
10364 the list in one particular group:
10365
10366 @lisp
10367 (defun my-add-cached-articles (group articles)
10368   (if (string= group "some.group")
10369       (append gnus-newsgroup-cached articles)
10370     articles))
10371 @end lisp
10372
10373 @vindex gnus-newsgroup-variables
10374 @item gnus-newsgroup-variables
10375 A list of newsgroup (summary buffer) local variables, or cons of
10376 variables and their default expressions to be evalled (when the default
10377 values are not @code{nil}), that should be made global while the summary
10378 buffer is active.
10379
10380 Note: The default expressions will be evaluated (using function
10381 @code{eval}) before assignment to the local variable rather than just
10382 assigned to it.  If the default expression is the symbol @code{global},
10383 that symbol will not be evaluated but the global value of the local
10384 variable will be used instead.
10385
10386 These variables can be used to set variables in the group parameters
10387 while still allowing them to affect operations done in other
10388 buffers.  For example:
10389
10390 @lisp
10391 (setq gnus-newsgroup-variables
10392       '(message-use-followup-to
10393         (gnus-visible-headers .
10394  "^From:\\|^Newsgroups:\\|^Subject:\\|^Date:\\|^To:")))
10395 @end lisp
10396
10397 Also @pxref{Group Parameters}.
10398 @end table
10399
10400
10401 @node Summary Group Information
10402 @subsection Summary Group Information
10403
10404 @table @kbd
10405
10406 @item H f
10407 @kindex H f (Summary)
10408 @findex gnus-summary-fetch-faq
10409 @vindex gnus-group-faq-directory
10410 Try to fetch the @acronym{FAQ} (list of frequently asked questions)
10411 for the current group (@code{gnus-summary-fetch-faq}).  Gnus will try
10412 to get the @acronym{FAQ} from @code{gnus-group-faq-directory}, which
10413 is usually a directory on a remote machine.  This variable can also be
10414 a list of directories.  In that case, giving a prefix to this command
10415 will allow you to choose between the various sites.  @code{ange-ftp}
10416 or @code{efs} will probably be used for fetching the file.
10417
10418 @item H d
10419 @kindex H d (Summary)
10420 @findex gnus-summary-describe-group
10421 Give a brief description of the current group
10422 (@code{gnus-summary-describe-group}).  If given a prefix, force
10423 rereading the description from the server.
10424
10425 @item H h
10426 @kindex H h (Summary)
10427 @findex gnus-summary-describe-briefly
10428 Give an extremely brief description of the most important summary
10429 keystrokes (@code{gnus-summary-describe-briefly}).
10430
10431 @item H i
10432 @kindex H i (Summary)
10433 @findex gnus-info-find-node
10434 Go to the Gnus info node (@code{gnus-info-find-node}).
10435 @end table
10436
10437
10438 @node Searching for Articles
10439 @subsection Searching for Articles
10440
10441 @table @kbd
10442
10443 @item M-s
10444 @kindex M-s (Summary)
10445 @findex gnus-summary-search-article-forward
10446 Search through all subsequent (raw) articles for a regexp
10447 (@code{gnus-summary-search-article-forward}).
10448
10449 @item M-r
10450 @kindex M-r (Summary)
10451 @findex gnus-summary-search-article-backward
10452 Search through all previous (raw) articles for a regexp
10453 (@code{gnus-summary-search-article-backward}).
10454
10455 @item M-S
10456 @kindex M-S (Summary)
10457 @findex gnus-summary-repeat-search-article-forward
10458 Repeat the previous search forwards
10459 (@code{gnus-summary-repeat-search-article-forward}).
10460
10461 @item M-R
10462 @kindex M-R (Summary)
10463 @findex gnus-summary-repeat-search-article-backward
10464 Repeat the previous search backwards
10465 (@code{gnus-summary-repeat-search-article-backward}).
10466
10467 @item &
10468 @kindex & (Summary)
10469 @findex gnus-summary-execute-command
10470 This command will prompt you for a header, a regular expression to match
10471 on this field, and a command to be executed if the match is made
10472 (@code{gnus-summary-execute-command}).  If the header is an empty
10473 string, the match is done on the entire article.  If given a prefix,
10474 search backward instead.
10475