Fix typo in previous commit.
[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::        Simple ways to avoid unsolicited commercial email.
820 * Spam Package::                A package for filtering and processing spam.
821 * Other modes::                 Interaction with other modes.
822 * Various Various::             Things that are really various.
823
824 Formatting Variables
825
826 * Formatting Basics::           A formatting variable is basically a format string.
827 * Mode Line Formatting::        Some rules about mode line formatting variables.
828 * Advanced Formatting::         Modifying output in various ways.
829 * User-Defined Specs::          Having Gnus call your own functions.
830 * Formatting Fonts::            Making the formatting look colorful and nice.
831 * Positioning Point::           Moving point to a position after an operation.
832 * Tabulation::                  Tabulating your output.
833 * Wide Characters::             Dealing with wide characters.
834
835 Image Enhancements
836
837 * X-Face::                      Display a funky, teensy black-and-white image.
838 * Face::                        Display a funkier, teensier colored image.
839 * Smileys::                     Show all those happy faces the way they were
840                                   meant to be shown.
841 * Picons::                      How to display pictures of what you're reading.
842 * XVarious::                    Other XEmacsy Gnusey variables.
843
844 Thwarting Email Spam
845
846 * The problem of spam::         Some background, and some solutions
847 * Anti-Spam Basics::            Simple steps to reduce the amount of spam.
848 * SpamAssassin::                How to use external anti-spam tools.
849 * Hashcash::                    Reduce spam by burning CPU time.
850
851 Spam Package
852
853 * Spam Package Introduction::
854 * Filtering Incoming Mail::
855 * Detecting Spam in Groups::
856 * Spam and Ham Processors::
857 * Spam Package Configuration Examples::
858 * Spam Back Ends::
859 * Extending the Spam package::
860 * Spam Statistics Package::
861
862 Spam Statistics Package
863
864 * Creating a spam-stat dictionary::
865 * Splitting mail using spam-stat::
866 * Low-level interface to the spam-stat dictionary::
867
868 Appendices
869
870 * XEmacs::                      Requirements for installing under XEmacs.
871 * History::                     How Gnus got where it is today.
872 * On Writing Manuals::          Why this is not a beginner's guide.
873 * Terminology::                 We use really difficult, like, words here.
874 * Customization::               Tailoring Gnus to your needs.
875 * Troubleshooting::             What you might try if things do not work.
876 * Gnus Reference Guide::        Rilly, rilly technical stuff.
877 * Emacs for Heathens::          A short introduction to Emacsian terms.
878 * Frequently Asked Questions::  The Gnus FAQ
879
880 History
881
882 * Gnus Versions::               What Gnus versions have been released.
883 * Other Gnus Versions::         Other Gnus versions that also have been released.
884 * Why?::                        What's the point of Gnus?
885 * Compatibility::               Just how compatible is Gnus with @sc{gnus}?
886 * Conformity::                  Gnus tries to conform to all standards.
887 * Emacsen::                     Gnus can be run on a few modern Emacsen.
888 * Gnus Development::            How Gnus is developed.
889 * Contributors::                Oodles of people.
890 * New Features::                Pointers to some of the new stuff in Gnus.
891
892 New Features
893
894 * ding Gnus::                   New things in Gnus 5.0/5.1, the first new Gnus.
895 * September Gnus::              The Thing Formally Known As Gnus 5.2/5.3.
896 * Red Gnus::                    Third time best---Gnus 5.4/5.5.
897 * Quassia Gnus::                Two times two is four, or Gnus 5.6/5.7.
898 * Pterodactyl Gnus::            Pentad also starts with P, AKA Gnus 5.8/5.9.
899 * Oort Gnus::                   It's big.  It's far out.  Gnus 5.10/5.11.
900 * No Gnus::                     Very punny.
901
902 Customization
903
904 * Slow/Expensive Connection::   You run a local Emacs and get the news elsewhere.
905 * Slow Terminal Connection::    You run a remote Emacs.
906 * Little Disk Space::           You feel that having large setup files is icky.
907 * Slow Machine::                You feel like buying a faster machine.
908
909 Gnus Reference Guide
910
911 * Gnus Utility Functions::      Common functions and variable to use.
912 * Back End Interface::          How Gnus communicates with the servers.
913 * Score File Syntax::           A BNF definition of the score file standard.
914 * Headers::                     How Gnus stores headers internally.
915 * Ranges::                      A handy format for storing mucho numbers.
916 * Group Info::                  The group info format.
917 * Extended Interactive::        Symbolic prefixes and stuff.
918 * Emacs/XEmacs Code::           Gnus can be run under all modern Emacsen.
919 * Various File Formats::        Formats of files that Gnus use.
920
921 Back End Interface
922
923 * Required Back End Functions::  Functions that must be implemented.
924 * Optional Back End Functions::  Functions that need not be implemented.
925 * Error Messaging::             How to get messages and report errors.
926 * Writing New Back Ends::       Extending old back ends.
927 * Hooking New Back Ends Into Gnus::  What has to be done on the Gnus end.
928 * Mail-like Back Ends::         Some tips on mail back ends.
929
930 Various File Formats
931
932 * Active File Format::          Information on articles and groups available.
933 * Newsgroups File Format::      Group descriptions.
934
935 Emacs for Heathens
936
937 * Keystrokes::                  Entering text and executing commands.
938 * Emacs Lisp::                  The built-in Emacs programming language.
939
940 @end detailmenu
941 @end menu
942
943 @node Starting Up
944 @chapter Starting Gnus
945 @cindex starting up
946
947 If you are haven't used Emacs much before using Gnus, read @ref{Emacs
948 for Heathens} first.
949
950 @kindex M-x gnus
951 @findex gnus
952 If your system administrator has set things up properly, starting Gnus
953 and reading news is extremely easy---you just type @kbd{M-x gnus} in
954 your Emacs.  If not, you should customize the variable
955 @code{gnus-select-method} as described in @ref{Finding the News}.  For a
956 minimal setup for posting should also customize the variables
957 @code{user-full-name} and @code{user-mail-address}.
958
959 @findex gnus-other-frame
960 @kindex M-x gnus-other-frame
961 If you want to start Gnus in a different frame, you can use the command
962 @kbd{M-x gnus-other-frame} instead.
963
964 If things do not go smoothly at startup, you have to twiddle some
965 variables in your @file{~/.gnus.el} file.  This file is similar to
966 @file{~/.emacs}, but is read when Gnus starts.
967
968 If you puzzle at any terms used in this manual, please refer to the
969 terminology section (@pxref{Terminology}).
970
971 @menu
972 * Finding the News::      Choosing a method for getting news.
973 * The First Time::        What does Gnus do the first time you start it?
974 * The Server is Down::    How can I read my mail then?
975 * Slave Gnusae::          You can have more than one Gnus active at a time.
976 * New Groups::            What is Gnus supposed to do with new groups?
977 * Changing Servers::      You may want to move from one server to another.
978 * Startup Files::         Those pesky startup files---@file{.newsrc}.
979 * Auto Save::             Recovering from a crash.
980 * The Active File::       Reading the active file over a slow line Takes Time.
981 * Startup Variables::     Other variables you might change.
982 @end menu
983
984
985 @node Finding the News
986 @section Finding the News
987 @cindex finding news
988
989 @vindex gnus-select-method
990 @c @head
991 The @code{gnus-select-method} variable says where Gnus should look for
992 news.  This variable should be a list where the first element says
993 @dfn{how} and the second element says @dfn{where}.  This method is your
994 native method.  All groups not fetched with this method are
995 foreign groups.
996
997 For instance, if the @samp{news.somewhere.edu} @acronym{NNTP} server is where
998 you want to get your daily dosage of news from, you'd say:
999
1000 @lisp
1001 (setq gnus-select-method '(nntp "news.somewhere.edu"))
1002 @end lisp
1003
1004 If you want to read directly from the local spool, say:
1005
1006 @lisp
1007 (setq gnus-select-method '(nnspool ""))
1008 @end lisp
1009
1010 If you can use a local spool, you probably should, as it will almost
1011 certainly be much faster.  But do not use the local spool if your
1012 server is running Leafnode (which is a simple, standalone private news
1013 server); in this case, use @code{(nntp "localhost")}.
1014
1015 @vindex gnus-nntpserver-file
1016 @cindex NNTPSERVER
1017 @cindex @acronym{NNTP} server
1018 If this variable is not set, Gnus will take a look at the
1019 @env{NNTPSERVER} environment variable.  If that variable isn't set,
1020 Gnus will see whether @code{gnus-nntpserver-file}
1021 (@file{/etc/nntpserver} by default) has any opinions on the matter.
1022 If that fails as well, Gnus will try to use the machine running Emacs
1023 as an @acronym{NNTP} server.  That's a long shot, though.
1024
1025 @vindex gnus-nntp-server
1026 If @code{gnus-nntp-server} is set, this variable will override
1027 @code{gnus-select-method}.  You should therefore set
1028 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
1029
1030 @vindex gnus-secondary-servers
1031 @vindex gnus-nntp-server
1032 You can also make Gnus prompt you interactively for the name of an
1033 @acronym{NNTP} server.  If you give a non-numerical prefix to @code{gnus}
1034 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
1035 in the @code{gnus-secondary-servers} list (if any).  You can also just
1036 type in the name of any server you feel like visiting.  (Note that this
1037 will set @code{gnus-nntp-server}, which means that if you then @kbd{M-x
1038 gnus} later in the same Emacs session, Gnus will contact the same
1039 server.)
1040
1041 @findex gnus-group-browse-foreign-server
1042 @kindex B (Group)
1043 However, if you use one @acronym{NNTP} server regularly and are just
1044 interested in a couple of groups from a different server, you would be
1045 better served by using the @kbd{B} command in the group buffer.  It will
1046 let you have a look at what groups are available, and you can subscribe
1047 to any of the groups you want to.  This also makes @file{.newsrc}
1048 maintenance much tidier.  @xref{Foreign Groups}.
1049
1050 @vindex gnus-secondary-select-methods
1051 @c @head
1052 A slightly different approach to foreign groups is to set the
1053 @code{gnus-secondary-select-methods} variable.  The select methods
1054 listed in this variable are in many ways just as native as the
1055 @code{gnus-select-method} server.  They will also be queried for active
1056 files during startup (if that's required), and new newsgroups that
1057 appear on these servers will be subscribed (or not) just as native
1058 groups are.
1059
1060 For instance, if you use the @code{nnmbox} back end to read your mail,
1061 you would typically set this variable to
1062
1063 @lisp
1064 (setq gnus-secondary-select-methods '((nnmbox "")))
1065 @end lisp
1066
1067 Note: the @acronym{NNTP} back end stores marks in marks files
1068 (@pxref{NNTP marks}).  This feature makes it easy to share marks between
1069 several Gnus installations, but may slow down things a bit when fetching
1070 new articles.  @xref{NNTP marks}, for more information.
1071
1072
1073 @node The First Time
1074 @section The First Time
1075 @cindex first time usage
1076
1077 If no startup files exist (@pxref{Startup Files}), Gnus will try to
1078 determine what groups should be subscribed by default.
1079
1080 @vindex gnus-default-subscribed-newsgroups
1081 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
1082 will subscribe you to just those groups in that list, leaving the rest
1083 killed.  Your system administrator should have set this variable to
1084 something useful.
1085
1086 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
1087 picked groups (i.e., @samp{*.newusers}).  (@dfn{Arbitrary} is defined
1088 here as @dfn{whatever Lars thinks you should read}.)
1089
1090 You'll also be subscribed to the Gnus documentation group, which should
1091 help you with most common problems.
1092
1093 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
1094 use the normal functions for handling new groups, and not do anything
1095 special.
1096
1097
1098 @node The Server is Down
1099 @section The Server is Down
1100 @cindex server errors
1101
1102 If the default server is down, Gnus will understandably have some
1103 problems starting.  However, if you have some mail groups in addition to
1104 the news groups, you may want to start Gnus anyway.
1105
1106 Gnus, being the trusting sort of program, will ask whether to proceed
1107 without a native select method if that server can't be contacted.  This
1108 will happen whether the server doesn't actually exist (i.e., you have
1109 given the wrong address) or the server has just momentarily taken ill
1110 for some reason or other.  If you decide to continue and have no foreign
1111 groups, you'll find it difficult to actually do anything in the group
1112 buffer.  But, hey, that's your problem.  Blllrph!
1113
1114 @findex gnus-no-server
1115 @kindex M-x gnus-no-server
1116 @c @head
1117 If you know that the server is definitely down, or you just want to read
1118 your mail without bothering with the server at all, you can use the
1119 @code{gnus-no-server} command to start Gnus.  That might come in handy
1120 if you're in a hurry as well.  This command will not attempt to contact
1121 your primary server---instead, it will just activate all groups on level
1122 1 and 2.  (You should preferably keep no native groups on those two
1123 levels.) Also @pxref{Group Levels}.
1124
1125
1126 @node Slave Gnusae
1127 @section Slave Gnusae
1128 @cindex slave
1129
1130 You might want to run more than one Emacs with more than one Gnus at the
1131 same time.  If you are using different @file{.newsrc} files (e.g., if you
1132 are using the two different Gnusae to read from two different servers),
1133 that is no problem whatsoever.  You just do it.
1134
1135 The problem appears when you want to run two Gnusae that use the same
1136 @file{.newsrc} file.
1137
1138 To work around that problem some, we here at the Think-Tank at the Gnus
1139 Towers have come up with a new concept: @dfn{Masters} and
1140 @dfn{slaves}.  (We have applied for a patent on this concept, and have
1141 taken out a copyright on those words.  If you wish to use those words in
1142 conjunction with each other, you have to send $1 per usage instance to
1143 me.  Usage of the patent (@dfn{Master/Slave Relationships In Computer
1144 Applications}) will be much more expensive, of course.)
1145
1146 @findex gnus-slave
1147 Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1148 however you do it).  Each subsequent slave Gnusae should be started with
1149 @kbd{M-x gnus-slave}.  These slaves won't save normal @file{.newsrc}
1150 files, but instead save @dfn{slave files} that contain information only
1151 on what groups have been read in the slave session.  When a master Gnus
1152 starts, it will read (and delete) these slave files, incorporating all
1153 information from them.  (The slave files will be read in the sequence
1154 they were created, so the latest changes will have precedence.)
1155
1156 Information from the slave files has, of course, precedence over the
1157 information in the normal (i.e., master) @file{.newsrc} file.
1158
1159 If the @file{.newsrc*} files have not been saved in the master when the
1160 slave starts, you may be prompted as to whether to read an auto-save
1161 file.  If you answer ``yes'', the unsaved changes to the master will be
1162 incorporated into the slave.  If you answer ``no'', the slave may see some
1163 messages as unread that have been read in the master.
1164
1165
1166
1167 @node New Groups
1168 @section New Groups
1169 @cindex new groups
1170 @cindex subscription
1171
1172 @vindex gnus-check-new-newsgroups
1173 If you are satisfied that you really never want to see any new groups,
1174 you can set @code{gnus-check-new-newsgroups} to @code{nil}.  This will
1175 also save you some time at startup.  Even if this variable is
1176 @code{nil}, you can always subscribe to the new groups just by pressing
1177 @kbd{U} in the group buffer (@pxref{Group Maintenance}).  This variable
1178 is @code{ask-server} by default.  If you set this variable to
1179 @code{always}, then Gnus will query the back ends for new groups even
1180 when you do the @kbd{g} command (@pxref{Scanning New Messages}).
1181
1182 @menu
1183 * Checking New Groups::         Determining what groups are new.
1184 * Subscription Methods::        What Gnus should do with new groups.
1185 * Filtering New Groups::        Making Gnus ignore certain new groups.
1186 @end menu
1187
1188
1189 @node Checking New Groups
1190 @subsection Checking New Groups
1191
1192 Gnus normally determines whether a group is new or not by comparing the
1193 list of groups from the active file(s) with the lists of subscribed and
1194 dead groups.  This isn't a particularly fast method.  If
1195 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
1196 server for new groups since the last time.  This is both faster and
1197 cheaper.  This also means that you can get rid of the list of killed
1198 groups altogether, so you may set @code{gnus-save-killed-list} to
1199 @code{nil}, which will save time both at startup, at exit, and all over.
1200 Saves disk space, too.  Why isn't this the default, then?
1201 Unfortunately, not all servers support this command.
1202
1203 I bet I know what you're thinking now: How do I find out whether my
1204 server supports @code{ask-server}?  No?  Good, because I don't have a
1205 fail-safe answer.  I would suggest just setting this variable to
1206 @code{ask-server} and see whether any new groups appear within the next
1207 few days.  If any do, then it works.  If none do, then it doesn't
1208 work.  I could write a function to make Gnus guess whether the server
1209 supports @code{ask-server}, but it would just be a guess.  So I won't.
1210 You could @code{telnet} to the server and say @code{HELP} and see
1211 whether it lists @samp{NEWGROUPS} among the commands it understands.  If
1212 it does, then it might work.  (But there are servers that lists
1213 @samp{NEWGROUPS} without supporting the function properly.)
1214
1215 This variable can also be a list of select methods.  If so, Gnus will
1216 issue an @code{ask-server} command to each of the select methods, and
1217 subscribe them (or not) using the normal methods.  This might be handy
1218 if you are monitoring a few servers for new groups.  A side effect is
1219 that startup will take much longer, so you can meditate while waiting.
1220 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
1221
1222
1223 @node Subscription Methods
1224 @subsection Subscription Methods
1225
1226 @vindex gnus-subscribe-newsgroup-method
1227 What Gnus does when it encounters a new group is determined by the
1228 @code{gnus-subscribe-newsgroup-method} variable.
1229
1230 This variable should contain a function.  This function will be called
1231 with the name of the new group as the only parameter.
1232
1233 Some handy pre-fab functions are:
1234
1235 @table @code
1236
1237 @item gnus-subscribe-zombies
1238 @vindex gnus-subscribe-zombies
1239 Make all new groups zombies.  This is the default.  You can browse the
1240 zombies later (with @kbd{A z}) and either kill them all off properly
1241 (with @kbd{S z}), or subscribe to them (with @kbd{u}).
1242
1243 @item gnus-subscribe-randomly
1244 @vindex gnus-subscribe-randomly
1245 Subscribe all new groups in arbitrary order.  This really means that all
1246 new groups will be added at ``the top'' of the group buffer.
1247
1248 @item gnus-subscribe-alphabetically
1249 @vindex gnus-subscribe-alphabetically
1250 Subscribe all new groups in alphabetical order.
1251
1252 @item gnus-subscribe-hierarchically
1253 @vindex gnus-subscribe-hierarchically
1254 Subscribe all new groups hierarchically.  The difference between this
1255 function and @code{gnus-subscribe-alphabetically} is slight.
1256 @code{gnus-subscribe-alphabetically} will subscribe new groups in a strictly
1257 alphabetical fashion, while this function will enter groups into its
1258 hierarchy.  So if you want to have the @samp{rec} hierarchy before the
1259 @samp{comp} hierarchy, this function will not mess that configuration
1260 up.  Or something like that.
1261
1262 @item gnus-subscribe-interactively
1263 @vindex gnus-subscribe-interactively
1264 Subscribe new groups interactively.  This means that Gnus will ask
1265 you about @strong{all} new groups.  The groups you choose to subscribe
1266 to will be subscribed hierarchically.
1267
1268 @item gnus-subscribe-killed
1269 @vindex gnus-subscribe-killed
1270 Kill all new groups.
1271
1272 @item gnus-subscribe-topics
1273 @vindex gnus-subscribe-topics
1274 Put the groups into the topic that has a matching @code{subscribe} topic
1275 parameter (@pxref{Topic Parameters}).  For instance, a @code{subscribe}
1276 topic parameter that looks like
1277
1278 @example
1279 "nnslashdot"
1280 @end example
1281
1282 will mean that all groups that match that regex will be subscribed under
1283 that topic.
1284
1285 If no topics match the groups, the groups will be subscribed in the
1286 top-level topic.
1287
1288 @end table
1289
1290 @vindex gnus-subscribe-hierarchical-interactive
1291 A closely related variable is
1292 @code{gnus-subscribe-hierarchical-interactive}.  (That's quite a
1293 mouthful.)  If this variable is non-@code{nil}, Gnus will ask you in a
1294 hierarchical fashion whether to subscribe to new groups or not.  Gnus
1295 will ask you for each sub-hierarchy whether you want to descend the
1296 hierarchy or not.
1297
1298 One common mistake is to set the variable a few paragraphs above
1299 (@code{gnus-subscribe-newsgroup-method}) to
1300 @code{gnus-subscribe-hierarchical-interactive}.  This is an error.  This
1301 will not work.  This is ga-ga.  So don't do it.
1302
1303
1304 @node Filtering New Groups
1305 @subsection Filtering New Groups
1306
1307 A nice and portable way to control which new newsgroups should be
1308 subscribed (or ignored) is to put an @dfn{options} line at the start of
1309 the @file{.newsrc} file.  Here's an example:
1310
1311 @example
1312 options -n !alt.all !rec.all sci.all
1313 @end example
1314
1315 @vindex gnus-subscribe-options-newsgroup-method
1316 This line obviously belongs to a serious-minded intellectual scientific
1317 person (or she may just be plain old boring), because it says that all
1318 groups that have names beginning with @samp{alt} and @samp{rec} should
1319 be ignored, and all groups with names beginning with @samp{sci} should
1320 be subscribed.  Gnus will not use the normal subscription method for
1321 subscribing these groups.
1322 @code{gnus-subscribe-options-newsgroup-method} is used instead.  This
1323 variable defaults to @code{gnus-subscribe-alphabetically}.
1324
1325 @vindex gnus-options-not-subscribe
1326 @vindex gnus-options-subscribe
1327 If you don't want to mess with your @file{.newsrc} file, you can just
1328 set the two variables @code{gnus-options-subscribe} and
1329 @code{gnus-options-not-subscribe}.  These two variables do exactly the
1330 same as the @file{.newsrc} @samp{options -n} trick.  Both are regexps,
1331 and if the new group matches the former, it will be unconditionally
1332 subscribed, and if it matches the latter, it will be ignored.
1333
1334 @vindex gnus-auto-subscribed-groups
1335 Yet another variable that meddles here is
1336 @code{gnus-auto-subscribed-groups}.  It works exactly like
1337 @code{gnus-options-subscribe}, and is therefore really superfluous,
1338 but I thought it would be nice to have two of these.  This variable is
1339 more meant for setting some ground rules, while the other variable is
1340 used more for user fiddling.  By default this variable makes all new
1341 groups that come from mail back ends (@code{nnml}, @code{nnbabyl},
1342 @code{nnfolder}, @code{nnmbox}, @code{nnmh}, and @code{nnmaildir})
1343 subscribed.  If you don't like that, just set this variable to
1344 @code{nil}.
1345
1346 New groups that match this regexp are subscribed using
1347 @code{gnus-subscribe-options-newsgroup-method}.
1348
1349
1350 @node Changing Servers
1351 @section Changing Servers
1352 @cindex changing servers
1353
1354 Sometimes it is necessary to move from one @acronym{NNTP} server to another.
1355 This happens very rarely, but perhaps you change jobs, or one server is
1356 very flaky and you want to use another.
1357
1358 Changing the server is pretty easy, right?  You just change
1359 @code{gnus-select-method} to point to the new server?
1360
1361 @emph{Wrong!}
1362
1363 Article numbers are not (in any way) kept synchronized between different
1364 @acronym{NNTP} servers, and the only way Gnus keeps track of what articles
1365 you have read is by keeping track of article numbers.  So when you
1366 change @code{gnus-select-method}, your @file{.newsrc} file becomes
1367 worthless.
1368
1369 Gnus provides a few functions to attempt to translate a @file{.newsrc}
1370 file from one server to another.  They all have one thing in
1371 common---they take a looong time to run.  You don't want to use these
1372 functions more than absolutely necessary.
1373
1374 @kindex M-x gnus-change-server
1375 @findex gnus-change-server
1376 If you have access to both servers, Gnus can request the headers for all
1377 the articles you have read and compare @code{Message-ID}s and map the
1378 article numbers of the read articles and article marks.  The @kbd{M-x
1379 gnus-change-server} command will do this for all your native groups.  It
1380 will prompt for the method you want to move to.
1381
1382 @kindex M-x gnus-group-move-group-to-server
1383 @findex gnus-group-move-group-to-server
1384 You can also move individual groups with the @kbd{M-x
1385 gnus-group-move-group-to-server} command.  This is useful if you want to
1386 move a (foreign) group from one server to another.
1387
1388 @kindex M-x gnus-group-clear-data-on-native-groups
1389 @findex gnus-group-clear-data-on-native-groups
1390 If you don't have access to both the old and new server, all your marks
1391 and read ranges have become worthless.  You can use the @kbd{M-x
1392 gnus-group-clear-data-on-native-groups} command to clear out all data
1393 that you have on your native groups.  Use with caution.
1394
1395 @kindex M-x gnus-group-clear-data
1396 @findex gnus-group-clear-data
1397 Clear the data from the current group only---nix out marks and the
1398 list of read articles (@code{gnus-group-clear-data}).
1399
1400 After changing servers, you @strong{must} move the cache hierarchy away,
1401 since the cached articles will have wrong article numbers, which will
1402 affect which articles Gnus thinks are read.
1403 @code{gnus-group-clear-data-on-native-groups} will ask you if you want
1404 to have it done automatically; for @code{gnus-group-clear-data}, you
1405 can use @kbd{M-x gnus-cache-move-cache} (but beware, it will move the
1406 cache for all groups).
1407
1408
1409 @node Startup Files
1410 @section Startup Files
1411 @cindex startup files
1412 @cindex .newsrc
1413 @cindex .newsrc.el
1414 @cindex .newsrc.eld
1415
1416 Most common Unix news readers use a shared startup file called
1417 @file{.newsrc}.  This file contains all the information about what
1418 groups are subscribed, and which articles in these groups have been
1419 read.
1420
1421 Things got a bit more complicated with @sc{gnus}.  In addition to
1422 keeping the @file{.newsrc} file updated, it also used a file called
1423 @file{.newsrc.el} for storing all the information that didn't fit into
1424 the @file{.newsrc} file.  (Actually, it also duplicated everything in
1425 the @file{.newsrc} file.)  @sc{gnus} would read whichever one of these
1426 files was the most recently saved, which enabled people to swap between
1427 @sc{gnus} and other newsreaders.
1428
1429 That was kinda silly, so Gnus went one better: In addition to the
1430 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
1431 @file{.newsrc.eld}.  It will read whichever of these files that are most
1432 recent, but it will never write a @file{.newsrc.el} file.  You should
1433 never delete the @file{.newsrc.eld} file---it contains much information
1434 not stored in the @file{.newsrc} file.
1435
1436 @vindex gnus-save-newsrc-file
1437 @vindex gnus-read-newsrc-file
1438 You can turn off writing the @file{.newsrc} file by setting
1439 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
1440 the file and save some space, as well as exiting from Gnus faster.
1441 However, this will make it impossible to use other newsreaders than
1442 Gnus.  But hey, who would want to, right?  Similarly, setting
1443 @code{gnus-read-newsrc-file} to @code{nil} makes Gnus ignore the
1444 @file{.newsrc} file and any @file{.newsrc-SERVER} files, which can be
1445 convenient if you use a different news reader occasionally, and you
1446 want to read a different subset of the available groups with that
1447 news reader.
1448
1449 @vindex gnus-save-killed-list
1450 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
1451 will not save the list of killed groups to the startup file.  This will
1452 save both time (when starting and quitting) and space (on disk).  It
1453 will also mean that Gnus has no record of what groups are new or old,
1454 so the automatic new groups subscription methods become meaningless.
1455 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
1456 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
1457 Groups}).  This variable can also be a regular expression.  If that's
1458 the case, remove all groups that do not match this regexp before
1459 saving.  This can be useful in certain obscure situations that involve
1460 several servers where not all servers support @code{ask-server}.
1461
1462 @vindex gnus-startup-file
1463 @vindex gnus-backup-startup-file
1464 @vindex version-control
1465 The @code{gnus-startup-file} variable says where the startup files are.
1466 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
1467 file being whatever that one is, with a @samp{.eld} appended.
1468 If you want version control for this file, set
1469 @code{gnus-backup-startup-file}.  It respects the same values as the
1470 @code{version-control} variable.
1471
1472 @vindex gnus-save-newsrc-hook
1473 @vindex gnus-save-quick-newsrc-hook
1474 @vindex gnus-save-standard-newsrc-hook
1475 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
1476 files, while @code{gnus-save-quick-newsrc-hook} is called just before
1477 saving the @file{.newsrc.eld} file, and
1478 @code{gnus-save-standard-newsrc-hook} is called just before saving the
1479 @file{.newsrc} file.  The latter two are commonly used to turn version
1480 control on or off.  Version control is on by default when saving the
1481 startup files.  If you want to turn backup creation off, say something like:
1482
1483 @lisp
1484 (defun turn-off-backup ()
1485   (set (make-local-variable 'backup-inhibited) t))
1486
1487 (add-hook 'gnus-save-quick-newsrc-hook 'turn-off-backup)
1488 (add-hook 'gnus-save-standard-newsrc-hook 'turn-off-backup)
1489 @end lisp
1490
1491 @vindex gnus-init-file
1492 @vindex gnus-site-init-file
1493 When Gnus starts, it will read the @code{gnus-site-init-file}
1494 (@file{.../site-lisp/gnus-init} by default) and @code{gnus-init-file}
1495 (@file{~/.gnus} by default) files.  These are normal Emacs Lisp files
1496 and can be used to avoid cluttering your @file{~/.emacs} and
1497 @file{site-init} files with Gnus stuff.  Gnus will also check for files
1498 with the same names as these, but with @file{.elc} and @file{.el}
1499 suffixes.  In other words, if you have set @code{gnus-init-file} to
1500 @file{~/.gnus}, it will look for @file{~/.gnus.elc}, @file{~/.gnus.el},
1501 and finally @file{~/.gnus} (in this order).  If Emacs was invoked with
1502 the @option{-q} or @option{--no-init-file} options (@pxref{Initial
1503 Options, ,Initial Options, emacs, The Emacs Manual}), Gnus doesn't read
1504 @code{gnus-init-file}.
1505
1506
1507 @node Auto Save
1508 @section Auto Save
1509 @cindex dribble file
1510 @cindex auto-save
1511
1512 Whenever you do something that changes the Gnus data (reading articles,
1513 catching up, killing/subscribing groups), the change is added to a
1514 special @dfn{dribble buffer}.  This buffer is auto-saved the normal
1515 Emacs way.  If your Emacs should crash before you have saved the
1516 @file{.newsrc} files, all changes you have made can be recovered from
1517 this file.
1518
1519 If Gnus detects this file at startup, it will ask the user whether to
1520 read it.  The auto save file is deleted whenever the real startup file is
1521 saved.
1522
1523 @vindex gnus-use-dribble-file
1524 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1525 maintain a dribble buffer.  The default is @code{t}.
1526
1527 @vindex gnus-dribble-directory
1528 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}.  If
1529 this variable is @code{nil}, which it is by default, Gnus will dribble
1530 into the directory where the @file{.newsrc} file is located.  (This is
1531 normally the user's home directory.)  The dribble file will get the same
1532 file permissions as the @file{.newsrc} file.
1533
1534 @vindex gnus-always-read-dribble-file
1535 If @code{gnus-always-read-dribble-file} is non-@code{nil}, Gnus will
1536 read the dribble file on startup without querying the user.
1537
1538
1539 @node The Active File
1540 @section The Active File
1541 @cindex active file
1542 @cindex ignored groups
1543
1544 When Gnus starts, or indeed whenever it tries to determine whether new
1545 articles have arrived, it reads the active file.  This is a very large
1546 file that lists all the active groups and articles on the server.
1547
1548 @vindex gnus-ignored-newsgroups
1549 Before examining the active file, Gnus deletes all lines that match the
1550 regexp @code{gnus-ignored-newsgroups}.  This is done primarily to reject
1551 any groups with bogus names, but you can use this variable to make Gnus
1552 ignore hierarchies you aren't ever interested in.  However, this is not
1553 recommended.  In fact, it's highly discouraged.  Instead, @pxref{New
1554 Groups} for an overview of other variables that can be used instead.
1555
1556 @c This variable is
1557 @c @code{nil} by default, and will slow down active file handling somewhat
1558 @c if you set it to anything else.
1559
1560 @vindex gnus-read-active-file
1561 @c @head
1562 The active file can be rather Huge, so if you have a slow network, you
1563 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1564 reading the active file.  This variable is @code{some} by default.
1565
1566 Gnus will try to make do by getting information just on the groups that
1567 you actually subscribe to.
1568
1569 Note that if you subscribe to lots and lots of groups, setting this
1570 variable to @code{nil} will probably make Gnus slower, not faster.  At
1571 present, having this variable @code{nil} will slow Gnus down
1572 considerably, unless you read news over a 2400 baud modem.
1573
1574 This variable can also have the value @code{some}.  Gnus will then
1575 attempt to read active info only on the subscribed groups.  On some
1576 servers this is quite fast (on sparkling, brand new INN servers that
1577 support the @code{LIST ACTIVE group} command), on others this isn't fast
1578 at all.  In any case, @code{some} should be faster than @code{nil}, and
1579 is certainly faster than @code{t} over slow lines.
1580
1581 Some news servers (old versions of Leafnode and old versions of INN, for
1582 instance) do not support the @code{LIST ACTIVE group}.  For these
1583 servers, @code{nil} is probably the most efficient value for this
1584 variable.
1585
1586 If this variable is @code{nil}, Gnus will ask for group info in total
1587 lock-step, which isn't very fast.  If it is @code{some} and you use an
1588 @acronym{NNTP} server, Gnus will pump out commands as fast as it can, and
1589 read all the replies in one swoop.  This will normally result in better
1590 performance, but if the server does not support the aforementioned
1591 @code{LIST ACTIVE group} command, this isn't very nice to the server.
1592
1593 If you think that starting up Gnus takes too long, try all the three
1594 different values for this variable and see what works best for you.
1595
1596 In any case, if you use @code{some} or @code{nil}, you should definitely
1597 kill all groups that you aren't interested in to speed things up.
1598
1599 Note that this variable also affects active file retrieval from
1600 secondary select methods.
1601
1602
1603 @node Startup Variables
1604 @section Startup Variables
1605
1606 @table @code
1607
1608 @item gnus-load-hook
1609 @vindex gnus-load-hook
1610 A hook run while Gnus is being loaded.  Note that this hook will
1611 normally be run just once in each Emacs session, no matter how many
1612 times you start Gnus.
1613
1614 @item gnus-before-startup-hook
1615 @vindex gnus-before-startup-hook
1616 A hook run after starting up Gnus successfully.
1617
1618 @item gnus-startup-hook
1619 @vindex gnus-startup-hook
1620 A hook run as the very last thing after starting up Gnus
1621
1622 @item gnus-started-hook
1623 @vindex gnus-started-hook
1624 A hook that is run as the very last thing after starting up Gnus
1625 successfully.
1626
1627 @item gnus-setup-news-hook
1628 @vindex gnus-setup-news-hook
1629 A hook that is run after reading the @file{.newsrc} file(s), but before
1630 generating the group buffer.
1631
1632 @item gnus-check-bogus-newsgroups
1633 @vindex gnus-check-bogus-newsgroups
1634 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1635 startup.  A @dfn{bogus group} is a group that you have in your
1636 @file{.newsrc} file, but doesn't exist on the news server.  Checking for
1637 bogus groups can take quite a while, so to save time and resources it's
1638 best to leave this option off, and do the checking for bogus groups once
1639 in a while from the group buffer instead (@pxref{Group Maintenance}).
1640
1641 @item gnus-inhibit-startup-message
1642 @vindex gnus-inhibit-startup-message
1643 If non-@code{nil}, the startup message won't be displayed.  That way,
1644 your boss might not notice as easily that you are reading news instead
1645 of doing your job.  Note that this variable is used before
1646 @file{~/.gnus.el} is loaded, so it should be set in @file{.emacs} instead.
1647
1648 @item gnus-no-groups-message
1649 @vindex gnus-no-groups-message
1650 Message displayed by Gnus when no groups are available.
1651
1652 @item gnus-play-startup-jingle
1653 @vindex gnus-play-startup-jingle
1654 If non-@code{nil}, play the Gnus jingle at startup.
1655
1656 @item gnus-startup-jingle
1657 @vindex gnus-startup-jingle
1658 Jingle to be played if the above variable is non-@code{nil}.  The
1659 default is @samp{Tuxedomoon.Jingle4.au}.
1660
1661 @end table
1662
1663
1664 @node Group Buffer
1665 @chapter Group Buffer
1666 @cindex group buffer
1667
1668 @c Alex Schroeder suggests to rearrange this as follows:
1669 @c
1670 @c <kensanata> ok, just save it for reference.  I'll go to bed in a minute.
1671 @c   1. Selecting a Group, 2. (new) Finding a Group, 3. Group Levels,
1672 @c   4. Subscription Commands, 5. Group Maneuvering, 6. Group Data,
1673 @c   7. Group Score, 8. Group Buffer Format
1674 @c <kensanata> Group Levels should have more information on levels 5 to 9.  I
1675 @c   suggest to split the 4th paragraph ("Gnus considers groups...") as follows:
1676 @c <kensanata> First, "Gnus considers groups... (default 9)."
1677 @c <kensanata> New, a table summarizing what levels 1 to 9 mean.
1678 @c <kensanata> Third, "Gnus treats subscribed ... reasons of efficiency"
1679 @c <kensanata> Then expand the next paragraph or add some more to it.
1680 @c    This short one sentence explains levels 1 and 2, therefore I understand
1681 @c    that I should keep important news at 3 and boring news at 4.
1682 @c    Say so!  Then go on to explain why I should bother with levels 6 to 9.
1683 @c    Maybe keep those that you don't want to read temporarily at 6,
1684 @c    those that you never want to read at 8, those that offend your
1685 @c    human rights at 9...
1686
1687
1688 The @dfn{group buffer} lists all (or parts) of the available groups.  It
1689 is the first buffer shown when Gnus starts, and will never be killed as
1690 long as Gnus is active.
1691
1692 @iftex
1693 @iflatex
1694 \gnusfigure{The Group Buffer}{320}{
1695 \put(75,50){\epsfig{figure=ps/group,height=9cm}}
1696 \put(120,37){\makebox(0,0)[t]{Buffer name}}
1697 \put(120,38){\vector(1,2){10}}
1698 \put(40,60){\makebox(0,0)[r]{Mode line}}
1699 \put(40,58){\vector(1,0){30}}
1700 \put(200,28){\makebox(0,0)[t]{Native select method}}
1701 \put(200,26){\vector(-1,2){15}}
1702 }
1703 @end iflatex
1704 @end iftex
1705
1706 @menu
1707 * Group Buffer Format::         Information listed and how you can change it.
1708 * Group Maneuvering::           Commands for moving in the group buffer.
1709 * Selecting a Group::           Actually reading news.
1710 * Subscription Commands::       Unsubscribing, killing, subscribing.
1711 * Group Data::                  Changing the info for a group.
1712 * Group Levels::                Levels? What are those, then?
1713 * Group Score::                 A mechanism for finding out what groups you like.
1714 * Marking Groups::              You can mark groups for later processing.
1715 * Foreign Groups::              Creating and editing groups.
1716 * Group Parameters::            Each group may have different parameters set.
1717 * Listing Groups::              Gnus can list various subsets of the groups.
1718 * Sorting Groups::              Re-arrange the group order.
1719 * Group Maintenance::           Maintaining a tidy @file{.newsrc} file.
1720 * Browse Foreign Server::       You can browse a server.  See what it has to offer.
1721 * Exiting Gnus::                Stop reading news and get some work done.
1722 * Group Topics::                A folding group mode divided into topics.
1723 * Misc Group Stuff::            Other stuff that you can to do.
1724 @end menu
1725
1726
1727 @node Group Buffer Format
1728 @section Group Buffer Format
1729
1730 @menu
1731 * Group Line Specification::    Deciding how the group buffer is to look.
1732 * Group Mode Line Specification::  The group buffer mode line.
1733 * Group Highlighting::          Having nice colors in the group buffer.
1734 @end menu
1735
1736 You can customize the Group Mode tool bar, see @kbd{M-x
1737 customize-apropos RET gnus-group-tool-bar}.  This feature is only
1738 available in Emacs.
1739
1740 The tool bar icons are now (de)activated correctly depending on the
1741 cursor position.  Therefore, moving around in the Group Buffer is
1742 slower.  You can disable this via the variable
1743 @code{gnus-group-update-tool-bar}.  Its default value depends on your
1744 Emacs version.
1745
1746 @node Group Line Specification
1747 @subsection Group Line Specification
1748 @cindex group buffer format
1749
1750 The default format of the group buffer is nice and dull, but you can
1751 make it as exciting and ugly as you feel like.
1752
1753 Here's a couple of example group lines:
1754
1755 @example
1756      25: news.announce.newusers
1757  *    0: alt.fan.andrea-dworkin
1758 @end example
1759
1760 Quite simple, huh?
1761
1762 You can see that there are 25 unread articles in
1763 @samp{news.announce.newusers}.  There are no unread articles, but some
1764 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1765 asterisk at the beginning of the line?).
1766
1767 @vindex gnus-group-line-format
1768 You can change that format to whatever you want by fiddling with the
1769 @code{gnus-group-line-format} variable.  This variable works along the
1770 lines of a @code{format} specification, which is pretty much the same as
1771 a @code{printf} specifications, for those of you who use (feh!) C.
1772 @xref{Formatting Variables}.
1773
1774 @samp{%M%S%5y:%B%(%g%)\n} is the value that produced those lines above.
1775
1776 There should always be a colon on the line; the cursor always moves to
1777 the colon after performing an operation.  @xref{Positioning
1778 Point}.  Nothing else is required---not even the group name.  All
1779 displayed text is just window dressing, and is never examined by Gnus.
1780 Gnus stores all real information it needs using text properties.
1781
1782 (Note that if you make a really strange, wonderful, spreadsheet-like
1783 layout, everybody will believe you are hard at work with the accounting
1784 instead of wasting time reading news.)
1785
1786 Here's a list of all available format characters:
1787
1788 @table @samp
1789
1790 @item M
1791 An asterisk if the group only has marked articles.
1792
1793 @item S
1794 Whether the group is subscribed.
1795
1796 @item L
1797 Level of subscribedness.
1798
1799 @item N
1800 Number of unread articles.
1801
1802 @item I
1803 Number of dormant articles.
1804
1805 @item T
1806 Number of ticked articles.
1807
1808 @item R
1809 Number of read articles.
1810
1811 @item U
1812 Number of unseen articles.
1813
1814 @item t
1815 Estimated total number of articles.  (This is really @var{max-number}
1816 minus @var{min-number} plus 1.)
1817
1818 Gnus uses this estimation because the @acronym{NNTP} protocol provides
1819 efficient access to @var{max-number} and @var{min-number} but getting
1820 the true unread message count is not possible efficiently.  For
1821 hysterical raisins, even the mail back ends, where the true number of
1822 unread messages might be available efficiently, use the same limited
1823 interface.  To remove this restriction from Gnus means that the back
1824 end interface has to be changed, which is not an easy job.  If you
1825 want to work on this, please contact the Gnus mailing list.
1826
1827 @item y
1828 Number of unread, unticked, non-dormant articles.
1829
1830 @item i
1831 Number of ticked and dormant articles.
1832
1833 @item g
1834 Full group name.
1835
1836 @item G
1837 Group name.
1838
1839 @item C
1840 Group comment (@pxref{Group Parameters}) or group name if there is no
1841 comment element in the group parameters.
1842
1843 @item D
1844 Newsgroup description.  You need to read the group descriptions
1845 before these will appear, and to do that, you either have to set
1846 @code{gnus-read-active-file} or use the group buffer @kbd{M-d}
1847 command.
1848
1849 @item o
1850 @samp{m} if moderated.
1851
1852 @item O
1853 @samp{(m)} if moderated.
1854
1855 @item s
1856 Select method.
1857
1858 @item B
1859 If the summary buffer for the group is open or not.
1860
1861 @item n
1862 Select from where.
1863
1864 @item z
1865 A string that looks like @samp{<%s:%n>} if a foreign select method is
1866 used.
1867
1868 @item P
1869 Indentation based on the level of the topic (@pxref{Group Topics}).
1870
1871 @item c
1872 @vindex gnus-group-uncollapsed-levels
1873 Short (collapsed) group name.  The @code{gnus-group-uncollapsed-levels}
1874 variable says how many levels to leave at the end of the group name.
1875 The default is 1---this will mean that group names like
1876 @samp{gnu.emacs.gnus} will be shortened to @samp{g.e.gnus}.
1877
1878 @item m
1879 @vindex gnus-new-mail-mark
1880 @cindex %
1881 @samp{%} (@code{gnus-new-mail-mark}) if there has arrived new mail to
1882 the group lately.
1883
1884 @item p
1885 @samp{#} (@code{gnus-process-mark}) if the group is process marked.
1886
1887 @item d
1888 A string that says when you last read the group (@pxref{Group
1889 Timestamp}).
1890
1891 @item F
1892 The disk space used by the articles fetched by both the cache and
1893 agent.  The value is automatically scaled to bytes(B), kilobytes(K),
1894 megabytes(M), or gigabytes(G) to minimize the column width.  A format
1895 of %7F is sufficient for a fixed-width column.
1896
1897 @item u
1898 User defined specifier.  The next character in the format string should
1899 be a letter.  Gnus will call the function
1900 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1901 following @samp{%u}.  The function will be passed a single dummy
1902 parameter as argument.  The function should return a string, which will
1903 be inserted into the buffer just like information from any other
1904 specifier.
1905 @end table
1906
1907 @cindex *
1908 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
1909 if no info is available---for instance, if it is a non-activated foreign
1910 group, or a bogus native group.
1911
1912
1913 @node Group Mode Line Specification
1914 @subsection Group Mode Line Specification
1915 @cindex group mode line
1916
1917 @vindex gnus-group-mode-line-format
1918 The mode line can be changed by setting
1919 @code{gnus-group-mode-line-format} (@pxref{Mode Line Formatting}).  It
1920 doesn't understand that many format specifiers:
1921
1922 @table @samp
1923 @item S
1924 The native news server.
1925 @item M
1926 The native select method.
1927 @end table
1928
1929
1930 @node Group Highlighting
1931 @subsection Group Highlighting
1932 @cindex highlighting
1933 @cindex group highlighting
1934
1935 @vindex gnus-group-highlight
1936 Highlighting in the group buffer is controlled by the
1937 @code{gnus-group-highlight} variable.  This is an alist with elements
1938 that look like @code{(@var{form} . @var{face})}.  If @var{form} evaluates to
1939 something non-@code{nil}, the @var{face} will be used on the line.
1940
1941 Here's an example value for this variable that might look nice if the
1942 background is dark:
1943
1944 @lisp
1945 (cond (window-system
1946        (setq custom-background-mode 'light)
1947        (defface my-group-face-1
1948          '((t (:foreground "Red" :bold t))) "First group face")
1949        (defface my-group-face-2
1950          '((t (:foreground "DarkSeaGreen4" :bold t)))
1951          "Second group face")
1952        (defface my-group-face-3
1953          '((t (:foreground "Green4" :bold t))) "Third group face")
1954        (defface my-group-face-4
1955          '((t (:foreground "SteelBlue" :bold t))) "Fourth group face")
1956        (defface my-group-face-5
1957          '((t (:foreground "Blue" :bold t))) "Fifth group face")))
1958
1959 (setq gnus-group-highlight
1960       '(((> unread 200) . my-group-face-1)
1961         ((and (< level 3) (zerop unread)) . my-group-face-2)
1962         ((< level 3) . my-group-face-3)
1963         ((zerop unread) . my-group-face-4)
1964         (t . my-group-face-5)))
1965 @end lisp
1966
1967 Also @pxref{Faces and Fonts}.
1968
1969 Variables that are dynamically bound when the forms are evaluated
1970 include:
1971
1972 @table @code
1973 @item group
1974 The group name.
1975 @item unread
1976 The number of unread articles in the group.
1977 @item method
1978 The select method.
1979 @item mailp
1980 Whether the group is a mail group.
1981 @item level
1982 The level of the group.
1983 @item score
1984 The score of the group.
1985 @item ticked
1986 The number of ticked articles in the group.
1987 @item total
1988 The total number of articles in the group.  Or rather,
1989 @var{max-number} minus @var{min-number} plus one.
1990 @item topic
1991 When using the topic minor mode, this variable is bound to the current
1992 topic being inserted.
1993 @end table
1994
1995 When the forms are @code{eval}ed, point is at the beginning of the line
1996 of the group in question, so you can use many of the normal Gnus
1997 functions for snarfing info on the group.
1998
1999 @vindex gnus-group-update-hook
2000 @findex gnus-group-highlight-line
2001 @code{gnus-group-update-hook} is called when a group line is changed.
2002 It will not be called when @code{gnus-visual} is @code{nil}.  This hook
2003 calls @code{gnus-group-highlight-line} by default.
2004
2005
2006 @node Group Maneuvering
2007 @section Group Maneuvering
2008 @cindex group movement
2009
2010 All movement commands understand the numeric prefix and will behave as
2011 expected, hopefully.
2012
2013 @table @kbd
2014
2015 @item n
2016 @kindex n (Group)
2017 @findex gnus-group-next-unread-group
2018 Go to the next group that has unread articles
2019 (@code{gnus-group-next-unread-group}).
2020
2021 @item p
2022 @itemx DEL
2023 @kindex DEL (Group)
2024 @kindex p (Group)
2025 @findex gnus-group-prev-unread-group
2026 Go to the previous group that has unread articles
2027 (@code{gnus-group-prev-unread-group}).
2028
2029 @item N
2030 @kindex N (Group)
2031 @findex gnus-group-next-group
2032 Go to the next group (@code{gnus-group-next-group}).
2033
2034 @item P
2035 @kindex P (Group)
2036 @findex gnus-group-prev-group
2037 Go to the previous group (@code{gnus-group-prev-group}).
2038
2039 @item M-n
2040 @kindex M-n (Group)
2041 @findex gnus-group-next-unread-group-same-level
2042 Go to the next unread group on the same (or lower) level
2043 (@code{gnus-group-next-unread-group-same-level}).
2044
2045 @item M-p
2046 @kindex M-p (Group)
2047 @findex gnus-group-prev-unread-group-same-level
2048 Go to the previous unread group on the same (or lower) level
2049 (@code{gnus-group-prev-unread-group-same-level}).
2050 @end table
2051
2052 Three commands for jumping to groups:
2053
2054 @table @kbd
2055
2056 @item j
2057 @kindex j (Group)
2058 @findex gnus-group-jump-to-group
2059 Jump to a group (and make it visible if it isn't already)
2060 (@code{gnus-group-jump-to-group}).  Killed groups can be jumped to, just
2061 like living groups.
2062
2063 @item ,
2064 @kindex , (Group)
2065 @findex gnus-group-best-unread-group
2066 Jump to the unread group with the lowest level
2067 (@code{gnus-group-best-unread-group}).
2068
2069 @item .
2070 @kindex . (Group)
2071 @findex gnus-group-first-unread-group
2072 Jump to the first group with unread articles
2073 (@code{gnus-group-first-unread-group}).
2074 @end table
2075
2076 @vindex gnus-group-goto-unread
2077 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
2078 commands will move to the next group, not the next unread group.  Even
2079 the commands that say they move to the next unread group.  The default
2080 is @code{t}.
2081
2082
2083 @node Selecting a Group
2084 @section Selecting a Group
2085 @cindex group selection
2086
2087 @table @kbd
2088
2089 @item SPACE
2090 @kindex SPACE (Group)
2091 @findex gnus-group-read-group
2092 Select the current group, switch to the summary buffer and display the
2093 first unread article (@code{gnus-group-read-group}).  If there are no
2094 unread articles in the group, or if you give a non-numerical prefix to
2095 this command, Gnus will offer to fetch all the old articles in this
2096 group from the server.  If you give a numerical prefix @var{n}, @var{n}
2097 determines the number of articles Gnus will fetch.  If @var{n} is
2098 positive, Gnus fetches the @var{n} newest articles, if @var{n} is
2099 negative, Gnus fetches the @code{abs(@var{n})} oldest articles.
2100
2101 Thus, @kbd{SPC} enters the group normally, @kbd{C-u SPC} offers old
2102 articles, @kbd{C-u 4 2 SPC} fetches the 42 newest articles, and @kbd{C-u
2103 - 4 2 SPC} fetches the 42 oldest ones.
2104
2105 When you are in the group (in the Summary buffer), you can type
2106 @kbd{M-g} to fetch new articles, or @kbd{C-u M-g} to also show the old
2107 ones.
2108
2109 @item RET
2110 @kindex RET (Group)
2111 @findex gnus-group-select-group
2112 Select the current group and switch to the summary buffer
2113 (@code{gnus-group-select-group}).  Takes the same arguments as
2114 @code{gnus-group-read-group}---the only difference is that this command
2115 does not display the first unread article automatically upon group
2116 entry.
2117
2118 @item M-RET
2119 @kindex M-RET (Group)
2120 @findex gnus-group-quick-select-group
2121 This does the same as the command above, but tries to do it with the
2122 minimum amount of fuzz (@code{gnus-group-quick-select-group}).  No
2123 scoring/killing will be performed, there will be no highlights and no
2124 expunging.  This might be useful if you're in a real hurry and have to
2125 enter some humongous group.  If you give a 0 prefix to this command
2126 (i.e., @kbd{0 M-RET}), Gnus won't even generate the summary buffer,
2127 which is useful if you want to toggle threading before generating the
2128 summary buffer (@pxref{Summary Generation Commands}).
2129
2130 @item M-SPACE
2131 @kindex M-SPACE (Group)
2132 @findex gnus-group-visible-select-group
2133 This is yet one more command that does the same as the @kbd{RET}
2134 command, but this one does it without expunging and hiding dormants
2135 (@code{gnus-group-visible-select-group}).
2136
2137 @item C-M-RET
2138 @kindex C-M-RET (Group)
2139 @findex gnus-group-select-group-ephemerally
2140 Finally, this command selects the current group ephemerally without
2141 doing any processing of its contents
2142 (@code{gnus-group-select-group-ephemerally}).  Even threading has been
2143 turned off.  Everything you do in the group after selecting it in this
2144 manner will have no permanent effects.
2145
2146 @end table
2147
2148 @vindex gnus-large-newsgroup
2149 The @code{gnus-large-newsgroup} variable says what Gnus should
2150 consider to be a big group.  If it is @code{nil}, no groups are
2151 considered big.  The default value is 200.  If the group has more
2152 (unread and/or ticked) articles than this, Gnus will query the user
2153 before entering the group.  The user can then specify how many
2154 articles should be fetched from the server.  If the user specifies a
2155 negative number (@var{-n}), the @var{n} oldest articles will be
2156 fetched.  If it is positive, the @var{n} articles that have arrived
2157 most recently will be fetched.
2158
2159 @vindex gnus-large-ephemeral-newsgroup
2160 @code{gnus-large-ephemeral-newsgroup} is the same as
2161 @code{gnus-large-newsgroup}, but is only used for ephemeral
2162 newsgroups.
2163
2164 @vindex gnus-select-group-hook
2165 @vindex gnus-auto-select-first
2166 @vindex gnus-auto-select-subject
2167 If @code{gnus-auto-select-first} is non-@code{nil}, select an article
2168 automatically when entering a group with the @kbd{SPACE} command.
2169 Which article this is is controlled by the
2170 @code{gnus-auto-select-subject} variable.  Valid values for this
2171 variable is:
2172
2173 @table @code
2174
2175 @item unread
2176 Place point on the subject line of the first unread article.
2177
2178 @item first
2179 Place point on the subject line of the first article.
2180
2181 @item unseen
2182 Place point on the subject line of the first unseen article.
2183
2184 @item unseen-or-unread
2185 Place point on the subject line of the first unseen article, and if
2186 there is no such article, place point on the subject line of the first
2187 unread article.
2188
2189 @item best
2190 Place point on the subject line of the highest-scored unread article.
2191
2192 @end table
2193
2194 This variable can also be a function.  In that case, that function
2195 will be called to place point on a subject line.
2196
2197 If you want to prevent automatic selection in some group (say, in a
2198 binary group with Huge articles) you can set the
2199 @code{gnus-auto-select-first} variable to @code{nil} in
2200 @code{gnus-select-group-hook}, which is called when a group is
2201 selected.
2202
2203
2204 @node Subscription Commands
2205 @section Subscription Commands
2206 @cindex subscription
2207
2208 @table @kbd
2209
2210 @item S t
2211 @itemx u
2212 @kindex S t (Group)
2213 @kindex u (Group)
2214 @findex gnus-group-unsubscribe-current-group
2215 @c @icon{gnus-group-unsubscribe}
2216 Toggle subscription to the current group
2217 (@code{gnus-group-unsubscribe-current-group}).
2218
2219 @item S s
2220 @itemx U
2221 @kindex S s (Group)
2222 @kindex U (Group)
2223 @findex gnus-group-unsubscribe-group
2224 Prompt for a group to subscribe, and then subscribe it.  If it was
2225 subscribed already, unsubscribe it instead
2226 (@code{gnus-group-unsubscribe-group}).
2227
2228 @item S k
2229 @itemx C-k
2230 @kindex S k (Group)
2231 @kindex C-k (Group)
2232 @findex gnus-group-kill-group
2233 @c @icon{gnus-group-kill-group}
2234 Kill the current group (@code{gnus-group-kill-group}).
2235
2236 @item S y
2237 @itemx C-y
2238 @kindex S y (Group)
2239 @kindex C-y (Group)
2240 @findex gnus-group-yank-group
2241 Yank the last killed group (@code{gnus-group-yank-group}).
2242
2243 @item C-x C-t
2244 @kindex C-x C-t (Group)
2245 @findex gnus-group-transpose-groups
2246 Transpose two groups (@code{gnus-group-transpose-groups}).  This isn't
2247 really a subscription command, but you can use it instead of a
2248 kill-and-yank sequence sometimes.
2249
2250 @item S w
2251 @itemx C-w
2252 @kindex S w (Group)
2253 @kindex C-w (Group)
2254 @findex gnus-group-kill-region
2255 Kill all groups in the region (@code{gnus-group-kill-region}).
2256
2257 @item S z
2258 @kindex S z (Group)
2259 @findex gnus-group-kill-all-zombies
2260 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
2261
2262 @item S C-k
2263 @kindex S C-k (Group)
2264 @findex gnus-group-kill-level
2265 Kill all groups on a certain level (@code{gnus-group-kill-level}).
2266 These groups can't be yanked back after killing, so this command should
2267 be used with some caution.  The only time where this command comes in
2268 really handy is when you have a @file{.newsrc} with lots of unsubscribed
2269 groups that you want to get rid off.  @kbd{S C-k} on level 7 will
2270 kill off all unsubscribed groups that do not have message numbers in the
2271 @file{.newsrc} file.
2272
2273 @end table
2274
2275 Also @pxref{Group Levels}.
2276
2277
2278 @node Group Data
2279 @section Group Data
2280
2281 @table @kbd
2282
2283 @item c
2284 @kindex c (Group)
2285 @findex gnus-group-catchup-current
2286 @vindex gnus-group-catchup-group-hook
2287 @c @icon{gnus-group-catchup-current}
2288 Mark all unticked articles in this group as read
2289 (@code{gnus-group-catchup-current}).
2290 @code{gnus-group-catchup-group-hook} is called when catching up a group from
2291 the group buffer.
2292
2293 @item C
2294 @kindex C (Group)
2295 @findex gnus-group-catchup-current-all
2296 Mark all articles in this group, even the ticked ones, as read
2297 (@code{gnus-group-catchup-current-all}).
2298
2299 @item M-c
2300 @kindex M-c (Group)
2301 @findex gnus-group-clear-data
2302 Clear the data from the current group---nix out marks and the list of
2303 read articles (@code{gnus-group-clear-data}).
2304
2305 @item M-x gnus-group-clear-data-on-native-groups
2306 @kindex M-x gnus-group-clear-data-on-native-groups
2307 @findex gnus-group-clear-data-on-native-groups
2308 If you have switched from one @acronym{NNTP} server to another, all your marks
2309 and read ranges have become worthless.  You can use this command to
2310 clear out all data that you have on your native groups.  Use with
2311 caution.
2312
2313 @end table
2314
2315
2316 @node Group Levels
2317 @section Group Levels
2318 @cindex group level
2319 @cindex level
2320
2321 All groups have a level of @dfn{subscribedness}.  For instance, if a
2322 group is on level 2, it is more subscribed than a group on level 5.  You
2323 can ask Gnus to just list groups on a given level or lower
2324 (@pxref{Listing Groups}), or to just check for new articles in groups on
2325 a given level or lower (@pxref{Scanning New Messages}).
2326
2327 Remember:  The higher the level of the group, the less important it is.
2328
2329 @table @kbd
2330
2331 @item S l
2332 @kindex S l (Group)
2333 @findex gnus-group-set-current-level
2334 Set the level of the current group.  If a numeric prefix is given, the
2335 next @var{n} groups will have their levels set.  The user will be
2336 prompted for a level.
2337 @end table
2338
2339 @vindex gnus-level-killed
2340 @vindex gnus-level-zombie
2341 @vindex gnus-level-unsubscribed
2342 @vindex gnus-level-subscribed
2343 Gnus considers groups from levels 1 to
2344 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
2345 @code{gnus-level-subscribed} (exclusive) and
2346 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
2347 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
2348 (default 8) and @code{gnus-level-killed} to be killed (completely dead)
2349 (default 9).  Gnus treats subscribed and unsubscribed groups exactly the
2350 same, but zombie and killed groups have no information on what articles
2351 you have read, etc, stored.  This distinction between dead and living
2352 groups isn't done because it is nice or clever, it is done purely for
2353 reasons of efficiency.
2354
2355 It is recommended that you keep all your mail groups (if any) on quite
2356 low levels (e.g. 1 or 2).
2357
2358 Maybe the following description of the default behavior of Gnus helps to
2359 understand what these levels are all about.  By default, Gnus shows you
2360 subscribed nonempty groups, but by hitting @kbd{L} you can have it show
2361 empty subscribed groups and unsubscribed groups, too.  Type @kbd{l} to
2362 go back to showing nonempty subscribed groups again.  Thus, unsubscribed
2363 groups are hidden, in a way.
2364
2365 Zombie and killed groups are similar to unsubscribed groups in that they
2366 are hidden by default.  But they are different from subscribed and
2367 unsubscribed groups in that Gnus doesn't ask the news server for
2368 information (number of messages, number of unread messages) on zombie
2369 and killed groups.  Normally, you use @kbd{C-k} to kill the groups you
2370 aren't interested in.  If most groups are killed, Gnus is faster.
2371
2372 Why does Gnus distinguish between zombie and killed groups?  Well, when
2373 a new group arrives on the server, Gnus by default makes it a zombie
2374 group.  This means that you are normally not bothered with new groups,
2375 but you can type @kbd{A z} to get a list of all new groups.  Subscribe
2376 the ones you like and kill the ones you don't want.  (@kbd{A k} shows a
2377 list of killed groups.)
2378
2379 If you want to play with the level variables, you should show some care.
2380 Set them once, and don't touch them ever again.  Better yet, don't touch
2381 them at all unless you know exactly what you're doing.
2382
2383 @vindex gnus-level-default-unsubscribed
2384 @vindex gnus-level-default-subscribed
2385 Two closely related variables are @code{gnus-level-default-subscribed}
2386 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
2387 which are the levels that new groups will be put on if they are
2388 (un)subscribed.  These two variables should, of course, be inside the
2389 relevant valid ranges.
2390
2391 @vindex gnus-keep-same-level
2392 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
2393 will only move to groups of the same level (or lower).  In
2394 particular, going from the last article in one group to the next group
2395 will go to the next group of the same level (or lower).  This might be
2396 handy if you want to read the most important groups before you read the
2397 rest.
2398
2399 If this variable is @code{best}, Gnus will make the next newsgroup the
2400 one with the best level.
2401
2402 @vindex gnus-group-default-list-level
2403 All groups with a level less than or equal to
2404 @code{gnus-group-default-list-level} will be listed in the group buffer
2405 by default.
2406
2407 @vindex gnus-group-list-inactive-groups
2408 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
2409 groups will be listed along with the unread groups.  This variable is
2410 @code{t} by default.  If it is @code{nil}, inactive groups won't be
2411 listed.
2412
2413 @vindex gnus-group-use-permanent-levels
2414 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
2415 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
2416 use this level as the ``work'' level.
2417
2418 @vindex gnus-activate-level
2419 Gnus will normally just activate (i. e., query the server about) groups
2420 on level @code{gnus-activate-level} or less.  If you don't want to
2421 activate unsubscribed groups, for instance, you might set this variable
2422 to 5.  The default is 6.
2423
2424
2425 @node Group Score
2426 @section Group Score
2427 @cindex group score
2428 @cindex group rank
2429 @cindex rank
2430
2431 You would normally keep important groups on high levels, but that scheme
2432 is somewhat restrictive.  Don't you wish you could have Gnus sort the
2433 group buffer according to how often you read groups, perhaps?  Within
2434 reason?
2435
2436 This is what @dfn{group score} is for.  You can have Gnus assign a score
2437 to each group through the mechanism described below.  You can then sort
2438 the group buffer based on this score.  Alternatively, you can sort on
2439 score and then level.  (Taken together, the level and the score is
2440 called the @dfn{rank} of the group.  A group that is on level 4 and has
2441 a score of 1 has a higher rank than a group on level 5 that has a score
2442 of 300.  (The level is the most significant part and the score is the
2443 least significant part.))
2444
2445 @findex gnus-summary-bubble-group
2446 If you want groups you read often to get higher scores than groups you
2447 read seldom you can add the @code{gnus-summary-bubble-group} function to
2448 the @code{gnus-summary-exit-hook} hook.  This will result (after
2449 sorting) in a bubbling sort of action.  If you want to see that in
2450 action after each summary exit, you can add
2451 @code{gnus-group-sort-groups-by-rank} or
2452 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
2453 slow things down somewhat.
2454
2455
2456 @node Marking Groups
2457 @section Marking Groups
2458 @cindex marking groups
2459
2460 If you want to perform some command on several groups, and they appear
2461 subsequently in the group buffer, you would normally just give a
2462 numerical prefix to the command.  Most group commands will then do your
2463 bidding on those groups.
2464
2465 However, if the groups are not in sequential order, you can still
2466 perform a command on several groups.  You simply mark the groups first
2467 with the process mark and then execute the command.
2468
2469 @table @kbd
2470
2471 @item #
2472 @kindex # (Group)
2473 @itemx M m
2474 @kindex M m (Group)
2475 @findex gnus-group-mark-group
2476 Set the mark on the current group (@code{gnus-group-mark-group}).
2477
2478 @item M-#
2479 @kindex M-# (Group)
2480 @itemx M u
2481 @kindex M u (Group)
2482 @findex gnus-group-unmark-group
2483 Remove the mark from the current group
2484 (@code{gnus-group-unmark-group}).
2485
2486 @item M U
2487 @kindex M U (Group)
2488 @findex gnus-group-unmark-all-groups
2489 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}).
2490
2491 @item M w
2492 @kindex M w (Group)
2493 @findex gnus-group-mark-region
2494 Mark all groups between point and mark (@code{gnus-group-mark-region}).
2495
2496 @item M b
2497 @kindex M b (Group)
2498 @findex gnus-group-mark-buffer
2499 Mark all groups in the buffer (@code{gnus-group-mark-buffer}).
2500
2501 @item M r
2502 @kindex M r (Group)
2503 @findex gnus-group-mark-regexp
2504 Mark all groups that match some regular expression
2505 (@code{gnus-group-mark-regexp}).
2506 @end table
2507
2508 Also @pxref{Process/Prefix}.
2509
2510 @findex gnus-group-universal-argument
2511 If you want to execute some command on all groups that have been marked
2512 with the process mark, you can use the @kbd{M-&}
2513 (@code{gnus-group-universal-argument}) command.  It will prompt you for
2514 the command to be executed.
2515
2516
2517 @node Foreign Groups
2518 @section Foreign Groups
2519 @cindex foreign groups
2520
2521 Below are some group mode commands for making and editing general foreign
2522 groups, as well as commands to ease the creation of a few
2523 special-purpose groups.  All these commands insert the newly created
2524 groups under point---@code{gnus-subscribe-newsgroup-method} is not
2525 consulted.
2526
2527 @table @kbd
2528
2529 @item G m
2530 @kindex G m (Group)
2531 @findex gnus-group-make-group
2532 @cindex making groups
2533 Make a new group (@code{gnus-group-make-group}).  Gnus will prompt you
2534 for a name, a method and possibly an @dfn{address}.  For an easier way
2535 to subscribe to @acronym{NNTP} groups (@pxref{Browse Foreign Server}).
2536
2537 @item G M
2538 @kindex G M (Group)
2539 @findex gnus-group-read-ephemeral-group
2540 Make an ephemeral group (@code{gnus-group-read-ephemeral-group}).  Gnus
2541 will prompt you for a name, a method and an @dfn{address}.
2542
2543 @item G r
2544 @kindex G r (Group)
2545 @findex gnus-group-rename-group
2546 @cindex renaming groups
2547 Rename the current group to something else
2548 (@code{gnus-group-rename-group}).  This is valid only on some
2549 groups---mail groups mostly.  This command might very well be quite slow
2550 on some back ends.
2551
2552 @item G c
2553 @kindex G c (Group)
2554 @cindex customizing
2555 @findex gnus-group-customize
2556 Customize the group parameters (@code{gnus-group-customize}).
2557
2558 @item G e
2559 @kindex G e (Group)
2560 @findex gnus-group-edit-group-method
2561 @cindex renaming groups
2562 Enter a buffer where you can edit the select method of the current
2563 group (@code{gnus-group-edit-group-method}).
2564
2565 @item G p
2566 @kindex G p (Group)
2567 @findex gnus-group-edit-group-parameters
2568 Enter a buffer where you can edit the group parameters
2569 (@code{gnus-group-edit-group-parameters}).
2570
2571 @item G E
2572 @kindex G E (Group)
2573 @findex gnus-group-edit-group
2574 Enter a buffer where you can edit the group info
2575 (@code{gnus-group-edit-group}).
2576
2577 @item G d
2578 @kindex G d (Group)
2579 @findex gnus-group-make-directory-group
2580 @cindex nndir
2581 Make a directory group (@pxref{Directory Groups}).  You will be prompted
2582 for a directory name (@code{gnus-group-make-directory-group}).
2583
2584 @item G h
2585 @kindex G h (Group)
2586 @cindex help group
2587 @findex gnus-group-make-help-group
2588 Make the Gnus help group (@code{gnus-group-make-help-group}).
2589
2590 @item G a
2591 @kindex G a (Group)
2592 @cindex (ding) archive
2593 @cindex archive group
2594 @findex gnus-group-make-archive-group
2595 @vindex gnus-group-archive-directory
2596 @vindex gnus-group-recent-archive-directory
2597 Make a Gnus archive group (@code{gnus-group-make-archive-group}).  By
2598 default a group pointing to the most recent articles will be created
2599 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
2600 group will be created from @code{gnus-group-archive-directory}.
2601
2602 @item G k
2603 @kindex G k (Group)
2604 @findex gnus-group-make-kiboze-group
2605 @cindex nnkiboze
2606 Make a kiboze group.  You will be prompted for a name, for a regexp to
2607 match groups to be ``included'' in the kiboze group, and a series of
2608 strings to match on headers (@code{gnus-group-make-kiboze-group}).
2609 @xref{Kibozed Groups}.
2610
2611 @item G D
2612 @kindex G D (Group)
2613 @findex gnus-group-enter-directory
2614 @cindex nneething
2615 Read an arbitrary directory as if it were a newsgroup with the
2616 @code{nneething} back end (@code{gnus-group-enter-directory}).
2617 @xref{Anything Groups}.
2618
2619 @item G f
2620 @kindex G f (Group)
2621 @findex gnus-group-make-doc-group
2622 @cindex ClariNet Briefs
2623 @cindex nndoc
2624 Make a group based on some file or other
2625 (@code{gnus-group-make-doc-group}).  If you give a prefix to this
2626 command, you will be prompted for a file name and a file type.
2627 Currently supported types are @code{mbox}, @code{babyl},
2628 @code{digest}, @code{news}, @code{rnews}, @code{mmdf}, @code{forward},
2629 @code{rfc934}, @code{rfc822-forward}, @code{mime-parts},
2630 @code{standard-digest}, @code{slack-digest}, @code{clari-briefs},
2631 @code{nsmail}, @code{outlook}, @code{oe-dbx}, and @code{mailman}.  If
2632 you run this command without a prefix, Gnus will guess at the file
2633 type.  @xref{Document Groups}.
2634
2635 @item G u
2636 @kindex G u (Group)
2637 @vindex gnus-useful-groups
2638 @findex gnus-group-make-useful-group
2639 Create one of the groups mentioned in @code{gnus-useful-groups}
2640 (@code{gnus-group-make-useful-group}).
2641
2642 @item G w
2643 @kindex G w (Group)
2644 @findex gnus-group-make-web-group
2645 @cindex Google
2646 @cindex nnweb
2647 @cindex gmane
2648 Make an ephemeral group based on a web search
2649 (@code{gnus-group-make-web-group}).  If you give a prefix to this
2650 command, make a solid group instead.  You will be prompted for the
2651 search engine type and the search string.  Valid search engine types
2652 include @code{google}, @code{dejanews}, and @code{gmane}.
2653 @xref{Web Searches}.
2654
2655 If you use the @code{google} search engine, you can limit the search
2656 to a particular group by using a match string like
2657 @samp{shaving group:alt.sysadmin.recovery}.
2658
2659 @item G R
2660 @kindex G R (Group)
2661 @findex gnus-group-make-rss-group
2662 Make a group based on an @acronym{RSS} feed
2663 (@code{gnus-group-make-rss-group}).  You will be prompted for an URL.
2664 @xref{RSS}.
2665
2666 @item G DEL
2667 @kindex G DEL (Group)
2668 @findex gnus-group-delete-group
2669 This function will delete the current group
2670 (@code{gnus-group-delete-group}).  If given a prefix, this function will
2671 actually delete all the articles in the group, and forcibly remove the
2672 group itself from the face of the Earth.  Use a prefix only if you are
2673 absolutely sure of what you are doing.  This command can't be used on
2674 read-only groups (like @code{nntp} groups), though.
2675
2676 @item G V
2677 @kindex G V (Group)
2678 @findex gnus-group-make-empty-virtual
2679 Make a new, fresh, empty @code{nnvirtual} group
2680 (@code{gnus-group-make-empty-virtual}).  @xref{Virtual Groups}.
2681
2682 @item G v
2683 @kindex G v (Group)
2684 @findex gnus-group-add-to-virtual
2685 Add the current group to an @code{nnvirtual} group
2686 (@code{gnus-group-add-to-virtual}).  Uses the process/prefix convention.
2687 @end table
2688
2689 @xref{Select Methods}, for more information on the various select
2690 methods.
2691
2692 @vindex gnus-activate-foreign-newsgroups
2693 If @code{gnus-activate-foreign-newsgroups} is a positive number,
2694 Gnus will check all foreign groups with this level or lower at startup.
2695 This might take quite a while, especially if you subscribe to lots of
2696 groups from different @acronym{NNTP} servers.  Also @pxref{Group Levels};
2697 @code{gnus-activate-level} also affects activation of foreign
2698 newsgroups.
2699
2700
2701 @node Group Parameters
2702 @section Group Parameters
2703 @cindex group parameters
2704
2705 The group parameters store information local to a particular group.
2706 Here's an example group parameter list:
2707
2708 @example
2709 ((to-address . "ding@@gnus.org")
2710  (auto-expire . t))
2711 @end example
2712
2713 We see that each element consists of a ``dotted pair''---the thing before
2714 the dot is the key, while the thing after the dot is the value.  All the
2715 parameters have this form @emph{except} local variable specs, which are
2716 not dotted pairs, but proper lists.
2717
2718 Some parameters have correspondent customizable variables, each of which
2719 is an alist of regexps and values.
2720
2721 The following group parameters can be used:
2722
2723 @table @code
2724 @item to-address
2725 @cindex to-address
2726 Address used by when doing followups and new posts.
2727
2728 @example
2729 (to-address . "some@@where.com")
2730 @end example
2731
2732 This is primarily useful in mail groups that represent closed mailing
2733 lists---mailing lists where it's expected that everybody that writes to
2734 the mailing list is subscribed to it.  Since using this parameter
2735 ensures that the mail only goes to the mailing list itself, it means
2736 that members won't receive two copies of your followups.
2737
2738 Using @code{to-address} will actually work whether the group is foreign
2739 or not.  Let's say there's a group on the server that is called
2740 @samp{fa.4ad-l}.  This is a real newsgroup, but the server has gotten
2741 the articles from a mail-to-news gateway.  Posting directly to this
2742 group is therefore impossible---you have to send mail to the mailing
2743 list address instead.
2744
2745 See also @code{gnus-parameter-to-address-alist}.
2746
2747 @item to-list
2748 @cindex to-list
2749 Address used when doing @kbd{a} in that group.
2750
2751 @example
2752 (to-list . "some@@where.com")
2753 @end example
2754
2755 It is totally ignored
2756 when doing a followup---except that if it is present in a news group,
2757 you'll get mail group semantics when doing @kbd{f}.
2758
2759 If you do an @kbd{a} command in a mail group and you have neither a
2760 @code{to-list} group parameter nor a @code{to-address} group parameter,
2761 then a @code{to-list} group parameter will be added automatically upon
2762 sending the message if @code{gnus-add-to-list} is set to @code{t}.
2763 @vindex gnus-add-to-list
2764
2765 @findex gnus-mailing-list-mode
2766 @cindex mail list groups
2767 If this variable is set, @code{gnus-mailing-list-mode} is turned on when
2768 entering summary buffer.
2769
2770 See also @code{gnus-parameter-to-list-alist}.
2771
2772 @anchor{subscribed}
2773 @item subscribed
2774 @cindex subscribed
2775 @cindex Mail-Followup-To
2776 @findex gnus-find-subscribed-addresses
2777 If this parameter is set to @code{t}, Gnus will consider the
2778 to-address and to-list parameters for this group as addresses of
2779 mailing lists you are subscribed to.  Giving Gnus this information is
2780 (only) a first step in getting it to generate correct Mail-Followup-To
2781 headers for your posts to these lists.  The second step is to put the
2782 following in your @file{.gnus.el}
2783
2784 @lisp
2785 (setq message-subscribed-address-functions
2786       '(gnus-find-subscribed-addresses))
2787 @end lisp
2788
2789 @xref{Mailing Lists, ,Mailing Lists, message, The Message Manual}, for
2790 a complete treatment of available MFT support.
2791
2792 @item visible
2793 @cindex visible
2794 If the group parameter list has the element @code{(visible . t)},
2795 that group will always be visible in the Group buffer, regardless
2796 of whether it has any unread articles.
2797
2798 This parameter cannot be set via @code{gnus-parameters}. See
2799 @code{gnus-permanently-visible-groups} as an alternative.
2800
2801 @item broken-reply-to
2802 @cindex broken-reply-to
2803 Elements like @code{(broken-reply-to . t)} signals that @code{Reply-To}
2804 headers in this group are to be ignored, and for the header to be hidden
2805 if @code{reply-to} is part of @code{gnus-boring-article-headers}.  This
2806 can be useful if you're reading a mailing list group where the listserv
2807 has inserted @code{Reply-To} headers that point back to the listserv
2808 itself.  That is broken behavior.  So there!
2809
2810 @item to-group
2811 @cindex to-group
2812 Elements like @code{(to-group . "some.group.name")} means that all
2813 posts in that group will be sent to @code{some.group.name}.
2814
2815 @item newsgroup
2816 @cindex newsgroup
2817 If you have @code{(newsgroup . t)} in the group parameter list, Gnus
2818 will treat all responses as if they were responses to news articles.
2819 This can be useful if you have a mail group that's really a mirror of a
2820 news group.
2821
2822 @item gcc-self
2823 @cindex gcc-self
2824 If @code{(gcc-self . t)} is present in the group parameter list, newly
2825 composed messages will be @code{Gcc}'d to the current group.  If
2826 @code{(gcc-self . none)} is present, no @code{Gcc:} header will be
2827 generated, if @code{(gcc-self . "string")} is present, this string will
2828 be inserted literally as a @code{gcc} header.  This parameter takes
2829 precedence over any default @code{Gcc} rules as described later
2830 (@pxref{Archived Messages}).
2831
2832 @strong{Caveat}: Adding @code{(gcc-self . t)} to the parameter list of
2833 @code{nntp} groups (or the like) isn't valid.  An @code{nntp} server
2834 doesn't accept articles.
2835
2836 @item auto-expire
2837 @cindex auto-expire
2838 If the group parameter has an element that looks like @code{(auto-expire
2839 . t)}, all articles read will be marked as expirable.  For an
2840 alternative approach, @pxref{Expiring Mail}.
2841
2842 See also @code{gnus-auto-expirable-newsgroups}.
2843
2844 @item total-expire
2845 @cindex total-expire
2846 If the group parameter has an element that looks like
2847 @code{(total-expire . t)}, all read articles will be put through the
2848 expiry process, even if they are not marked as expirable.  Use with
2849 caution.  Unread, ticked and dormant articles are not eligible for
2850 expiry.
2851
2852 See also @code{gnus-total-expirable-newsgroups}.
2853
2854 @item expiry-wait
2855 @cindex expiry-wait
2856 @vindex nnmail-expiry-wait-function
2857 If the group parameter has an element that looks like
2858 @code{(expiry-wait . 10)}, this value will override any
2859 @code{nnmail-expiry-wait} and @code{nnmail-expiry-wait-function}
2860 (@pxref{Expiring Mail}) when expiring expirable messages.  The value
2861 can either be a number of days (not necessarily an integer) or the
2862 symbols @code{never} or @code{immediate}.
2863
2864 @item expiry-target
2865 @cindex expiry-target
2866 Where expired messages end up.  This parameter overrides
2867 @code{nnmail-expiry-target}.
2868
2869 @item score-file
2870 @cindex score file group parameter
2871 Elements that look like @code{(score-file . "file")} will make
2872 @file{file} into the current score file for the group in question.  All
2873 interactive score entries will be put into this file.
2874
2875 @item adapt-file
2876 @cindex adapt file group parameter
2877 Elements that look like @code{(adapt-file . "file")} will make
2878 @file{file} into the current adaptive file for the group in question.
2879 All adaptive score entries will be put into this file.
2880
2881 @item admin-address
2882 @cindex admin-address
2883 When unsubscribing from a mailing list you should never send the
2884 unsubscription notice to the mailing list itself.  Instead, you'd send
2885 messages to the administrative address.  This parameter allows you to
2886 put the admin address somewhere convenient.
2887
2888 @item display
2889 @cindex display
2890 Elements that look like @code{(display . MODE)} say which articles to
2891 display on entering the group.  Valid values are:
2892
2893 @table @code
2894 @item all
2895 Display all articles, both read and unread.
2896
2897 @item an integer
2898 Display the last @var{integer} articles in the group.  This is the same as
2899 entering the group with @kbd{C-u @var{integer}}.
2900
2901 @item default
2902 Display the default visible articles, which normally includes unread and
2903 ticked articles.
2904
2905 @item an array
2906 Display articles that satisfy a predicate.
2907
2908 Here are some examples:
2909
2910 @table @code
2911 @item [unread]
2912 Display only unread articles.
2913
2914 @item [not expire]
2915 Display everything except expirable articles.
2916
2917 @item [and (not reply) (not expire)]
2918 Display everything except expirable and articles you've already
2919 responded to.
2920 @end table
2921
2922 The available operators are @code{not}, @code{and} and @code{or}.
2923 Predicates include @code{tick}, @code{unsend}, @code{undownload},
2924 @code{unread}, @code{dormant}, @code{expire}, @code{reply},
2925 @code{killed}, @code{bookmark}, @code{score}, @code{save},
2926 @code{cache}, @code{forward}, @code{unseen} and @code{recent}.
2927
2928 @end table
2929
2930 The @code{display} parameter works by limiting the summary buffer to
2931 the subset specified.  You can pop the limit by using the @kbd{/ w}
2932 command (@pxref{Limiting}).
2933
2934 @item comment
2935 @cindex comment
2936 Elements that look like @code{(comment . "This is a comment")} are
2937 arbitrary comments on the group.  You can display comments in the
2938 group line (@pxref{Group Line Specification}).
2939
2940 @item charset
2941 @cindex charset
2942 Elements that look like @code{(charset . iso-8859-1)} will make
2943 @code{iso-8859-1} the default charset; that is, the charset that will be
2944 used for all articles that do not specify a charset.
2945
2946 See also @code{gnus-group-charset-alist}.
2947
2948 @item ignored-charsets
2949 @cindex ignored-charset
2950 Elements that look like @code{(ignored-charsets x-unknown iso-8859-1)}
2951 will make @code{iso-8859-1} and @code{x-unknown} ignored; that is, the
2952 default charset will be used for decoding articles.
2953
2954 See also @code{gnus-group-ignored-charsets-alist}.
2955
2956 @item posting-style
2957 @cindex posting-style
2958 You can store additional posting style information for this group
2959 here (@pxref{Posting Styles}).  The format is that of an entry in the
2960 @code{gnus-posting-styles} alist, except that there's no regexp matching
2961 the group name (of course).  Style elements in this group parameter will
2962 take precedence over the ones found in @code{gnus-posting-styles}.
2963
2964 For instance, if you want a funky name and signature in this group only,
2965 instead of hacking @code{gnus-posting-styles}, you could put something
2966 like this in the group parameters:
2967
2968 @example
2969 (posting-style
2970   (name "Funky Name")
2971   ("X-My-Header" "Funky Value")
2972   (signature "Funky Signature"))
2973 @end example
2974
2975 @item post-method
2976 @cindex post-method
2977 If it is set, the value is used as the method for posting message
2978 instead of @code{gnus-post-method}.
2979
2980 @item banner
2981 @cindex banner
2982 An item like @code{(banner . @var{regexp})} causes any part of an article
2983 that matches the regular expression @var{regexp} to be stripped.  Instead of
2984 @var{regexp}, you can also use the symbol @code{signature} which strips the
2985 last signature or any of the elements of the alist
2986 @code{gnus-article-banner-alist}.
2987
2988 @item sieve
2989 @cindex sieve
2990 This parameter contains a Sieve test that should match incoming mail
2991 that should be placed in this group.  From this group parameter, a
2992 Sieve @samp{IF} control structure is generated, having the test as the
2993 condition and @samp{fileinto "group.name";} as the body.
2994
2995 For example, if the @samp{INBOX.list.sieve} group has the @code{(sieve
2996 address "sender" "sieve-admin@@extundo.com")} group parameter, when
2997 translating the group parameter into a Sieve script (@pxref{Sieve
2998 Commands}) the following Sieve code is generated:
2999
3000 @example
3001 if address "sender" "sieve-admin@@extundo.com" @{
3002         fileinto "INBOX.list.sieve";
3003 @}
3004 @end example
3005
3006 To generate tests for multiple email-addresses use a group parameter
3007 like @code{(sieve address "sender" ("name@@one.org" else@@two.org"))}.
3008 When generating a sieve script (@pxref{Sieve Commands}) Sieve code
3009 like the following is generated:
3010
3011 @example
3012 if address "sender" ["name@@one.org", "else@@two.org"] @{
3013         fileinto "INBOX.list.sieve";
3014 @}
3015 @end example
3016
3017 See @pxref{Sieve Commands} for commands and variables that might be of
3018 interest in relation to the sieve parameter.
3019
3020 The Sieve language is described in RFC 3028.  @xref{Top, Emacs Sieve,
3021 Top, sieve, Emacs Sieve}.
3022
3023 @item (agent parameters)
3024 If the agent has been enabled, you can set any of the its parameters
3025 to control the behavior of the agent in individual groups. See Agent
3026 Parameters in @ref{Category Syntax}.  Most users will choose to set
3027 agent parameters in either an agent category or group topic to
3028 minimize the configuration effort.
3029
3030 @item (@var{variable} @var{form})
3031 You can use the group parameters to set variables local to the group you
3032 are entering.  If you want to turn threading off in @samp{news.answers},
3033 you could put @code{(gnus-show-threads nil)} in the group parameters of
3034 that group.  @code{gnus-show-threads} will be made into a local variable
3035 in the summary buffer you enter, and the form @code{nil} will be
3036 @code{eval}ed there.
3037
3038 Note that this feature sets the variable locally to the summary buffer.
3039 But some variables are evaluated in the article buffer, or in the
3040 message buffer (of a reply or followup or otherwise newly created
3041 message).  As a workaround, it might help to add the variable in
3042 question to @code{gnus-newsgroup-variables}.  @xref{Various Summary
3043 Stuff}.  So if you want to set @code{message-from-style} via the group
3044 parameters, then you may need the following statement elsewhere in your
3045 @file{~/.gnus} file:
3046
3047 @lisp
3048 (add-to-list 'gnus-newsgroup-variables 'message-from-style)
3049 @end lisp
3050
3051 @vindex gnus-list-identifiers
3052 A use for this feature is to remove a mailing list identifier tag in
3053 the subject fields of articles.  E.g. if the news group
3054
3055 @example
3056 nntp+news.gnus.org:gmane.text.docbook.apps
3057 @end example
3058
3059 has the tag @samp{DOC-BOOK-APPS:} in the subject of all articles, this
3060 tag can be removed from the article subjects in the summary buffer for
3061 the group by putting @code{(gnus-list-identifiers "DOCBOOK-APPS:")}
3062 into the group parameters for the group.
3063
3064 This can also be used as a group-specific hook function.  If you want to
3065 hear a beep when you enter a group, you could put something like
3066 @code{(dummy-variable (ding))} in the parameters of that group.
3067 @code{dummy-variable} will be set to the (meaningless) result of the
3068 @code{(ding)} form.
3069
3070 Alternatively, since the VARIABLE becomes local to the group, this
3071 pattern can be used to temporarily change a hook.  For example, if the
3072 following is added to a group parameter
3073
3074 @lisp
3075 (gnus-summary-prepared-hook
3076   '(lambda nil (local-set-key "d" (local-key-binding "n"))))
3077 @end lisp
3078
3079 when the group is entered, the 'd' key will not mark the article as
3080 expired.
3081
3082 @end table
3083
3084 Use the @kbd{G p} or the @kbd{G c} command to edit group parameters of a
3085 group.  (@kbd{G p} presents you with a Lisp-based interface, @kbd{G c}
3086 presents you with a Customize-like interface.  The latter helps avoid
3087 silly Lisp errors.)  You might also be interested in reading about topic
3088 parameters (@pxref{Topic Parameters}).
3089
3090 @vindex gnus-parameters
3091 Group parameters can be set via the @code{gnus-parameters} variable too.
3092 But some variables, such as @code{visible}, have no effect (For this
3093 case see @code{gnus-permanently-visible-groups} as an alternative.).
3094 For example:
3095
3096 @lisp
3097 (setq gnus-parameters
3098       '(("mail\\..*"
3099          (gnus-show-threads nil)
3100          (gnus-use-scoring nil)
3101          (gnus-summary-line-format
3102           "%U%R%z%I%(%[%d:%ub%-23,23f%]%) %s\n")
3103          (gcc-self . t)
3104          (display . all))
3105
3106         ("^nnimap:\\(foo.bar\\)$"
3107          (to-group . "\\1"))
3108
3109         ("mail\\.me"
3110          (gnus-use-scoring  t))
3111
3112         ("list\\..*"
3113          (total-expire . t)
3114          (broken-reply-to . t))))
3115 @end lisp
3116
3117 String value of parameters will be subjected to regexp substitution, as
3118 the @code{to-group} example shows.
3119
3120 @vindex gnus-parameters-case-fold-search
3121 By default, whether comparing the group name and one of those regexps
3122 specified in @code{gnus-parameters} is done in a case-sensitive manner
3123 or a case-insensitive manner depends on the value of
3124 @code{case-fold-search} at the time when the comparison is done.  The
3125 value of @code{case-fold-search} is typically @code{t}; it means, for
3126 example, the element @code{("INBOX\\.FOO" (total-expire . t))} might be
3127 applied to both the @samp{INBOX.FOO} group and the @samp{INBOX.foo}
3128 group.  If you want to make those regexps always case-sensitive, set the
3129 value of the @code{gnus-parameters-case-fold-search} variable to
3130 @code{nil}.  Otherwise, set it to @code{t} if you want to compare them
3131 always in a case-insensitive manner.
3132
3133 You can define different sorting to different groups via
3134 @code{gnus-parameters}.  Here is an example to sort an @acronym{NNTP}
3135 group by reverse date to see the latest news at the top and an
3136 @acronym{RSS} group by subject.  In this example, the first group is the
3137 Debian daily news group @code{gmane.linux.debian.user.news} from
3138 news.gmane.org.  The @acronym{RSS} group corresponds to the Debian
3139 weekly news RSS feed
3140 @url{http://packages.debian.org/unstable/newpkg_main.en.rdf},
3141 @xref{RSS}.
3142
3143 @lisp
3144 (setq
3145  gnus-parameters
3146  '(("nntp.*gmane\\.debian\\.user\\.news"
3147     (gnus-show-threads nil)
3148     (gnus-article-sort-functions '((not gnus-article-sort-by-date)))
3149     (gnus-use-adaptive-scoring nil)
3150     (gnus-use-scoring nil))
3151    ("nnrss.*debian"
3152     (gnus-show-threads nil)
3153     (gnus-article-sort-functions 'gnus-article-sort-by-subject)
3154     (gnus-use-adaptive-scoring nil)
3155     (gnus-use-scoring t)
3156     (gnus-score-find-score-files-function 'gnus-score-find-single)
3157     (gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"))))
3158 @end lisp
3159
3160
3161 @node Listing Groups
3162 @section Listing Groups
3163 @cindex group listing
3164
3165 These commands all list various slices of the groups available.
3166
3167 @table @kbd
3168
3169 @item l
3170 @itemx A s
3171 @kindex A s (Group)
3172 @kindex l (Group)
3173 @findex gnus-group-list-groups
3174 List all groups that have unread articles
3175 (@code{gnus-group-list-groups}).  If the numeric prefix is used, this
3176 command will list only groups of level ARG and lower.  By default, it
3177 only lists groups of level five (i.e.,
3178 @code{gnus-group-default-list-level}) or lower (i.e., just subscribed
3179 groups).
3180
3181 @item L
3182 @itemx A u
3183 @kindex A u (Group)
3184 @kindex L (Group)
3185 @findex gnus-group-list-all-groups
3186 List all groups, whether they have unread articles or not
3187 (@code{gnus-group-list-all-groups}).  If the numeric prefix is used,
3188 this command will list only groups of level ARG and lower.  By default,
3189 it lists groups of level seven or lower (i.e., just subscribed and
3190 unsubscribed groups).
3191
3192 @item A l
3193 @kindex A l (Group)
3194 @findex gnus-group-list-level
3195 List all unread groups on a specific level
3196 (@code{gnus-group-list-level}).  If given a prefix, also list the groups
3197 with no unread articles.
3198
3199 @item A k
3200 @kindex A k (Group)
3201 @findex gnus-group-list-killed
3202 List all killed groups (@code{gnus-group-list-killed}).  If given a
3203 prefix argument, really list all groups that are available, but aren't
3204 currently (un)subscribed.  This could entail reading the active file
3205 from the server.
3206
3207 @item A z
3208 @kindex A z (Group)
3209 @findex gnus-group-list-zombies
3210 List all zombie groups (@code{gnus-group-list-zombies}).
3211
3212 @item A m
3213 @kindex A m (Group)
3214 @findex gnus-group-list-matching
3215 List all unread, subscribed groups with names that match a regexp
3216 (@code{gnus-group-list-matching}).
3217
3218 @item A M
3219 @kindex A M (Group)
3220 @findex gnus-group-list-all-matching
3221 List groups that match a regexp (@code{gnus-group-list-all-matching}).
3222
3223 @item A A
3224 @kindex A A (Group)
3225 @findex gnus-group-list-active
3226 List absolutely all groups in the active file(s) of the
3227 server(s) you are connected to (@code{gnus-group-list-active}).  This
3228 might very well take quite a while.  It might actually be a better idea
3229 to do a @kbd{A M} to list all matching, and just give @samp{.} as the
3230 thing to match on.  Also note that this command may list groups that
3231 don't exist (yet)---these will be listed as if they were killed groups.
3232 Take the output with some grains of salt.
3233
3234 @item A a
3235 @kindex A a (Group)
3236 @findex gnus-group-apropos
3237 List all groups that have names that match a regexp
3238 (@code{gnus-group-apropos}).
3239
3240 @item A d
3241 @kindex A d (Group)
3242 @findex gnus-group-description-apropos
3243 List all groups that have names or descriptions that match a regexp
3244 (@code{gnus-group-description-apropos}).
3245
3246 @item A c
3247 @kindex A c (Group)
3248 @findex gnus-group-list-cached
3249 List all groups with cached articles (@code{gnus-group-list-cached}).
3250
3251 @item A ?
3252 @kindex A ? (Group)
3253 @findex gnus-group-list-dormant
3254 List all groups with dormant articles (@code{gnus-group-list-dormant}).
3255
3256 @item A /
3257 @kindex A / (Group)
3258 @findex gnus-group-list-limit
3259 List groups limited within the current selection
3260 (@code{gnus-group-list-limit}).
3261
3262 @item A f
3263 @kindex A f (Group)
3264 @findex gnus-group-list-flush
3265 Flush groups from the current selection (@code{gnus-group-list-flush}).
3266
3267 @item A p
3268 @kindex A p (Group)
3269 @findex gnus-group-list-plus
3270 List groups plus the current selection (@code{gnus-group-list-plus}).
3271
3272 @end table
3273
3274 @vindex gnus-permanently-visible-groups
3275 @cindex visible group parameter
3276 Groups that match the @code{gnus-permanently-visible-groups} regexp will
3277 always be shown, whether they have unread articles or not.  You can also
3278 add the @code{visible} element to the group parameters in question to
3279 get the same effect.
3280
3281 @vindex gnus-list-groups-with-ticked-articles
3282 Groups that have just ticked articles in it are normally listed in the
3283 group buffer.  If @code{gnus-list-groups-with-ticked-articles} is
3284 @code{nil}, these groups will be treated just like totally empty
3285 groups.  It is @code{t} by default.
3286
3287
3288 @node Sorting Groups
3289 @section Sorting Groups
3290 @cindex sorting groups
3291
3292 @kindex C-c C-s (Group)
3293 @findex gnus-group-sort-groups
3294 @vindex gnus-group-sort-function
3295 The @kbd{C-c C-s} (@code{gnus-group-sort-groups}) command sorts the
3296 group buffer according to the function(s) given by the
3297 @code{gnus-group-sort-function} variable.  Available sorting functions
3298 include:
3299
3300 @table @code
3301
3302 @item gnus-group-sort-by-alphabet
3303 @findex gnus-group-sort-by-alphabet
3304 Sort the group names alphabetically.  This is the default.
3305
3306 @item gnus-group-sort-by-real-name
3307 @findex gnus-group-sort-by-real-name
3308 Sort the group alphabetically on the real (unprefixed) group names.
3309
3310 @item gnus-group-sort-by-level
3311 @findex gnus-group-sort-by-level
3312 Sort by group level.
3313
3314 @item gnus-group-sort-by-score
3315 @findex gnus-group-sort-by-score
3316 Sort by group score.  @xref{Group Score}.
3317
3318 @item gnus-group-sort-by-rank
3319 @findex gnus-group-sort-by-rank
3320 Sort by group score and then the group level.  The level and the score
3321 are, when taken together, the group's @dfn{rank}.  @xref{Group Score}.
3322
3323 @item gnus-group-sort-by-unread
3324 @findex gnus-group-sort-by-unread
3325 Sort by number of unread articles.
3326
3327 @item gnus-group-sort-by-method
3328 @findex gnus-group-sort-by-method
3329 Sort alphabetically on the select method.
3330
3331 @item gnus-group-sort-by-server
3332 @findex gnus-group-sort-by-server
3333 Sort alphabetically on the Gnus server name.
3334
3335
3336 @end table
3337
3338 @code{gnus-group-sort-function} can also be a list of sorting
3339 functions.  In that case, the most significant sort key function must be
3340 the last one.
3341
3342
3343 There are also a number of commands for sorting directly according to
3344 some sorting criteria:
3345
3346 @table @kbd
3347 @item G S a
3348 @kindex G S a (Group)
3349 @findex gnus-group-sort-groups-by-alphabet
3350 Sort the group buffer alphabetically by group name
3351 (@code{gnus-group-sort-groups-by-alphabet}).
3352
3353 @item G S u
3354 @kindex G S u (Group)
3355 @findex gnus-group-sort-groups-by-unread
3356 Sort the group buffer by the number of unread articles
3357 (@code{gnus-group-sort-groups-by-unread}).
3358
3359 @item G S l
3360 @kindex G S l (Group)
3361 @findex gnus-group-sort-groups-by-level
3362 Sort the group buffer by group level
3363 (@code{gnus-group-sort-groups-by-level}).
3364
3365 @item G S v
3366 @kindex G S v (Group)
3367 @findex gnus-group-sort-groups-by-score
3368 Sort the group buffer by group score
3369 (@code{gnus-group-sort-groups-by-score}).  @xref{Group Score}.
3370
3371 @item G S r
3372 @kindex G S r (Group)
3373 @findex gnus-group-sort-groups-by-rank
3374 Sort the group buffer by group rank
3375 (@code{gnus-group-sort-groups-by-rank}).  @xref{Group Score}.
3376
3377 @item G S m
3378 @kindex G S m (Group)
3379 @findex gnus-group-sort-groups-by-method
3380 Sort the group buffer alphabetically by back end name@*
3381 (@code{gnus-group-sort-groups-by-method}).
3382
3383 @item G S n
3384 @kindex G S n (Group)
3385 @findex gnus-group-sort-groups-by-real-name
3386 Sort the group buffer alphabetically by real (unprefixed) group name
3387 (@code{gnus-group-sort-groups-by-real-name}).
3388
3389 @end table
3390
3391 All the commands below obey the process/prefix convention
3392 (@pxref{Process/Prefix}).
3393
3394 When given a symbolic prefix (@pxref{Symbolic Prefixes}), all these
3395 commands will sort in reverse order.
3396
3397 You can also sort a subset of the groups:
3398
3399 @table @kbd
3400 @item G P a
3401 @kindex G P a (Group)
3402 @findex gnus-group-sort-selected-groups-by-alphabet
3403 Sort the groups alphabetically by group name
3404 (@code{gnus-group-sort-selected-groups-by-alphabet}).
3405
3406 @item G P u
3407 @kindex G P u (Group)
3408 @findex gnus-group-sort-selected-groups-by-unread
3409 Sort the groups by the number of unread articles
3410 (@code{gnus-group-sort-selected-groups-by-unread}).
3411
3412 @item G P l
3413 @kindex G P l (Group)
3414 @findex gnus-group-sort-selected-groups-by-level
3415 Sort the groups by group level
3416 (@code{gnus-group-sort-selected-groups-by-level}).
3417
3418 @item G P v
3419 @kindex G P v (Group)
3420 @findex gnus-group-sort-selected-groups-by-score
3421 Sort the groups by group score
3422 (@code{gnus-group-sort-selected-groups-by-score}).  @xref{Group Score}.
3423
3424 @item G P r
3425 @kindex G P r (Group)
3426 @findex gnus-group-sort-selected-groups-by-rank
3427 Sort the groups by group rank
3428 (@code{gnus-group-sort-selected-groups-by-rank}).  @xref{Group Score}.
3429
3430 @item G P m
3431 @kindex G P m (Group)
3432 @findex gnus-group-sort-selected-groups-by-method
3433 Sort the groups alphabetically by back end name@*
3434 (@code{gnus-group-sort-selected-groups-by-method}).
3435
3436 @item G P n
3437 @kindex G P n (Group)
3438 @findex gnus-group-sort-selected-groups-by-real-name
3439 Sort the groups alphabetically by real (unprefixed) group name
3440 (@code{gnus-group-sort-selected-groups-by-real-name}).
3441
3442 @item G P s
3443 @kindex G P s (Group)
3444 @findex gnus-group-sort-selected-groups
3445 Sort the groups according to @code{gnus-group-sort-function}.
3446
3447 @end table
3448
3449 And finally, note that you can use @kbd{C-k} and @kbd{C-y} to manually
3450 move groups around.
3451
3452
3453 @node Group Maintenance
3454 @section Group Maintenance
3455 @cindex bogus groups
3456
3457 @table @kbd
3458 @item b
3459 @kindex b (Group)
3460 @findex gnus-group-check-bogus-groups
3461 Find bogus groups and delete them
3462 (@code{gnus-group-check-bogus-groups}).
3463
3464 @item F
3465 @kindex F (Group)
3466 @findex gnus-group-find-new-groups
3467 Find new groups and process them (@code{gnus-group-find-new-groups}).
3468 With 1 @kbd{C-u}, use the @code{ask-server} method to query the server
3469 for new groups.  With 2 @kbd{C-u}'s, use most complete method possible
3470 to query the server for new groups, and subscribe the new groups as
3471 zombies.
3472
3473 @item C-c C-x
3474 @kindex C-c C-x (Group)
3475 @findex gnus-group-expire-articles
3476 Run all expirable articles in the current group through the expiry
3477 process (if any) (@code{gnus-group-expire-articles}).  That is, delete
3478 all expirable articles in the group that have been around for a while.
3479 (@pxref{Expiring Mail}).
3480
3481 @item C-c C-M-x
3482 @kindex C-c C-M-x (Group)
3483 @findex gnus-group-expire-all-groups
3484 Run all expirable articles in all groups through the expiry process
3485 (@code{gnus-group-expire-all-groups}).
3486
3487 @end table
3488
3489
3490 @node Browse Foreign Server
3491 @section Browse Foreign Server
3492 @cindex foreign servers
3493 @cindex browsing servers
3494
3495 @table @kbd
3496 @item B
3497 @kindex B (Group)
3498 @findex gnus-group-browse-foreign-server
3499 You will be queried for a select method and a server name.  Gnus will
3500 then attempt to contact this server and let you browse the groups there
3501 (@code{gnus-group-browse-foreign-server}).
3502 @end table
3503
3504 @findex gnus-browse-mode
3505 A new buffer with a list of available groups will appear.  This buffer
3506 will use the @code{gnus-browse-mode}.  This buffer looks a bit (well,
3507 a lot) like a normal group buffer.
3508
3509 Here's a list of keystrokes available in the browse mode:
3510
3511 @table @kbd
3512 @item n
3513 @kindex n (Browse)
3514 @findex gnus-group-next-group
3515 Go to the next group (@code{gnus-group-next-group}).
3516
3517 @item p
3518 @kindex p (Browse)
3519 @findex gnus-group-prev-group
3520 Go to the previous group (@code{gnus-group-prev-group}).
3521
3522 @item SPACE
3523 @kindex SPACE (Browse)
3524 @findex gnus-browse-read-group
3525 Enter the current group and display the first article
3526 (@code{gnus-browse-read-group}).
3527
3528 @item RET
3529 @kindex RET (Browse)
3530 @findex gnus-browse-select-group
3531 Enter the current group (@code{gnus-browse-select-group}).
3532
3533 @item u
3534 @kindex u (Browse)
3535 @findex gnus-browse-unsubscribe-current-group
3536 Unsubscribe to the current group, or, as will be the case here,
3537 subscribe to it (@code{gnus-browse-unsubscribe-current-group}).
3538
3539 @item l
3540 @itemx q
3541 @kindex q (Browse)
3542 @kindex l (Browse)
3543 @findex gnus-browse-exit
3544 Exit browse mode (@code{gnus-browse-exit}).
3545
3546 @item d
3547 @kindex d (Browse)
3548 @findex gnus-browse-describe-group
3549 Describe the current group (@code{gnus-browse-describe-group}).
3550
3551 @item ?
3552 @kindex ? (Browse)
3553 @findex gnus-browse-describe-briefly
3554 Describe browse mode briefly (well, there's not much to describe, is
3555 there) (@code{gnus-browse-describe-briefly}).
3556 @end table
3557
3558
3559 @node Exiting Gnus
3560 @section Exiting Gnus
3561 @cindex exiting Gnus
3562
3563 Yes, Gnus is ex(c)iting.
3564
3565 @table @kbd
3566 @item z
3567 @kindex z (Group)
3568 @findex gnus-group-suspend
3569 Suspend Gnus (@code{gnus-group-suspend}).  This doesn't really exit Gnus,
3570 but it kills all buffers except the Group buffer.  I'm not sure why this
3571 is a gain, but then who am I to judge?
3572
3573 @item q
3574 @kindex q (Group)
3575 @findex gnus-group-exit
3576 @c @icon{gnus-group-exit}
3577 Quit Gnus (@code{gnus-group-exit}).
3578
3579 @item Q
3580 @kindex Q (Group)
3581 @findex gnus-group-quit
3582 Quit Gnus without saving the @file{.newsrc} files (@code{gnus-group-quit}).
3583 The dribble file will be saved, though (@pxref{Auto Save}).
3584 @end table
3585
3586 @vindex gnus-exit-gnus-hook
3587 @vindex gnus-suspend-gnus-hook
3588 @vindex gnus-after-exiting-gnus-hook
3589 @code{gnus-suspend-gnus-hook} is called when you suspend Gnus and
3590 @code{gnus-exit-gnus-hook} is called when you quit Gnus, while
3591 @code{gnus-after-exiting-gnus-hook} is called as the final item when
3592 exiting Gnus.
3593
3594 Note:
3595
3596 @quotation
3597 Miss Lisa Cannifax, while sitting in English class, felt her feet go
3598 numbly heavy and herself fall into a hazy trance as the boy sitting
3599 behind her drew repeated lines with his pencil across the back of her
3600 plastic chair.
3601 @end quotation
3602
3603
3604 @node Group Topics
3605 @section Group Topics
3606 @cindex topics
3607
3608 If you read lots and lots of groups, it might be convenient to group
3609 them hierarchically according to topics.  You put your Emacs groups over
3610 here, your sex groups over there, and the rest (what, two groups or so?)
3611 you put in some misc section that you never bother with anyway.  You can
3612 even group the Emacs sex groups as a sub-topic to either the Emacs
3613 groups or the sex groups---or both!  Go wild!
3614
3615 @iftex
3616 @iflatex
3617 \gnusfigure{Group Topics}{400}{
3618 \put(75,50){\epsfig{figure=ps/group-topic,height=9cm}}
3619 }
3620 @end iflatex
3621 @end iftex
3622
3623 Here's an example:
3624
3625 @example
3626 Gnus
3627   Emacs -- I wuw it!
3628      3: comp.emacs
3629      2: alt.religion.emacs
3630     Naughty Emacs
3631      452: alt.sex.emacs
3632        0: comp.talk.emacs.recovery
3633   Misc
3634      8: comp.binaries.fractals
3635     13: comp.sources.unix
3636 @end example
3637
3638 @findex gnus-topic-mode
3639 @kindex t (Group)
3640 To get this @emph{fab} functionality you simply turn on (ooh!) the
3641 @code{gnus-topic} minor mode---type @kbd{t} in the group buffer.  (This
3642 is a toggling command.)
3643
3644 Go ahead, just try it.  I'll still be here when you get back.  La de
3645 dum@dots{} Nice tune, that@dots{} la la la@dots{} What, you're back?
3646 Yes, and now press @kbd{l}.  There.  All your groups are now listed
3647 under @samp{misc}.  Doesn't that make you feel all warm and fuzzy?
3648 Hot and bothered?
3649
3650 If you want this permanently enabled, you should add that minor mode to
3651 the hook for the group mode.  Put the following line in your
3652 @file{~/.gnus.el} file:
3653
3654 @lisp
3655 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
3656 @end lisp
3657
3658 @menu
3659 * Topic Commands::              Interactive E-Z commands.
3660 * Topic Variables::             How to customize the topics the Lisp Way.
3661 * Topic Sorting::               Sorting each topic individually.
3662 * Topic Topology::              A map of the world.
3663 * Topic Parameters::            Parameters that apply to all groups in a topic.
3664 @end menu
3665
3666
3667 @node Topic Commands
3668 @subsection Topic Commands
3669 @cindex topic commands
3670
3671 When the topic minor mode is turned on, a new @kbd{T} submap will be
3672 available.  In addition, a few of the standard keys change their
3673 definitions slightly.
3674
3675 In general, the following kinds of operations are possible on topics.
3676 First of all, you want to create topics.  Secondly, you want to put
3677 groups in topics and to move them around until you have an order you
3678 like.  The third kind of operation is to show/hide parts of the whole
3679 shebang.  You might want to hide a topic including its subtopics and
3680 groups, to get a better overview of the other groups.
3681
3682 Here is a list of the basic keys that you might need to set up topics
3683 the way you like.
3684
3685 @table @kbd
3686
3687 @item T n
3688 @kindex T n (Topic)
3689 @findex gnus-topic-create-topic
3690 Prompt for a new topic name and create it
3691 (@code{gnus-topic-create-topic}).
3692
3693 @item T TAB
3694 @itemx TAB
3695 @kindex T TAB (Topic)
3696 @kindex TAB (Topic)
3697 @findex gnus-topic-indent
3698 ``Indent'' the current topic so that it becomes a sub-topic of the
3699 previous topic (@code{gnus-topic-indent}).  If given a prefix,
3700 ``un-indent'' the topic instead.
3701
3702 @item M-TAB
3703 @kindex M-TAB (Topic)
3704 @findex gnus-topic-unindent
3705 ``Un-indent'' the current topic so that it becomes a sub-topic of the
3706 parent of its current parent (@code{gnus-topic-unindent}).
3707
3708 @end table
3709
3710 The following two keys can be used to move groups and topics around.
3711 They work like the well-known cut and paste.  @kbd{C-k} is like cut and
3712 @kbd{C-y} is like paste.  Of course, this being Emacs, we use the terms
3713 kill and yank rather than cut and paste.
3714
3715 @table @kbd
3716
3717 @item C-k
3718 @kindex C-k (Topic)
3719 @findex gnus-topic-kill-group
3720 Kill a group or topic (@code{gnus-topic-kill-group}).  All groups in the
3721 topic will be removed along with the topic.
3722
3723 @item C-y
3724 @kindex C-y (Topic)
3725 @findex gnus-topic-yank-group
3726 Yank the previously killed group or topic
3727 (@code{gnus-topic-yank-group}).  Note that all topics will be yanked
3728 before all groups.
3729
3730 So, to move a topic to the beginning of the list of topics, just hit
3731 @kbd{C-k} on it.  This is like the ``cut'' part of cut and paste.  Then,
3732 move the cursor to the beginning of the buffer (just below the ``Gnus''
3733 topic) and hit @kbd{C-y}.  This is like the ``paste'' part of cut and
3734 paste.  Like I said -- E-Z.
3735
3736 You can use @kbd{C-k} and @kbd{C-y} on groups as well as on topics.  So
3737 you can move topics around as well as groups.
3738
3739 @end table
3740
3741 After setting up the topics the way you like them, you might wish to
3742 hide a topic, or to show it again.  That's why we have the following
3743 key.
3744
3745 @table @kbd
3746
3747 @item RET
3748 @kindex RET (Topic)
3749 @findex gnus-topic-select-group
3750 @itemx SPACE
3751 Either select a group or fold a topic (@code{gnus-topic-select-group}).
3752 When you perform this command on a group, you'll enter the group, as
3753 usual.  When done on a topic line, the topic will be folded (if it was
3754 visible) or unfolded (if it was folded already).  So it's basically a
3755 toggling command on topics.  In addition, if you give a numerical
3756 prefix, group on that level (and lower) will be displayed.
3757
3758 @end table
3759
3760 Now for a list of other commands, in no particular order.
3761
3762 @table @kbd
3763
3764 @item T m
3765 @kindex T m (Topic)
3766 @findex gnus-topic-move-group
3767 Move the current group to some other topic
3768 (@code{gnus-topic-move-group}).  This command uses the process/prefix
3769 convention (@pxref{Process/Prefix}).
3770
3771 @item T j
3772 @kindex T j (Topic)
3773 @findex gnus-topic-jump-to-topic
3774 Go to a topic (@code{gnus-topic-jump-to-topic}).
3775
3776 @item T c
3777 @kindex T c (Topic)
3778 @findex gnus-topic-copy-group
3779 Copy the current group to some other topic
3780 (@code{gnus-topic-copy-group}).  This command uses the process/prefix
3781 convention (@pxref{Process/Prefix}).
3782
3783 @item T h
3784 @kindex T h (Topic)
3785 @findex gnus-topic-hide-topic
3786 Hide the current topic (@code{gnus-topic-hide-topic}).  If given
3787 a prefix, hide the topic permanently.
3788
3789 @item T s
3790 @kindex T s (Topic)
3791 @findex gnus-topic-show-topic
3792 Show the current topic (@code{gnus-topic-show-topic}).  If given
3793 a prefix, show the topic permanently.
3794
3795 @item T D
3796 @kindex T D (Topic)
3797 @findex gnus-topic-remove-group
3798 Remove a group from the current topic (@code{gnus-topic-remove-group}).
3799 This command is mainly useful if you have the same group in several
3800 topics and wish to remove it from one of the topics.  You may also
3801 remove a group from all topics, but in that case, Gnus will add it to
3802 the root topic the next time you start Gnus.  In fact, all new groups
3803 (which, naturally, don't belong to any topic) will show up in the root
3804 topic.
3805
3806 This command uses the process/prefix convention
3807 (@pxref{Process/Prefix}).
3808
3809 @item T M
3810 @kindex T M (Topic)
3811 @findex gnus-topic-move-matching
3812 Move all groups that match some regular expression to a topic
3813 (@code{gnus-topic-move-matching}).
3814
3815 @item T C
3816 @kindex T C (Topic)
3817 @findex gnus-topic-copy-matching
3818 Copy all groups that match some regular expression to a topic
3819 (@code{gnus-topic-copy-matching}).
3820
3821 @item T H
3822 @kindex T H (Topic)
3823 @findex gnus-topic-toggle-display-empty-topics
3824 Toggle hiding empty topics
3825 (@code{gnus-topic-toggle-display-empty-topics}).
3826
3827 @item T #
3828 @kindex T # (Topic)
3829 @findex gnus-topic-mark-topic
3830 Mark all groups in the current topic with the process mark
3831 (@code{gnus-topic-mark-topic}).  This command works recursively on
3832 sub-topics unless given a prefix.
3833
3834 @item T M-#
3835 @kindex T M-# (Topic)
3836 @findex gnus-topic-unmark-topic
3837 Remove the process mark from all groups in the current topic
3838 (@code{gnus-topic-unmark-topic}).  This command works recursively on
3839 sub-topics unless given a prefix.
3840
3841 @item C-c C-x
3842 @kindex C-c C-x (Topic)
3843 @findex gnus-topic-expire-articles
3844 Run all expirable articles in the current group or topic through the
3845 expiry process (if any)
3846 (@code{gnus-topic-expire-articles}).  (@pxref{Expiring Mail}).
3847
3848 @item T r
3849 @kindex T r (Topic)
3850 @findex gnus-topic-rename
3851 Rename a topic (@code{gnus-topic-rename}).
3852
3853 @item T DEL
3854 @kindex T DEL (Topic)
3855 @findex gnus-topic-delete
3856 Delete an empty topic (@code{gnus-topic-delete}).
3857
3858 @item A T
3859 @kindex A T (Topic)
3860 @findex gnus-topic-list-active
3861 List all groups that Gnus knows about in a topics-ified way
3862 (@code{gnus-topic-list-active}).
3863
3864 @item T M-n
3865 @kindex T M-n (Topic)
3866 @findex gnus-topic-goto-next-topic
3867 Go to the next topic (@code{gnus-topic-goto-next-topic}).
3868
3869 @item T M-p
3870 @kindex T M-p (Topic)
3871 @findex gnus-topic-goto-previous-topic
3872 Go to the previous topic (@code{gnus-topic-goto-previous-topic}).
3873
3874 @item G p
3875 @kindex G p (Topic)
3876 @findex gnus-topic-edit-parameters
3877 @cindex group parameters
3878 @cindex topic parameters
3879 @cindex parameters
3880 Edit the topic parameters (@code{gnus-topic-edit-parameters}).
3881 @xref{Topic Parameters}.
3882
3883 @end table
3884
3885
3886 @node Topic Variables
3887 @subsection Topic Variables
3888 @cindex topic variables
3889
3890 The previous section told you how to tell Gnus which topics to display.
3891 This section explains how to tell Gnus what to display about each topic.
3892
3893 @vindex gnus-topic-line-format
3894 The topic lines themselves are created according to the
3895 @code{gnus-topic-line-format} variable (@pxref{Formatting Variables}).
3896 Valid elements are:
3897
3898 @table @samp
3899 @item i
3900 Indentation.
3901 @item n
3902 Topic name.
3903 @item v
3904 Visibility.
3905 @item l
3906 Level.
3907 @item g
3908 Number of groups in the topic.
3909 @item a
3910 Number of unread articles in the topic.
3911 @item A
3912 Number of unread articles in the topic and all its subtopics.
3913 @end table
3914
3915 @vindex gnus-topic-indent-level
3916 Each sub-topic (and the groups in the sub-topics) will be indented with
3917 @code{gnus-topic-indent-level} times the topic level number of spaces.
3918 The default is 2.
3919
3920 @vindex gnus-topic-mode-hook
3921 @code{gnus-topic-mode-hook} is called in topic minor mode buffers.
3922
3923 @vindex gnus-topic-display-empty-topics
3924 The @code{gnus-topic-display-empty-topics} says whether to display even
3925 topics that have no unread articles in them.  The default is @code{t}.
3926
3927
3928 @node Topic Sorting
3929 @subsection Topic Sorting
3930 @cindex topic sorting
3931
3932 You can sort the groups in each topic individually with the following
3933 commands:
3934
3935
3936 @table @kbd
3937 @item T S a
3938 @kindex T S a (Topic)
3939 @findex gnus-topic-sort-groups-by-alphabet
3940 Sort the current topic alphabetically by group name
3941 (@code{gnus-topic-sort-groups-by-alphabet}).
3942
3943 @item T S u
3944 @kindex T S u (Topic)
3945 @findex gnus-topic-sort-groups-by-unread
3946 Sort the current topic by the number of unread articles
3947 (@code{gnus-topic-sort-groups-by-unread}).
3948
3949 @item T S l
3950 @kindex T S l (Topic)
3951 @findex gnus-topic-sort-groups-by-level
3952 Sort the current topic by group level
3953 (@code{gnus-topic-sort-groups-by-level}).
3954
3955 @item T S v
3956 @kindex T S v (Topic)
3957 @findex gnus-topic-sort-groups-by-score
3958 Sort the current topic by group score
3959 (@code{gnus-topic-sort-groups-by-score}).  @xref{Group Score}.
3960
3961 @item T S r
3962 @kindex T S r (Topic)
3963 @findex gnus-topic-sort-groups-by-rank
3964 Sort the current topic by group rank
3965 (@code{gnus-topic-sort-groups-by-rank}).  @xref{Group Score}.
3966
3967 @item T S m
3968 @kindex T S m (Topic)
3969 @findex gnus-topic-sort-groups-by-method
3970 Sort the current topic alphabetically by back end name
3971 (@code{gnus-topic-sort-groups-by-method}).
3972
3973 @item T S e
3974 @kindex T S e (Topic)
3975 @findex gnus-topic-sort-groups-by-server
3976 Sort the current topic alphabetically by server name
3977 (@code{gnus-topic-sort-groups-by-server}).
3978
3979 @item T S s
3980 @kindex T S s (Topic)
3981 @findex gnus-topic-sort-groups
3982 Sort the current topic according to the function(s) given by the
3983 @code{gnus-group-sort-function} variable
3984 (@code{gnus-topic-sort-groups}).
3985
3986 @end table
3987
3988 When given a prefix argument, all these commands will sort in reverse
3989 order.  @xref{Sorting Groups}, for more information about group
3990 sorting.
3991
3992
3993 @node Topic Topology
3994 @subsection Topic Topology
3995 @cindex topic topology
3996 @cindex topology
3997
3998 So, let's have a look at an example group buffer:
3999
4000 @example
4001 @group
4002 Gnus
4003   Emacs -- I wuw it!
4004      3: comp.emacs
4005      2: alt.religion.emacs
4006     Naughty Emacs
4007      452: alt.sex.emacs
4008        0: comp.talk.emacs.recovery
4009   Misc
4010      8: comp.binaries.fractals
4011     13: comp.sources.unix
4012 @end group
4013 @end example
4014
4015 So, here we have one top-level topic (@samp{Gnus}), two topics under
4016 that, and one sub-topic under one of the sub-topics.  (There is always
4017 just one (1) top-level topic).  This topology can be expressed as
4018 follows:
4019
4020 @lisp
4021 (("Gnus" visible)
4022  (("Emacs -- I wuw it!" visible)
4023   (("Naughty Emacs" visible)))
4024  (("Misc" visible)))
4025 @end lisp
4026
4027 @vindex gnus-topic-topology
4028 This is in fact how the variable @code{gnus-topic-topology} would look
4029 for the display above.  That variable is saved in the @file{.newsrc.eld}
4030 file, and shouldn't be messed with manually---unless you really want
4031 to.  Since this variable is read from the @file{.newsrc.eld} file,
4032 setting it in any other startup files will have no effect.
4033
4034 This topology shows what topics are sub-topics of what topics (right),
4035 and which topics are visible.  Two settings are currently
4036 allowed---@code{visible} and @code{invisible}.
4037
4038
4039 @node Topic Parameters
4040 @subsection Topic Parameters
4041 @cindex topic parameters
4042
4043 All groups in a topic will inherit group parameters from the parent
4044 (and ancestor) topic parameters.  All valid group parameters are valid
4045 topic parameters (@pxref{Group Parameters}).  When the agent is
4046 enabled, all agent parameters (See Agent Parameters in @ref{Category
4047 Syntax}) are also valid topic parameters.
4048
4049 In addition, the following parameters are only valid as topic
4050 parameters:
4051
4052 @table @code
4053 @item subscribe
4054 When subscribing new groups by topic (@pxref{Subscription Methods}), the
4055 @code{subscribe} topic parameter says what groups go in what topic.  Its
4056 value should be a regexp to match the groups that should go in that
4057 topic.
4058
4059 @item subscribe-level
4060 When subscribing new groups by topic (see the @code{subscribe} parameter),
4061 the group will be subscribed with the level specified in the
4062 @code{subscribe-level} instead of @code{gnus-level-default-subscribed}.
4063
4064 @end table
4065
4066 Group parameters (of course) override topic parameters, and topic
4067 parameters in sub-topics override topic parameters in super-topics.  You
4068 know.  Normal inheritance rules.  (@dfn{Rules} is here a noun, not a
4069 verb, although you may feel free to disagree with me here.)
4070
4071 @example
4072 @group
4073 Gnus
4074   Emacs
4075      3: comp.emacs
4076      2: alt.religion.emacs
4077    452: alt.sex.emacs
4078     Relief
4079      452: alt.sex.emacs
4080        0: comp.talk.emacs.recovery
4081   Misc
4082      8: comp.binaries.fractals
4083     13: comp.sources.unix
4084    452: alt.sex.emacs
4085 @end group
4086 @end example
4087
4088 The @samp{Emacs} topic has the topic parameter @code{(score-file
4089 . "emacs.SCORE")}; the @samp{Relief} topic has the topic parameter
4090 @code{(score-file . "relief.SCORE")}; and the @samp{Misc} topic has the
4091 topic parameter @code{(score-file . "emacs.SCORE")}.  In addition,
4092 @* @samp{alt.religion.emacs} has the group parameter @code{(score-file
4093 . "religion.SCORE")}.
4094
4095 Now, when you enter @samp{alt.sex.emacs} in the @samp{Relief} topic, you
4096 will get the @file{relief.SCORE} home score file.  If you enter the same
4097 group in the @samp{Emacs} topic, you'll get the @file{emacs.SCORE} home
4098 score file.  If you enter the group @samp{alt.religion.emacs}, you'll
4099 get the @file{religion.SCORE} home score file.
4100
4101 This seems rather simple and self-evident, doesn't it?  Well, yes.  But
4102 there are some problems, especially with the @code{total-expiry}
4103 parameter.  Say you have a mail group in two topics; one with
4104 @code{total-expiry} and one without.  What happens when you do @kbd{M-x
4105 gnus-expire-all-expirable-groups}?  Gnus has no way of telling which one
4106 of these topics you mean to expire articles from, so anything may
4107 happen.  In fact, I hereby declare that it is @dfn{undefined} what
4108 happens.  You just have to be careful if you do stuff like that.
4109
4110
4111 @node Misc Group Stuff
4112 @section Misc Group Stuff
4113
4114 @menu
4115 * Scanning New Messages::       Asking Gnus to see whether new messages have arrived.
4116 * Group Information::           Information and help on groups and Gnus.
4117 * Group Timestamp::             Making Gnus keep track of when you last read a group.
4118 * File Commands::               Reading and writing the Gnus files.
4119 * Sieve Commands::              Managing Sieve scripts.
4120 @end menu
4121
4122 @table @kbd
4123
4124 @item v
4125 @kindex v (Group)
4126 @cindex keys, reserved for users (Group)
4127 The key @kbd{v} is reserved for users.  You can bind it key to some
4128 function or better use it as a prefix key.  For example:
4129
4130 @lisp
4131 (define-key gnus-group-mode-map (kbd "v j d")
4132   (lambda ()
4133     (interactive)
4134     (gnus-group-jump-to-group "nndraft:drafts")))
4135 @end lisp
4136
4137 On keys reserved for users in Emacs and on keybindings in general
4138 @xref{Keymaps, Keymaps, , emacs, The Emacs Editor}.
4139
4140 @item ^
4141 @kindex ^ (Group)
4142 @findex gnus-group-enter-server-mode
4143 Enter the server buffer (@code{gnus-group-enter-server-mode}).
4144 @xref{Server Buffer}.
4145
4146 @item a
4147 @kindex a (Group)
4148 @findex gnus-group-post-news
4149 Start composing a message (a news by default)
4150 (@code{gnus-group-post-news}).  If given a prefix, post to the group
4151 under the point.  If the prefix is 1, prompt for a group to post to.
4152 Contrary to what the name of this function suggests, the prepared
4153 article might be a mail instead of a news, if a mail group is specified
4154 with the prefix argument.  @xref{Composing Messages}.
4155
4156 @item m
4157 @kindex m (Group)
4158 @findex gnus-group-mail
4159 Mail a message somewhere (@code{gnus-group-mail}).  If given a prefix,
4160 use the posting style of the group under the point.  If the prefix is 1,
4161 prompt for a group name to find the posting style.
4162 @xref{Composing Messages}.
4163
4164 @item i
4165 @kindex i (Group)
4166 @findex gnus-group-news
4167 Start composing a news (@code{gnus-group-news}).  If given a prefix,
4168 post to the group under the point.  If the prefix is 1, prompt
4169 for group to post to.  @xref{Composing Messages}.
4170
4171 This function actually prepares a news even when using mail groups.
4172 This is useful for ``posting'' messages to mail groups without actually
4173 sending them over the network: they're just saved directly to the group
4174 in question.  The corresponding back end must have a request-post method
4175 for this to work though.
4176
4177 @end table
4178
4179 Variables for the group buffer:
4180
4181 @table @code
4182
4183 @item gnus-group-mode-hook
4184 @vindex gnus-group-mode-hook
4185 is called after the group buffer has been
4186 created.
4187
4188 @item gnus-group-prepare-hook
4189 @vindex gnus-group-prepare-hook
4190 is called after the group buffer is
4191 generated.  It may be used to modify the buffer in some strange,
4192 unnatural way.
4193
4194 @item gnus-group-prepared-hook
4195 @vindex gnus-group-prepare-hook
4196 is called as the very last thing after the group buffer has been
4197 generated.  It may be used to move point around, for instance.
4198
4199 @item gnus-permanently-visible-groups
4200 @vindex gnus-permanently-visible-groups
4201 Groups matching this regexp will always be listed in the group buffer,
4202 whether they are empty or not.
4203
4204 @item gnus-group-name-charset-method-alist
4205 @vindex gnus-group-name-charset-method-alist
4206 An alist of method and the charset for group names.  It is used to show
4207 non-@acronym{ASCII} group names.
4208
4209 For example:
4210 @lisp
4211 (setq gnus-group-name-charset-method-alist
4212     '(((nntp "news.com.cn") . cn-gb-2312)))
4213 @end lisp
4214
4215 @item gnus-group-name-charset-group-alist
4216 @cindex UTF-8 group names
4217 @vindex gnus-group-name-charset-group-alist
4218 An alist of regexp of group name and the charset for group names.  It
4219 is used to show non-@acronym{ASCII} group names.  @code{((".*"
4220 utf-8))} is the default value if UTF-8 is supported, otherwise the
4221 default is @code{nil}.
4222
4223 For example:
4224 @lisp
4225 (setq gnus-group-name-charset-group-alist
4226     '(("\\.com\\.cn:" . cn-gb-2312)))
4227 @end lisp
4228
4229 @end table
4230
4231 @node Scanning New Messages
4232 @subsection Scanning New Messages
4233 @cindex new messages
4234 @cindex scanning new news
4235
4236 @table @kbd
4237
4238 @item g
4239 @kindex g (Group)
4240 @findex gnus-group-get-new-news
4241 @c @icon{gnus-group-get-new-news}
4242 Check the server(s) for new articles.  If the numerical prefix is used,
4243 this command will check only groups of level @var{arg} and lower
4244 (@code{gnus-group-get-new-news}).  If given a non-numerical prefix, this
4245 command will force a total re-reading of the active file(s) from the
4246 back end(s).
4247
4248 @item M-g
4249 @kindex M-g (Group)
4250 @findex gnus-group-get-new-news-this-group
4251 @vindex gnus-goto-next-group-when-activating
4252 @c @icon{gnus-group-get-new-news-this-group}
4253 Check whether new articles have arrived in the current group
4254 (@code{gnus-group-get-new-news-this-group}).
4255 @code{gnus-goto-next-group-when-activating} says whether this command is
4256 to move point to the next group or not.  It is @code{t} by default.
4257
4258 @findex gnus-activate-all-groups
4259 @cindex activating groups
4260 @item C-c M-g
4261 @kindex C-c M-g (Group)
4262 Activate absolutely all groups (@code{gnus-activate-all-groups}).
4263
4264 @item R
4265 @kindex R (Group)
4266 @cindex restarting
4267 @findex gnus-group-restart
4268 Restart Gnus (@code{gnus-group-restart}).  This saves the @file{.newsrc}
4269 file(s), closes the connection to all servers, clears up all run-time
4270 Gnus variables, and then starts Gnus all over again.
4271
4272 @end table
4273
4274 @vindex gnus-get-new-news-hook
4275 @code{gnus-get-new-news-hook} is run just before checking for new news.
4276
4277 @vindex gnus-after-getting-new-news-hook
4278 @code{gnus-after-getting-new-news-hook} is run after checking for new
4279 news.
4280
4281
4282 @node Group Information
4283 @subsection Group Information
4284 @cindex group information
4285 @cindex information on groups
4286
4287 @table @kbd
4288
4289
4290 @item H f
4291 @kindex H f (Group)
4292 @findex gnus-group-fetch-faq
4293 @vindex gnus-group-faq-directory
4294 @cindex FAQ
4295 @cindex ange-ftp
4296 Try to fetch the @acronym{FAQ} for the current group
4297 (@code{gnus-group-fetch-faq}).  Gnus will try to get the @acronym{FAQ}
4298 from @code{gnus-group-faq-directory}, which is usually a directory on
4299 a remote machine.  This variable can also be a list of directories.
4300 In that case, giving a prefix to this command will allow you to choose
4301 between the various sites.  @code{ange-ftp} (or @code{efs}) will be
4302 used for fetching the file.
4303
4304 If fetching from the first site is unsuccessful, Gnus will attempt to go
4305 through @code{gnus-group-faq-directory} and try to open them one by one.
4306
4307 @item H c
4308 @kindex H c (Group)
4309 @findex gnus-group-fetch-charter
4310 @vindex gnus-group-charter-alist
4311 @cindex charter
4312 Try to open the charter for the current group in a web browser
4313 (@code{gnus-group-fetch-charter}).  Query for a group if given a
4314 prefix argument.
4315
4316 Gnus will use @code{gnus-group-charter-alist} to find the location of
4317 the charter.  If no location is known, Gnus will fetch the control
4318 messages for the group, which in some cases includes the charter.
4319
4320 @item H C
4321 @kindex H C (Group)
4322 @findex gnus-group-fetch-control
4323 @vindex gnus-group-fetch-control-use-browse-url
4324 @cindex control message
4325 Fetch the control messages for the group from the archive at
4326 @code{ftp.isc.org} (@code{gnus-group-fetch-control}).  Query for a
4327 group if given a prefix argument.
4328
4329 If @code{gnus-group-fetch-control-use-browse-url} is non-@code{nil},
4330 Gnus will open the control messages in a browser using
4331 @code{browse-url}.  Otherwise they are fetched using @code{ange-ftp}
4332 and displayed in an ephemeral group.
4333
4334 Note that the control messages are compressed.  To use this command
4335 you need to turn on @code{auto-compression-mode} (@pxref{Compressed
4336 Files, ,Compressed Files, emacs, The Emacs Manual}).
4337
4338 @item H d
4339 @itemx C-c C-d
4340 @c @icon{gnus-group-describe-group}
4341 @kindex H d (Group)
4342 @kindex C-c C-d (Group)
4343 @cindex describing groups
4344 @cindex group description
4345 @findex gnus-group-describe-group
4346 Describe the current group (@code{gnus-group-describe-group}).  If given
4347 a prefix, force Gnus to re-read the description from the server.
4348
4349 @item M-d
4350 @kindex M-d (Group)
4351 @findex gnus-group-describe-all-groups
4352 Describe all groups (@code{gnus-group-describe-all-groups}).  If given a
4353 prefix, force Gnus to re-read the description file from the server.
4354
4355 @item H v
4356 @itemx V
4357 @kindex V (Group)
4358 @kindex H v (Group)
4359 @cindex version
4360 @findex gnus-version
4361 Display current Gnus version numbers (@code{gnus-version}).
4362
4363 @item ?
4364 @kindex ? (Group)
4365 @findex gnus-group-describe-briefly
4366 Give a very short help message (@code{gnus-group-describe-briefly}).
4367
4368 @item C-c C-i
4369 @kindex C-c C-i (Group)
4370 @cindex info
4371 @cindex manual
4372 @findex gnus-info-find-node
4373 Go to the Gnus info node (@code{gnus-info-find-node}).
4374 @end table
4375
4376
4377 @node Group Timestamp
4378 @subsection Group Timestamp
4379 @cindex timestamps
4380 @cindex group timestamps
4381
4382 It can be convenient to let Gnus keep track of when you last read a
4383 group.  To set the ball rolling, you should add
4384 @code{gnus-group-set-timestamp} to @code{gnus-select-group-hook}:
4385
4386 @lisp
4387 (add-hook 'gnus-select-group-hook 'gnus-group-set-timestamp)
4388 @end lisp
4389
4390 After doing this, each time you enter a group, it'll be recorded.
4391
4392 This information can be displayed in various ways---the easiest is to
4393 use the @samp{%d} spec in the group line format:
4394
4395 @lisp
4396 (setq gnus-group-line-format
4397       "%M\%S\%p\%P\%5y: %(%-40,40g%) %d\n")
4398 @end lisp
4399
4400 This will result in lines looking like:
4401
4402 @example
4403 *        0: mail.ding                                19961002T012943
4404          0: custom                                   19961002T012713
4405 @end example
4406
4407 As you can see, the date is displayed in compact ISO 8601 format.  This
4408 may be a bit too much, so to just display the date, you could say
4409 something like:
4410
4411 @lisp
4412 (setq gnus-group-line-format
4413       "%M\%S\%p\%P\%5y: %(%-40,40g%) %6,6~(cut 2)d\n")
4414 @end lisp
4415
4416 If you would like greater control of the time format, you can use a
4417 user-defined format spec.  Something like the following should do the
4418 trick:
4419
4420 @lisp
4421 (setq gnus-group-line-format
4422       "%M\%S\%p\%P\%5y: %(%-40,40g%) %ud\n")
4423 (defun gnus-user-format-function-d (headers)
4424   (let ((time (gnus-group-timestamp gnus-tmp-group)))
4425     (if time
4426         (format-time-string "%b %d  %H:%M" time)
4427       "")))
4428 @end lisp
4429
4430
4431 @node File Commands
4432 @subsection File Commands
4433 @cindex file commands
4434
4435 @table @kbd
4436
4437 @item r
4438 @kindex r (Group)
4439 @findex gnus-group-read-init-file
4440 @vindex gnus-init-file
4441 @cindex reading init file
4442 Re-read the init file (@code{gnus-init-file}, which defaults to
4443 @file{~/.gnus.el}) (@code{gnus-group-read-init-file}).
4444
4445 @item s
4446 @kindex s (Group)
4447 @findex gnus-group-save-newsrc
4448 @cindex saving .newsrc
4449 Save the @file{.newsrc.eld} file (and @file{.newsrc} if wanted)
4450 (@code{gnus-group-save-newsrc}).  If given a prefix, force saving the
4451 file(s) whether Gnus thinks it is necessary or not.
4452
4453 @c @item Z
4454 @c @kindex Z (Group)
4455 @c @findex gnus-group-clear-dribble
4456 @c Clear the dribble buffer (@code{gnus-group-clear-dribble}).
4457
4458 @end table
4459
4460
4461 @node Sieve Commands
4462 @subsection Sieve Commands
4463 @cindex group sieve commands
4464
4465 Sieve is a server-side mail filtering language.  In Gnus you can use
4466 the @code{sieve} group parameter (@pxref{Group Parameters}) to specify
4467 sieve rules that should apply to each group.  Gnus provides two
4468 commands to translate all these group parameters into a proper Sieve
4469 script that can be transfered to the server somehow.
4470
4471 @vindex gnus-sieve-file
4472 @vindex gnus-sieve-region-start
4473 @vindex gnus-sieve-region-end
4474 The generated Sieve script is placed in @code{gnus-sieve-file} (by
4475 default @file{~/.sieve}).  The Sieve code that Gnus generate is placed
4476 between two delimiters, @code{gnus-sieve-region-start} and
4477 @code{gnus-sieve-region-end}, so you may write additional Sieve code
4478 outside these delimiters that will not be removed the next time you
4479 regenerate the Sieve script.
4480
4481 @vindex gnus-sieve-crosspost
4482 The variable @code{gnus-sieve-crosspost} controls how the Sieve script
4483 is generated.  If it is non-@code{nil} (the default) articles is
4484 placed in all groups that have matching rules, otherwise the article
4485 is only placed in the group with the first matching rule.  For
4486 example, the group parameter @samp{(sieve address "sender"
4487 "owner-ding@@hpc.uh.edu")} will generate the following piece of Sieve
4488 code if @code{gnus-sieve-crosspost} is @code{nil}.  (When
4489 @code{gnus-sieve-crosspost} is non-@code{nil}, it looks the same
4490 except that the line containing the call to @code{stop} is removed.)
4491
4492 @example
4493 if address "sender" "owner-ding@@hpc.uh.edu" @{
4494         fileinto "INBOX.ding";
4495         stop;
4496 @}
4497 @end example
4498
4499 @xref{Top, Emacs Sieve, Top, sieve, Emacs Sieve}.
4500
4501 @table @kbd
4502
4503 @item D g
4504 @kindex D g (Group)
4505 @findex gnus-sieve-generate
4506 @vindex gnus-sieve-file
4507 @cindex generating sieve script
4508 Regenerate a Sieve script from the @code{sieve} group parameters and
4509 put you into the @code{gnus-sieve-file} without saving it.
4510
4511 @item D u
4512 @kindex D u (Group)
4513 @findex gnus-sieve-update
4514 @vindex gnus-sieve-file
4515 @cindex updating sieve script
4516 Regenerates the Gnus managed part of @code{gnus-sieve-file} using the
4517 @code{sieve} group parameters, save the file and upload it to the
4518 server using the @code{sieveshell} program.
4519
4520 @end table
4521
4522
4523 @node Summary Buffer
4524 @chapter Summary Buffer
4525 @cindex summary buffer
4526
4527 A line for each article is displayed in the summary buffer.  You can
4528 move around, read articles, post articles and reply to articles.
4529
4530 The most common way to a summary buffer is to select a group from the
4531 group buffer (@pxref{Selecting a Group}).
4532
4533 You can have as many summary buffers open as you wish.
4534
4535 You can customize the Summary Mode tool bar, see @kbd{M-x
4536 customize-apropos RET gnus-summary-tool-bar}.  This feature is only
4537 available in Emacs.
4538
4539 @kindex v (Summary)
4540 @cindex keys, reserved for users (Summary)
4541 The key @kbd{v} is reserved for users.  You can bind it key to some
4542 function or better use it as a prefix key.  For example:
4543 @lisp
4544 (define-key gnus-summary-mode-map (kbd "v -") "LrS") ;; lower subthread
4545 @end lisp
4546
4547 @menu
4548 * Summary Buffer Format::       Deciding how the summary buffer is to look.
4549 * Summary Maneuvering::         Moving around the summary buffer.
4550 * Choosing Articles::           Reading articles.
4551 * Paging the Article::          Scrolling the current article.
4552 * Reply Followup and Post::     Posting articles.
4553 * Delayed Articles::            Send articles at a later time.
4554 * Marking Articles::            Marking articles as read, expirable, etc.
4555 * Limiting::                    You can limit the summary buffer.
4556 * Threading::                   How threads are made.
4557 * Sorting the Summary Buffer::  How articles and threads are sorted.
4558 * Asynchronous Fetching::       Gnus might be able to pre-fetch articles.
4559 * Article Caching::             You may store articles in a cache.
4560 * Persistent Articles::         Making articles expiry-resistant.
4561 * Article Backlog::             Having already read articles hang around.
4562 * Saving Articles::             Ways of customizing article saving.
4563 * Decoding Articles::           Gnus can treat series of (uu)encoded articles.
4564 * Article Treatment::           The article buffer can be mangled at will.
4565 * MIME Commands::               Doing MIMEy things with the articles.
4566 * Charsets::                    Character set issues.
4567 * Article Commands::            Doing various things with the article buffer.
4568 * Summary Sorting::             Sorting the summary buffer in various ways.
4569 * Finding the Parent::          No child support? Get the parent.
4570 * Alternative Approaches::      Reading using non-default summaries.
4571 * Tree Display::                A more visual display of threads.
4572 * Mail Group Commands::         Some commands can only be used in mail groups.
4573 * Various Summary Stuff::       What didn't fit anywhere else.
4574 * Exiting the Summary Buffer::  Returning to the Group buffer,
4575                                 or reselecting the current group.
4576 * Crosspost Handling::          How crossposted articles are dealt with.
4577 * Duplicate Suppression::       An alternative when crosspost handling fails.
4578 * Security::                    Decrypt and Verify.
4579 * Mailing List::                Mailing list minor mode.
4580 @end menu
4581
4582
4583 @node Summary Buffer Format
4584 @section Summary Buffer Format
4585 @cindex summary buffer format
4586
4587 @iftex
4588 @iflatex
4589 \gnusfigure{The Summary Buffer}{180}{
4590 \put(0,0){\epsfig{figure=ps/summary,width=7.5cm}}
4591 \put(445,0){\makebox(0,0)[br]{\epsfig{figure=ps/summary-article,width=7.5cm}}}
4592 }
4593 @end iflatex
4594 @end iftex
4595
4596 @menu
4597 * Summary Buffer Lines::        You can specify how summary lines should look.
4598 * To From Newsgroups::          How to not display your own name.
4599 * Summary Buffer Mode Line::    You can say how the mode line should look.
4600 * Summary Highlighting::        Making the summary buffer all pretty and nice.
4601 @end menu
4602
4603 @findex mail-extract-address-components
4604 @findex gnus-extract-address-components
4605 @vindex gnus-extract-address-components
4606 Gnus will use the value of the @code{gnus-extract-address-components}
4607 variable as a function for getting the name and address parts of a
4608 @code{From} header.  Two pre-defined functions exist:
4609 @code{gnus-extract-address-components}, which is the default, quite
4610 fast, and too simplistic solution; and
4611 @code{mail-extract-address-components}, which works very nicely, but is
4612 slower.  The default function will return the wrong answer in 5% of the
4613 cases.  If this is unacceptable to you, use the other function instead:
4614
4615 @lisp
4616 (setq gnus-extract-address-components
4617       'mail-extract-address-components)
4618 @end lisp
4619
4620 @vindex gnus-summary-same-subject
4621 @code{gnus-summary-same-subject} is a string indicating that the current
4622 article has the same subject as the previous.  This string will be used
4623 with those specs that require it.  The default is @code{""}.
4624
4625
4626 @node Summary Buffer Lines
4627 @subsection Summary Buffer Lines
4628
4629 @vindex gnus-summary-line-format
4630 You can change the format of the lines in the summary buffer by changing
4631 the @code{gnus-summary-line-format} variable.  It works along the same
4632 lines as a normal @code{format} string, with some extensions
4633 (@pxref{Formatting Variables}).
4634
4635 There should always be a colon or a point position marker on the line;
4636 the cursor always moves to the point position marker or the colon after
4637 performing an operation.  (Of course, Gnus wouldn't be Gnus if it wasn't
4638 possible to change this.  Just write a new function
4639 @code{gnus-goto-colon} which does whatever you like with the cursor.)
4640 @xref{Positioning Point}.
4641
4642 The default string is @samp{%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n}.
4643
4644 The following format specification characters and extended format
4645 specification(s) are understood:
4646
4647 @table @samp
4648 @item N
4649 Article number.
4650 @item S
4651 Subject string.  List identifiers stripped,
4652 @code{gnus-list-identifies}.  @xref{Article Hiding}.
4653 @item s
4654 Subject if the article is the root of the thread or the previous article
4655 had a different subject, @code{gnus-summary-same-subject} otherwise.
4656 (@code{gnus-summary-same-subject} defaults to @code{""}.)
4657 @item F
4658 Full @code{From} header.
4659 @item n
4660 The name (from the @code{From} header).
4661 @item f
4662 The name, @code{To} header or the @code{Newsgroups} header (@pxref{To
4663 From Newsgroups}).
4664 @item a
4665 The name (from the @code{From} header).  This differs from the @code{n}
4666 spec in that it uses the function designated by the
4667 @code{gnus-extract-address-components} variable, which is slower, but
4668 may be more thorough.
4669 @item A
4670 The address (from the @code{From} header).  This works the same way as
4671 the @code{a} spec.
4672 @item L
4673 Number of lines in the article.
4674 @item c
4675 Number of characters in the article.  This specifier is not supported
4676 in some methods (like nnfolder).
4677 @item k
4678 Pretty-printed version of the number of characters in the article;
4679 for example, @samp{1.2k} or @samp{0.4M}.
4680 @item I
4681 Indentation based on thread level (@pxref{Customizing Threading}).
4682 @item B
4683 A complex trn-style thread tree, showing response-connecting trace
4684 lines.  A thread could be drawn like this:
4685
4686 @example
4687 >
4688 +->
4689 | +->
4690 | | \->
4691 | |   \->
4692 | \->
4693 +->
4694 \->
4695 @end example
4696
4697 You can customize the appearance with the following options.  Note
4698 that it is possible to make the thread display look really neat by
4699 replacing the default @acronym{ASCII} characters with graphic
4700 line-drawing glyphs.
4701 @table @code
4702 @item gnus-sum-thread-tree-root
4703 @vindex gnus-sum-thread-tree-root
4704 Used for the root of a thread.  If @code{nil}, use subject
4705 instead.  The default is @samp{> }.
4706
4707 @item gnus-sum-thread-tree-false-root
4708 @vindex gnus-sum-thread-tree-false-root
4709 Used for the false root of a thread (@pxref{Loose Threads}).  If
4710 @code{nil}, use subject instead.  The default is @samp{> }.
4711
4712 @item gnus-sum-thread-tree-single-indent
4713 @vindex gnus-sum-thread-tree-single-indent
4714 Used for a thread with just one message.  If @code{nil}, use subject
4715 instead.  The default is @samp{}.
4716
4717 @item gnus-sum-thread-tree-vertical
4718 @vindex gnus-sum-thread-tree-vertical
4719 Used for drawing a vertical line.  The default is @samp{| }.
4720
4721 @item gnus-sum-thread-tree-indent
4722 @vindex gnus-sum-thread-tree-indent
4723 Used for indenting.  The default is @samp{  }.
4724
4725 @item gnus-sum-thread-tree-leaf-with-other
4726 @vindex gnus-sum-thread-tree-leaf-with-other
4727 Used for a leaf with brothers.  The default is @samp{+-> }.
4728
4729 @item gnus-sum-thread-tree-single-leaf
4730 @vindex gnus-sum-thread-tree-single-leaf
4731 Used for a leaf without brothers.  The default is @samp{\-> }
4732
4733 @end table
4734
4735 @item T
4736 Nothing if the article is a root and lots of spaces if it isn't (it
4737 pushes everything after it off the screen).
4738 @item [
4739 Opening bracket, which is normally @samp{[}, but can also be @samp{<}
4740 for adopted articles (@pxref{Customizing Threading}).
4741 @item ]
4742 Closing bracket, which is normally @samp{]}, but can also be @samp{>}
4743 for adopted articles.
4744 @item >
4745 One space for each thread level.
4746 @item <
4747 Twenty minus thread level spaces.
4748 @item U
4749 Unread.  @xref{Read Articles}.
4750
4751 @item R
4752 This misleadingly named specifier is the @dfn{secondary mark}.  This
4753 mark will say whether the article has been replied to, has been cached,
4754 or has been saved.  @xref{Other Marks}.
4755
4756 @item i
4757 Score as a number (@pxref{Scoring}).
4758 @item z
4759 @vindex gnus-summary-zcore-fuzz
4760 Zcore, @samp{+} if above the default level and @samp{-} if below the
4761 default level.  If the difference between
4762 @code{gnus-summary-default-score} and the score is less than
4763 @code{gnus-summary-zcore-fuzz}, this spec will not be used.
4764 @item V
4765 Total thread score.
4766 @item x
4767 @code{Xref}.
4768 @item D
4769 @code{Date}.
4770 @item d
4771 The @code{Date} in @code{DD-MMM} format.
4772 @item o
4773 The @code{Date} in @var{YYYYMMDD}@code{T}@var{HHMMSS} format.
4774 @item M
4775 @code{Message-ID}.
4776 @item r
4777 @code{References}.
4778 @item t
4779 Number of articles in the current sub-thread.  Using this spec will slow
4780 down summary buffer generation somewhat.
4781 @item e
4782 An @samp{=} (@code{gnus-not-empty-thread-mark}) will be displayed if the
4783 article has any children.
4784 @item P
4785 The line number.
4786 @item O
4787 Download mark.
4788 @item *
4789 Desired cursor position (instead of after first colon).
4790 @item &user-date;
4791 Age sensitive date format.  Various date format is defined in
4792 @code{gnus-user-date-format-alist}.
4793 @item u
4794 User defined specifier.  The next character in the format string should
4795 be a letter.  Gnus will call the function
4796 @code{gnus-user-format-function-@var{x}}, where @var{x} is the letter
4797 following @samp{%u}.  The function will be passed the current header as
4798 argument.  The function should return a string, which will be inserted
4799 into the summary just like information from any other summary specifier.
4800 @end table
4801
4802 Text between @samp{%(} and @samp{%)} will be highlighted with
4803 @code{gnus-mouse-face} when the mouse point is placed inside the area.
4804 There can only be one such area.
4805
4806 The @samp{%U} (status), @samp{%R} (replied) and @samp{%z} (zcore) specs
4807 have to be handled with care.  For reasons of efficiency, Gnus will
4808 compute what column these characters will end up in, and ``hard-code''
4809 that.  This means that it is invalid to have these specs after a
4810 variable-length spec.  Well, you might not be arrested, but your summary
4811 buffer will look strange, which is bad enough.
4812
4813 The smart choice is to have these specs as far to the left as possible.
4814 (Isn't that the case with everything, though?  But I digress.)
4815
4816 This restriction may disappear in later versions of Gnus.
4817
4818
4819 @node To From Newsgroups
4820 @subsection To From Newsgroups
4821 @cindex To
4822 @cindex Newsgroups
4823
4824 In some groups (particularly in archive groups), the @code{From} header
4825 isn't very interesting, since all the articles there are written by
4826 you.  To display the information in the @code{To} or @code{Newsgroups}
4827 headers instead, you need to decide three things: What information to
4828 gather; where to display it; and when to display it.
4829
4830 @enumerate
4831 @item
4832 @vindex gnus-extra-headers
4833 The reading of extra header information is controlled by the
4834 @code{gnus-extra-headers}.  This is a list of header symbols.  For
4835 instance:
4836
4837 @lisp
4838 (setq gnus-extra-headers
4839       '(To Newsgroups X-Newsreader))
4840 @end lisp
4841
4842 This will result in Gnus trying to obtain these three headers, and
4843 storing it in header structures for later easy retrieval.
4844
4845 @item
4846 @findex gnus-extra-header
4847 The value of these extra headers can be accessed via the
4848 @code{gnus-extra-header} function.  Here's a format line spec that will
4849 access the @code{X-Newsreader} header:
4850
4851 @example
4852 "%~(form (gnus-extra-header 'X-Newsreader))@@"
4853 @end example
4854
4855 @item
4856 @vindex gnus-ignored-from-addresses
4857 The @code{gnus-ignored-from-addresses} variable says when the @samp{%f}
4858 summary line spec returns the @code{To}, @code{Newsreader} or
4859 @code{From} header.  If this regexp matches the contents of the
4860 @code{From} header, the value of the @code{To} or @code{Newsreader}
4861 headers are used instead.
4862
4863 To distinguish regular articles from those where the @code{From} field
4864 has been swapped, a string is prefixed to the @code{To} or
4865 @code{Newsgroups} header in the summary line.  By default the string is
4866 @samp{-> } for @code{To} and @samp{=> } for @code{Newsgroups}, you can
4867 customize these strings with @code{gnus-summary-to-prefix} and
4868 @code{gnus-summary-newsgroup-prefix}.
4869
4870 @end enumerate
4871
4872 @vindex nnmail-extra-headers
4873 A related variable is @code{nnmail-extra-headers}, which controls when
4874 to include extra headers when generating overview (@acronym{NOV}) files.
4875 If you have old overview files, you should regenerate them after
4876 changing this variable, by entering the server buffer using @kbd{^},
4877 and then @kbd{g} on the appropriate mail server (e.g. nnml) to cause
4878 regeneration.
4879
4880 @vindex gnus-summary-line-format
4881 You also have to instruct Gnus to display the data by changing the
4882 @code{%n} spec to the @code{%f} spec in the
4883 @code{gnus-summary-line-format} variable.
4884
4885 In summary, you'd typically put something like the following in
4886 @file{~/.gnus.el}:
4887
4888 @lisp
4889 (setq gnus-extra-headers
4890       '(To Newsgroups))
4891 (setq nnmail-extra-headers gnus-extra-headers)
4892 (setq gnus-summary-line-format
4893       "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n")
4894 (setq gnus-ignored-from-addresses
4895       "Your Name Here")
4896 @end lisp
4897
4898 (The values listed above are the default values in Gnus.  Alter them
4899 to fit your needs.)
4900
4901 A note for news server administrators, or for users who wish to try to
4902 convince their news server administrator to provide some additional
4903 support:
4904
4905 The above is mostly useful for mail groups, where you have control over
4906 the @acronym{NOV} files that are created.  However, if you can persuade your
4907 nntp admin to add (in the usual implementation, notably INN):
4908
4909 @example
4910 Newsgroups:full
4911 @end example
4912
4913 to the end of her @file{overview.fmt} file, then you can use that just
4914 as you would the extra headers from the mail groups.
4915
4916
4917 @node Summary Buffer Mode Line
4918 @subsection Summary Buffer Mode Line
4919
4920 @vindex gnus-summary-mode-line-format
4921 You can also change the format of the summary mode bar (@pxref{Mode Line
4922 Formatting}).  Set @code{gnus-summary-mode-line-format} to whatever you
4923 like.  The default is @samp{Gnus: %%b [%A] %Z}.
4924
4925 Here are the elements you can play with:
4926
4927 @table @samp
4928 @item G
4929 Group name.
4930 @item p
4931 Unprefixed group name.
4932 @item A
4933 Current article number.
4934 @item z
4935 Current article score.
4936 @item V
4937 Gnus version.
4938 @item U
4939 Number of unread articles in this group.
4940 @item e
4941 Number of unread articles in this group that aren't displayed in the
4942 summary buffer.
4943 @item Z
4944 A string with the number of unread and unselected articles represented
4945 either as @samp{<%U(+%e) more>} if there are both unread and unselected
4946 articles, and just as @samp{<%U more>} if there are just unread articles
4947 and no unselected ones.
4948 @item g
4949 Shortish group name.  For instance, @samp{rec.arts.anime} will be
4950 shortened to @samp{r.a.anime}.
4951 @item S
4952 Subject of the current article.
4953 @item u
4954 User-defined spec (@pxref{User-Defined Specs}).
4955 @item s
4956 Name of the current score file (@pxref{Scoring}).
4957 @item d
4958 Number of dormant articles (@pxref{Unread Articles}).
4959 @item t
4960 Number of ticked articles (@pxref{Unread Articles}).
4961 @item r
4962 Number of articles that have been marked as read in this session.
4963 @item E
4964 Number of articles expunged by the score files.
4965 @end table
4966
4967
4968 @node Summary Highlighting
4969 @subsection Summary Highlighting
4970
4971 @table @code
4972
4973 @item gnus-visual-mark-article-hook
4974 @vindex gnus-visual-mark-article-hook
4975 This hook is run after selecting an article.  It is meant to be used for
4976 highlighting the article in some way.  It is not run if
4977 @code{gnus-visual} is @code{nil}.
4978
4979 @item gnus-summary-update-hook
4980 @vindex gnus-summary-update-hook
4981 This hook is called when a summary line is changed.  It is not run if
4982 @code{gnus-visual} is @code{nil}.
4983
4984 @item gnus-summary-selected-face
4985 @vindex gnus-summary-selected-face
4986 This is the face (or @dfn{font} as some people call it) used to
4987 highlight the current article in the summary buffer.
4988
4989 @item gnus-summary-highlight
4990 @vindex gnus-summary-highlight
4991 Summary lines are highlighted according to this variable, which is a
4992 list where the elements are of the format @code{(@var{form}
4993 . @var{face})}.  If you would, for instance, like ticked articles to be
4994 italic and high-scored articles to be bold, you could set this variable
4995 to something like
4996 @lisp
4997 (((eq mark gnus-ticked-mark) . italic)
4998  ((> score default) . bold))
4999 @end lisp
5000 As you may have guessed, if @var{form} returns a non-@code{nil} value,
5001 @var{face} will be applied to the line.
5002 @end table
5003
5004
5005 @node Summary Maneuvering
5006 @section Summary Maneuvering
5007 @cindex summary movement
5008
5009 All the straight movement commands understand the numeric prefix and
5010 behave pretty much as you'd expect.
5011
5012 None of these commands select articles.
5013
5014 @table @kbd
5015 @item G M-n
5016 @itemx M-n
5017 @kindex M-n (Summary)
5018 @kindex G M-n (Summary)
5019 @findex gnus-summary-next-unread-subject
5020 Go to the next summary line of an unread article
5021 (@code{gnus-summary-next-unread-subject}).
5022
5023 @item G M-p
5024 @itemx M-p
5025 @kindex M-p (Summary)
5026 @kindex G M-p (Summary)
5027 @findex gnus-summary-prev-unread-subject
5028 Go to the previous summary line of an unread article
5029 (@code{gnus-summary-prev-unread-subject}).
5030
5031 @item G g
5032 @kindex G g (Summary)
5033 @findex gnus-summary-goto-subject
5034 Ask for an article number and then go to the summary line of that article
5035 without displaying the article (@code{gnus-summary-goto-subject}).
5036 @end table
5037
5038 If Gnus asks you to press a key to confirm going to the next group, you
5039 can use the @kbd{C-n} and @kbd{C-p} keys to move around the group
5040 buffer, searching for the next group to read without actually returning
5041 to the group buffer.
5042
5043 Variables related to summary movement:
5044
5045 @table @code
5046
5047 @vindex gnus-auto-select-next
5048 @item gnus-auto-select-next
5049 If you issue one of the movement commands (like @kbd{n}) and there are
5050 no more unread articles after the current one, Gnus will offer to go to
5051 the next group.  If this variable is @code{t} and the next group is
5052 empty, Gnus will exit summary mode and return to the group buffer.  If
5053 this variable is neither @code{t} nor @code{nil}, Gnus will select the
5054 next group with unread articles.  As a special case, if this variable
5055 is @code{quietly}, Gnus will select the next group without asking for
5056 confirmation.  If this variable is @code{almost-quietly}, the same
5057 will happen only if you are located on the last article in the group.
5058 Finally, if this variable is @code{slightly-quietly}, the @kbd{Z n}
5059 command will go to the next group without confirmation.  Also
5060 @pxref{Group Levels}.
5061
5062 @item gnus-auto-select-same
5063 @vindex gnus-auto-select-same
5064 If non-@code{nil}, all the movement commands will try to go to the next
5065 article with the same subject as the current.  (@dfn{Same} here might
5066 mean @dfn{roughly equal}.  See @code{gnus-summary-gather-subject-limit}
5067 for details (@pxref{Customizing Threading}).)  If there are no more
5068 articles with the same subject, go to the first unread article.
5069
5070 This variable is not particularly useful if you use a threaded display.
5071
5072 @item gnus-summary-check-current
5073 @vindex gnus-summary-check-current
5074 If non-@code{nil}, all the ``unread'' movement commands will not proceed
5075 to the next (or previous) article if the current article is unread.
5076 Instead, they will choose the current article.
5077
5078 @item gnus-auto-center-summary
5079 @vindex gnus-auto-center-summary
5080 If non-@code{nil}, Gnus will keep the point in the summary buffer
5081 centered at all times.  This makes things quite tidy, but if you have a
5082 slow network connection, or simply do not like this un-Emacsism, you can
5083 set this variable to @code{nil} to get the normal Emacs scrolling
5084 action.  This will also inhibit horizontal re-centering of the summary
5085 buffer, which might make it more inconvenient to read extremely long
5086 threads.
5087
5088 This variable can also be a number.  In that case, center the window at
5089 the given number of lines from the top.
5090
5091 @end table
5092
5093
5094 @node Choosing Articles
5095 @section Choosing Articles
5096 @cindex selecting articles
5097
5098 @menu
5099 * Choosing Commands::           Commands for choosing articles.
5100 * Choosing Variables::          Variables that influence these commands.
5101 @end menu
5102
5103
5104 @node Choosing Commands
5105 @subsection Choosing Commands
5106
5107 None of the following movement commands understand the numeric prefix,
5108 and they all select and display an article.
5109
5110 If you want to fetch new articles or redisplay the group, see
5111 @ref{Exiting the Summary Buffer}.
5112
5113 @table @kbd
5114 @item SPACE
5115 @kindex SPACE (Summary)
5116 @findex gnus-summary-next-page
5117 Select the current article, or, if that one's read already, the next
5118 unread article (@code{gnus-summary-next-page}).
5119
5120 If you have an article window open already and you press @kbd{SPACE}
5121 again, the article will be scrolled.  This lets you conveniently
5122 @kbd{SPACE} through an entire newsgroup.  @xref{Paging the Article}.
5123
5124 @item G n
5125 @itemx n
5126 @kindex n (Summary)
5127 @kindex G n (Summary)
5128 @findex gnus-summary-next-unread-article
5129 @c @icon{gnus-summary-next-unread}
5130 Go to next unread article (@code{gnus-summary-next-unread-article}).
5131
5132 @item G p
5133 @itemx p
5134 @kindex p (Summary)
5135 @findex gnus-summary-prev-unread-article
5136 @c @icon{gnus-summary-prev-unread}
5137 Go to previous unread article (@code{gnus-summary-prev-unread-article}).
5138
5139 @item G N
5140 @itemx N
5141 @kindex N (Summary)
5142 @kindex G N (Summary)
5143 @findex gnus-summary-next-article
5144 Go to the next article (@code{gnus-summary-next-article}).
5145
5146 @item G P
5147 @itemx P
5148 @kindex P (Summary)
5149 @kindex G P (Summary)
5150 @findex gnus-summary-prev-article
5151 Go to the previous article (@code{gnus-summary-prev-article}).
5152
5153 @item G C-n
5154 @kindex G C-n (Summary)
5155 @findex gnus-summary-next-same-subject
5156 Go to the next article with the same subject
5157 (@code{gnus-summary-next-same-subject}).
5158
5159 @item G C-p
5160 @kindex G C-p (Summary)
5161 @findex gnus-summary-prev-same-subject
5162 Go to the previous article with the same subject
5163 (@code{gnus-summary-prev-same-subject}).
5164
5165 @item G f
5166 @itemx .
5167 @kindex G f  (Summary)
5168 @kindex .  (Summary)
5169 @findex gnus-summary-first-unread-article
5170 Go to the first unread article
5171 (@code{gnus-summary-first-unread-article}).
5172
5173 @item G b
5174 @itemx ,
5175 @kindex G b (Summary)
5176 @kindex , (Summary)
5177 @findex gnus-summary-best-unread-article
5178 Go to the unread article with the highest score
5179 (@code{gnus-summary-best-unread-article}).  If given a prefix argument,
5180 go to the first unread article that has a score over the default score.
5181
5182 @item G l
5183 @itemx l
5184 @kindex l (Summary)
5185 @kindex G l (Summary)
5186 @findex gnus-summary-goto-last-article
5187 Go to the previous article read (@code{gnus-summary-goto-last-article}).
5188
5189 @item G o
5190 @kindex G o (Summary)
5191 @findex gnus-summary-pop-article
5192 @cindex history
5193 @cindex article history
5194 Pop an article off the summary history and go to this article
5195 (@code{gnus-summary-pop-article}).  This command differs from the
5196 command above in that you can pop as many previous articles off the
5197 history as you like, while @kbd{l} toggles the two last read articles.
5198 For a somewhat related issue (if you use these commands a lot),
5199 @pxref{Article Backlog}.
5200
5201 @item G j
5202 @itemx j
5203 @kindex j (Summary)
5204 @kindex G j (Summary)
5205 @findex gnus-summary-goto-article
5206 Ask for an article number or @code{Message-ID}, and then go to that
5207 article (@code{gnus-summary-goto-article}).
5208
5209 @end table
5210
5211
5212 @node Choosing Variables
5213 @subsection Choosing Variables
5214
5215 Some variables relevant for moving and selecting articles:
5216
5217 @table @code
5218 @item gnus-auto-extend-newsgroup
5219 @vindex gnus-auto-extend-newsgroup
5220 All the movement commands will try to go to the previous (or next)
5221 article, even if that article isn't displayed in the Summary buffer if
5222 this variable is non-@code{nil}.  Gnus will then fetch the article from
5223 the server and display it in the article buffer.
5224
5225 @item gnus-select-article-hook
5226 @vindex gnus-select-article-hook
5227 This hook is called whenever an article is selected.  The default is
5228 @code{nil}.  If you would like each article to be saved in the Agent as
5229 you read it, putting @code{gnus-agent-fetch-selected-article} on this
5230 hook will do so.
5231
5232 @item gnus-mark-article-hook
5233 @vindex gnus-mark-article-hook
5234 @findex gnus-summary-mark-unread-as-read
5235 @findex gnus-summary-mark-read-and-unread-as-read
5236 @findex gnus-unread-mark
5237 This hook is called whenever an article is selected.  It is intended to
5238 be used for marking articles as read.  The default value is
5239 @code{gnus-summary-mark-read-and-unread-as-read}, and will change the
5240 mark of almost any article you read to @code{gnus-read-mark}.  The only
5241 articles not affected by this function are ticked, dormant, and
5242 expirable articles.  If you'd instead like to just have unread articles
5243 marked as read, you can use @code{gnus-summary-mark-unread-as-read}
5244 instead.  It will leave marks like @code{gnus-low-score-mark},
5245 @code{gnus-del-mark} (and so on) alone.
5246
5247 @end table
5248
5249
5250 @node Paging the Article
5251 @section Scrolling the Article
5252 @cindex article scrolling
5253
5254 @table @kbd
5255
5256 @item SPACE
5257 @kindex SPACE (Summary)
5258 @findex gnus-summary-next-page
5259 Pressing @kbd{SPACE} will scroll the current article forward one page,
5260 or, if you have come to the end of the current article, will choose the
5261 next article (@code{gnus-summary-next-page}).
5262
5263 @vindex gnus-article-boring-faces
5264 @vindex gnus-article-skip-boring
5265 If @code{gnus-article-skip-boring} is non-@code{nil} and the rest of
5266 the article consists only of citations and signature, then it will be
5267 skipped; the next article will be shown instead.  You can customize
5268 what is considered uninteresting with
5269 @code{gnus-article-boring-faces}.  You can manually view the article's
5270 pages, no matter how boring, using @kbd{C-M-v}.
5271
5272 @item DEL
5273 @kindex DEL (Summary)
5274 @findex gnus-summary-prev-page
5275 Scroll the current article back one page (@code{gnus-summary-prev-page}).
5276
5277 @item RET
5278 @kindex RET (Summary)
5279 @findex gnus-summary-scroll-up
5280 Scroll the current article one line forward
5281 (@code{gnus-summary-scroll-up}).
5282
5283 @item M-RET
5284 @kindex M-RET (Summary)
5285 @findex gnus-summary-scroll-down
5286 Scroll the current article one line backward
5287 (@code{gnus-summary-scroll-down}).
5288
5289 @item A g
5290 @itemx g
5291 @kindex A g (Summary)
5292 @kindex g (Summary)
5293 @findex gnus-summary-show-article
5294 @vindex gnus-summary-show-article-charset-alist
5295 (Re)fetch the current article (@code{gnus-summary-show-article}).  If
5296 given a prefix, fetch the current article, but don't run any of the
5297 article treatment functions.  This will give you a ``raw'' article, just
5298 the way it came from the server.
5299
5300 If given a numerical prefix, you can do semi-manual charset stuff.
5301 @kbd{C-u 0 g cn-gb-2312 RET} will decode the message as if it were
5302 encoded in the @code{cn-gb-2312} charset.  If you have
5303
5304 @lisp
5305 (setq gnus-summary-show-article-charset-alist
5306       '((1 . cn-gb-2312)
5307         (2 . big5)))
5308 @end lisp
5309
5310 then you can say @kbd{C-u 1 g} to get the same effect.
5311
5312 @item A <
5313 @itemx <
5314 @kindex < (Summary)
5315 @kindex A < (Summary)
5316 @findex gnus-summary-beginning-of-article
5317 Scroll to the beginning of the article
5318 (@code{gnus-summary-beginning-of-article}).
5319
5320 @item A >
5321 @itemx >
5322 @kindex > (Summary)
5323 @kindex A > (Summary)
5324 @findex gnus-summary-end-of-article
5325 Scroll to the end of the article (@code{gnus-summary-end-of-article}).
5326
5327 @item A s
5328 @itemx s
5329 @kindex A s (Summary)
5330 @kindex s (Summary)
5331 @findex gnus-summary-isearch-article
5332 Perform an isearch in the article buffer
5333 (@code{gnus-summary-isearch-article}).
5334
5335 @item h
5336 @kindex h (Summary)
5337 @findex gnus-summary-select-article-buffer
5338 Select the article buffer (@code{gnus-summary-select-article-buffer}).
5339
5340 @end table
5341
5342
5343 @node Reply Followup and Post
5344 @section Reply, Followup and Post
5345
5346 @menu
5347 * Summary Mail Commands::       Sending mail.
5348 * Summary Post Commands::       Sending news.
5349 * Summary Message Commands::    Other Message-related commands.
5350 * Canceling and Superseding::
5351 @end menu
5352
5353
5354 @node Summary Mail Commands
5355 @subsection Summary Mail Commands
5356 @cindex mail
5357 @cindex composing mail
5358
5359 Commands for composing a mail message:
5360
5361 @table @kbd
5362
5363 @item S r
5364 @itemx r
5365 @kindex S r (Summary)
5366 @kindex r (Summary)
5367 @findex gnus-summary-reply
5368 @c @icon{gnus-summary-mail-reply}
5369 @c @icon{gnus-summary-reply}
5370 Mail a reply to the author of the current article
5371 (@code{gnus-summary-reply}).
5372
5373 @item S R
5374 @itemx R
5375 @kindex R (Summary)
5376 @kindex S R (Summary)
5377 @findex gnus-summary-reply-with-original
5378 @c @icon{gnus-summary-reply-with-original}
5379 Mail a reply to the author of the current article and include the
5380 original message (@code{gnus-summary-reply-with-original}).  This
5381 command uses the process/prefix convention.
5382
5383 @item S w
5384 @kindex S w (Summary)
5385 @findex gnus-summary-wide-reply
5386 Mail a wide reply to the author of the current article
5387 (@code{gnus-summary-wide-reply}).  A @dfn{wide reply} is a reply that
5388 goes out to all people listed in the @code{To}, @code{From} (or
5389 @code{Reply-to}) and @code{Cc} headers.  If @code{Mail-Followup-To} is
5390 present, that's used instead.
5391
5392 @item S W
5393 @kindex S W (Summary)
5394 @findex gnus-summary-wide-reply-with-original
5395 Mail a wide reply to the current article and include the original
5396 message (@code{gnus-summary-wide-reply-with-original}).  This command uses
5397 the process/prefix convention.
5398
5399 @item S v
5400 @kindex S v (Summary)
5401 @findex gnus-summary-very-wide-reply
5402 Mail a very wide reply to the author of the current article
5403 (@code{gnus-summary-wide-reply}).  A @dfn{very wide reply} is a reply
5404 that goes out to all people listed in the @code{To}, @code{From} (or
5405 @code{Reply-to}) and @code{Cc} headers in all the process/prefixed
5406 articles.  This command uses the process/prefix convention.
5407
5408 @item S V
5409 @kindex S V (Summary)
5410 @findex gnus-summary-very-wide-reply-with-original
5411 Mail a very wide reply to the author of the current article and include the
5412 original message (@code{gnus-summary-very-wide-reply-with-original}).  This
5413 command uses the process/prefix convention.
5414
5415 @item S B r
5416 @kindex S B r (Summary)
5417 @findex gnus-summary-reply-broken-reply-to
5418 Mail a reply to the author of the current article but ignore the
5419 @code{Reply-To} field (@code{gnus-summary-reply-broken-reply-to}).
5420 If you need this because a mailing list incorrectly sets a
5421 @code{Reply-To} header pointing to the list, you probably want to set
5422 the @code{broken-reply-to} group parameter instead, so things will work
5423 correctly.  @xref{Group Parameters}.
5424
5425 @item S B R
5426 @kindex S B R (Summary)
5427 @findex gnus-summary-reply-broken-reply-to-with-original
5428 Mail a reply to the author of the current article and include the
5429 original message but ignore the @code{Reply-To} field
5430 (@code{gnus-summary-reply-broken-reply-to-with-original}).
5431
5432 @item S o m
5433 @itemx C-c C-f
5434 @kindex S o m (Summary)
5435 @kindex C-c C-f (Summary)
5436 @findex gnus-summary-mail-forward
5437 @c @icon{gnus-summary-mail-forward}
5438 Forward the current article to some other person
5439 (@code{gnus-summary-mail-forward}).  If no prefix is given, the message
5440 is forwarded according to the value of (@code{message-forward-as-mime})
5441 and (@code{message-forward-show-mml}); if the prefix is 1, decode the
5442 message and forward directly inline; if the prefix is 2, forward message
5443 as an rfc822 @acronym{MIME} section; if the prefix is 3, decode message and
5444 forward as an rfc822 @acronym{MIME} section; if the prefix is 4, forward message
5445 directly inline; otherwise, the message is forwarded as no prefix given
5446 but use the flipped value of (@code{message-forward-as-mime}).  By
5447 default, the message is decoded and forwarded as an rfc822 @acronym{MIME}
5448 section.
5449
5450 @item S m
5451 @itemx m
5452 @kindex m (Summary)
5453 @kindex S m (Summary)
5454 @findex gnus-summary-mail-other-window
5455 @c @icon{gnus-summary-mail-originate}
5456 Prepare a mail (@code{gnus-summary-mail-other-window}).  By default, use
5457 the posting style of the current group.  If given a prefix, disable that.
5458 If the prefix is 1, prompt for a group name to find the posting style.
5459
5460 @item S i
5461 @itemx i
5462 @kindex i (Summary)
5463 @kindex S i (Summary)
5464 @findex gnus-summary-news-other-window
5465 Prepare a news (@code{gnus-summary-news-other-window}).  By default,
5466 post to the current group.  If given a prefix, disable that.  If the
5467 prefix is 1, prompt for a group to post to.
5468
5469 This function actually prepares a news even when using mail groups.
5470 This is useful for ``posting'' messages to mail groups without actually
5471 sending them over the network: they're just saved directly to the group
5472 in question.  The corresponding back end must have a request-post method
5473 for this to work though.
5474
5475 @item S D b
5476 @kindex S D b (Summary)
5477 @findex gnus-summary-resend-bounced-mail
5478 @cindex bouncing mail
5479 If you have sent a mail, but the mail was bounced back to you for some
5480 reason (wrong address, transient failure), you can use this command to
5481 resend that bounced mail (@code{gnus-summary-resend-bounced-mail}).  You
5482 will be popped into a mail buffer where you can edit the headers before
5483 sending the mail off again.  If you give a prefix to this command, and
5484 the bounced mail is a reply to some other mail, Gnus will try to fetch
5485 that mail and display it for easy perusal of its headers.  This might
5486 very well fail, though.
5487
5488 @item S D r
5489 @kindex S D r (Summary)
5490 @findex gnus-summary-resend-message
5491 Not to be confused with the previous command,
5492 @code{gnus-summary-resend-message} will prompt you for an address to
5493 send the current message off to, and then send it to that place.  The
5494 headers of the message won't be altered---but lots of headers that say
5495 @code{Resent-To}, @code{Resent-From} and so on will be added.  This
5496 means that you actually send a mail to someone that has a @code{To}
5497 header that (probably) points to yourself.  This will confuse people.
5498 So, natcherly you'll only do that if you're really eVIl.
5499
5500 This command is mainly used if you have several accounts and want to
5501 ship a mail to a different account of yours.  (If you're both
5502 @code{root} and @code{postmaster} and get a mail for @code{postmaster}
5503 to the @code{root} account, you may want to resend it to
5504 @code{postmaster}.  Ordnung muss sein!
5505
5506 This command understands the process/prefix convention
5507 (@pxref{Process/Prefix}).
5508
5509 @item S D e
5510 @kindex S D e (Summary)
5511 @findex gnus-summary-resend-message-edit
5512
5513 Like the previous command, but will allow you to edit the message as
5514 if it were a new message before resending.
5515
5516 @item S O m
5517 @kindex S O m (Summary)
5518 @findex gnus-uu-digest-mail-forward
5519 Digest the current series (@pxref{Decoding Articles}) and forward the
5520 result using mail (@code{gnus-uu-digest-mail-forward}).  This command
5521 uses the process/prefix convention (@pxref{Process/Prefix}).
5522
5523 @item S M-c
5524 @kindex S M-c (Summary)
5525 @findex gnus-summary-mail-crosspost-complaint
5526 @cindex crossposting
5527 @cindex excessive crossposting
5528 Send a complaint about excessive crossposting to the author of the
5529 current article (@code{gnus-summary-mail-crosspost-complaint}).
5530
5531 @findex gnus-crosspost-complaint
5532 This command is provided as a way to fight back against the current
5533 crossposting pandemic that's sweeping Usenet.  It will compose a reply
5534 using the @code{gnus-crosspost-complaint} variable as a preamble.  This
5535 command understands the process/prefix convention
5536 (@pxref{Process/Prefix}) and will prompt you before sending each mail.
5537
5538 @end table
5539
5540 Also @xref{Header Commands, ,Header Commands, message, The Message
5541 Manual}, for more information.
5542
5543
5544 @node Summary Post Commands
5545 @subsection Summary Post Commands
5546 @cindex post
5547 @cindex composing news
5548
5549 Commands for posting a news article:
5550
5551 @table @kbd
5552 @item S p
5553 @itemx a
5554 @kindex a (Summary)
5555 @kindex S p (Summary)
5556 @findex gnus-summary-post-news
5557 @c @icon{gnus-summary-post-news}
5558 Prepare for posting an article (@code{gnus-summary-post-news}).  By
5559 default, post to the current group.  If given a prefix, disable that.
5560 If the prefix is 1, prompt for another group instead.
5561
5562 @item S f
5563 @itemx f
5564 @kindex f (Summary)
5565 @kindex S f (Summary)
5566 @findex gnus-summary-followup
5567 @c @icon{gnus-summary-followup}
5568 Post a followup to the current article (@code{gnus-summary-followup}).
5569
5570 @item S F
5571 @itemx F
5572 @kindex S F (Summary)
5573 @kindex F (Summary)
5574 @c @icon{gnus-summary-followup-with-original}
5575 @findex gnus-summary-followup-with-original
5576 Post a followup to the current article and include the original message
5577 (@code{gnus-summary-followup-with-original}).  This command uses the
5578 process/prefix convention.
5579
5580 @item S n
5581 @kindex S n (Summary)
5582 @findex gnus-summary-followup-to-mail
5583 Post a followup to the current article via news, even if you got the
5584 message through mail (@code{gnus-summary-followup-to-mail}).
5585
5586 @item S N
5587 @kindex S N (Summary)
5588 @findex gnus-summary-followup-to-mail-with-original
5589 Post a followup to the current article via news, even if you got the
5590 message through mail and include the original message
5591 (@code{gnus-summary-followup-to-mail-with-original}).  This command uses
5592 the process/prefix convention.
5593
5594 @item S o p
5595 @kindex S o p (Summary)
5596 @findex gnus-summary-post-forward
5597 Forward the current article to a newsgroup
5598 (@code{gnus-summary-post-forward}).
5599  If no prefix is given, the message is forwarded according to the value
5600 of (@code{message-forward-as-mime}) and
5601 (@code{message-forward-show-mml}); if the prefix is 1, decode the
5602 message and forward directly inline; if the prefix is 2, forward message
5603 as an rfc822 @acronym{MIME} section; if the prefix is 3, decode message and
5604 forward as an rfc822 @acronym{MIME} section; if the prefix is 4, forward message
5605 directly inline; otherwise, the message is forwarded as no prefix given
5606 but use the flipped value of (@code{message-forward-as-mime}).  By
5607 default, the message is decoded and forwarded as an rfc822 @acronym{MIME} section.
5608
5609 @item S O p
5610 @kindex S O p (Summary)
5611 @findex gnus-uu-digest-post-forward
5612 @cindex digests
5613 @cindex making digests
5614 Digest the current series and forward the result to a newsgroup
5615 (@code{gnus-uu-digest-post-forward}).  This command uses the
5616 process/prefix convention.
5617
5618 @item S u
5619 @kindex S u (Summary)
5620 @findex gnus-uu-post-news
5621 @c @icon{gnus-uu-post-news}
5622 Uuencode a file, split it into parts, and post it as a series
5623 (@code{gnus-uu-post-news}).  (@pxref{Uuencoding and Posting}).
5624 @end table
5625
5626 Also @xref{Header Commands, ,Header Commands, message, The Message
5627 Manual}, for more information.
5628
5629
5630 @node Summary Message Commands
5631 @subsection Summary Message Commands
5632
5633 @table @kbd
5634 @item S y
5635 @kindex S y (Summary)
5636 @findex gnus-summary-yank-message
5637 Yank the current article into an already existing Message composition
5638 buffer (@code{gnus-summary-yank-message}).  This command prompts for
5639 what message buffer you want to yank into, and understands the
5640 process/prefix convention (@pxref{Process/Prefix}).
5641
5642 @end table
5643
5644
5645 @node Canceling and Superseding
5646 @subsection Canceling Articles
5647 @cindex canceling articles
5648 @cindex superseding articles
5649
5650 Have you ever written something, and then decided that you really,
5651 really, really wish you hadn't posted that?
5652
5653 Well, you can't cancel mail, but you can cancel posts.
5654
5655 @findex gnus-summary-cancel-article
5656 @kindex C (Summary)
5657 @c @icon{gnus-summary-cancel-article}
5658 Find the article you wish to cancel (you can only cancel your own
5659 articles, so don't try any funny stuff).  Then press @kbd{C} or @kbd{S
5660 c} (@code{gnus-summary-cancel-article}).  Your article will be
5661 canceled---machines all over the world will be deleting your article.
5662 This command uses the process/prefix convention (@pxref{Process/Prefix}).
5663
5664 Be aware, however, that not all sites honor cancels, so your article may
5665 live on here and there, while most sites will delete the article in
5666 question.
5667
5668 Gnus will use the ``current'' select method when canceling.  If you
5669 want to use the standard posting method, use the @samp{a} symbolic
5670 prefix (@pxref{Symbolic Prefixes}).
5671
5672 Gnus ensures that only you can cancel your own messages using a
5673 @code{Cancel-Lock} header (@pxref{Canceling News, Canceling News, ,
5674 message, Message Manual}).
5675
5676 If you discover that you have made some mistakes and want to do some
5677 corrections, you can post a @dfn{superseding} article that will replace
5678 your original article.
5679
5680 @findex gnus-summary-supersede-article
5681 @kindex S (Summary)
5682 Go to the original article and press @kbd{S s}
5683 (@code{gnus-summary-supersede-article}).  You will be put in a buffer
5684 where you can edit the article all you want before sending it off the
5685 usual way.
5686
5687 The same goes for superseding as for canceling, only more so: Some
5688 sites do not honor superseding.  On those sites, it will appear that you
5689 have posted almost the same article twice.
5690
5691 If you have just posted the article, and change your mind right away,
5692 there is a trick you can use to cancel/supersede the article without
5693 waiting for the article to appear on your site first.  You simply return
5694 to the post buffer (which is called @code{*sent ...*}).  There you will
5695 find the article you just posted, with all the headers intact.  Change
5696 the @code{Message-ID} header to a @code{Cancel} or @code{Supersedes}
5697 header by substituting one of those words for the word
5698 @code{Message-ID}.  Then just press @kbd{C-c C-c} to send the article as
5699 you would do normally.  The previous article will be
5700 canceled/superseded.
5701
5702 Just remember, kids: There is no 'c' in 'supersede'.
5703
5704 @node Delayed Articles
5705 @section Delayed Articles
5706 @cindex delayed sending
5707 @cindex send delayed
5708
5709 Sometimes, you might wish to delay the sending of a message.  For
5710 example, you might wish to arrange for a message to turn up just in time
5711 to remind your about the birthday of your Significant Other.  For this,
5712 there is the @code{gnus-delay} package.  Setup is simple:
5713
5714 @lisp
5715 (gnus-delay-initialize)
5716 @end lisp
5717
5718 @findex gnus-delay-article
5719 Normally, to send a message you use the @kbd{C-c C-c} command from
5720 Message mode.  To delay a message, use @kbd{C-c C-j}
5721 (@code{gnus-delay-article}) instead.  This will ask you for how long the
5722 message should be delayed.  Possible answers are:
5723
5724 @itemize @bullet
5725 @item
5726 A time span.  Consists of an integer and a letter.  For example,
5727 @code{42d} means to delay for 42 days.  Available letters are @code{m}
5728 (minutes), @code{h} (hours), @code{d} (days), @code{w} (weeks), @code{M}
5729 (months) and @code{Y} (years).
5730
5731 @item
5732 A specific date.  Looks like @code{YYYY-MM-DD}.  The message will be
5733 delayed until that day, at a specific time (eight o'clock by default).
5734 See also @code{gnus-delay-default-hour}.
5735
5736 @item
5737 A specific time of day.  Given in @code{hh:mm} format, 24h, no am/pm
5738 stuff.  The deadline will be at that time today, except if that time has
5739 already passed, then it's at the given time tomorrow.  So if it's ten
5740 o'clock in the morning and you specify @code{11:15}, then the deadline
5741 is one hour and fifteen minutes hence.  But if you specify @code{9:20},
5742 that means a time tomorrow.
5743 @end itemize
5744
5745 The action of the @code{gnus-delay-article} command is influenced by a
5746 couple of variables:
5747
5748 @table @code
5749 @item gnus-delay-default-hour
5750 @vindex gnus-delay-default-hour
5751 When you specify a specific date, the message will be due on that hour
5752 on the given date.  Possible values are integers 0 through 23.
5753
5754 @item gnus-delay-default-delay
5755 @vindex gnus-delay-default-delay
5756 This is a string and gives the default delay.  It can be of any of the
5757 formats described above.
5758
5759 @item gnus-delay-group
5760 @vindex gnus-delay-group
5761 Delayed articles will be kept in this group on the drafts server until
5762 they are due.  You probably don't need to change this.  The default
5763 value is @code{"delayed"}.
5764
5765 @item gnus-delay-header
5766 @vindex gnus-delay-header
5767 The deadline for each article will be stored in a header.  This variable
5768 is a string and gives the header name.  You probably don't need to
5769 change this.  The default value is @code{"X-Gnus-Delayed"}.
5770 @end table
5771
5772 The way delaying works is like this: when you use the
5773 @code{gnus-delay-article} command, you give a certain delay.  Gnus
5774 calculates the deadline of the message and stores it in the
5775 @code{X-Gnus-Delayed} header and puts the message in the
5776 @code{nndraft:delayed} group.
5777
5778 @findex gnus-delay-send-queue
5779 And whenever you get new news, Gnus looks through the group for articles
5780 which are due and sends them.  It uses the @code{gnus-delay-send-queue}
5781 function for this.  By default, this function is added to the hook
5782 @code{gnus-get-new-news-hook}.  But of course, you can change this.
5783 Maybe you want to use the demon to send drafts?  Just tell the demon to
5784 execute the @code{gnus-delay-send-queue} function.
5785
5786 @table @code
5787 @item gnus-delay-initialize
5788 @findex gnus-delay-initialize
5789 By default, this function installs @code{gnus-delay-send-queue} in
5790 @code{gnus-get-new-news-hook}.  But it accepts the optional second
5791 argument @code{no-check}.  If it is non-@code{nil},
5792 @code{gnus-get-new-news-hook} is not changed.  The optional first
5793 argument is ignored.
5794
5795 For example, @code{(gnus-delay-initialize nil t)} means to do nothing.
5796 Presumably, you want to use the demon for sending due delayed articles.
5797 Just don't forget to set that up :-)
5798 @end table
5799
5800
5801 @node Marking Articles
5802 @section Marking Articles
5803 @cindex article marking
5804 @cindex article ticking
5805 @cindex marks
5806
5807 There are several marks you can set on an article.
5808
5809 You have marks that decide the @dfn{readedness} (whoo, neato-keano
5810 neologism ohoy!) of the article.  Alphabetic marks generally mean
5811 @dfn{read}, while non-alphabetic characters generally mean @dfn{unread}.
5812
5813 In addition, you also have marks that do not affect readedness.
5814
5815 @ifinfo
5816 There's a plethora of commands for manipulating these marks.
5817 @end ifinfo
5818
5819 @menu
5820 * Unread Articles::             Marks for unread articles.
5821 * Read Articles::               Marks for read articles.
5822 * Other Marks::                 Marks that do not affect readedness.
5823 * Setting Marks::               How to set and remove marks.
5824 * Generic Marking Commands::    How to customize the marking.
5825 * Setting Process Marks::       How to mark articles for later processing.
5826 @end menu
5827
5828
5829 @node Unread Articles
5830 @subsection Unread Articles
5831
5832 The following marks mark articles as (kinda) unread, in one form or
5833 other.
5834
5835 @table @samp
5836 @item !
5837 @vindex gnus-ticked-mark
5838 Marked as ticked (@code{gnus-ticked-mark}).
5839
5840 @dfn{Ticked articles} are articles that will remain visible always.  If
5841 you see an article that you find interesting, or you want to put off
5842 reading it, or replying to it, until sometime later, you'd typically
5843 tick it.  However, articles can be expired (from news servers by the
5844 news server software, Gnus itself never expires ticked messages), so if
5845 you want to keep an article forever, you'll have to make it persistent
5846 (@pxref{Persistent Articles}).
5847
5848 @item ?
5849 @vindex gnus-dormant-mark
5850 Marked as dormant (@code{gnus-dormant-mark}).
5851
5852 @dfn{Dormant articles} will only appear in the summary buffer if there
5853 are followups to it.  If you want to see them even if they don't have
5854 followups, you can use the @kbd{/ D} command (@pxref{Limiting}).
5855 Otherwise (except for the visibility issue), they are just like ticked
5856 messages.
5857
5858 @item SPACE
5859 @vindex gnus-unread-mark
5860 Marked as unread (@code{gnus-unread-mark}).
5861
5862 @dfn{Unread articles} are articles that haven't been read at all yet.
5863 @end table
5864
5865
5866 @node Read Articles
5867 @subsection Read Articles
5868 @cindex expirable mark
5869
5870 All the following marks mark articles as read.
5871
5872 @table @samp
5873
5874 @item r
5875 @vindex gnus-del-mark
5876 These are articles that the user has marked as read with the @kbd{d}
5877 command manually, more or less (@code{gnus-del-mark}).
5878
5879 @item R
5880 @vindex gnus-read-mark
5881 Articles that have actually been read (@code{gnus-read-mark}).
5882
5883 @item O
5884 @vindex gnus-ancient-mark
5885 Articles that were marked as read in previous sessions and are now
5886 @dfn{old} (@code{gnus-ancient-mark}).
5887
5888 @item K
5889 @vindex gnus-killed-mark
5890 Marked as killed (@code{gnus-killed-mark}).
5891
5892 @item X
5893 @vindex gnus-kill-file-mark
5894 Marked as killed by kill files (@code{gnus-kill-file-mark}).
5895
5896 @item Y
5897 @vindex gnus-low-score-mark
5898 Marked as read by having too low a score (@code{gnus-low-score-mark}).
5899
5900 @item C
5901 @vindex gnus-catchup-mark
5902 Marked as read by a catchup (@code{gnus-catchup-mark}).
5903
5904 @item G
5905 @vindex gnus-canceled-mark
5906 Canceled article (@code{gnus-canceled-mark})
5907
5908 @item F
5909 @vindex gnus-souped-mark
5910 @sc{soup}ed article (@code{gnus-souped-mark}).  @xref{SOUP}.
5911
5912 @item Q
5913 @vindex gnus-sparse-mark
5914 Sparsely reffed article (@code{gnus-sparse-mark}).  @xref{Customizing
5915 Threading}.
5916
5917 @item M
5918 @vindex gnus-duplicate-mark
5919 Article marked as read by duplicate suppression
5920 (@code{gnus-duplicate-mark}).  @xref{Duplicate Suppression}.
5921
5922 @end table
5923
5924 All these marks just mean that the article is marked as read, really.
5925 They are interpreted differently when doing adaptive scoring, though.
5926
5927 One more special mark, though:
5928
5929 @table @samp
5930 @item E
5931 @vindex gnus-expirable-mark
5932 Marked as expirable (@code{gnus-expirable-mark}).
5933
5934 Marking articles as @dfn{expirable} (or have them marked as such
5935 automatically) doesn't make much sense in normal groups---a user doesn't
5936 control expiring of news articles, but in mail groups, for instance,
5937 articles marked as @dfn{expirable} can be deleted by Gnus at
5938 any time.
5939 @end table
5940
5941
5942 @node Other Marks
5943 @subsection Other Marks
5944 @cindex process mark
5945 @cindex bookmarks
5946
5947 There are some marks that have nothing to do with whether the article is
5948 read or not.
5949
5950 @itemize @bullet
5951
5952 @item
5953 You can set a bookmark in the current article.  Say you are reading a
5954 long thesis on cats' urinary tracts, and have to go home for dinner
5955 before you've finished reading the thesis.  You can then set a bookmark
5956 in the article, and Gnus will jump to this bookmark the next time it
5957 encounters the article.  @xref{Setting Marks}.
5958
5959 @item
5960 @vindex gnus-replied-mark
5961 All articles that you have replied to or made a followup to (i.e., have
5962 answered) will be marked with an @samp{A} in the second column
5963 (@code{gnus-replied-mark}).
5964
5965 @item
5966 @vindex gnus-forwarded-mark
5967 All articles that you have forwarded will be marked with an @samp{F} in
5968 the second column (@code{gnus-forwarded-mark}).
5969
5970 @item
5971 @vindex gnus-cached-mark
5972 Articles stored in the article cache will be marked with an @samp{*} in
5973 the second column (@code{gnus-cached-mark}).  @xref{Article Caching}.
5974
5975 @item
5976 @vindex gnus-saved-mark
5977 Articles ``saved'' (in some manner or other; not necessarily
5978 religiously) are marked with an @samp{S} in the second column
5979 (@code{gnus-saved-mark}).
5980
5981 @item
5982 @vindex gnus-recent-mark
5983 Articles that according to the server haven't been shown to the user
5984 before are marked with a @samp{N} in the second column
5985 (@code{gnus-recent-mark}).  Note that not all servers support this
5986 mark, in which case it simply never appears.  Compare with
5987 @code{gnus-unseen-mark}.
5988
5989 @item
5990 @vindex gnus-unseen-mark
5991 Articles that haven't been seen before in Gnus by the user are marked
5992 with a @samp{.} in the second column (@code{gnus-unseen-mark}).
5993 Compare with @code{gnus-recent-mark}.
5994
5995 @item
5996 @vindex gnus-downloaded-mark
5997 When using the Gnus agent (@pxref{Agent Basics}), articles may be
5998 downloaded for unplugged (offline) viewing.  If you are using the
5999 @samp{%O} spec, these articles get the @samp{+} mark in that spec.
6000 (The variable @code{gnus-downloaded-mark} controls which character to
6001 use.)
6002
6003 @item
6004 @vindex gnus-undownloaded-mark
6005 When using the Gnus agent (@pxref{Agent Basics}), some articles might
6006 not have been downloaded.  Such articles cannot be viewed while you
6007 are unplugged (offline).  If you are using the @samp{%O} spec, these
6008 articles get the @samp{-} mark in that spec.  (The variable
6009 @code{gnus-undownloaded-mark} controls which character to use.)
6010
6011 @item
6012 @vindex gnus-downloadable-mark
6013 The Gnus agent (@pxref{Agent Basics}) downloads some articles
6014 automatically, but it is also possible to explicitly mark articles for
6015 download, even if they would not be downloaded automatically.  Such
6016 explicitly-marked articles get the @samp{%} mark in the first column.
6017 (The variable @code{gnus-downloadable-mark} controls which character to
6018 use.)
6019
6020 @item
6021 @vindex gnus-not-empty-thread-mark
6022 @vindex gnus-empty-thread-mark
6023 If the @samp{%e} spec is used, the presence of threads or not will be
6024 marked with @code{gnus-not-empty-thread-mark} and
6025 @code{gnus-empty-thread-mark} in the third column, respectively.
6026
6027 @item
6028 @vindex gnus-process-mark
6029 Finally we have the @dfn{process mark} (@code{gnus-process-mark}).  A
6030 variety of commands react to the presence of the process mark.  For
6031 instance, @kbd{X u} (@code{gnus-uu-decode-uu}) will uudecode and view
6032 all articles that have been marked with the process mark.  Articles
6033 marked with the process mark have a @samp{#} in the second column.
6034
6035 @end itemize
6036
6037 You might have noticed that most of these ``non-readedness'' marks
6038 appear in the second column by default.  So if you have a cached, saved,
6039 replied article that you have process-marked, what will that look like?
6040
6041 Nothing much.  The precedence rules go as follows: process -> cache ->
6042 replied -> saved.  So if the article is in the cache and is replied,
6043 you'll only see the cache mark and not the replied mark.
6044
6045
6046 @node Setting Marks
6047 @subsection Setting Marks
6048 @cindex setting marks
6049
6050 All the marking commands understand the numeric prefix.
6051
6052 @table @kbd
6053 @item M c
6054 @itemx M-u
6055 @kindex M c (Summary)
6056 @kindex M-u (Summary)
6057 @findex gnus-summary-clear-mark-forward
6058 @cindex mark as unread
6059 Clear all readedness-marks from the current article
6060 (@code{gnus-summary-clear-mark-forward}).  In other words, mark the
6061 article as unread.
6062
6063 @item M t
6064 @itemx !
6065 @kindex ! (Summary)
6066 @kindex M t (Summary)
6067 @findex gnus-summary-tick-article-forward
6068 Tick the current article (@code{gnus-summary-tick-article-forward}).
6069 @xref{Article Caching}.
6070
6071 @item M ?
6072 @itemx ?
6073 @kindex ? (Summary)
6074 @kindex M ? (Summary)
6075 @findex gnus-summary-mark-as-dormant
6076 Mark the current article as dormant
6077 (@code{gnus-summary-mark-as-dormant}).  @xref{Article Caching}.
6078
6079 @item M d
6080 @itemx d
6081 @kindex M d (Summary)
6082 @kindex d (Summary)
6083 @findex gnus-summary-mark-as-read-forward
6084 Mark the current article as read
6085 (@code{gnus-summary-mark-as-read-forward}).
6086
6087 @item D
6088 @kindex D (Summary)
6089 @findex gnus-summary-mark-as-read-backward
6090 Mark the current article as read and move point to the previous line
6091 (@code{gnus-summary-mark-as-read-backward}).
6092
6093 @item M k
6094 @itemx k
6095 @kindex k (Summary)
6096 @kindex M k (Summary)
6097 @findex gnus-summary-kill-same-subject-and-select
6098 Mark all articles that have the same subject as the current one as read,
6099 and then select the next unread article
6100 (@code{gnus-summary-kill-same-subject-and-select}).
6101
6102 @item M K
6103 @itemx C-k
6104 @kindex M K (Summary)
6105 @kindex C-k (Summary)
6106 @findex gnus-summary-kill-same-subject
6107 Mark all articles that have the same subject as the current one as read
6108 (@code{gnus-summary-kill-same-subject}).
6109
6110 @item M C
6111 @kindex M C (Summary)
6112 @findex gnus-summary-catchup
6113 @c @icon{gnus-summary-catchup}
6114 Mark all unread articles as read (@code{gnus-summary-catchup}).
6115
6116 @item M C-c
6117 @kindex M C-c (Summary)
6118 @findex gnus-summary-catchup-all
6119 Mark all articles in the group as read---even the ticked and dormant
6120 articles (@code{gnus-summary-catchup-all}).
6121
6122 @item M H
6123 @kindex M H (Summary)
6124 @findex gnus-summary-catchup-to-here
6125 Catchup the current group to point (before the point)
6126 (@code{gnus-summary-catchup-to-here}).
6127
6128 @item M h
6129 @kindex M h (Summary)
6130 @findex gnus-summary-catchup-from-here
6131 Catchup the current group from point (after the point)
6132 (@code{gnus-summary-catchup-from-here}).
6133
6134 @item C-w
6135 @kindex C-w (Summary)
6136 @findex gnus-summary-mark-region-as-read
6137 Mark all articles between point and mark as read
6138 (@code{gnus-summary-mark-region-as-read}).
6139
6140 @item M V k
6141 @kindex M V k (Summary)
6142 @findex gnus-summary-kill-below
6143 Kill all articles with scores below the default score (or below the
6144 numeric prefix) (@code{gnus-summary-kill-below}).
6145
6146 @item M e
6147 @itemx E
6148 @kindex M e (Summary)
6149 @kindex E (Summary)
6150 @findex gnus-summary-mark-as-expirable
6151 Mark the current article as expirable
6152 (@code{gnus-summary-mark-as-expirable}).
6153
6154 @item M b
6155 @kindex M b (Summary)
6156 @findex gnus-summary-set-bookmark
6157 Set a bookmark in the current article
6158 (@code{gnus-summary-set-bookmark}).
6159
6160 @item M B
6161 @kindex M B (Summary)
6162 @findex gnus-summary-remove-bookmark
6163 Remove the bookmark from the current article
6164 (@code{gnus-summary-remove-bookmark}).
6165
6166 @item M V c
6167 @kindex M V c (Summary)
6168 @findex gnus-summary-clear-above
6169 Clear all marks from articles with scores over the default score (or
6170 over the numeric prefix) (@code{gnus-summary-clear-above}).
6171
6172 @item M V u
6173 @kindex M V u (Summary)
6174 @findex gnus-summary-tick-above
6175 Tick all articles with scores over the default score (or over the
6176 numeric prefix) (@code{gnus-summary-tick-above}).
6177
6178 @item M V m
6179 @kindex M V m (Summary)
6180 @findex gnus-summary-mark-above
6181 Prompt for a mark, and mark all articles with scores over the default
6182 score (or over the numeric prefix) with this mark
6183 (@code{gnus-summary-clear-above}).
6184 @end table
6185
6186 @vindex gnus-summary-goto-unread
6187 The @code{gnus-summary-goto-unread} variable controls what action should
6188 be taken after setting a mark.  If non-@code{nil}, point will move to
6189 the next/previous unread article.  If @code{nil}, point will just move
6190 one line up or down.  As a special case, if this variable is
6191 @code{never}, all the marking commands as well as other commands (like
6192 @kbd{SPACE}) will move to the next article, whether it is unread or not.
6193 The default is @code{t}.
6194
6195
6196 @node Generic Marking Commands
6197 @subsection Generic Marking Commands
6198
6199 Some people would like the command that ticks an article (@kbd{!}) go to
6200 the next article.  Others would like it to go to the next unread
6201 article.  Yet others would like it to stay on the current article.  And
6202 even though I haven't heard of anybody wanting it to go to the
6203 previous (unread) article, I'm sure there are people that want that as
6204 well.
6205
6206 Multiply these five behaviors with five different marking commands, and
6207 you get a potentially complex set of variable to control what each
6208 command should do.
6209
6210 To sidestep that mess, Gnus provides commands that do all these
6211 different things.  They can be found on the @kbd{M M} map in the summary
6212 buffer.  Type @kbd{M M C-h} to see them all---there are too many of them
6213 to list in this manual.
6214
6215 While you can use these commands directly, most users would prefer
6216 altering the summary mode keymap.  For instance, if you would like the
6217 @kbd{!} command to go to the next article instead of the next unread
6218 article, you could say something like:
6219
6220 @lisp
6221 @group
6222 (add-hook 'gnus-summary-mode-hook 'my-alter-summary-map)
6223 (defun my-alter-summary-map ()
6224   (local-set-key "!" 'gnus-summary-put-mark-as-ticked-next))
6225 @end group
6226 @end lisp
6227
6228 @noindent
6229 or
6230
6231 @lisp
6232 (defun my-alter-summary-map ()
6233   (local-set-key "!" "MM!n"))
6234 @end lisp
6235
6236
6237 @node Setting Process Marks
6238 @subsection Setting Process Marks
6239 @cindex setting process marks
6240
6241 Process marks are displayed as @code{#} in the summary buffer, and are
6242 used for marking articles in such a way that other commands will
6243 process these articles.  For instance, if you process mark four
6244 articles and then use the @kbd{*} command, Gnus will enter these four
6245 commands into the cache.  For more information,
6246 @pxref{Process/Prefix}.
6247
6248 @table @kbd
6249
6250 @item M P p
6251 @itemx #
6252 @kindex # (Summary)
6253 @kindex M P p (Summary)
6254 @findex gnus-summary-mark-as-processable
6255 Mark the current article with the process mark
6256 (@code{gnus-summary-mark-as-processable}).
6257 @findex gnus-summary-unmark-as-processable
6258
6259 @item M P u
6260 @itemx M-#
6261 @kindex M P u (Summary)
6262 @kindex M-# (Summary)
6263 Remove the process mark, if any, from the current article
6264 (@code{gnus-summary-unmark-as-processable}).
6265
6266 @item M P U
6267 @kindex M P U (Summary)
6268 @findex gnus-summary-unmark-all-processable
6269 Remove the process mark from all articles
6270 (@code{gnus-summary-unmark-all-processable}).
6271
6272 @item M P i
6273 @kindex M P i (Summary)
6274 @findex gnus-uu-invert-processable
6275 Invert the list of process marked articles
6276 (@code{gnus-uu-invert-processable}).
6277
6278 @item M P R
6279 @kindex M P R (Summary)
6280 @findex gnus-uu-mark-by-regexp
6281 Mark articles that have a @code{Subject} header that matches a regular
6282 expression (@code{gnus-uu-mark-by-regexp}).
6283
6284 @item M P G
6285 @kindex M P G (Summary)
6286 @findex gnus-uu-unmark-by-regexp
6287 Unmark articles that have a @code{Subject} header that matches a regular
6288 expression (@code{gnus-uu-unmark-by-regexp}).
6289
6290 @item M P r
6291 @kindex M P r (Summary)
6292 @findex gnus-uu-mark-region
6293 Mark articles in region (@code{gnus-uu-mark-region}).
6294
6295 @item M P g
6296 @kindex M P g (Summary)
6297 @findex gnus-uu-unmark-region
6298 Unmark articles in region (@code{gnus-uu-unmark-region}).
6299
6300 @item M P t
6301 @kindex M P t (Summary)
6302 @findex gnus-uu-mark-thread
6303 Mark all articles in the current (sub)thread
6304 (@code{gnus-uu-mark-thread}).
6305
6306 @item M P T
6307 @kindex M P T (Summary)
6308 @findex gnus-uu-unmark-thread
6309 Unmark all articles in the current (sub)thread
6310 (@code{gnus-uu-unmark-thread}).
6311
6312 @item M P v
6313 @kindex M P v (Summary)
6314 @findex gnus-uu-mark-over
6315 Mark all articles that have a score above the prefix argument
6316 (@code{gnus-uu-mark-over}).
6317
6318 @item M P s
6319 @kindex M P s (Summary)
6320 @findex gnus-uu-mark-series
6321 Mark all articles in the current series (@code{gnus-uu-mark-series}).
6322
6323 @item M P S
6324 @kindex M P S (Summary)
6325 @findex gnus-uu-mark-sparse
6326 Mark all series that have already had some articles marked
6327 (@code{gnus-uu-mark-sparse}).
6328
6329 @item M P a
6330 @kindex M P a (Summary)
6331 @findex gnus-uu-mark-all
6332 Mark all articles in series order (@code{gnus-uu-mark-all}).
6333
6334 @item M P b
6335 @kindex M P b (Summary)
6336 @findex gnus-uu-mark-buffer
6337 Mark all articles in the buffer in the order they appear
6338 (@code{gnus-uu-mark-buffer}).
6339
6340 @item M P k
6341 @kindex M P k (Summary)
6342 @findex gnus-summary-kill-process-mark
6343 Push the current process mark set onto the stack and unmark all articles
6344 (@code{gnus-summary-kill-process-mark}).
6345
6346 @item M P y
6347 @kindex M P y (Summary)
6348 @findex gnus-summary-yank-process-mark
6349 Pop the previous process mark set from the stack and restore it
6350 (@code{gnus-summary-yank-process-mark}).
6351
6352 @item M P w
6353 @kindex M P w (Summary)
6354 @findex gnus-summary-save-process-mark
6355 Push the current process mark set onto the stack
6356 (@code{gnus-summary-save-process-mark}).
6357
6358 @end table
6359
6360 Also see the @kbd{&} command in @ref{Searching for Articles}, for how to
6361 set process marks based on article body contents.
6362
6363
6364 @node Limiting
6365 @section Limiting
6366 @cindex limiting
6367
6368 It can be convenient to limit the summary buffer to just show some
6369 subset of the articles currently in the group.  The effect most limit
6370 commands have is to remove a few (or many) articles from the summary
6371 buffer.
6372
6373 All limiting commands work on subsets of the articles already fetched
6374 from the servers.  None of these commands query the server for
6375 additional articles.
6376
6377 @table @kbd
6378
6379 @item / /
6380 @itemx / s
6381 @kindex / / (Summary)
6382 @findex gnus-summary-limit-to-subject
6383 Limit the summary buffer to articles that match some subject
6384 (@code{gnus-summary-limit-to-subject}).  If given a prefix, exclude
6385 matching articles.
6386
6387 @item / a
6388 @kindex / a (Summary)
6389 @findex gnus-summary-limit-to-author
6390 Limit the summary buffer to articles that match some author
6391 (@code{gnus-summary-limit-to-author}).  If given a prefix, exclude
6392 matching articles.
6393
6394 @item / R
6395 @kindex / R (Summary)
6396 @findex gnus-summary-limit-to-recipient
6397 Limit the summary buffer to articles that match some recipient
6398 (@code{gnus-summary-limit-to-recipient}).  If given a prefix, exclude
6399 matching articles.
6400
6401 @item / x
6402 @kindex / x (Summary)
6403 @findex gnus-summary-limit-to-extra
6404 Limit the summary buffer to articles that match one of the ``extra''
6405 headers (@pxref{To From Newsgroups})
6406 (@code{gnus-summary-limit-to-extra}).  If given a prefix, exclude
6407 matching articles.
6408
6409 @item / u
6410 @itemx x
6411 @kindex / u (Summary)
6412 @kindex x (Summary)
6413 @findex gnus-summary-limit-to-unread
6414 Limit the summary buffer to articles not marked as read
6415 (@code{gnus-summary-limit-to-unread}).  If given a prefix, limit the
6416 buffer to articles strictly unread.  This means that ticked and
6417 dormant articles will also be excluded.
6418
6419 @item / m
6420 @kindex / m (Summary)
6421 @findex gnus-summary-limit-to-marks
6422 Ask for a mark and then limit to all articles that have been marked
6423 with that mark (@code{gnus-summary-limit-to-marks}).
6424
6425 @item / t
6426 @kindex / t (Summary)
6427 @findex gnus-summary-limit-to-age
6428 Ask for a number and then limit the summary buffer to articles older than (or equal to) that number of days
6429 (@code{gnus-summary-limit-to-age}).  If given a prefix, limit to
6430 articles younger than that number of days.
6431
6432 @item / n
6433 @kindex / n (Summary)
6434 @findex gnus-summary-limit-to-articles
6435 Limit the summary buffer to the current article
6436 (@code{gnus-summary-limit-to-articles}).  Uses the process/prefix
6437 convention (@pxref{Process/Prefix}).
6438
6439 @item / w
6440 @kindex / w (Summary)
6441 @findex gnus-summary-pop-limit
6442 Pop the previous limit off the stack and restore it
6443 (@code{gnus-summary-pop-limit}).  If given a prefix, pop all limits off
6444 the stack.
6445
6446 @item / .
6447 @kindex / . (Summary)
6448 @findex gnus-summary-limit-to-unseen
6449 Limit the summary buffer to the unseen articles
6450 (@code{gnus-summary-limit-to-unseen}).
6451
6452 @item / v
6453 @kindex / v (Summary)
6454 @findex gnus-summary-limit-to-score
6455 Limit the summary buffer to articles that have a score at or above some
6456 score (@code{gnus-summary-limit-to-score}).
6457
6458 @item / p
6459 @kindex / p (Summary)
6460 @findex gnus-summary-limit-to-display-predicate
6461 Limit the summary buffer to articles that satisfy the @code{display}
6462 group parameter predicate
6463 (@code{gnus-summary-limit-to-display-predicate}).  @xref{Group
6464 Parameters}, for more on this predicate.
6465
6466 @item / r
6467 @kindex / r (Summary)
6468 @findex gnus-summary-limit-to-replied
6469 Limit the summary buffer to replied articles
6470 (@code{gnus-summary-limit-to-replied}).  If given a prefix, exclude
6471 replied articles.
6472
6473 @item / E
6474 @itemx M S
6475 @kindex M S (Summary)
6476 @kindex / E (Summary)
6477 @findex gnus-summary-limit-include-expunged
6478 Include all expunged articles in the limit
6479 (@code{gnus-summary-limit-include-expunged}).
6480
6481 @item / D
6482 @kindex / D (Summary)
6483 @findex gnus-summary-limit-include-dormant
6484 Include all dormant articles in the limit
6485 (@code{gnus-summary-limit-include-dormant}).
6486
6487 @item / *
6488 @kindex / * (Summary)
6489 @findex gnus-summary-limit-include-cached
6490 Include all cached articles in the limit
6491 (@code{gnus-summary-limit-include-cached}).
6492
6493 @item / d
6494 @kindex / d (Summary)
6495 @findex gnus-summary-limit-exclude-dormant
6496 Exclude all dormant articles from the limit
6497 (@code{gnus-summary-limit-exclude-dormant}).
6498
6499 @item / M
6500 @kindex / M (Summary)
6501 @findex gnus-summary-limit-exclude-marks
6502 Exclude all marked articles (@code{gnus-summary-limit-exclude-marks}).
6503
6504 @item / T
6505 @kindex / T (Summary)
6506 @findex gnus-summary-limit-include-thread
6507 Include all the articles in the current thread in the limit.
6508
6509 @item / c
6510 @kindex / c (Summary)
6511 @findex gnus-summary-limit-exclude-childless-dormant
6512 Exclude all dormant articles that have no children from the limit@*
6513 (@code{gnus-summary-limit-exclude-childless-dormant}).
6514
6515 @item / C
6516 @kindex / C (Summary)
6517 @findex gnus-summary-limit-mark-excluded-as-read
6518 Mark all excluded unread articles as read
6519 (@code{gnus-summary-limit-mark-excluded-as-read}).  If given a prefix,
6520 also mark excluded ticked and dormant articles as read.
6521
6522 @item / N
6523 @kindex / N (Summary)
6524 @findex gnus-summary-insert-new-articles
6525 Insert all new articles in the summary buffer.  It scans for new emails
6526 if @var{back-end}@code{-get-new-mail} is non-@code{nil}.
6527
6528 @item / o
6529 @kindex / o (Summary)
6530 @findex gnus-summary-insert-old-articles
6531 Insert all old articles in the summary buffer.  If given a numbered
6532 prefix, fetch this number of articles.
6533
6534 @item / b
6535 @kindex / b (Summary)
6536 @findex gnus-summary-limit-to-bodies
6537 Limit the summary buffer to articles that have bodies that match a
6538 certain regexp (@code{gnus-summary-limit-to-bodies}).  If given a
6539 prefix, reverse the limit.  This command is quite slow since it
6540 requires selecting each article to find the matches.
6541
6542 @end table
6543
6544
6545 @node Threading
6546 @section Threading
6547 @cindex threading
6548 @cindex article threading
6549
6550 Gnus threads articles by default.  @dfn{To thread} is to put responses
6551 to articles directly after the articles they respond to---in a
6552 hierarchical fashion.
6553
6554 Threading is done by looking at the @code{References} headers of the
6555 articles.  In a perfect world, this would be enough to build pretty
6556 trees, but unfortunately, the @code{References} header is often broken
6557 or simply missing.  Weird news propagation exacerbates the problem,
6558 so one has to employ other heuristics to get pleasing results.  A
6559 plethora of approaches exists, as detailed in horrible detail in
6560 @ref{Customizing Threading}.
6561
6562 First, a quick overview of the concepts:
6563
6564 @table @dfn
6565 @item root
6566 The top-most article in a thread; the first article in the thread.
6567
6568 @item thread
6569 A tree-like article structure.
6570
6571 @item sub-thread
6572 A small(er) section of this tree-like structure.
6573
6574 @item loose threads
6575 Threads often lose their roots due to article expiry, or due to the root
6576 already having been read in a previous session, and not displayed in the
6577 summary buffer.  We then typically have many sub-threads that really
6578 belong to one thread, but are without connecting roots.  These are
6579 called loose threads.
6580
6581 @item thread gathering
6582 An attempt to gather loose threads into bigger threads.
6583
6584 @item sparse threads
6585 A thread where the missing articles have been ``guessed'' at, and are
6586 displayed as empty lines in the summary buffer.
6587
6588 @end table
6589
6590
6591 @menu
6592 * Customizing Threading::       Variables you can change to affect the threading.
6593 * Thread Commands::             Thread based commands in the summary buffer.
6594 @end menu
6595
6596
6597 @node Customizing Threading
6598 @subsection Customizing Threading
6599 @cindex customizing threading
6600
6601 @menu
6602 * Loose Threads::               How Gnus gathers loose threads into bigger threads.
6603 * Filling In Threads::          Making the threads displayed look fuller.
6604 * More Threading::              Even more variables for fiddling with threads.
6605 * Low-Level Threading::         You thought it was over@dots{} but you were wrong!
6606 @end menu
6607
6608
6609 @node Loose Threads
6610 @subsubsection Loose Threads
6611 @cindex <
6612 @cindex >
6613 @cindex loose threads
6614
6615 @table @code
6616 @item gnus-summary-make-false-root
6617 @vindex gnus-summary-make-false-root
6618 If non-@code{nil}, Gnus will gather all loose subtrees into one big tree
6619 and create a dummy root at the top.  (Wait a minute.  Root at the top?
6620 Yup.)  Loose subtrees occur when the real root has expired, or you've
6621 read or killed the root in a previous session.
6622
6623 When there is no real root of a thread, Gnus will have to fudge
6624 something.  This variable says what fudging method Gnus should use.
6625 There are four possible values:
6626
6627 @iftex
6628 @iflatex
6629 \gnusfigure{The Summary Buffer}{390}{
6630 \put(0,0){\epsfig{figure=ps/summary-adopt,width=7.5cm}}
6631 \put(445,0){\makebox(0,0)[br]{\epsfig{figure=ps/summary-empty,width=7.5cm}}}
6632 \put(0,400){\makebox(0,0)[tl]{\epsfig{figure=ps/summary-none,width=7.5cm}}}
6633 \put(445,400){\makebox(0,0)[tr]{\epsfig{figure=ps/summary-dummy,width=7.5cm}}}
6634 }
6635 @end iflatex
6636 @end iftex
6637
6638 @cindex adopting articles
6639
6640 @table @code
6641
6642 @item adopt
6643 Gnus will make the first of the orphaned articles the parent.  This
6644 parent will adopt all the other articles.  The adopted articles will be
6645 marked as such by pointy brackets (@samp{<>}) instead of the standard
6646 square brackets (@samp{[]}).  This is the default method.
6647
6648 @item dummy
6649 @vindex gnus-summary-dummy-line-format
6650 @vindex gnus-summary-make-false-root-always
6651 Gnus will create a dummy summary line that will pretend to be the
6652 parent.  This dummy line does not correspond to any real article, so
6653 selecting it will just select the first real article after the dummy
6654 article.  @code{gnus-summary-dummy-line-format} is used to specify the
6655 format of the dummy roots.  It accepts only one format spec:  @samp{S},
6656 which is the subject of the article.  @xref{Formatting Variables}.
6657 If you want all threads to have a dummy root, even the non-gathered
6658 ones, set @code{gnus-summary-make-false-root-always} to @code{t}.
6659
6660 @item empty
6661 Gnus won't actually make any article the parent, but simply leave the
6662 subject field of all orphans except the first empty.  (Actually, it will
6663 use @code{gnus-summary-same-subject} as the subject (@pxref{Summary
6664 Buffer Format}).)
6665
6666 @item none
6667 Don't make any article parent at all.  Just gather the threads and
6668 display them after one another.
6669
6670 @item nil
6671 Don't gather loose threads.
6672 @end table
6673
6674 @item gnus-summary-gather-subject-limit
6675 @vindex gnus-summary-gather-subject-limit
6676 Loose threads are gathered by comparing subjects of articles.  If this
6677 variable is @code{nil}, Gnus requires an exact match between the
6678 subjects of the loose threads before gathering them into one big
6679 super-thread.  This might be too strict a requirement, what with the
6680 presence of stupid newsreaders that chop off long subject lines.  If
6681 you think so, set this variable to, say, 20 to require that only the
6682 first 20 characters of the subjects have to match.  If you set this
6683 variable to a really low number, you'll find that Gnus will gather
6684 everything in sight into one thread, which isn't very helpful.
6685
6686 @cindex fuzzy article gathering
6687 If you set this variable to the special value @code{fuzzy}, Gnus will
6688 use a fuzzy string comparison algorithm on the subjects (@pxref{Fuzzy
6689 Matching}).
6690
6691 @item gnus-simplify-subject-fuzzy-regexp
6692 @vindex gnus-simplify-subject-fuzzy-regexp
6693 This can either be a regular expression or list of regular expressions
6694 that match strings that will be removed from subjects if fuzzy subject
6695 simplification is used.
6696
6697 @item gnus-simplify-ignored-prefixes
6698 @vindex gnus-simplify-ignored-prefixes
6699 If you set @code{gnus-summary-gather-subject-limit} to something as low
6700 as 10, you might consider setting this variable to something sensible:
6701
6702 @c Written by Michael Ernst <mernst@cs.rice.edu>
6703 @lisp
6704 (setq gnus-simplify-ignored-prefixes
6705       (concat
6706        "\\`\\[?\\("
6707        (mapconcat
6708         'identity
6709         '("looking"
6710           "wanted" "followup" "summary\\( of\\)?"
6711           "help" "query" "problem" "question"
6712           "answer" "reference" "announce"
6713           "How can I" "How to" "Comparison of"
6714           ;; ...
6715           )
6716         "\\|")
6717        "\\)\\s *\\("
6718        (mapconcat 'identity
6719                   '("for" "for reference" "with" "about")
6720                   "\\|")
6721        "\\)?\\]?:?[ \t]*"))
6722 @end lisp
6723
6724 All words that match this regexp will be removed before comparing two
6725 subjects.
6726
6727 @item gnus-simplify-subject-functions
6728 @vindex gnus-simplify-subject-functions
6729 If non-@code{nil}, this variable overrides
6730 @code{gnus-summary-gather-subject-limit}.  This variable should be a
6731 list of functions to apply to the @code{Subject} string iteratively to
6732 arrive at the simplified version of the string.
6733
6734 Useful functions to put in this list include:
6735
6736 @table @code
6737 @item gnus-simplify-subject-re
6738 @findex gnus-simplify-subject-re
6739 Strip the leading @samp{Re:}.
6740
6741 @item gnus-simplify-subject-fuzzy
6742 @findex gnus-simplify-subject-fuzzy
6743 Simplify fuzzily.
6744
6745 @item gnus-simplify-whitespace
6746 @findex gnus-simplify-whitespace
6747 Remove excessive whitespace.
6748
6749 @item gnus-simplify-all-whitespace
6750 @findex gnus-simplify-all-whitespace
6751 Remove all whitespace.
6752 @end table
6753
6754 You may also write your own functions, of course.
6755
6756
6757 @item gnus-summary-gather-exclude-subject
6758 @vindex gnus-summary-gather-exclude-subject
6759 Since loose thread gathering is done on subjects only, that might lead
6760 to many false hits, especially with certain common subjects like
6761 @samp{} and @samp{(none)}.  To make the situation slightly better,
6762 you can use the regexp @code{gnus-summary-gather-exclude-subject} to say
6763 what subjects should be excluded from the gathering process.@*
6764 The default is @samp{^ *$\\|^(none)$}.
6765
6766 @item gnus-summary-thread-gathering-function
6767 @vindex gnus-summary-thread-gathering-function
6768 Gnus gathers threads by looking at @code{Subject} headers.  This means
6769 that totally unrelated articles may end up in the same ``thread'', which
6770 is confusing.  An alternate approach is to look at all the
6771 @code{Message-ID}s in all the @code{References} headers to find matches.
6772 This will ensure that no gathered threads ever include unrelated
6773 articles, but it also means that people who have posted with broken
6774 newsreaders won't be gathered properly.  The choice is yours---plague or
6775 cholera:
6776
6777 @table @code
6778 @item gnus-gather-threads-by-subject
6779 @findex gnus-gather-threads-by-subject
6780 This function is the default gathering function and looks at
6781 @code{Subject}s exclusively.
6782
6783 @item gnus-gather-threads-by-references
6784 @findex gnus-gather-threads-by-references
6785 This function looks at @code{References} headers exclusively.
6786 @end table
6787
6788 If you want to test gathering by @code{References}, you could say
6789 something like:
6790
6791 @lisp
6792 (setq gnus-summary-thread-gathering-function
6793       'gnus-gather-threads-by-references)
6794 @end lisp
6795
6796 @end table
6797
6798
6799 @node Filling In Threads
6800 @subsubsection Filling In Threads
6801
6802 @table @code
6803 @item gnus-fetch-old-headers
6804 @vindex gnus-fetch-old-headers
6805 If non-@code{nil}, Gnus will attempt to build old threads by fetching
6806 more old headers---headers to articles marked as read.  If you would
6807 like to display as few summary lines as possible, but still connect as
6808 many loose threads as possible, you should set this variable to
6809 @code{some} or a number.  If you set it to a number, no more than that
6810 number of extra old headers will be fetched.  In either case, fetching
6811 old headers only works if the back end you are using carries overview
6812 files---this would normally be @code{nntp}, @code{nnspool},
6813 @code{nnml}, and @code{nnmaildir}.  Also remember that if the root of
6814 the thread has been expired by the server, there's not much Gnus can
6815 do about that.
6816
6817 This variable can also be set to @code{invisible}.  This won't have any
6818 visible effects, but is useful if you use the @kbd{A T} command a lot
6819 (@pxref{Finding the Parent}).
6820
6821 @item gnus-fetch-old-ephemeral-headers
6822 @vindex gnus-fetch-old-ephemeral-headers
6823 Same as @code{gnus-fetch-old-headers}, but only used for ephemeral
6824 newsgroups.
6825
6826 @item gnus-build-sparse-threads
6827 @vindex gnus-build-sparse-threads
6828 Fetching old headers can be slow.  A low-rent similar effect can be
6829 gotten by setting this variable to @code{some}.  Gnus will then look at
6830 the complete @code{References} headers of all articles and try to string
6831 together articles that belong in the same thread.  This will leave
6832 @dfn{gaps} in the threading display where Gnus guesses that an article
6833 is missing from the thread.  (These gaps appear like normal summary
6834 lines.  If you select a gap, Gnus will try to fetch the article in
6835 question.)  If this variable is @code{t}, Gnus will display all these
6836 ``gaps'' without regard for whether they are useful for completing the
6837 thread or not.  Finally, if this variable is @code{more}, Gnus won't cut
6838 off sparse leaf nodes that don't lead anywhere.  This variable is
6839 @code{nil} by default.
6840
6841 @item gnus-read-all-available-headers
6842 @vindex gnus-read-all-available-headers
6843 This is a rather obscure variable that few will find useful.  It's
6844 intended for those non-news newsgroups where the back end has to fetch
6845 quite a lot to present the summary buffer, and where it's impossible to
6846 go back to parents of articles.  This is mostly the case in the
6847 web-based groups, like the @code{nnultimate} groups.
6848
6849 If you don't use those, then it's safe to leave this as the default
6850 @code{nil}.  If you want to use this variable, it should be a regexp
6851 that matches the group name, or @code{t} for all groups.
6852
6853 @end table
6854
6855
6856 @node More Threading
6857 @subsubsection More Threading
6858
6859 @table @code
6860 @item gnus-show-threads
6861 @vindex gnus-show-threads
6862 If this variable is @code{nil}, no threading will be done, and all of
6863 the rest of the variables here will have no effect.  Turning threading
6864 off will speed group selection up a bit, but it is sure to make reading
6865 slower and more awkward.
6866
6867 @item gnus-thread-hide-subtree
6868 @vindex gnus-thread-hide-subtree
6869 If non-@code{nil}, all threads will be hidden when the summary buffer is
6870 generated.
6871
6872 This can also be a predicate specifier (@pxref{Predicate Specifiers}).
6873 Available predicates are @code{gnus-article-unread-p} and
6874 @code{gnus-article-unseen-p}.
6875
6876 Here's an example:
6877
6878 @lisp
6879 (setq gnus-thread-hide-subtree
6880       '(or gnus-article-unread-p
6881            gnus-article-unseen-p))
6882 @end lisp
6883
6884 (It's a pretty nonsensical example, since all unseen articles are also
6885 unread, but you get my drift.)
6886
6887
6888 @item gnus-thread-expunge-below
6889 @vindex gnus-thread-expunge-below
6890 All threads that have a total score (as defined by
6891 @code{gnus-thread-score-function}) less than this number will be
6892 expunged.  This variable is @code{nil} by default, which means that no
6893 threads are expunged.
6894
6895 @item gnus-thread-hide-killed
6896 @vindex gnus-thread-hide-killed
6897 if you kill a thread and this variable is non-@code{nil}, the subtree
6898 will be hidden.
6899
6900 @item gnus-thread-ignore-subject
6901 @vindex gnus-thread-ignore-subject
6902 Sometimes somebody changes the subject in the middle of a thread.  If
6903 this variable is non-@code{nil}, which is the default, the subject
6904 change is ignored.  If it is @code{nil}, a change in the subject will
6905 result in a new thread.
6906
6907 @item gnus-thread-indent-level
6908 @vindex gnus-thread-indent-level
6909 This is a number that says how much each sub-thread should be indented.
6910 The default is 4.
6911
6912 @item gnus-sort-gathered-threads-function
6913 @vindex gnus-sort-gathered-threads-function
6914 Sometimes, particularly with mailing lists, the order in which mails
6915 arrive locally is not necessarily the same as the order in which they
6916 arrived on the mailing list.  Consequently, when sorting sub-threads
6917 using the default @code{gnus-thread-sort-by-number}, responses can end
6918 up appearing before the article to which they are responding to.
6919 Setting this variable to an alternate value
6920 (e.g. @code{gnus-thread-sort-by-date}), in a group's parameters or in an
6921 appropriate hook (e.g. @code{gnus-summary-generate-hook}) can produce a
6922 more logical sub-thread ordering in such instances.
6923
6924 @end table
6925
6926
6927 @node Low-Level Threading
6928 @subsubsection Low-Level Threading
6929
6930 @table @code
6931
6932 @item gnus-parse-headers-hook
6933 @vindex gnus-parse-headers-hook
6934 Hook run before parsing any headers.
6935
6936 @item gnus-alter-header-function
6937 @vindex gnus-alter-header-function
6938 If non-@code{nil}, this function will be called to allow alteration of
6939 article header structures.  The function is called with one parameter,
6940 the article header vector, which it may alter in any way.  For instance,
6941 if you have a mail-to-news gateway which alters the @code{Message-ID}s
6942 in systematic ways (by adding prefixes and such), you can use this
6943 variable to un-scramble the @code{Message-ID}s so that they are more
6944 meaningful.  Here's one example:
6945
6946 @lisp
6947 (setq gnus-alter-header-function 'my-alter-message-id)
6948
6949 (defun my-alter-message-id (header)
6950   (let ((id (mail-header-id header)))
6951     (when (string-match
6952            "\\(<[^<>@@]*\\)\\.?cygnus\\..*@@\\([^<>@@]*>\\)" id)
6953       (mail-header-set-id
6954        (concat (match-string 1 id) "@@" (match-string 2 id))
6955        header))))
6956 @end lisp
6957
6958 @end table
6959
6960
6961 @node Thread Commands
6962 @subsection Thread Commands
6963 @cindex thread commands
6964
6965 @table @kbd
6966
6967 @item T k
6968 @itemx C-M-k
6969 @kindex T k (Summary)
6970 @kindex C-M-k (Summary)
6971 @findex gnus-summary-kill-thread
6972 Mark all articles in the current (sub-)thread as read
6973 (@code{gnus-summary-kill-thread}).  If the prefix argument is positive,
6974 remove all marks instead.  If the prefix argument is negative, tick
6975 articles instead.
6976
6977 @item T l
6978 @itemx C-M-l
6979 @kindex T l (Summary)
6980 @kindex C-M-l (Summary)
6981 @findex gnus-summary-lower-thread
6982 Lower the score of the current (sub-)thread
6983 (@code{gnus-summary-lower-thread}).
6984
6985 @item T i
6986 @kindex T i (Summary)
6987 @findex gnus-summary-raise-thread
6988 Increase the score of the current (sub-)thread
6989 (@code{gnus-summary-raise-thread}).
6990
6991 @item T #
6992 @kindex T # (Summary)
6993 @findex gnus-uu-mark-thread
6994 Set the process mark on the current (sub-)thread
6995 (@code{gnus-uu-mark-thread}).
6996
6997 @item T M-#
6998 @kindex T M-# (Summary)
6999 @findex gnus-uu-unmark-thread
7000 Remove the process mark from the current (sub-)thread
7001 (@code{gnus-uu-unmark-thread}).
7002
7003 @item T T
7004 @kindex T T (Summary)
7005 @findex gnus-summary-toggle-threads
7006 Toggle threading (@code{gnus-summary-toggle-threads}).
7007
7008 @item T s
7009 @kindex T s (Summary)
7010 @findex gnus-summary-show-thread
7011 Expose the (sub-)thread hidden under the current article, if any@*
7012 (@code{gnus-summary-show-thread}).
7013
7014 @item T h
7015 @kindex T h (Summary)
7016 @findex gnus-summary-hide-thread
7017 Hide the current (sub-)thread (@code{gnus-summary-hide-thread}).
7018
7019 @item T S
7020 @kindex T S (Summary)
7021 @findex gnus-summary-show-all-threads
7022 Expose all hidden threads (@code{gnus-summary-show-all-threads}).
7023
7024 @item T H
7025 @kindex T H (Summary)
7026 @findex gnus-summary-hide-all-threads
7027 Hide all threads (@code{gnus-summary-hide-all-threads}).
7028
7029 @item T t
7030 @kindex T t (Summary)
7031 @findex gnus-summary-rethread-current
7032 Re-thread the current article's thread
7033 (@code{gnus-summary-rethread-current}).  This works even when the
7034 summary buffer is otherwise unthreaded.
7035
7036 @item T ^
7037 @kindex T ^ (Summary)
7038 @findex gnus-summary-reparent-thread
7039 Make the current article the child of the marked (or previous) article
7040 (@code{gnus-summary-reparent-thread}).
7041
7042 @item T M-^
7043 @kindex T M-^ (Summary)
7044 @findex gnus-summary-reparent-children
7045 Make the current article the parent of the marked articles
7046 (@code{gnus-summary-reparent-children}).
7047
7048 @end table
7049
7050 The following commands are thread movement commands.  They all
7051 understand the numeric prefix.
7052
7053 @table @kbd
7054
7055 @item T n
7056 @kindex T n (Summary)
7057 @itemx C-M-f
7058 @kindex C-M-n (Summary)
7059 @itemx M-down
7060 @kindex M-down (Summary)
7061 @findex gnus-summary-next-thread
7062 Go to the next thread (@code{gnus-summary-next-thread}).
7063
7064 @item T p
7065 @kindex T p (Summary)
7066 @itemx C-M-b
7067 @kindex C-M-p (Summary)
7068 @itemx M-up
7069 @kindex M-up (Summary)
7070 @findex gnus-summary-prev-thread
7071 Go to the previous thread (@code{gnus-summary-prev-thread}).
7072
7073 @item T d
7074 @kindex T d (Summary)
7075 @findex gnus-summary-down-thread
7076 Descend the thread (@code{gnus-summary-down-thread}).
7077
7078 @item T u
7079 @kindex T u (Summary)
7080 @findex gnus-summary-up-thread
7081 Ascend the thread (@code{gnus-summary-up-thread}).
7082
7083 @item T o
7084 @kindex T o (Summary)
7085 @findex gnus-summary-top-thread
7086 Go to the top of the thread (@code{gnus-summary-top-thread}).
7087 @end table
7088
7089 @vindex gnus-thread-operation-ignore-subject
7090 If you ignore subject while threading, you'll naturally end up with
7091 threads that have several different subjects in them.  If you then issue
7092 a command like @kbd{T k} (@code{gnus-summary-kill-thread}) you might not
7093 wish to kill the entire thread, but just those parts of the thread that
7094 have the same subject as the current article.  If you like this idea,
7095 you can fiddle with @code{gnus-thread-operation-ignore-subject}.  If it
7096 is non-@code{nil} (which it is by default), subjects will be ignored
7097 when doing thread commands.  If this variable is @code{nil}, articles in
7098 the same thread with different subjects will not be included in the
7099 operation in question.  If this variable is @code{fuzzy}, only articles
7100 that have subjects fuzzily equal will be included (@pxref{Fuzzy
7101 Matching}).
7102
7103
7104 @node Sorting the Summary Buffer
7105 @section Sorting the Summary Buffer
7106
7107 @findex gnus-thread-sort-by-total-score
7108 @findex gnus-thread-sort-by-date
7109 @findex gnus-thread-sort-by-date-reverse
7110 @findex gnus-thread-sort-by-score
7111 @findex gnus-thread-sort-by-subject
7112 @findex gnus-thread-sort-by-author
7113 @findex gnus-thread-sort-by-recipient
7114 @findex gnus-thread-sort-by-number
7115 @findex gnus-thread-sort-by-random
7116 @vindex gnus-thread-sort-functions
7117 @findex gnus-thread-sort-by-most-recent-number
7118 @findex gnus-thread-sort-by-most-recent-date
7119 If you are using a threaded summary display, you can sort the threads by
7120 setting @code{gnus-thread-sort-functions}, which can be either a single
7121 function, a list of functions, or a list containing functions and
7122 @code{(not some-function)} elements.
7123
7124 By default, sorting is done on article numbers.  Ready-made sorting
7125 predicate functions include @code{gnus-thread-sort-by-number},
7126 @code{gnus-thread-sort-by-author}, @code{gnus-thread-sort-by-recipient},
7127 @code{gnus-thread-sort-by-subject},
7128 @code{gnus-thread-sort-by-date}, @code{gnus-thread-sort-by-date-reverse},
7129 @code{gnus-thread-sort-by-score},
7130 @code{gnus-thread-sort-by-most-recent-number},
7131 @code{gnus-thread-sort-by-most-recent-date},
7132 @code{gnus-thread-sort-by-random} and
7133 @code{gnus-thread-sort-by-total-score}.
7134
7135 Each function takes two threads and returns non-@code{nil} if the first
7136 thread should be sorted before the other.  Note that sorting really is
7137 normally done by looking only at the roots of each thread.
7138
7139 If you use more than one function, the primary sort key should be the
7140 last function in the list.  You should probably always include
7141 @code{gnus-thread-sort-by-number} in the list of sorting
7142 functions---preferably first.  This will ensure that threads that are
7143 equal with respect to the other sort criteria will be displayed in
7144 ascending article order.
7145
7146 If you would like to sort by reverse score, then by subject, and finally
7147 by number, you could do something like:
7148
7149 @lisp
7150 (setq gnus-thread-sort-functions
7151       '(gnus-thread-sort-by-number
7152         gnus-thread-sort-by-subject
7153         (not gnus-thread-sort-by-total-score)))
7154 @end lisp
7155
7156 The threads that have highest score will be displayed first in the
7157 summary buffer.  When threads have the same score, they will be sorted
7158 alphabetically.  The threads that have the same score and the same
7159 subject will be sorted by number, which is (normally) the sequence in
7160 which the articles arrived.
7161
7162 If you want to sort by score and then reverse arrival order, you could
7163 say something like:
7164
7165 @lisp
7166 (setq gnus-thread-sort-functions
7167       '((not gnus-thread-sort-by-number)
7168         gnus-thread-sort-by-score))
7169 @end lisp
7170
7171 @vindex gnus-thread-score-function
7172 The function in the @code{gnus-thread-score-function} variable (default
7173 @code{+}) is used for calculating the total score of a thread.  Useful
7174 functions might be @code{max}, @code{min}, or squared means, or whatever
7175 tickles your fancy.
7176
7177 @findex gnus-article-sort-functions
7178 @findex gnus-article-sort-by-date
7179 @findex gnus-article-sort-by-score
7180 @findex gnus-article-sort-by-subject
7181 @findex gnus-article-sort-by-author
7182 @findex gnus-article-sort-by-random
7183 @findex gnus-article-sort-by-number
7184 If you are using an unthreaded display for some strange reason or
7185 other, you have to fiddle with the @code{gnus-article-sort-functions}
7186 variable.  It is very similar to the
7187 @code{gnus-thread-sort-functions}, except that it uses slightly
7188 different functions for article comparison.  Available sorting
7189 predicate functions are @code{gnus-article-sort-by-number},
7190 @code{gnus-article-sort-by-author},
7191 @code{gnus-article-sort-by-subject}, @code{gnus-article-sort-by-date},
7192 @code{gnus-article-sort-by-random}, and
7193 @code{gnus-article-sort-by-score}.
7194
7195 If you want to sort an unthreaded summary display by subject, you could
7196 say something like:
7197
7198 @lisp
7199 (setq gnus-article-sort-functions
7200       '(gnus-article-sort-by-number
7201         gnus-article-sort-by-subject))
7202 @end lisp
7203
7204 You can define group specific sorting via @code{gnus-parameters},
7205 @xref{Group Parameters}.
7206
7207
7208 @node Asynchronous Fetching
7209 @section Asynchronous Article Fetching
7210 @cindex asynchronous article fetching
7211 @cindex article pre-fetch
7212 @cindex pre-fetch
7213
7214 If you read your news from an @acronym{NNTP} server that's far away, the
7215 network latencies may make reading articles a chore.  You have to wait
7216 for a while after pressing @kbd{n} to go to the next article before the
7217 article appears.  Why can't Gnus just go ahead and fetch the article
7218 while you are reading the previous one?  Why not, indeed.
7219
7220 First, some caveats.  There are some pitfalls to using asynchronous
7221 article fetching, especially the way Gnus does it.
7222
7223 Let's say you are reading article 1, which is short, and article 2 is
7224 quite long, and you are not interested in reading that.  Gnus does not
7225 know this, so it goes ahead and fetches article 2.  You decide to read
7226 article 3, but since Gnus is in the process of fetching article 2, the
7227 connection is blocked.
7228
7229 To avoid these situations, Gnus will open two (count 'em two)
7230 connections to the server.  Some people may think this isn't a very nice
7231 thing to do, but I don't see any real alternatives.  Setting up that
7232 extra connection takes some time, so Gnus startup will be slower.
7233
7234 Gnus will fetch more articles than you will read.  This will mean that
7235 the link between your machine and the @acronym{NNTP} server will become more
7236 loaded than if you didn't use article pre-fetch.  The server itself will
7237 also become more loaded---both with the extra article requests, and the
7238 extra connection.
7239
7240 Ok, so now you know that you shouldn't really use this thing@dots{} unless
7241 you really want to.
7242
7243 @vindex gnus-asynchronous
7244 Here's how:  Set @code{gnus-asynchronous} to @code{t}.  The rest should
7245 happen automatically.
7246
7247 @vindex gnus-use-article-prefetch
7248 You can control how many articles are to be pre-fetched by setting
7249 @code{gnus-use-article-prefetch}.  This is 30 by default, which means
7250 that when you read an article in the group, the back end will pre-fetch
7251 the next 30 articles.  If this variable is @code{t}, the back end will
7252 pre-fetch all the articles it can without bound.  If it is
7253 @code{nil}, no pre-fetching will be done.
7254
7255 @vindex gnus-async-prefetch-article-p
7256 @findex gnus-async-read-p
7257 There are probably some articles that you don't want to pre-fetch---read
7258 articles, for instance.  The @code{gnus-async-prefetch-article-p}
7259 variable controls whether an article is to be pre-fetched.  This
7260 function should return non-@code{nil} when the article in question is
7261 to be pre-fetched.  The default is @code{gnus-async-read-p}, which
7262 returns @code{nil} on read articles.  The function is called with an
7263 article data structure as the only parameter.
7264
7265 If, for instance, you wish to pre-fetch only unread articles shorter
7266 than 100 lines, you could say something like:
7267
7268 @lisp
7269 (defun my-async-short-unread-p (data)
7270   "Return non-nil for short, unread articles."
7271   (and (gnus-data-unread-p data)
7272        (< (mail-header-lines (gnus-data-header data))
7273           100)))
7274
7275 (setq gnus-async-prefetch-article-p 'my-async-short-unread-p)
7276 @end lisp
7277
7278 These functions will be called many, many times, so they should
7279 preferably be short and sweet to avoid slowing down Gnus too much.
7280 It's probably a good idea to byte-compile things like this.
7281
7282 @vindex gnus-prefetched-article-deletion-strategy
7283 Articles have to be removed from the asynch buffer sooner or later.  The
7284 @code{gnus-prefetched-article-deletion-strategy} says when to remove
7285 articles.  This is a list that may contain the following elements:
7286
7287 @table @code
7288 @item read
7289 Remove articles when they are read.
7290
7291 @item exit
7292 Remove articles when exiting the group.
7293 @end table
7294
7295 The default value is @code{(read exit)}.
7296
7297 @c @vindex gnus-use-header-prefetch
7298 @c If @code{gnus-use-header-prefetch} is non-@code{nil}, prefetch articles
7299 @c from the next group.
7300
7301
7302 @node Article Caching
7303 @section Article Caching
7304 @cindex article caching
7305 @cindex caching
7306
7307 If you have an @emph{extremely} slow @acronym{NNTP} connection, you may
7308 consider turning article caching on.  Each article will then be stored
7309 locally under your home directory.  As you may surmise, this could
7310 potentially use @emph{huge} amounts of disk space, as well as eat up all
7311 your inodes so fast it will make your head swim.  In vodka.
7312
7313 Used carefully, though, it could be just an easier way to save articles.
7314
7315 @vindex gnus-use-long-file-name
7316 @vindex gnus-cache-directory
7317 @vindex gnus-use-cache
7318 To turn caching on, set @code{gnus-use-cache} to @code{t}.  By default,
7319 all articles ticked or marked as dormant will then be copied
7320 over to your local cache (@code{gnus-cache-directory}).  Whether this
7321 cache is flat or hierarchical is controlled by the
7322 @code{gnus-use-long-file-name} variable, as usual.
7323
7324 When re-selecting a ticked or dormant article, it will be fetched from the
7325 cache instead of from the server.  As articles in your cache will never
7326 expire, this might serve as a method of saving articles while still
7327 keeping them where they belong.  Just mark all articles you want to save
7328 as dormant, and don't worry.
7329
7330 When an article is marked as read, is it removed from the cache.
7331
7332 @vindex gnus-cache-remove-articles
7333 @vindex gnus-cache-enter-articles
7334 The entering/removal of articles from the cache is controlled by the
7335 @code{gnus-cache-enter-articles} and @code{gnus-cache-remove-articles}
7336 variables.  Both are lists of symbols.  The first is @code{(ticked
7337 dormant)} by default, meaning that ticked and dormant articles will be
7338 put in the cache.  The latter is @code{(read)} by default, meaning that
7339 articles marked as read are removed from the cache.  Possibly
7340 symbols in these two lists are @code{ticked}, @code{dormant},
7341 @code{unread} and @code{read}.
7342
7343 @findex gnus-jog-cache
7344 So where does the massive article-fetching and storing come into the
7345 picture?  The @code{gnus-jog-cache} command will go through all
7346 subscribed newsgroups, request all unread articles, score them, and
7347 store them in the cache.  You should only ever, ever ever ever, use this
7348 command if 1) your connection to the @acronym{NNTP} server is really, really,
7349 really slow and 2) you have a really, really, really huge disk.
7350 Seriously.  One way to cut down on the number of articles downloaded is
7351 to score unwanted articles down and have them marked as read.  They will
7352 not then be downloaded by this command.
7353
7354 @vindex gnus-uncacheable-groups
7355 @vindex gnus-cacheable-groups
7356 It is likely that you do not want caching on all groups.  For instance,
7357 if your @code{nnml} mail is located under your home directory, it makes no
7358 sense to cache it somewhere else under your home directory.  Unless you
7359 feel that it's neat to use twice as much space.
7360
7361 To limit the caching, you could set @code{gnus-cacheable-groups} to a
7362 regexp of groups to cache, @samp{^nntp} for instance, or set the
7363 @code{gnus-uncacheable-groups} regexp to @samp{^nnml}, for instance.
7364 Both variables are @code{nil} by default.  If a group matches both
7365 variables, the group is not cached.
7366
7367 @findex gnus-cache-generate-nov-databases
7368 @findex gnus-cache-generate-active
7369 @vindex gnus-cache-active-file
7370 The cache stores information on what articles it contains in its active
7371 file (@code{gnus-cache-active-file}).  If this file (or any other parts
7372 of the cache) becomes all messed up for some reason or other, Gnus
7373 offers two functions that will try to set things right.  @kbd{M-x
7374 gnus-cache-generate-nov-databases} will (re)build all the @acronym{NOV}
7375 files, and @kbd{gnus-cache-generate-active} will (re)generate the active
7376 file.
7377
7378 @findex gnus-cache-move-cache
7379 @code{gnus-cache-move-cache} will move your whole
7380 @code{gnus-cache-directory} to some other location.  You get asked to
7381 where, isn't that cool?
7382
7383 @node Persistent Articles
7384 @section Persistent Articles
7385 @cindex persistent articles
7386
7387 Closely related to article caching, we have @dfn{persistent articles}.
7388 In fact, it's just a different way of looking at caching, and much more
7389 useful in my opinion.
7390
7391 Say you're reading a newsgroup, and you happen on to some valuable gem
7392 that you want to keep and treasure forever.  You'd normally just save it
7393 (using one of the many saving commands) in some file.  The problem with
7394 that is that it's just, well, yucky.  Ideally you'd prefer just having
7395 the article remain in the group where you found it forever; untouched by
7396 the expiry going on at the news server.
7397
7398 This is what a @dfn{persistent article} is---an article that just won't
7399 be deleted.  It's implemented using the normal cache functions, but
7400 you use two explicit commands for managing persistent articles:
7401
7402 @table @kbd
7403
7404 @item *
7405 @kindex * (Summary)
7406 @findex gnus-cache-enter-article
7407 Make the current article persistent (@code{gnus-cache-enter-article}).
7408
7409 @item M-*
7410 @kindex M-* (Summary)
7411 @findex gnus-cache-remove-article
7412 Remove the current article from the persistent articles
7413 (@code{gnus-cache-remove-article}).  This will normally delete the
7414 article.
7415 @end table
7416
7417 Both these commands understand the process/prefix convention.
7418
7419 To avoid having all ticked articles (and stuff) entered into the cache,
7420 you should set @code{gnus-use-cache} to @code{passive} if you're just
7421 interested in persistent articles:
7422
7423 @lisp
7424 (setq gnus-use-cache 'passive)
7425 @end lisp
7426
7427
7428 @node Article Backlog
7429 @section Article Backlog
7430 @cindex backlog
7431 @cindex article backlog
7432
7433 If you have a slow connection, but the idea of using caching seems
7434 unappealing to you (and it is, really), you can help the situation some
7435 by switching on the @dfn{backlog}.  This is where Gnus will buffer
7436 already read articles so that it doesn't have to re-fetch articles
7437 you've already read.  This only helps if you are in the habit of
7438 re-selecting articles you've recently read, of course.  If you never do
7439 that, turning the backlog on will slow Gnus down a little bit, and
7440 increase memory usage some.
7441
7442 @vindex gnus-keep-backlog
7443 If you set @code{gnus-keep-backlog} to a number @var{n}, Gnus will store
7444 at most @var{n} old articles in a buffer for later re-fetching.  If this
7445 variable is non-@code{nil} and is not a number, Gnus will store
7446 @emph{all} read articles, which means that your Emacs will grow without
7447 bound before exploding and taking your machine down with you.  I put
7448 that in there just to keep y'all on your toes.
7449
7450 The default value is 20.
7451
7452
7453 @node Saving Articles
7454 @section Saving Articles
7455 @cindex saving articles
7456
7457 Gnus can save articles in a number of ways.  Below is the documentation
7458 for saving articles in a fairly straight-forward fashion (i.e., little
7459 processing of the article is done before it is saved).  For a different
7460 approach (uudecoding, unsharing) you should use @code{gnus-uu}
7461 (@pxref{Decoding Articles}).
7462
7463 For the commands listed here, the target is a file.  If you want to
7464 save to a group, see the @kbd{B c} (@code{gnus-summary-copy-article})
7465 command (@pxref{Mail Group Commands}).
7466
7467 @vindex gnus-save-all-headers
7468 If @code{gnus-save-all-headers} is non-@code{nil}, Gnus will not delete
7469 unwanted headers before saving the article.
7470
7471 @vindex gnus-saved-headers
7472 If the preceding variable is @code{nil}, all headers that match the
7473 @code{gnus-saved-headers} regexp will be kept, while the rest will be
7474 deleted before saving.
7475
7476 @table @kbd
7477
7478 @item O o
7479 @itemx o
7480 @kindex O o (Summary)
7481 @kindex o (Summary)
7482 @findex gnus-summary-save-article
7483 @c @icon{gnus-summary-save-article}
7484 Save the current article using the default article saver
7485 (@code{gnus-summary-save-article}).
7486
7487 @item O m
7488 @kindex O m (Summary)
7489 @findex gnus-summary-save-article-mail
7490 Save the current article in a Unix mail box (mbox) file
7491 (@code{gnus-summary-save-article-mail}).
7492
7493 @item O r
7494 @kindex O r (Summary)
7495 @findex gnus-summary-save-article-rmail
7496 Save the current article in Rmail format
7497 (@code{gnus-summary-save-article-rmail}).
7498
7499 @item O f
7500 @kindex O f (Summary)
7501 @findex gnus-summary-save-article-file
7502 @c @icon{gnus-summary-save-article-file}
7503 Save the current article in plain file format
7504 (@code{gnus-summary-save-article-file}).
7505
7506 @item O F
7507 @kindex O F (Summary)
7508 @findex gnus-summary-write-article-file
7509 Write the current article in plain file format, overwriting any previous
7510 file contents (@code{gnus-summary-write-article-file}).
7511
7512 @item O b
7513 @kindex O b (Summary)
7514 @findex gnus-summary-save-article-body-file
7515 Save the current article body in plain file format
7516 (@code{gnus-summary-save-article-body-file}).
7517
7518 @item O h
7519 @kindex O h (Summary)
7520 @findex gnus-summary-save-article-folder
7521 Save the current article in mh folder format
7522 (@code{gnus-summary-save-article-folder}).
7523
7524 @item O v
7525 @kindex O v (Summary)
7526 @findex gnus-summary-save-article-vm
7527 Save the current article in a VM folder
7528 (@code{gnus-summary-save-article-vm}).
7529
7530 @item O p
7531 @itemx |
7532 @kindex O p (Summary)
7533 @kindex | (Summary)
7534 @findex gnus-summary-pipe-output
7535 Save the current article in a pipe.  Uhm, like, what I mean is---Pipe
7536 the current article to a process (@code{gnus-summary-pipe-output}).
7537 If given a symbolic prefix (@pxref{Symbolic Prefixes}), include the
7538 complete headers in the piped output.
7539
7540 @item O P
7541 @kindex O P (Summary)
7542 @findex gnus-summary-muttprint
7543 @vindex gnus-summary-muttprint-program
7544 Save the current article into muttprint.  That is, print it using the
7545 external program @uref{http://muttprint.sourceforge.net/,
7546 Muttprint}.  The program name and options to use is controlled by the
7547 variable @code{gnus-summary-muttprint-program}.
7548 (@code{gnus-summary-muttprint}).
7549
7550 @end table
7551
7552 @vindex gnus-prompt-before-saving
7553 All these commands use the process/prefix convention
7554 (@pxref{Process/Prefix}).  If you save bunches of articles using these
7555 functions, you might get tired of being prompted for files to save each
7556 and every article in.  The prompting action is controlled by
7557 the @code{gnus-prompt-before-saving} variable, which is @code{always} by
7558 default, giving you that excessive prompting action you know and
7559 loathe.  If you set this variable to @code{t} instead, you'll be prompted
7560 just once for each series of articles you save.  If you like to really
7561 have Gnus do all your thinking for you, you can even set this variable
7562 to @code{nil}, which means that you will never be prompted for files to
7563 save articles in.  Gnus will simply save all the articles in the default
7564 files.
7565
7566
7567 @vindex gnus-default-article-saver
7568 You can customize the @code{gnus-default-article-saver} variable to make
7569 Gnus do what you want it to.  You can use any of the eight ready-made
7570 functions below, or you can create your own.
7571
7572 @table @code
7573
7574 @item gnus-summary-save-in-rmail
7575 @findex gnus-summary-save-in-rmail
7576 @vindex gnus-rmail-save-name
7577 @findex gnus-plain-save-name
7578 This is the default format, @dfn{Babyl}.  Uses the function in the
7579 @code{gnus-rmail-save-name} variable to get a file name to save the
7580 article in.  The default is @code{gnus-plain-save-name}.
7581
7582 @item gnus-summary-save-in-mail
7583 @findex gnus-summary-save-in-mail
7584 @vindex gnus-mail-save-name
7585 Save in a Unix mail (mbox) file.  Uses the function in the
7586 @code{gnus-mail-save-name} variable to get a file name to save the
7587 article in.  The default is @code{gnus-plain-save-name}.
7588
7589 @item gnus-summary-save-in-file
7590 @findex gnus-summary-save-in-file
7591 @vindex gnus-file-save-name
7592 @findex gnus-numeric-save-name
7593 Append the article straight to an ordinary file.  Uses the function in
7594 the @code{gnus-file-save-name} variable to get a file name to save the
7595 article in.  The default is @code{gnus-numeric-save-name}.
7596
7597 @item gnus-summary-write-to-file
7598 @findex gnus-summary-write-to-file
7599 Write the article straight to an ordinary file.  The file is
7600 overwritten if it exists.  Uses the function in the
7601 @code{gnus-file-save-name} variable to get a file name to save the
7602 article in.  The default is @code{gnus-numeric-save-name}.
7603
7604 @item gnus-summary-save-body-in-file
7605 @findex gnus-summary-save-body-in-file
7606 Append the article body to an ordinary file.  Uses the function in the
7607 @code{gnus-file-save-name} variable to get a file name to save the
7608 article in.  The default is @code{gnus-numeric-save-name}.
7609
7610 @item gnus-summary-write-body-to-file
7611 @findex gnus-summary-write-body-to-file
7612 Write the article body straight to an ordinary file.  The file is
7613 overwritten if it exists.  Uses the function in the
7614 @code{gnus-file-save-name} variable to get a file name to save the
7615 article in.  The default is @code{gnus-numeric-save-name}.
7616
7617 @item gnus-summary-save-in-folder
7618 @findex gnus-summary-save-in-folder
7619 @findex gnus-folder-save-name
7620 @findex gnus-Folder-save-name
7621 @vindex gnus-folder-save-name
7622 @cindex rcvstore
7623 @cindex MH folders
7624 Save the article to an MH folder using @code{rcvstore} from the MH
7625 library.  Uses the function in the @code{gnus-folder-save-name} variable
7626 to get a file name to save the article in.  The default is
7627 @code{gnus-folder-save-name}, but you can also use
7628 @code{gnus-Folder-save-name}, which creates capitalized names.
7629
7630 @item gnus-summary-save-in-vm
7631 @findex gnus-summary-save-in-vm
7632 Save the article in a VM folder.  You have to have the VM mail
7633 reader to use this setting.
7634 @end table
7635
7636 The symbol of each function may have the following properties:
7637
7638 @table @code
7639 @item :decode
7640 The value non-@code{nil} means save decoded articles.  This is
7641 meaningful only with @code{gnus-summary-save-in-file},
7642 @code{gnus-summary-save-body-in-file},
7643 @code{gnus-summary-write-to-file}, and
7644 @code{gnus-summary-write-body-to-file}.
7645
7646 @item :function
7647 The value specifies an alternative function which appends, not
7648 overwrites, articles to a file.  This implies that when saving many
7649 articles at a time, @code{gnus-prompt-before-saving} is bound to
7650 @code{t} and all articles are saved in a single file.  This is
7651 meaningful only with @code{gnus-summary-write-to-file} and
7652 @code{gnus-summary-write-body-to-file}.
7653
7654 @item :headers
7655 The value specifies the symbol of a variable of which the value
7656 specifies headers to be saved.  If it is omitted,
7657 @code{gnus-save-all-headers} and @code{gnus-saved-headers} control what
7658 headers should be saved.
7659 @end table
7660
7661 @vindex gnus-article-save-directory
7662 All of these functions, except for the last one, will save the article
7663 in the @code{gnus-article-save-directory}, which is initialized from the
7664 @env{SAVEDIR} environment variable.  This is @file{~/News/} by
7665 default.
7666
7667 As you can see above, the functions use different functions to find a
7668 suitable name of a file to save the article in.  Below is a list of
7669 available functions that generate names:
7670
7671 @table @code
7672
7673 @item gnus-Numeric-save-name
7674 @findex gnus-Numeric-save-name
7675 File names like @file{~/News/Alt.andrea-dworkin/45}.
7676
7677 @item gnus-numeric-save-name
7678 @findex gnus-numeric-save-name
7679 File names like @file{~/News/alt.andrea-dworkin/45}.
7680
7681 @item gnus-Plain-save-name
7682 @findex gnus-Plain-save-name
7683 File names like @file{~/News/Alt.andrea-dworkin}.
7684
7685 @item gnus-plain-save-name
7686 @findex gnus-plain-save-name
7687 File names like @file{~/News/alt.andrea-dworkin}.
7688
7689 @item gnus-sender-save-name
7690 @findex gnus-sender-save-name
7691 File names like @file{~/News/larsi}.
7692 @end table
7693
7694 @vindex gnus-split-methods
7695 You can have Gnus suggest where to save articles by plonking a regexp into
7696 the @code{gnus-split-methods} alist.  For instance, if you would like to
7697 save articles related to Gnus in the file @file{gnus-stuff}, and articles
7698 related to VM in @file{vm-stuff}, you could set this variable to something
7699 like:
7700
7701 @lisp
7702 (("^Subject:.*gnus\\|^Newsgroups:.*gnus" "gnus-stuff")
7703  ("^Subject:.*vm\\|^Xref:.*vm" "vm-stuff")
7704  (my-choosing-function "../other-dir/my-stuff")
7705  ((equal gnus-newsgroup-name "mail.misc") "mail-stuff"))
7706 @end lisp
7707
7708 We see that this is a list where each element is a list that has two
7709 elements---the @dfn{match} and the @dfn{file}.  The match can either be
7710 a string (in which case it is used as a regexp to match on the article
7711 head); it can be a symbol (which will be called as a function with the
7712 group name as a parameter); or it can be a list (which will be
7713 @code{eval}ed).  If any of these actions have a non-@code{nil} result,
7714 the @dfn{file} will be used as a default prompt.  In addition, the
7715 result of the operation itself will be used if the function or form
7716 called returns a string or a list of strings.
7717
7718 You basically end up with a list of file names that might be used when
7719 saving the current article.  (All ``matches'' will be used.)  You will
7720 then be prompted for what you really want to use as a name, with file
7721 name completion over the results from applying this variable.
7722
7723 This variable is @code{((gnus-article-archive-name))} by default, which
7724 means that Gnus will look at the articles it saves for an
7725 @code{Archive-name} line and use that as a suggestion for the file
7726 name.
7727
7728 Here's an example function to clean up file names somewhat.  If you have
7729 lots of mail groups called things like
7730 @samp{nnml:mail.whatever}, you may want to chop off the beginning of
7731 these group names before creating the file name to save to.  The
7732 following will do just that:
7733
7734 @lisp
7735 (defun my-save-name (group)
7736   (when (string-match "^nnml:mail." group)
7737     (substring group (match-end 0))))
7738
7739 (setq gnus-split-methods
7740       '((gnus-article-archive-name)
7741         (my-save-name)))
7742 @end lisp
7743
7744
7745 @vindex gnus-use-long-file-name
7746 Finally, you have the @code{gnus-use-long-file-name} variable.  If it is
7747 @code{nil}, all the preceding functions will replace all periods
7748 (@samp{.}) in the group names with slashes (@samp{/})---which means that
7749 the functions will generate hierarchies of directories instead of having
7750 all the files in the top level directory
7751 (@file{~/News/alt/andrea-dworkin} instead of
7752 @file{~/News/alt.andrea-dworkin}.)  This variable is @code{t} by default
7753 on most systems.  However, for historical reasons, this is @code{nil} on
7754 Xenix and usg-unix-v machines by default.
7755
7756 This function also affects kill and score file names.  If this variable
7757 is a list, and the list contains the element @code{not-score}, long file
7758 names will not be used for score files, if it contains the element
7759 @code{not-save}, long file names will not be used for saving, and if it
7760 contains the element @code{not-kill}, long file names will not be used
7761 for kill files.
7762
7763 If you'd like to save articles in a hierarchy that looks something like
7764 a spool, you could
7765
7766 @lisp
7767 (setq gnus-use-long-file-name '(not-save)) ; @r{to get a hierarchy}
7768 (setq gnus-default-article-saver
7769       'gnus-summary-save-in-file)          ; @r{no encoding}
7770 @end lisp
7771
7772 Then just save with @kbd{o}.  You'd then read this hierarchy with
7773 ephemeral @code{nneething} groups---@kbd{G D} in the group buffer, and
7774 the top level directory as the argument (@file{~/News/}).  Then just walk
7775 around to the groups/directories with @code{nneething}.
7776
7777
7778 @node Decoding Articles
7779 @section Decoding Articles
7780 @cindex decoding articles
7781
7782 Sometime users post articles (or series of articles) that have been
7783 encoded in some way or other.  Gnus can decode them for you.
7784
7785 @menu
7786 * Uuencoded Articles::          Uudecode articles.
7787 * Shell Archives::              Unshar articles.
7788 * PostScript Files::            Split PostScript.
7789 * Other Files::                 Plain save and binhex.
7790 * Decoding Variables::          Variables for a happy decoding.
7791 * Viewing Files::               You want to look at the result of the decoding?
7792 @end menu
7793
7794 @cindex series
7795 @cindex article series
7796 All these functions use the process/prefix convention
7797 (@pxref{Process/Prefix}) for finding out what articles to work on, with
7798 the extension that a ``single article'' means ``a single series''.  Gnus
7799 can find out by itself what articles belong to a series, decode all the
7800 articles and unpack/view/save the resulting file(s).
7801
7802 Gnus guesses what articles are in the series according to the following
7803 simplish rule: The subjects must be (nearly) identical, except for the
7804 last two numbers of the line.  (Spaces are largely ignored, however.)
7805
7806 For example: If you choose a subject called @samp{cat.gif (2/3)}, Gnus
7807 will find all the articles that match the regexp @samp{^cat.gif
7808 ([0-9]+/[0-9]+).*$}.
7809
7810 Subjects that are non-standard, like @samp{cat.gif (2/3) Part 6 of a
7811 series}, will not be properly recognized by any of the automatic viewing
7812 commands, and you have to mark the articles manually with @kbd{#}.
7813
7814
7815 @node Uuencoded Articles
7816 @subsection Uuencoded Articles
7817 @cindex uudecode
7818 @cindex uuencoded articles
7819
7820 @table @kbd
7821
7822 @item X u
7823 @kindex X u (Summary)
7824 @findex gnus-uu-decode-uu
7825 @c @icon{gnus-uu-decode-uu}
7826 Uudecodes the current series (@code{gnus-uu-decode-uu}).
7827
7828 @item X U
7829 @kindex X U (Summary)
7830 @findex gnus-uu-decode-uu-and-save
7831 Uudecodes and saves the current series
7832 (@code{gnus-uu-decode-uu-and-save}).
7833
7834 @item X v u
7835 @kindex X v u (Summary)
7836 @findex gnus-uu-decode-uu-view
7837 Uudecodes and views the current series (@code{gnus-uu-decode-uu-view}).
7838
7839 @item X v U
7840 @kindex X v U (Summary)
7841 @findex gnus-uu-decode-uu-and-save-view
7842 Uudecodes, views and saves the current series
7843 (@code{gnus-uu-decode-uu-and-save-view}).
7844
7845 @end table
7846
7847 Remember that these all react to the presence of articles marked with
7848 the process mark.  If, for instance, you'd like to decode and save an
7849 entire newsgroup, you'd typically do @kbd{M P a}
7850 (@code{gnus-uu-mark-all}) and then @kbd{X U}
7851 (@code{gnus-uu-decode-uu-and-save}).
7852
7853 All this is very much different from how @code{gnus-uu} worked with
7854 @sc{gnus 4.1}, where you had explicit keystrokes for everything under
7855 the sun.  This version of @code{gnus-uu} generally assumes that you mark
7856 articles in some way (@pxref{Setting Process Marks}) and then press
7857 @kbd{X u}.
7858
7859 @vindex gnus-uu-notify-files
7860 Note: When trying to decode articles that have names matching
7861 @code{gnus-uu-notify-files}, which is hard-coded to
7862 @samp{[Cc][Ii][Nn][Dd][Yy][0-9]+.\\(gif\\|jpg\\)}, @code{gnus-uu} will
7863 automatically post an article on @samp{comp.unix.wizards} saying that
7864 you have just viewed the file in question.  This feature can't be turned
7865 off.
7866
7867
7868 @node Shell Archives
7869 @subsection Shell Archives
7870 @cindex unshar
7871 @cindex shell archives
7872 @cindex shared articles
7873
7874 Shell archives (``shar files'') used to be a popular way to distribute
7875 sources, but it isn't used all that much today.  In any case, we have
7876 some commands to deal with these:
7877
7878 @table @kbd
7879
7880 @item X s
7881 @kindex X s (Summary)
7882 @findex gnus-uu-decode-unshar
7883 Unshars the current series (@code{gnus-uu-decode-unshar}).
7884
7885 @item X S
7886 @kindex X S (Summary)
7887 @findex gnus-uu-decode-unshar-and-save
7888 Unshars and saves the current series (@code{gnus-uu-decode-unshar-and-save}).
7889
7890 @item X v s
7891 @kindex X v s (Summary)
7892 @findex gnus-uu-decode-unshar-view
7893 Unshars and views the current series (@code{gnus-uu-decode-unshar-view}).
7894
7895 @item X v S
7896 @kindex X v S (Summary)
7897 @findex gnus-uu-decode-unshar-and-save-view
7898 Unshars, views and saves the current series
7899 (@code{gnus-uu-decode-unshar-and-save-view}).
7900 @end table
7901
7902
7903 @node PostScript Files
7904 @subsection PostScript Files
7905 @cindex PostScript
7906
7907 @table @kbd
7908
7909 @item X p
7910 @kindex X p (Summary)
7911 @findex gnus-uu-decode-postscript
7912 Unpack the current PostScript series (@code{gnus-uu-decode-postscript}).
7913
7914 @item X P
7915 @kindex X P (Summary)
7916 @findex gnus-uu-decode-postscript-and-save
7917 Unpack and save the current PostScript series
7918 (@code{gnus-uu-decode-postscript-and-save}).
7919
7920 @item X v p
7921 @kindex X v p (Summary)
7922 @findex gnus-uu-decode-postscript-view
7923 View the current PostScript series
7924 (@code{gnus-uu-decode-postscript-view}).
7925
7926 @item X v P
7927 @kindex X v P (Summary)
7928 @findex gnus-uu-decode-postscript-and-save-view
7929 View and save the current PostScript series
7930 (@code{gnus-uu-decode-postscript-and-save-view}).
7931 @end table
7932
7933
7934 @node Other Files
7935 @subsection Other Files
7936
7937 @table @kbd
7938 @item X o
7939 @kindex X o (Summary)
7940 @findex gnus-uu-decode-save
7941 Save the current series
7942 (@code{gnus-uu-decode-save}).
7943
7944 @item X b
7945 @kindex X b (Summary)
7946 @findex gnus-uu-decode-binhex
7947 Unbinhex the current series (@code{gnus-uu-decode-binhex}).  This
7948 doesn't really work yet.
7949 @end table
7950
7951
7952 @node Decoding Variables
7953 @subsection Decoding Variables
7954
7955 Adjective, not verb.
7956
7957 @menu
7958 * Rule Variables::              Variables that say how a file is to be viewed.
7959 * Other Decode Variables::      Other decode variables.
7960 * Uuencoding and Posting::      Variables for customizing uuencoding.
7961 @end menu
7962
7963
7964 @node Rule Variables
7965 @subsubsection Rule Variables
7966 @cindex rule variables
7967
7968 Gnus uses @dfn{rule variables} to decide how to view a file.  All these
7969 variables are of the form
7970
7971 @lisp
7972       (list '(regexp1 command2)
7973             '(regexp2 command2)
7974             ...)
7975 @end lisp
7976
7977 @table @code
7978
7979 @item gnus-uu-user-view-rules
7980 @vindex gnus-uu-user-view-rules
7981 @cindex sox
7982 This variable is consulted first when viewing files.  If you wish to use,
7983 for instance, @code{sox} to convert an @file{.au} sound file, you could
7984 say something like:
7985 @lisp
7986 (setq gnus-uu-user-view-rules
7987       (list '("\\\\.au$" "sox %s -t .aiff > /dev/audio")))
7988 @end lisp
7989
7990 @item gnus-uu-user-view-rules-end
7991 @vindex gnus-uu-user-view-rules-end
7992 This variable is consulted if Gnus couldn't make any matches from the
7993 user and default view rules.
7994
7995 @item gnus-uu-user-archive-rules
7996 @vindex gnus-uu-user-archive-rules
7997 This variable can be used to say what commands should be used to unpack
7998 archives.
7999 @end table
8000
8001
8002 @node Other Decode Variables
8003 @subsubsection Other Decode Variables
8004
8005 @table @code
8006 @vindex gnus-uu-grabbed-file-functions
8007
8008 @item gnus-uu-grabbed-file-functions
8009 All functions in this list will be called right after each file has been
8010 successfully decoded---so that you can move or view files right away,
8011 and don't have to wait for all files to be decoded before you can do
8012 anything.  Ready-made functions you can put in this list are:
8013
8014 @table @code
8015
8016 @item gnus-uu-grab-view
8017 @findex gnus-uu-grab-view
8018 View the file.
8019
8020 @item gnus-uu-grab-move
8021 @findex gnus-uu-grab-move
8022 Move the file (if you're using a saving function.)
8023 @end table
8024
8025 @item gnus-uu-be-dangerous
8026 @vindex gnus-uu-be-dangerous
8027 Specifies what to do if unusual situations arise during decoding.  If
8028 @code{nil}, be as conservative as possible.  If @code{t}, ignore things
8029 that didn't work, and overwrite existing files.  Otherwise, ask each
8030 time.
8031
8032 @item gnus-uu-ignore-files-by-name
8033 @vindex gnus-uu-ignore-files-by-name
8034 Files with name matching this regular expression won't be viewed.
8035
8036 @item gnus-uu-ignore-files-by-type
8037 @vindex gnus-uu-ignore-files-by-type
8038 Files with a @acronym{MIME} type matching this variable won't be viewed.
8039 Note that Gnus tries to guess what type the file is based on the name.
8040 @code{gnus-uu} is not a @acronym{MIME} package (yet), so this is slightly
8041 kludgey.
8042
8043 @item gnus-uu-tmp-dir
8044 @vindex gnus-uu-tmp-dir
8045 Where @code{gnus-uu} does its work.
8046
8047 @item gnus-uu-do-not-unpack-archives
8048 @vindex gnus-uu-do-not-unpack-archives
8049 Non-@code{nil} means that @code{gnus-uu} won't peek inside archives
8050 looking for files to display.
8051
8052 @item gnus-uu-view-and-save
8053 @vindex gnus-uu-view-and-save
8054 Non-@code{nil} means that the user will always be asked to save a file
8055 after viewing it.
8056
8057 @item gnus-uu-ignore-default-view-rules
8058 @vindex gnus-uu-ignore-default-view-rules
8059 Non-@code{nil} means that @code{gnus-uu} will ignore the default viewing
8060 rules.
8061
8062 @item gnus-uu-ignore-default-archive-rules
8063 @vindex gnus-uu-ignore-default-archive-rules
8064 Non-@code{nil} means that @code{gnus-uu} will ignore the default archive
8065 unpacking commands.
8066
8067 @item gnus-uu-kill-carriage-return
8068 @vindex gnus-uu-kill-carriage-return
8069 Non-@code{nil} means that @code{gnus-uu} will strip all carriage returns
8070 from articles.
8071
8072 @item gnus-uu-unmark-articles-not-decoded
8073 @vindex gnus-uu-unmark-articles-not-decoded
8074 Non-@code{nil} means that @code{gnus-uu} will mark unsuccessfully
8075 decoded articles as unread.
8076
8077 @item gnus-uu-correct-stripped-uucode
8078 @vindex gnus-uu-correct-stripped-uucode
8079 Non-@code{nil} means that @code{gnus-uu} will @emph{try} to fix
8080 uuencoded files that have had trailing spaces deleted.
8081
8082 @item gnus-uu-pre-uudecode-hook
8083 @vindex gnus-uu-pre-uudecode-hook
8084 Hook run before sending a message to @code{uudecode}.
8085
8086 @item gnus-uu-view-with-metamail
8087 @vindex gnus-uu-view-with-metamail
8088 @cindex metamail
8089 Non-@code{nil} means that @code{gnus-uu} will ignore the viewing
8090 commands defined by the rule variables and just fudge a @acronym{MIME}
8091 content type based on the file name.  The result will be fed to
8092 @code{metamail} for viewing.
8093
8094 @item gnus-uu-save-in-digest
8095 @vindex gnus-uu-save-in-digest
8096 Non-@code{nil} means that @code{gnus-uu}, when asked to save without
8097 decoding, will save in digests.  If this variable is @code{nil},
8098 @code{gnus-uu} will just save everything in a file without any
8099 embellishments.  The digesting almost conforms to RFC 1153---no easy way
8100 to specify any meaningful volume and issue numbers were found, so I
8101 simply dropped them.
8102
8103 @end table
8104
8105
8106 @node Uuencoding and Posting
8107 @subsubsection Uuencoding and Posting
8108
8109 @table @code
8110
8111 @item gnus-uu-post-include-before-composing
8112 @vindex gnus-uu-post-include-before-composing
8113 Non-@code{nil} means that @code{gnus-uu} will ask for a file to encode
8114 before you compose the article.  If this variable is @code{t}, you can
8115 either include an encoded file with @kbd{C-c C-i} or have one included
8116 for you when you post the article.
8117
8118 @item gnus-uu-post-length
8119 @vindex gnus-uu-post-length
8120 Maximum length of an article.  The encoded file will be split into how
8121 many articles it takes to post the entire file.
8122
8123 @item gnus-uu-post-threaded
8124 @vindex gnus-uu-post-threaded
8125 Non-@code{nil} means that @code{gnus-uu} will post the encoded file in a
8126 thread.  This may not be smart, as no other decoder I have seen is able
8127 to follow threads when collecting uuencoded articles.  (Well, I have
8128 seen one package that does that---@code{gnus-uu}, but somehow, I don't
8129 think that counts@dots{}) Default is @code{nil}.
8130
8131 @item gnus-uu-post-separate-description
8132 @vindex gnus-uu-post-separate-description
8133 Non-@code{nil} means that the description will be posted in a separate
8134 article.  The first article will typically be numbered (0/x).  If this
8135 variable is @code{nil}, the description the user enters will be included
8136 at the beginning of the first article, which will be numbered (1/x).
8137 Default is @code{t}.
8138
8139 @end table
8140
8141
8142 @node Viewing Files
8143 @subsection Viewing Files
8144 @cindex viewing files
8145 @cindex pseudo-articles
8146
8147 After decoding, if the file is some sort of archive, Gnus will attempt
8148 to unpack the archive and see if any of the files in the archive can be
8149 viewed.  For instance, if you have a gzipped tar file @file{pics.tar.gz}
8150 containing the files @file{pic1.jpg} and @file{pic2.gif}, Gnus will
8151 uncompress and de-tar the main file, and then view the two pictures.
8152 This unpacking process is recursive, so if the archive contains archives
8153 of archives, it'll all be unpacked.
8154
8155 Finally, Gnus will normally insert a @dfn{pseudo-article} for each
8156 extracted file into the summary buffer.  If you go to these
8157 ``articles'', you will be prompted for a command to run (usually Gnus
8158 will make a suggestion), and then the command will be run.
8159
8160 @vindex gnus-view-pseudo-asynchronously
8161 If @code{gnus-view-pseudo-asynchronously} is @code{nil}, Emacs will wait
8162 until the viewing is done before proceeding.
8163
8164 @vindex gnus-view-pseudos
8165 If @code{gnus-view-pseudos} is @code{automatic}, Gnus will not insert
8166 the pseudo-articles into the summary buffer, but view them
8167 immediately.  If this variable is @code{not-confirm}, the user won't even
8168 be asked for a confirmation before viewing is done.
8169
8170 @vindex gnus-view-pseudos-separately
8171 If @code{gnus-view-pseudos-separately} is non-@code{nil}, one
8172 pseudo-article will be created for each file to be viewed.  If
8173 @code{nil}, all files that use the same viewing command will be given as
8174 a list of parameters to that command.
8175
8176 @vindex gnus-insert-pseudo-articles
8177 If @code{gnus-insert-pseudo-articles} is non-@code{nil}, insert
8178 pseudo-articles when decoding.  It is @code{t} by default.
8179
8180 So; there you are, reading your @emph{pseudo-articles} in your
8181 @emph{virtual newsgroup} from the @emph{virtual server}; and you think:
8182 Why isn't anything real anymore? How did we get here?
8183
8184
8185 @node Article Treatment
8186 @section Article Treatment
8187
8188 Reading through this huge manual, you may have quite forgotten that the
8189 object of newsreaders is to actually, like, read what people have
8190 written.  Reading articles.  Unfortunately, people are quite bad at
8191 writing, so there are tons of functions and variables to make reading
8192 these articles easier.
8193
8194 @menu
8195 * Article Highlighting::        You want to make the article look like fruit salad.
8196 * Article Fontisizing::         Making emphasized text look nice.
8197 * Article Hiding::              You also want to make certain info go away.
8198 * Article Washing::             Lots of way-neat functions to make life better.
8199 * Article Header::              Doing various header transformations.
8200 * Article Buttons::             Click on URLs, Message-IDs, addresses and the like.
8201 * Article Button Levels::       Controlling appearance of buttons.
8202 * Article Date::                Grumble, UT!
8203 * Article Display::             Display various stuff---X-Face, Picons, Smileys
8204 * Article Signature::           What is a signature?
8205 * Article Miscellanea::         Various other stuff.
8206 @end menu
8207
8208
8209 @node Article Highlighting
8210 @subsection Article Highlighting
8211 @cindex highlighting
8212
8213 Not only do you want your article buffer to look like fruit salad, but
8214 you want it to look like technicolor fruit salad.
8215
8216 @table @kbd
8217
8218 @item W H a
8219 @kindex W H a (Summary)
8220 @findex gnus-article-highlight
8221 @findex gnus-article-maybe-highlight
8222 Do much highlighting of the current article
8223 (@code{gnus-article-highlight}).  This function highlights header, cited
8224 text, the signature, and adds buttons to the body and the head.
8225
8226 @item W H h
8227 @kindex W H h (Summary)
8228 @findex gnus-article-highlight-headers
8229 @vindex gnus-header-face-alist
8230 Highlight the headers (@code{gnus-article-highlight-headers}).  The
8231 highlighting will be done according to the @code{gnus-header-face-alist}
8232 variable, which is a list where each element has the form
8233 @code{(@var{regexp} @var{name} @var{content})}.
8234 @var{regexp} is a regular expression for matching the
8235 header, @var{name} is the face used for highlighting the header name
8236 (@pxref{Faces and Fonts}) and @var{content} is the face for highlighting
8237 the header value.  The first match made will be used.  Note that
8238 @var{regexp} shouldn't have @samp{^} prepended---Gnus will add one.
8239
8240 @item W H c
8241 @kindex W H c (Summary)
8242 @findex gnus-article-highlight-citation
8243 Highlight cited text (@code{gnus-article-highlight-citation}).
8244
8245 Some variables to customize the citation highlights:
8246
8247 @table @code
8248 @vindex gnus-cite-parse-max-size
8249
8250 @item gnus-cite-parse-max-size
8251 If the article size if bigger than this variable (which is 25000 by
8252 default), no citation highlighting will be performed.
8253
8254 @item gnus-cite-max-prefix
8255 @vindex gnus-cite-max-prefix
8256 Maximum possible length for a citation prefix (default 20).
8257
8258 @item gnus-cite-face-list
8259 @vindex gnus-cite-face-list
8260 List of faces used for highlighting citations (@pxref{Faces and Fonts}).
8261 When there are citations from multiple articles in the same message,
8262 Gnus will try to give each citation from each article its own face.
8263 This should make it easier to see who wrote what.
8264
8265 @item gnus-supercite-regexp
8266 @vindex gnus-supercite-regexp
8267 Regexp matching normal Supercite attribution lines.
8268
8269 @item gnus-supercite-secondary-regexp
8270 @vindex gnus-supercite-secondary-regexp
8271 Regexp matching mangled Supercite attribution lines.
8272
8273 @item gnus-cite-minimum-match-count
8274 @vindex gnus-cite-minimum-match-count
8275 Minimum number of identical prefixes we have to see before we believe
8276 that it's a citation.
8277
8278 @item gnus-cite-attribution-prefix
8279 @vindex gnus-cite-attribution-prefix
8280 Regexp matching the beginning of an attribution line.
8281
8282 @item gnus-cite-attribution-suffix
8283 @vindex gnus-cite-attribution-suffix
8284 Regexp matching the end of an attribution line.
8285
8286 @item gnus-cite-attribution-face
8287 @vindex gnus-cite-attribution-face
8288 Face used for attribution lines.  It is merged with the face for the
8289 cited text belonging to the attribution.
8290
8291 @item gnus-cite-ignore-quoted-from
8292 @vindex gnus-cite-ignore-quoted-from
8293 If non-@code{nil}, no citation highlighting will be performed on lines
8294 beginning with @samp{>From }.  Those lines may have been quoted by MTAs
8295 in order not to mix up with the envelope From line.  The default value
8296 is @code{t}.
8297
8298 @end table
8299
8300
8301 @item W H s
8302 @kindex W H s (Summary)
8303 @vindex gnus-signature-separator
8304 @vindex gnus-signature-face
8305 @findex gnus-article-highlight-signature
8306 Highlight the signature (@code{gnus-article-highlight-signature}).
8307 Everything after @code{gnus-signature-separator} (@pxref{Article
8308 Signature}) in an article will be considered a signature and will be
8309 highlighted with @code{gnus-signature-face}, which is @code{italic} by
8310 default.
8311
8312 @end table
8313
8314 @xref{Customizing Articles}, for how to highlight articles automatically.
8315
8316
8317 @node Article Fontisizing
8318 @subsection Article Fontisizing
8319 @cindex emphasis
8320 @cindex article emphasis
8321
8322 @findex gnus-article-emphasize
8323 @kindex W e (Summary)
8324 People commonly add emphasis to words in news articles by writing things
8325 like @samp{_this_} or @samp{*this*} or @samp{/this/}.  Gnus can make
8326 this look nicer by running the article through the @kbd{W e}
8327 (@code{gnus-article-emphasize}) command.
8328
8329 @vindex gnus-emphasis-alist
8330 How the emphasis is computed is controlled by the
8331 @code{gnus-emphasis-alist} variable.  This is an alist where the first
8332 element is a regular expression to be matched.  The second is a number
8333 that says what regular expression grouping is used to find the entire
8334 emphasized word.  The third is a number that says what regexp grouping
8335 should be displayed and highlighted.  (The text between these two
8336 groupings will be hidden.)  The fourth is the face used for
8337 highlighting.
8338
8339 @lisp
8340 (setq gnus-emphasis-alist
8341       '(("_\\(\\w+\\)_" 0 1 gnus-emphasis-underline)
8342         ("\\*\\(\\w+\\)\\*" 0 1 gnus-emphasis-bold)))
8343 @end lisp
8344
8345 @cindex slash
8346 @cindex asterisk
8347 @cindex underline
8348 @cindex /
8349 @cindex *
8350
8351 @vindex gnus-emphasis-underline
8352 @vindex gnus-emphasis-bold
8353 @vindex gnus-emphasis-italic
8354 @vindex gnus-emphasis-underline-bold
8355 @vindex gnus-emphasis-underline-italic
8356 @vindex gnus-emphasis-bold-italic
8357 @vindex gnus-emphasis-underline-bold-italic
8358 By default, there are seven rules, and they use the following faces:
8359 @code{gnus-emphasis-bold}, @code{gnus-emphasis-italic},
8360 @code{gnus-emphasis-underline}, @code{gnus-emphasis-bold-italic},
8361 @code{gnus-emphasis-underline-italic},
8362 @code{gnus-emphasis-underline-bold}, and
8363 @code{gnus-emphasis-underline-bold-italic}.
8364
8365 If you want to change these faces, you can either use @kbd{M-x
8366 customize}, or you can use @code{copy-face}.  For instance, if you want
8367 to make @code{gnus-emphasis-italic} use a red face instead, you could
8368 say something like:
8369
8370 @lisp
8371 (copy-face 'red 'gnus-emphasis-italic)
8372 @end lisp
8373
8374 @vindex gnus-group-highlight-words-alist
8375
8376 If you want to highlight arbitrary words, you can use the
8377 @code{gnus-group-highlight-words-alist} variable, which uses the same
8378 syntax as @code{gnus-emphasis-alist}.  The @code{highlight-words} group
8379 parameter (@pxref{Group Parameters}) can also be used.
8380
8381 @xref{Customizing Articles}, for how to fontize articles automatically.
8382
8383
8384 @node Article Hiding
8385 @subsection Article Hiding
8386 @cindex article hiding
8387
8388 Or rather, hiding certain things in each article.  There usually is much
8389 too much cruft in most articles.
8390
8391 @table @kbd
8392
8393 @item W W a
8394 @kindex W W a (Summary)
8395 @findex gnus-article-hide
8396 Do quite a lot of hiding on the article buffer
8397 (@kbd{gnus-article-hide}).  In particular, this function will hide
8398 headers, @acronym{PGP}, cited text and the signature.
8399
8400 @item W W h
8401 @kindex W W h (Summary)
8402 @findex gnus-article-hide-headers
8403 Hide headers (@code{gnus-article-hide-headers}).  @xref{Hiding
8404 Headers}.
8405
8406 @item W W b
8407 @kindex W W b (Summary)
8408 @findex gnus-article-hide-boring-headers
8409 Hide headers that aren't particularly interesting
8410 (@code{gnus-article-hide-boring-headers}).  @xref{Hiding Headers}.
8411
8412 @item W W s
8413 @kindex W W s (Summary)
8414 @findex gnus-article-hide-signature
8415 Hide signature (@code{gnus-article-hide-signature}).  @xref{Article
8416 Signature}.
8417
8418 @item W W l
8419 @kindex W W l (Summary)
8420 @findex gnus-article-hide-list-identifiers
8421 @vindex gnus-list-identifiers
8422 Strip list identifiers specified in @code{gnus-list-identifiers}.  These
8423 are strings some mailing list servers add to the beginning of all
8424 @code{Subject} headers---for example, @samp{[zebra 4711]}.  Any leading
8425 @samp{Re: } is skipped before stripping.  @code{gnus-list-identifiers}
8426 may not contain @code{\\(..\\)}.
8427
8428 @table @code
8429
8430 @item gnus-list-identifiers
8431 @vindex gnus-list-identifiers
8432 A regular expression that matches list identifiers to be removed from
8433 subject.  This can also be a list of regular expressions.
8434
8435 @end table
8436
8437 @item W W P
8438 @kindex W W P (Summary)
8439 @findex gnus-article-hide-pem
8440 Hide @acronym{PEM} (privacy enhanced messages) cruft
8441 (@code{gnus-article-hide-pem}).
8442
8443 @item W W B
8444 @kindex W W B (Summary)
8445 @findex gnus-article-strip-banner
8446 @vindex gnus-article-banner-alist
8447 @vindex gnus-article-address-banner-alist
8448 @cindex banner
8449 @cindex OneList
8450 @cindex stripping advertisements
8451 @cindex advertisements
8452 Strip the banner specified by the @code{banner} group parameter
8453 (@code{gnus-article-strip-banner}).  This is mainly used to hide those
8454 annoying banners and/or signatures that some mailing lists and moderated
8455 groups adds to all the messages.  The way to use this function is to add
8456 the @code{banner} group parameter (@pxref{Group Parameters}) to the
8457 group you want banners stripped from.  The parameter either be a string,
8458 which will be interpreted as a regular expression matching text to be
8459 removed, or the symbol @code{signature}, meaning that the (last)
8460 signature should be removed, or other symbol, meaning that the
8461 corresponding regular expression in @code{gnus-article-banner-alist} is
8462 used.
8463
8464 Regardless of a group, you can hide things like advertisements only when
8465 the sender of an article has a certain mail address specified in
8466 @code{gnus-article-address-banner-alist}.
8467
8468 @table @code
8469
8470 @item gnus-article-address-banner-alist
8471 @vindex gnus-article-address-banner-alist
8472 Alist of mail addresses and banners.  Each element has the form
8473 @code{(@var{address} . @var{banner})}, where @var{address} is a regexp
8474 matching a mail address in the From header, @var{banner} is one of a
8475 symbol @code{signature}, an item in @code{gnus-article-banner-alist},
8476 a regexp and @code{nil}.  If @var{address} matches author's mail
8477 address, it will remove things like advertisements.  For example, if a
8478 sender has the mail address @samp{hail@@yoo-hoo.co.jp} and there is a
8479 banner something like @samp{Do You Yoo-hoo!?} in all articles he
8480 sends, you can use the following element to remove them:
8481
8482 @lisp
8483 ("@@yoo-hoo\\.co\\.jp\\'" .
8484  "\n_+\nDo You Yoo-hoo!\\?\n.*\n.*\n")
8485 @end lisp
8486
8487 @end table
8488
8489 @item W W c
8490 @kindex W W c (Summary)
8491 @findex gnus-article-hide-citation
8492 Hide citation (@code{gnus-article-hide-citation}).  Some variables for
8493 customizing the hiding:
8494
8495 @table @code
8496
8497 @item gnus-cited-opened-text-button-line-format
8498 @itemx gnus-cited-closed-text-button-line-format
8499 @vindex gnus-cited-closed-text-button-line-format
8500 @vindex gnus-cited-opened-text-button-line-format
8501 Gnus adds buttons to show where the cited text has been hidden, and to
8502 allow toggle hiding the text.  The format of the variable is specified
8503 by these format-like variable (@pxref{Formatting Variables}).  These
8504 specs are valid:
8505
8506 @table @samp
8507 @item b
8508 Starting point of the hidden text.
8509 @item e
8510 Ending point of the hidden text.
8511 @item l
8512 Number of characters in the hidden region.
8513 @item n
8514 Number of lines of hidden text.
8515 @end table
8516
8517 @item gnus-cited-lines-visible
8518 @vindex gnus-cited-lines-visible
8519 The number of lines at the beginning of the cited text to leave
8520 shown.  This can also be a cons cell with the number of lines at the top
8521 and bottom of the text, respectively, to remain visible.
8522
8523 @end table
8524
8525 @item W W C-c
8526 @kindex W W C-c (Summary)
8527 @findex gnus-article-hide-citation-maybe
8528
8529 Hide citation (@code{gnus-article-hide-citation-maybe}) depending on the
8530 following two variables:
8531
8532 @table @code
8533 @item gnus-cite-hide-percentage
8534 @vindex gnus-cite-hide-percentage
8535 If the cited text is of a bigger percentage than this variable (default
8536 50), hide the cited text.
8537
8538 @item gnus-cite-hide-absolute
8539 @vindex gnus-cite-hide-absolute
8540 The cited text must have at least this length (default 10) before it
8541 is hidden.
8542 @end table
8543
8544 @item W W C
8545 @kindex W W C (Summary)
8546 @findex gnus-article-hide-citation-in-followups
8547 Hide cited text in articles that aren't roots
8548 (@code{gnus-article-hide-citation-in-followups}).  This isn't very
8549 useful as an interactive command, but might be a handy function to stick
8550 have happen automatically (@pxref{Customizing Articles}).
8551
8552 @end table
8553
8554 All these ``hiding'' commands are toggles, but if you give a negative
8555 prefix to these commands, they will show what they have previously
8556 hidden.  If you give a positive prefix, they will always hide.
8557
8558 Also @pxref{Article Highlighting} for further variables for
8559 citation customization.
8560
8561 @xref{Customizing Articles}, for how to hide article elements
8562 automatically.
8563
8564
8565 @node Article Washing
8566 @subsection Article Washing
8567 @cindex washing
8568 @cindex article washing
8569
8570 We call this ``article washing'' for a really good reason.  Namely, the
8571 @kbd{A} key was taken, so we had to use the @kbd{W} key instead.
8572
8573 @dfn{Washing} is defined by us as ``changing something from something to
8574 something else'', but normally results in something looking better.
8575 Cleaner, perhaps.
8576
8577 @xref{Customizing Articles}, if you want to change how Gnus displays
8578 articles by default.
8579
8580 @table @kbd
8581
8582 @item C-u g
8583 This is not really washing, it's sort of the opposite of washing.  If
8584 you type this, you see the article exactly as it exists on disk or on
8585 the server.
8586
8587 @item g
8588 Force redisplaying of the current article
8589 (@code{gnus-summary-show-article}).  This is also not really washing.
8590 If you type this, you see the article without any previously applied
8591 interactive Washing functions but with all default treatments
8592 (@pxref{Customizing Articles}).
8593
8594 @item W l
8595 @kindex W l (Summary)
8596 @findex gnus-summary-stop-page-breaking
8597 Remove page breaks from the current article
8598 (@code{gnus-summary-stop-page-breaking}).  @xref{Misc Article}, for page
8599 delimiters.
8600
8601 @item W r
8602 @kindex W r (Summary)
8603 @findex gnus-summary-caesar-message
8604 @c @icon{gnus-summary-caesar-message}
8605 Do a Caesar rotate (rot13) on the article buffer
8606 (@code{gnus-summary-caesar-message}).
8607 Unreadable articles that tell you to read them with Caesar rotate or rot13.
8608 (Typically offensive jokes and such.)
8609
8610 It's commonly called ``rot13'' because each letter is rotated 13
8611 positions in the alphabet, e. g. @samp{B} (letter #2) -> @samp{O} (letter
8612 #15).  It is sometimes referred to as ``Caesar rotate'' because Caesar
8613 is rumored to have employed this form of, uh, somewhat weak encryption.
8614
8615 @item W m
8616 @kindex W m (Summary)
8617 @findex gnus-summary-morse-message
8618 Morse decode the article buffer (@code{gnus-summary-morse-message}).
8619
8620 @item W i
8621 @kindex W i (Summary)
8622 @findex gnus-summary-idna-message
8623 Decode IDNA encoded domain names in the current articles.  IDNA
8624 encoded domain names looks like @samp{xn--bar}.  If a string remain
8625 unencoded after running invoking this, it is likely an invalid IDNA
8626 string (@samp{xn--bar} is invalid).  You must have GNU Libidn
8627 (@url{http://www.gnu.org/software/libidn/}) installed for this command
8628 to work.
8629
8630 @item W t
8631 @item t
8632 @kindex W t (Summary)
8633 @kindex t (Summary)
8634 @findex gnus-summary-toggle-header
8635 Toggle whether to display all headers in the article buffer
8636 (@code{gnus-summary-toggle-header}).
8637
8638 @item W v
8639 @kindex W v (Summary)
8640 @findex gnus-summary-verbose-headers
8641 Toggle whether to display all headers in the article buffer permanently
8642 (@code{gnus-summary-verbose-headers}).
8643
8644 @item W o
8645 @kindex W o (Summary)
8646 @findex gnus-article-treat-overstrike
8647 Treat overstrike (@code{gnus-article-treat-overstrike}).
8648
8649 @item W d
8650 @kindex W d (Summary)
8651 @findex gnus-article-treat-dumbquotes
8652 @vindex gnus-article-dumbquotes-map
8653 @cindex Smartquotes
8654 @cindex M****s*** sm*rtq**t*s
8655 @cindex Latin 1
8656 Treat M****s*** sm*rtq**t*s according to
8657 @code{gnus-article-dumbquotes-map}
8658 (@code{gnus-article-treat-dumbquotes}).  Note that this function guesses
8659 whether a character is a sm*rtq**t* or not, so it should only be used
8660 interactively.
8661
8662 Sm*rtq**t*s are M****s***'s unilateral extension to the character map in
8663 an attempt to provide more quoting characters.  If you see something
8664 like @code{\222} or @code{\264} where you're expecting some kind of
8665 apostrophe or quotation mark, then try this wash.
8666
8667 @item W Y f
8668 @kindex W Y f (Summary)
8669 @findex gnus-article-outlook-deuglify-article
8670 @cindex Outlook Express
8671 Full deuglify of broken Outlook (Express) articles: Treat dumbquotes,
8672 unwrap lines, repair attribution and rearrange citation.
8673 (@code{gnus-article-outlook-deuglify-article}).
8674
8675 @item W Y u
8676 @kindex W Y u (Summary)
8677 @findex gnus-article-outlook-unwrap-lines
8678 @vindex gnus-outlook-deuglify-unwrap-min
8679 @vindex gnus-outlook-deuglify-unwrap-max
8680 Unwrap lines that appear to be wrapped citation lines.  You can control
8681 what lines will be unwrapped by frobbing
8682 @code{gnus-outlook-deuglify-unwrap-min} and
8683 @code{gnus-outlook-deuglify-unwrap-max}, indicating the minimum and
8684 maximum length of an unwrapped citation line.
8685 (@code{gnus-article-outlook-unwrap-lines}).
8686
8687 @item W Y a
8688 @kindex W Y a (Summary)
8689 @findex gnus-article-outlook-repair-attribution
8690 Repair a broken attribution line.@*
8691 (@code{gnus-article-outlook-repair-attribution}).
8692
8693 @item W Y c
8694 @kindex W Y c (Summary)
8695 @findex gnus-article-outlook-rearrange-citation
8696 Repair broken citations by rearranging the text.
8697 (@code{gnus-article-outlook-rearrange-citation}).
8698
8699 @item W w
8700 @kindex W w (Summary)
8701 @findex gnus-article-fill-cited-article
8702 Do word wrap (@code{gnus-article-fill-cited-article}).
8703
8704 You can give the command a numerical prefix to specify the width to use
8705 when filling.
8706
8707 @item W Q
8708 @kindex W Q (Summary)
8709 @findex gnus-article-fill-long-lines
8710 Fill long lines (@code{gnus-article-fill-long-lines}).
8711
8712 @item W C
8713 @kindex W C (Summary)
8714 @findex gnus-article-capitalize-sentences
8715 Capitalize the first word in each sentence
8716 (@code{gnus-article-capitalize-sentences}).
8717
8718 @item W c
8719 @kindex W c (Summary)
8720 @findex gnus-article-remove-cr
8721 Translate CRLF pairs (i. e., @samp{^M}s on the end of the lines) into LF
8722 (this takes care of DOS line endings), and then translate any remaining
8723 CRs into LF (this takes care of Mac line endings)
8724 (@code{gnus-article-remove-cr}).
8725
8726 @item W q
8727 @kindex W q (Summary)
8728 @findex gnus-article-de-quoted-unreadable
8729 Treat quoted-printable (@code{gnus-article-de-quoted-unreadable}).
8730 Quoted-Printable is one common @acronym{MIME} encoding employed when
8731 sending non-@acronym{ASCII} (i.e., 8-bit) articles.  It typically
8732 makes strings like @samp{d@'ej@`a vu} look like @samp{d=E9j=E0 vu},
8733 which doesn't look very readable to me.  Note that this is usually
8734 done automatically by Gnus if the message in question has a
8735 @code{Content-Transfer-Encoding} header that says that this encoding
8736 has been done.  If a prefix is given, a charset will be asked for.
8737
8738 @item W 6
8739 @kindex W 6 (Summary)
8740 @findex gnus-article-de-base64-unreadable
8741 Treat base64 (@code{gnus-article-de-base64-unreadable}).  Base64 is
8742 one common @acronym{MIME} encoding employed when sending
8743 non-@acronym{ASCII} (i.e., 8-bit) articles.  Note that this is
8744 usually done automatically by Gnus if the message in question has a
8745 @code{Content-Transfer-Encoding} header that says that this encoding
8746 has been done.  If a prefix is given, a charset will be asked for.
8747
8748 @item W Z
8749 @kindex W Z (Summary)
8750 @findex gnus-article-decode-HZ
8751 Treat HZ or HZP (@code{gnus-article-decode-HZ}).  HZ (or HZP) is one
8752 common encoding employed when sending Chinese articles.  It typically
8753 makes strings look like @samp{~@{<:Ky2;S@{#,NpJ)l6HK!#~@}}.
8754
8755 @item W A
8756 @kindex W A (Summary)
8757 @findex gnus-article-treat-ansi-sequences
8758 @cindex @acronym{ANSI} control sequences
8759 Translate @acronym{ANSI} SGR control sequences into overlays or
8760 extents (@code{gnus-article-treat-ansi-sequences}).  @acronym{ANSI}
8761 sequences are used in some Chinese hierarchies for highlighting.
8762
8763 @item W u
8764 @kindex W u (Summary)
8765 @findex gnus-article-unsplit-urls
8766 Remove newlines from within URLs.  Some mailers insert newlines into
8767 outgoing email messages to keep lines short.  This reformatting can
8768 split long URLs onto multiple lines.  Repair those URLs by removing
8769 the newlines (@code{gnus-article-unsplit-urls}).
8770
8771 @item W h
8772 @kindex W h (Summary)
8773 @findex gnus-article-wash-html
8774 Treat @acronym{HTML} (@code{gnus-article-wash-html}).  Note that this is
8775 usually done automatically by Gnus if the message in question has a
8776 @code{Content-Type} header that says that the message is @acronym{HTML}.
8777
8778 If a prefix is given, a charset will be asked for.  If it is a number,
8779 the charset defined in @code{gnus-summary-show-article-charset-alist}
8780 (@pxref{Paging the Article}) will be used.
8781
8782 @vindex gnus-article-wash-function
8783 The default is to use the function specified by
8784 @code{mm-text-html-renderer} (@pxref{Display Customization, ,Display
8785 Customization, emacs-mime, The Emacs MIME Manual}) to convert the
8786 @acronym{HTML}, but this is controlled by the
8787 @code{gnus-article-wash-function} variable.  Pre-defined functions you
8788 can use include:
8789
8790 @table @code
8791 @item w3
8792 Use Emacs/W3.
8793
8794 @item w3m
8795 Use @uref{http://emacs-w3m.namazu.org/, emacs-w3m}.
8796
8797 @item w3m-standalone
8798 Use @uref{http://w3m.sourceforge.net/, w3m}.
8799
8800 @item links
8801 Use @uref{http://links.sf.net/, Links}.
8802
8803 @item lynx
8804 Use @uref{http://lynx.isc.org/, Lynx}.
8805
8806 @item html2text
8807 Use html2text---a simple @acronym{HTML} converter included with Gnus.
8808
8809 @end table
8810
8811 @item W b
8812 @kindex W b (Summary)
8813 @findex gnus-article-add-buttons
8814 Add clickable buttons to the article (@code{gnus-article-add-buttons}).
8815 @xref{Article Buttons}.
8816
8817 @item W B
8818 @kindex W B (Summary)
8819 @findex gnus-article-add-buttons-to-head
8820 Add clickable buttons to the article headers
8821 (@code{gnus-article-add-buttons-to-head}).
8822
8823 @item W p
8824 @kindex W p (Summary)
8825 @findex gnus-article-verify-x-pgp-sig
8826 Verify a signed control message
8827 (@code{gnus-article-verify-x-pgp-sig}).  Control messages such as
8828 @code{newgroup} and @code{checkgroups} are usually signed by the
8829 hierarchy maintainer.  You need to add the @acronym{PGP} public key of
8830 the maintainer to your keyring to verify the
8831 message.@footnote{@acronym{PGP} keys for many hierarchies are
8832 available at @uref{ftp://ftp.isc.org/pub/pgpcontrol/README.html}}
8833
8834 @item W s
8835 @kindex W s (Summary)
8836 @findex gnus-summary-force-verify-and-decrypt
8837 Verify a signed (@acronym{PGP}, @acronym{PGP/MIME} or
8838 @acronym{S/MIME}) message
8839 (@code{gnus-summary-force-verify-and-decrypt}). @xref{Security}.
8840
8841 @item W a
8842 @kindex W a (Summary)
8843 @findex gnus-article-strip-headers-in-body
8844 Strip headers like the @code{X-No-Archive} header from the beginning of
8845 article bodies (@code{gnus-article-strip-headers-in-body}).
8846
8847 @item W E l
8848 @kindex W E l (Summary)
8849 @findex gnus-article-strip-leading-blank-lines
8850 Remove all blank lines from the beginning of the article
8851 (@code{gnus-article-strip-leading-blank-lines}).
8852
8853 @item W E m
8854 @kindex W E m (Summary)
8855 @findex gnus-article-strip-multiple-blank-lines
8856 Replace all blank lines with empty lines and then all multiple empty
8857 lines with a single empty line.
8858 (@code{gnus-article-strip-multiple-blank-lines}).
8859
8860 @item W E t
8861 @kindex W E t (Summary)
8862 @findex gnus-article-remove-trailing-blank-lines
8863 Remove all blank lines at the end of the article
8864 (@code{gnus-article-remove-trailing-blank-lines}).
8865
8866 @item W E a
8867 @kindex W E a (Summary)
8868 @findex gnus-article-strip-blank-lines
8869 Do all the three commands above
8870 (@code{gnus-article-strip-blank-lines}).
8871
8872 @item W E A
8873 @kindex W E A (Summary)
8874 @findex gnus-article-strip-all-blank-lines
8875 Remove all blank lines
8876 (@code{gnus-article-strip-all-blank-lines}).
8877
8878 @item W E s
8879 @kindex W E s (Summary)
8880 @findex gnus-article-strip-leading-space
8881 Remove all white space from the beginning of all lines of the article
8882 body (@code{gnus-article-strip-leading-space}).
8883
8884 @item W E e
8885 @kindex W E e (Summary)
8886 @findex gnus-article-strip-trailing-space
8887 Remove all white space from the end of all lines of the article
8888 body (@code{gnus-article-strip-trailing-space}).
8889
8890 @end table
8891
8892 @xref{Customizing Articles}, for how to wash articles automatically.
8893
8894
8895 @node Article Header
8896 @subsection Article Header
8897
8898 These commands perform various transformations of article header.
8899
8900 @table @kbd
8901
8902 @item W G u
8903 @kindex W G u (Summary)
8904 @findex gnus-article-treat-unfold-headers
8905 Unfold folded header lines (@code{gnus-article-treat-unfold-headers}).
8906
8907 @item W G n
8908 @kindex W G n (Summary)
8909 @findex gnus-article-treat-fold-newsgroups
8910 Fold the @code{Newsgroups} and @code{Followup-To} headers
8911 (@code{gnus-article-treat-fold-newsgroups}).
8912
8913 @item W G f
8914 @kindex W G f (Summary)
8915 @findex gnus-article-treat-fold-headers
8916 Fold all the message headers
8917 (@code{gnus-article-treat-fold-headers}).
8918
8919 @item W E w
8920 @kindex W E w (Summary)
8921 @findex gnus-article-remove-leading-whitespace
8922 Remove excessive whitespace from all headers
8923 (@code{gnus-article-remove-leading-whitespace}).
8924
8925 @end table
8926
8927
8928 @node Article Buttons
8929 @subsection Article Buttons
8930 @cindex buttons
8931
8932 People often include references to other stuff in articles, and it would
8933 be nice if Gnus could just fetch whatever it is that people talk about
8934 with the minimum of fuzz when you hit @kbd{RET} or use the middle mouse
8935 button on these references.
8936
8937 @vindex gnus-button-man-handler
8938 Gnus adds @dfn{buttons} to certain standard references by default:
8939 Well-formed URLs, mail addresses, Message-IDs, Info links, man pages and
8940 Emacs or Gnus related references.  This is controlled by two variables,
8941 one that handles article bodies and one that handles article heads:
8942
8943 @table @code
8944
8945 @item gnus-button-alist
8946 @vindex gnus-button-alist
8947 This is an alist where each entry has this form:
8948
8949 @lisp
8950 (@var{regexp} @var{button-par} @var{use-p} @var{function} @var{data-par})
8951 @end lisp
8952
8953 @table @var
8954
8955 @item regexp
8956 All text that match this regular expression (case insensitive) will be
8957 considered an external reference.  Here's a typical regexp that matches
8958 embedded URLs: @samp{<URL:\\([^\n\r>]*\\)>}.  This can also be a
8959 variable containing a regexp, useful variables to use include
8960 @code{gnus-button-url-regexp} and @code{gnus-button-mid-or-mail-regexp}.
8961
8962 @item button-par
8963 Gnus has to know which parts of the matches is to be highlighted.  This
8964 is a number that says what sub-expression of the regexp is to be
8965 highlighted.  If you want it all highlighted, you use 0 here.
8966
8967 @item use-p
8968 This form will be @code{eval}ed, and if the result is non-@code{nil},
8969 this is considered a match.  This is useful if you want extra sifting to
8970 avoid false matches.  Often variables named
8971 @code{gnus-button-@var{*}-level} are used here, @xref{Article Button
8972 Levels}, but any other form may be used too.
8973
8974 @c @code{use-p} is @code{eval}ed only if @code{regexp} matches.
8975
8976 @item function
8977 This function will be called when you click on this button.
8978
8979 @item data-par
8980 As with @var{button-par}, this is a sub-expression number, but this one
8981 says which part of the match is to be sent as data to @var{function}.
8982
8983 @end table
8984
8985 So the full entry for buttonizing URLs is then
8986
8987 @lisp
8988 ("<URL:\\([^\n\r>]*\\)>" 0 t gnus-button-url 1)
8989 @end lisp
8990
8991 @item gnus-header-button-alist
8992 @vindex gnus-header-button-alist
8993 This is just like the other alist, except that it is applied to the
8994 article head only, and that each entry has an additional element that is
8995 used to say what headers to apply the buttonize coding to:
8996
8997 @lisp
8998 (@var{header} @var{regexp} @var{button-par} @var{use-p} @var{function} @var{data-par})
8999 @end lisp
9000
9001 @var{header} is a regular expression.
9002 @end table
9003
9004 @subsubsection Related variables and functions
9005
9006 @table @code
9007 @item gnus-button-@var{*}-level
9008 @xref{Article Button Levels}.
9009
9010 @c Stuff related to gnus-button-browse-level
9011
9012 @item gnus-button-url-regexp
9013 @vindex gnus-button-url-regexp
9014 A regular expression that matches embedded URLs.  It is used in the
9015 default values of the variables above.
9016
9017 @c Stuff related to gnus-button-man-level
9018
9019 @item gnus-button-man-handler
9020 @vindex gnus-button-man-handler
9021 The function to use for displaying man pages.  It must take at least one
9022 argument with a string naming the man page.
9023
9024 @c Stuff related to gnus-button-message-level
9025
9026 @item gnus-button-mid-or-mail-regexp
9027 @vindex gnus-button-mid-or-mail-regexp
9028 Regular expression that matches a message ID or a mail address.
9029
9030 @item gnus-button-prefer-mid-or-mail
9031 @vindex gnus-button-prefer-mid-or-mail
9032 This variable determines what to do when the button on a string as
9033 @samp{foo123@@bar.invalid} is pushed.  Strings like this can be either a
9034 message ID or a mail address.  If it is one of the symbols @code{mid} or
9035 @code{mail}, Gnus will always assume that the string is a message ID or
9036 a mail address, respectively.  If this variable is set to the symbol
9037 @code{ask}, always query the user what do do.  If it is a function, this
9038 function will be called with the string as its only argument.  The
9039 function must return @code{mid}, @code{mail}, @code{invalid} or
9040 @code{ask}.  The default value is the function
9041 @code{gnus-button-mid-or-mail-heuristic}.
9042
9043 @item gnus-button-mid-or-mail-heuristic
9044 @findex gnus-button-mid-or-mail-heuristic
9045 Function that guesses whether its argument is a message ID or a mail
9046 address.  Returns @code{mid} if it's a message IDs, @code{mail} if
9047 it's a mail address, @code{ask} if unsure and @code{invalid} if the
9048 string is invalid.
9049
9050 @item gnus-button-mid-or-mail-heuristic-alist
9051 @vindex gnus-button-mid-or-mail-heuristic-alist
9052 An alist of @code{(RATE . REGEXP)} pairs used by the function
9053 @code{gnus-button-mid-or-mail-heuristic}.
9054
9055 @c Stuff related to gnus-button-tex-level
9056
9057 @item gnus-button-ctan-handler
9058 @findex gnus-button-ctan-handler
9059 The function to use for displaying CTAN links.  It must take one
9060 argument, the string naming the URL.
9061
9062 @item gnus-ctan-url
9063 @vindex gnus-ctan-url
9064 Top directory of a CTAN (Comprehensive TeX Archive Network) archive used
9065 by @code{gnus-button-ctan-handler}.
9066
9067 @c Misc stuff
9068
9069 @item gnus-article-button-face
9070 @vindex gnus-article-button-face
9071 Face used on buttons.
9072
9073 @item gnus-article-mouse-face
9074 @vindex gnus-article-mouse-face
9075 Face used when the mouse cursor is over a button.
9076
9077 @end table
9078
9079 @xref{Customizing Articles}, for how to buttonize articles automatically.
9080
9081
9082 @node Article Button Levels
9083 @subsection Article button levels
9084 @cindex button levels
9085 The higher the value of the variables @code{gnus-button-@var{*}-level},
9086 the more buttons will appear.  If the level is zero, no corresponding
9087 buttons are displayed.  With the default value (which is 5) you should
9088 already see quite a lot of buttons.  With higher levels, you will see
9089 more buttons, but you may also get more false positives.  To avoid them,
9090 you can set the variables @code{gnus-button-@var{*}-level} local to
9091 specific groups (@pxref{Group Parameters}).  Here's an example for the
9092 variable @code{gnus-parameters}:
9093
9094 @lisp
9095 ;; @r{increase @code{gnus-button-*-level} in some groups:}
9096 (setq gnus-parameters
9097       '(("\\<\\(emacs\\|gnus\\)\\>" (gnus-button-emacs-level 10))
9098         ("\\<unix\\>"               (gnus-button-man-level 10))
9099         ("\\<tex\\>"                (gnus-button-tex-level 10))))
9100 @end lisp
9101
9102 @table @code
9103
9104 @item gnus-button-browse-level
9105 @vindex gnus-button-browse-level
9106 Controls the display of references to message IDs, mail addresses and
9107 news URLs.  Related variables and functions include
9108 @code{gnus-button-url-regexp}, @code{browse-url}, and
9109 @code{browse-url-browser-function}.
9110
9111 @item gnus-button-emacs-level
9112 @vindex gnus-button-emacs-level
9113 Controls the display of Emacs or Gnus references.  Related functions are
9114 @code{gnus-button-handle-custom},
9115 @code{gnus-button-handle-describe-function},
9116 @code{gnus-button-handle-describe-variable},
9117 @code{gnus-button-handle-symbol},
9118 @code{gnus-button-handle-describe-key},
9119 @code{gnus-button-handle-apropos},
9120 @code{gnus-button-handle-apropos-command},
9121 @code{gnus-button-handle-apropos-variable},
9122 @code{gnus-button-handle-apropos-documentation}, and
9123 @code{gnus-button-handle-library}.
9124
9125 @item gnus-button-man-level
9126 @vindex gnus-button-man-level
9127 Controls the display of references to (Unix) man pages.
9128 See @code{gnus-button-man-handler}.
9129
9130 @item gnus-button-message-level
9131 @vindex gnus-button-message-level
9132 Controls the display of message IDs, mail addresses and news URLs.
9133 Related variables and functions include
9134 @code{gnus-button-mid-or-mail-regexp},
9135 @code{gnus-button-prefer-mid-or-mail},
9136 @code{gnus-button-mid-or-mail-heuristic}, and
9137 @code{gnus-button-mid-or-mail-heuristic-alist}.
9138
9139 @item gnus-button-tex-level
9140 @vindex gnus-button-tex-level
9141 Controls the display of references to @TeX{} or LaTeX stuff, e.g. for CTAN
9142 URLs.  See the variables @code{gnus-ctan-url},
9143 @code{gnus-button-ctan-handler},
9144 @code{gnus-button-ctan-directory-regexp}, and
9145 @code{gnus-button-handle-ctan-bogus-regexp}.
9146
9147 @end table
9148
9149
9150 @node Article Date
9151 @subsection Article Date
9152
9153 The date is most likely generated in some obscure timezone you've never
9154 heard of, so it's quite nice to be able to find out what the time was
9155 when the article was sent.
9156
9157 @table @kbd
9158
9159 @item W T u
9160 @kindex W T u (Summary)
9161 @findex gnus-article-date-ut
9162 Display the date in UT (aka. GMT, aka ZULU)
9163 (@code{gnus-article-date-ut}).
9164
9165 @item W T i
9166 @kindex W T i (Summary)
9167 @findex gnus-article-date-iso8601
9168 @cindex ISO 8601
9169 Display the date in international format, aka. ISO 8601
9170 (@code{gnus-article-date-iso8601}).
9171
9172 @item W T l
9173 @kindex W T l (Summary)
9174 @findex gnus-article-date-local
9175 Display the date in the local timezone (@code{gnus-article-date-local}).
9176
9177 @item W T p
9178 @kindex W T p (Summary)
9179 @findex gnus-article-date-english
9180 Display the date in a format that's easily pronounceable in English
9181 (@code{gnus-article-date-english}).
9182
9183 @item W T s
9184 @kindex W T s (Summary)
9185 @vindex gnus-article-time-format
9186 @findex gnus-article-date-user
9187 @findex format-time-string
9188 Display the date using a user-defined format
9189 (@code{gnus-article-date-user}).  The format is specified by the
9190 @code{gnus-article-time-format} variable, and is a string that's passed
9191 to @code{format-time-string}.  See the documentation of that variable
9192 for a list of possible format specs.
9193
9194 @item W T e
9195 @kindex W T e (Summary)
9196 @findex gnus-article-date-lapsed
9197 @findex gnus-start-date-timer
9198 @findex gnus-stop-date-timer
9199 Say how much time has elapsed between the article was posted and now
9200 (@code{gnus-article-date-lapsed}).  It looks something like:
9201
9202 @example
9203 X-Sent: 6 weeks, 4 days, 1 hour, 3 minutes, 8 seconds ago
9204 @end example
9205
9206 @vindex gnus-article-date-lapsed-new-header
9207 The value of @code{gnus-article-date-lapsed-new-header} determines
9208 whether this header will just be added below the old Date one, or will
9209 replace it.
9210
9211 An advantage of using Gnus to read mail is that it converts simple bugs
9212 into wonderful absurdities.
9213
9214 If you want to have this line updated continually, you can put
9215
9216 @lisp
9217 (gnus-start-date-timer)
9218 @end lisp
9219
9220 in your @file{~/.gnus.el} file, or you can run it off of some hook.  If
9221 you want to stop the timer, you can use the @code{gnus-stop-date-timer}
9222 command.
9223
9224 @item W T o
9225 @kindex W T o (Summary)
9226 @findex gnus-article-date-original
9227 Display the original date (@code{gnus-article-date-original}).  This can
9228 be useful if you normally use some other conversion function and are
9229 worried that it might be doing something totally wrong.  Say, claiming
9230 that the article was posted in 1854.  Although something like that is
9231 @emph{totally} impossible.  Don't you trust me? *titter*
9232
9233 @end table
9234
9235 @xref{Customizing Articles}, for how to display the date in your
9236 preferred format automatically.
9237
9238
9239 @node Article Display
9240 @subsection Article Display
9241 @cindex picons
9242 @cindex x-face
9243 @cindex smileys
9244
9245 These commands add various frivolous display gimmicks to the article
9246 buffer in Emacs versions that support them.
9247
9248 @code{X-Face} headers are small black-and-white images supplied by the
9249 message headers (@pxref{X-Face}).
9250
9251 @code{Face} headers are small colored images supplied by the message
9252 headers (@pxref{Face}).
9253
9254 Smileys are those little @samp{:-)} symbols that people like to litter
9255 their messages with (@pxref{Smileys}).
9256
9257 Picons, on the other hand, reside on your own system, and Gnus will
9258 try to match the headers to what you have (@pxref{Picons}).
9259
9260 All these functions are toggles---if the elements already exist,
9261 they'll be removed.
9262
9263 @table @kbd
9264 @item W D x
9265 @kindex W D x (Summary)
9266 @findex gnus-article-display-x-face
9267 Display an @code{X-Face} in the @code{From} header.
9268 (@code{gnus-article-display-x-face}).
9269
9270 @item W D d
9271 @kindex W D d (Summary)
9272 @findex gnus-article-display-face
9273 Display a @code{Face} in the @code{From} header.
9274 (@code{gnus-article-display-face}).
9275
9276 @item W D s
9277 @kindex W D s (Summary)
9278 @findex gnus-treat-smiley
9279 Display smileys (@code{gnus-treat-smiley}).
9280
9281 @item W D f
9282 @kindex W D f (Summary)
9283 @findex gnus-treat-from-picon
9284 Piconify the @code{From} header (@code{gnus-treat-from-picon}).
9285
9286 @item W D m
9287 @kindex W D m (Summary)
9288 @findex gnus-treat-mail-picon
9289 Piconify all mail headers (i. e., @code{Cc}, @code{To})
9290 (@code{gnus-treat-mail-picon}).
9291
9292 @item W D n
9293 @kindex W D n (Summary)
9294 @findex gnus-treat-newsgroups-picon
9295 Piconify all news headers (i. e., @code{Newsgroups} and
9296 @code{Followup-To}) (@code{gnus-treat-newsgroups-picon}).
9297
9298 @item W D D
9299 @kindex W D D (Summary)
9300 @findex gnus-article-remove-images
9301 Remove all images from the article buffer
9302 (@code{gnus-article-remove-images}).
9303
9304 @end table
9305
9306
9307
9308 @node Article Signature
9309 @subsection Article Signature
9310 @cindex signatures
9311 @cindex article signature
9312
9313 @vindex gnus-signature-separator
9314 Each article is divided into two parts---the head and the body.  The
9315 body can be divided into a signature part and a text part.  The variable
9316 that says what is to be considered a signature is
9317 @code{gnus-signature-separator}.  This is normally the standard
9318 @samp{^-- $} as mandated by son-of-RFC 1036.  However, many people use
9319 non-standard signature separators, so this variable can also be a list
9320 of regular expressions to be tested, one by one.  (Searches are done
9321 from the end of the body towards the beginning.)  One likely value is:
9322
9323 @lisp
9324 (setq gnus-signature-separator
9325       '("^-- $"         ; @r{The standard}
9326         "^-- *$"        ; @r{A common mangling}
9327         "^-------*$"    ; @r{Many people just use a looong}
9328                         ; @r{line of dashes.  Shame!}
9329         "^ *--------*$" ; @r{Double-shame!}
9330         "^________*$"   ; @r{Underscores are also popular}
9331         "^========*$")) ; @r{Pervert!}
9332 @end lisp
9333
9334 The more permissive you are, the more likely it is that you'll get false
9335 positives.
9336
9337 @vindex gnus-signature-limit
9338 @code{gnus-signature-limit} provides a limit to what is considered a
9339 signature when displaying articles.
9340
9341 @enumerate
9342 @item
9343 If it is an integer, no signature may be longer (in characters) than
9344 that integer.
9345 @item
9346 If it is a floating point number, no signature may be longer (in lines)
9347 than that number.
9348 @item
9349 If it is a function, the function will be called without any parameters,
9350 and if it returns @code{nil}, there is no signature in the buffer.
9351 @item
9352 If it is a string, it will be used as a regexp.  If it matches, the text
9353 in question is not a signature.
9354 @end enumerate
9355
9356 This variable can also be a list where the elements may be of the types
9357 listed above.  Here's an example:
9358
9359 @lisp
9360 (setq gnus-signature-limit
9361       '(200.0 "^---*Forwarded article"))
9362 @end lisp
9363
9364 This means that if there are more than 200 lines after the signature
9365 separator, or the text after the signature separator is matched by
9366 the regular expression @samp{^---*Forwarded article}, then it isn't a
9367 signature after all.
9368
9369
9370 @node Article Miscellanea
9371 @subsection Article Miscellanea
9372
9373 @table @kbd
9374 @item A t
9375 @kindex A t (Summary)
9376 @findex gnus-article-babel
9377 Translate the article from one language to another
9378 (@code{gnus-article-babel}).
9379
9380 @end table
9381
9382
9383 @node MIME Commands
9384 @section MIME Commands
9385 @cindex MIME decoding
9386 @cindex attachments
9387 @cindex viewing attachments
9388
9389 The following commands all understand the numerical prefix.  For
9390 instance, @kbd{3 K v} means ``view the third @acronym{MIME} part''.
9391
9392 @table @kbd
9393 @item b
9394 @itemx K v
9395 @kindex b (Summary)
9396 @kindex K v (Summary)
9397 View the @acronym{MIME} part.
9398
9399 @item K o
9400 @kindex K o (Summary)
9401 Save the @acronym{MIME} part.
9402
9403 @item K O
9404 @kindex K O (Summary)
9405 Prompt for a file name, then save the @acronym{MIME} part and strip it
9406 from the article.  The stripped @acronym{MIME} object will be referred
9407 via the message/external-body @acronym{MIME} type.
9408
9409 @item K r
9410 @kindex K r (Summary)
9411 Replace the @acronym{MIME} part with an external body.
9412
9413 @item K d
9414 @kindex K d (Summary)
9415 Delete the @acronym{MIME} part and add some information about the
9416 removed part.
9417
9418 @item K c
9419 @kindex K c (Summary)
9420 Copy the @acronym{MIME} part.
9421
9422 @item K e
9423 @kindex K e (Summary)
9424 View the @acronym{MIME} part externally.
9425
9426 @item K i
9427 @kindex K i (Summary)
9428 View the @acronym{MIME} part internally.
9429
9430 @item K |
9431 @kindex K | (Summary)
9432 Pipe the @acronym{MIME} part to an external command.
9433 @end table
9434
9435 The rest of these @acronym{MIME} commands do not use the numerical prefix in
9436 the same manner:
9437
9438 @table @kbd
9439 @item K b
9440 @kindex K b (Summary)
9441 Make all the @acronym{MIME} parts have buttons in front of them.  This is
9442 mostly useful if you wish to save (or perform other actions) on inlined
9443 parts.
9444
9445 @item K m
9446 @kindex K m (Summary)
9447 @findex gnus-summary-repair-multipart
9448 Some multipart messages are transmitted with missing or faulty headers.
9449 This command will attempt to ``repair'' these messages so that they can
9450 be viewed in a more pleasant manner
9451 (@code{gnus-summary-repair-multipart}).
9452
9453 @item X m
9454 @kindex X m (Summary)
9455 @findex gnus-summary-save-parts
9456 Save all parts matching a @acronym{MIME} type to a directory
9457 (@code{gnus-summary-save-parts}).  Understands the process/prefix
9458 convention (@pxref{Process/Prefix}).
9459
9460 @item M-t
9461 @kindex M-t (Summary)
9462 @findex gnus-summary-toggle-display-buttonized
9463 Toggle the buttonized display of the article buffer
9464 (@code{gnus-summary-toggle-display-buttonized}).
9465
9466 @item W M w
9467 @kindex W M w (Summary)
9468 @findex gnus-article-decode-mime-words
9469 Decode RFC 2047-encoded words in the article headers
9470 (@code{gnus-article-decode-mime-words}).
9471
9472 @item W M c
9473 @kindex W M c (Summary)
9474 @findex gnus-article-decode-charset
9475 Decode encoded article bodies as well as charsets
9476 (@code{gnus-article-decode-charset}).
9477
9478 This command looks in the @code{Content-Type} header to determine the
9479 charset.  If there is no such header in the article, you can give it a
9480 prefix, which will prompt for the charset to decode as.  In regional
9481 groups where people post using some common encoding (but do not
9482 include @acronym{MIME} headers), you can set the @code{charset} group/topic
9483 parameter to the required charset (@pxref{Group Parameters}).
9484
9485 @item W M v
9486 @kindex W M v (Summary)
9487 @findex gnus-mime-view-all-parts
9488 View all the @acronym{MIME} parts in the current article
9489 (@code{gnus-mime-view-all-parts}).
9490
9491 @end table
9492
9493 Relevant variables:
9494
9495 @table @code
9496 @item gnus-ignored-mime-types
9497 @vindex gnus-ignored-mime-types
9498 This is a list of regexps.  @acronym{MIME} types that match a regexp from
9499 this list will be completely ignored by Gnus.  The default value is
9500 @code{nil}.
9501
9502 To have all Vcards be ignored, you'd say something like this:
9503
9504 @lisp
9505 (setq gnus-ignored-mime-types
9506       '("text/x-vcard"))
9507 @end lisp
9508
9509 @item gnus-article-loose-mime
9510 @vindex gnus-article-loose-mime
9511 If non-@code{nil}, Gnus won't require the @samp{MIME-Version} header
9512 before interpreting the message as a @acronym{MIME} message.  This helps
9513 when reading messages from certain broken mail user agents.  The
9514 default is @code{nil}.
9515
9516 @item gnus-article-emulate-mime
9517 @vindex gnus-article-emulate-mime
9518 There are other, non-@acronym{MIME} encoding methods used.  The most common
9519 is @samp{uuencode}, but yEncode is also getting to be popular.  If
9520 this variable is non-@code{nil}, Gnus will look in message bodies to
9521 see if it finds these encodings, and if so, it'll run them through the
9522 Gnus @acronym{MIME} machinery.  The default is @code{t}.
9523
9524 @item gnus-unbuttonized-mime-types
9525 @vindex gnus-unbuttonized-mime-types
9526 This is a list of regexps.  @acronym{MIME} types that match a regexp from
9527 this list won't have @acronym{MIME} buttons inserted unless they aren't
9528 displayed or this variable is overridden by
9529 @code{gnus-buttonized-mime-types}.  The default value is
9530 @code{(".*/.*")}.  This variable is only used when
9531 @code{gnus-inhibit-mime-unbuttonizing} is @code{nil}.
9532
9533 @item gnus-buttonized-mime-types
9534 @vindex gnus-buttonized-mime-types
9535 This is a list of regexps.  @acronym{MIME} types that match a regexp from
9536 this list will have @acronym{MIME} buttons inserted unless they aren't
9537 displayed.  This variable overrides
9538 @code{gnus-unbuttonized-mime-types}.  The default value is @code{nil}.
9539 This variable is only used when @code{gnus-inhibit-mime-unbuttonizing}
9540 is @code{nil}.
9541
9542 To see e.g. security buttons but no other buttons, you could set this
9543 variable to @code{("multipart/signed")} and leave
9544 @code{gnus-unbuttonized-mime-types} at the default value.
9545
9546 You could also add @code{"multipart/alternative"} to this list to
9547 display radio buttons that allow you to choose one of two media types
9548 those mails include.  See also @code{mm-discouraged-alternatives}
9549 (@pxref{Display Customization, ,Display Customization, emacs-mime, The
9550 Emacs MIME Manual}).
9551
9552 @item gnus-inhibit-mime-unbuttonizing
9553 @vindex gnus-inhibit-mime-unbuttonizing
9554 If this is non-@code{nil}, then all @acronym{MIME} parts get buttons.  The
9555 default value is @code{nil}.
9556
9557 @item gnus-article-mime-part-function
9558 @vindex gnus-article-mime-part-function
9559 For each @acronym{MIME} part, this function will be called with the @acronym{MIME}
9560 handle as the parameter.  The function is meant to be used to allow
9561 users to gather information from the article (e. g., add Vcard info to
9562 the bbdb database) or to do actions based on parts (e. g., automatically
9563 save all jpegs into some directory).
9564
9565 Here's an example function the does the latter:
9566
9567 @lisp
9568 (defun my-save-all-jpeg-parts (handle)
9569   (when (equal (car (mm-handle-type handle)) "image/jpeg")
9570     (with-temp-buffer
9571       (insert (mm-get-part handle))
9572       (write-region (point-min) (point-max)
9573                     (read-file-name "Save jpeg to: ")))))
9574 (setq gnus-article-mime-part-function
9575       'my-save-all-jpeg-parts)
9576 @end lisp
9577
9578 @vindex gnus-mime-multipart-functions
9579 @item gnus-mime-multipart-functions
9580 Alist of @acronym{MIME} multipart types and functions to handle them.
9581
9582 @vindex gnus-mime-display-multipart-alternative-as-mixed
9583 @item gnus-mime-display-multipart-alternative-as-mixed
9584 Display "multipart/alternative" parts as "multipart/mixed".
9585
9586 @vindex gnus-mime-display-multipart-related-as-mixed
9587 @item gnus-mime-display-multipart-related-as-mixed
9588 Display "multipart/related" parts as "multipart/mixed".
9589
9590 If displaying "text/html" is discouraged, see
9591 @code{mm-discouraged-alternatives}, images or other material inside a
9592 "multipart/related" part might be overlooked when this variable is
9593 @code{nil}.  @ref{Display Customization, Display Customization, ,
9594 emacs-mime, Emacs-Mime Manual}.
9595
9596 @vindex gnus-mime-display-multipart-as-mixed
9597 @item gnus-mime-display-multipart-as-mixed
9598 Display "multipart" parts as "multipart/mixed".  If @code{t}, it
9599 overrides @code{nil} values of
9600 @code{gnus-mime-display-multipart-alternative-as-mixed} and
9601 @code{gnus-mime-display-multipart-related-as-mixed}.
9602
9603 @vindex mm-file-name-rewrite-functions
9604 @item mm-file-name-rewrite-functions
9605 List of functions used for rewriting file names of @acronym{MIME} parts.
9606 Each function takes a file name as input and returns a file name.
9607
9608 Ready-made functions include@*
9609 @code{mm-file-name-delete-whitespace},
9610 @code{mm-file-name-trim-whitespace},
9611 @code{mm-file-name-collapse-whitespace}, and
9612 @code{mm-file-name-replace-whitespace}.  The later uses the value of
9613 the variable @code{mm-file-name-replace-whitespace} to replace each
9614 whitespace character in a file name with that string; default value
9615 is @code{"_"} (a single underscore).
9616 @findex mm-file-name-delete-whitespace
9617 @findex mm-file-name-trim-whitespace
9618 @findex mm-file-name-collapse-whitespace
9619 @findex mm-file-name-replace-whitespace
9620 @vindex mm-file-name-replace-whitespace
9621
9622 The standard functions @code{capitalize}, @code{downcase},
9623 @code{upcase}, and @code{upcase-initials} may be useful, too.
9624
9625 Everybody knows that whitespace characters in file names are evil,
9626 except those who don't know.  If you receive lots of attachments from
9627 such unenlightened users, you can make live easier by adding
9628
9629 @lisp
9630 (setq mm-file-name-rewrite-functions
9631       '(mm-file-name-trim-whitespace
9632         mm-file-name-collapse-whitespace
9633         mm-file-name-replace-whitespace))
9634 @end lisp
9635
9636 @noindent
9637 to your @file{~/.gnus.el} file.
9638
9639 @end table
9640
9641
9642 @node Charsets
9643 @section Charsets
9644 @cindex charsets
9645
9646 People use different charsets, and we have @acronym{MIME} to let us know what
9647 charsets they use.  Or rather, we wish we had.  Many people use
9648 newsreaders and mailers that do not understand or use @acronym{MIME}, and
9649 just send out messages without saying what character sets they use.  To
9650 help a bit with this, some local news hierarchies have policies that say
9651 what character set is the default.  For instance, the @samp{fj}
9652 hierarchy uses @code{iso-2022-jp}.
9653
9654 @vindex gnus-group-charset-alist
9655 This knowledge is encoded in the @code{gnus-group-charset-alist}
9656 variable, which is an alist of regexps (use the first item to match full
9657 group names) and default charsets to be used when reading these groups.
9658
9659 @vindex gnus-newsgroup-ignored-charsets
9660 In addition, some people do use soi-disant @acronym{MIME}-aware agents that
9661 aren't.  These blithely mark messages as being in @code{iso-8859-1}
9662 even if they really are in @code{koi-8}.  To help here, the
9663 @code{gnus-newsgroup-ignored-charsets} variable can be used.  The
9664 charsets that are listed here will be ignored.  The variable can be
9665 set on a group-by-group basis using the group parameters (@pxref{Group
9666 Parameters}).  The default value is @code{(unknown-8bit x-unknown)},
9667 which includes values some agents insist on having in there.
9668
9669 @vindex gnus-group-posting-charset-alist
9670 When posting, @code{gnus-group-posting-charset-alist} is used to
9671 determine which charsets should not be encoded using the @acronym{MIME}
9672 encodings.  For instance, some hierarchies discourage using
9673 quoted-printable header encoding.
9674
9675 This variable is an alist of regexps and permitted unencoded charsets
9676 for posting.  Each element of the alist has the form @code{(}@var{test
9677 header body-list}@code{)}, where:
9678
9679 @table @var
9680 @item test
9681 is either a regular expression matching the newsgroup header or a
9682 variable to query,
9683 @item header
9684 is the charset which may be left unencoded in the header (@code{nil}
9685 means encode all charsets),
9686 @item body-list
9687 is a list of charsets which may be encoded using 8bit content-transfer
9688 encoding in the body, or one of the special values @code{nil} (always
9689 encode using quoted-printable) or @code{t} (always use 8bit).
9690 @end table
9691
9692 @cindex Russian
9693 @cindex koi8-r
9694 @cindex koi8-u
9695 @cindex iso-8859-5
9696 @cindex coding system aliases
9697 @cindex preferred charset
9698
9699 @xref{Encoding Customization, , Encoding Customization, emacs-mime,
9700 The Emacs MIME Manual}, for additional variables that control which
9701 MIME charsets are used when sending messages.
9702
9703 Other charset tricks that may be useful, although not Gnus-specific:
9704
9705 If there are several @acronym{MIME} charsets that encode the same Emacs
9706 charset, you can choose what charset to use by saying the following:
9707
9708 @lisp
9709 (put-charset-property 'cyrillic-iso8859-5
9710                       'preferred-coding-system 'koi8-r)
9711 @end lisp
9712
9713 This means that Russian will be encoded using @code{koi8-r} instead of
9714 the default @code{iso-8859-5} @acronym{MIME} charset.
9715
9716 If you want to read messages in @code{koi8-u}, you can cheat and say
9717
9718 @lisp
9719 (define-coding-system-alias 'koi8-u 'koi8-r)
9720 @end lisp
9721
9722 This will almost do the right thing.
9723
9724 And finally, to read charsets like @code{windows-1251}, you can say
9725 something like
9726
9727 @lisp
9728 (codepage-setup 1251)
9729 (define-coding-system-alias 'windows-1251 'cp1251)
9730 @end lisp
9731
9732
9733 @node Article Commands
9734 @section Article Commands
9735
9736 @table @kbd
9737
9738 @item A P
9739 @cindex PostScript
9740 @cindex printing
9741 @kindex A P (Summary)
9742 @vindex gnus-ps-print-hook
9743 @findex gnus-summary-print-article
9744 Generate and print a PostScript image of the article buffer
9745 (@code{gnus-summary-print-article}).  @code{gnus-ps-print-hook} will
9746 be run just before printing the buffer.  An alternative way to print
9747 article is to use Muttprint (@pxref{Saving Articles}).
9748
9749 @end table
9750
9751
9752 @node Summary Sorting
9753 @section Summary Sorting
9754 @cindex summary sorting
9755
9756 You can have the summary buffer sorted in various ways, even though I
9757 can't really see why you'd want that.
9758
9759 @table @kbd
9760
9761 @item C-c C-s C-n
9762 @kindex C-c C-s C-n (Summary)
9763 @findex gnus-summary-sort-by-number
9764 Sort by article number (@code{gnus-summary-sort-by-number}).
9765
9766 @item C-c C-s C-a
9767 @kindex C-c C-s C-a (Summary)
9768 @findex gnus-summary-sort-by-author
9769 Sort by author (@code{gnus-summary-sort-by-author}).
9770
9771 @item C-c C-s C-t
9772 @kindex C-c C-s C-t (Summary)
9773 @findex gnus-summary-sort-by-recipient
9774 Sort by recipient (@code{gnus-summary-sort-by-recipient}).
9775
9776 @item C-c C-s C-s
9777 @kindex C-c C-s C-s (Summary)
9778 @findex gnus-summary-sort-by-subject
9779 Sort by subject (@code{gnus-summary-sort-by-subject}).
9780
9781 @item C-c C-s C-d
9782 @kindex C-c C-s C-d (Summary)
9783 @findex gnus-summary-sort-by-date
9784 Sort by date (@code{gnus-summary-sort-by-date}).
9785
9786 @item C-c C-s C-l
9787 @kindex C-c C-s C-l (Summary)
9788 @findex gnus-summary-sort-by-lines
9789 Sort by lines (@code{gnus-summary-sort-by-lines}).
9790
9791 @item C-c C-s C-c
9792 @kindex C-c C-s C-c (Summary)
9793 @findex gnus-summary-sort-by-chars
9794 Sort by article length (@code{gnus-summary-sort-by-chars}).
9795
9796 @item C-c C-s C-i
9797 @kindex C-c C-s C-i (Summary)
9798 @findex gnus-summary-sort-by-score
9799 Sort by score (@code{gnus-summary-sort-by-score}).
9800
9801 @item C-c C-s C-r
9802 @kindex C-c C-s C-r (Summary)
9803 @findex gnus-summary-sort-by-random
9804 Randomize (@code{gnus-summary-sort-by-random}).
9805
9806 @item C-c C-s C-o
9807 @kindex C-c C-s C-o (Summary)
9808 @findex gnus-summary-sort-by-original
9809 Sort using the default sorting method
9810 (@code{gnus-summary-sort-by-original}).
9811 @end table
9812
9813 These functions will work both when you use threading and when you don't
9814 use threading.  In the latter case, all summary lines will be sorted,
9815 line by line.  In the former case, sorting will be done on a
9816 root-by-root basis, which might not be what you were looking for.  To
9817 toggle whether to use threading, type @kbd{T T} (@pxref{Thread
9818 Commands}).
9819
9820
9821 @node Finding the Parent
9822 @section Finding the Parent
9823 @cindex parent articles
9824 @cindex referring articles
9825
9826 @table @kbd
9827 @item ^
9828 @kindex ^ (Summary)
9829 @findex gnus-summary-refer-parent-article
9830 If you'd like to read the parent of the current article, and it is not
9831 displayed in the summary buffer, you might still be able to.  That is,
9832 if the current group is fetched by @acronym{NNTP}, the parent hasn't expired
9833 and the @code{References} in the current article are not mangled, you
9834 can just press @kbd{^} or @kbd{A r}
9835 (@code{gnus-summary-refer-parent-article}).  If everything goes well,
9836 you'll get the parent.  If the parent is already displayed in the
9837 summary buffer, point will just move to this article.
9838
9839 If given a positive numerical prefix, fetch that many articles back into
9840 the ancestry.  If given a negative numerical prefix, fetch just that
9841 ancestor.  So if you say @kbd{3 ^}, Gnus will fetch the parent, the
9842 grandparent and the grandgrandparent of the current article.  If you say
9843 @kbd{-3 ^}, Gnus will only fetch the grandgrandparent of the current
9844 article.
9845
9846 @item A R (Summary)
9847 @findex gnus-summary-refer-references
9848 @kindex A R (Summary)
9849 Fetch all articles mentioned in the @code{References} header of the
9850 article (@code{gnus-summary-refer-references}).
9851
9852 @item A T (Summary)
9853 @findex gnus-summary-refer-thread
9854 @kindex A T (Summary)
9855 Display the full thread where the current article appears
9856 (@code{gnus-summary-refer-thread}).  This command has to fetch all the
9857 headers in the current group to work, so it usually takes a while.  If
9858 you do it often, you may consider setting @code{gnus-fetch-old-headers}
9859 to @code{invisible} (@pxref{Filling In Threads}).  This won't have any
9860 visible effects normally, but it'll make this command work a whole lot
9861 faster.  Of course, it'll make group entry somewhat slow.
9862
9863 @vindex gnus-refer-thread-limit
9864 The @code{gnus-refer-thread-limit} variable says how many old (i. e.,
9865 articles before the first displayed in the current group) headers to
9866 fetch when doing this command.  The default is 200.  If @code{t}, all
9867 the available headers will be fetched.  This variable can be overridden
9868 by giving the @kbd{A T} command a numerical prefix.
9869
9870 @item M-^ (Summary)
9871 @findex gnus-summary-refer-article
9872 @kindex M-^ (Summary)
9873 @cindex Message-ID
9874 @cindex fetching by Message-ID
9875 You can also ask Gnus for an arbitrary article, no matter what group it
9876 belongs to.  @kbd{M-^} (@code{gnus-summary-refer-article}) will ask you
9877 for a @code{Message-ID}, which is one of those long, hard-to-read
9878 thingies that look something like @samp{<38o6up$6f2@@hymir.ifi.uio.no>}.
9879 You have to get it all exactly right.  No fuzzy searches, I'm afraid.
9880
9881 Gnus looks for the @code{Message-ID} in the headers that have already
9882 been fetched, but also tries all the select methods specified by
9883 @code{gnus-refer-article-method} if it is not found.
9884 @end table
9885
9886 @vindex gnus-refer-article-method
9887 If the group you are reading is located on a back end that does not
9888 support fetching by @code{Message-ID} very well (like @code{nnspool}),
9889 you can set @code{gnus-refer-article-method} to an @acronym{NNTP} method.  It
9890 would, perhaps, be best if the @acronym{NNTP} server you consult is the one
9891 updating the spool you are reading from, but that's not really
9892 necessary.
9893
9894 It can also be a list of select methods, as well as the special symbol
9895 @code{current}, which means to use the current select method.  If it
9896 is a list, Gnus will try all the methods in the list until it finds a
9897 match.
9898
9899 Here's an example setting that will first try the current method, and
9900 then ask Google if that fails:
9901
9902 @lisp
9903 (setq gnus-refer-article-method
9904       '(current
9905         (nnweb "google" (nnweb-type google))))
9906 @end lisp
9907
9908 Most of the mail back ends support fetching by @code{Message-ID}, but
9909 do not do a particularly excellent job at it.  That is, @code{nnmbox},
9910 @code{nnbabyl}, @code{nnmaildir}, @code{nnml}, are able to locate
9911 articles from any groups, while @code{nnfolder}, and @code{nnimap} are
9912 only able to locate articles that have been posted to the current
9913 group.  (Anything else would be too time consuming.)  @code{nnmh} does
9914 not support this at all.
9915
9916
9917 @node Alternative Approaches
9918 @section Alternative Approaches
9919
9920 Different people like to read news using different methods.  This being
9921 Gnus, we offer a small selection of minor modes for the summary buffers.
9922
9923 @menu
9924 * Pick and Read::               First mark articles and then read them.
9925 * Binary Groups::               Auto-decode all articles.
9926 @end menu
9927
9928
9929 @node Pick and Read
9930 @subsection Pick and Read
9931 @cindex pick and read
9932
9933 Some newsreaders (like @code{nn} and, uhm, @code{Netnews} on VM/CMS) use
9934 a two-phased reading interface.  The user first marks in a summary
9935 buffer the articles she wants to read.  Then she starts reading the
9936 articles with just an article buffer displayed.
9937
9938 @findex gnus-pick-mode
9939 @kindex M-x gnus-pick-mode
9940 Gnus provides a summary buffer minor mode that allows
9941 this---@code{gnus-pick-mode}.  This basically means that a few process
9942 mark commands become one-keystroke commands to allow easy marking, and
9943 it provides one additional command for switching to the summary buffer.
9944
9945 Here are the available keystrokes when using pick mode:
9946
9947 @table @kbd
9948 @item .
9949 @kindex . (Pick)
9950 @findex gnus-pick-article-or-thread
9951 Pick the article or thread on the current line
9952 (@code{gnus-pick-article-or-thread}).  If the variable
9953 @code{gnus-thread-hide-subtree} is true, then this key selects the
9954 entire thread when used at the first article of the thread.  Otherwise,
9955 it selects just the article.  If given a numerical prefix, go to that
9956 thread or article and pick it.  (The line number is normally displayed
9957 at the beginning of the summary pick lines.)
9958
9959 @item SPACE
9960 @kindex SPACE (Pick)
9961 @findex gnus-pick-next-page
9962 Scroll the summary buffer up one page (@code{gnus-pick-next-page}).  If
9963 at the end of the buffer, start reading the picked articles.
9964
9965 @item u
9966 @kindex u (Pick)
9967 @findex gnus-pick-unmark-article-or-thread.
9968 Unpick the thread or article
9969 (@code{gnus-pick-unmark-article-or-thread}).  If the variable
9970 @code{gnus-thread-hide-subtree} is true, then this key unpicks the
9971 thread if used at the first article of the thread.  Otherwise it unpicks
9972 just the article.  You can give this key a numerical prefix to unpick
9973 the thread or article at that line.
9974
9975 @item RET
9976 @kindex RET (Pick)
9977 @findex gnus-pick-start-reading
9978 @vindex gnus-pick-display-summary
9979 Start reading the picked articles (@code{gnus-pick-start-reading}).  If
9980 given a prefix, mark all unpicked articles as read first.  If
9981 @code{gnus-pick-display-summary} is non-@code{nil}, the summary buffer
9982 will still be visible when you are reading.
9983
9984 @end table
9985
9986 All the normal summary mode commands are still available in the
9987 pick-mode, with the exception of @kbd{u}.  However @kbd{!} is available
9988 which is mapped to the same function
9989 @code{gnus-summary-tick-article-forward}.
9990
9991 If this sounds like a good idea to you, you could say:
9992
9993 @lisp
9994 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
9995 @end lisp
9996
9997 @vindex gnus-pick-mode-hook
9998 @code{gnus-pick-mode-hook} is run in pick minor mode buffers.
9999
10000 @vindex gnus-mark-unpicked-articles-as-read
10001 If @code{gnus-mark-unpicked-articles-as-read} is non-@code{nil}, mark
10002 all unpicked articles as read.  The default is @code{nil}.
10003
10004 @vindex gnus-summary-pick-line-format
10005 The summary line format in pick mode is slightly different from the
10006 standard format.  At the beginning of each line the line number is
10007 displayed.  The pick mode line format is controlled by the
10008 @code{gnus-summary-pick-line-format} variable (@pxref{Formatting
10009 Variables}).  It accepts the same format specs that
10010 @code{gnus-summary-line-format} does (@pxref{Summary Buffer Lines}).
10011
10012
10013 @node Binary Groups
10014 @subsection Binary Groups
10015 @cindex binary groups
10016
10017 @findex gnus-binary-mode
10018 @kindex M-x gnus-binary-mode
10019 If you spend much time in binary groups, you may grow tired of hitting
10020 @kbd{X u}, @kbd{n}, @kbd{RET} all the time.  @kbd{M-x gnus-binary-mode}
10021 is a minor mode for summary buffers that makes all ordinary Gnus article
10022 selection functions uudecode series of articles and display the result
10023 instead of just displaying the articles the normal way.
10024
10025 @kindex g (Binary)
10026 @findex gnus-binary-show-article
10027 The only way, in fact, to see the actual articles is the @kbd{g}
10028 command, when you have turned on this mode
10029 (@code{gnus-binary-show-article}).
10030
10031 @vindex gnus-binary-mode-hook
10032 @code{gnus-binary-mode-hook} is called in binary minor mode buffers.
10033
10034
10035 @node Tree Display
10036 @section Tree Display
10037 @cindex trees
10038
10039 @vindex gnus-use-trees
10040 If you don't like the normal Gnus summary display, you might try setting
10041 @code{gnus-use-trees} to @code{t}.  This will create (by default) an
10042 additional @dfn{tree buffer}.  You can execute all summary mode commands
10043 in the tree buffer.
10044
10045 There are a few variables to customize the tree display, of course:
10046
10047 @table @code
10048 @item gnus-tree-mode-hook
10049 @vindex gnus-tree-mode-hook
10050 A hook called in all tree mode buffers.
10051
10052 @item gnus-tree-mode-line-format
10053 @vindex gnus-tree-mode-line-format
10054 A format string for the mode bar in the tree mode buffers (@pxref{Mode
10055 Line Formatting}).  The default is @samp{Gnus: %%b %S %Z}.  For a list
10056 of valid specs, @pxref{Summary Buffer Mode Line}.
10057
10058 @item gnus-selected-tree-face
10059 @vindex gnus-selected-tree-face
10060 Face used for highlighting the selected article in the tree buffer.  The
10061 default is @code{modeline}.
10062
10063 @item gnus-tree-line-format
10064 @vindex gnus-tree-line-format
10065 A format string for the tree nodes.  The name is a bit of a misnomer,
10066 though---it doesn't define a line, but just the node.  The default value
10067 is @samp{%(%[%3,3n%]%)}, which displays the first three characters of
10068 the name of the poster.  It is vital that all nodes are of the same
10069 length, so you @emph{must} use @samp{%4,4n}-like specifiers.
10070
10071 Valid specs are:
10072
10073 @table @samp
10074 @item n
10075 The name of the poster.
10076 @item f
10077 The @code{From} header.
10078 @item N
10079 The number of the article.
10080 @item [
10081 The opening bracket.
10082 @item ]
10083 The closing bracket.
10084 @item s
10085 The subject.
10086 @end table
10087
10088 @xref{Formatting Variables}.
10089
10090 Variables related to the display are:
10091
10092 @table @code
10093 @item gnus-tree-brackets
10094 @vindex gnus-tree-brackets
10095 This is used for differentiating between ``real'' articles and
10096 ``sparse'' articles.  The format is
10097 @example
10098 ((@var{real-open} . @var{real-close})
10099  (@var{sparse-open} . @var{sparse-close})
10100  (@var{dummy-open} . @var{dummy-close}))
10101 @end example
10102 and the default is @code{((?[ . ?]) (?( . ?)) (?@{ . ?@}) (?< . ?>))}.
10103
10104 @item gnus-tree-parent-child-edges
10105 @vindex gnus-tree-parent-child-edges
10106 This is a list that contains the characters used for connecting parent
10107 nodes to their children.  The default is @code{(?- ?\\ ?|)}.
10108
10109 @end table
10110
10111 @item gnus-tree-minimize-window
10112 @vindex gnus-tree-minimize-window
10113 If this variable is non-@code{nil}, Gnus will try to keep the tree
10114 buffer as small as possible to allow more room for the other Gnus
10115 windows.  If this variable is a number, the tree buffer will never be
10116 higher than that number.  The default is @code{t}.  Note that if you
10117 have several windows displayed side-by-side in a frame and the tree
10118 buffer is one of these, minimizing the tree window will also resize all
10119 other windows displayed next to it.
10120
10121 You may also wish to add the following hook to keep the window minimized
10122 at all times:
10123
10124 @lisp
10125 (add-hook 'gnus-configure-windows-hook
10126           'gnus-tree-perhaps-minimize)
10127 @end lisp
10128
10129 @item gnus-generate-tree-function
10130 @vindex gnus-generate-tree-function
10131 @findex gnus-generate-horizontal-tree
10132 @findex gnus-generate-vertical-tree
10133 The function that actually generates the thread tree.  Two predefined
10134 functions are available: @code{gnus-generate-horizontal-tree} and
10135 @code{gnus-generate-vertical-tree} (which is the default).
10136
10137 @end table
10138
10139 Here's an example from a horizontal tree buffer:
10140
10141 @example
10142 @{***@}-(***)-[odd]-[Gun]
10143      |      \[Jan]
10144      |      \[odd]-[Eri]
10145      |      \(***)-[Eri]
10146      |            \[odd]-[Paa]
10147      \[Bjo]
10148      \[Gun]
10149      \[Gun]-[Jor]
10150 @end example
10151
10152 Here's the same thread displayed in a vertical tree buffer:
10153
10154 @example
10155 @group
10156 @{***@}
10157   |--------------------------\-----\-----\
10158 (***)                         [Bjo] [Gun] [Gun]
10159   |--\-----\-----\                          |
10160 [odd] [Jan] [odd] (***)                   [Jor]
10161   |           |     |--\
10162 [Gun]       [Eri] [Eri] [odd]
10163                           |
10164                         [Paa]
10165 @end group
10166 @end example
10167
10168 If you're using horizontal trees, it might be nice to display the trees
10169 side-by-side with the summary buffer.  You could add something like the
10170 following to your @file{~/.gnus.el} file:
10171
10172 @lisp
10173 (setq gnus-use-trees t
10174       gnus-generate-tree-function 'gnus-generate-horizontal-tree
10175       gnus-tree-minimize-window nil)
10176 (gnus-add-configuration
10177  '(article
10178    (vertical 1.0
10179              (horizontal 0.25
10180                          (summary 0.75 point)
10181                          (tree 1.0))
10182              (article 1.0))))
10183 @end lisp
10184
10185 @xref{Window Layout}.
10186
10187
10188 @node Mail Group Commands
10189 @section Mail Group Commands
10190 @cindex mail group commands
10191
10192 Some commands only make sense in mail groups.  If these commands are
10193 invalid in the current group, they will raise a hell and let you know.
10194
10195 All these commands (except the expiry and edit commands) use the
10196 process/prefix convention (@pxref{Process/Prefix}).
10197
10198 @table @kbd
10199
10200 @item B e
10201 @kindex B e (Summary)
10202 @findex gnus-summary-expire-articles
10203 Run all expirable articles in the current group through the expiry
10204 process (@code{gnus-summary-expire-articles}).  That is, delete all
10205 expirable articles in the group that have been around for a while.
10206 (@pxref{Expiring Mail}).
10207
10208 @item B C-M-e
10209 @kindex B C-M-e (Summary)
10210 @findex gnus-summary-expire-articles-now
10211 Delete all the expirable articles in the group
10212 (@code{gnus-summary-expire-articles-now}).  This means that @strong{all}
10213 articles eligible for expiry in the current group will
10214 disappear forever into that big @file{/dev/null} in the sky.
10215
10216 @item B DEL
10217 @kindex B DEL (Summary)
10218 @findex gnus-summary-delete-article
10219 @c @icon{gnus-summary-mail-delete}
10220 Delete the mail article.  This is ``delete'' as in ``delete it from your
10221 disk forever and ever, never to return again.'' Use with caution.
10222 (@code{gnus-summary-delete-article}).
10223
10224 @item B m
10225 @kindex B m (Summary)
10226 @cindex move mail
10227 @findex gnus-summary-move-article
10228 @vindex gnus-preserve-marks
10229 Move the article from one mail group to another
10230 (@code{gnus-summary-move-article}).  Marks will be preserved if
10231 @code{gnus-preserve-marks} is non-@code{nil} (which is the default).
10232
10233 @item B c
10234 @kindex B c (Summary)
10235 @cindex copy mail
10236 @findex gnus-summary-copy-article
10237 @c @icon{gnus-summary-mail-copy}
10238 Copy the article from one group (mail group or not) to a mail group
10239 (@code{gnus-summary-copy-article}).  Marks will be preserved if
10240 @code{gnus-preserve-marks} is non-@code{nil} (which is the default).
10241
10242 @item B B
10243 @kindex B B (Summary)
10244 @cindex crosspost mail
10245 @findex gnus-summary-crosspost-article
10246 Crosspost the current article to some other group
10247 (@code{gnus-summary-crosspost-article}).  This will create a new copy of
10248 the article in the other group, and the Xref headers of the article will
10249 be properly updated.
10250
10251 @item B i
10252 @kindex B i (Summary)
10253 @findex gnus-summary-import-article
10254 Import an arbitrary file into the current mail newsgroup
10255 (@code{gnus-summary-import-article}).  You will be prompted for a file
10256 name, a @code{From} header and a @code{Subject} header.
10257
10258 @item B I
10259 @kindex B I (Summary)
10260 @findex gnus-summary-create-article
10261 Create an empty article in the current mail newsgroups
10262 (@code{gnus-summary-create-article}).  You will be prompted for a
10263 @code{From} header and a @code{Subject} header.
10264
10265 @item B r
10266 @kindex B r (Summary)
10267 @findex gnus-summary-respool-article
10268 @vindex gnus-summary-respool-default-method
10269 Respool the mail article (@code{gnus-summary-respool-article}).
10270 @code{gnus-summary-respool-default-method} will be used as the default
10271 select method when respooling.  This variable is @code{nil} by default,
10272 which means that the current group select method will be used instead.
10273 Marks will be preserved if @code{gnus-preserve-marks} is non-@code{nil}
10274 (which is the default).
10275
10276 @item B w
10277 @itemx e
10278 @kindex B w (Summary)
10279 @kindex e (Summary)
10280 @findex gnus-summary-edit-article
10281 @kindex C-c C-c (Article)
10282 @findex gnus-summary-edit-article-done
10283 Edit the current article (@code{gnus-summary-edit-article}).  To finish
10284 editing and make the changes permanent, type @kbd{C-c C-c}
10285 (@code{gnus-summary-edit-article-done}).  If you give a prefix to the
10286 @kbd{C-c C-c} command, Gnus won't re-highlight the article.
10287
10288 @item B q
10289 @kindex B q (Summary)
10290 @findex gnus-summary-respool-query
10291 If you want to re-spool an article, you might be curious as to what group
10292 the article will end up in before you do the re-spooling.  This command
10293 will tell you (@code{gnus-summary-respool-query}).
10294
10295 @item B t
10296 @kindex B t (Summary)
10297 @findex gnus-summary-respool-trace
10298 Similarly, this command will display all fancy splitting patterns used
10299 when respooling, if any (@code{gnus-summary-respool-trace}).
10300
10301 @item B p
10302 @kindex B p (Summary)
10303 @findex gnus-summary-article-posted-p
10304 Some people have a tendency to send you ``courtesy'' copies when they
10305 follow up to articles you have posted.  These usually have a
10306 @code{Newsgroups} header in them, but not always.  This command
10307 (@code{gnus-summary-article-posted-p}) will try to fetch the current
10308 article from your news server (or rather, from
10309 @code{gnus-refer-article-method} or @code{gnus-select-method}) and will
10310 report back whether it found the article or not.  Even if it says that
10311 it didn't find the article, it may have been posted anyway---mail
10312 propagation is much faster than news propagation, and the news copy may
10313 just not have arrived yet.
10314
10315 @item K E
10316 @kindex K E (Summary)
10317 @findex gnus-article-encrypt-body
10318 @vindex gnus-article-encrypt-protocol
10319 Encrypt the body of an article (@code{gnus-article-encrypt-body}).
10320 The body is encrypted with the encryption protocol specified by the
10321 variable @code{gnus-article-encrypt-protocol}.
10322
10323 @end table
10324
10325 @vindex gnus-move-split-methods
10326 @cindex moving articles
10327 If you move (or copy) articles regularly, you might wish to have Gnus
10328 suggest where to put the articles.  @code{gnus-move-split-methods} is a
10329 variable that uses the same syntax as @code{gnus-split-methods}
10330 (@pxref{Saving Articles}).  You may customize that variable to create
10331 suggestions you find reasonable.  (Note that
10332 @code{gnus-move-split-methods} uses group names where
10333 @code{gnus-split-methods} uses file names.)
10334
10335 @lisp
10336 (setq gnus-move-split-methods
10337       '(("^From:.*Lars Magne" "nnml:junk")
10338         ("^Subject:.*gnus" "nnfolder:important")
10339         (".*" "nnml:misc")))
10340 @end lisp
10341
10342
10343 @node Various Summary Stuff
10344 @section Various Summary Stuff
10345
10346 @menu
10347 * Summary Group Information::   Information oriented commands.
10348 * Searching for Articles::      Multiple article commands.
10349 * Summary Generation Commands::
10350 * Really Various Summary Commands::  Those pesky non-conformant commands.
10351 @end menu
10352
10353 @table @code
10354 @vindex gnus-summary-display-while-building
10355 @item gnus-summary-display-while-building
10356 If non-@code{nil}, show and update the summary buffer as it's being
10357 built.  If @code{t}, update the buffer after every line is inserted.
10358 If the value is an integer, @var{n}, update the display every @var{n}
10359 lines.  The default is @code{nil}.
10360
10361 @vindex gnus-summary-display-arrow
10362 @item gnus-summary-display-arrow
10363 If non-@code{nil}, display an arrow in the fringe to indicate the
10364 current article.
10365
10366 @vindex gnus-summary-mode-hook
10367 @item gnus-summary-mode-hook
10368 This hook is called when creating a summary mode buffer.
10369
10370 @vindex gnus-summary-generate-hook
10371 @item gnus-summary-generate-hook
10372 This is called as the last thing before doing the threading and the
10373 generation of the summary buffer.  It's quite convenient for customizing
10374 the threading variables based on what data the newsgroup has.  This hook
10375 is called from the summary buffer after most summary buffer variables
10376 have been set.
10377
10378 @vindex gnus-summary-prepare-hook
10379 @item gnus-summary-prepare-hook
10380 It is called after the summary buffer has been generated.  You might use
10381 it to, for instance, highlight lines or modify the look of the buffer in
10382 some other ungodly manner.  I don't care.
10383
10384 @vindex gnus-summary-prepared-hook
10385 @item gnus-summary-prepared-hook
10386 A hook called as the very last thing after the summary buffer has been
10387 generated.
10388
10389 @vindex gnus-summary-ignore-duplicates
10390 @item gnus-summary-ignore-duplicates
10391 When Gnus discovers two articles that have the same @code{Message-ID},
10392 it has to do something drastic.  No articles are allowed to have the
10393 same @code{Message-ID}, but this may happen when reading mail from some
10394 sources.  Gnus allows you to customize what happens with this variable.
10395 If it is @code{nil} (which is the default), Gnus will rename the
10396 @code{Message-ID} (for display purposes only) and display the article as
10397 any other article.  If this variable is @code{t}, it won't display the
10398 article---it'll be as if it never existed.
10399
10400 @vindex gnus-alter-articles-to-read-function
10401 @item gnus-alter-articles-to-read-function
10402 This function, which takes two parameters (the group name and the list
10403 of articles to be selected), is called to allow the user to alter the
10404 list of articles to be selected.
10405
10406 For instance, the following function adds the list of cached articles to
10407 the list in one particular group:
10408
10409 @lisp
10410 (defun my-add-cached-articles (group articles)
10411   (if (string= group "some.group")
10412       (append gnus-newsgroup-cached articles)
10413     articles))
10414 @end lisp
10415
10416 @vindex gnus-newsgroup-variables
10417 @item gnus-newsgroup-variables
10418 A list of newsgroup (summary buffer) local variables, or cons of
10419 variables and their default expressions to be evalled (when the default
10420 values are not @code{nil}), that should be made global while the summary
10421 buffer is active.
10422
10423 Note: The default expressions will be evaluated (using function
10424 @code{eval}) before assignment to the local variable rather than just
10425 assigned to it.  If the default expression is the symbol @code{global},
10426 that symbol will not be evaluated but the global value of the local
10427 variable will be used instead.
10428
10429 These variables can be used to set variables in the group parameters
10430 while still allowing them to affect operations done in other
10431 buffers.  For example:
10432
10433 @lisp
10434 (setq gnus-newsgroup-variables
10435       '(message-use-followup-to
10436         (gnus-visible-headers .
10437  "^From:\\|^Newsgroups:\\|^Subject:\\|^Date:\\|^To:")))
10438 @end lisp
10439
10440 Also @pxref{Group Parameters}.
10441 @end table
10442
10443
10444 @node Summary Group Information
10445 @subsection Summary Group Information
10446
10447 @table @kbd
10448
10449 @item H f
10450 @kindex H f (Summary)
10451 @findex gnus-summary-fetch-faq
10452 @vindex gnus-group-faq-directory
10453 Try to fetch the @acronym{FAQ} (list of frequently asked questions)
10454 for the current group (@code{gnus-summary-fetch-faq}).  Gnus will try
10455 to get the @acronym{FAQ} from @code{gnus-group-faq-directory}, which
10456 is usually a directory on a remote machine.  This variable can also be
10457 a list of directories.  In that case, giving a prefix to this command
10458 will allow you to choose between the various sites.  @code{ange-ftp}
10459 or @code{efs} will probably be used for fetching the file.
10460
10461 @item H d
10462 @kindex H d (Summary)
10463 @findex gnus-summary-describe-group
10464 Give a brief description of the current group
10465 (@code{gnus-summary-describe-group}).  If given a prefix, force
10466 rereading the description from the server.
10467
10468 @item H h
10469 @kindex H h (Summary)
10470 @findex gnus-summary-describe-briefly
10471 Give an extremely brief description of the most important summary
10472 keystrokes (@code{gnus-summary-describe-briefly}).
10473
10474 @item H i
10475 @kindex H i (Summary)
10476 @findex gnus-info-find-node
10477 Go to the Gnus info node (@code{gnus-info-find-node}).
10478 @end table
10479
10480
10481 @node Searching for Articles
10482 @subsection Searching for Articles
10483
10484 @table @kbd
10485
10486 @item M-s
10487 @kindex M-s (Summary)
10488 @findex gnus-summary-search-article-forward
10489 Search through all subsequent (raw) articles for a regexp
10490 (@code{gnus-summary-search-article-forward}).
10491
10492 @item M-r
10493 @kindex M-r (Summary)
10494 @findex gnus-summary-search-article-backward
10495 Search through all previous (raw) articles for a regexp
10496 (@code{gnus-summary-search-article-backward}).
10497
10498 @item M-S
10499 @kindex M-S (Summary)
10500 @findex gnus-summary-repeat-search-article-forward
10501 Repeat the previous search forwards
10502 (@code{gnus-summary-repeat-search-article-forward}).
10503
10504 @item M-R
10505 @kindex M-R (Summary)
10506 @findex gnus-summary-repeat-search-article-backward
10507 Repeat the previous search backwards
10508 (@code{gnus-summary-repeat-search-article-backward}).
10509
10510 @item &
10511 @kindex & (Summary)
10512 @findex gnus-summary-execute-command
10513 This command will prompt you for a header, a regular expression to match
10514 on this field, and a command to be executed if the match is made
10515 (@code{gnus-summary-execute-command}).  If the header is an empty
10516 string, the match is done on the entire article.  If given a prefix,
10517 search backward instead.
10518
10519 For instance, @kbd{& RET some.*string RET #} will put the process mark on
10520 all articles that have heads or bodies that match @samp{some.*string}.
10521
10522 @item M-&
10523 @kindex M-& (Summary)
10524 @findex gnus-summary-universal-argument
10525 Perform any operation on all articles that have been marked with
10526 the process mark (@code{gnus-summary-universal-argument}).
10527 @end table
10528
10529 @node Summary Generation Commands
10530 @subsection Summary Generation Commands
10531
10532 @table @kbd
10533
10534 @item Y g
10535 @kindex Y g (Summary)
10536 @findex gnus-summary-prepare
10537 Regenerate the current summary buffer (@code{gnus-summary-prepare}).
10538
10539 @item Y c
10540 @kindex Y c (Summary)
10541 @findex gnus-summary-insert-cached-articles
10542 Pull all cached articles (for the current group) into the summary buffer
10543 (@code{gnus-summary-insert-cached-articles}).
10544
10545 @item Y d
10546 @kindex Y d (Summary)
10547 @findex gnus-summary-insert-dormant-articles
10548 Pull all dormant articles (for the current group) into the summary buffer
10549 (@code{gnus-summary-insert-dormant-articles}).
10550
10551 @end table
10552
10553
10554 @node Really Various Summary Commands
10555 @subsection Really Various Summary Commands
10556
10557 @table @kbd
10558
10559 @item A D
10560 @itemx C-d
10561 @kindex C-d (Summary)
10562 @kindex A D (Summary)
10563 @findex gnus-summary-enter-digest-group
10564 If the current article is a collection of other articles (for instance,
10565 a digest), you might use this command to enter a group based on the that
10566 article (@code{gnus-summary-enter-digest-group}).  Gnus will try to
10567 guess what article type is currently displayed unless you give a prefix
10568 to this command, which forces a ``digest'' interpretation.  Basically,
10569 whenever you see a message that is a collection of other messages of
10570 some format, you @kbd{C-d} and read these messages in a more convenient
10571 fashion.
10572
10573 @item C-M-d
10574 @kindex C-M-d (Summary)
10575 @findex gnus-summary-read-document
10576 This command is very similar to the one above, but lets you gather
10577 several documents into one biiig group
10578 (@code{gnus-summary-read-document}).  It does this by opening several
10579 @code{nndoc} groups for each document, and then opening an
10580 @code{nnvirtual} group on top of these @code{nndoc} groups.  This
10581 command understands the process/prefix convention
10582 (@pxref{Process/Prefix}).
10583
10584 @item C-t
10585 @kindex C-t (Summary)
10586 @findex gnus-summary-toggle-truncation
10587 Toggle truncation of summary lines
10588 (@code{gnus-summary-toggle-truncation}).  This will probably confuse the
10589 line centering function in the summary buffer, so it's not a good idea
10590 to have truncation switched off while reading articles.
10591
10592 @item =
10593 @kindex = (Summary)
10594 @findex gnus-summary-expand-window
10595 Expand the summary buffer window (@code{gnus-summary-expand-window}).
10596 If given a prefix, force an @code{article} window configuration.
10597
10598 @item C-M-e
10599 @kindex C-M-e (Summary)
10600 @findex gnus-summary-edit-parameters
10601 Edit the group parameters (@pxref{Group Parameters}) of the current
10602 group (@code{gnus-summary-edit-parameters}).
10603
10604 @item C-M-a
10605 @kindex C-M-a (Summary)
10606 @findex gnus-summary-customize-parameters
10607 Customize the group parameters (@pxref{Group Parameters}) of the current
10608 group (@code{gnus-summary-customize-parameters}).
10609
10610 @end table
10611
10612
10613 @node Exiting the Summary Buffer
10614 @section Exiting the Summary Buffer
10615 @cindex summary exit
10616 @cindex exiting groups
10617
10618 Exiting from the summary buffer will normally update all info on the
10619 group and return you to the group buffer.
10620
10621 @table @kbd
10622
10623 @item Z Z
10624 @itemx Z Q
10625 @itemx q
10626 @kindex Z Z (Summary)
10627 @kindex Z Q (Summary)
10628 @kindex q (Summary)
10629 @findex gnus-summary-exit
10630 @vindex gnus-summary-exit-hook
10631 @vindex gnus-summary-prepare-exit-hook
10632 @vindex gnus-group-no-more-groups-hook
10633 @c @icon{gnus-summary-exit}
10634 Exit the current group and update all information on the group
10635 (@code{gnus-summary-exit}).  @code{gnus-summary-prepare-exit-hook} is
10636 called before doing much of the exiting, which calls
10637 @code{gnus-summary-expire-articles} by default.
10638 @code{gnus-summary-exit-hook} is called after finishing the exit
10639 process.  @code{gnus-group-no-more-groups-hook} is run when returning to
10640 group mode having no more (unread) groups.
10641
10642 @item Z E
10643 @itemx Q
10644 @kindex Z E (Summary)
10645 @kindex Q (Summary)
10646 @findex gnus-summary-exit-no-update
10647 Exit the current group without updating any information on the group
10648 (@code{gnus-summary-exit-no-update}).
10649
10650 @item Z c
10651 @itemx c
10652 @kindex Z c (Summary)
10653 @kindex c (Summary)
10654 @findex gnus-summary-catchup-and-exit
10655 @c @icon{gnus-summary-catchup-and-exit}
10656 Mark all unticked articles in the group as read and then exit
10657 (@code{gnus-summary-catchup-and-exit}).
10658
10659 @item Z C
10660 @kindex Z C (Summary)
10661 @findex gnus-summary-catchup-all-and-exit
10662 Mark all articles, even the ticked ones, as read and then exit
10663 (@code{gnus-summary-catchup-all-and-exit}).
10664
10665 @item Z n
10666 @kindex Z n (Summary)
10667 @findex gnus-summary-catchup-and-goto-next-group
10668 Mark all articles as read and go to the next group
10669 (@code{gnus-summary-catchup-and-goto-next-group}).
10670
10671 @item Z p
10672 @kindex Z p (Summary)
10673 @findex gnus-summary-catchup-and-goto-prev-group
10674 Mark all articles as read and go to the previous group
10675 (@code{gnus-summary-catchup-and-goto-prev-group}).
10676
10677 @item Z R
10678 @itemx C-x C-s
10679 @kindex Z R (Summary)
10680 @kindex C-x C-s (Summary)
10681 @findex gnus-summary-reselect-current-group
10682 Exit this group, and then enter it again
10683 (@code{gnus-summary-reselect-current-group}).  If given a prefix, select
10684 all articles, both read and unread.
10685
10686 @item Z G
10687 @itemx M-g
10688 @kindex Z G (Summary)
10689 @kindex M-g (Summary)
10690 @findex gnus-summary-rescan-group
10691 @c @icon{gnus-summary-mail-get}
10692 Exit the group, check for new articles in the group, and select the
10693 group (@code{gnus-summary-rescan-group}).  If given a prefix, select all
10694 articles, both read and unread.
10695
10696 @item Z N
10697 @kindex Z N (Summary)
10698 @findex gnus-summary-next-group
10699 Exit the group and go to the next group
10700 (@code{gnus-summary-next-group}).
10701
10702 @item Z P
10703 @kindex Z P (Summary)
10704 @findex gnus-summary-prev-group
10705 Exit the group and go to the previous group
10706 (@code{gnus-summary-prev-group}).
10707
10708 @item Z s
10709 @kindex Z s (Summary)
10710 @findex gnus-summary-save-newsrc
10711 Save the current number of read/marked articles in the dribble buffer
10712 and then save the dribble buffer (@code{gnus-summary-save-newsrc}).  If
10713 given a prefix, also save the @file{.newsrc} file(s).  Using this
10714 command will make exit without updating (the @kbd{Q} command) worthless.
10715 @end table
10716
10717 @vindex gnus-exit-group-hook
10718 @code{gnus-exit-group-hook} is called when you exit the current group
10719 with an ``updating'' exit.  For instance @kbd{Q}
10720 (@code{gnus-summary-exit-no-update}) does not call this hook.
10721
10722 @findex gnus-summary-wake-up-the-dead
10723 @findex gnus-dead-summary-mode
10724 @vindex gnus-kill-summary-on-exit
10725 If you're in the habit of exiting groups, and then changing your mind
10726 about it, you might set @code{gnus-kill-summary-on-exit} to @code{nil}.
10727 If you do that, Gnus won't kill the summary buffer when you exit it.
10728 (Quelle surprise!)  Instead it will change the name of the buffer to
10729 something like @samp{*Dead Summary ... *} and install a minor mode
10730 called @code{gnus-dead-summary-mode}.  Now, if you switch back to this
10731 buffer, you'll find that all keys are mapped to a function called
10732 @code{gnus-summary-wake-up-the-dead}.  So tapping any keys in a dead
10733 summary buffer will result in a live, normal summary buffer.
10734
10735 There will never be more than one dead summary buffer at any one time.
10736
10737 @vindex gnus-use-cross-reference
10738 The data on the current group will be updated (which articles you have
10739 read, which articles you have replied to, etc.) when you exit the
10740 summary buffer.  If the @code{gnus-use-cross-reference} variable is
10741 @code{t} (which is the default), articles that are cross-referenced to
10742 this group and are marked as read, will also be marked as read in the
10743 other subscribed groups they were cross-posted to.  If this variable is
10744 neither @code{nil} nor @code{t}, the article will be marked as read in
10745 both subscribed and unsubscribed groups (@pxref{Crosspost Handling}).
10746
10747
10748 @node Crosspost Handling
10749 @section Crosspost Handling
10750
10751 @cindex velveeta
10752 @cindex spamming
10753 Marking cross-posted articles as read ensures that you'll never have to
10754 read the same article more than once.  Unless, of course, somebody has
10755 posted it to several groups separately.  Posting the same article to
10756 several groups (not cross-posting) is called @dfn{spamming}, and you are
10757 by law required to send nasty-grams to anyone who perpetrates such a
10758 heinous crime.  You may want to try NoCeM handling to filter out spam
10759 (@pxref{NoCeM}).
10760
10761 Remember: Cross-posting is kinda ok, but posting the same article
10762 separately to several groups is not.  Massive cross-posting (aka.
10763 @dfn{velveeta}) is to be avoided at all costs, and you can even use the
10764 @code{gnus-summary-mail-crosspost-complaint} command to complain about
10765 excessive crossposting (@pxref{Summary Mail Commands}).
10766
10767 @cindex cross-posting
10768 @cindex Xref
10769 @cindex @acronym{NOV}
10770 One thing that may cause Gnus to not do the cross-posting thing
10771 correctly is if you use an @acronym{NNTP} server that supports @sc{xover}
10772 (which is very nice, because it speeds things up considerably) which
10773 does not include the @code{Xref} header in its @acronym{NOV} lines.  This is
10774 Evil, but all too common, alas, alack.  Gnus tries to Do The Right Thing
10775 even with @sc{xover} by registering the @code{Xref} lines of all
10776 articles you actually read, but if you kill the articles, or just mark
10777 them as read without reading them, Gnus will not get a chance to snoop
10778 the @code{Xref} lines out of these articles, and will be unable to use
10779 the cross reference mechanism.
10780
10781 @cindex LIST overview.fmt
10782 @cindex overview.fmt
10783 To check whether your @acronym{NNTP} server includes the @code{Xref} header
10784 in its overview files, try @samp{telnet your.nntp.server nntp},
10785 @samp{MODE READER} on @code{inn} servers, and then say @samp{LIST
10786 overview.fmt}.  This may not work, but if it does, and the last line you
10787 get does not read @samp{Xref:full}, then you should shout and whine at
10788 your news admin until she includes the @code{Xref} header in the
10789 overview files.
10790
10791 @vindex gnus-nov-is-evil
10792 If you want Gnus to get the @code{Xref}s right all the time, you have to
10793 set @code{gnus-nov-is-evil} to @code{t}, which slows things down
10794 considerably.
10795
10796 C'est la vie.
10797
10798 For an alternative approach, @pxref{Duplicate Suppression}.
10799
10800
10801 @node Duplicate Suppression
10802 @section Duplicate Suppression
10803
10804 By default, Gnus tries to make sure that you don't have to read the same
10805 article more than once by utilizing the crossposting mechanism
10806 (@pxref{Crosspost Handling}).  However, that simple and efficient
10807 approach may not work satisfactory for some users for various
10808 reasons.
10809
10810 @enumerate
10811 @item
10812 The @acronym{NNTP} server may fail to generate the @code{Xref} header.  This
10813 is evil and not very common.
10814
10815 @item
10816 The @acronym{NNTP} server may fail to include the @code{Xref} header in the
10817 @file{.overview} data bases.  This is evil and all too common, alas.
10818
10819 @item
10820 You may be reading the same group (or several related groups) from
10821 different @acronym{NNTP} servers.
10822
10823 @item
10824 You may be getting mail that duplicates articles posted to groups.
10825 @end enumerate
10826
10827 I'm sure there are other situations where @code{Xref} handling fails as
10828 well, but these four are the most common situations.
10829
10830 If, and only if, @code{Xref} handling fails for you, then you may
10831 consider switching on @dfn{duplicate suppression}.  If you do so, Gnus
10832 will remember the @code{Message-ID}s of all articles you have read or
10833 otherwise marked as read, and then, as if by magic, mark them as read
10834 all subsequent times you see them---in @emph{all} groups.  Using this
10835 mechanism is quite likely to be somewhat inefficient, but not overly
10836 so.  It's certainly preferable to reading the same articles more than
10837 once.
10838
10839 Duplicate suppression is not a very subtle instrument.  It's more like a
10840 sledge hammer than anything else.  It works in a very simple
10841 fashion---if you have marked an article as read, it adds this Message-ID
10842 to a cache.  The next time it sees this Message-ID, it will mark the
10843 article as read with the @samp{M} mark.  It doesn't care what group it
10844 saw the article in.
10845
10846 @table @code
10847 @item gnus-suppress-duplicates
10848 @vindex gnus-suppress-duplicates
10849 If non-@code{nil}, suppress duplicates.
10850
10851 @item gnus-save-duplicate-list
10852 @vindex gnus-save-duplicate-list
10853 If non-@code{nil}, save the list of duplicates to a file.  This will
10854 make startup and shutdown take longer, so the default is @code{nil}.
10855 However, this means that only duplicate articles read in a single Gnus
10856 session are suppressed.
10857
10858 @item gnus-duplicate-list-length
10859 @vindex gnus-duplicate-list-length
10860 This variable says how many @code{Message-ID}s to keep in the duplicate
10861 suppression list.  The default is 10000.
10862
10863 @item gnus-duplicate-file
10864 @vindex gnus-duplicate-file
10865 The name of the file to store the duplicate suppression list in.  The
10866 default is @file{~/News/suppression}.
10867 @end table
10868
10869 If you have a tendency to stop and start Gnus often, setting
10870 @code{gnus-save-duplicate-list} to @code{t} is probably a good idea.  If
10871 you leave Gnus running for weeks on end, you may have it @code{nil}.  On
10872 the other hand, saving the list makes startup and shutdown much slower,
10873 so that means that if you stop and start Gnus often, you should set
10874 @code{gnus-save-duplicate-list} to @code{nil}.  Uhm.  I'll leave this up
10875 to you to figure out, I think.
10876
10877 @node Security
10878 @section Security
10879
10880 Gnus is able to verify signed messages or decrypt encrypted messages.
10881 The formats that are supported are @acronym{PGP}, @acronym{PGP/MIME}
10882 and @acronym{S/MIME}, however you need some external programs to get
10883 things to work:
10884
10885 @enumerate
10886 @item
10887 To handle @acronym{PGP} and @acronym{PGP/MIME} messages, you have to
10888 install an OpenPGP implementation such as GnuPG.  The Lisp interface
10889 to GnuPG included with Gnus is called PGG (@pxref{Top, ,PGG, pgg, PGG
10890 Manual}), but Mailcrypt and gpg.el are also supported.
10891
10892 @item
10893 To handle @acronym{S/MIME} message, you need to install OpenSSL.  OpenSSL 0.9.6
10894 or newer is recommended.
10895
10896 @end enumerate
10897
10898 The variables that control security functionality on reading messages
10899 include:
10900
10901 @table @code
10902 @item mm-verify-option
10903 @vindex mm-verify-option
10904 Option of verifying signed parts.  @code{never}, not verify;
10905 @code{always}, always verify; @code{known}, only verify known
10906 protocols.  Otherwise, ask user.
10907
10908 @item mm-decrypt-option
10909 @vindex mm-decrypt-option
10910 Option of decrypting encrypted parts.  @code{never}, no decryption;
10911 @code{always}, always decrypt; @code{known}, only decrypt known
10912 protocols.  Otherwise, ask user.
10913
10914 @item mml1991-use
10915 @vindex mml1991-use
10916 Symbol indicating elisp interface to OpenPGP implementation for
10917 @acronym{PGP} messages.  The default is @code{pgg}, but
10918 @code{mailcrypt} and @code{gpg} are also supported although
10919 deprecated.
10920
10921 @item mml2015-use
10922 @vindex mml2015-use
10923 Symbol indicating elisp interface to OpenPGP implementation for
10924 @acronym{PGP/MIME} messages.  The default is @code{pgg}, but
10925 @code{mailcrypt} and @code{gpg} are also supported although
10926 deprecated.
10927
10928 @end table
10929
10930 By default the buttons that display security information are not
10931 shown, because they clutter reading the actual e-mail.  You can type
10932 @kbd{K b} manually to display the information.  Use the
10933 @code{gnus-buttonized-mime-types} and
10934 @code{gnus-unbuttonized-mime-types} variables to control this
10935 permanently.  @ref{MIME Commands} for further details, and hints on
10936 how to customize these variables to always display security
10937 information.
10938
10939 @cindex snarfing keys
10940 @cindex importing PGP keys
10941 @cindex PGP key ring import
10942 Snarfing OpenPGP keys (i.e., importing keys from articles into your
10943 key ring) is not supported explicitly through a menu item or command,
10944 rather Gnus do detect and label keys as @samp{application/pgp-keys},
10945 allowing you to specify whatever action you think is appropriate
10946 through the usual @acronym{MIME} infrastructure.  You can use a
10947 @file{~/.mailcap} entry (@pxref{mailcap, , mailcap, emacs-mime, The
10948 Emacs MIME Manual}) such as the following to import keys using GNU
10949 Privacy Guard when you click on the @acronym{MIME} button
10950 (@pxref{Using MIME}).
10951
10952 @example
10953 application/pgp-keys; gpg --import --interactive --verbose; needsterminal
10954 @end example
10955 @noindent
10956 This happens to also be the default action defined in
10957 @code{mailcap-mime-data}.
10958
10959 More information on how to set things for sending outgoing signed and
10960 encrypted messages up can be found in the message manual
10961 (@pxref{Security, ,Security, message, Message Manual}).
10962
10963 @node Mailing List
10964 @section Mailing List
10965 @cindex mailing list
10966 @cindex RFC 2396
10967
10968 @kindex A M (summary)
10969 @findex gnus-mailing-list-insinuate
10970 Gnus understands some mailing list fields of RFC 2369.  To enable it,
10971 add a @code{to-list} group parameter (@pxref{Group Parameters}),
10972 possibly using @kbd{A M} (@code{gnus-mailing-list-insinuate}) in the
10973 summary buffer.
10974
10975 That enables the following commands to the summary buffer:
10976
10977 @table @kbd
10978
10979 @item C-c C-n h
10980 @kindex C-c C-n h (Summary)
10981 @findex gnus-mailing-list-help
10982 Send a message to fetch mailing list help, if List-Help field exists.
10983
10984 @item C-c C-n s
10985 @kindex C-c C-n s (Summary)
10986 @findex gnus-mailing-list-subscribe
10987 Send a message to subscribe the mailing list, if List-Subscribe field exists.
10988
10989 @item C-c C-n u
10990 @kindex C-c C-n u (Summary)
10991 @findex gnus-mailing-list-unsubscribe
10992 Send a message to unsubscribe the mailing list, if List-Unsubscribe
10993 field exists.
10994
10995 @item C-c C-n p
10996 @kindex C-c C-n p (Summary)
10997 @findex gnus-mailing-list-post
10998 Post to the mailing list, if List-Post field exists.
10999
11000 @item C-c C-n o
11001 @kindex C-c C-n o (Summary)
11002 @findex gnus-mailing-list-owner
11003 Send a message to the mailing list owner, if List-Owner field exists.
11004
11005 @item C-c C-n a
11006 @kindex C-c C-n a (Summary)
11007 @findex gnus-mailing-list-archive
11008 Browse the mailing list archive, if List-Archive field exists.
11009
11010 @end table
11011
11012
11013 @node Article Buffer
11014 @chapter Article Buffer
11015 @cindex article buffer
11016
11017 The articles are displayed in the article buffer, of which there is only
11018 one.  All the summary buffers share the same article buffer unless you
11019 tell Gnus otherwise.
11020
11021 @menu
11022 * Hiding Headers::              Deciding what headers should be displayed.
11023 * Using MIME::                  Pushing articles through @acronym{MIME} before reading them.
11024 * Customizing Articles::        Tailoring the look of the articles.
11025 * Article Keymap::              Keystrokes available in the article buffer.
11026 * Misc Article::                Other stuff.
11027 @end menu
11028
11029
11030 @node Hiding Headers
11031 @section Hiding Headers
11032 @cindex hiding headers
11033 @cindex deleting headers
11034
11035 The top section of each article is the @dfn{head}.  (The rest is the
11036 @dfn{body}, but you may have guessed that already.)
11037
11038 @vindex gnus-show-all-headers
11039 There is a lot of useful information in the head: the name of the person
11040 who wrote the article, the date it was written and the subject of the
11041 article.  That's well and nice, but there's also lots of information
11042 most people do not want to see---what systems the article has passed
11043 through before reaching you, the @code{Message-ID}, the
11044 @code{References}, etc. ad nauseam---and you'll probably want to get rid
11045 of some of those lines.  If you want to keep all those lines in the
11046 article buffer, you can set @code{gnus-show-all-headers} to @code{t}.
11047
11048 Gnus provides you with two variables for sifting headers:
11049
11050 @table @code
11051
11052 @item gnus-visible-headers
11053 @vindex gnus-visible-headers
11054 If this variable is non-@code{nil}, it should be a regular expression
11055 that says what headers you wish to keep in the article buffer.  All
11056 headers that do not match this variable will be hidden.
11057
11058 For instance, if you only want to see the name of the person who wrote
11059 the article and the subject, you'd say:
11060
11061 @lisp
11062 (setq gnus-visible-headers "^From:\\|^Subject:")
11063 @end lisp
11064
11065 This variable can also be a list of regexps to match headers to
11066 remain visible.
11067
11068 @item gnus-ignored-headers
11069 @vindex gnus-ignored-headers
11070 This variable is the reverse of @code{gnus-visible-headers}.  If this
11071 variable is set (and @code{gnus-visible-headers} is @code{nil}), it
11072 should be a regular expression that matches all lines that you want to
11073 hide.  All lines that do not match this variable will remain visible.
11074
11075 For instance, if you just want to get rid of the @code{References} line
11076 and the @code{Xref} line, you might say:
11077
11078 @lisp
11079 (setq gnus-ignored-headers "^References:\\|^Xref:")
11080 @end lisp
11081
11082 This variable can also be a list of regexps to match headers to
11083 be removed.
11084
11085 Note that if @code{gnus-visible-headers} is non-@code{nil}, this
11086 variable will have no effect.
11087
11088 @end table
11089
11090 @vindex gnus-sorted-header-list
11091 Gnus can also sort the headers for you.  (It does this by default.)  You
11092 can control the sorting by setting the @code{gnus-sorted-header-list}
11093 variable.  It is a list of regular expressions that says in what order
11094 the headers are to be displayed.
11095
11096 For instance, if you want the name of the author of the article first,
11097 and then the subject, you might say something like:
11098
11099 @lisp
11100 (setq gnus-sorted-header-list '("^From:" "^Subject:"))
11101 @end lisp
11102
11103 Any headers that are to remain visible, but are not listed in this
11104 variable, will be displayed in random order after all the headers listed in this variable.
11105
11106 @findex gnus-article-hide-boring-headers
11107 @vindex gnus-boring-article-headers
11108 You can hide further boring headers by setting
11109 @code{gnus-treat-hide-boring-headers} to @code{head}.  What this function
11110 does depends on the @code{gnus-boring-article-headers} variable.  It's a
11111 list, but this list doesn't actually contain header names.  Instead it
11112 lists various @dfn{boring conditions} that Gnus can check and remove
11113 from sight.
11114
11115 These conditions are:
11116 @table @code
11117 @item empty
11118 Remove all empty headers.
11119 @item followup-to
11120 Remove the @code{Followup-To} header if it is identical to the
11121 @code{Newsgroups} header.
11122 @item reply-to
11123 Remove the @code{Reply-To} header if it lists the same addresses as
11124 the @code{From} header, or if the @code{broken-reply-to} group
11125 parameter is set.
11126 @item newsgroups
11127 Remove the @code{Newsgroups} header if it only contains the current group
11128 name.
11129 @item to-address
11130 Remove the @code{To} header if it only contains the address identical to
11131 the current group's @code{to-address} parameter.
11132 @item to-list
11133 Remove the @code{To} header if it only contains the address identical to
11134 the current group's @code{to-list} parameter.
11135 @item cc-list
11136 Remove the @code{CC} header if it only contains the address identical to
11137 the current group's @code{to-list} parameter.
11138 @item date
11139 Remove the @code{Date} header if the article is less than three days
11140 old.
11141 @item long-to
11142 Remove the @code{To} header if it is very long.
11143 @item many-to
11144 Remove all @code{To} headers if there are more than one.
11145 @end table
11146
11147 To include these three elements, you could say something like:
11148
11149 @lisp
11150 (setq gnus-boring-article-headers
11151       '(empty followup-to reply-to))
11152 @end lisp
11153
11154 This is also the default value for this variable.
11155
11156
11157 @node Using MIME
11158 @section Using MIME
11159 @cindex @acronym{MIME}
11160
11161 Mime is a standard for waving your hands through the air, aimlessly,
11162 while people stand around yawning.
11163
11164 @acronym{MIME}, however, is a standard for encoding your articles, aimlessly,
11165 while all newsreaders die of fear.
11166
11167 @acronym{MIME} may specify what character set the article uses, the encoding
11168 of the characters, and it also makes it possible to embed pictures and
11169 other naughty stuff in innocent-looking articles.
11170
11171 @vindex gnus-display-mime-function
11172 @findex gnus-display-mime
11173 Gnus pushes @acronym{MIME} articles through @code{gnus-display-mime-function}
11174 to display the @acronym{MIME} parts.  This is @code{gnus-display-mime} by
11175 default, which creates a bundle of clickable buttons that can be used to
11176 display, save and manipulate the @acronym{MIME} objects.
11177
11178 The following commands are available when you have placed point over a
11179 @acronym{MIME} button:
11180
11181 @table @kbd
11182 @findex gnus-article-press-button
11183 @item RET (Article)
11184 @kindex RET (Article)
11185 @itemx BUTTON-2 (Article)
11186 Toggle displaying of the @acronym{MIME} object
11187 (@code{gnus-article-press-button}).  If built-in viewers can not display
11188 the object, Gnus resorts to external viewers in the @file{mailcap}
11189 files.  If a viewer has the @samp{copiousoutput} specification, the
11190 object is displayed inline.
11191
11192 @findex gnus-mime-view-part
11193 @item M-RET (Article)
11194 @kindex M-RET (Article)
11195 @itemx v (Article)
11196 Prompt for a method, and then view the @acronym{MIME} object using this
11197 method (@code{gnus-mime-view-part}).
11198
11199 @findex gnus-mime-view-part-as-type
11200 @item t (Article)
11201 @kindex t (Article)
11202 View the @acronym{MIME} object as if it were a different @acronym{MIME} media type
11203 (@code{gnus-mime-view-part-as-type}).
11204
11205 @findex gnus-mime-view-part-as-charset
11206 @item C (Article)
11207 @kindex C (Article)
11208 Prompt for a charset, and then view the @acronym{MIME} object using this
11209 charset (@code{gnus-mime-view-part-as-charset}).
11210
11211 @findex gnus-mime-save-part
11212 @item o (Article)
11213 @kindex o (Article)
11214 Prompt for a file name, and then save the @acronym{MIME} object
11215 (@code{gnus-mime-save-part}).
11216
11217 @findex gnus-mime-save-part-and-strip
11218 @item C-o (Article)
11219 @kindex C-o (Article)
11220 Prompt for a file name, then save the @acronym{MIME} object and strip it from
11221 the article.  Then proceed to article editing, where a reasonable
11222 suggestion is being made on how the altered article should look
11223 like.  The stripped @acronym{MIME} object will be referred via the
11224 message/external-body @acronym{MIME} type.
11225 (@code{gnus-mime-save-part-and-strip}).
11226
11227 @findex gnus-mime-replace-part
11228 @item r (Article)
11229 @kindex r (Article)
11230 Prompt for a file name, replace the @acronym{MIME} object with an
11231 external body refering to the file via the message/external-body
11232 @acronym{MIME} type.  (@code{gnus-mime-replace-part}).
11233
11234 @findex gnus-mime-delete-part
11235 @item d (Article)
11236 @kindex d (Article)
11237 Delete the @acronym{MIME} object from the article and replace it with some
11238 information about the removed @acronym{MIME} object
11239 (@code{gnus-mime-delete-part}).
11240
11241 @c FIXME: gnus-auto-select-part should be documented here
11242
11243 @findex gnus-mime-copy-part
11244 @item c (Article)
11245 @kindex c (Article)
11246 Copy the @acronym{MIME} object to a fresh buffer and display this buffer
11247 (@code{gnus-mime-copy-part}).  If given a prefix, copy the raw contents
11248 without decoding.  If given a numerical prefix, you can do semi-manual
11249 charset stuff (see @code{gnus-summary-show-article-charset-alist} in
11250 @ref{Paging the Article}).  Compressed files like @file{.gz} and
11251 @file{.bz2} are automatically decompressed if
11252 @code{auto-compression-mode} is enabled (@pxref{Compressed Files,,
11253 Accessing Compressed Files, emacs, The Emacs Editor}).
11254
11255 @findex gnus-mime-print-part
11256 @item p (Article)
11257 @kindex p (Article)
11258 Print the @acronym{MIME} object (@code{gnus-mime-print-part}).  This
11259 command respects the @samp{print=} specifications in the
11260 @file{.mailcap} file.
11261
11262 @findex gnus-mime-inline-part
11263 @item i (Article)
11264 @kindex i (Article)
11265 Insert the contents of the @acronym{MIME} object into the buffer
11266 (@code{gnus-mime-inline-part}) as text/plain.  If given a prefix, insert
11267 the raw contents without decoding.  If given a numerical prefix, you can
11268 do semi-manual charset stuff (see
11269 @code{gnus-summary-show-article-charset-alist} in @ref{Paging the
11270 Article}).  Compressed files like @file{.gz} and @file{.bz2} are
11271 automatically decompressed depending on @code{jka-compr} regardless of
11272 @code{auto-compression-mode} (@pxref{Compressed Files,, Accessing
11273 Compressed Files, emacs, The Emacs Editor}).
11274
11275 @findex gnus-mime-view-part-internally
11276 @item E (Article)
11277 @kindex E (Article)
11278 View the @acronym{MIME} object with an internal viewer.  If no internal
11279 viewer is available, use an external viewer
11280 (@code{gnus-mime-view-part-internally}).
11281
11282 @findex gnus-mime-view-part-externally
11283 @item e (Article)
11284 @kindex e (Article)
11285 View the @acronym{MIME} object with an external viewer.
11286 (@code{gnus-mime-view-part-externally}).
11287
11288 @findex gnus-mime-pipe-part
11289 @item | (Article)
11290 @kindex | (Article)
11291 Output the @acronym{MIME} object to a process (@code{gnus-mime-pipe-part}).
11292
11293 @findex gnus-mime-action-on-part
11294 @item . (Article)
11295 @kindex . (Article)
11296 Interactively run an action on the @acronym{MIME} object
11297 (@code{gnus-mime-action-on-part}).
11298
11299 @end table
11300
11301 Gnus will display some @acronym{MIME} objects automatically.  The way Gnus
11302 determines which parts to do this with is described in the Emacs
11303 @acronym{MIME} manual.
11304
11305 It might be best to just use the toggling functions from the article
11306 buffer to avoid getting nasty surprises.  (For instance, you enter the
11307 group @samp{alt.sing-a-long} and, before you know it, @acronym{MIME} has
11308 decoded the sound file in the article and some horrible sing-a-long song
11309 comes screaming out your speakers, and you can't find the volume button,
11310 because there isn't one, and people are starting to look at you, and you
11311 try to stop the program, but you can't, and you can't find the program
11312 to control the volume, and everybody else in the room suddenly decides
11313 to look at you disdainfully, and you'll feel rather stupid.)
11314
11315 Any similarity to real events and people is purely coincidental.  Ahem.
11316
11317 Also @pxref{MIME Commands}.
11318
11319
11320 @node Customizing Articles
11321 @section Customizing Articles
11322 @cindex article customization
11323
11324 A slew of functions for customizing how the articles are to look like
11325 exist.  You can call these functions interactively
11326 (@pxref{Article Washing}), or you can have them
11327 called automatically when you select the articles.
11328
11329 To have them called automatically, you should set the corresponding
11330 ``treatment'' variable.  For instance, to have headers hidden, you'd set
11331 @code{gnus-treat-hide-headers}.  Below is a list of variables that can
11332 be set, but first we discuss the values these variables can have.
11333
11334 Note: Some values, while valid, make little sense.  Check the list below
11335 for sensible values.
11336
11337 @enumerate
11338 @item
11339 @code{nil}: Don't do this treatment.
11340
11341 @item
11342 @code{t}: Do this treatment on all body parts.
11343
11344 @item
11345 @code{head}: Do the treatment on the headers.
11346
11347 @item
11348 @code{first}: Do this treatment on the first body part.
11349
11350 @item
11351 @code{last}: Do this treatment on the last body part.
11352
11353 @item
11354 An integer: Do this treatment on all body parts that have a length less
11355 than this number.
11356
11357 @item
11358 A list of strings: Do this treatment on all body parts that are in
11359 articles that are read in groups that have names that match one of the
11360 regexps in the list.
11361
11362 @item
11363 A list where the first element is not a string:
11364
11365 The list is evaluated recursively.  The first element of the list is a
11366 predicate.  The following predicates are recognized: @code{or},
11367 @code{and}, @code{not} and @code{typep}.  Here's an example:
11368
11369 @lisp
11370 (or last
11371     (typep "text/x-vcard"))
11372 @end lisp
11373
11374 @end enumerate
11375
11376 You may have noticed that the word @dfn{part} is used here.  This refers
11377 to the fact that some messages are @acronym{MIME} multipart articles that may
11378 be divided into several parts.  Articles that are not multiparts are
11379 considered to contain just a single part.
11380
11381 @vindex gnus-article-treat-types
11382 Are the treatments applied to all sorts of multipart parts?  Yes, if you
11383 want to, but by default, only @samp{text/plain} parts are given the
11384 treatment.  This is controlled by the @code{gnus-article-treat-types}
11385 variable, which is a list of regular expressions that are matched to the
11386 type of the part.  This variable is ignored if the value of the
11387 controlling variable is a predicate list, as described above.
11388
11389 The following treatment options are available.  The easiest way to
11390 customize this is to examine the @code{gnus-article-treat} customization
11391 group.  Values in parenthesis are suggested sensible values.  Others are
11392 possible but those listed are probably sufficient for most people.
11393
11394 @table @code
11395 @item gnus-treat-buttonize (t, integer)
11396 @item gnus-treat-buttonize-head (head)
11397
11398 @xref{Article Buttons}.
11399
11400 @item gnus-treat-capitalize-sentences (t, integer)
11401 @item gnus-treat-overstrike (t, integer)
11402 @item gnus-treat-strip-cr (t, integer)
11403 @item gnus-treat-strip-headers-in-body (t, integer)
11404 @item gnus-treat-strip-leading-blank-lines (t, first, integer)
11405 @item gnus-treat-strip-multiple-blank-lines (t, integer)
11406 @item gnus-treat-strip-pem (t, last, integer)
11407 @item gnus-treat-strip-trailing-blank-lines (t, last, integer)
11408 @item gnus-treat-unsplit-urls (t, integer)
11409 @item gnus-treat-wash-html (t, integer)
11410
11411 @xref{Article Washing}.
11412
11413 @item gnus-treat-date-english (head)
11414 @item gnus-treat-date-iso8601 (head)
11415 @item gnus-treat-date-lapsed (head)
11416 @item gnus-treat-date-local (head)
11417 @item gnus-treat-date-original (head)
11418 @item gnus-treat-date-user-defined (head)
11419 @item gnus-treat-date-ut (head)
11420
11421 @xref{Article Date}.
11422
11423 @item gnus-treat-from-picon (head)
11424 @item gnus-treat-mail-picon (head)
11425 @item gnus-treat-newsgroups-picon (head)
11426
11427 @xref{Picons}.
11428
11429 @item gnus-treat-display-smileys (t, integer)
11430
11431 @item gnus-treat-body-boundary (head)
11432
11433 @vindex gnus-body-boundary-delimiter
11434 Adds a delimiter between header and body, the string used as delimiter
11435 is controlled by @code{gnus-body-boundary-delimiter}.
11436
11437 @xref{Smileys}.
11438
11439 @item gnus-treat-display-x-face (head)
11440
11441 @xref{X-Face}.
11442
11443 @item gnus-treat-display-face (head)
11444
11445 @xref{Face}.
11446
11447 @item gnus-treat-emphasize (t, head, integer)
11448 @item gnus-treat-fill-article (t, integer)
11449 @item gnus-treat-fill-long-lines (t, integer)
11450 @item gnus-treat-hide-boring-headers (head)
11451 @item gnus-treat-hide-citation (t, integer)
11452 @item gnus-treat-hide-citation-maybe (t, integer)
11453 @item gnus-treat-hide-headers (head)
11454 @item gnus-treat-hide-signature (t, last)
11455 @item gnus-treat-strip-banner (t, last)
11456 @item gnus-treat-strip-list-identifiers (head)
11457
11458 @xref{Article Hiding}.
11459
11460 @item gnus-treat-highlight-citation (t, integer)
11461 @item gnus-treat-highlight-headers (head)
11462 @item gnus-treat-highlight-signature (t, last, integer)
11463
11464 @xref{Article Highlighting}.
11465
11466 @item gnus-treat-play-sounds
11467 @item gnus-treat-translate
11468 @item gnus-treat-ansi-sequences (t)
11469 @item gnus-treat-x-pgp-sig (head)
11470
11471 @item gnus-treat-unfold-headers (head)
11472 @item gnus-treat-fold-headers (head)
11473 @item gnus-treat-fold-newsgroups (head)
11474 @item gnus-treat-leading-whitespace (head)
11475
11476 @xref{Article Header}.
11477
11478
11479 @end table
11480
11481 @vindex gnus-part-display-hook
11482 You can, of course, write your own functions to be called from
11483 @code{gnus-part-display-hook}.  The functions are called narrowed to the
11484 part, and you can do anything you like, pretty much.  There is no
11485 information that you have to keep in the buffer---you can change
11486 everything.
11487
11488
11489 @node Article Keymap
11490 @section Article Keymap
11491
11492 Most of the keystrokes in the summary buffer can also be used in the
11493 article buffer.  They should behave as if you typed them in the summary
11494 buffer, which means that you don't actually have to have a summary
11495 buffer displayed while reading.  You can do it all from the article
11496 buffer.
11497
11498 @kindex v (Article)
11499 @cindex keys, reserved for users (Article)
11500 The key @kbd{v} is reserved for users.  You can bind it key to some
11501 function or better use it as a prefix key.
11502
11503 A few additional keystrokes are available:
11504
11505 @table @kbd
11506
11507 @item SPACE
11508 @kindex SPACE (Article)
11509 @findex gnus-article-next-page
11510 Scroll forwards one page (@code{gnus-article-next-page}).
11511 This is exactly the same as @kbd{h SPACE h}.
11512
11513 @item DEL
11514 @kindex DEL (Article)
11515 @findex gnus-article-prev-page
11516 Scroll backwards one page (@code{gnus-article-prev-page}).
11517 This is exactly the same as @kbd{h DEL h}.
11518
11519 @item C-c ^
11520 @kindex C-c ^ (Article)
11521 @findex gnus-article-refer-article
11522 If point is in the neighborhood of a @code{Message-ID} and you press
11523 @kbd{C-c ^}, Gnus will try to get that article from the server
11524 (@code{gnus-article-refer-article}).
11525
11526 @item C-c C-m
11527 @kindex C-c C-m (Article)
11528 @findex gnus-article-mail
11529 Send a reply to the address near point (@code{gnus-article-mail}).  If
11530 given a prefix, include the mail.
11531
11532 @item s
11533 @kindex s (Article)
11534 @findex gnus-article-show-summary
11535 Reconfigure the buffers so that the summary buffer becomes visible
11536 (@code{gnus-article-show-summary}).
11537
11538 @item ?
11539 @kindex ? (Article)
11540 @findex gnus-article-describe-briefly
11541 Give a very brief description of the available keystrokes
11542 (@code{gnus-article-describe-briefly}).
11543
11544 @item TAB
11545 @kindex TAB (Article)
11546 @findex gnus-article-next-button
11547 Go to the next button, if any (@code{gnus-article-next-button}).  This
11548 only makes sense if you have buttonizing turned on.
11549
11550 @item M-TAB
11551 @kindex M-TAB (Article)
11552 @findex gnus-article-prev-button
11553 Go to the previous button, if any (@code{gnus-article-prev-button}).
11554
11555 @item R
11556 @kindex R (Article)
11557 @findex gnus-article-reply-with-original
11558 Send a reply to the current article and yank the current article
11559 (@code{gnus-article-reply-with-original}).  If given a prefix, make a
11560 wide reply.  If the region is active, only yank the text in the
11561 region.
11562
11563 @item F
11564 @kindex F (Article)
11565 @findex gnus-article-followup-with-original
11566 Send a followup to the current article and yank the current article
11567 (@code{gnus-article-followup-with-original}).  If given a prefix, make
11568 a wide reply.  If the region is active, only yank the text in the
11569 region.
11570
11571
11572 @end table
11573
11574
11575 @node Misc Article
11576 @section Misc Article
11577
11578 @table @code
11579
11580 @item gnus-single-article-buffer
11581 @vindex gnus-single-article-buffer
11582 If non-@code{nil}, use the same article buffer for all the groups.
11583 (This is the default.)  If @code{nil}, each group will have its own
11584 article buffer.
11585
11586 @vindex gnus-article-decode-hook
11587 @item gnus-article-decode-hook
11588 @cindex @acronym{MIME}
11589 Hook used to decode @acronym{MIME} articles.  The default value is
11590 @code{(article-decode-charset article-decode-encoded-words)}
11591
11592 @vindex gnus-article-prepare-hook
11593 @item gnus-article-prepare-hook
11594 This hook is called right after the article has been inserted into the
11595 article buffer.  It is mainly intended for functions that do something
11596 depending on the contents; it should probably not be used for changing
11597 the contents of the article buffer.
11598
11599 @item gnus-article-mode-hook
11600 @vindex gnus-article-mode-hook
11601 Hook called in article mode buffers.
11602
11603 @item gnus-article-mode-syntax-table
11604 @vindex gnus-article-mode-syntax-table
11605 Syntax table used in article buffers.  It is initialized from
11606 @code{text-mode-syntax-table}.
11607
11608 @vindex gnus-article-over-scroll
11609 @item gnus-article-over-scroll
11610 If non-@code{nil}, allow scrolling the article buffer even when there
11611 no more new text to scroll in.  The default is @code{nil}.
11612
11613 @vindex gnus-article-mode-line-format
11614 @item gnus-article-mode-line-format
11615 This variable is a format string along the same lines as
11616 @code{gnus-summary-mode-line-format} (@pxref{Summary Buffer Mode
11617 Line}).  It accepts the same format specifications as that variable,
11618 with two extensions:
11619
11620 @table @samp
11621
11622 @item w
11623 The @dfn{wash status} of the article.  This is a short string with one
11624 character for each possible article wash operation that may have been
11625 performed.  The characters and their meaning:
11626
11627 @table @samp
11628
11629 @item c
11630 Displayed when cited text may be hidden in the article buffer.
11631
11632 @item h
11633 Displayed when headers are hidden in the article buffer.
11634
11635 @item p
11636 Displayed when article is digitally signed or encrypted, and Gnus has
11637 hidden the security headers.  (N.B. does not tell anything about
11638 security status, i.e. good or bad signature.)
11639
11640 @item s
11641 Displayed when the signature has been hidden in the Article buffer.
11642
11643 @item o
11644 Displayed when Gnus has treated overstrike characters in the article buffer.
11645
11646 @item e
11647 Displayed when Gnus has treated emphasised strings in the article buffer.
11648
11649 @end table
11650
11651 @item m
11652 The number of @acronym{MIME} parts in the article.
11653
11654 @end table
11655
11656 @vindex gnus-break-pages
11657
11658 @item gnus-break-pages
11659 Controls whether @dfn{page breaking} is to take place.  If this variable
11660 is non-@code{nil}, the articles will be divided into pages whenever a
11661 page delimiter appears in the article.  If this variable is @code{nil},
11662 paging will not be done.
11663
11664 @item gnus-page-delimiter
11665 @vindex gnus-page-delimiter
11666 This is the delimiter mentioned above.  By default, it is @samp{^L}
11667 (formfeed).
11668
11669 @cindex IDNA
11670 @cindex internationalized domain names
11671 @vindex gnus-use-idna
11672 @item gnus-use-idna
11673 This variable controls whether Gnus performs IDNA decoding of
11674 internationalized domain names inside @samp{From}, @samp{To} and
11675 @samp{Cc} headers.  @xref{IDNA, ,IDNA,message, The Message Manual},
11676 for how to compose such messages.  This requires
11677 @uref{http://www.gnu.org/software/libidn/, GNU Libidn}, and this
11678 variable is only enabled if you have installed it.
11679
11680 @end table
11681
11682
11683 @node Composing Messages
11684 @chapter Composing Messages
11685 @cindex composing messages
11686 @cindex messages
11687 @cindex mail
11688 @cindex sending mail
11689 @cindex reply
11690 @cindex followup
11691 @cindex post
11692 @cindex using gpg
11693 @cindex using s/mime
11694 @cindex using smime
11695
11696 @kindex C-c C-c (Post)
11697 All commands for posting and mailing will put you in a message buffer
11698 where you can edit the article all you like, before you send the
11699 article by pressing @kbd{C-c C-c}.  @xref{Top, , Overview, message,
11700 Message Manual}.  Where the message will be posted/mailed to depends
11701 on your setup (@pxref{Posting Server}).
11702
11703 @menu
11704 * Mail::                        Mailing and replying.
11705 * Posting Server::              What server should you post and mail via?
11706 * POP before SMTP::             You cannot send a mail unless you read a mail.
11707 * Mail and Post::               Mailing and posting at the same time.
11708 * Archived Messages::           Where Gnus stores the messages you've sent.
11709 * Posting Styles::              An easier way to specify who you are.
11710 * Drafts::                      Postponing messages and rejected messages.
11711 * Rejected Articles::           What happens if the server doesn't like your article?
11712 * Signing and encrypting::      How to compose secure messages.
11713 @end menu
11714
11715 Also @pxref{Canceling and Superseding} for information on how to
11716 remove articles you shouldn't have posted.
11717
11718
11719 @node Mail
11720 @section Mail
11721
11722 Variables for customizing outgoing mail:
11723
11724 @table @code
11725 @item gnus-uu-digest-headers
11726 @vindex gnus-uu-digest-headers
11727 List of regexps to match headers included in digested messages.  The
11728 headers will be included in the sequence they are matched.  If
11729 @code{nil} include all headers.
11730
11731 @item gnus-add-to-list
11732 @vindex gnus-add-to-list
11733 If non-@code{nil}, add a @code{to-list} group parameter to mail groups
11734 that have none when you do a @kbd{a}.
11735
11736 @item gnus-confirm-mail-reply-to-news
11737 @vindex gnus-confirm-mail-reply-to-news
11738 If non-@code{nil}, Gnus will ask you for a confirmation when you are
11739 about to reply to news articles by mail.  If it is @code{nil}, nothing
11740 interferes in what you want to do.  This can also be a function
11741 receiving the group name as the only parameter which should return
11742 non-@code{nil} if a confirmation is needed, or a regular expression
11743 matching group names, where confirmation should be asked for.
11744
11745 If you find yourself never wanting to reply to mail, but occasionally
11746 press @kbd{R} anyway, this variable might be for you.
11747
11748 @item gnus-confirm-treat-mail-like-news
11749 @vindex gnus-confirm-treat-mail-like-news
11750 If non-@code{nil}, Gnus also requests confirmation according to
11751 @code{gnus-confirm-mail-reply-to-news} when replying to mail.  This is
11752 useful for treating mailing lists like newsgroups.
11753
11754 @end table
11755
11756
11757 @node Posting Server
11758 @section Posting Server
11759
11760 When you press those magical @kbd{C-c C-c} keys to ship off your latest
11761 (extremely intelligent, of course) article, where does it go?
11762
11763 Thank you for asking.  I hate you.
11764
11765 It can be quite complicated.
11766
11767 @vindex gnus-post-method
11768 When posting news, Message usually invokes @code{message-send-news}
11769 (@pxref{News Variables, , News Variables, message, Message Manual}).
11770 Normally, Gnus will post using the same select method as you're
11771 reading from (which might be convenient if you're reading lots of
11772 groups from different private servers).  However.  If the server
11773 you're reading from doesn't allow posting, just reading, you probably
11774 want to use some other server to post your (extremely intelligent and
11775 fabulously interesting) articles.  You can then set the
11776 @code{gnus-post-method} to some other method:
11777
11778 @lisp
11779 (setq gnus-post-method '(nnspool ""))
11780 @end lisp
11781
11782 Now, if you've done this, and then this server rejects your article, or
11783 this server is down, what do you do then?  To override this variable you
11784 can use a non-zero prefix to the @kbd{C-c C-c} command to force using
11785 the ``current'' server, to get back the default behavior, for posting.
11786
11787 If you give a zero prefix (i.e., @kbd{C-u 0 C-c C-c}) to that command,
11788 Gnus will prompt you for what method to use for posting.
11789
11790 You can also set @code{gnus-post-method} to a list of select methods.
11791 If that's the case, Gnus will always prompt you for what method to use
11792 for posting.
11793
11794 Finally, if you want to always post using the native select method,
11795 you can set this variable to @code{native}.
11796
11797 When sending mail, Message invokes @code{message-send-mail-function}.
11798 The default function, @code{message-send-mail-with-sendmail}, pipes
11799 your article to the @code{sendmail} binary for further queuing and
11800 sending.  When your local system is not configured for sending mail
11801 using @code{sendmail}, and you have access to a remote @acronym{SMTP}
11802 server, you can set @code{message-send-mail-function} to
11803 @code{smtpmail-send-it} and make sure to setup the @code{smtpmail}
11804 package correctly.  An example:
11805
11806 @lisp
11807 (setq message-send-mail-function 'smtpmail-send-it
11808       smtpmail-default-smtp-server "YOUR SMTP HOST")
11809 @end lisp
11810
11811 To the thing similar to this, there is
11812 @code{message-smtpmail-send-it}.  It is useful if your @acronym{ISP}
11813 requires the @acronym{POP}-before-@acronym{SMTP} authentication.
11814 @xref{POP before SMTP}.
11815
11816 Other possible choices for @code{message-send-mail-function} includes
11817 @code{message-send-mail-with-mh}, @code{message-send-mail-with-qmail},
11818 and @code{feedmail-send-it}.
11819
11820 @node POP before SMTP
11821 @section POP before SMTP
11822 @cindex pop before smtp
11823 @findex message-smtpmail-send-it
11824 @findex mail-source-touch-pop
11825
11826 Does your @acronym{ISP} require the @acronym{POP}-before-@acronym{SMTP}
11827 authentication?  It is whether you need to connect to the @acronym{POP}
11828 mail server within a certain time before sending mails.  If so, there is
11829 a convenient way.  To do that, put the following lines in your
11830 @file{~/.gnus.el} file:
11831
11832 @lisp
11833 (setq message-send-mail-function 'message-smtpmail-send-it)
11834 (add-hook 'message-send-mail-hook 'mail-source-touch-pop)
11835 @end lisp
11836
11837 @noindent
11838 It means to let Gnus connect to the @acronym{POP} mail server in advance
11839 whenever you send a mail.  The @code{mail-source-touch-pop} function
11840 does only a @acronym{POP} authentication according to the value of
11841 @code{mail-sources} without fetching mails, just before sending a mail.
11842 Note that you have to use @code{message-smtpmail-send-it} which runs
11843 @code{message-send-mail-hook} rather than @code{smtpmail-send-it} and
11844 set the value of @code{mail-sources} for a @acronym{POP} connection
11845 correctly.  @xref{Mail Sources}.
11846
11847 If you have two or more @acronym{POP} mail servers set in
11848 @code{mail-sources}, you may want to specify one of them to
11849 @code{mail-source-primary-source} as the @acronym{POP} mail server to be
11850 used for the @acronym{POP}-before-@acronym{SMTP} authentication.  If it
11851 is your primary @acronym{POP} mail server (i.e., you are fetching mails
11852 mainly from that server), you can set it permanently as follows:
11853
11854 @lisp
11855 (setq mail-source-primary-source
11856       '(pop :server "pop3.mail.server"
11857             :password "secret"))
11858 @end lisp
11859
11860 @noindent
11861 Otherwise, bind it dynamically only when performing the
11862 @acronym{POP}-before-@acronym{SMTP} authentication as follows:
11863
11864 @lisp
11865 (add-hook 'message-send-mail-hook
11866           (lambda ()
11867             (let ((mail-source-primary-source
11868                    '(pop :server "pop3.mail.server"
11869                          :password "secret")))
11870               (mail-source-touch-pop))))
11871 @end lisp
11872
11873 @node Mail and Post
11874 @section Mail and Post
11875
11876 Here's a list of variables relevant to both mailing and
11877 posting:
11878
11879 @table @code
11880 @item gnus-mailing-list-groups
11881 @findex gnus-mailing-list-groups
11882 @cindex mailing lists
11883
11884 If your news server offers groups that are really mailing lists
11885 gatewayed to the @acronym{NNTP} server, you can read those groups without
11886 problems, but you can't post/followup to them without some difficulty.
11887 One solution is to add a @code{to-address} to the group parameters
11888 (@pxref{Group Parameters}).  An easier thing to do is set the
11889 @code{gnus-mailing-list-groups} to a regexp that matches the groups that
11890 really are mailing lists.  Then, at least, followups to the mailing
11891 lists will work most of the time.  Posting to these groups (@kbd{a}) is
11892 still a pain, though.
11893
11894 @item gnus-user-agent
11895 @vindex gnus-user-agent
11896 @cindex User-Agent
11897
11898 This variable controls which information should be exposed in the
11899 User-Agent header.  It can be one of the symbols @code{gnus} (show only
11900 Gnus version), @code{emacs-gnus} (show only Emacs and Gnus versions),
11901 @code{emacs-gnus-config} (same as @code{emacs-gnus} plus system
11902 configuration), @code{emacs-gnus-type} (same as @code{emacs-gnus} plus
11903 system type) or a custom string.  If you set it to a string, be sure to
11904 use a valid format, see RFC 2616.
11905
11906 @end table
11907
11908 You may want to do spell-checking on messages that you send out.  Or, if
11909 you don't want to spell-check by hand, you could add automatic
11910 spell-checking via the @code{ispell} package:
11911
11912 @cindex ispell
11913 @findex ispell-message
11914 @lisp
11915 (add-hook 'message-send-hook 'ispell-message)
11916 @end lisp
11917
11918 If you want to change the @code{ispell} dictionary based on what group
11919 you're in, you could say something like the following:
11920
11921 @lisp
11922 (add-hook 'gnus-select-group-hook
11923           (lambda ()
11924             (cond
11925              ((string-match
11926                "^de\\." (gnus-group-real-name gnus-newsgroup-name))
11927               (ispell-change-dictionary "deutsch"))
11928              (t
11929               (ispell-change-dictionary "english")))))
11930 @end lisp
11931
11932 Modify to suit your needs.
11933
11934
11935 @node Archived Messages
11936 @section Archived Messages
11937 @cindex archived messages
11938 @cindex sent messages
11939
11940 Gnus provides a few different methods for storing the mail and news you
11941 send.  The default method is to use the @dfn{archive virtual server} to
11942 store the messages.  If you want to disable this completely, the
11943 @code{gnus-message-archive-group} variable should be @code{nil}, which
11944 is the default.
11945
11946 For archiving interesting messages in a group you read, see the
11947 @kbd{B c} (@code{gnus-summary-copy-article}) command (@pxref{Mail
11948 Group Commands}).
11949
11950 @vindex gnus-message-archive-method
11951 @code{gnus-message-archive-method} says what virtual server Gnus is to
11952 use to store sent messages.  The default is:
11953
11954 @lisp
11955 (nnfolder "archive"
11956           (nnfolder-directory   "~/Mail/archive")
11957           (nnfolder-active-file "~/Mail/archive/active")
11958           (nnfolder-get-new-mail nil)
11959           (nnfolder-inhibit-expiry t))
11960 @end lisp
11961
11962 You can, however, use any mail select method (@code{nnml},
11963 @code{nnmbox}, etc.).  @code{nnfolder} is a quite likable select method
11964 for doing this sort of thing, though.  If you don't like the default
11965 directory chosen, you could say something like:
11966
11967 @lisp
11968 (setq gnus-message-archive-method
11969       '(nnfolder "archive"
11970                  (nnfolder-inhibit-expiry t)
11971                  (nnfolder-active-file "~/News/sent-mail/active")
11972                  (nnfolder-directory "~/News/sent-mail/")))
11973 @end lisp
11974
11975 @vindex gnus-message-archive-group
11976 @cindex Gcc
11977 Gnus will insert @code{Gcc} headers in all outgoing messages that point
11978 to one or more group(s) on that server.  Which group to use is
11979 determined by the @code{gnus-message-archive-group} variable.
11980
11981 This variable can be used to do the following:
11982
11983 @table @asis
11984 @item a string
11985 Messages will be saved in that group.
11986
11987 Note that you can include a select method in the group name, then the
11988 message will not be stored in the select method given by
11989 @code{gnus-message-archive-method}, but in the select method specified
11990 by the group name, instead.  Suppose @code{gnus-message-archive-method}
11991 has the default value shown above.  Then setting
11992 @code{gnus-message-archive-group} to @code{"foo"} means that outgoing
11993 messages are stored in @samp{nnfolder+archive:foo}, but if you use the
11994 value @code{"nnml:foo"}, then outgoing messages will be stored in
11995 @samp{nnml:foo}.
11996
11997 @item a list of strings
11998 Messages will be saved in all those groups.
11999
12000 @item an alist of regexps, functions and forms
12001 When a key ``matches'', the result is used.
12002
12003 @item @code{nil}
12004 No message archiving will take place.  This is the default.
12005 @end table
12006
12007 Let's illustrate:
12008
12009 Just saving to a single group called @samp{MisK}:
12010 @lisp
12011 (setq gnus-message-archive-group "MisK")
12012 @end lisp
12013
12014 Saving to two groups, @samp{MisK} and @samp{safe}:
12015 @lisp
12016 (setq gnus-message-archive-group '("MisK" "safe"))
12017 @end lisp
12018
12019 Save to different groups based on what group you are in:
12020 @lisp
12021 (setq gnus-message-archive-group
12022       '(("^alt" "sent-to-alt")
12023         ("mail" "sent-to-mail")
12024         (".*" "sent-to-misc")))
12025 @end lisp
12026
12027 More complex stuff:
12028 @lisp
12029 (setq gnus-message-archive-group
12030       '((if (message-news-p)
12031             "misc-news"
12032           "misc-mail")))
12033 @end lisp
12034
12035 How about storing all news messages in one file, but storing all mail
12036 messages in one file per month:
12037
12038 @lisp
12039 (setq gnus-message-archive-group
12040       '((if (message-news-p)
12041             "misc-news"
12042           (concat "mail." (format-time-string "%Y-%m")))))
12043 @end lisp
12044
12045 @c (XEmacs 19.13 doesn't have @code{format-time-string}, so you'll have to
12046 @c use a different value for @code{gnus-message-archive-group} there.)
12047
12048 Now, when you send a message off, it will be stored in the appropriate
12049 group.  (If you want to disable storing for just one particular message,
12050 you can just remove the @code{Gcc} header that has been inserted.)  The
12051 archive group will appear in the group buffer the next time you start
12052 Gnus, or the next time you press @kbd{F} in the group buffer.  You can
12053 enter it and read the articles in it just like you'd read any other
12054 group.  If the group gets really big and annoying, you can simply rename
12055 if (using @kbd{G r} in the group buffer) to something
12056 nice---@samp{misc-mail-september-1995}, or whatever.  New messages will
12057 continue to be stored in the old (now empty) group.
12058
12059 That's the default method of archiving sent messages.  Gnus offers a
12060 different way for the people who don't like the default method.  In that
12061 case you should set @code{gnus-message-archive-group} to @code{nil};
12062 this will disable archiving.
12063
12064 @table @code
12065 @item gnus-outgoing-message-group
12066 @vindex gnus-outgoing-message-group
12067 All outgoing messages will be put in this group.  If you want to store
12068 all your outgoing mail and articles in the group @samp{nnml:archive},
12069 you set this variable to that value.  This variable can also be a list of
12070 group names.
12071
12072 If you want to have greater control over what group to put each
12073 message in, you can set this variable to a function that checks the
12074 current newsgroup name and then returns a suitable group name (or list
12075 of names).
12076
12077 This variable can be used instead of @code{gnus-message-archive-group},
12078 but the latter is the preferred method.
12079
12080 @item gnus-gcc-mark-as-read
12081 @vindex gnus-gcc-mark-as-read
12082 If non-@code{nil}, automatically mark @code{Gcc} articles as read.
12083
12084 @item gnus-gcc-externalize-attachments
12085 @vindex gnus-gcc-externalize-attachments
12086 If @code{nil}, attach files as normal parts in Gcc copies; if a regexp
12087 and matches the Gcc group name, attach files as external parts; if it is
12088 @code{all}, attach local files as external parts; if it is other
12089 non-@code{nil}, the behavior is the same as @code{all}, but it may be
12090 changed in the future.
12091
12092 @end table
12093
12094
12095 @node Posting Styles
12096 @section Posting Styles
12097 @cindex posting styles
12098 @cindex styles
12099
12100 All them variables, they make my head swim.
12101
12102 So what if you want a different @code{Organization} and signature based
12103 on what groups you post to?  And you post both from your home machine
12104 and your work machine, and you want different @code{From} lines, and so
12105 on?
12106
12107 @vindex gnus-posting-styles
12108 One way to do stuff like that is to write clever hooks that change the
12109 variables you need to have changed.  That's a bit boring, so somebody
12110 came up with the bright idea of letting the user specify these things in
12111 a handy alist.  Here's an example of a @code{gnus-posting-styles}
12112 variable:
12113
12114 @lisp
12115 ((".*"
12116   (signature "Peace and happiness")
12117   (organization "What me?"))
12118  ("^comp"
12119   (signature "Death to everybody"))
12120  ("comp.emacs.i-love-it"
12121   (organization "Emacs is it")))
12122 @end lisp
12123
12124 As you might surmise from this example, this alist consists of several
12125 @dfn{styles}.  Each style will be applicable if the first element
12126 ``matches'', in some form or other.  The entire alist will be iterated
12127 over, from the beginning towards the end, and each match will be
12128 applied, which means that attributes in later styles that match override
12129 the same attributes in earlier matching styles.  So
12130 @samp{comp.programming.literate} will have the @samp{Death to everybody}
12131 signature and the @samp{What me?} @code{Organization} header.
12132
12133 The first element in each style is called the @code{match}.  If it's a
12134 string, then Gnus will try to regexp match it against the group name.
12135 If it is the form @code{(header @var{match} @var{regexp})}, then Gnus
12136 will look in the original article for a header whose name is
12137 @var{match} and compare that @var{regexp}.  @var{match} and
12138 @var{regexp} are strings.  (The original article is the one you are
12139 replying or following up to.  If you are not composing a reply or a
12140 followup, then there is nothing to match against.)  If the
12141 @code{match} is a function symbol, that function will be called with
12142 no arguments.  If it's a variable symbol, then the variable will be
12143 referenced.  If it's a list, then that list will be @code{eval}ed.  In
12144 any case, if this returns a non-@code{nil} value, then the style is
12145 said to @dfn{match}.
12146
12147 Each style may contain an arbitrary amount of @dfn{attributes}.  Each
12148 attribute consists of a @code{(@var{name} @var{value})} pair.  In
12149 addition, you can also use the @code{(@var{name} :file @var{value})}
12150 form or the @code{(@var{name} :value @var{value})} form.  Where
12151 @code{:file} signifies @var{value} represents a file name and its
12152 contents should be used as the attribute value, @code{:value} signifies
12153 @var{value} does not represent a file name explicitly.  The attribute
12154 name can be one of:
12155
12156 @itemize @bullet
12157 @item @code{signature}
12158 @item @code{signature-file}
12159 @item @code{x-face-file}
12160 @item @code{address}, overriding @code{user-mail-address}
12161 @item @code{name}, overriding @code{(user-full-name)}
12162 @item @code{body}
12163 @end itemize
12164
12165 The attribute name can also be a string or a symbol.  In that case,
12166 this will be used as a header name, and the value will be inserted in
12167 the headers of the article; if the value is @code{nil}, the header
12168 name will be removed.  If the attribute name is @code{eval}, the form
12169 is evaluated, and the result is thrown away.
12170
12171 The attribute value can be a string (used verbatim), a function with
12172 zero arguments (the return value will be used), a variable (its value
12173 will be used) or a list (it will be @code{eval}ed and the return value
12174 will be used).  The functions and sexps are called/@code{eval}ed in the
12175 message buffer that is being set up.  The headers of the current article
12176 are available through the @code{message-reply-headers} variable, which
12177 is a vector of the following headers: number subject from date id
12178 references chars lines xref extra.
12179
12180 @vindex message-reply-headers
12181
12182 If you wish to check whether the message you are about to compose is
12183 meant to be a news article or a mail message, you can check the values
12184 of the @code{message-news-p} and @code{message-mail-p} functions.
12185
12186 @findex message-mail-p
12187 @findex message-news-p
12188
12189 So here's a new example:
12190
12191 @lisp
12192 (setq gnus-posting-styles
12193       '((".*"
12194          (signature-file "~/.signature")
12195          (name "User Name")
12196          (x-face-file "~/.xface")
12197          (x-url (getenv "WWW_HOME"))
12198          (organization "People's Front Against MWM"))
12199         ("^rec.humor"
12200          (signature my-funny-signature-randomizer))
12201         ((equal (system-name) "gnarly")  ;; @r{A form}
12202          (signature my-quote-randomizer))
12203         (message-news-p        ;; @r{A function symbol}
12204          (signature my-news-signature))
12205         (window-system         ;; @r{A value symbol}
12206          ("X-Window-System" (format "%s" window-system)))
12207         ;; @r{If I'm replying to Larsi, set the Organization header.}
12208         ((header "from" "larsi.*org")
12209          (Organization "Somewhere, Inc."))
12210         ((posting-from-work-p) ;; @r{A user defined function}
12211          (signature-file "~/.work-signature")
12212          (address "user@@bar.foo")
12213          (body "You are fired.\n\nSincerely, your boss.")
12214          (organization "Important Work, Inc"))
12215         ("nnml:.*"
12216          (From (save-excursion
12217                  (set-buffer gnus-article-buffer)
12218                  (message-fetch-field "to"))))
12219         ("^nn.+:"
12220          (signature-file "~/.mail-signature"))))
12221 @end lisp
12222
12223 The @samp{nnml:.*} rule means that you use the @code{To} address as the
12224 @code{From} address in all your outgoing replies, which might be handy
12225 if you fill many roles.
12226 You may also use @code{message-alternative-emails} instead.
12227 @xref{Message Headers, ,Message Headers, message, Message Manual}.
12228
12229 @node Drafts
12230 @section Drafts
12231 @cindex drafts
12232
12233 If you are writing a message (mail or news) and suddenly remember that
12234 you have a steak in the oven (or some pesto in the food processor, you
12235 craaazy vegetarians), you'll probably wish there was a method to save
12236 the message you are writing so that you can continue editing it some
12237 other day, and send it when you feel its finished.
12238
12239 Well, don't worry about it.  Whenever you start composing a message of
12240 some sort using the Gnus mail and post commands, the buffer you get will
12241 automatically associate to an article in a special @dfn{draft} group.
12242 If you save the buffer the normal way (@kbd{C-x C-s}, for instance), the
12243 article will be saved there.  (Auto-save files also go to the draft
12244 group.)
12245
12246 @cindex nndraft
12247 @vindex nndraft-directory
12248 The draft group is a special group (which is implemented as an
12249 @code{nndraft} group, if you absolutely have to know) called
12250 @samp{nndraft:drafts}.  The variable @code{nndraft-directory} says where
12251 @code{nndraft} is to store its files.  What makes this group special is
12252 that you can't tick any articles in it or mark any articles as
12253 read---all articles in the group are permanently unread.
12254
12255 If the group doesn't exist, it will be created and you'll be subscribed
12256 to it.  The only way to make it disappear from the Group buffer is to
12257 unsubscribe it.  The special properties of the draft group comes from
12258 a group property (@pxref{Group Parameters}), and if lost the group
12259 behaves like any other group.  This means the commands below will not
12260 be available.  To restore the special properties of the group, the
12261 simplest way is to kill the group, using @kbd{C-k}, and restart
12262 Gnus.  The group is automatically created again with the
12263 correct parameters.  The content of the group is not lost.
12264
12265 @c @findex gnus-dissociate-buffer-from-draft
12266 @c @kindex C-c M-d (Mail)
12267 @c @kindex C-c M-d (Post)
12268 @c @findex gnus-associate-buffer-with-draft
12269 @c @kindex C-c C-d (Mail)
12270 @c @kindex C-c C-d (Post)
12271 @c If you're writing some super-secret message that you later want to
12272 @c encode with PGP before sending, you may wish to turn the auto-saving
12273 @c (and association with the draft group) off.  You never know who might be
12274 @c interested in reading all your extremely valuable and terribly horrible
12275 @c and interesting secrets.  The @kbd{C-c M-d}
12276 @c (@code{gnus-dissociate-buffer-from-draft}) command does that for you.
12277 @c If you change your mind and want to turn the auto-saving back on again,
12278 @c @kbd{C-c C-d} (@code{gnus-associate-buffer-with-draft} does that.
12279 @c
12280 @c @vindex gnus-use-draft
12281 @c To leave association with the draft group off by default, set
12282 @c @code{gnus-use-draft} to @code{nil}.  It is @code{t} by default.
12283
12284 @findex gnus-draft-edit-message
12285 @kindex D e (Draft)
12286 When you want to continue editing the article, you simply enter the
12287 draft group and push @kbd{D e} (@code{gnus-draft-edit-message}) to do
12288 that.  You will be placed in a buffer where you left off.
12289
12290 Rejected articles will also be put in this draft group (@pxref{Rejected
12291 Articles}).
12292
12293 @findex gnus-draft-send-all-messages
12294 @kindex D s (Draft)
12295 @findex gnus-draft-send-message
12296 @kindex D S (Draft)
12297 If you have lots of rejected messages you want to post (or mail) without
12298 doing further editing, you can use the @kbd{D s} command
12299 (@code{gnus-draft-send-message}).  This command understands the
12300 process/prefix convention (@pxref{Process/Prefix}).  The @kbd{D S}
12301 command (@code{gnus-draft-send-all-messages}) will ship off all messages
12302 in the buffer.
12303
12304 @findex gnus-draft-toggle-sending
12305 @kindex D t (Draft)
12306 If you have some messages that you wish not to send, you can use the
12307 @kbd{D t} (@code{gnus-draft-toggle-sending}) command to mark the message
12308 as unsendable.  This is a toggling command.
12309
12310
12311 @node Rejected Articles
12312 @section Rejected Articles
12313 @cindex rejected articles
12314
12315 Sometimes a news server will reject an article.  Perhaps the server
12316 doesn't like your face.  Perhaps it just feels miserable.  Perhaps
12317 @emph{there be demons}.  Perhaps you have included too much cited text.
12318 Perhaps the disk is full.  Perhaps the server is down.
12319
12320 These situations are, of course, totally beyond the control of Gnus.
12321 (Gnus, of course, loves the way you look, always feels great, has angels
12322 fluttering around inside of it, doesn't care about how much cited text
12323 you include, never runs full and never goes down.)  So Gnus saves these
12324 articles until some later time when the server feels better.
12325
12326 The rejected articles will automatically be put in a special draft group
12327 (@pxref{Drafts}).  When the server comes back up again, you'd then
12328 typically enter that group and send all the articles off.
12329
12330 @node Signing and encrypting
12331 @section Signing and encrypting
12332 @cindex using gpg
12333 @cindex using s/mime
12334 @cindex using smime
12335
12336 Gnus can digitally sign and encrypt your messages, using vanilla
12337 @acronym{PGP} format or @acronym{PGP/MIME} or @acronym{S/MIME}.  For
12338 decoding such messages, see the @code{mm-verify-option} and
12339 @code{mm-decrypt-option} options (@pxref{Security}).
12340
12341 @vindex gnus-message-replysign
12342 @vindex gnus-message-replyencrypt
12343 @vindex gnus-message-replysignencrypted
12344 Often, you would like to sign replies to people who send you signed
12345 messages.  Even more often, you might want to encrypt messages which
12346 are in reply to encrypted messages.  Gnus offers
12347 @code{gnus-message-replysign} to enable the former, and
12348 @code{gnus-message-replyencrypt} for the latter.  In addition, setting
12349 @code{gnus-message-replysignencrypted} (on by default) will sign
12350 automatically encrypted messages.
12351
12352 Instructing @acronym{MML} to perform security operations on a
12353 @acronym{MIME} part is done using the @kbd{C-c C-m s} key map for
12354 signing and the @kbd{C-c C-m c} key map for encryption, as follows.
12355
12356 @table @kbd
12357
12358 @item C-c C-m s s
12359 @kindex C-c C-m s s (Message)
12360 @findex mml-secure-message-sign-smime
12361
12362 Digitally sign current message using @acronym{S/MIME}.
12363
12364 @item C-c C-m s o
12365 @kindex C-c C-m s o (Message)
12366 @findex mml-secure-message-sign-pgp
12367
12368 Digitally sign current message using @acronym{PGP}.
12369
12370 @item C-c C-m s p
12371 @kindex C-c C-m s p (Message)
12372 @findex mml-secure-message-sign-pgp
12373
12374 Digitally sign current message using @acronym{PGP/MIME}.
12375
12376 @item C-c C-m c s
12377 @kindex C-c C-m c s (Message)
12378 @findex mml-secure-message-encrypt-smime
12379
12380 Digitally encrypt current message using @acronym{S/MIME}.
12381
12382 @item C-c C-m c o
12383 @kindex C-c C-m c o (Message)
12384 @findex mml-secure-message-encrypt-pgp
12385
12386 Digitally encrypt current message using @acronym{PGP}.
12387
12388 @item C-c C-m c p
12389 @kindex C-c C-m c p (Message)
12390 @findex mml-secure-message-encrypt-pgpmime
12391
12392 Digitally encrypt current message using @acronym{PGP/MIME}.
12393
12394 @item C-c C-m C-n
12395 @kindex C-c C-m C-n (Message)
12396 @findex mml-unsecure-message
12397 Remove security related @acronym{MML} tags from message.
12398
12399 @end table
12400
12401 @xref{Security, ,Security, message, Message Manual}, for more information.
12402
12403 @node Select Methods
12404 @chapter Select Methods
12405 @cindex foreign groups
12406 @cindex select methods
12407
12408 A @dfn{foreign group} is a group not read by the usual (or
12409 default) means.  It could be, for instance, a group from a different
12410 @acronym{NNTP} server, it could be a virtual group, or it could be your own
12411 personal mail group.
12412
12413 A foreign group (or any group, really) is specified by a @dfn{name} and
12414 a @dfn{select method}.  To take the latter first, a select method is a
12415 list where the first element says what back end to use (e.g. @code{nntp},
12416 @code{nnspool}, @code{nnml}) and the second element is the @dfn{server
12417 name}.  There may be additional elements in the select method, where the
12418 value may have special meaning for the back end in question.
12419
12420 One could say that a select method defines a @dfn{virtual server}---so
12421 we do just that (@pxref{Server Buffer}).
12422
12423 The @dfn{name} of the group is the name the back end will recognize the
12424 group as.
12425
12426 For instance, the group @samp{soc.motss} on the @acronym{NNTP} server
12427 @samp{some.where.edu} will have the name @samp{soc.motss} and select
12428 method @code{(nntp "some.where.edu")}.  Gnus will call this group
12429 @samp{nntp+some.where.edu:soc.motss}, even though the @code{nntp}
12430 back end just knows this group as @samp{soc.motss}.
12431
12432 The different methods all have their peculiarities, of course.
12433
12434 @menu
12435 * Server Buffer::               Making and editing virtual servers.
12436 * Getting News::                Reading USENET news with Gnus.
12437 * Getting Mail::                Reading your personal mail with Gnus.
12438 * Browsing the Web::            Getting messages from a plethora of Web sources.
12439 * IMAP::                        Using Gnus as a @acronym{IMAP} client.
12440 * Other Sources::               Reading directories, files, SOUP packets.
12441 * Combined Groups::             Combining groups into one group.
12442 * Email Based Diary::           Using mails to manage diary events in Gnus.
12443 * Gnus Unplugged::              Reading news and mail offline.
12444 @end menu
12445
12446
12447 @node Server Buffer
12448 @section Server Buffer
12449
12450 Traditionally, a @dfn{server} is a machine or a piece of software that
12451 one connects to, and then requests information from.  Gnus does not
12452 connect directly to any real servers, but does all transactions through
12453 one back end or other.  But that's just putting one layer more between
12454 the actual media and Gnus, so we might just as well say that each
12455 back end represents a virtual server.
12456
12457 For instance, the @code{nntp} back end may be used to connect to several
12458 different actual @acronym{NNTP} servers, or, perhaps, to many different ports
12459 on the same actual @acronym{NNTP} server.  You tell Gnus which back end to
12460 use, and what parameters to set by specifying a @dfn{select method}.
12461
12462 These select method specifications can sometimes become quite
12463 complicated---say, for instance, that you want to read from the
12464 @acronym{NNTP} server @samp{news.funet.fi} on port number 13, which
12465 hangs if queried for @acronym{NOV} headers and has a buggy select.  Ahem.
12466 Anyway, if you had to specify that for each group that used this
12467 server, that would be too much work, so Gnus offers a way of naming
12468 select methods, which is what you do in the server buffer.
12469
12470 To enter the server buffer, use the @kbd{^}
12471 (@code{gnus-group-enter-server-mode}) command in the group buffer.
12472
12473 @menu
12474 * Server Buffer Format::        You can customize the look of this buffer.
12475 * Server Commands::             Commands to manipulate servers.
12476 * Example Methods::             Examples server specifications.
12477 * Creating a Virtual Server::   An example session.
12478 * Server Variables::            Which variables to set.
12479 * Servers and Methods::         You can use server names as select methods.
12480 * Unavailable Servers::         Some servers you try to contact may be down.
12481 @end menu
12482
12483 @vindex gnus-server-mode-hook
12484 @code{gnus-server-mode-hook} is run when creating the server buffer.
12485
12486
12487 @node Server Buffer Format
12488 @subsection Server Buffer Format
12489 @cindex server buffer format
12490
12491 @vindex gnus-server-line-format
12492 You can change the look of the server buffer lines by changing the
12493 @code{gnus-server-line-format} variable.  This is a @code{format}-like
12494 variable, with some simple extensions:
12495
12496 @table @samp
12497
12498 @item h
12499 How the news is fetched---the back end name.
12500
12501 @item n
12502 The name of this server.
12503
12504 @item w
12505 Where the news is to be fetched from---the address.
12506
12507 @item s
12508 The opened/closed/denied status of the server.
12509
12510 @item a
12511 Whether this server is agentized.
12512 @end table
12513
12514 @vindex gnus-server-mode-line-format
12515 The mode line can also be customized by using the
12516 @code{gnus-server-mode-line-format} variable (@pxref{Mode Line
12517 Formatting}).  The following specs are understood:
12518
12519 @table @samp
12520 @item S
12521 Server name.
12522
12523 @item M
12524 Server method.
12525 @end table
12526
12527 Also @pxref{Formatting Variables}.
12528
12529
12530 @node Server Commands
12531 @subsection Server Commands
12532 @cindex server commands
12533
12534 @table @kbd
12535
12536 @item v
12537 @kindex v (Server)
12538 @cindex keys, reserved for users (Server)
12539 The key @kbd{v} is reserved for users.  You can bind it key to some
12540 function or better use it as a prefix key.
12541
12542 @item a
12543 @kindex a (Server)
12544 @findex gnus-server-add-server
12545 Add a new server (@code{gnus-server-add-server}).
12546
12547 @item e
12548 @kindex e (Server)
12549 @findex gnus-server-edit-server
12550 Edit a server (@code{gnus-server-edit-server}).
12551
12552 @item SPACE
12553 @kindex SPACE (Server)
12554 @findex gnus-server-read-server
12555 Browse the current server (@code{gnus-server-read-server}).
12556
12557 @item q
12558 @kindex q (Server)
12559 @findex gnus-server-exit
12560 Return to the group buffer (@code{gnus-server-exit}).
12561
12562 @item k
12563 @kindex k (Server)
12564 @findex gnus-server-kill-server
12565 Kill the current server (@code{gnus-server-kill-server}).
12566
12567 @item y
12568 @kindex y (Server)
12569 @findex gnus-server-yank-server
12570 Yank the previously killed server (@code{gnus-server-yank-server}).
12571
12572 @item c
12573 @kindex c (Server)
12574 @findex gnus-server-copy-server
12575 Copy the current server (@code{gnus-server-copy-server}).
12576
12577 @item l
12578 @kindex l (Server)
12579 @findex gnus-server-list-servers
12580 List all servers (@code{gnus-server-list-servers}).
12581
12582 @item s
12583 @kindex s (Server)
12584 @findex gnus-server-scan-server
12585 Request that the server scan its sources for new articles
12586 (@code{gnus-server-scan-server}).  This is mainly sensible with mail
12587 servers.
12588
12589 @item g
12590 @kindex g (Server)
12591 @findex gnus-server-regenerate-server
12592 Request that the server regenerate all its data structures
12593 (@code{gnus-server-regenerate-server}).  This can be useful if you have
12594 a mail back end that has gotten out of sync.
12595
12596 @end table
12597
12598
12599 @node Example Methods
12600 @subsection Example Methods
12601
12602 Most select methods are pretty simple and self-explanatory:
12603
12604 @lisp
12605 (nntp "news.funet.fi")
12606 @end lisp
12607
12608 Reading directly from the spool is even simpler:
12609
12610 @lisp
12611 (nnspool "")
12612 @end lisp
12613
12614 As you can see, the first element in a select method is the name of the
12615 back end, and the second is the @dfn{address}, or @dfn{name}, if you
12616 will.
12617
12618 After these two elements, there may be an arbitrary number of
12619 @code{(@var{variable} @var{form})} pairs.
12620
12621 To go back to the first example---imagine that you want to read from
12622 port 15 on that machine.  This is what the select method should
12623 look like then:
12624
12625 @lisp
12626 (nntp "news.funet.fi" (nntp-port-number 15))
12627 @end lisp
12628
12629 You should read the documentation to each back end to find out what
12630 variables are relevant, but here's an @code{nnmh} example:
12631
12632 @code{nnmh} is a mail back end that reads a spool-like structure.  Say
12633 you have two structures that you wish to access: One is your private
12634 mail spool, and the other is a public one.  Here's the possible spec for
12635 your private mail:
12636
12637 @lisp
12638 (nnmh "private" (nnmh-directory "~/private/mail/"))
12639 @end lisp
12640
12641 (This server is then called @samp{private}, but you may have guessed
12642 that.)
12643
12644 Here's the method for a public spool:
12645
12646 @lisp
12647 (nnmh "public"
12648       (nnmh-directory "/usr/information/spool/")
12649       (nnmh-get-new-mail nil))
12650 @end lisp
12651
12652 @cindex proxy
12653 @cindex firewall
12654
12655 If you are behind a firewall and only have access to the @acronym{NNTP}
12656 server from the firewall machine, you can instruct Gnus to @code{rlogin}
12657 on the firewall machine and telnet from there to the @acronym{NNTP} server.
12658 Doing this can be rather fiddly, but your virtual server definition
12659 should probably look something like this:
12660
12661 @lisp
12662 (nntp "firewall"
12663       (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)
12664       (nntp-via-address "the.firewall.machine")
12665       (nntp-address "the.real.nntp.host")
12666       (nntp-end-of-line "\n"))
12667 @end lisp
12668
12669 If you want to use the wonderful @code{ssh} program to provide a
12670 compressed connection over the modem line, you could add the following
12671 configuration to the example above:
12672
12673 @lisp
12674       (nntp-via-rlogin-command "ssh")
12675 @end lisp
12676
12677 See also @code{nntp-via-rlogin-command-switches}.  Here's an example for
12678 an indirect connection:
12679 @lisp
12680 (setq gnus-select-method
12681       '(nntp "indirect"
12682              (nntp-address "news.server.example")
12683              (nntp-via-user-name "intermediate_user_name")
12684              (nntp-via-address "intermediate.host.example")
12685              (nntp-via-rlogin-command "ssh")
12686              (nntp-end-of-line "\n")
12687              (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none"))
12688              (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)))
12689 @end lisp
12690
12691 If you're behind a firewall, but have direct access to the outside world
12692 through a wrapper command like "runsocks", you could open a socksified
12693 telnet connection to the news server as follows:
12694
12695 @lisp
12696 (nntp "outside"
12697       (nntp-pre-command "runsocks")
12698       (nntp-open-connection-function nntp-open-via-telnet)
12699       (nntp-address "the.news.server")
12700       (nntp-end-of-line "\n"))
12701 @end lisp
12702
12703 This means that you have to have set up @code{ssh-agent} correctly to
12704 provide automatic authorization, of course.  And to get a compressed
12705 connection, you have to have the @samp{Compression} option in the
12706 @code{ssh} @file{config} file.
12707
12708
12709 @node Creating a Virtual Server
12710 @subsection Creating a Virtual Server
12711
12712 If you're saving lots of articles in the cache by using persistent
12713 articles, you may want to create a virtual server to read the cache.
12714
12715 First you need to add a new server.  The @kbd{a} command does that.  It
12716 would probably be best to use @code{nnml} to read the cache.  You
12717 could also use @code{nnspool} or @code{nnmh}, though.
12718
12719 Type @kbd{a nnml RET cache RET}.
12720
12721 You should now have a brand new @code{nnml} virtual server called
12722 @samp{cache}.  You now need to edit it to have the right definitions.
12723 Type @kbd{e} to edit the server.  You'll be entered into a buffer that
12724 will contain the following:
12725
12726 @lisp
12727 (nnml "cache")
12728 @end lisp
12729
12730 Change that to:
12731
12732 @lisp
12733 (nnml "cache"
12734          (nnml-directory "~/News/cache/")
12735          (nnml-active-file "~/News/cache/active"))
12736 @end lisp
12737
12738 Type @kbd{C-c C-c} to return to the server buffer.  If you now press
12739 @kbd{RET} over this virtual server, you should be entered into a browse
12740 buffer, and you should be able to enter any of the groups displayed.
12741
12742
12743 @node Server Variables
12744 @subsection Server Variables
12745 @cindex server variables
12746 @cindex server parameters
12747
12748 One sticky point when defining variables (both on back ends and in Emacs
12749 in general) is that some variables are typically initialized from other
12750 variables when the definition of the variables is being loaded.  If you
12751 change the ``base'' variable after the variables have been loaded, you
12752 won't change the ``derived'' variables.
12753
12754 This typically affects directory and file variables.  For instance,
12755 @code{nnml-directory} is @file{~/Mail/} by default, and all @code{nnml}
12756 directory variables are initialized from that variable, so
12757 @code{nnml-active-file} will be @file{~/Mail/active}.  If you define a
12758 new virtual @code{nnml} server, it will @emph{not} suffice to set just
12759 @code{nnml-directory}---you have to explicitly set all the file
12760 variables to be what you want them to be.  For a complete list of
12761 variables for each back end, see each back end's section later in this
12762 manual, but here's an example @code{nnml} definition:
12763
12764 @lisp
12765 (nnml "public"
12766       (nnml-directory "~/my-mail/")
12767       (nnml-active-file "~/my-mail/active")
12768       (nnml-newsgroups-file "~/my-mail/newsgroups"))
12769 @end lisp
12770
12771 Server variables are often called @dfn{server parameters}.
12772
12773 @node Servers and Methods
12774 @subsection Servers and Methods
12775
12776 Wherever you would normally use a select method
12777 (e.g. @code{gnus-secondary-select-method}, in the group select method,
12778 when browsing a foreign server) you can use a virtual server name
12779 instead.  This could potentially save lots of typing.  And it's nice all
12780 over.
12781
12782
12783 @node Unavailable Servers
12784 @subsection Unavailable Servers
12785
12786 If a server seems to be unreachable, Gnus will mark that server as
12787 @code{denied}.  That means that any subsequent attempt to make contact
12788 with that server will just be ignored.  ``It can't be opened,'' Gnus
12789 will tell you, without making the least effort to see whether that is
12790 actually the case or not.
12791
12792 That might seem quite naughty, but it does make sense most of the time.
12793 Let's say you have 10 groups subscribed to on server
12794 @samp{nephelococcygia.com}.  This server is located somewhere quite far
12795 away from you and the machine is quite slow, so it takes 1 minute just
12796 to find out that it refuses connection to you today.  If Gnus were to
12797 attempt to do that 10 times, you'd be quite annoyed, so Gnus won't
12798 attempt to do that.  Once it has gotten a single ``connection refused'',
12799 it will regard that server as ``down''.
12800
12801 So, what happens if the machine was only feeling unwell temporarily?
12802 How do you test to see whether the machine has come up again?
12803
12804 You jump to the server buffer (@pxref{Server Buffer}) and poke it
12805 with the following commands:
12806
12807 @table @kbd
12808
12809 @item O
12810 @kindex O (Server)
12811 @findex gnus-server-open-server
12812 Try to establish connection to the server on the current line
12813 (@code{gnus-server-open-server}).
12814
12815 @item C
12816 @kindex C (Server)
12817 @findex gnus-server-close-server
12818 Close the connection (if any) to the server
12819 (@code{gnus-server-close-server}).
12820
12821 @item D
12822 @kindex D (Server)
12823 @findex gnus-server-deny-server
12824 Mark the current server as unreachable
12825 (@code{gnus-server-deny-server}).
12826
12827 @item M-o
12828 @kindex M-o (Server)
12829 @findex gnus-server-open-all-servers
12830 Open the connections to all servers in the buffer
12831 (@code{gnus-server-open-all-servers}).
12832
12833 @item M-c
12834 @kindex M-c (Server)
12835 @findex gnus-server-close-all-servers
12836 Close the connections to all servers in the buffer
12837 (@code{gnus-server-close-all-servers}).
12838
12839 @item R
12840 @kindex R (Server)
12841 @findex gnus-server-remove-denials
12842 Remove all marks to whether Gnus was denied connection from any servers
12843 (@code{gnus-server-remove-denials}).
12844
12845 @item L
12846 @kindex L (Server)
12847 @findex gnus-server-offline-server
12848 Set server status to offline (@code{gnus-server-offline-server}).
12849
12850 @end table
12851
12852
12853 @node Getting News
12854 @section Getting News
12855 @cindex reading news
12856 @cindex news back ends
12857
12858 A newsreader is normally used for reading news.  Gnus currently provides
12859 only two methods of getting news---it can read from an @acronym{NNTP} server,
12860 or it can read from a local spool.
12861
12862 @menu
12863 * NNTP::                        Reading news from an @acronym{NNTP} server.
12864 * News Spool::                  Reading news from the local spool.
12865 @end menu
12866
12867
12868 @node NNTP
12869 @subsection NNTP
12870 @cindex nntp
12871
12872 Subscribing to a foreign group from an @acronym{NNTP} server is rather easy.
12873 You just specify @code{nntp} as method and the address of the @acronym{NNTP}
12874 server as the, uhm, address.
12875